silo-4.8-bsd/0002775000707000001660000000000011444246317012476 5ustar miller86visitsilo-4.8-bsd/config/0002775000707000001660000000000011444246315013741 5ustar miller86visitsilo-4.8-bsd/config/config.h.in0000644000707000001660000001134511444246315015764 0ustar miller86visit/* config/config.h.in. Generated from configure.ac by autoheader. */ /* Define to dummy `main' function (if any) required to link to the Fortran libraries. */ #undef FC_DUMMY_MAIN /* Define if F77 and FC dummy `main' functions are identical. */ #undef FC_DUMMY_MAIN_EQ_F77 /* Define to a macro mangling the given C identifier (in lower and upper case), which must not contain underscores, for linking with Fortran. */ #undef FC_FUNC /* As FC_FUNC, but for C identifiers containing underscores. */ #undef FC_FUNC_ /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* System provides fclose prototypes */ #undef HAVE_FCLOSE_POINTER /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* System provides fflush prototypes */ #undef HAVE_FFLUSH_POINTER /* Define to 1 if you have the `fnmatch' function. */ #undef HAVE_FNMATCH /* Define to 1 if you have the header file. */ #undef HAVE_FNMATCH_H /* System provides fopen prototypes */ #undef HAVE_FOPEN_POINTER /* Define to 1 if you have the `fpclass' function. */ #undef HAVE_FPCLASS /* System provides fprintf prototypes */ #undef HAVE_FPRINTF_POINTER /* Support for Lindstrom float array compression */ #undef HAVE_FPZIP /* System provides fread prototypes */ #undef HAVE_FREAD_POINTER /* System provides fseek prototypes */ #undef HAVE_FSEEK_POINTER /* System provides ftell prototypes */ #undef HAVE_FTELL_POINTER /* System provides fwrite prototypes */ #undef HAVE_FWRITE_POINTER /* Support for HDF5 */ #undef HAVE_HDF5_DRIVER /* Define to 1 if you have the header file. */ #undef HAVE_HDF5_H /* Define to 1 if you have the header file. */ #undef HAVE_HISTORY_H /* Support for Lindstrom hex/quad mesh compression */ #undef HAVE_HZIP /* Define to 1 if you have the header file. */ #undef HAVE_IEEEFP_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `isnan' function. */ #undef HAVE_ISNAN /* Define to 1 if you have the `hdf5' library (-lhdf5). */ #undef HAVE_LIBHDF5 /* Define if you have a readline compatible library */ #undef HAVE_LIBREADLINE /* Define to 1 if you have the `sz' library (-lsz). */ #undef HAVE_LIBSZ /* Define to 1 if you have the `z' library (-lz). */ #undef HAVE_LIBZ /* Define to 1 if you have the `memmove' function. */ #undef HAVE_MEMMOVE /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Support for NetCDF */ #undef HAVE_NETCDF_DRIVER /* Support for PDB Proper */ #undef HAVE_PDBP_DRIVER /* Support for PDB */ #undef HAVE_PDB_DRIVER /* Define to 1 if you have the header file. */ #undef HAVE_READLINE_H /* Define if your readline library has \`add_history' */ #undef HAVE_READLINE_HISTORY /* Define to 1 if you have the header file. */ #undef HAVE_READLINE_HISTORY_H /* Define to 1 if you have the header file. */ #undef HAVE_READLINE_READLINE_H /* System provides setvbuf prototypes */ #undef HAVE_SETVBUF_POINTER /* Define to 1 if you have the header file. */ #undef HAVE_STDARG_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_FCNTL_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Support for Taurus */ #undef HAVE_TAURUS_DRIVER /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the header file. */ #undef HAVE_ZLIB_H /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* The size of `off64_t', as computed by sizeof. */ #undef SIZEOF_OFF64_T /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Override longjmp */ #undef longjmp /* Override setjmp */ #undef setjmp silo-4.8-bsd/config/Makefile.am0000644000707000001660000000606611444246315016001 0ustar miller86visit# Copyright (c) 1994 - 2010, Lawrence Livermore National Security, LLC. # LLNL-CODE-425250. # All rights reserved. # # This file is part of Silo. For details, see silo.llnl.gov. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the disclaimer below. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the disclaimer (as noted # below) in the documentation and/or other materials provided with # the distribution. # * Neither the name of the LLNS/LLNL nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE # LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # This work was produced at Lawrence Livermore National Laboratory under # Contract No. DE-AC52-07NA27344 with the DOE. # # Neither the United States Government nor Lawrence Livermore National # Security, LLC nor any of their employees, makes any warranty, express # or implied, or assumes any liability or responsibility for the # accuracy, completeness, or usefulness of any information, apparatus, # product, or process disclosed, or represents that its use would not # infringe privately-owned rights. # # Any reference herein to any specific commercial products, process, or # services by trade name, trademark, manufacturer or otherwise does not # necessarily constitute or imply its endorsement, recommendation, or # favoring by the United States Government or Lawrence Livermore # National Security, LLC. The views and opinions of authors expressed # herein do not necessarily state or reflect those of the United States # Government or Lawrence Livermore National Security, LLC, and shall not # be used for advertising or product endorsement purposes. # ## Procss this file with automake to create Makefile.in AUX_DIST = \ config.guess\ config.sub\ depcomp\ install-sh\ ltmain.sh\ missing EXTRA_DIST = \ bootstrap\ mkinc MAINTAINERCLEANFILES = \ config.h.in\ Makefile.in\ $(AUX_DIST) silo-4.8-bsd/config/Makefile.in0000644000707000001660000003163511444246315016012 0ustar miller86visit# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (c) 1994 - 2010, Lawrence Livermore National Security, LLC. # LLNL-CODE-425250. # All rights reserved. # # This file is part of Silo. For details, see silo.llnl.gov. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the disclaimer below. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the disclaimer (as noted # below) in the documentation and/or other materials provided with # the distribution. # * Neither the name of the LLNS/LLNL nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE # LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # This work was produced at Lawrence Livermore National Laboratory under # Contract No. DE-AC52-07NA27344 with the DOE. # # Neither the United States Government nor Lawrence Livermore National # Security, LLC nor any of their employees, makes any warranty, express # or implied, or assumes any liability or responsibility for the # accuracy, completeness, or usefulness of any information, apparatus, # product, or process disclosed, or represents that its use would not # infringe privately-owned rights. # # Any reference herein to any specific commercial products, process, or # services by trade name, trademark, manufacturer or otherwise does not # necessarily constitute or imply its endorsement, recommendation, or # favoring by the United States Government or Lawrence Livermore # National Security, LLC. The views and opinions of authors expressed # herein do not necessarily state or reflect those of the United States # Government or Lawrence Livermore National Security, LLC, and shall not # be used for advertising or product endorsement purposes. # VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = config DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in compile \ config.guess config.sub depcomp install-sh ltmain.sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BROWSER = @BROWSER@ BUNDLE_TARGET = @BUNDLE_TARGET@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CC_FULLPATH = @CC_FULLPATH@ CFLAGS = @CFLAGS@ CONFIG_CMD = @CONFIG_CMD@ CONFIG_DATE = @CONFIG_DATE@ CONFIG_USER = @CONFIG_USER@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CXX_FULLPATH = @CXX_FULLPATH@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FC_FULLPATH = @FC_FULLPATH@ FFLAGS = @FFLAGS@ FORTRAN = @FORTRAN@ FPZIP = @FPZIP@ GREP = @GREP@ HDF5_DRV = @HDF5_DRV@ HZIP = @HZIP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NETCDF = @NETCDF@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PDBP_DRV = @PDBP_DRV@ PDB_DRV = @PDB_DRV@ PRTDIAG = @PRTDIAG@ PYTHON = @PYTHON@ PYTHONMODULE = @PYTHONMODULE@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT_BIN = @QT_BIN@ QT_CORE = @QT_CORE@ QT_CORE_LIB = @QT_CORE_LIB@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_GUI = @QT_GUI@ QT_GUI_LIB = @QT_GUI_LIB@ QT_INCLUDE = @QT_INCLUDE@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_MOC = @QT_MOC@ RANLIB = @RANLIB@ READLINE_LIBS = @READLINE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SILEX = @SILEX@ SILO_DTYPPTR = @SILO_DTYPPTR@ SILO_DTYPPTR1 = @SILO_DTYPPTR1@ SILO_DTYPPTR2 = @SILO_DTYPPTR2@ SILO_VERS_MAJ = @SILO_VERS_MAJ@ SILO_VERS_MIN = @SILO_VERS_MIN@ SILO_VERS_PAT = @SILO_VERS_PAT@ SILO_VERS_PRE = @SILO_VERS_PRE@ SILO_VERS_TAG = @SILO_VERS_TAG@ STRIP = @STRIP@ TAURUS = @TAURUS@ VERSION = @VERSION@ ZLIB = @ZLIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUX_DIST = \ config.guess\ config.sub\ depcomp\ install-sh\ ltmain.sh\ missing EXTRA_DIST = \ bootstrap\ mkinc MAINTAINERCLEANFILES = \ config.h.in\ Makefile.in\ $(AUX_DIST) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign config/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign config/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: silo-4.8-bsd/config/compile0000755000707000001660000000717311444246315015323 0ustar miller86visit#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. scriptversion=2005-05-14.22 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand `-c -o'. Remove `-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file `INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; esac ofile= cfile= eat= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as `compile cc -o foo foo.c'. # So we strip `-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no `-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # `.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'` # Create the lock directory. # Note: use `[/.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: silo-4.8-bsd/config/config.guess0000755000707000001660000012626011444246315016264 0ustar miller86visit#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. timestamp='2006-07-02' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; x86:Interix*:[3456]*) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T:Interix*:[3456]*) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: silo-4.8-bsd/config/config.sub0000755000707000001660000007746011444246315015736 0ustar miller86visit#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. timestamp='2006-09-20' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | score \ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; c90) basic_machine=c90-cray os=-unicos ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16c) basic_machine=cr16c-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: silo-4.8-bsd/config/depcomp0000755000707000001660000004224611444246315015322 0ustar miller86visit#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2006-10-15.18 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software # Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test -f "$tmpdepfile"; then : else stripped=`echo "$stripped" | sed 's,^.*/,,'` tmpdepfile="$stripped.u" fi if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then outname="$stripped.o" # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: silo-4.8-bsd/config/install-sh0000755000707000001660000003160011444246315015741 0ustar miller86visit#!/bin/sh # install - install a program, script, or datafile scriptversion=2006-10-14.15 # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" posix_glob= posix_mkdir= # Desired mode of installed file. mode=0755 chmodcmd=$chmodprog chowncmd= chgrpcmd= stripcmd= rmcmd="$rmprog -f" mvcmd="$mvprog" src= dst= dir_arg= dstarg= no_target_directory= usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: -c (ignored) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. --help display this help and exit. --version display version info and exit. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) shift continue;; -d) dir_arg=true shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; --help) echo "$usage"; exit $?;; -m) mode=$2 shift shift case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t) dstarg=$2 shift shift continue;; -T) no_target_directory=true shift continue;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac done if test $# -ne 0 && test -z "$dir_arg$dstarg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dstarg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dstarg" shift # fnord fi shift # arg dstarg=$arg done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then trap '(exit $?); exit' 1 2 13 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names starting with `-'. case $src in -*) src=./$src ;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dstarg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dstarg # Protect names starting with `-'. case $dst in -*) dst=./$dst ;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dstarg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix=/ ;; -*) prefix=./ ;; *) prefix= ;; esac case $posix_glob in '') if (set -f) 2>/dev/null; then posix_glob=true else posix_glob=false fi ;; esac oIFS=$IFS IFS=/ $posix_glob && set -f set fnord $dstdir shift $posix_glob && set +f IFS=$oIFS prefixes= for d do test -z "$d" && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # Now rename the file to the real destination. { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \ || { # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { if test -f "$dst"; then $doit $rmcmd -f "$dst" 2>/dev/null \ || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \ && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\ || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } } || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: silo-4.8-bsd/config/ltmain.sh0000664000707000001660000060446511444246315015576 0ustar miller86visit# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007 Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. basename="s,^.*/,,g" # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: progname=`echo "$progpath" | $SED $basename` modename="$progname" # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 PROGRAM=ltmain.sh PACKAGE=libtool VERSION=1.5.24 TIMESTAMP=" (1.1220.2.455 2007/06/24 02:13:29)" # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # Check that we have a working $echo. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then # Yippee, $echo works! : else # Restart under the correct shell, and then maybe $echo will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE fi # Global variables. mode=$default_mode nonopt= prev= prevopt= run= show="$echo" show_help= execute_dlfiles= duplicate_deps=no preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 ##################################### # Shell function definitions: # This seems to be the best place for them # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $mkdir "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || { $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 exit $EXIT_FAILURE } fi $echo "X$my_tmpdir" | $Xsed } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ $SED -n -e '1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $echo $win32_libid_type } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case "$@ " in " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then $echo "$modename: unable to infer tagged configuration" $echo "$modename: specify a tag with \`--tag'" 1>&2 exit $EXIT_FAILURE # else # $echo "$modename: using $tagname tagged configuration" fi ;; esac fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 exit $EXIT_FAILURE fi } # func_extract_archives gentop oldlib ... func_extract_archives () { my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" my_status="" $show "${rm}r $my_gentop" $run ${rm}r "$my_gentop" $show "$mkdir $my_gentop" $run $mkdir "$my_gentop" my_status=$? if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then exit $my_status fi for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) extracted_serial=`expr $extracted_serial + 1` my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" $show "${rm}r $my_xdir" $run ${rm}r "$my_xdir" $show "$mkdir $my_xdir" $run $mkdir "$my_xdir" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then exit $exit_status fi case $host in *-darwin*) $show "Extracting $my_xabs" # Do not bother doing anything if just a dry run if test -z "$run"; then darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` if test -n "$darwin_arches"; then darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= $show "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we have a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` lipo -create -output "$darwin_file" $darwin_files done # $darwin_filelist ${rm}r unfat-$$ cd "$darwin_orig_dir" else cd "$darwin_orig_dir" func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches fi # $run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # End of Shell function definitions ##################################### # Darwin sucks eval std_shrext=\"$shrext_cmds\" disable_libs=no # Parse our command line options once, thoroughly. while test "$#" -gt 0 do arg="$1" shift case $arg in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in execute_dlfiles) execute_dlfiles="$execute_dlfiles $arg" ;; tag) tagname="$arg" preserve_args="${preserve_args}=$arg" # Check whether tagname contains only valid characters case $tagname in *[!-_A-Za-z0-9,/]*) $echo "$progname: invalid tag name: $tagname" 1>&2 exit $EXIT_FAILURE ;; esac case $tagname in CC) # Don't test for the "default" C tag, as we know, it's there, but # not specially marked. ;; *) if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then taglist="$taglist $tagname" # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" else $echo "$progname: ignoring unknown tag $tagname" 1>&2 fi ;; esac ;; *) eval "$prev=\$arg" ;; esac prev= prevopt= continue fi # Have we seen a non-optional argument yet? case $arg in --help) show_help=yes ;; --version) echo "\ $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." exit $? ;; --config) ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath # Now print the configurations for the tags. for tagname in $taglist; do ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" done exit $? ;; --debug) $echo "$progname: enabling shell trace mode" set -x preserve_args="$preserve_args $arg" ;; --dry-run | -n) run=: ;; --features) $echo "host: $host" if test "$build_libtool_libs" = yes; then $echo "enable shared libraries" else $echo "disable shared libraries" fi if test "$build_old_libs" = yes; then $echo "enable static libraries" else $echo "disable static libraries" fi exit $? ;; --finish) mode="finish" ;; --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; --preserve-dup-deps) duplicate_deps="yes" ;; --quiet | --silent) show=: preserve_args="$preserve_args $arg" ;; --tag) prevopt="--tag" prev=tag preserve_args="$preserve_args --tag" ;; --tag=*) set tag "$optarg" ${1+"$@"} shift prev=tag preserve_args="$preserve_args --tag" ;; -dlopen) prevopt="-dlopen" prev=execute_dlfiles ;; -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *) nonopt="$arg" break ;; esac done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi case $disable_libs in no) ;; shared) build_libtool_libs=no build_old_libs=yes ;; static) build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` ;; esac # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 case $nonopt in *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) mode=link for arg do case $arg in -c) mode=compile break ;; esac done ;; *db | *dbx | *strace | *truss) mode=execute ;; *install*|cp|mv) mode=install ;; *rm) mode=uninstall ;; *) # If we have no mode, but dlfiles were specified, then do execute mode. test -n "$execute_dlfiles" && mode=execute # Just use the default operation mode. if test -z "$mode"; then if test -n "$nonopt"; then $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 else $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 fi fi ;; esac fi # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then $echo "$modename: unrecognized option \`-dlopen'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$modename --help --mode=$mode' for more information." # These modes are in order of execution frequency so that they run quickly. case $mode in # libtool compile mode compile) modename="$modename: compile" # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) if test -n "$libobj" ; then $echo "$modename: you cannot specify \`-o' more than once" 1>&2 exit $EXIT_FAILURE fi arg_mode=target continue ;; -static | -prefer-pic | -prefer-non-pic) later="$later $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac lastarg="$lastarg $arg" done IFS="$save_ifs" lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` # Add the arguments to base_compile. base_compile="$base_compile $lastarg" continue ;; * ) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` case $lastarg in # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, and some SunOS ksh mistreat backslash-escaping # in scan sets (worked around with variable expansion), # and furthermore cannot handle '|' '&' '(' ')' in scan sets # at all, so we specify them separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") lastarg="\"$lastarg\"" ;; esac base_compile="$base_compile $lastarg" done # for arg case $arg_mode in arg) $echo "$modename: you must specify an argument for -Xcompile" exit $EXIT_FAILURE ;; target) $echo "$modename: you must specify a target with \`-o'" 1>&2 exit $EXIT_FAILURE ;; *) # Get the name of the library object. [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo xform='[cCFSifmso]' case $libobj in *.ada) xform=ada ;; *.adb) xform=adb ;; *.ads) xform=ads ;; *.asm) xform=asm ;; *.c++) xform=c++ ;; *.cc) xform=cc ;; *.ii) xform=ii ;; *.class) xform=class ;; *.cpp) xform=cpp ;; *.cxx) xform=cxx ;; *.[fF][09]?) xform=[fF][09]. ;; *.for) xform=for ;; *.java) xform=java ;; *.obj) xform=obj ;; esac libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` case $libobj in *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; *) $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 exit $EXIT_FAILURE ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -static) build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` case $qlibobj in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qlibobj="\"$qlibobj\"" ;; esac test "X$libobj" != "X$qlibobj" \ && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$obj"; then xdir= else xdir=$xdir/ fi lobj=${xdir}$objdir/$objname if test -z "$base_compile"; then $echo "$modename: you must specify a compilation command" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi $run $rm $removelist trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $run ln "$progpath" "$lockfile" 2>/dev/null; do $show "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $echo "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi $echo "$srcfile" > "$lockfile" fi if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` case $qsrcfile in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qsrcfile="\"$qsrcfile\"" ;; esac $run $rm "$libobj" "${libobj}T" # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. test -z "$run" && cat > ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then $show "$mv $output_obj $lobj" if $run $mv $output_obj $lobj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the PIC object to the libtool object file. test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then $show "$mv $output_obj $obj" if $run $mv $output_obj $obj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the non-PIC object the libtool object file. # Only append if the libtool object file exists. test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test ;; *) qarg=$arg ;; esac libtool_args="$libtool_args $qarg" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) compile_command="$compile_command @OUTPUT@" finalize_command="$finalize_command @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. compile_command="$compile_command @SYMFILE@" finalize_command="$finalize_command @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" if test ! -f "$arg"; then $echo "$modename: symbol file \`$arg' does not exist" exit $EXIT_FAILURE fi prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat $save_arg` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi done else $echo "$modename: link input file \`$save_arg' does not exist" exit $EXIT_FAILURE fi arg=$save_arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= compile_command="$compile_command $wl$qarg" finalize_command="$finalize_command $wl$qarg" continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; shrext) shrext_cmds="$arg" prev= continue ;; darwin_framework|darwin_framework_skip) test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" prev= continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then compile_command="$compile_command $link_static_flag" finalize_command="$finalize_command $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 continue ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: more than one -exported-symbols argument is not allowed" exit $EXIT_FAILURE fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework|-arch|-isysroot) case " $CC " in *" ${arg} ${1} "* | *" ${arg} ${1} "*) prev=darwin_framework_skip ;; *) compiler_flags="$compiler_flags $arg" prev=darwin_framework ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" ;; esac continue ;; -L*) dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" notinst_path="$notinst_path $dir" fi dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs -framework System" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. -model) compile_command="$compile_command $arg" compiler_flags="$compiler_flags $arg" finalize_command="$finalize_command $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -module) module=yes continue ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m* pass through architecture-specific compiler args for GCC # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC # -F/path gives path to uninstalled frameworks, gcc on darwin # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" compiler_flags="$compiler_flags $arg" continue ;; -shrext) prev=shrext continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -Wc,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Wl,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $wl$flag" linker_flags="$linker_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi done # argument parsing loop if test -n "$prev"; then $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi oldlibs= # calculate the name of the file, without its directory outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` if test "X$output_objdir" = "X$output"; then output_objdir="$objdir" else output_objdir="$output_objdir/$objdir" fi # Create the object directory. if test ! -d "$output_objdir"; then $show "$mkdir $output_objdir" $run $mkdir $output_objdir exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then exit $exit_status fi fi # Determine the type of output case $output in "") $echo "$modename: you must specify an output file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac case $host in *cygwin* | *mingw* | *pw32*) # don't eliminate duplications in $postdeps and $predeps duplicate_compiler_generated_deps=yes ;; *) duplicate_compiler_generated_deps=$duplicate_deps ;; esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if test "X$duplicate_deps" = "Xyes" ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries case $linkmode in lib) passes="conv link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 exit $EXIT_FAILURE ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 continue fi name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then library_names= old_library= case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; *) $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` if eval $echo \"$deplib\" 2>/dev/null \ | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $echo $echo "*** Warning: Trying to link with static lib archive $deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because the file extensions .$libext of this argument makes me believe" $echo "*** that it is just a static archive that I should not used here." else $echo $echo "*** Warning: Linking the shared library $output against the" $echo "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2 exit $EXIT_FAILURE fi # Check to see that this really is a libtool archive. if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." dlname= dlopen= dlpreopen= libdir= library_names= old_library= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then $echo "$modename: \`$lib' is not a convenience library" 1>&2 exit $EXIT_FAILURE fi continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 abs_ladir="$ladir" fi ;; esac laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then $echo "$modename: warning: library \`$lib' was moved." 1>&2 dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath " in *" $dir "*) ;; *" $absdir "*) ;; *) temp_rpath="$temp_rpath $absdir" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes ; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi # This is a shared library # Warn about portability, can't link against -module's on # some systems (darwin) if test "$shouldnotlink" = yes && test "$pass" = link ; then $echo if test "$linkmode" = prog; then $echo "*** Warning: Linking the executable $output against the loadable module" else $echo "*** Warning: Linking the shared library $output against the loadable module" fi $echo "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names realname="$2" shift; shift libname=`eval \\$echo \"$libname_spec\"` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw*) major=`expr $current - $age` versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" soname=`$echo $soroot | ${SED} -e 's/^.*\///'` newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else $show "extracting exported symbol list from \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$extract_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else $show "generating import library for \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$old_archive_from_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a module then we can not link against # it, someone is ignoring the new warnings I added if /usr/bin/file -L $add 2> /dev/null | $EGREP ": [^:]* bundle" >/dev/null ; then $echo "** Warning, lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $echo $echo "** And there doesn't seem to be a static archive available" $echo "** The link will probably fail, sorry" else add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then $echo "$modename: configuration error: unsupported hardcode properties" exit $EXIT_FAILURE fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && \ test "$hardcode_minus_L" != yes && \ test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $echo $echo "*** Warning: This system can not link to static lib archive $lib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $echo "*** But as you try to build a module library, libtool will still create " $echo "*** a static module, that should work as long as the dlopening application" $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$deplib" && dir="." # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" fi ;; esac if grep "^installed=no" $deplib > /dev/null; then path="$absdir/$objdir" else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi if test "$absdir" != "$libdir"; then $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 fi path="$absdir" fi depdepl= case $host in *-*-darwin*) # we do not want to link against static libs, # but need to link against shared eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$path/$depdepl" ; then depdepl="$path/$depdepl" fi # do not add paths which are already there case " $newlib_search_path " in *" $path "*) ;; *) newlib_search_path="$newlib_search_path $path";; esac fi path="" ;; *) path="-L$path" ;; esac ;; -l*) case $host in *-*-darwin*) # Again, we only want to link against shared libraries eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` for tmp in $newlib_search_path ; do if test -f "$tmp/lib$tmp_libs.dylib" ; then eval depdepl="$tmp/lib$tmp_libs.dylib" break fi done path="" ;; *) continue ;; esac ;; *) continue ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac case " $deplibs " in *" $depdepl "*) ;; *) deplibs="$depdepl $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 fi if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 fi # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) if test "$module" = no; then $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 exit $EXIT_FAILURE else $echo $echo "*** Warning: Linking the shared library $output against the non-libtool" $echo "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi if test "$dlself" != no; then $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 fi set dummy $rpath if test "$#" -gt 2; then $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 fi install_libdir="$2" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 fi else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 IFS="$save_ifs" if test -n "$8"; then $echo "$modename: too many parameters to \`-version-info'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$2" number_minor="$3" number_revision="$4" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows|none) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; esac ;; no) current="$2" revision="$3" age="$4" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac if test "$age" -gt "$current"; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header major=.`expr $current - $age` versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... minor_current=`expr $current + 1` xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current"; ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then major=`expr $current - $age` else major=`expr $current - $age + 1` fi case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do iface=`expr $revision - $loop` loop=`expr $loop - 1` verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) major=.`expr $current - $age` versuffix="$major.$age.$revision" ;; osf) major=.`expr $current - $age` versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do iface=`expr $current - $loop` loop=`expr $loop - 1` verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. major=`expr $current - $age` versuffix="-$major" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$echo "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done if test -n "$removelist"; then $show "${rm}r $removelist" $run ${rm}r $removelist fi fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs -framework System" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $rm conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null \ | grep " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for file magic test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a file magic. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` for a_deplib in $deplibs; do name=`expr $a_deplib : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. if test -n "$name" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval \\$echo \"$libname_spec\"` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval $echo \"$potent_lib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for regex pattern test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a regex pattern. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` done fi if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ | grep . >/dev/null; then $echo if test "X$deplibs_check_method" = "Xnone"; then $echo "*** Warning: inter-library dependencies are not supported in this platform." else $echo "*** Warning: inter-library dependencies are not known to be supported." fi $echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $echo $echo "*** Warning: libtool could not satisfy all declared inter-library" $echo "*** dependencies of module $libname. Therefore, libtool will create" $echo "*** a static module, that should work as long as the dlopening" $echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $echo "*** The inter-library dependencies that have been dropped here will be" $echo "*** automatically added whenever a program is linked with this library" $echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $echo $echo "*** Since this library must not contain undefined symbols," $echo "*** because either the platform does not support them or" $echo "*** it was explicitly requested with -no-undefined," $echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then case $archive_cmds in *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;; *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;; esac else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names realname="$2" shift; shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" if len=`expr "X$cmd" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then $show "$cmd" $run eval "$cmd" || exit $? skipped_export=false else # The command line is too long to execute in one step. $show "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex"; then $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' $show "$mv \"${export_symbols}T\" \"$export_symbols\"" $run eval '$mv "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise. $echo "creating reloadable object files..." # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$echo "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= delfiles= last_robj= k=1 output=$output_objdir/$output_la-${k}.$objext # Loop over the list of objects to be linked. for obj in $save_libobjs do eval test_cmds=\"$reload_cmds $objlist $last_robj\" if test "X$objlist" = X || { len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; }; then objlist="$objlist $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext k=`expr $k + 1` output=$output_objdir/$output_la-${k}.$objext objlist=$obj len=1 fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if ${skipped_export-false}; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols libobjs=$output # Append the command to create the export file. eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" fi # Set up a command to remove the reloadable object files # after they are used. i=0 while test "$i" -lt "$k" do i=`expr $i + 1` delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" done $echo "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi # Append the command to remove the reloadable object files # to the just-reset $cmds. eval cmds=\"\$cmds~\$rm $delfiles\" fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then $show "${rm}r $gentop" $run ${rm}r "$gentop" fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 fi case $output in *.lo) if test -n "$objs$old_deplibs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 exit $EXIT_FAILURE fi libobj="$output" obj=`$echo "X$output" | $Xsed -e "$lo2o"` ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $run $rm $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $run eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 fi if test "$preload" = yes; then if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && test "$dlopen_self_static" = unknown; then $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." fi fi case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac case $host in *darwin*) # Don't allow lazy linking, it breaks C++ global constructors if test "$tagname" = CXX ; then compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" fi ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then dlsyms="${outputname}S.c" else $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 fi fi if test -n "$dlsyms"; then case $dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${outputname}.nm" $show "$rm $nlist ${nlist}S ${nlist}T" $run $rm "$nlist" "${nlist}S" "${nlist}T" # Parse the name list into a source file. $show "creating $output_objdir/$dlsyms" test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ #ifdef __cplusplus extern \"C\" { #endif /* Prevent the only kind of declaration conflicts we can make. */ #define lt_preloaded_symbols some_other_symbol /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then $show "generating symbol list for \`$output'" test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for arg in $progfiles; do $show "extracting global C symbols from \`$arg'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi if test -n "$export_symbols_regex"; then $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac else $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac fi fi for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` $run eval '$echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -z "$run"; then # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $mv "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if grep -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else grep -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' else $echo '/* NONE */' >> "$output_objdir/$dlsyms" fi $echo >> "$output_objdir/$dlsyms" "\ #undef lt_preloaded_symbols #if defined (__STDC__) && __STDC__ # define lt_ptr void * #else # define lt_ptr char * # define const #endif /* The mapping between symbol names and symbols. */ " case $host in *cygwin* | *mingw* ) $echo >> "$output_objdir/$dlsyms" "\ /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs */ struct { " ;; * ) $echo >> "$output_objdir/$dlsyms" "\ const struct { " ;; esac $echo >> "$output_objdir/$dlsyms" "\ const char *name; lt_ptr address; } lt_preloaded_symbols[] = {\ " eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" $echo >> "$output_objdir/$dlsyms" "\ {0, (lt_ptr) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " fi pic_flag_for_symtable= case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; esac;; *-*-hpux*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag";; esac esac # Now compile the dynamic symbol file. $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? # Clean up the generated files. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" # Transform the symbol file into the correct name. case $host in *cygwin* | *mingw* ) if test -f "$output_objdir/${outputname}.def" ; then compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` else compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` fi ;; * ) compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` ;; esac ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 exit $EXIT_FAILURE ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` fi if test "$need_relink" = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. $show "$link_command" $run eval "$link_command" exit_status=$? # Delete the generated files. if test -n "$dlsyms"; then $show "$rm $output_objdir/${outputname}S.${objext}" $run $rm "$output_objdir/${outputname}S.${objext}" fi exit $exit_status fi if test -n "$shlibpath_var"; then # We should set the shlibpath_var rpath= for dir in $temp_rpath; do case $dir in [\\/]* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" ;; *) # Relative path: add a thisdir entry. rpath="$rpath\$thisdir/$dir:" ;; esac done temp_rpath="$rpath" fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $run $rm $output # Link the executable and exit $show "$link_command" $run eval "$link_command" || exit $? exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 $echo "$modename: \`$output' will be relinked during installation" 1>&2 else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname $show "$link_command" $run eval "$link_command" || exit $? # Now create the wrapper script. $show "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` fi # Quote $echo for shipping. if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if our run command is non-null. if test -z "$run"; then # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) output_name=`basename $output` output_path=`dirname $output` cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $rm $cwrappersource $cwrapper trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 cat > $cwrappersource <> $cwrappersource<<"EOF" #include #include #include #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) /* -DDEBUG is fairly common in CFLAGS. */ #undef DEBUG #if defined DEBUGWRAPPER # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) #else # define DEBUG(format, ...) #endif const char *program_name = NULL; void * xmalloc (size_t num); char * xstrdup (const char *string); const char * base_name (const char *name); char * find_executable(const char *wrapper); int check_executable(const char *path); char * strendzap(char *str, const char *pat); void lt_fatal (const char *message, ...); int main (int argc, char *argv[]) { char **newargz; int i; program_name = (char *) xstrdup (base_name (argv[0])); DEBUG("(main) argv[0] : %s\n",argv[0]); DEBUG("(main) program_name : %s\n",program_name); newargz = XMALLOC(char *, argc+2); EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" newargz[1] = find_executable(argv[0]); if (newargz[1] == NULL) lt_fatal("Couldn't find %s", argv[0]); DEBUG("(main) found exe at : %s\n",newargz[1]); /* we know the script has the same name, without the .exe */ /* so make sure newargz[1] doesn't end in .exe */ strendzap(newargz[1],".exe"); for (i = 1; i < argc; i++) newargz[i+1] = xstrdup(argv[i]); newargz[argc+1] = NULL; for (i=0; i> $cwrappersource <> $cwrappersource <> $cwrappersource <<"EOF" return 127; } void * xmalloc (size_t num) { void * p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL ; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char)name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable(const char * path) { struct stat st; DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && ( /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ #if defined (S_IXOTH) ((st.st_mode & S_IXOTH) == S_IXOTH) || #endif #if defined (S_IXGRP) ((st.st_mode & S_IXGRP) == S_IXGRP) || #endif ((st.st_mode & S_IXUSR) == S_IXUSR)) ) return 1; else return 0; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise */ char * find_executable (const char* wrapper) { int has_slash = 0; const char* p; const char* p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char* concat_name; DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char* path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char* q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR(*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); return NULL; } char * strendzap(char *str, const char *pat) { size_t len, patlen; assert(str != NULL); assert(pat != NULL); len = strlen(str); patlen = strlen(pat); if (patlen <= len) { str += len - patlen; if (strcmp(str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char * mode, const char * message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } EOF # we should really use a build-platform specific compiler # here, but OTOH, the wrappers (shell script and this C one) # are only useful if you want to execute the "real" binary. # Since the "real" binary is built for $host, then this # wrapper might as well be built for $host, too. $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource ;; esac $rm $output trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 $echo > $output "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variable: notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$echo are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then echo=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then # Yippee, \$echo works! : else # Restart under the correct shell, and then maybe \$echo will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $echo >> $output "\ # Find the directory that this script lives in. thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $echo >> $output "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || \\ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $mkdir \"\$progdir\" else $rm \"\$progdir/\$file\" fi" $echo >> $output "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $echo \"\$relink_command_output\" >&2 $rm \"\$progdir/\$file\" exit $EXIT_FAILURE fi fi $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $rm \"\$progdir/\$program\"; $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } $rm \"\$progdir/\$file\" fi" else $echo >> $output "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $echo >> $output "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $echo >> $output "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $echo >> $output "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $echo >> $output "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $echo >> $output "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $echo >> $output "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $echo >> $output "\ \$echo \"\$0: cannot exec \$program \$*\" exit $EXIT_FAILURE fi else # The program doesn't exist. \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$echo \"This script is just a wrapper for \$program.\" 1>&2 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 exit $EXIT_FAILURE fi fi\ " chmod +x $output fi exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do $echo "X$obj" | $Xsed -e 's%^.*/%%' done | sort | sort -uc >/dev/null 2>&1); then : else $echo "copying selected object files to avoid basename conflicts..." if test -z "$gentop"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$gentop"; then exit $exit_status fi fi save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase counter=`expr $counter + 1` case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" $run ln "$obj" "$gentop/$newobj" || $run cp "$obj" "$gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" if len=`expr "X$cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts $echo "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done for obj in $save_oldobjs do oldobjs="$objlist $obj" objlist="$objlist $obj" eval test_cmds=\"$old_archive_cmds\" if len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do eval cmd=\"$cmd\" IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$generated"; then $show "${rm}r$generated" $run ${rm}r$generated fi # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" $show "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. if test -z "$run"; then for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlfiles="$newdlfiles $libdir/$name" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlprefiles="$newdlprefiles $libdir/$name" done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $rm $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $echo >> $output "\ relink_command=\"$relink_command\"" fi done fi # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? ;; esac exit $EXIT_SUCCESS ;; # libtool install mode install) modename="$modename: install" # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $echo "X$nonopt" | grep shtool > /dev/null; then # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$arg " arg="$1" shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog$arg" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog $arg" done if test -z "$install_prog"; then $echo "$modename: you must specify an install program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -z "$files"; then if test -z "$dest"; then $echo "$modename: no file or destination specified" 1>&2 else $echo "$modename: you must specify a destination" 1>&2 fi $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Strip any trailing slash from the destination. dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` test "X$destdir" = "X$dest" && destdir=. destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` # Not a directory, so check to see that there is only one file specified. set dummy $files if test "$#" -gt 2; then $echo "$modename: \`$dest' is not a directory" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi library_names= old_library= relink_command= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ test "X$dir" = "X$file/" && dir= dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. if test "$inst_prefix_dir" = "$destdir"; then $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 exit $EXIT_FAILURE fi if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP` else relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP` fi $echo "$modename: warning: relinking \`$file'" 1>&2 $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 exit $EXIT_FAILURE fi fi # See the names of the shared library. set dummy $library_names if test -n "$2"; then realname="$2" shift shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. $show "$install_prog $dir/$srcname $destdir/$realname" $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? if test -n "$stripme" && test -n "$striplib"; then $show "$striplib $destdir/$realname" $run eval "$striplib $destdir/$realname" || exit $? fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do if test "$linkname" != "$realname"; then $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" fi done fi # Do each command in the postinstall commands. lib="$destdir/$realname" cmds=$postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" fi # Install the pseudo-library for information purposes. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` instname="$dir/$name"i $show "$install_prog $instname $destdir/$name" $run eval "$install_prog $instname $destdir/$name" || exit $? # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` ;; *.$objext) staticdest="$destfile" destfile= ;; *) $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac # Install the libtool object if requested. if test -n "$destfile"; then $show "$install_prog $file $destfile" $run eval "$install_prog $file $destfile" || exit $? fi # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` $show "$install_prog $staticobj $staticdest" $run eval "$install_prog \$staticobj \$staticdest" || exit $? fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then file=`$echo $file|${SED} 's,.exe$,,'` stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin*|*mingw*) wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` ;; *) wrapper=$file ;; esac if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then notinst_deplibs= relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac # Check the variables that should have been set. if test -z "$notinst_deplibs"; then $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 exit $EXIT_FAILURE fi finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then # If there is no directory component, then add one. case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac fi libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 finalize=no fi done relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then tmpdir=`func_mktempdir` file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP` $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 ${rm}r "$tmpdir" continue fi file="$outputname" else $echo "$modename: warning: cannot relink \`$file'" 1>&2 fi else # Install the binary that we compiled earlier. file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` ;; esac ;; esac $show "$install_prog$stripme $file $destfile" $run eval "$install_prog\$stripme \$file \$destfile" || exit $? test -n "$outputname" && ${rm}r "$tmpdir" ;; esac done for file in $staticlibs; do name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` # Set up the ranlib parameters. oldlib="$destdir/$name" $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? if test -n "$stripme" && test -n "$old_striplib"; then $show "$old_striplib $oldlib" $run eval "$old_striplib $oldlib" || exit $? fi # Do each command in the postinstall commands. cmds=$old_postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$future_libdirs"; then $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 fi if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi ;; # libtool finish mode finish) modename="$modename: finish" libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. cmds=$finish_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || admincmds="$admincmds $cmd" done IFS="$save_ifs" fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $run eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. test "$show" = : && exit $EXIT_SUCCESS $echo "X----------------------------------------------------------------------" | $Xsed $echo "Libraries have been installed in:" for libdir in $libdirs; do $echo " $libdir" done $echo $echo "If you ever happen to want to link against installed libraries" $echo "in a given directory, LIBDIR, you must either use libtool, and" $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" $echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" $echo " during execution" fi if test -n "$runpath_var"; then $echo " - add LIBDIR to the \`$runpath_var' environment variable" $echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $echo " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $echo " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $echo $echo "See any operating system documentation about shared libraries for" $echo "more information, such as the ld(1) and ld.so(8) manual pages." $echo "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS ;; # libtool execute mode execute) modename="$modename: execute" # The first argument is the command name. cmd="$nonopt" if test -z "$cmd"; then $echo "$modename: you must specify a COMMAND" 1>&2 $echo "$help" exit $EXIT_FAILURE fi # Handle -dlopen flags immediately. for file in $execute_dlfiles; do if test ! -f "$file"; then $echo "$modename: \`$file' is not a file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi dir= case $file in *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Read the libtool library. dlname= library_names= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" continue fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else if test ! -f "$dir/$dlname"; then $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 exit $EXIT_FAILURE fi fi ;; *.lo) # Just add the directory containing the .lo file. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. ;; *) $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` args="$args \"$file\"" done if test -z "$run"; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" $echo "export $shlibpath_var" fi $echo "$cmd$args" exit $EXIT_SUCCESS fi ;; # libtool clean and uninstall mode clean | uninstall) modename="$modename: $mode" rm="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) rm="$rm $arg"; rmforce=yes ;; -*) rm="$rm $arg" ;; *) files="$files $arg" ;; esac done if test -z "$rm"; then $echo "$modename: you must specify an RM program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi rmdirs= origobjdir="$objdir" for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$file"; then dir=. objdir="$origobjdir" else objdir="$dir/$origobjdir" fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if (test -L "$file") >/dev/null 2>&1 \ || (test -h "$file") >/dev/null 2>&1 \ || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. cmds=$postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. cmds=$old_postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # Read the .lo file . $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" \ && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" \ && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) file=`$echo $file|${SED} 's,.exe$,,'` noexename=`$echo $name|${SED} 's,.exe$,,'` # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then relink_command= . $dir/$noexename # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac $show "$rm $rmfiles" $run $rm $rmfiles || exit_status=1 done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then $show "rmdir $dir" $run rmdir $dir >/dev/null 2>&1 fi done exit $exit_status ;; "") $echo "$modename: you must specify a MODE" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE ;; esac if test -z "$exec_cmd"; then $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE fi fi # test -z "$show_help" if test -n "$exec_cmd"; then eval exec $exec_cmd exit $EXIT_FAILURE fi # We need to display help for each of the modes. case $mode in "") $echo \ "Usage: $modename [OPTION]... [MODE-ARG]... Provide generalized library-building support services. --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --finish same as \`--mode=finish' --help display this help message and exit --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] --quiet same as \`--silent' --silent don't print informational messages --tag=TAG use configuration variables from tag TAG --version print version information MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for a more detailed description of MODE. Report bugs to ." exit $EXIT_SUCCESS ;; clean) $echo \ "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $echo \ "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -static always build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $echo \ "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $echo \ "Usage: $modename [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $echo \ "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $echo \ "Usage: $modename [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $echo \ "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac $echo $echo "Try \`$modename --help' for more information about other modes." exit $? # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared disable_libs=shared # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static disable_libs=static # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: silo-4.8-bsd/config/missing0000755000707000001660000002557711444246315015354 0ustar miller86visit#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2006-05-10.23 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). case $1 in lex|yacc) # Not GNU programs, they don't have --version. ;; tar) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $1 in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: silo-4.8-bsd/config/bootstrap0000755000707000001660000000064611444246315015706 0ustar miller86visit#!/bin/sh #set -x HOST=`/usr/gapps/silo/autotools/bin/config.guess` AUTOTOOLS=/usr/gapps/silo/autotools/$HOST/bin # somewhat of a hack if test -x configure.ac ; then echo "must be in the same directory as ./configure to run this script" exit 1 fi if test "`which autoreconf`" != $AUTOTOOLS/autoreconf; then echo "make sure your path is set to the correct version of autotools" exit 1 fi $AUTOTOOLS/autoreconf -vif silo-4.8-bsd/config/mkinc0000755000707000001660000002305011444246315014764 0ustar miller86visit#!/bin/sh # Do a little magic to run perl from anywhere in your path. lines=`cat $0 | wc -l` lines=`expr $lines - 16` checksys=`uname -s` if [ "$checksys" != "SunOS" ] then tail -n $lines $0 > /tmp/visitperl$$ else tail -$lines $0 > /tmp/visitperl$$ fi echo "__END__" >> /tmp/visitperl$$ echo "$0 $*" >> /tmp/visitperl$$ exec perl /tmp/visitperl$$ $0 ${1+"$@"} unlink $0; $0 = shift @ARGV; ######################################################################### # Copyright (c) 1994 - 2010, Lawrence Livermore National Security, LLC. # LLNL-CODE-425250. # All rights reserved. # # This file is part of Silo. For details, see silo.llnl.gov. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the disclaimer below. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the disclaimer (as noted # below) in the documentation and/or other materials provided with # the distribution. # * Neither the name of the LLNS/LLNL nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE # LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # This work was produced at Lawrence Livermore National Laboratory under # Contract No. DE-AC52-07NA27344 with the DOE. # # Neither the United States Government nor Lawrence Livermore National # Security, LLC nor any of their employees, makes any warranty, express # or implied, or assumes any liability or responsibility for the # accuracy, completeness, or usefulness of any information, apparatus, # product, or process disclosed, or represents that its use would not # infringe privately-owned rights. # # Any reference herein to any specific commercial products, process, or # services by trade name, trademark, manufacturer or otherwise does not # necessarily constitute or imply its endorsement, recommendation, or # favoring by the United States Government or Lawrence Livermore # National Security, LLC. The views and opinions of authors expressed # herein do not necessarily state or reflect those of the United States # Government or Lawrence Livermore National Security, LLC, and shall not # be used for advertising or product endorsement purposes. ######################################################################### # # Purpose: Build the `silo.inc' Fortran include file from the # C header files `silo.h' and `silo-f.h' by defining # the public Fortran functions and the DB_* and DBOPT_* # constants. # # Usage: Run this script with input redirected from `silo.h' # and output directed to `silo.inc' as in: # # mv silo.inc silo.inc~ # mkinc < silo.h > silo.inc # # Programmer: Robb Matzke, Wed Nov 30 10:44:43 PST 1994 # # Modified: # # Robb Matzie, Mon Dec 19 10:45:49 PST 1994 # The SDX_ prefix is removed from those #define's. # # Sean Ahern, Wed Apr 19 16:07:19 PDT 1995 # Added a list of character arrays. # # Sean Ahern, Fri Oct 11 12:22:04 PDT 1996 # Added parsing of enum datatypes. # # Robb Matzke, 12 Mar 1997 # The generated files have `-*- fortran -*-' in the first line so # emacsen know the type (since `.inc' isn't too standard). # # Robb Matzke, 10 Jun 1997 # Added a comma to the stop set for matching enum NAME=VALUE pairs. # Changed a Perl-5 construct to Perl-4. # # Eric Brugger, Thu Sep 2 08:28:05 PDT 1999 # I modified the script to output Fortran 90 style comments instead # of Fortran 77 style comments. Sean also changed a couple of lines # to eliminate a run time warning. # # Mark C. Miller, Thu Nov 2 14:30:00 PST 2006 # Made it handle SILO_VERS_... symbols # # Thomas R. Treadway, Thu Oct 11 15:21:03 PDT 2007 # Modfied to handle new Fortran name-mangling # ######################################################################### local (@parameters, @functions); local ($sdx) = 0; local($enum_body) = 0; local($brace_level) = 0; ### Gather the info... while (<>) { next if (/NO_FORTRAN_DEFINE/); if (/^#[ \t]*define[ \t]+((SILO_VERS|DB|SDX)(OPT|CSG)?_\w+)[ \t]+([^ \t\n]*)/) { local ($name, $value) = ($1, $4); $sdx=1 if ($name=~/^SDX/); $name =~ s/^SDX_//; if ($name eq "SILO_VERS_TAG") { next; } if ($value eq "") { $value = 0; } if (/FORTRAN STRING/) { push (@strings, join(':',$name,$value)); } else { push (@parameters, join(':',$name,$value)); } } if (/^#[ \t]*define[ \t]+\w+[ \t]+FC_FUNC[ \t]*\([ \t]*(\w+)[ \t,]+\w+/) { push (@functions, $1); } # Turn on `enum' handling? $enum_body = $brace_level+1 if /^(typedef\s+)?enum\b/; $brace_level += tr/{/{/; $brace_level -= tr/}/}/; # Turn off `enum' handling. This assumes that the left curly # brace for the enum body is on the same line as `enum'. $enum_body = 0 if $brace_level<$enum_body; # The enum body must be indented. The `VAR=VALUE' form must be used. if ($enum_body && /^\s+(DB_\w+)\s*=\s*([^ \t\n,]+)\s*,?/) { push (@parameters, join (':', $1, $2)); } } # # Write a Fortran comment describing this file. # $title = ($sdx?"SDX":"SILO"); $date = `date`; chop($date); $user = $ENV{USER}; print <<"EOF"; !cccccccccccccccccccccccccccccccccccccccccccccccccccccccc -*- fortran -*- ! ! $title include file for Fortan applications. ! ! Programmer: $user $date ! ! WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ! This file is generated automatically from C header files in the ! SILO distribution. Do not make changes to this file manually, ! as those changes will disappear. ! WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ! ! This file was generated by the following commands... EOF if ($sdx) { print <<"EOF"; ! mv sdx.inc sdx.inc~ ! cat sdx.h sdx_server.h | mkinc > sdx.inc ! !cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc EOF } else { print <<"EOF"; ! mv silo.inc silo.inc~ ! cat silo.h silo_f.h | mkinc > silo.inc ! !cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc EOF } ### Write `external' statements for the functions... print "!...Functions.\n"; $line = ""; foreach $var (sort @functions) { if (length($line)+2+length($var)>72) { print "$line\n"; $line = ""; } if (0==length($line)) { $line = " external $var"; } else { $line .= ", " . $var; } } print "$line\n" if (0!=length($line)); ### Write `integer' statements for the functions... print "\n"; $line = ""; foreach $var (sort @functions) { if (length($line)+2+length($var)>72) { print "$line\n"; $line = ""; } if (0==length($line)) { $line = " integer $var"; } else { $line .= ", " . $var; } } print "$line\n" if (0!=length($line)); ### Write `integer' statements for the constants... print "\n\n!...Parameters.\n"; $line = ""; foreach $var (sort @parameters) { local ($name, $value) = split (':', $var); if (length($line)+2+length($name)>72) { print "$line\n"; $line = ""; } if (0==length($line)) { $line = " integer $name"; } else { $line .= ", " . $name; } } print "$line\n" if (0!=length($line)); ### Write `character' statements for the constants... foreach $var (sort @strings) { local ($name, $value) = split (':', $var); print " character*".length($value)." $name\n"; } ### Write `parameter' statements for the constants... ### Don't sort these, because some $value's may depend on ### previous parameter statements. print "\n"; push(@temparray,@parameters); push(@temparray,@strings); foreach $var (@temparray) { local ($name, $value) = split (':', $var); if ($value =~ /^0x[0-9A-F]*/) { $value = hex($value); } elsif ($value =~ /^0[0-7]*/) { $value = oct($value); } elsif ($value =~ /^DB_HDF5_OPTS(.*)/) { local ($foo, $bar) = split ('\(', $value); local ($g1, $g2) = split ( '\)', $bar); $value = "DB_HDF5X+$g1*2048"; } $line = sprintf(" parameter (%-25s = %-15s)", $name, $value); if (length($line)>72) { local $off=0; while ($off < length($line)) { $curline = substr($line, $off, $off+64); if ($off == 0) { printf "$curline\n"; } else { printf " c$curline\n"; } $off += 64; } } else { printf "$line\n"; } } print "\n\n! End.\n"; exit 0; silo-4.8-bsd/configure.ac0000644000707000001660000015047011444246315014765 0ustar miller86visitdnl Copyright (c) 1994 - 2010, Lawrence Livermore National Security, LLC. dnl LLNL-CODE-425250. dnl All rights reserved. dnl dnl This file is part of Silo. For details, see silo.llnl.gov. dnl dnl Redistribution and use in source and binary forms, with or without dnl modification, are permitted provided that the following conditions dnl are met: dnl dnl * Redistributions of source code must retain the above copyright dnl notice, this list of conditions and the disclaimer below. dnl * Redistributions in binary form must reproduce the above copyright dnl notice, this list of conditions and the disclaimer (as noted dnl below) in the documentation and/or other materials provided with dnl the distribution. dnl * Neither the name of the LLNS/LLNL nor the names of its dnl contributors may be used to endorse or promote products derived dnl from this software without specific prior written permission. dnl dnl THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS dnl "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT dnl LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR dnl A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE dnl LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR dnl CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, dnl EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, dnl PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR dnl PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF dnl LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING dnl NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS dnl SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. dnl dnl This work was produced at Lawrence Livermore National Laboratory under dnl Contract No. DE-AC52-07NA27344 with the DOE. dnl dnl Neither the United States Government nor Lawrence Livermore National dnl Security, LLC nor any of their employees, makes any warranty, express dnl or implied, or assumes any liability or responsibility for the dnl accuracy, completeness, or usefulness of any information, apparatus, dnl product, or process disclosed, or represents that its use would not dnl infringe privately-owned rights. dnl dnl Any reference herein to any specific commercial products, process, or dnl services by trade name, trademark, manufacturer or otherwise does not dnl necessarily constitute or imply its endorsement, recommendation, or dnl favoring by the United States Government or Lawrence Livermore dnl National Security, LLC. The views and opinions of authors expressed dnl herein do not necessarily state or reflect those of the United States dnl Government or Lawrence Livermore National Security, LLC, and shall not dnl dnl This is the autoconf configuration file for MeshTV and company. dnl Robb Matzke dnl Mar 18, 1996 dnl dnl Modifications: dnl dnl Robb Matzke, 5 Mar 1997 dnl Replaced `touch X' with `echo something > X' because touch doesn't dnl update the mtime when touching an empty file on some old BSD systems dnl (and neither do other commands that open an empty file for read/write dnl access). dnl dnl Robb Matzke, 6 Mar 1997 dnl Added checks for `-lXpm' and `-lXext' needed by meshtv and meshtvx. dnl dnl Robb Matzke, 19 Mar 1997 dnl Added a check for a site configuration file based on the host dnl name. If `hostname` returns X, then the configuration file dnl ./cofig-site/X.conf is sourced. The file contains envronment dnl variable settings which would have normally appeared on the dnl command line so that when make reruns configure the appropriate dnl variables are set. For instance, when I work on maya.nuance.mdn.com dnl I use the GNU gcc compiler and I want to turn on warnings and generate dnl debug tables. This is done by adding the line dnl dnl export CFLAGS="-Wall -g" dnl dnl to the ./config-site/maya.nuance.mdn.com.conf file. These personal dnl site configuration files should not be part of a distribution. dnl dnl Robb Matzke, 20 Mar 1997 dnl The builtin `pwd' command fails on some systems, so we use dnl `/bin/pwd' instead if available. dnl dnl Robb Matzke, 20 Mar 1997 dnl Added the `-f /dev/null' option to the GNU make test in case dnl a valid makefile accidently exists. dnl dnl Robb Matzke, 2 Apr 1997 dnl Removed the AC_FUNC_MMAP check since nothing uses it. dnl dnl Robb Matzke, 15 May 1997 dnl Removed OS_TYPE as a config.h constant since it was never added to dnl acconfig.h anyway. dnl dnl Quincey Koziol, 15 May 1997 dnl Added link checking for FreeBSD. dnl dnl Sean Ahern, 18 June 1997 dnl Added the ability to have a config-site configuration file that is dnl named the same as the operating system. Configure now checks dnl automatically for this (using uname(1)). For example, I added dnl config-site/OSF1.conf for DEC machines. Any configuration needed for dnl that operating system should go in that file. dnl dnl Robb Matzke, 19 Jun 1997 dnl Changed the default from `test -L' to `test -h'. dnl dnl Robb Matzke, 27 Aug 1997 dnl Added -I/usr/local/include and -L/usr/local/lib to the compile dnl command so we have a better chance of finding the readline dnl library. dnl dnl Robb Matzke, 23 Dec 1997 dnl Added ability to turn off checking for the GNU readline since lots dnl of systems have the software but it's misconfigured, causing dnl configure to detect it's presence and causing make to fail. Say dnl `--without-readline' to turn detection off. dnl dnl Robb Matzke, 4 Feb 1998 dnl Combined GNU target file with non-GNU target file and put the results dnl in include/make-targets.in with the other targets. dnl dnl Eric Brugger, Wed Aug 12 15:50:27 PDT 1998 dnl I made the libraries load static on Linux since most people do not dnl have Motif. Added a check for the Motif includes and libraries dnl being found without an explicit include or lib path and added one dnl one if it didn't work. I changed the CPPFLAGS and LDFLAGS to dnl append /usr/local/include and /usr/local/lib instead of setting it dnl if they weren't already set. I modified LDFLAGS to contain $tmplib dnl at the beginning so that libraries will be found in the local lib dnl directory before the public lib directories. dnl dnl Eric Brugger, Thu Aug 13 13:18:43 PDT 1998 dnl I corrected a bug with the checking of the knowledge of the Motif dnl libraries where the test always returned false. dnl dnl Eric Brugger, Fri Aug 28 16:43:46 PDT 1998 dnl I added support for parallel meshtv. dnl dnl Sean Ahern, Wed Dec 2 11:29:54 PST 1998 dnl Added a check for "clearmake". If we're running clearmake, dnl set the verbosity to 0. Also, create a line for the dnl compile target in the Makefiles so that clearmake only dnl winks in object files that have been created on the same OS dnl type. dnl dnl Eric Brugger, Mon Dec 28 09:51:18 PST 1998 dnl I removed checks for basename and dirname. The behavior of both dnl is poorly defined and varies between OSes. We could check for a dnl specific behavior and then use the system one in that case that dnl is a lot of work when using our own is much simpler. dnl dnl Robb Matzke, Tue Feb 9 10:38:54 EST 1999 dnl Check for location of hdf5 headers and libraries. dnl dnl Robb Matzke, Tue Mar 2 16:35:48 EST 1999 dnl Check for location of vbt, dsl, and dmf headers and libraries. dnl dnl Eric Brugger, Mon Mar 15 11:39:40 PST 1999 dnl Made the silo netcdf, pdb and taurus drivers optional. dnl dnl Mark Miller, Thu Mar 25 17:11:34 PST 1999 dnl Made dmf and hdf5 drivers optional as Eric did above dnl dnl Jeremy Meredith, Thu May 20 15:56:45 PDT 1999 dnl Added a check for a site config with the first field of hostname dnl removed. This allows a single site config for node-addressable dnl machines such as the IBM SP2. Also reordered the hostname and dnl OSname config checks so that a single machine can override the dnl OS-based default configuration. dnl dnl Brad Whitlock, Wed Jun 23 15:30:34 PST 1999 dnl Added a check for the VDL libraries. If the environment variable dnl "VDL" is set, then the CFLAGS of meshtvx and Spi are modified dnl to include -DVDL and -I$(VDL)/include and -L$(VDL)/lib. dnl dnl Jeremy Meredith, Tue Jul 27 18:27:37 PDT 1999 dnl Added code to clear MPI_LIBS if we did not --enable-parallel. dnl dnl Eric Brugger, Wed Aug 11 13:11:45 PDT 1999 dnl I removed the check for -lXpm. I modified the script to only dnl check for -lXext on Linux. I modified the script to only check dnl for -lnsl and -lsocket on Solaris. dnl dnl Brad Whitlock, Wed Jul 7 15:29:45 PST 1999 dnl Added a check for parallel when the VDL libraries are being dnl checked. If parallel is enabled at that time, then the VDLP dnl driver will be compiled. dnl dnl Eric Brugger, Fri Oct 8 14:12:27 PDT 1999 dnl I added a check for -lXp on Linux. dnl dnl Brad Whitlock, Fri Nov 5 14:53:17 PST 1999 dnl Removed the GL driver from SpiLib. dnl dnl Jeremy Meredith, Thu Nov 11 13:35:02 PST 1999 dnl Added ability to have dynamic libraries on Linux systems. dnl dnl Brad Whitlock, Thu Oct 14 10:23:34 PDT 1999 dnl Added build target for the spectrum widget. dnl dnl Jeremy Meredith and Sean Ahern, Mon Dec 13 14:24:28 PST 1999 dnl Allow override of MPI_LIBS by external configuration. dnl dnl Jeremy Meredith, Fri Jan 7 10:19:39 PST 2000 dnl Check for existence of Mesa. If it's not there: error if we need it, dnl don't try to build it if we don't need it. dnl dnl Brad Whitlock, Thu Feb 17 15:17:41 PST 2000 dnl I added -lpt to the meshtvx link line when using VDL. This makes dnl meshtv work with the new VDL library. dnl dnl Sean Ahern, Mon Jan 10 16:26:31 PST 2000 dnl I put in logic to read the version number in from a file. dnl dnl Brad Whitlock, Thu Feb 10 16:47:50 PST 2000 dnl Added --disable-sdx flag. Also added a variable called dnl tflops_override which will be set to yes on TFLOPS systems. dnl (ASCI Red) This bypasses some function tests. Added --disable_gui dnl flag. This disables all X and motif stuff from meshtvx and Spi. dnl Added --disable-browser so it does not have to be compiled. dnl dnl Brad Whitlock, Fri Mar 31 16:41:33 PST 2000 dnl Fixed a bug that caused a parallel compiler to be used all the time dnl on some platforms. dnl dnl Eric Brugger, Mon May 15 12:02:59 PDT 2000 dnl I changed references of -lpt to -lptutil to account for the name dnl change of the library. dnl dnl Mark Miller, Wed Aug 23 15:38:27 PDT 2000 dnl I changed the logic for lib hdf5 to deal correctly with presence or dnl absence of zlib. dnl dnl Eric Brugger, Fri Apr 6 17:52:30 PDT 2001 dnl I added -lXext to the meshtvx link line when using VDL. This makes dnl meshtv work with the new VDL library. dnl dnl Brad Whitlock, Tue Jan 22 16:42:30 PST 2002 dnl I added options for building JPEG support. dnl dnl Eric Brugger, Tue Mar 12 10:44:02 PST 2002 dnl I made the tests for jpeg and glr support more robust. I also added dnl a check which adds the dynamic link library (-ldl) on Linux. dnl dnl Jeremy Meredith, Wed Apr 24 11:17:24 PDT 2002 dnl I changed the SunOS linker flags for the jpeg library. dnl dnl Mark Miller, Tue Oct 1 12:27:07 PDT 2002 dnl I removed the old dmf-driver checks dnl I fixed the check for hdf5 libs to only change $LIB if HDF5 was dnl requested AND found. dnl I removed the checks for GLR dnl dnl Eric Brugger, Fri Nov 8 15:15:26 PST 2002 dnl I removed the logic that statically loaded the libraries on Linux dnl systems. dnl dnl Eric Brugger, Thu Dec 5 13:27:13 PST 2002 dnl I reordered some of the tests to avoid a problem with hdf5 and the dnl size tests. dnl dnl Eric Brugger, Thu Sep 4 13:05:39 PDT 2003 dnl I corrected a bug with --without-exodus not disabling the exodus dnl driver. dnl dnl Eric Brugger, Tue Mar 2 12:41:32 PST 2004 dnl I modified the hdf5 library logic to statically link the hdf5 dnl library to avoid LD_LIBRARY_PATH problems and having to distribute dnl the shared hdf5 library with binary distributions. dnl dnl Jeremy Meredith, Tue Jul 12 16:34:00 PDT 2005 dnl Added a Python wrapper for Silo. This required adding dnl checks for the Python include files, adding support dnl for shared libraries, and adding support for C++ builds. dnl dnl Eric Brugger, Thu Mar 9 08:49:31 PST 2006 dnl I added AC_PROG_EGREP to avoid some problems handling uid and gid dnl on some platforms. dnl dnl Thomas Treadway, Mon May 22 11:30:52 PDT 2006 dnl Initial configuration file for Silo, after MeshTV split. dnl Based on Mark Miller's "meshtv_mark_silo_451_enhancments" view. dnl Reformated to support recent versions autoconf, and automake. dnl dnl Thomas Treadway, Mon Jun 1 13:11:00 PDT 2006 dnl Bugs go to visit-help@llnl.gov dnl dnl Thomas Treadway, Mon Jun 12 10:24:53 PDT 2006 dnl Conversion to libtool seems to be working pretty well. dnl Currently using autoreconfig via config/bootstrap to use dnl autoheaders, libtoolize, aclocal, automake, autoconf, and dnl autotest. dnl dnl Thomas Treadway, Mon Jun 26 13:06:39 PDT 2006 dnl The building of tools/python is conditional and performed only on dnl explicit request. dnl dnl Thomas Treadway, Wed Sep 13 12:45:01 PDT 2006 dnl Changed defaults: fortran compiler, optimization, and largefiles. dnl dnl Thomas Treadway, Fri Oct 6 13:50:01 PDT 2006 dnl re-enabled config-site files, added version information file dnl src/libsilo.settings or src/libsiloh5.settings, changed version dnl back to 4.6 (expect 5.0 after re-factoring of the driver code into dnl an abstract I/O layer. dnl dnl Mark C. Miller, Wed Oct 18 17:36:59 PDT 2006 dnl Added AC_DEFINE_UNQUOTED calls to create compile-time symbols for dnl Silo's version information. Added code at end to put this into dnl a separate 'config_vers.h' file dnl dnl Thomas R. Treadway, Thu Mar 15 12:19:56 PDT 2007 dnl Added hooks for building Macintosh application bundle dnl Added szlib support dnl dnl Thomas R. Treadway, Mon Jul 23 10:32:06 PDT 2007 dnl Added support for Peter Lindstrom's compression algorthims. dnl dnl Thomas R. Treadway, Tue Oct 23 11:47:22 PDT 2007 dnl Corrected HDF5 checking when szip present. dnl New pre-release. dnl dnl Thomas R. Treadway, Thu Oct 25 16:32:40 PDT 2007 dnl Using environment variable to over SZLIB, HDF5, SILEX, QT, dnl Fortran, and readline. dnl dnl Thomas R. Treadway, Thu Oct 25 16:32:40 PDT 2007 dnl Changed release, and auspices statement dnl dnl Thomas R. Treadway, Wed Nov 28 14:17:56 PST 2007 dnl Changed release to 4.6.1 dnl Added check for sys/stat.h dnl Removed src/swat directory dnl dnl Mark C. Miller, Wed Jul 2 09:08:13 PDT 2008 dnl Isolated version information to VERSION file, though configure dnl still needs to get re-generated with each new version. dnl Removed slew of extraneous refs to 'UsingXXX' variables. dnl dnl Mark C. Miller, Mon Mar 30 13:29:57 PDT 2009 dnl Fixed uname="`uname`" to UNAME="`uname`" so Darwin check would work. dnl dnl Mark C. Miller, Wed Sep 2 15:21:52 PDT 2009 dnl Making it work with '--with-hdf5' where HDF5 locations are specified dnl in the config-site file. Fixed problem where READLINE_LIBS was dnl getting populated with ALL libs not just those necessary to support dnl readline. Fixed problem where browser would REQUIRE readline. Still dnl can't handle case where user wants to specify different readline dnl include/lib dirs. dnl dnl Mark C. Miller, Sat Dec 5 15:20:30 PST 2009 dnl Added logic to inspect size of long and long long datatypes and, if dnl they are different sizes, ensuring Silo's DB_LONG_LONG enum value dnl is unique. Otherwise, ensuring it is the same as DB_LONG enum value. dnl dnl Mark C. Miller, Wed Jul 21 09:31:24 PDT 2010 dnl Adjusted logic to support BSD releases which will NOT include dnl hzip/fpzip compression features or source dirs. dnl -------------------------------------------------------------------------- dnl dnl The esyscmd macro invokation allows us to keep version number in dnl VERSION file and just re-generate configure instead of having to dnl also checkout and edit configure.ac dnl m4_define(SILO_VERSION, m4_esyscmd([cat VERSION | tr -d '\n'])) m4_define(SILO_NAME, silo) m4_define(SILO_BUGS,visit-users@email.ornl.gov) m4_define(SILO_TOP_SRC_DIR, `pwd`) AC_PREREQ(2.60) AC_REVISION($Id$)dnl AC_INIT(SILO_NAME, SILO_VERSION, SILO_BUGS, SILO_NAME) AC_CONFIG_SRCDIR([src/silo/silo.h.in]) AC_CONFIG_AUX_DIR(config) dnl AM_INIT_AUTOMAKE takes a list of options that should be applied to dnl every Makefile.am when automake is run. AM_INIT_AUTOMAKE([1.9 foreign no-installinfo no-installman no-texinfo.tex]) AC_CONFIG_HEADER([config.h:config/config.h.in]) dnl AM_MAINTAINER_MODE turns off "rebuild rules" that contain dependencies dnl for Makefiles, configure, src/H5config.h, etc. If AM_MAINTAINER_MODE dnl is *not* included here, these files will be rebuilt if out of date. dnl This is a problem because if users try to build on a machine with dnl the wrong versions of autoconf and automake, these files will be dnl rebuilt with the wrong versions and bad things can happen. dnl Also, Clearcase doesn't preserve dependencies between timestamps dnl when doing (group) checkin's, so extra care is needed to manually dnl verify timestamps (see, FAQ) so that Makefiles doesn't think rebuilding dnl needs to occur when it doesn't. dnl Developers should './configure --enable-maintainer-mode' to turn on dnl rebuild rules. AM_MAINTAINER_MODE AC_COPYRIGHT([This work was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory in part under Contract W-7405-Eng-48 and in part under Contract DE-AC52-07NA27344.]) # using autotest AC_CONFIG_TESTDIR(tests) dnl Change the default prefix (/usr/local) to `pwd` dnl Set prefix default (install directory) to a directory in the build area. dnl This allows multiple src-dir builds within one host. AC_PREFIX_DEFAULT("SILO_TOP_SRC_DIR") dnl dnl Handle the python module right away to determine if we need shared libs. dnl Ordinarily, we default to static libs dnl PYTHONMODULE=$DEFAULT_PYTHONMODULE AC_ARG_ENABLE(pythonmodule, AS_HELP_STRING([--enable-pythonmodule],[build python module @<:@default=no@:>@]), if test "$enable_pythonmodule" = "yes"; then PYTHONMODULE="python" fi) AC_SUBST(PYTHONMODULE) if test -n "$PYTHONMODULE"; then AC_ENABLE_SHARED else AC_DISABLE_SHARED fi dnl Determine the host type AC_CANONICAL_HOST # Grab the version number AC_MSG_CHECKING(what version the package is) AC_MSG_RESULT(SILO_VERSION) AC_SUBST([SILO_VERS_MAJ]) SILO_VERS_MAJ="`echo SILO_VERSION | cut -d'.' -f1`" AC_SUBST([SILO_VERS_MIN]) SILO_VERS_MIN="`echo SILO_VERSION | cut -d'.' -f2 | cut -d'-' -f1`" AC_SUBST([SILO_VERS_PAT]) SILO_VERS_PAT="`echo SILO_VERSION | cut -d'.' -f3 | cut -d'-' -f1`" AC_SUBST([SILO_VERS_PRE]) SILO_VERS_PRE="`echo SILO_VERSION | grep pre | cut -d'-' -f2 | cut -d'e' -f2`" AC_SUBST([SILO_VERS_TAG]) SILO_VERS_TAG="`echo Silo_version SILO_VERSION | sed -e 's/ /_/' -e 's/\./_/g' -e 's/-/_/g'`" dnl Configuration command invocation AC_SUBST([CONFIG_CMD]) CONFIG_CMD="`echo $0 $ac_configure_args`" dnl Configuration date AC_SUBST([CONFIG_DATE]) CONFIG_DATE="`date`" dnl User doing the configuration AC_SUBST([CONFIG_USER]) CONFIG_USER="`whoami`@`hostname`" if test -n "$ORGANIZATION"; then CONFIG_USER="$CONFIG_USER at $ORGANIZATION" fi dnl ---------------------------------------------------------------------- dnl dnl Specify default settings for various options. These may be overridden dnl in site-specific config files. Empty string means feature is disabled dnl while non-empty string means it is enabled. dnl DEFAULT_PYTHONMODULE="" DEFAULT_BROWSER="browser" DEFAULT_SILEX="silex" DEFAULT_HZIP="hzip" DEFAULT_FPZIP="fpzip" DEFAULT_FORTRAN="fortran" default_detect_readline="yes" dnl Source any special site-specific file hname="`hostname`" file=$srcdir/config-site/$hname.conf AC_MSG_CHECKING([for site config host file]) if test -f "$file"; then . $file AC_MSG_RESULT(found [$file]) else hname="`hostname | cut -f1 -d.`" file=$srcdir/config-site/$hname.conf if test -f "$file"; then . $file AC_MSG_RESULT(found [$file]) else AC_MSG_RESULT([no]) fi fi dnl Source any special files that we need. These files normally aren't dnl present but can be used by the maintainers to fine tune things like dnl turning on debug or profiling flags for the compiler. The search order dnl is: dnl dnl CPU-VENDOR-OS dnl VENDOR-OS dnl CPU-OS dnl CPU-VENDOR dnl OS dnl VENDOR dnl CPU dnl uname dnl dnl If the `OS' ends with a version number then remove it. For instance, dnl `freebsd3.1' would become `freebsd' case $host_os in aix4.*) host_os_novers=aix4.x ;; aix5.*) host_os_novers=aix5.x ;; freebsd*) host_os_novers=freebsd ;; irix5.*) host_os_novers=irix5.x ;; irix6.*) host_os_novers=irix6.x ;; osf4.*) host_os_novers=osf4.x ;; osf5.*) host_os_novers=osf5.x ;; solaris2.*) host_os_novers=solaris2.x ;; *) host_os_novers=$host_os ;; esac UNAME="`uname`" host_config="none" for f in $host_cpu-$host_vendor-$host_os \ $host_cpu-$host_vendor-$host_os_novers \ $host_vendor-$host_os \ $host_vendor-$host_os_novers \ $host_cpu-$host_os \ $host_cpu-$host_os_novers \ $host_cpu-$host_vendor \ $host_os \ $host_os_novers \ $host_vendor \ $host_cpu \ $UNAME; do AC_MSG_CHECKING([for config-site $f]) if test -f "$srcdir/config-site/$f.conf"; then host_config=$srcdir/config-site/$f.conf AC_MSG_RESULT([found]) break fi AC_MSG_RESULT([no]) done if test "X$host_config" != "Xnone"; then . $host_config fi # # MCM -- 22Jul08. I don't know why we're mixing FC and F77 stuf here. # According to autoconf web pages, we should probably use one or the # other but not both. Also, given that silo_f.h uses FC_FUNC macro, # I don't see how we can get by using F77. So, it is removed and we're # using only FC. # dnl handle fortran compiler. FORTRAN=$DEFAULT_FORTRAN AC_ARG_ENABLE(fortran, AC_HELP_STRING([--enable-fortran], [compile Fortran interface to Silo @<:@default=yes@:>@]), if test "$enable_fortran" = "no" ; then FORTRAN="" fi) AC_SUBST(FORTRAN) # Check for programs. # We shouldn't depend on too many! AC_PROG_CXX AC_PROG_CC AC_PROG_CPP if test -n "$FORTRAN"; then AC_PROG_FC AC_FC_LIBRARY_LDFLAGS AC_FC_WRAPPERS fi AC_PROG_MAKE_SET AC_PROG_LIBTOOL AC_ISC_POSIX # save the cache so far AC_CACHE_SAVE dnl C optimization flags AC_ARG_ENABLE(optimization, AC_HELP_STRING([--enable-optimization], [compile with optimization @<:@default=no@:>@]), [case "${enableval}" in yes) USING_DEBUG="no";; no) USING_DEBUG="yes";; *) AC_MSG_ERROR(bad value ${enableval} for --enable-optimization) ;; esac], [USING_DEBUG="yes"]) dnl Conform to legacy API where datatype'd pointers are used SILO_DTYPPTR="void" SILO_DTYPPTR1="void*" SILO_DTYPPTR2="void*" AC_ARG_ENABLE(legacy-datatyped-pointers, AC_HELP_STRING([--enable-legacy-datatyped-pointers], [compile using legacy (float) pointers for datatype'd pointers @<:@default=no@:>@]), if test $enableval = yes; then SILO_DTYPPTR="float" SILO_DTYPPTR1="float*" SILO_DTYPPTR2="float**" fi) AC_SUBST(SILO_DTYPPTR) AC_SUBST(SILO_DTYPPTR1) AC_SUBST(SILO_DTYPPTR2) dnl we don't need to check for netcdf driver. It is always there. NETCDF="netcdf" AC_DEFINE(HAVE_NETCDF_DRIVER,1,[Support for NetCDF]) AC_SUBST(NETCDF) dnl we don't need to check for pdb driver. It is always there. PDB_DRV="pdb_drv" AC_DEFINE(HAVE_PDB_DRIVER,1,[Support for PDB]) AC_SUBST(PDB_DRV) dnl we don't need to check for taurus driver. It is always there. TAURUS="taurus" AC_DEFINE(HAVE_TAURUS_DRIVER,1,[Support for Taurus]) AC_SUBST(TAURUS) dnl we don't need to check for hdf5 driver. It is always there. HDF5_DRV="hdf5_drv" AC_SUBST(HDF5_DRV) # Some sites have the GNU readline header files and libraries installed # incorrectly which causes programs that use them to not link or possibly # not run. This configure doesn't check for misconfigured systems, but # it does allow the user to prevent the GNU readline files from being # detected. AC_ARG_WITH(readline, AC_HELP_STRING([--with-readline], [enable detection of GNU readline @<:@default=yes@:>@]), detect_readline=$withval, detect_readline=$default_detect_readline) dnl dnl handle browser. dnl BROWSER=$DEFAULT_BROWSER AC_ARG_ENABLE(browser, AC_HELP_STRING([--enable-browser], [build browser @<:@default=yes@:>@]), if test "$enable_browser" = "no"; then BROWSER="" fi) AC_SUBST(BROWSER) dnl handle silex SILEX=$DEFAULT_SILEX AC_ARG_ENABLE(silex, AC_HELP_STRING([--enable-silex], [build the silex browser @<:@default=no@:>@]), if test "$enable_silex" = "no"; then SILEX="" fi) AC_SUBST(SILEX) dnl Handle explicit request for libz AC_ARG_WITH(zlib, [ --with-zlib=INC,DIR Use the GNU zlib compression @<:@default=yes@:>@]) if test "$with_zlib" = no; then AC_DEFINE(HAVE_ZLIB_H,0) AC_DEFINE(HAVE_LIBZ,0) ZLIB="" elif test -n "$with_zlib" && test "$with_zlib" != yes; then ZLIB_INCDIR="`echo $with_zlib |cut -f1 -d,`" if test ! -f $ZLIB_INCDIR/zlib.h; then AC_MSG_ERROR(problem with directory specified for zlib includes) fi ZLIB_LIBDIR="`echo $with_zlib | cut -f2 -d, -s`" if test ! -f $ZLIB_LIBDIR/libz.a && test ! -f $ZLIB_LIBDIR/libz.so; then AC_MSG_ERROR(problem with directory specified for zlib libs) fi CPPFLAGS="$CPPFLAGS -I$ZLIB_INCDIR" LDFLAGS="$LDFLAGS -L$ZLIB_LIBDIR" LIBS="$LIBS -lz" AC_DEFINE(HAVE_ZLIB_H,1) AC_DEFINE(HAVE_LIBZ,1) ZLIB="zlib" fi dnl handle Peter Lindstrom's hzip compression stuff AC_MSG_CHECKING(for hzip) if test -d $srcdir/src/hzip; then AC_MSG_RESULT(found) HZIP=$DEFAULT_HZIP else AC_MSG_RESULT(hzip compression not available in BSD version) HZIP="" fi AC_ARG_ENABLE(hzip, AC_HELP_STRING([--enable-hzip], [enable Lindstrom hex/quad mesh compression @<:@default=yes@:>@]), if test "$enable_hzip" = "no"; then HZIP="" fi) AC_SUBST(HZIP) dnl hzip does better with zlib if available. It may have been dnl explicitly turned off, above. If not, Assume we have both dnl header & lib. Turn it off if not. if test -n "$HZIP" && test "$with_zlib" != no; then AC_DEFINE(HAVE_HZIP,1,[Support for Lindstrom hex/quad mesh compression]) ZLIB="zlib" AC_CHECK_HEADERS(zlib.h,have_zlib_h="yes") if test -n "$have_zlib_h"; then AC_CHECK_LIB(z, inflateEnd) if test -z "`echo $LIBS | tr ' ' '\n' | grep -x -e '-lz'`"; then AC_DEFINE(HAVE_ZLIB_H,0) AC_DEFINE(HAVE_LIBZ,0) ZLIB="" fi fi AC_SUBST(ZLIB) fi dnl enable Peter Lindstrom's fpzip compression stuff AC_MSG_CHECKING(for fpzip) if test -d $srcdir/src/fpzip; then AC_MSG_RESULT(found) FPZIP=$DEFAULT_FPZIP else AC_MSG_RESULT(fpzip compression not available in BSD version) FPZIP="" fi AC_ARG_ENABLE(fpzip, AC_HELP_STRING([--enable-fpzip], [enable Lindstrom float 1,2,3D array compression @<:@default=yes@:>@]), if test "$enable_fpzip" = "no"; then FPZIP="" fi) AC_SUBST(FPZIP) if test -n "$FPZIP"; then AC_DEFINE(HAVE_FPZIP,1,[Support for Lindstrom float array compression]) fi # Turn on C optimization flags AC_MSG_CHECKING(compiler optimization) if test "X$USING_DEBUG" = Xno; then # use contributed GNU m4 macro library provided see: # autoconf-archive-2006-06-04/htmldoc/ax_cc_maxopt.html AX_CC_MAXOPT AC_MSG_RESULT(enabled) else AC_MSG_RESULT(disabled) fi dnl # # MCM: I have no idea what good the following line does. I think # all compilers accept the -D argument and any string following # it is an argument to the -D argument. So, I think this is # just totally bogus! # Default to large file support AX_CHECK_COMPILER_FLAGS("-D_LARGEFILE_SOURCE",CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE";) AX_CHECK_COMPILER_FLAGS("-D_LARGEFILE64_SOURCE",CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE";) AX_CHECK_COMPILER_FLAGS("-D_FILE_OFFSET_BITS=64",CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64";) AX_CHECK_COMPILER_FLAGS("-Wdeclaration-after-statement",CFLAGS="$CFLAGS -Wdeclaration-after-statement";) # # Note: regardless of what the stuff above regarding large file support # appears to do, the following test is the one that affects Silo's # knowledge and support for large files. It may be that the result of # the sizeof check is dependent on whether -D_LARGEFILE64_SOURCE is # defined on the command line to the compiler though. # Use size of off64_t to determine which form of stat() calls to make # AC_CHECK_SIZEOF(off64_t) dnl We always use the install-sh script, so don't uncomment the following line. AC_PROG_INSTALL dnl dnl Checks for header files. dnl dnl If we don't have these header files, we can't continue. dnl AC_CHECK_HEADERS([sys/time.h stdarg.h sys/stat.h], [], AC_MSG_ERROR([$0 wasn't able to find a necessary header file (see above). Please rectify this and rerun configure. See the file INSTALL_FAQ in this directory for possible reasons this might have happened.])) AC_CHECK_HEADERS([fcntl.h]) AC_CHECK_HEADERS([sys/fcntl.h]) if test ! "$ac_cv_header_fcntl_h"="yes" && test ! "$ac_cv_header_sys_fcntl_h"="yes" ; then AC_MSG_ERROR([$0 wasn't able to find a necessary fcntl.h or sys/fcntl.h header file. Please rectify this and rerun configure. See the file INSTALL_FAQ in this directory for possible reasons this might have happened.]) fi dnl dnl Check for header files that we can do without. dnl Only needed by browser AC_CHECK_HEADERS([fnmatch.h]) dnl Only needed by silock AC_CHECK_HEADERS([ieeefp.h]) dnl a few systems define O_RDONLY here AC_CHECK_HEADERS([sys/types.h unistd.h]) dnl AC_HEADER_STDC dnl dnl Check for various functions in the STDIO header files. dnl dnl Note that we are calling two "changequote" macros. This is because the dnl default quoting mechanism is to use `[' and `]'. Since we have to use dnl these in the "tr" call, we need to change them to something else dnl temporarily. dnl dnl The following `if false' statement is *only* so autoheader can pick up dnl the names of the constants and insert them into the config.h.in file. If dnl the AC_DEFINE statements are removed then autoheader never sees the dnl constants. if false; then AC_DEFINE(HAVE_FCLOSE_POINTER,1,[System provides fclose prototypes]) AC_DEFINE(HAVE_FFLUSH_POINTER,1,[System provides fflush prototypes]) AC_DEFINE(HAVE_FOPEN_POINTER,1,[System provides fopen prototypes]) AC_DEFINE(HAVE_FPRINTF_POINTER,1,[System provides fprintf prototypes]) AC_DEFINE(HAVE_FREAD_POINTER,1,[System provides fread prototypes]) AC_DEFINE(HAVE_FSEEK_POINTER,1,[System provides fseek prototypes]) AC_DEFINE(HAVE_SETVBUF_POINTER,1,[System provides setvbuf prototypes]) AC_DEFINE(HAVE_FTELL_POINTER,1,[System provides ftell prototypes]) AC_DEFINE(HAVE_FWRITE_POINTER,1,[System provides fwrite prototypes]) fi for function in fclose fflush fopen fprintf fread fseek setvbuf ftell fwrite do changequote(<<,>>) cap_func="`echo ${function}|tr [a-z] [A-Z]`" changequote([,]) cache_name="`echo vc_cv_${function}_pointer`" have_name="`echo HAVE_${cap_func}_POINTER`" AC_MSG_CHECKING(for $function function pointer) AC_CACHE_VAL($cache_name, AC_TRY_COMPILE([#include ], [ int (*f)() = (int(*)())$function; ], [eval $cache_name=yes ], [eval $cache_name=no ] ) ) if eval "test \"`echo '$''{'$cache_name'}'`\" = no"; then AC_MSG_RESULT(no, using a replacement.) else AC_DEFINE_UNQUOTED(${have_name},1,[System provides prototype]) AC_MSG_RESULT(yes) fi done dnl dnl Check for library functions that can work around, or that we have dnl replacements for. dnl AC_CHECK_FUNCS([memmove fnmatch isnan fpclass strerror]) dnl dnl On Paragon/TeraFLOP systems there are "buggy" versions of dnl `setjmp' and `longjmp' that print an error message to use dnl `_setjmp' and `_longjmp' instead and exit with a non-zero dnl status. dnl AC_MSG_CHECKING(if setjmp and longjmp work) if test -n "$SETJMP_OVERRIDE"; then AC_MSG_RESULT(no. Replacing with _setjmp and _longjmp.) AC_DEFINE(setjmp,_setjmp,[Override setjmp]) AC_DEFINE(longjmp,_longjmp,[Override longjmp]) else AC_MSG_RESULT(yes) fi dnl dnl save the cache dnl AC_CACHE_SAVE dnl the hdf5 library checks (to follow) will require the -lm if its required AC_CHECK_LIBM LIBS="$LIBS $LIBM" dnl ---------------------------------------------------------------------- dnl Is the szlib present? It has a library dnl `-lsz' and their locations might be specified with the `--with-szlib' dnl command-line switch. The value is a root directory contain the lib dnl directory. dnl AC_ARG_WITH([szlib], [AC_HELP_STRING([--with-szlib=DIR], [Use szlib library for external szlib I/O filter [default=no]])],, withval=default) case $withval in default) HAVE_SZLIB="no" if test "$DEFAULT_SZIP" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_SZIP/lib" LIBS="$LIBS -lsz" HAVE_SZLIB="yes" szlib_lib="$DEFAULT_SZIP/lib" fi if test "$DEFAULT_SZIP_LIB" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_SZIP_LIB" LIBS="$LIBS -lsz" HAVE_SZLIB="yes" szlib_lib="$DEFAULT_SZIP_LIB" fi if test "$DEFAULT_SZIP_LIBDIR" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_SZIP_LIBDIR" LIBS="$LIBS -lsz" HAVE_SZLIB="yes" szlib_lib="$DEFAULT_SZIP_LIBDIR" fi if test "$HAVE_SZLIB" = "yes" ; then AC_MSG_CHECKING([default szlib path provided]) AC_MSG_RESULT([$szlib_lib]) else AC_MSG_CHECKING([for szlib]) AC_MSG_RESULT([suppressed]) fi ;; yes) HAVE_SZLIB="no" if test "$DEFAULT_SZIP" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_SZIP/lib" LIBS="$LIBS -lsz" HAVE_SZLIB="yes" szlib_lib="$DEFAULT_SZIP/lib" fi if test "$DEFAULT_SZIP_LIB" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_SZIP_LIB" LIBS="$LIBS -lsz" HAVE_SZLIB="yes" szlib_lib="$DEFAULT_SZIP_LIB" fi if test "$DEFAULT_SZIP_LIBDIR" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_SZIP_LIBDIR" LIBS="$LIBS -lsz" HAVE_SZLIB="yes" szlib_lib="$DEFAULT_SZIP_LIBDIR" fi if test "$HAVE_SZLIB" = "yes" ; then AC_MSG_CHECKING([using szlib path provided]) AC_MSG_RESULT([$szlib_lib]) else AC_MSG_ERROR([expect to find szlib environment variables]) AC_MSG_CHECKING([for szlib]) AC_MSG_RESULT([suppressed]) fi ;; no) HAVE_SZLIB="no" AC_MSG_CHECKING([for szlib]) AC_MSG_RESULT([suppressed]) ;; *) HAVE_SZLIB="yes" case "$withval" in *) if test -n "$withval"; then szlib_lib="$withval/lib" fi ;; esac if test -n "$szlib_lib"; then LDFLAGS="$LDFLAGS -L$szlib_lib" fi AC_CHECK_LIB([sz], [SZ_BufftoBuffCompress],, [LDFLAGS="$saved_LDFLAGS"; unset HAVE_SZLIB]) if test -z "$HAVE_SZLIB" -a -n "$HDF5_CONFIG_ABORT"; then AC_MSG_ERROR([couldn't find szlib library]) fi ;; esac # Is HDF5 present (it's needed for the silo/hdf5 driver for pmesh/alec SAMI # files larger than 2GB until SAF is in place)? Normally check for # hdf5.h and libhdf5.a but skip the test if `--without-hdf5' is specified. # Alternate directories can be specified for hdf5.h and/or libhdf5.a by giving # the names like this `--with-hdf5=INC,LIB' (if only the LIB directory is # given then it must still be preceded by a comma). # # Checking for hdf5 is complicated by the fact that hdf5 may or may not # in turn depend on zlib compression lib. In and of itself, Silo does NOT # depend on zlib. So, we don't want -lz on the link line if zlib is either # not needed or, worse, not present as this generates warning messages # or fatal errors. So, we first test for hdf5 without -lz on the link line. # If this succeeds, we conclude hdf5 is present and we can build the hdf5 # driver. If hdf5 fails, it may be that hdf5 was compiled with zlib. So, next # we make an independent test for zlib. If zlib fails, we conclude that the # failure on the hdf5 test was due to something other than lack of zlib and # decide libhdf5.a is NOT present and we cannot build the hdf5 driver. If # zlib succeeds, we re-try the hdf5 test with -lz on the link line. If that # succeeds, we conclude we need -lz on the link line and we can build the # hdf5 driver. Again, if it fails, we neither put -lz on the link line nor # build the hdf5 driver. One other possibility that could be tested for # and configure could make a reasonable comment on is to see if only the # binaries for hdf5 were installed AND they have zlib dependences which # are NOT resolvable on the platform they are installed on. This would be # a boneheaded thing to do, but nonetheless something that configure could # inform the user has gone wrong and what to do. # if test -n "$HDF5_DRV"; then AC_MSG_CHECKING(for hdf5) saved_CPPFLAGS="$CPPFLAGS" saved_LDFLAGS="$LDFLAGS" saved_LIBS="$LIBS" AC_ARG_WITH([hdf5], [ --with-hdf5=INC,LIB Location of HDF5 header and library], , withval="default") if test "$withval" = "no" ; then AC_MSG_RESULT(suppressed) HDF5_DRV="" elif test "$withval" = "default" ; then if test "$DEFAULT_HDF5_LIBDIR" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_HDF5_LIBDIR" LIBS="$LIBS -lhdf5 -lz" hdf5_lib=$DEFAULT_HDF5_LIBDIR hdf5_explicit=true fi if test "$DEFAULT_HDF5_INCLUDE" != "" ; then CPPFLAGS="$CPPFLAGS -I$DEFAULT_HDF5_INCLUDE" hdf5_inc=$DEFAULT_HDF5_INCLUDE hdf5_explicit=true fi if test -d "$hdf5_lib"; then AC_MSG_RESULT([$hdf5_lib]) AC_DEFINE(HAVE_HDF5_H,1,[hdf5 header file]) AC_DEFINE(HAVE_LIBHDF5,1,[hdf5 library]) else AC_MSG_RESULT(no) HDF5_DRV="" fi elif test "$withval" = "yes" ; then if test "$DEFAULT_HDF5_LIBDIR" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_HDF5_LIBDIR" LIBS="$LIBS -lhdf5 -lz" hdf5_lib=$DEFAULT_HDF5_LIBDIR hdf5_explicit=true fi if test "$DEFAULT_HDF5_INCLUDE" != "" ; then CPPFLAGS="$CPPFLAGS -I$DEFAULT_HDF5_INCLUDE" hdf5_inc=$DEFAULT_HDF5_INCLUDE hdf5_explicit=true fi if test -d "$hdf5_lib"; then AC_MSG_RESULT([$hdf5_lib]) AC_DEFINE(HAVE_HDF5_H,1,[hdf5 header file]) AC_DEFINE(HAVE_LIBHDF5,1,[hdf5 library]) else AC_MSG_ERROR([expected to find hdf5 environment variables]) AC_MSG_RESULT(no) HDF5_DRV="" fi else AC_CHECKING(for hdf5 and supporting libraries) hdf5_inc="`echo $withval |cut -f1 -d,`" if test "$withval" != "yes" && test -n "$hdf5_inc"; then hdf5_explicit=true if test -d "$hdf5_inc"; then CPPFLAGS="-I$hdf5_inc $CPPFLAGS" else AC_MSG_ERROR(problem with directory specified for hdf5 includes) fi fi hdf5_lib="`echo $withval |cut -f2 -d, -s`" if test "$withval" != "yes" && test -n "$hdf5_lib"; then hdf5_explicit=true if test -d "$hdf5_lib"; then if test -n "$szlib_lib"; then LDFLAGS="-L$hdf5_lib -L$szlib_lib $LDFLAGS" else LDFLAGS="-L$hdf5_lib $LDFLAGS" fi else AC_MSG_ERROR(problem with directory specified for hdf5 library) fi fi notfound="" AC_CHECK_HEADERS(hdf5.h,,notfound="hdf5.h") tmp_LIBS="$LIBS" if test -n "$szlib_lib"; then ### LIBS="$hdf5_lib/libhdf5.a $LIBS" LIBS="-lhdf5 -lsz $LIBS" else LIBS="-lhdf5 $LIBS" fi AC_CHECK_FUNC(H5open,[AC_DEFINE(HAVE_LIBHDF5,1,[using HDF5])],notfound="$notfound libhdf5.a") if test -n "$notfound"; then LIBS="$tmp_LIBS" fi # # If the above tests did NOT find headers and lib for # hdf5, it could be due to zlib, so now test for zlib # MCM -- July, 2008: This code now looks completely useless # It is supposed to attempt to check if '-lz' is needed to # link with HDF5. However, it doesn't appear to do any of # that and had a useless embedded AC_ARG_WITH in it which # I removed and replaced all instances of 'withval' to the # with variable the code needs, with_zlib # if test -n "$notfound"; then # reset the compile and link flags CPPFLAGS="$saved_CPPFLAGS" LDFLAGS="$saved_LDFLAGS" AC_CHECKING(if lack of zlib caused tests for hdf5 to fail) if test "no" = "$with_zlib"; then AC_MSG_CHECKING(for zlib) AC_MSG_RESULT(suppressed) else zlib_inc="`echo $with_zlibval |cut -f1 -d,`" if test "$with_zlibval" != "yes" && test -n "$zlib_inc"; then if test -d "$zlib_inc"; then CPPFLAGS="-I$zlib_inc $CPPFLAGS" else AC_MSG_ERROR(problem with directory specified for zlib includes) fi fi zlib_lib="`echo $with_zlibval |cut -f2 -d, -s`" if test "$with_zlibval" != "yes" && test -n "$zlib_lib"; then if test -d "$zlib_lib"; then LDFLAGS="-L$zlib_lib $LDFLAGS" else AC_MSG_ERROR(problem with directory specified for zlib library) fi fi notfound="" dnl MCM -- 11Jul08: Here, we only need zlib to link with hdf5, dnl not to compile anything in Silo. Why we're checking for dnl headers here, I do not know. if test -z "`echo $LIBS | tr ' ' '\n' | grep -x -e '-lz'`"; then AC_CHECK_HEADERS(zlib.h,,notfound="zlib.h") AC_CHECK_LIB(z,compress2,,notfound="$notfound libz.a") fi fi # # If libz was not found, the failure of hdf5 must be something else. # if test -n "$notfound"; then CPPFLAGS="$saved_CPPFLAGS" LDFLAGS="$saved_LDFLAGS" HDF5_DRV="" if test -n "$hdf5_explicit"; then AC_MSG_ERROR([ You have made an explicit request for hdf5 with the --with-hdf option and $0 is unable to find hdf5 and its supporting libs, if any. Please see INSTALL_FAQ for possible causes.]) else AC_MSG_WARN(hdf5 driver disabled) fi else # we unset these to defeat autoconf's cache unset ac_cv_header_hdf5_h unset ac_cv_lib_hdf5_H5open # # Now, retest for hdf5 with zlib # if test -n "$hdf5_inc"; then CPPFLAGS="-I$hdf5_inc $CPPFLAGS" fi if test -n "$hdf5_lib"; then if test -n "$szlib_lib"; then LDFLAGS="-L$hdf5_lib -L$szlib_lib $LDFLAGS" else LDFLAGS="-L$hdf5_lib $LDFLAGS" fi fi notfound="" AC_CHECK_HEADERS(hdf5.h,,notfound="hdf5.h") tmp_LIBS="$LIBS" AC_CHECK_LIB(hdf5,H5open,,notfound="$notfound libhdf5.a") if test "$notfound" = ""; then if test -n "$szlib_lib"; then ### LIBS="$hdf5_lib/libhdf5.a $tmp_LIBS" LIBS="-lhdf5 -lsz $tmp_LIBS" else LIBS="-lhdf5 $tmp_LIBS" fi fi if test -n "$notfound"; then CPPFLAGS="$saved_CPPFLAGS" LDFLAGS="$saved_LDFLAGS" HDF5_DRV="" if test -n "$hdf5_explicit"; then AC_MSG_ERROR([ You have made an explicit request for hdf5 with the --with-hdf option and $0 is unable to find hdf5 and its supporting libs, if any. Please see INSTALL_FAQ for possible causes.]) else AC_MSG_WARN(hdf5 driver disabled) fi fi fi # if test -n "$notfound" (for second hdf5 test) fi # if test -n "$notfound" (for zlib) fi # if test "no" = "$withval" fi # if test -n "$HDF5_DRV" # Check to see if the results of the above tests found the HDF5 libraries if test -n "$HDF5_DRV"; then # Short-term hack to deal with bogus code above (too complex) # putting -lsz AHEAD of -lhdf5 in libs if test "$HAVE_SZLIB" = "yes"; then LIBS="$LIBS -lsz" fi AC_DEFINE(HAVE_HDF5_DRIVER,1,[Support for HDF5]) else LIBS="$saved_LIBS" fi AC_ARG_WITH(pdb-proper, AC_HELP_STRING([--with-pdb-proper],[directory where PDB proper is installed @<:@default=no@:>@]), if test $withval != yes; then PDBP_DRV="pdbp_drv" AC_DEFINE(HAVE_PDBP_DRIVER,1,[Support for PDB Proper]) AC_SUBST(PDBP_DRV) CPPFLAGS="-I$withval/include $CPPFLAGS" LDFLAGS="-L$withval/lib $LDFLAGS" LIBS="-lpdb -lpml -lscore $LIBS" else AC_MSG_ERROR(You must specify a directory for PDB proper) fi ) dnl READLINE_LIBS="" if test "X$detect_readline" = Xyes; then # use contributed GNU m4 macro library provided see: # autoconf-archive-2006-06-04/htmldoc/vl_lib_readline.html saved_LIBS="$LIBS" VL_LIB_READLINE # Put only the stuff NOT already in $LIBS into READLINE_LIBS saved_LIBS_grep=$(echo $saved_LIBS | tr -s ' ' | sed 's% %\\|%g') READLINE_LIBS=$(echo $LIBS | tr -s ' ' | tr ' ' '\n' | grep -v -e $saved_LIBS_grep | tr '\n' ' ') LIBS="$saved_LIBS" else AC_MSG_CHECKING(for readline) AC_MSG_RESULT(disabled) fi AC_SUBST(READLINE_LIBS) AC_ARG_WITH(qt, AC_HELP_STRING([--with-qt],[specify top-level Qt directory @<:@default=yes@:>@]), if test $withval != yes; then QTDIR=$withval fi ) AC_ARG_WITH(qt-bin, AC_HELP_STRING([--with-qt-bin],[specify Qt bin directory]), if test $withval != yes; then QT_BIN=$withval fi ) AC_ARG_WITH(qt-include, AC_HELP_STRING([--with-qt-include],[specify Qt include directory]), if test $withval != yes; then QT_INCLUDE=$withval fi ) AC_ARG_WITH(qt-lib, AC_HELP_STRING([--with-qt-lib],[specify Qt lib directory]), if test $withval != yes; then QT_LIB=$withval fi ) dnl dnl If silex is enabled, look for a supported version of Qt. dnl This QT logic is taken from VisIt's configure.in. dnl if test -n "$SILEX"; then if test -z "$QT_BIN" || test -z "$QT_INCLUDE" || test -z "$QT_LIB"; then if test -z "QTDIR"; then AC_MSG_WARN([The QT_BIN, QT_INCLUDE and QT_LIB environment variables must be set in order to find Qt. silex is being disabled]) SILEX="" else QT_BIN="$QTDIR/bin" QT_INCLUDE="$QTDIR/include" QT_LIB="$QTDIR/lib" fi fi AC_MSG_CHECKING(for supported Qt version) QtVersion="" QtVersion2="" consumeCount=-1 toks=`$QT_BIN/qmake --version` for tok in $toks; do if test "$tok" == "Qt"; then consumeCount=2 fi if test $consumeCount == 0; then QtVersion2=$tok break else consumeCount=$((consumeCount-1)) fi done ## Check for supported versions of Qt. for ver in 4.4.0 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 \ 4.5.0 4.5.1 4.5.2 4.5.3 4.5.4 4.5.5 \ 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 ; do if test "$QtVersion2" == "$ver"; then QtVersion=$ver break fi done if test -z "$QtVersion"; then AC_MSG_WARN([ Sorry, but you need Qt version 4.4.0 or higher to compile Silo's silex tool. silex is being disabled]) SILEX="" else AC_MSG_RESULT(Qt $QtVersion in $QT_INCLUDE) fi # Set the Qt bin,include,lib directories AC_SUBST(QT_BIN) AC_SUBST(QT_INCLUDE) AC_SUBST(QT_LIB) # Set platform-specific options if test "$UNAME" = "Darwin"; then QT_LDFLAGS="-F$""(QT_LIB) -L$""(QT_LIB)" QT_CORE=QtCore.framework QT_CORE_LIB="-framework QtCore" QT_GUI=QtGui.framework QT_GUI_LIB="-framework QtGui" else QT_LDFLAGS="-L$""(QT_LIB)" QT_CORE=libQtCore.so QT_CORE_LIB=-lQtCore QT_GUI=libQtGui.so QT_GUI_LIB=-lQtGui fi AC_SUBST(QT_LDFLAGS) # Qt libraries QT_LIBS="$""(QT_CORE_LIB) $""(QT_GUI_LIB)" AC_SUBST(QT_LIBS) AC_SUBST(QT_CORE) AC_SUBST(QT_CORE_LIB) AC_SUBST(QT_GUI) AC_SUBST(QT_GUI_LIB) # Include path QT_CXXFLAGS="-I$""(QT_INCLUDE) -I$""(QT_INCLUDE)/Qt -I$""(QT_INCLUDE)/QtCore -I$""(QT_INCLUDE)/QtGui" AC_SUBST(QT_CXXFLAGS) # Path to moc QT_MOC="$""(QT_BIN)/moc" AC_SUBST(QT_MOC) fi dnl if test -n "$SILEX"; then dnl dnl Check for a python installation using the Automake dnl provided macro, which will generate the following dnl variables: python_PYTHON, pkgpython_PYTHON, dnl pyexecdir_PYTHON, and pkgpyexecdir_PYTHON. dnl if test -n "$PYTHONMODULE"; then AM_PATH_PYTHON(2.1,, :) # Check for Python include path # AC_MSG_CHECKING([for Python include path]) if test -z "$PYTHON_CPPFLAGS"; then python_path=`$PYTHON -c "import distutils.sysconfig; \ print distutils.sysconfig.get_python_inc();"` if test -n "${python_path}"; then python_path="-I$python_path" fi PYTHON_CPPFLAGS=$python_path fi AC_MSG_RESULT([$PYTHON_CPPFLAGS]) AC_SUBST([PYTHON_CPPFLAGS]) fi dnl Determine how to compile MPI # skip for now #ACX_MPI # Create a bundle target for Darwin BUNDLE_TARGET="" case $host_os in darwin*) BUNDLE_TARGET="silo.app" ;; esac AC_SUBST(BUNDLE_TARGET) AC_CACHE_SAVE dnl AM_CONDITIONAL(NETCDF_NEEDED, test -n "$NETCDF") AM_CONDITIONAL(PDB_DRV_NEEDED, test -n "$PDB_DRV") AM_CONDITIONAL(PDBP_DRV_NEEDED, test -n "$PDBP_DRV") AM_CONDITIONAL(TAURUS_NEEDED, test -n "$TAURUS") AM_CONDITIONAL(HDF5_DRV_NEEDED, test -n "$HDF5_DRV") AM_CONDITIONAL(BROWSER_NEEDED, test -n "$BROWSER") AM_CONDITIONAL(PYTHON_NEEDED, test -n "$PYTHONMODULE") AM_CONDITIONAL(FORTRAN_NEEDED, test -n "$FORTRAN") AM_CONDITIONAL(SILEX_NEEDED, test -n "$SILEX") AM_CONDITIONAL(HZIP_NEEDED, test -n "$HZIP") AM_CONDITIONAL(FPZIP_NEEDED, test -n "$FPZIP") AM_CONDITIONAL(ZLIB_AVAILABLE, test -n "$ZLIB") AM_CONDITIONAL(CXX_LINK_NEEDED, test "$enable_shared" = "no" -a \( -n "$FPZIP" -o -n "$HZIP" \)) AC_CONFIG_FILES([ Makefile SiloWindows/Makefile svn_bin/Makefile config/Makefile config-site/Makefile docs/Makefile src/Makefile src/score/Makefile src/pdb/Makefile src/silo/Makefile src/silo/silo.h src/debug/Makefile src/netcdf/Makefile src/pdb_drv/Makefile src/pdbp_drv/Makefile src/hdf5_drv/Makefile src/taurus/Makefile src/unknown/Makefile src/filters/Makefile tests/Makefile tools/Makefile tools/browser/Makefile tools/python/Makefile tools/silex/Makefile tools/silock/Makefile]) if test -n "$HZIP"; then AC_CONFIG_FILES([src/hzip/Makefile]) fi if test -n "$FPZIP"; then AC_CONFIG_FILES([src/fpzip/Makefile]) fi if test -n "$HDF5_DRV"; then AC_CONFIG_FILES([src/libsiloh5.settings]) else AC_CONFIG_FILES([src/libsilo.settings]) fi CC_FULLPATH="" if test -n "$CC"; then CC_FULLPATH=`which $CC` fi CXX_FULLPATH="" if test -n "$CXX"; then CXX_FULLPATH=`which $CXX` fi FC_FULLPATH="" if test -n "$FC"; then FC_FULLPATH=`which $FC` fi AC_SUBST(CC_FULLPATH) AC_SUBST(CXX_FULLPATH) AC_SUBST(FC_FULLPATH) AC_OUTPUT dnl ---------------------------------------------------------------------- dnl Print out a summary of what we are going to build. dnl echo;echo if test -n "$HDF5_DRV"; then cat src/libsiloh5.settings | sed 's|\\n||' | sed 's|"||g' else cat src/libsilo.settings | sed 's|\\n||' | sed 's|"||g' fi silo-4.8-bsd/aclocal.m40000644000707000001660000112141611444246315014336 0ustar miller86visit# generated automatically by aclocal 1.10 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_if(m4_PACKAGE_VERSION, [2.61],, [m4_fatal([this file was generated for autoconf 2.61. You have another version of autoconf. If you want to use that, you should regenerate the build system entirely.], [63])]) # # SYNOPSIS # # AX_CC_MAXOPT # # DESCRIPTION # # Try to turn on "good" C optimization flags for various compilers # and architectures, for some definition of "good". (In our case, # good for FFTW and hopefully for other scientific codes. Modify as # needed.) # # The user can override the flags by setting the CFLAGS environment # variable. The user can also specify --enable-portable-binary in # order to disable any optimization flags that might result in a # binary that only runs on the host architecture. # # Note also that the flags assume that ANSI C aliasing rules are # followed by the code (e.g. for gcc's -fstrict-aliasing), and that # floating-point computations can be re-ordered as needed. # # Requires macros: AX_CHECK_COMPILER_FLAGS, AX_COMPILER_VENDOR, # AX_GCC_ARCHFLAG, AX_GCC_X86_CPUID. # # LAST MODIFICATION # # 2007-07-29 # # COPYLEFT # # Copyright (c) 2007 Steven G. Johnson # Copyright (c) 2007 Matteo Frigo # # This program is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see # . # # As a special exception, the respective Autoconf Macro's copyright # owner gives unlimited permission to copy, distribute and modify the # configure scripts that are the output of Autoconf when processing # the Macro. You need not follow the terms of the GNU General Public # License when using or distributing such scripts, even though # portions of the text of the Macro appear in them. The GNU General # Public License (GPL) does govern all other use of the material that # constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the # Autoconf Macro released by the Autoconf Macro Archive. When you # make and distribute a modified version of the Autoconf Macro, you # may extend this special exception to the GPL to apply to your # modified version as well. AC_DEFUN([AX_CC_MAXOPT], [ AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AX_COMPILER_VENDOR]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_ARG_ENABLE(portable-binary, [AC_HELP_STRING([--enable-portable-binary], [disable compiler optimizations that would produce unportable binaries])], acx_maxopt_portable=$withval, acx_maxopt_portable=no) # Try to determine "good" native compiler flags if none specified via CFLAGS if test "$ac_test_CFLAGS" != "set"; then CFLAGS="" case $ax_cv_c_compiler_vendor in dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host" if test "x$acx_maxopt_portable" = xno; then CFLAGS="$CFLAGS -arch host" fi;; sun) CFLAGS="-native -fast -xO5 -dalign" if test "x$acx_maxopt_portable" = xyes; then CFLAGS="$CFLAGS -xarch=generic" fi;; hp) CFLAGS="+Oall +Optrs_ansi +DSnative" if test "x$acx_maxopt_portable" = xyes; then CFLAGS="$CFLAGS +DAportable" fi;; ibm) if test "x$acx_maxopt_portable" = xno; then xlc_opt="-qarch=auto -qtune=auto" else xlc_opt="-qtune=auto" fi AX_CHECK_COMPILER_FLAGS($xlc_opt, CFLAGS="-O3 -qansialias -w $xlc_opt", [CFLAGS="-O3 -qansialias -w" echo "******************************************************" echo "* You seem to have the IBM C compiler. It is *" echo "* recommended for best performance that you use: *" echo "* *" echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *" echo "* ^^^ ^^^ *" echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *" echo "* CPU you have. (Set the CFLAGS environment var. *" echo "* and re-run configure.) For more info, man cc. *" echo "******************************************************"]) ;; intel) CFLAGS="-O3 -ansi_alias" if test "x$acx_maxopt_portable" = xno; then icc_archflag=unknown icc_flags="" case $host_cpu in i686*|x86_64*) # icc accepts gcc assembly syntax, so these should work: AX_GCC_X86_CPUID(0) AX_GCC_X86_CPUID(1) case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG *:756e6547:*:*) # Intel case $ax_cv_gcc_x86_cpuid_1 in *6a?:*[[234]]:*:*|*6[[789b]]?:*:*:*) icc_flags="-xK";; *f3[[347]]:*:*:*|*f4[1347]:*:*:*) icc_flags="-xP -xN -xW -xK";; *f??:*:*:*) icc_flags="-xN -xW -xK";; esac ;; esac ;; esac if test "x$icc_flags" != x; then for flag in $icc_flags; do AX_CHECK_COMPILER_FLAGS($flag, [icc_archflag=$flag; break]) done fi AC_MSG_CHECKING([for icc architecture flag]) AC_MSG_RESULT($icc_archflag) if test "x$icc_archflag" != xunknown; then CFLAGS="$CFLAGS $icc_archflag" fi fi ;; gnu) # default optimization flags for gcc on all systems CFLAGS="-O3 -fomit-frame-pointer" # -malign-double for x86 systems AX_CHECK_COMPILER_FLAGS(-malign-double, CFLAGS="$CFLAGS -malign-double") # -fstrict-aliasing for gcc-2.95+ AX_CHECK_COMPILER_FLAGS(-fstrict-aliasing, CFLAGS="$CFLAGS -fstrict-aliasing") # note that we enable "unsafe" fp optimization with other compilers, too AX_CHECK_COMPILER_FLAGS(-ffast-math, CFLAGS="$CFLAGS -ffast-math") AX_GCC_ARCHFLAG($acx_maxopt_portable) ;; esac if test -z "$CFLAGS"; then echo "" echo "********************************************************" echo "* WARNING: Don't know the best CFLAGS for this system *" echo "* Use ./configure CFLAGS=... to specify your own flags *" echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" echo "********************************************************" echo "" CFLAGS="-O3" fi AX_CHECK_COMPILER_FLAGS($CFLAGS, [], [ echo "" echo "********************************************************" echo "* WARNING: The guessed CFLAGS don't seem to work with *" echo "* your compiler. *" echo "* Use ./configure CFLAGS=... to specify your own flags *" echo "********************************************************" echo "" CFLAGS="" ]) fi ]) # # SYNOPSIS # # AX_CHECK_COMPILER_FLAGS(FLAGS, [ACTION-SUCCESS], [ACTION-FAILURE]) # # DESCRIPTION # # Check whether the given compiler FLAGS work with the current # language's compiler, or whether they give an error. (Warnings, # however, are ignored.) # # ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on # success/failure. # # LAST MODIFICATION # # 2007-07-29 # # COPYLEFT # # Copyright (c) 2007 Steven G. Johnson # Copyright (c) 2007 Matteo Frigo # # This program is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see # . # # As a special exception, the respective Autoconf Macro's copyright # owner gives unlimited permission to copy, distribute and modify the # configure scripts that are the output of Autoconf when processing # the Macro. You need not follow the terms of the GNU General Public # License when using or distributing such scripts, even though # portions of the text of the Macro appear in them. The GNU General # Public License (GPL) does govern all other use of the material that # constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the # Autoconf Macro released by the Autoconf Macro Archive. When you # make and distribute a modified version of the Autoconf Macro, you # may extend this special exception to the GPL to apply to your # modified version as well. AC_DEFUN([AX_CHECK_COMPILER_FLAGS], [AC_PREREQ(2.59) dnl for _AC_LANG_PREFIX AC_MSG_CHECKING([whether _AC_LANG compiler accepts $1]) dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname: AS_LITERAL_IF([$1], [AC_CACHE_VAL(AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1), [ ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS _AC_LANG_PREFIX[]FLAGS="$1" AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1)=yes, AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1)=no) _AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS])], [ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS _AC_LANG_PREFIX[]FLAGS="$1" AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1)=yes, eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1)=no) _AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS]) eval ax_check_compiler_flags=$AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_$1) AC_MSG_RESULT($ax_check_compiler_flags) if test "x$ax_check_compiler_flags" = xyes; then m4_default([$2], :) else m4_default([$3], :) fi ])dnl AX_CHECK_COMPILER_FLAGS # # SYNOPSIS # # AX_COMPILER_VENDOR # # DESCRIPTION # # Determine the vendor of the C/C++ compiler, e.g., gnu, intel, ibm, # sun, hp, borland, comeau, dec, cray, kai, lcc, metrowerks, sgi, # microsoft, watcom, etc. The vendor is returned in the cache # variable $ax_cv_c_compiler_vendor for C and # $ax_cv_cxx_compiler_vendor for C++. # # LAST MODIFICATION # # 2007-08-01 # # COPYLEFT # # Copyright (c) 2007 Steven G. Johnson # Copyright (c) 2007 Matteo Frigo # # This program is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see # . # # As a special exception, the respective Autoconf Macro's copyright # owner gives unlimited permission to copy, distribute and modify the # configure scripts that are the output of Autoconf when processing # the Macro. You need not follow the terms of the GNU General Public # License when using or distributing such scripts, even though # portions of the text of the Macro appear in them. The GNU General # Public License (GPL) does govern all other use of the material that # constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the # Autoconf Macro released by the Autoconf Macro Archive. When you # make and distribute a modified version of the Autoconf Macro, you # may extend this special exception to the GPL to apply to your # modified version as well. AC_DEFUN([AX_COMPILER_VENDOR], [ AC_CACHE_CHECK([for _AC_LANG compiler vendor], ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor, [ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor=unknown # note: don't check for gcc first since some other compilers define __GNUC__ for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")" AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[ #if !($vencpp) thisisanerror; #endif ])], [ax_cv_]_AC_LANG_ABBREV[_compiler_vendor=`echo $ventest | cut -d: -f1`; break]) done ]) ]) # # SYNOPSIS # # AX_GCC_ARCHFLAG([PORTABLE?], [ACTION-SUCCESS], [ACTION-FAILURE]) # # DESCRIPTION # # This macro tries to guess the "native" arch corresponding to the # target architecture for use with gcc's -march=arch or -mtune=arch # flags. If found, the cache variable $ax_cv_gcc_archflag is set to # this flag and ACTION-SUCCESS is executed; otherwise # $ax_cv_gcc_archflag is is set to "unknown" and ACTION-FAILURE is # executed. The default ACTION-SUCCESS is to add $ax_cv_gcc_archflag # to the end of $CFLAGS. # # PORTABLE? should be either [yes] (default) or [no]. In the former # case, the flag is set to -mtune (or equivalent) so that the # architecture is only used for tuning, but the instruction set used # is still portable. In the latter case, the flag is set to -march # (or equivalent) so that architecture-specific instructions are # enabled. # # The user can specify --with-gcc-arch= in order to override # the macro's choice of architecture, or --without-gcc-arch to # disable this. # # When cross-compiling, or if $CC is not gcc, then ACTION-FAILURE is # called unless the user specified --with-gcc-arch manually. # # Requires macros: AX_CHECK_COMPILER_FLAGS, AX_GCC_X86_CPUID # # (The main emphasis here is on recent CPUs, on the principle that # doing high-performance computing on old hardware is uncommon.) # # LAST MODIFICATION # # 2007-07-29 # # COPYLEFT # # Copyright (c) 2007 Steven G. Johnson # Copyright (c) 2007 Matteo Frigo # # This program is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see # . # # As a special exception, the respective Autoconf Macro's copyright # owner gives unlimited permission to copy, distribute and modify the # configure scripts that are the output of Autoconf when processing # the Macro. You need not follow the terms of the GNU General Public # License when using or distributing such scripts, even though # portions of the text of the Macro appear in them. The GNU General # Public License (GPL) does govern all other use of the material that # constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the # Autoconf Macro released by the Autoconf Macro Archive. When you # make and distribute a modified version of the Autoconf Macro, you # may extend this special exception to the GPL to apply to your # modified version as well. AC_DEFUN([AX_GCC_ARCHFLAG], [AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_ARG_WITH(gcc-arch, [AC_HELP_STRING([--with-gcc-arch=], [use architecture for gcc -march/-mtune, instead of guessing])], ax_gcc_arch=$withval, ax_gcc_arch=yes) AC_MSG_CHECKING([for gcc architecture flag]) AC_MSG_RESULT([]) AC_CACHE_VAL(ax_cv_gcc_archflag, [ ax_cv_gcc_archflag="unknown" if test "$GCC" = yes; then if test "x$ax_gcc_arch" = xyes; then ax_gcc_arch="" if test "$cross_compiling" = no; then case $host_cpu in i[[3456]]86*|x86_64*) # use cpuid codes, in part from x86info-1.7 by D. Jones AX_GCC_X86_CPUID(0) AX_GCC_X86_CPUID(1) case $ax_cv_gcc_x86_cpuid_0 in *:756e6547:*:*) # Intel case $ax_cv_gcc_x86_cpuid_1 in *5[[48]]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;; *5??:*:*:*) ax_gcc_arch=pentium ;; *6[[3456]]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; *6a?:*[[01]]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; *6a?:*[[234]]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; *6[[9d]]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;; *6[[78b]]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; *6??:*:*:*) ax_gcc_arch=pentiumpro ;; *f3[[347]]:*:*:*|*f4[1347]:*:*:*) case $host_cpu in x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;; *) ax_gcc_arch="prescott pentium4 pentiumpro" ;; esac ;; *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";; esac ;; *:68747541:*:*) # AMD case $ax_cv_gcc_x86_cpuid_1 in *5[[67]]?:*:*:*) ax_gcc_arch=k6 ;; *5[[8d]]?:*:*:*) ax_gcc_arch="k6-2 k6" ;; *5[[9]]?:*:*:*) ax_gcc_arch="k6-3 k6" ;; *60?:*:*:*) ax_gcc_arch=k7 ;; *6[[12]]?:*:*:*) ax_gcc_arch="athlon k7" ;; *6[[34]]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;; *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;; *6[[68a]]?:*:*:*) AX_GCC_X86_CPUID(0x80000006) # L2 cache size case $ax_cv_gcc_x86_cpuid_0x80000006 in *:*:*[[1-9a-f]]??????:*) # (L2 = ecx >> 16) >= 256 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;; *) ax_gcc_arch="athlon-4 athlon k7" ;; esac ;; *f[[4cef8b]]?:*:*:*) ax_gcc_arch="athlon64 k8" ;; *f5?:*:*:*) ax_gcc_arch="opteron k8" ;; *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;; *f??:*:*:*) ax_gcc_arch="k8" ;; esac ;; *:746e6543:*:*) # IDT case $ax_cv_gcc_x86_cpuid_1 in *54?:*:*:*) ax_gcc_arch=winchip-c6 ;; *58?:*:*:*) ax_gcc_arch=winchip2 ;; *6[[78]]?:*:*:*) ax_gcc_arch=c3 ;; *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;; esac ;; esac if test x"$ax_gcc_arch" = x; then # fallback case $host_cpu in i586*) ax_gcc_arch=pentium ;; i686*) ax_gcc_arch=pentiumpro ;; esac fi ;; sparc*) AC_PATH_PROG([PRTDIAG], [prtdiag], [prtdiag], [$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/]) cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null` cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters` case $cputype in *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;; *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;; *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;; *supersparc*|*tms390z5[[05]]*) ax_gcc_arch="supersparc v8" ;; *hypersparc*|*rt62[[056]]*) ax_gcc_arch="hypersparc v8" ;; *cypress*) ax_gcc_arch=cypress ;; esac ;; alphaev5) ax_gcc_arch=ev5 ;; alphaev56) ax_gcc_arch=ev56 ;; alphapca56) ax_gcc_arch="pca56 ev56" ;; alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;; alphaev6) ax_gcc_arch=ev6 ;; alphaev67) ax_gcc_arch=ev67 ;; alphaev68) ax_gcc_arch="ev68 ev67" ;; alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;; alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;; alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;; powerpc*) cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null` cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'` case $cputype in *750*) ax_gcc_arch="750 G3" ;; *740[[0-9]]*) ax_gcc_arch="$cputype 7400 G4" ;; *74[[4-5]][[0-9]]*) ax_gcc_arch="$cputype 7450 G4" ;; *74[[0-9]][[0-9]]*) ax_gcc_arch="$cputype G4" ;; *970*) ax_gcc_arch="970 G5 power4";; *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";; *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";; 603ev|8240) ax_gcc_arch="$cputype 603e 603";; *) ax_gcc_arch=$cputype ;; esac ax_gcc_arch="$ax_gcc_arch powerpc" ;; esac fi # not cross-compiling fi # guess arch if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then for arch in $ax_gcc_arch; do if test "x[]m4_default([$1],yes)" = xyes; then # if we require portable code flags="-mtune=$arch" # -mcpu=$arch and m$arch generate nonportable code on every arch except # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr. case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac else flags="-march=$arch -mcpu=$arch -m$arch" fi for flag in $flags; do AX_CHECK_COMPILER_FLAGS($flag, [ax_cv_gcc_archflag=$flag; break]) done test "x$ax_cv_gcc_archflag" = xunknown || break done fi fi # $GCC=yes ]) AC_MSG_CHECKING([for gcc architecture flag]) AC_MSG_RESULT($ax_cv_gcc_archflag) if test "x$ax_cv_gcc_archflag" = xunknown; then m4_default([$3],:) else m4_default([$2], [CFLAGS="$CFLAGS $ax_cv_gcc_archflag"]) fi ]) # # SYNOPSIS # # AX_GCC_X86_CPUID(OP) # # DESCRIPTION # # On Pentium and later x86 processors, with gcc or a compiler that # has a compatible syntax for inline assembly instructions, run a # small program that executes the cpuid instruction with input OP. # This can be used to detect the CPU type. # # On output, the values of the eax, ebx, ecx, and edx registers are # stored as hexadecimal strings as "eax:ebx:ecx:edx" in the cache # variable ax_cv_gcc_x86_cpuid_OP. # # If the cpuid instruction fails (because you are running a # cross-compiler, or because you are not using gcc, or because you # are on a processor that doesn't have this instruction), # ax_cv_gcc_x86_cpuid_OP is set to the string "unknown". # # This macro mainly exists to be used in AX_GCC_ARCHFLAG. # # LAST MODIFICATION # # 2007-07-29 # # COPYLEFT # # Copyright (c) 2007 Steven G. Johnson # Copyright (c) 2007 Matteo Frigo # # This program is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see # . # # As a special exception, the respective Autoconf Macro's copyright # owner gives unlimited permission to copy, distribute and modify the # configure scripts that are the output of Autoconf when processing # the Macro. You need not follow the terms of the GNU General Public # License when using or distributing such scripts, even though # portions of the text of the Macro appear in them. The GNU General # Public License (GPL) does govern all other use of the material that # constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the # Autoconf Macro released by the Autoconf Macro Archive. When you # make and distribute a modified version of the Autoconf Macro, you # may extend this special exception to the GPL to apply to your # modified version as well. AC_DEFUN([AX_GCC_X86_CPUID], [AC_REQUIRE([AC_PROG_CC]) AC_LANG_PUSH([C]) AC_CACHE_CHECK(for x86 cpuid $1 output, ax_cv_gcc_x86_cpuid_$1, [AC_RUN_IFELSE([AC_LANG_PROGRAM([#include ], [ int op = $1, eax, ebx, ecx, edx; FILE *f; __asm__("cpuid" : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) : "a" (op)); f = fopen("conftest_cpuid", "w"); if (!f) return 1; fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); fclose(f); return 0; ])], [ax_cv_gcc_x86_cpuid_$1=`cat conftest_cpuid`; rm -f conftest_cpuid], [ax_cv_gcc_x86_cpuid_$1=unknown; rm -f conftest_cpuid], [ax_cv_gcc_x86_cpuid_$1=unknown])]) AC_LANG_POP([C]) ]) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # serial 51 AC_PROG_LIBTOOL # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) # ----------------------------------------------------------- # If this macro is not defined by Autoconf, define it here. m4_ifdef([AC_PROVIDE_IFELSE], [], [m4_define([AC_PROVIDE_IFELSE], [m4_ifdef([AC_PROVIDE_$1], [$2], [$3])])]) # AC_PROG_LIBTOOL # --------------- AC_DEFUN([AC_PROG_LIBTOOL], [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. AC_PROVIDE_IFELSE([AC_PROG_CXX], [AC_LIBTOOL_CXX], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX ])]) dnl And a similar setup for Fortran 77 support AC_PROVIDE_IFELSE([AC_PROG_F77], [AC_LIBTOOL_F77], [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 ])]) dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [ifdef([AC_PROG_GCJ], [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([A][M_PROG_GCJ], [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([LT_AC_PROG_GCJ], [define([LT_AC_PROG_GCJ], defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) ])])# AC_PROG_LIBTOOL # _AC_PROG_LIBTOOL # ---------------- AC_DEFUN([_AC_PROG_LIBTOOL], [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl # Prevent multiple expansion define([AC_PROG_LIBTOOL], []) ])# _AC_PROG_LIBTOOL # AC_LIBTOOL_SETUP # ---------------- AC_DEFUN([AC_LIBTOOL_SETUP], [AC_PREREQ(2.50)dnl AC_REQUIRE([AC_ENABLE_SHARED])dnl AC_REQUIRE([AC_ENABLE_STATIC])dnl AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_LD])dnl AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl AC_REQUIRE([AC_PROG_NM])dnl AC_REQUIRE([AC_PROG_LN_S])dnl AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! AC_REQUIRE([AC_OBJEXT])dnl AC_REQUIRE([AC_EXEEXT])dnl dnl AC_LIBTOOL_SYS_MAX_CMD_LEN AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE AC_LIBTOOL_OBJDIR AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_PROG_ECHO_BACKSLASH case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] # Same as above, but do not quote variable references. [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" AC_CHECK_TOOL(AR, ar, false) AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(STRIP, strip, :) old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then AC_PATH_MAGIC fi ;; esac AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], enable_win32_dll=yes, enable_win32_dll=no) AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes AC_ARG_WITH([pic], [AC_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= AC_LIBTOOL_LANG_C_CONFIG _LT_AC_TAGCONFIG ])# AC_LIBTOOL_SETUP # _LT_AC_SYS_COMPILER # ------------------- AC_DEFUN([_LT_AC_SYS_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_AC_SYS_COMPILER # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. AC_DEFUN([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. AC_DEFUN([_LT_COMPILER_BOILERPLATE], [AC_REQUIRE([LT_AC_PROG_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. AC_DEFUN([_LT_LINKER_BOILERPLATE], [AC_REQUIRE([LT_AC_PROG_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* ])# _LT_LINKER_BOILERPLATE # _LT_AC_SYS_LIBPATH_AIX # ---------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_LINK_IFELSE(AC_LANG_PROGRAM,[ lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_AC_SYS_LIBPATH_AIX # _LT_AC_SHELL_INIT(ARG) # ---------------------- AC_DEFUN([_LT_AC_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_AC_SHELL_INIT # _LT_AC_PROG_ECHO_BACKSLASH # -------------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], [_LT_AC_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac echo=${ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/dev/null && echo_test_string=`eval $cmd` && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(ECHO) ])])# _LT_AC_PROG_ECHO_BACKSLASH # _LT_AC_LOCK # ----------- AC_DEFUN([_LT_AC_LOCK], [AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) LD="${LD-ld} -64" ;; esac ;; esac fi rm -rf conftest* ;; AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], [*-*-cygwin* | *-*-mingw* | *-*-pw32*) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; ]) esac need_locks="$enable_libtool_lock" ])# _LT_AC_LOCK # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_REQUIRE([LT_AC_PROG_SED]) AC_CACHE_CHECK([$1], [$2], [$2=no ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $rm conftest* ]) if test x"[$]$2" = xyes; then ifelse([$5], , :, [$5]) else ifelse([$6], , :, [$6]) fi ])# AC_LIBTOOL_COMPILER_OPTION # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ------------------------------------------------------------ # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then ifelse([$4], , :, [$4]) else ifelse([$5], , :, [$5]) fi ])# AC_LIBTOOL_LINKER_OPTION # AC_LIBTOOL_SYS_MAX_CMD_LEN # -------------------------- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [# find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done teststring= # Add a significant safety factor because C++ compilers can tack on massive # amounts of additional arguments before passing them to the linker. # It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi ])# AC_LIBTOOL_SYS_MAX_CMD_LEN # _LT_AC_CHECK_DLFCN # ------------------ AC_DEFUN([_LT_AC_CHECK_DLFCN], [AC_CHECK_HEADERS(dlfcn.h)dnl ])# _LT_AC_CHECK_DLFCN # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # --------------------------------------------------------------------- AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); }] EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_AC_TRY_DLOPEN_SELF # AC_LIBTOOL_DLOPEN_SELF # ---------------------- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_AC_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi ])# AC_LIBTOOL_DLOPEN_SELF # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) # --------------------------------- # Check to see if options -c and -o are simultaneously supported by compiler AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* ]) ])# AC_LIBTOOL_PROG_CC_C_O # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) # ----------------------------------------- # Check to see if we can do hard links to lock some files if needed AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_REQUIRE([_LT_AC_LOCK])dnl hard_links="nottested" if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS # AC_LIBTOOL_OBJDIR # ----------------- AC_DEFUN([AC_LIBTOOL_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir ])# AC_LIBTOOL_OBJDIR # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) # ---------------------------------------------- # Check hardcoding attributes. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_AC_TAGVAR(hardcode_action, $1)= if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existant directories. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_AC_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_AC_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH # AC_LIBTOOL_SYS_LIB_STRIP # ------------------------ AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], [striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi ])# AC_LIBTOOL_SYS_LIB_STRIP # AC_LIBTOOL_SYS_DYNAMIC_LINKER # ----------------------------- # PORTME Fill in your ld.so characteristics AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_MSG_CHECKING([dynamic linker characteristics]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" m4_if($1,[],[ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` else lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` sys_lib_search_path_spec=`echo $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[123]]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[[3-9]]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER # _LT_AC_TAGCONFIG # ---------------- AC_DEFUN([_LT_AC_TAGCONFIG], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_ARG_WITH([tags], [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], [include additional configurations @<:@automatic@:>@])], [tagnames="$withval"]) if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then AC_MSG_WARN([output file `$ofile' does not exist]) fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) else AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in "") ;; *) AC_MSG_ERROR([invalid tag name: $tagname]) ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then AC_MSG_ERROR([tag name \"$tagname\" already exists]) fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_LIBTOOL_LANG_CXX_CONFIG else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then AC_LIBTOOL_LANG_F77_CONFIG else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then AC_LIBTOOL_LANG_GCJ_CONFIG else tagname="" fi ;; RC) AC_LIBTOOL_LANG_RC_CONFIG ;; *) AC_MSG_ERROR([Unsupported tag name: $tagname]) ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" AC_MSG_ERROR([unable to update list of available tagged configurations.]) fi fi ])# _LT_AC_TAGCONFIG # AC_LIBTOOL_DLOPEN # ----------------- # enable checks for dlopen support AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_DLOPEN # AC_LIBTOOL_WIN32_DLL # -------------------- # declare package support for building win32 DLLs AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_WIN32_DLL # AC_ENABLE_SHARED([DEFAULT]) # --------------------------- # implement the --enable-shared flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_SHARED], [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([shared], [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]AC_ENABLE_SHARED_DEFAULT) ])# AC_ENABLE_SHARED # AC_DISABLE_SHARED # ----------------- # set the default shared flag to --disable-shared AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_SHARED(no) ])# AC_DISABLE_SHARED # AC_ENABLE_STATIC([DEFAULT]) # --------------------------- # implement the --enable-static flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_STATIC], [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([static], [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]AC_ENABLE_STATIC_DEFAULT) ])# AC_ENABLE_STATIC # AC_DISABLE_STATIC # ----------------- # set the default static flag to --disable-static AC_DEFUN([AC_DISABLE_STATIC], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_STATIC(no) ])# AC_DISABLE_STATIC # AC_ENABLE_FAST_INSTALL([DEFAULT]) # --------------------------------- # implement the --enable-fast-install flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_FAST_INSTALL], [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([fast-install], [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) ])# AC_ENABLE_FAST_INSTALL # AC_DISABLE_FAST_INSTALL # ----------------------- # set the default to --disable-fast-install AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_FAST_INSTALL(no) ])# AC_DISABLE_FAST_INSTALL # AC_LIBTOOL_PICMODE([MODE]) # -------------------------- # implement the --with-pic flag # MODE is either `yes' or `no'. If omitted, it defaults to `both'. AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl pic_mode=ifelse($#,1,$1,default) ])# AC_LIBTOOL_PICMODE # AC_PROG_EGREP # ------------- # This is predefined starting with Autoconf 2.54, so this conditional # definition can be removed once we require Autoconf 2.54 or later. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi]) EGREP=$ac_cv_prog_egrep AC_SUBST([EGREP]) ])]) # AC_PATH_TOOL_PREFIX # ------------------- # find a file program which can recognize shared library AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="ifelse([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi ])# AC_PATH_TOOL_PREFIX # AC_PATH_MAGIC # ------------- # find a file program which can recognize a shared library AC_DEFUN([AC_PATH_MAGIC], [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# AC_PATH_MAGIC # AC_PROG_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH([gnu-ld], [AC_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no]) AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown ])# AC_DEPLIBS_CHECK_METHOD # AC_PROG_NM # ---------- # find the pathname to a BSD-compatible name lister AC_DEFUN([AC_PROG_NM], [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi]) NM="$lt_cv_path_NM" ])# AC_PROG_NM # AC_CHECK_LIBM # ------------- # check for math library AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac ])# AC_CHECK_LIBM # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl convenience library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-convenience to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # it is assumed to be `libltdl'. LIBLTDL will be prefixed with # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' # (note the single quotes!). If your package is not flat and you're not # using automake, define top_builddir and top_srcdir appropriately in # the Makefiles. AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_CONVENIENCE # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl installable library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-install to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # and an installed libltdl is not found, it is assumed to be `libltdl'. # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with # '${top_srcdir}/' (note the single quotes!). If your package is not # flat and you're not using automake, define top_builddir and top_srcdir # appropriately in the Makefiles. # In the future, this macro may have to be called after AC_PROG_LIBTOOL. AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_CHECK_LIB(ltdl, lt_dlinit, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then AC_MSG_WARN([libltdl not installed, but installation disabled]) else enable_ltdl_install=yes fi ]) if test x"$enable_ltdl_install" = x"yes"; then ac_configure_args="$ac_configure_args --enable-ltdl-install" LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" LTDLINCL= fi # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_INSTALLABLE # AC_LIBTOOL_CXX # -------------- # enable support for C++ libraries AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_LT_AC_LANG_CXX]) ])# AC_LIBTOOL_CXX # _LT_AC_LANG_CXX # --------------- AC_DEFUN([_LT_AC_LANG_CXX], [AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) ])# _LT_AC_LANG_CXX # _LT_AC_PROG_CXXCPP # ------------------ AC_DEFUN([_LT_AC_PROG_CXXCPP], [ AC_REQUIRE([AC_PROG_CXX]) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP fi ])# _LT_AC_PROG_CXXCPP # AC_LIBTOOL_F77 # -------------- # enable support for Fortran 77 libraries AC_DEFUN([AC_LIBTOOL_F77], [AC_REQUIRE([_LT_AC_LANG_F77]) ])# AC_LIBTOOL_F77 # _LT_AC_LANG_F77 # --------------- AC_DEFUN([_LT_AC_LANG_F77], [AC_REQUIRE([AC_PROG_F77]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) ])# _LT_AC_LANG_F77 # AC_LIBTOOL_GCJ # -------------- # enable support for GCJ libraries AC_DEFUN([AC_LIBTOOL_GCJ], [AC_REQUIRE([_LT_AC_LANG_GCJ]) ])# AC_LIBTOOL_GCJ # _LT_AC_LANG_GCJ # --------------- AC_DEFUN([_LT_AC_LANG_GCJ], [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) ])# _LT_AC_LANG_GCJ # AC_LIBTOOL_RC # ------------- # enable support for Windows resource files AC_DEFUN([AC_LIBTOOL_RC], [AC_REQUIRE([LT_AC_PROG_RC]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) ])# AC_LIBTOOL_RC # AC_LIBTOOL_LANG_C_CONFIG # ------------------------ # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) AC_DEFUN([_LT_AC_LANG_C_CONFIG], [lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_SYS_LIB_STRIP AC_LIBTOOL_DLOPEN_SELF # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_C_CONFIG # AC_LIBTOOL_LANG_CXX_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], [AC_LANG_PUSH(C++) AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Dependencies to place before and after the object being linked: _LT_AC_TAGVAR(predep_objects, $1)= _LT_AC_TAGVAR(postdep_objects, $1)= _LT_AC_TAGVAR(predeps, $1)= _LT_AC_TAGVAR(postdeps, $1)= _LT_AC_TAGVAR(compiler_lib_search_path, $1)= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration AC_PROG_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_AC_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before switch to ELF _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_AC_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC*) # Portland Group C++ compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; openbsd2*) # C++ shared libraries are fairly broken _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; osf3*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ $rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_AC_TAGVAR(GCC, $1)="$GXX" _LT_AC_TAGVAR(LD, $1)="$LD" AC_LIBTOOL_POSTDEP_PREDEP($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld ])# AC_LIBTOOL_LANG_CXX_CONFIG # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) # ------------------------------------ # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_AC_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac ])# AC_LIBTOOL_POSTDEP_PREDEP # AC_LIBTOOL_LANG_F77_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) AC_DEFUN([_LT_AC_LANG_F77_CONFIG], [AC_REQUIRE([AC_PROG_F77]) AC_LANG_PUSH(Fortran 77) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_AC_TAGVAR(GCC, $1)="$G77" _LT_AC_TAGVAR(LD, $1)="$LD" AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_F77_CONFIG # AC_LIBTOOL_LANG_GCJ_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], [AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_RESTORE CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_GCJ_CONFIG # AC_LIBTOOL_LANG_RC_CONFIG # ------------------------- # Ensure that the configuration vars for the Windows resource compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) AC_DEFUN([_LT_AC_LANG_RC_CONFIG], [AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_AC_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes AC_LIBTOOL_CONFIG($1) AC_LANG_RESTORE CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_RC_CONFIG # AC_LIBTOOL_CONFIG([TAGNAME]) # ---------------------------- # If TAGNAME is not passed, then create an initial libtool script # with a default configuration from the untagged config vars. Otherwise # add code to config.status for appending the configuration named by # TAGNAME from the matching tagged config vars. AC_DEFUN([AC_LIBTOOL_CONFIG], [# The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ _LT_AC_TAGVAR(compiler, $1) \ _LT_AC_TAGVAR(CC, $1) \ _LT_AC_TAGVAR(LD, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ _LT_AC_TAGVAR(old_archive_cmds, $1) \ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ _LT_AC_TAGVAR(predep_objects, $1) \ _LT_AC_TAGVAR(postdep_objects, $1) \ _LT_AC_TAGVAR(predeps, $1) \ _LT_AC_TAGVAR(postdeps, $1) \ _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ _LT_AC_TAGVAR(archive_cmds, $1) \ _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ _LT_AC_TAGVAR(postinstall_cmds, $1) \ _LT_AC_TAGVAR(postuninstall_cmds, $1) \ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ _LT_AC_TAGVAR(allow_undefined_flag, $1) \ _LT_AC_TAGVAR(no_undefined_flag, $1) \ _LT_AC_TAGVAR(export_symbols_cmds, $1) \ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ _LT_AC_TAGVAR(hardcode_automatic, $1) \ _LT_AC_TAGVAR(module_cmds, $1) \ _LT_AC_TAGVAR(module_expsym_cmds, $1) \ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ _LT_AC_TAGVAR(fix_srcfile_path, $1) \ _LT_AC_TAGVAR(exclude_expsyms, $1) \ _LT_AC_TAGVAR(include_expsyms, $1); do case $var in _LT_AC_TAGVAR(old_archive_cmds, $1) | \ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ _LT_AC_TAGVAR(archive_cmds, $1) | \ _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ _LT_AC_TAGVAR(module_cmds, $1) | \ _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\[$]0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` ;; esac ifelse([$1], [], [cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" AC_MSG_NOTICE([creating $ofile])], [cfgfile="$ofile"]) cat <<__EOF__ >> "$cfgfile" ifelse([$1], [], [#! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e 1s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG], [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) # Is the compiler the GNU C compiler? with_gcc=$_LT_AC_TAGVAR(GCC, $1) # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_[]_LT_AC_TAGVAR(LD, $1) # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) # Commands used to build and install a shared archive. archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) # Flag that forces no undefined symbols. no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) # The commands to list exported symbols. export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) # Symbols that must always be exported. include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) ifelse([$1],[], [# ### END LIBTOOL CONFIG], [# ### END LIBTOOL TAG CONFIG: $tagname]) __EOF__ ifelse([$1],[], [ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ]) else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ])# AC_LIBTOOL_CONFIG # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # --------------------------------- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([LT_AC_PROG_SED]) AC_REQUIRE([AC_PROG_NM]) AC_REQUIRE([AC_OBJEXT]) # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32*) symcode='[[ABCDGISTW]]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux* | k*bsd*-gnu) if test "$host_cpu" = ia64; then symcode='[[ABCDGIRSTW]]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[[]] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) # --------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) ifelse([$1],[CXX],[ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; icpc* | ecpc*) # Intel C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC*) # Portland Group C++ compiler. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; vxworks*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; newsos6) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" ;; esac # # Check to make sure the static flag actually works. # wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) ]) # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) # ------------------------------------ # See if the linker supports building shared libraries. AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) ifelse([$1],[CXX],[ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw*) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' ;; *) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ],[ runpath_var= _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)= _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_AC_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. _LT_CC_BASENAME([$compiler]) case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac _LT_AC_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; interix[[3-9]]*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=yes _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # see comment about different semantics on the GNU ld section _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; bsdi[[45]]*) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' if test "$GCC" = yes; then wlarc='${wl}' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_AC_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_AC_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_AC_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) _LT_AC_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac ])# AC_LIBTOOL_PROG_LD_SHLIBS # _LT_AC_FILE_LTDLL_C # ------------------- # Be careful that the start marker always follows a newline. AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ # /* ltdll.c starts here */ # #define WIN32_LEAN_AND_MEAN # #include # #undef WIN32_LEAN_AND_MEAN # #include # # #ifndef __CYGWIN__ # # ifdef __CYGWIN32__ # # define __CYGWIN__ __CYGWIN32__ # # endif # #endif # # #ifdef __cplusplus # extern "C" { # #endif # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); # #ifdef __cplusplus # } # #endif # # #ifdef __CYGWIN__ # #include # DECLARE_CYGWIN_DLL( DllMain ); # #endif # HINSTANCE __hDllInstance_base; # # BOOL APIENTRY # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) # { # __hDllInstance_base = hInst; # return TRUE; # } # /* ltdll.c ends here */ ])# _LT_AC_FILE_LTDLL_C # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) # --------------------------------- AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) # old names AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) AC_DEFUN([LT_AC_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj, no) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS) ]) AC_DEFUN([LT_AC_PROG_RC], [AC_CHECK_TOOL(RC, windres, no) ]) # Cheap backport of AS_EXECUTABLE_P and required macros # from Autoconf 2.59; we should not use $as_executable_p directly. # _AS_TEST_PREPARE # ---------------- m4_ifndef([_AS_TEST_PREPARE], [m4_defun([_AS_TEST_PREPARE], [if test -x / >/dev/null 2>&1; then as_executable_p='test -x' else as_executable_p='test -f' fi ])])# _AS_TEST_PREPARE # AS_EXECUTABLE_P # --------------- # Check whether a file is executable. m4_ifndef([AS_EXECUTABLE_P], [m4_defun([AS_EXECUTABLE_P], [AS_REQUIRE([_AS_TEST_PREPARE])dnl $as_executable_p $1[]dnl ])])# AS_EXECUTABLE_P # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # # LT_AC_PROG_SED # -------------- # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. AC_DEFUN([LT_AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ]) # # SYNOPSIS # # VL_LIB_READLINE # # DESCRIPTION # # Searches for a readline compatible library. If found, defines # `HAVE_LIBREADLINE'. If the found library has the `add_history' # function, sets also `HAVE_READLINE_HISTORY'. Also checks for the # locations of the necessary include files and sets `HAVE_READLINE_H' # or `HAVE_READLINE_READLINE_H' and `HAVE_READLINE_HISTORY_H' or # 'HAVE_HISTORY_H' if the corresponding include files exists. # # The libraries that may be readline compatible are `libedit', # `libeditline' and `libreadline'. Sometimes we need to link a # termcap library for readline to work, this macro tests these cases # too by trying to link with `libtermcap', `libcurses' or # `libncurses' before giving up. # # Here is an example of how to use the information provided by this # macro to perform the necessary includes or declarations in a C # file: # # #ifdef HAVE_LIBREADLINE # # if defined(HAVE_READLINE_READLINE_H) # # include # # elif defined(HAVE_READLINE_H) # # include # # else /* !defined(HAVE_READLINE_H) */ # extern char *readline (); # # endif /* !defined(HAVE_READLINE_H) */ # char *cmdline = NULL; # #else /* !defined(HAVE_READLINE_READLINE_H) */ # /* no readline */ # #endif /* HAVE_LIBREADLINE */ # # #ifdef HAVE_READLINE_HISTORY # # if defined(HAVE_READLINE_HISTORY_H) # # include # # elif defined(HAVE_HISTORY_H) # # include # # else /* !defined(HAVE_HISTORY_H) */ # extern void add_history (); # extern int write_history (); # extern int read_history (); # # endif /* defined(HAVE_READLINE_HISTORY_H) */ # /* no history */ # #endif /* HAVE_READLINE_HISTORY */ # # LAST MODIFICATION # # 2002-04-04 # # COPYLEFT # # Copyright (c) 2002 Ville Laurikari # # Copying and distribution of this file, with or without # modification, are permitted in any medium without royalty provided # the copyright notice and this notice are preserved. AC_DEFUN([VL_LIB_READLINE], [ AC_CACHE_CHECK([for a readline compatible library], vl_cv_lib_readline, [ ORIG_LIBS="$LIBS" for readline_lib in readline edit editline; do for termcap_lib in "" termcap curses ncurses; do if test -z "$termcap_lib"; then TRY_LIB="-l$readline_lib" else TRY_LIB="-l$readline_lib -l$termcap_lib" fi LIBS="$ORIG_LIBS $TRY_LIB" AC_TRY_LINK_FUNC(readline, vl_cv_lib_readline="$TRY_LIB") if test -n "$vl_cv_lib_readline"; then break fi done if test -n "$vl_cv_lib_readline"; then break fi done if test -z "$vl_cv_lib_readline"; then vl_cv_lib_readline="no" LIBS="$ORIG_LIBS" fi ]) if test "$vl_cv_lib_readline" != "no"; then AC_DEFINE(HAVE_LIBREADLINE, 1, [Define if you have a readline compatible library]) AC_CHECK_HEADERS(readline.h readline/readline.h) AC_CACHE_CHECK([whether readline supports history], vl_cv_lib_readline_history, [ vl_cv_lib_readline_history="no" AC_TRY_LINK_FUNC(add_history, vl_cv_lib_readline_history="yes") ]) if test "$vl_cv_lib_readline_history" = "yes"; then AC_DEFINE(HAVE_READLINE_HISTORY, 1, [Define if your readline library has \`add_history']) AC_CHECK_HEADERS(history.h readline/history.h) fi fi ])dnl # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.10' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.10], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.10])dnl _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 3 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 12 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.60])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $1 | $1:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 AC_DEFUN([AM_MAINTAINER_MODE], [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode is disabled by default AC_ARG_ENABLE(maintainer-mode, [ --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer], USE_MAINTAINER_MODE=$enableval, USE_MAINTAINER_MODE=no) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST(MAINT)dnl ] ) AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # --------------------------------------------------------------------------- # Adds support for distributing Python modules and packages. To # install modules, copy them to $(pythondir), using the python_PYTHON # automake variable. To install a package with the same name as the # automake package, install to $(pkgpythondir), or use the # pkgpython_PYTHON automake variable. # # The variables $(pyexecdir) and $(pkgpyexecdir) are provided as # locations to install python extension modules (shared libraries). # Another macro is required to find the appropriate flags to compile # extension modules. # # If your package is configured with a different prefix to python, # users will have to add the install directory to the PYTHONPATH # environment variable, or create a .pth file (see the python # documentation for details). # # If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will # cause an error if the version of python installed on the system # doesn't meet the requirement. MINIMUM-VERSION should consist of # numbers and dots only. AC_DEFUN([AM_PATH_PYTHON], [ dnl Find a Python interpreter. Python versions prior to 1.5 are not dnl supported because the default installation locations changed from dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages dnl in 1.5. m4_define_default([_AM_PYTHON_INTERPRETER_LIST], [python python2 python2.5 python2.4 python2.3 python2.2 dnl python2.1 python2.0 python1.6 python1.5]) m4_if([$1],[],[ dnl No version check is needed. # Find any Python interpreter. if test -z "$PYTHON"; then AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :) fi am_display_PYTHON=python ], [ dnl A version check is needed. if test -n "$PYTHON"; then # If the user set $PYTHON, use it and don't search something else. AC_MSG_CHECKING([whether $PYTHON version >= $1]) AM_PYTHON_CHECK_VERSION([$PYTHON], [$1], [AC_MSG_RESULT(yes)], [AC_MSG_ERROR(too old)]) am_display_PYTHON=$PYTHON else # Otherwise, try each interpreter until we find one that satisfies # VERSION. AC_CACHE_CHECK([for a Python interpreter with version >= $1], [am_cv_pathless_PYTHON],[ for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do test "$am_cv_pathless_PYTHON" = none && break AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break]) done]) # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. if test "$am_cv_pathless_PYTHON" = none; then PYTHON=: else AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON]) fi am_display_PYTHON=$am_cv_pathless_PYTHON fi ]) if test "$PYTHON" = :; then dnl Run any user-specified action, or abort. m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])]) else dnl Query Python for its version number. Getting [:3] seems to be dnl the best way to do this; it's what "site.py" does in the standard dnl library. AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version], [am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`]) AC_SUBST([PYTHON_VERSION], [$am_cv_python_version]) dnl Use the values of $prefix and $exec_prefix for the corresponding dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made dnl distinct variables so they can be overridden if need be. However, dnl general consensus is that you shouldn't need this ability. AC_SUBST([PYTHON_PREFIX], ['${prefix}']) AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}']) dnl At times (like when building shared libraries) you may want dnl to know which OS platform Python thinks this is. AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform], [am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`]) AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform]) dnl Set up 4 directories: dnl pythondir -- where to install python scripts. This is the dnl site-packages directory, not the python standard library dnl directory like in previous automake betas. This behavior dnl is more consistent with lispdir.m4 for example. dnl Query distutils for this directory. distutils does not exist in dnl Python 1.5, so we fall back to the hardcoded directory if it dnl doesn't work. AC_CACHE_CHECK([for $am_display_PYTHON script directory], [am_cv_python_pythondir], [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null || echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`]) AC_SUBST([pythondir], [$am_cv_python_pythondir]) dnl pkgpythondir -- $PACKAGE directory under pythondir. Was dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is dnl more consistent with the rest of automake. AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE]) dnl pyexecdir -- directory for installing python extension modules dnl (shared libraries) dnl Query distutils for this directory. distutils does not exist in dnl Python 1.5, so we fall back to the hardcoded directory if it dnl doesn't work. AC_CACHE_CHECK([for $am_display_PYTHON extension module directory], [am_cv_python_pyexecdir], [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null || echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`]) AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir]) dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE) AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE]) dnl Run any user-specified action. $2 fi ]) # AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) # --------------------------------------------------------------------------- # Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION. # Run ACTION-IF-FALSE otherwise. # This test uses sys.hexversion instead of the string equivalent (first # word of sys.version), in order to cope with versions such as 2.2c1. # hexversion has been introduced in Python 1.5.2; it's probably not # worth to support older versions (1.5.1 was released on October 31, 1998). AC_DEFUN([AM_PYTHON_CHECK_VERSION], [prog="import sys, string # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. minver = map(int, string.split('$2', '.')) + [[0, 0, 0]] minverhex = 0 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]] sys.exit(sys.hexversion < minverhex)" AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR silo-4.8-bsd/Makefile.am0000644000707000001660000001216011444246315014524 0ustar miller86visit# Copyright (c) 1994 - 2010, Lawrence Livermore National Security, LLC. # LLNL-CODE-425250. # All rights reserved. # # This file is part of Silo. For details, see silo.llnl.gov. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the disclaimer below. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the disclaimer (as noted # below) in the documentation and/or other materials provided with # the distribution. # * Neither the name of the LLNS/LLNL nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE # LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # This work was produced at Lawrence Livermore National Laboratory under # Contract No. DE-AC52-07NA27344 with the DOE. # # Neither the United States Government nor Lawrence Livermore National # Security, LLC nor any of their employees, makes any warranty, express # or implied, or assumes any liability or responsibility for the # accuracy, completeness, or usefulness of any information, apparatus, # product, or process disclosed, or represents that its use would not # infringe privately-owned rights. # # Any reference herein to any specific commercial products, process, or # services by trade name, trademark, manufacturer or otherwise does not # necessarily constitute or imply its endorsement, recommendation, or # favoring by the United States Government or Lawrence Livermore # National Security, LLC. The views and opinions of authors expressed # herein do not necessarily state or reflect those of the United States # Government or Lawrence Livermore National Security, LLC, and shall not # be used for advertising or product endorsement purposes. # ############################################################################## # # Modifications: # # Mark C. Miller, Tue Aug 3 17:23:07 PDT 2010 # Added logic to error out of there already exists a bsd dir into which we # wish to create a bsd tree. Added logic to remove the dir after completion. # # Mark C. Miller, Wed Aug 4 15:52:52 PDT 2010 # Added logic to handle windows project files for BSD release. # # Mark C. Miller, Mon Aug 9 16:58:46 PDT 2010 # Added creation of smalltest dist for bsd distributions. ACLOCAL_AMFLAGS = -I config nodist_noinst_HEADERS = config.h EXTRA_DIST = COPYRIGHT FAQ VERSION BSD_LICENSE_README MAINTAINERCLEANFILES = Makefile.in\ aclocal.m4\ configure ## We need `.' in SUBDIRS because we want `check' to build `.' first. SUBDIRS = . src tools tests DIST_SUBDIRS = . config config-site \ svn_bin docs src tests tools SiloWindows help: config/make.help cat $(srcdir)/config/make.help dist-gzip-bsd: dist-gzip @if test -e $(PACKAGE)-$(VERSION); then \ echo "A directory or file named $(PACKAGE)-$(VERSION) already exists" ;\ echo "Please remove before proceeding" ;\ exit 1 ;\ fi @if test -e $(PACKAGE)-$(VERSION)-bsd; then \ echo "A directory or file named $(PACKAGE)-$(VERSION)-bsd already exists" ;\ echo "Please remove before proceeding" ;\ exit 1 ;\ fi rm -f $(PACKAGE)-$(VERSION)-bsd.tar.gz $(PACKAGE)-$(VERSION)-bsd-smalltest.tar.gz gunzip < $(PACKAGE)-$(VERSION).tar.gz | tar xf - cp -R $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION)-bsd rm -rf $(PACKAGE)-$(VERSION)-bsd/src/hzip rm -rf $(PACKAGE)-$(VERSION)-bsd/src/fpzip rm -rf $(PACKAGE)-$(VERSION)-bsd/SiloWindows/MSVC8 mv $(PACKAGE)-$(VERSION)-bsd/SiloWindows/MSVC8-BSD $(PACKAGE)-$(VERSION)-bsd/SiloWindows/MSVC8 tar cf - $(PACKAGE)-$(VERSION)-bsd | gzip --best > $(PACKAGE)-$(VERSION)-bsd.tar.gz rm -rf $(PACKAGE)-$(VERSION)-bsd/tests/{amr3d.silo,pion0244.silo,amr2d.silo,xvers_data.tar.bz2} tar cf - $(PACKAGE)-$(VERSION)-bsd | gzip --best > $(PACKAGE)-$(VERSION)-bsd-smalltest.tar.gz rm -rf $(PACKAGE)-$(VERSION)-bsd rm -rf $(PACKAGE)-$(VERSION)/SiloWindows/MSVC8-BSD tar cf - $(PACKAGE)-$(VERSION) | gzip --best > $(PACKAGE)-$(VERSION).tar.gz rm -rf $(PACKAGE)-$(VERSION) .PHONY: help ## Override Automake's default definition for this am__tar = ${AMTAR} cof - "$$tardir" silo-4.8-bsd/Makefile.in0000644000707000001660000006232211444246315014542 0ustar miller86visit# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (c) 1994 - 2010, Lawrence Livermore National Security, LLC. # LLNL-CODE-425250. # All rights reserved. # # This file is part of Silo. For details, see silo.llnl.gov. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the disclaimer below. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the disclaimer (as noted # below) in the documentation and/or other materials provided with # the distribution. # * Neither the name of the LLNS/LLNL nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE # LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # This work was produced at Lawrence Livermore National Laboratory under # Contract No. DE-AC52-07NA27344 with the DOE. # # Neither the United States Government nor Lawrence Livermore National # Security, LLC nor any of their employees, makes any warranty, express # or implied, or assumes any liability or responsibility for the # accuracy, completeness, or usefulness of any information, apparatus, # product, or process disclosed, or represents that its use would not # infringe privately-owned rights. # # Any reference herein to any specific commercial products, process, or # services by trade name, trademark, manufacturer or otherwise does not # necessarily constitute or imply its endorsement, recommendation, or # favoring by the United States Government or Lawrence Livermore # National Security, LLC. The views and opinions of authors expressed # herein do not necessarily state or reflect those of the United States # Government or Lawrence Livermore National Security, LLC, and shall not # be used for advertising or product endorsement purposes. # ############################################################################## # # Modifications: # # Mark C. Miller, Tue Aug 3 17:23:07 PDT 2010 # Added logic to error out of there already exists a bsd dir into which we # wish to create a bsd tree. Added logic to remove the dir after completion. # # Mark C. Miller, Wed Aug 4 15:52:52 PDT 2010 # Added logic to handle windows project files for BSD release. # # Mark C. Miller, Mon Aug 9 16:58:46 PDT 2010 # Added creation of smalltest dist for bsd distributions. VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(top_srcdir)/config/config.h.in \ $(top_srcdir)/configure INSTALL ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive HEADERS = $(nodist_noinst_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BROWSER = @BROWSER@ BUNDLE_TARGET = @BUNDLE_TARGET@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CC_FULLPATH = @CC_FULLPATH@ CFLAGS = @CFLAGS@ CONFIG_CMD = @CONFIG_CMD@ CONFIG_DATE = @CONFIG_DATE@ CONFIG_USER = @CONFIG_USER@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CXX_FULLPATH = @CXX_FULLPATH@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FC_FULLPATH = @FC_FULLPATH@ FFLAGS = @FFLAGS@ FORTRAN = @FORTRAN@ FPZIP = @FPZIP@ GREP = @GREP@ HDF5_DRV = @HDF5_DRV@ HZIP = @HZIP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NETCDF = @NETCDF@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PDBP_DRV = @PDBP_DRV@ PDB_DRV = @PDB_DRV@ PRTDIAG = @PRTDIAG@ PYTHON = @PYTHON@ PYTHONMODULE = @PYTHONMODULE@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT_BIN = @QT_BIN@ QT_CORE = @QT_CORE@ QT_CORE_LIB = @QT_CORE_LIB@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_GUI = @QT_GUI@ QT_GUI_LIB = @QT_GUI_LIB@ QT_INCLUDE = @QT_INCLUDE@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_MOC = @QT_MOC@ RANLIB = @RANLIB@ READLINE_LIBS = @READLINE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SILEX = @SILEX@ SILO_DTYPPTR = @SILO_DTYPPTR@ SILO_DTYPPTR1 = @SILO_DTYPPTR1@ SILO_DTYPPTR2 = @SILO_DTYPPTR2@ SILO_VERS_MAJ = @SILO_VERS_MAJ@ SILO_VERS_MIN = @SILO_VERS_MIN@ SILO_VERS_PAT = @SILO_VERS_PAT@ SILO_VERS_PRE = @SILO_VERS_PRE@ SILO_VERS_TAG = @SILO_VERS_TAG@ STRIP = @STRIP@ TAURUS = @TAURUS@ VERSION = @VERSION@ ZLIB = @ZLIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = ${AMTAR} cof - "$$tardir" am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ACLOCAL_AMFLAGS = -I config nodist_noinst_HEADERS = config.h EXTRA_DIST = COPYRIGHT FAQ VERSION BSD_LICENSE_README MAINTAINERCLEANFILES = Makefile.in\ aclocal.m4\ configure SUBDIRS = . src tools tests DIST_SUBDIRS = . config config-site \ svn_bin docs src tests tools SiloWindows all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ cd $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(top_srcdir)/config/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(top_srcdir)/config/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d $(distdir) || mkdir $(distdir) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ am__remove_distdir=: \ am__skip_length_check=: \ distdir) \ || exit 1; \ fi; \ done -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(HEADERS) config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-exec-am: install-html: install-html-recursive install-info: install-info-recursive install-man: install-pdf: install-pdf-recursive install-ps: install-ps-recursive installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \ distclean-generic distclean-hdr distclean-libtool \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am help: config/make.help cat $(srcdir)/config/make.help dist-gzip-bsd: dist-gzip @if test -e $(PACKAGE)-$(VERSION); then \ echo "A directory or file named $(PACKAGE)-$(VERSION) already exists" ;\ echo "Please remove before proceeding" ;\ exit 1 ;\ fi @if test -e $(PACKAGE)-$(VERSION)-bsd; then \ echo "A directory or file named $(PACKAGE)-$(VERSION)-bsd already exists" ;\ echo "Please remove before proceeding" ;\ exit 1 ;\ fi rm -f $(PACKAGE)-$(VERSION)-bsd.tar.gz $(PACKAGE)-$(VERSION)-bsd-smalltest.tar.gz gunzip < $(PACKAGE)-$(VERSION).tar.gz | tar xf - cp -R $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION)-bsd rm -rf $(PACKAGE)-$(VERSION)-bsd/src/hzip rm -rf $(PACKAGE)-$(VERSION)-bsd/src/fpzip rm -rf $(PACKAGE)-$(VERSION)-bsd/SiloWindows/MSVC8 mv $(PACKAGE)-$(VERSION)-bsd/SiloWindows/MSVC8-BSD $(PACKAGE)-$(VERSION)-bsd/SiloWindows/MSVC8 tar cf - $(PACKAGE)-$(VERSION)-bsd | gzip --best > $(PACKAGE)-$(VERSION)-bsd.tar.gz rm -rf $(PACKAGE)-$(VERSION)-bsd/tests/{amr3d.silo,pion0244.silo,amr2d.silo,xvers_data.tar.bz2} tar cf - $(PACKAGE)-$(VERSION)-bsd | gzip --best > $(PACKAGE)-$(VERSION)-bsd-smalltest.tar.gz rm -rf $(PACKAGE)-$(VERSION)-bsd rm -rf $(PACKAGE)-$(VERSION)/SiloWindows/MSVC8-BSD tar cf - $(PACKAGE)-$(VERSION) | gzip --best > $(PACKAGE)-$(VERSION).tar.gz rm -rf $(PACKAGE)-$(VERSION) .PHONY: help # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: silo-4.8-bsd/configure0000755000707000001660000341432711444246315014415 0ustar miller86visit#! /bin/sh # From configure.ac Id. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for silo 4.8. # # Report bugs to . # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # # This work was performed under the auspices of the # U.S. Department of Energy by Lawrence Livermore National Laboratory # in part under Contract W-7405-Eng-48 and in part under # Contract DE-AC52-07NA27344. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac echo=${ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/dev/null && echo_test_string=`eval $cmd` && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi tagnames=${tagnames+${tagnames},}CXX tagnames=${tagnames+${tagnames},}F77 exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='silo' PACKAGE_TARNAME='silo' PACKAGE_VERSION='4.8' PACKAGE_STRING='silo 4.8' PACKAGE_BUGREPORT='visit-users@email.ornl.gov' ac_unique_file="src/silo/silo.h.in" ac_default_prefix="`pwd`" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" 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 datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA am__isrc CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT PYTHONMODULE build build_cpu build_vendor build_os host host_cpu host_vendor host_os SILO_VERS_MAJ SILO_VERS_MIN SILO_VERS_PAT SILO_VERS_PRE SILO_VERS_TAG CONFIG_CMD CONFIG_DATE CONFIG_USER FORTRAN CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP FC FCFLAGS ac_ct_FC FCLIBS SED GREP EGREP LN_S ECHO AR RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SILO_DTYPPTR SILO_DTYPPTR1 SILO_DTYPPTR2 NETCDF PDB_DRV TAURUS HDF5_DRV BROWSER SILEX HZIP ZLIB FPZIP PRTDIAG PDBP_DRV READLINE_LIBS QT_BIN QT_INCLUDE QT_LIB QT_LDFLAGS QT_LIBS QT_CORE QT_CORE_LIB QT_GUI QT_GUI_LIB QT_CXXFLAGS QT_MOC PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir PYTHON_CPPFLAGS BUNDLE_TARGET NETCDF_NEEDED_TRUE NETCDF_NEEDED_FALSE PDB_DRV_NEEDED_TRUE PDB_DRV_NEEDED_FALSE PDBP_DRV_NEEDED_TRUE PDBP_DRV_NEEDED_FALSE TAURUS_NEEDED_TRUE TAURUS_NEEDED_FALSE HDF5_DRV_NEEDED_TRUE HDF5_DRV_NEEDED_FALSE BROWSER_NEEDED_TRUE BROWSER_NEEDED_FALSE PYTHON_NEEDED_TRUE PYTHON_NEEDED_FALSE FORTRAN_NEEDED_TRUE FORTRAN_NEEDED_FALSE SILEX_NEEDED_TRUE SILEX_NEEDED_FALSE HZIP_NEEDED_TRUE HZIP_NEEDED_FALSE FPZIP_NEEDED_TRUE FPZIP_NEEDED_FALSE ZLIB_AVAILABLE_TRUE ZLIB_AVAILABLE_FALSE CXX_LINK_NEEDED_TRUE CXX_LINK_NEEDED_FALSE CC_FULLPATH CXX_FULLPATH FC_FULLPATH LIBOBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CXX CXXFLAGS LDFLAGS LIBS CPPFLAGS CCC CC CFLAGS CPP FC FCFLAGS CXXCPP F77 FFLAGS' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures silo 4.8 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/silo] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of silo 4.8:";; esac cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --enable-pythonmodule build python module [default=no] --enable-shared[=PKGS] build shared libraries [default=yes] --enable-fortran compile Fortran interface to Silo [default=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-optimization compile with optimization [default=no] --enable-legacy-datatyped-pointers compile using legacy (float) pointers for datatype'd pointers [default=no] --enable-browser build browser [default=yes] --enable-silex build the silex browser [default=no] --enable-hzip enable Lindstrom hex/quad mesh compression [default=yes] --enable-fpzip enable Lindstrom float 1,2,3D array compression [default=yes] --enable-portable-binary disable compiler optimizations that would produce unportable binaries Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] --with-tags[=TAGS] include additional configurations [automatic] --with-readline enable detection of GNU readline [default=yes] --with-zlib=INC,DIR Use the GNU zlib compression [default=yes] --with-gcc-arch= use architecture for gcc -march/-mtune, instead of guessing --with-szlib=DIR Use szlib library for external szlib I/O filter [default=no] --with-hdf5=INC,LIB Location of HDF5 header and library --with-pdb-proper directory where PDB proper is installed [default=no] --with-qt specify top-level Qt directory [default=yes] --with-qt-bin specify Qt bin directory --with-qt-include specify Qt include directory --with-qt-lib specify Qt lib directory Some influential environment variables: CXX C++ compiler command CXXFLAGS C++ compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CC C compiler command CFLAGS C compiler flags CPP C preprocessor FC Fortran compiler command FCFLAGS Fortran compiler flags CXXCPP C++ preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF silo configure 4.8 generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. This work was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory in part under Contract W-7405-Eng-48 and in part under Contract DE-AC52-07NA27344. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by silo $as_me 4.8, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in config "$srcdir"/config; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. am__api_version='1.10' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm -f conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } if test -z "$MKDIR_P"; then if test "${ac_cv_path_mkdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. test -d ./--version && rmdir ./--version MKDIR_P="$ac_install_sh -d" fi fi { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 echo "${ECHO_T}$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='silo' VERSION='4.8' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_config_headers="$ac_config_headers config.h:config/config.h.in" { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE # using autotest ac_config_commands="$ac_config_commands tests/atconfig" PYTHONMODULE=$DEFAULT_PYTHONMODULE # Check whether --enable-pythonmodule was given. if test "${enable_pythonmodule+set}" = set; then enableval=$enable_pythonmodule; if test "$enable_pythonmodule" = "yes"; then PYTHONMODULE="python" fi fi if test -n "$PYTHONMODULE"; then # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi else # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=no fi fi # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking build system type" >&5 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } if test "${ac_cv_build+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 echo "${ECHO_T}$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 echo "$as_me: error: invalid value of canonical build" >&2;} { (exit 1); exit 1; }; };; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { echo "$as_me:$LINENO: checking host system type" >&5 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } if test "${ac_cv_host+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 echo "${ECHO_T}$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 echo "$as_me: error: invalid value of canonical host" >&2;} { (exit 1); exit 1; }; };; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac # Grab the version number { echo "$as_me:$LINENO: checking what version the package is" >&5 echo $ECHO_N "checking what version the package is... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: 4.8" >&5 echo "${ECHO_T}4.8" >&6; } SILO_VERS_MAJ="`echo 4.8 | cut -d'.' -f1`" SILO_VERS_MIN="`echo 4.8 | cut -d'.' -f2 | cut -d'-' -f1`" SILO_VERS_PAT="`echo 4.8 | cut -d'.' -f3 | cut -d'-' -f1`" SILO_VERS_PRE="`echo 4.8 | grep pre | cut -d'-' -f2 | cut -d'e' -f2`" SILO_VERS_TAG="`echo Silo_version 4.8 | sed -e 's/ /_/' -e 's/\./_/g' -e 's/-/_/g'`" CONFIG_CMD="`echo $0 $ac_configure_args`" CONFIG_DATE="`date`" CONFIG_USER="`whoami`@`hostname`" if test -n "$ORGANIZATION"; then CONFIG_USER="$CONFIG_USER at $ORGANIZATION" fi DEFAULT_PYTHONMODULE="" DEFAULT_BROWSER="browser" DEFAULT_SILEX="silex" DEFAULT_HZIP="hzip" DEFAULT_FPZIP="fpzip" DEFAULT_FORTRAN="fortran" default_detect_readline="yes" hname="`hostname`" file=$srcdir/config-site/$hname.conf { echo "$as_me:$LINENO: checking for site config host file" >&5 echo $ECHO_N "checking for site config host file... $ECHO_C" >&6; } if test -f "$file"; then . $file { echo "$as_me:$LINENO: result: found $file" >&5 echo "${ECHO_T}found $file" >&6; } else hname="`hostname | cut -f1 -d.`" file=$srcdir/config-site/$hname.conf if test -f "$file"; then . $file { echo "$as_me:$LINENO: result: found $file" >&5 echo "${ECHO_T}found $file" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi case $host_os in aix4.*) host_os_novers=aix4.x ;; aix5.*) host_os_novers=aix5.x ;; freebsd*) host_os_novers=freebsd ;; irix5.*) host_os_novers=irix5.x ;; irix6.*) host_os_novers=irix6.x ;; osf4.*) host_os_novers=osf4.x ;; osf5.*) host_os_novers=osf5.x ;; solaris2.*) host_os_novers=solaris2.x ;; *) host_os_novers=$host_os ;; esac UNAME="`uname`" host_config="none" for f in $host_cpu-$host_vendor-$host_os \ $host_cpu-$host_vendor-$host_os_novers \ $host_vendor-$host_os \ $host_vendor-$host_os_novers \ $host_cpu-$host_os \ $host_cpu-$host_os_novers \ $host_cpu-$host_vendor \ $host_os \ $host_os_novers \ $host_vendor \ $host_cpu \ $UNAME; do { echo "$as_me:$LINENO: checking for config-site $f" >&5 echo $ECHO_N "checking for config-site $f... $ECHO_C" >&6; } if test -f "$srcdir/config-site/$f.conf"; then host_config=$srcdir/config-site/$f.conf { echo "$as_me:$LINENO: result: found" >&5 echo "${ECHO_T}found" >&6; } break fi { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } done if test "X$host_config" != "Xnone"; then . $host_config fi # # MCM -- 22Jul08. I don't know why we're mixing FC and F77 stuf here. # According to autoconf web pages, we should probably use one or the # other but not both. Also, given that silo_f.h uses FC_FUNC macro, # I don't see how we can get by using F77. So, it is removed and we're # using only FC. # FORTRAN=$DEFAULT_FORTRAN # Check whether --enable-fortran was given. if test "${enable_fortran+set}" = set; then enableval=$enable_fortran; if test "$enable_fortran" = "no" ; then FORTRAN="" fi fi # Check for programs. # We shouldn't depend on too many! ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C++ compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi { echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$FORTRAN"; then ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_FC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$FC"; then ac_cv_prog_FC="$FC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_FC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi FC=$ac_cv_prog_FC if test -n "$FC"; then { echo "$as_me:$LINENO: result: $FC" >&5 echo "${ECHO_T}$FC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$FC" && break done fi if test -z "$FC"; then ac_ct_FC=$FC for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_FC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_FC"; then ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_FC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_FC=$ac_cv_prog_ac_ct_FC if test -n "$ac_ct_FC"; then { echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 echo "${ECHO_T}$ac_ct_FC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_FC" && break done if test "x$ac_ct_FC" = x; then FC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac FC=$ac_ct_FC fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for Fortran compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; } if test "${ac_cv_fc_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_fc_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_fc_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FFLAGS=${FCFLAGS+set} ac_save_FFLAGS=$FCFLAGS FCFLAGS= { echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_fc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else FCFLAGS=-g cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_fc_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_fc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_fc_g=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; } if test "$ac_test_FFLAGS" = set; then FCFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_fc_g = yes; then if test "x$ac_cv_fc_compiler_gnu" = xyes; then FCFLAGS="-g -O2" else FCFLAGS="-g" fi else if test "x$ac_cv_fc_compiler_gnu" = xyes; then FCFLAGS="-O2" else FCFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5 echo $ECHO_N "checking how to get verbose linking output from $FC... $ECHO_C" >&6; } if test "${ac_cv_prog_fc_v+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_fc_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_fc_v= # Try some options frequently used verbose output for ac_verb in -v -verbose --verbose -V -\#\#\#; do cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF # Compile and link our simple test program by passing a flag (argument # 1 to this macro) to the Fortran compiler in order to get # "verbose" output that we can then parse for the Fortran linker # flags. ac_save_FFLAGS=$FCFLAGS FCFLAGS="$FCFLAGS $ac_verb" eval "set x $ac_link" shift echo "$as_me:$LINENO: $*" >&5 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` echo "$ac_fc_v_output" >&5 FCFLAGS=$ac_save_FFLAGS rm -f conftest* # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where # /foo, /bar, and /baz are search directories for the Fortran linker. # Here, we change these into -L/foo -L/bar -L/baz (and put it first): ac_fc_v_output="`echo $ac_fc_v_output | grep 'LPATH is:' | sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output" # FIXME: we keep getting bitten by quoted arguments; a more general fix # that detects unbalanced quotes in FLIBS should be implemented # and (ugh) tested at some point. case $ac_fc_v_output in # If we are using xlf then replace all the commas with spaces. *xlfentry*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted # $LIBS confuse us, and the libraries appear later in the output anyway). *mGLOB_options_string*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; # Portland Group compiler has singly- or doubly-quoted -cmdline argument # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". *-cmdline\ * | *-ignore\ * | *-def\ *) ac_fc_v_output=`echo $ac_fc_v_output | sed "\ s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; # If we are using Cray Fortran then delete quotes. *cft90*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; esac # look for -l* and *.a constructs in the output for ac_arg in $ac_fc_v_output; do case $ac_arg in [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) ac_cv_prog_fc_v=$ac_verb break 2 ;; esac done done if test -z "$ac_cv_prog_fc_v"; then { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5 echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5 echo "$as_me: WARNING: compilation failed" >&2;} fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5 echo "${ECHO_T}$ac_cv_prog_fc_v" >&6; } { echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5 echo $ECHO_N "checking for Fortran libraries of $FC... $ECHO_C" >&6; } if test "${ac_cv_fc_libs+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$FCLIBS" != "x"; then ac_cv_fc_libs="$FCLIBS" # Let the user override the test. else cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF # Compile and link our simple test program by passing a flag (argument # 1 to this macro) to the Fortran compiler in order to get # "verbose" output that we can then parse for the Fortran linker # flags. ac_save_FFLAGS=$FCFLAGS FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" eval "set x $ac_link" shift echo "$as_me:$LINENO: $*" >&5 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` echo "$ac_fc_v_output" >&5 FCFLAGS=$ac_save_FFLAGS rm -f conftest* # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where # /foo, /bar, and /baz are search directories for the Fortran linker. # Here, we change these into -L/foo -L/bar -L/baz (and put it first): ac_fc_v_output="`echo $ac_fc_v_output | grep 'LPATH is:' | sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output" # FIXME: we keep getting bitten by quoted arguments; a more general fix # that detects unbalanced quotes in FLIBS should be implemented # and (ugh) tested at some point. case $ac_fc_v_output in # If we are using xlf then replace all the commas with spaces. *xlfentry*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;; # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted # $LIBS confuse us, and the libraries appear later in the output anyway). *mGLOB_options_string*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; # Portland Group compiler has singly- or doubly-quoted -cmdline argument # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". *-cmdline\ * | *-ignore\ * | *-def\ *) ac_fc_v_output=`echo $ac_fc_v_output | sed "\ s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; # If we are using Cray Fortran then delete quotes. *cft90*) ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; esac ac_cv_fc_libs= # Save positional arguments (if any) ac_save_positional="$@" set X $ac_fc_v_output while test $# != 1; do shift ac_arg=$1 case $ac_arg in [\\/]*.a | ?:[\\/]*.a) ac_exists=false for ac_i in $ac_cv_fc_libs; do if test x"$ac_arg" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" fi ;; -bI:*) ac_exists=false for ac_i in $ac_cv_fc_libs; do if test x"$ac_arg" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else if test "$ac_compiler_gnu" = yes; then for ac_link_opt in $ac_arg; do ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" done else ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" fi fi ;; # Ignore these flags. -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*) ;; -lkernel32) test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" ;; -[LRuYz]) # These flags, when seen by themselves, take an argument. # We remove the space between option and argument and re-iterate # unless we find an empty arg or a new option (starting with -) case $2 in "" | -*);; *) ac_arg="$ac_arg$2" shift; shift set X $ac_arg "$@" ;; esac ;; -YP,*) for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do ac_exists=false for ac_i in $ac_cv_fc_libs; do if test x"$ac_j" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else ac_arg="$ac_arg $ac_j" ac_cv_fc_libs="$ac_cv_fc_libs $ac_j" fi done ;; -[lLR]*) ac_exists=false for ac_i in $ac_cv_fc_libs; do if test x"$ac_arg" = x"$ac_i"; then ac_exists=true break fi done if test x"$ac_exists" = xtrue; then : else ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" fi ;; -zallextract*| -zdefaultextract) ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" ;; # Ignore everything else. esac done # restore positional arguments set X $ac_save_positional; shift # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, # then we insist that the "run path" must be an absolute path (i.e. it # must begin with a "/"). case `(uname -sr) 2>/dev/null` in "SunOS 5"*) ac_ld_run_path=`echo $ac_fc_v_output | sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` test "x$ac_ld_run_path" != x && if test "$ac_compiler_gnu" = yes; then for ac_link_opt in $ac_ld_run_path; do ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" done else ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path" fi ;; esac fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" fi { echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5 echo "${ECHO_T}$ac_cv_fc_libs" >&6; } FCLIBS="$ac_cv_fc_libs" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5 echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6; } if test "${ac_cv_fc_dummy_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_fc_dm_save_LIBS=$LIBS LIBS="$LIBS $FCLIBS" ac_fortran_dm_var=FC_DUMMY_MAIN ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # First, try linking without a dummy main: cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_fortran_dummy_main=none else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_fortran_dummy_main=unknown fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test $ac_cv_fortran_dummy_main = unknown; then for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #define $ac_fortran_dm_var $ac_func #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_fortran_dummy_main=$ac_func; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext done fi ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main rm -f conftest* LIBS=$ac_fc_dm_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_fc_dummy_main" >&5 echo "${ECHO_T}$ac_cv_fc_dummy_main" >&6; } FC_DUMMY_MAIN=$ac_cv_fc_dummy_main if test "$FC_DUMMY_MAIN" != unknown; then if test $FC_DUMMY_MAIN != none; then cat >>confdefs.h <<_ACEOF #define FC_DUMMY_MAIN $FC_DUMMY_MAIN _ACEOF if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then cat >>confdefs.h <<\_ACEOF #define FC_DUMMY_MAIN_EQ_F77 1 _ACEOF fi fi else { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails See \`config.log' for more details." >&5 echo "$as_me: error: linking to Fortran libraries from C fails See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu { echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5 echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6; } if test "${ac_cv_fc_mangling+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF subroutine foobar() return end subroutine foo_bar() return end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_fc_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then mv conftest.$ac_objext cfortran_test.$ac_objext ac_save_LIBS=$LIBS LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_success=no for ac_foobar in foobar FOOBAR; do for ac_underscore in "" "_"; do ac_func="$ac_foobar$ac_underscore" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_success=yes; break 2 else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext done done ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$ac_success" = "yes"; then case $ac_foobar in foobar) ac_case=lower ac_foo_bar=foo_bar ;; FOOBAR) ac_case=upper ac_foo_bar=FOO_BAR ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_success_extra=no for ac_extra in "" "_"; do ac_func="$ac_foo_bar$ac_underscore$ac_extra" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_success_extra=yes; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext done ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu if test "$ac_success_extra" = "yes"; then ac_cv_fc_mangling="$ac_case case" if test -z "$ac_underscore"; then ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore" else ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore" fi if test -z "$ac_extra"; then ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore" else ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore" fi else ac_cv_fc_mangling="unknown" fi else ac_cv_fc_mangling="unknown" fi LIBS=$ac_save_LIBS rm -f cfortran_test* conftest* else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program See \`config.log' for more details." >&5 echo "$as_me: error: cannot compile a simple Fortran program See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_fc_mangling" >&5 echo "${ECHO_T}$ac_cv_fc_mangling" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=${ac_fc_srcext-f} ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_fc_compiler_gnu case $ac_cv_fc_mangling in "lower case, no underscore, no extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) name _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) name _ACEOF ;; "lower case, no underscore, extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) name _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) name ## _ _ACEOF ;; "lower case, underscore, no extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) name ## _ _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) name ## _ _ACEOF ;; "lower case, underscore, extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) name ## _ _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) name ## __ _ACEOF ;; "upper case, no underscore, no extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) NAME _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) NAME _ACEOF ;; "upper case, no underscore, extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) NAME _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) NAME ## _ _ACEOF ;; "upper case, underscore, no extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) NAME ## _ _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) NAME ## _ _ACEOF ;; "upper case, underscore, extra underscore") cat >>confdefs.h <<\_ACEOF #define FC_FUNC(name,NAME) NAME ## _ _ACEOF cat >>confdefs.h <<\_ACEOF #define FC_FUNC_(name,NAME) NAME ## __ _ACEOF ;; *) { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5 echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } if test "${lt_cv_path_SED+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done fi SED=$lt_cv_path_SED { echo "$as_me:$LINENO: result: $SED" >&5 echo "${ECHO_T}$SED" >&6; } { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_reload_flag='-r' fi { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } if test "${lt_cv_path_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi fi { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 echo "${ECHO_T}$lt_cv_path_NM" >&6; } NM="$lt_cv_path_NM" { echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6; } fi { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } if test "${lt_cv_deplibs_check_method+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix4* | aix5*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line 6463 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } if test "${lt_cv_cc_needs_belf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_cv_cc_needs_belf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) LD="${LD-ld} -64" ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------- ## ## Report this to visit-users@email.ornl.gov ## ## ----------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { echo "$as_me:$LINENO: result: $CXXCPP" >&5 echo "${ECHO_T}$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_F77="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi F77=$ac_cv_prog_F77 if test -n "$F77"; then { echo "$as_me:$LINENO: result: $F77" >&5 echo "${ECHO_T}$F77" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$F77" && break done fi if test -z "$F77"; then ac_ct_F77=$F77 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_F77="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 echo "${ECHO_T}$ac_ct_F77" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_F77" && break done if test "x$ac_ct_F77" = x; then F77="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac F77=$ac_ct_F77 fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } if test "${ac_cv_f77_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_f77_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FFLAGS=${FFLAGS+set} ac_save_FFLAGS=$FFLAGS FFLAGS= { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_f77_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else FFLAGS=-g cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_f77_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_f77_g=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } if test "$ac_test_FFLAGS" = set; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-g -O2" else FFLAGS="-g" fi else if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-O2" else FFLAGS= fi fi G77=`test $ac_compiler_gnu = yes && echo yes` ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! # find the maximum length of command line arguments { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } if test "${lt_cv_sys_max_cmd_len+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done teststring= # Add a significant safety factor because C++ compilers can tack on massive # amounts of additional arguments before passing them to the linker. # It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } else { echo "$as_me:$LINENO: result: none" >&5 echo "${ECHO_T}none" >&6; } fi # Check for command to grab the raw symbol name followed by C symbol from nm. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32*) symcode='[ABCDGISTW]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux* | k*bsd*-gnu) if test "$host_cpu" = ia64; then symcode='[ABCDGIRSTW]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Try without a prefix undercore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Now try to grab the symbols. nlist=conftest.nm if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if grep ' nm_test_var$' "$nlist" >/dev/null; then if grep ' nm_test_func$' "$nlist" >/dev/null; then cat < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { echo "$as_me:$LINENO: result: failed" >&5 echo "${ECHO_T}failed" >&6; } else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; } fi { echo "$as_me:$LINENO: checking for objdir" >&5 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } if test "${lt_cv_objdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 echo "${ECHO_T}$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="${ac_tool_prefix}ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { echo "$as_me:$LINENO: result: $AR" >&5 echo "${ECHO_T}$AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 echo "${ECHO_T}$ac_ct_AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi else AR="$ac_cv_prog_AR" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { echo "$as_me:$LINENO: checking for file" >&5 echo $ECHO_N "checking for file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac enable_dlopen=no enable_win32_dll=no # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Check whether --with-pic was given. if test "${with_pic+set}" = set; then withval=$with_pic; pic_mode="$withval" else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8519: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:8523: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; *) lt_prog_compiler_pic='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic='-qnocommon' lt_prog_compiler_wl='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8809: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:8813: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } if test x"$lt_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works=yes fi else lt_prog_compiler_static_works=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } if test x"$lt_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:8913: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:8917: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag= enable_shared_with_static_runtimes=no archive_cmds= archive_expsym_cmds= old_archive_From_new_cmds= old_archive_from_expsyms_cmds= export_dynamic_flag_spec= whole_archive_flag_spec= thread_safe_flag_spec= hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=unsupported link_all_deplibs=unknown hardcode_automatic=no module_cmds= module_expsym_cmds= always_export_symbols=no export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_libdir_separator=':' link_all_deplibs=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' link_all_deplibs=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs=no ;; esac fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld='-rpath $libdir' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: link_all_deplibs=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 echo "${ECHO_T}$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` else lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` sys_lib_search_path_spec=`echo $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ test -n "$runpath_var" || \ test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action" >&5 echo "${ECHO_T}$hardcode_action" >&6; } if test "$hardcode_action" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi striplib= old_striplib= { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi ;; *) { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } ;; esac fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) { echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shl_load /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_shl_load || defined __stub___shl_load choke me #endif #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else { echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_dlopen || defined __stub___dlopen choke me #endif #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=42;} int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi # Report which library types will actually be built { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6; } # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler \ CC \ LD \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_prog_compiler_no_builtin_flag \ export_dynamic_flag_spec \ thread_safe_flag_spec \ whole_archive_flag_spec \ enable_shared_with_static_runtimes \ old_archive_cmds \ old_archive_from_new_cmds \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ archive_cmds \ archive_expsym_cmds \ postinstall_cmds \ postuninstall_cmds \ old_archive_from_expsyms_cmds \ allow_undefined_flag \ no_undefined_flag \ export_symbols_cmds \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ hardcode_automatic \ module_cmds \ module_expsym_cmds \ lt_cv_prog_compiler_c_o \ fix_srcfile_path \ exclude_expsyms \ include_expsyms; do case $var in old_archive_cmds | \ old_archive_from_new_cmds | \ archive_cmds | \ archive_expsym_cmds | \ module_cmds | \ module_expsym_cmds | \ old_archive_from_expsyms_cmds | \ export_symbols_cmds | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" { echo "$as_me:$LINENO: creating $ofile" >&5 echo "$as_me: creating $ofile" >&6;} cat <<__EOF__ >> "$cfgfile" #! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="$SED -e 1s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler # Is the compiler the GNU C compiler? with_gcc=$GCC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # ### END LIBTOOL CONFIG __EOF__ case $host_os in aix3*) cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" # Check whether --with-tags was given. if test "${with_tags+set}" = set; then withval=$with_tags; tagnames="$withval" fi if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} else { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in "") ;; *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 echo "$as_me: error: invalid tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} { (exit 1); exit 1; }; } fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_flag_spec_ld_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC compiler_CXX=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes if test "$GXX" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_CXX=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported whole_archive_flag_spec_CXX='' link_all_deplibs_CXX=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' fi module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_CXX=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd[12]*) # C++ shared libraries reported to be fairly broken before switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC*) # Portland Group C++ compiler archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='${wl}-E' whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' else ld_shlibs_CXX=no fi ;; osf3*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ $rm $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" fi hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='${wl}-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. no_undefined_flag_CXX='${wl}-z,text' allow_undefined_flag_CXX='${wl}-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$LD" cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no # The `*' in the case matches for architectures that use `case' in # $output_verbose_cmd can trigger glob expansion during the loop # eval without this substitution. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` for p in `eval $output_verbose_link_cmd`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" \ || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $rm -f confest.$objext # PORTME: override above test on systems where it is broken case $host_os in interix[3-9]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_CXX='-qnocommon' lt_prog_compiler_wl_CXX='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; icpc* | ecpc*) # Intel C++ lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC*) # Portland Group C++ compiler. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:13870: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:13874: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_CXX=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_CXX=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_CXX=yes fi else lt_prog_compiler_static_works_CXX=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } if test x"$lt_prog_compiler_static_works_CXX" = xyes; then : else lt_prog_compiler_static_CXX= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_CXX=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:13974: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:13978: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw*) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_CXX=no else archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || \ test -n "$runpath_var_CXX" || \ test "X$hardcode_automatic_CXX" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_CXX" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 echo "${ECHO_T}$hardcode_action_CXX" >&6; } if test "$hardcode_action_CXX" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_CXX \ CC_CXX \ LD_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_static_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ export_dynamic_flag_spec_CXX \ thread_safe_flag_spec_CXX \ whole_archive_flag_spec_CXX \ enable_shared_with_static_runtimes_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ postinstall_cmds_CXX \ postuninstall_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ export_symbols_cmds_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_separator_CXX \ hardcode_automatic_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ lt_cv_prog_compiler_c_o_CXX \ fix_srcfile_path_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX; do case $var in old_archive_cmds_CXX | \ old_archive_from_new_cmds_CXX | \ archive_cmds_CXX | \ archive_expsym_cmds_CXX | \ module_cmds_CXX | \ module_expsym_cmds_CXX | \ old_archive_from_expsyms_cmds_CXX | \ export_symbols_cmds_CXX | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU C compiler? with_gcc=$GCC_CXX # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_CXX # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_CXX old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_CXX # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_CXX # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_CXX # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_CXX # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu archive_cmds_need_lc_F77=no allow_undefined_flag_F77= always_export_symbols_F77=no archive_expsym_cmds_F77= export_dynamic_flag_spec_F77= hardcode_direct_F77=no hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_minus_L_F77=no hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= link_all_deplibs_F77=unknown old_archive_cmds_F77=$old_archive_cmds no_undefined_flag_F77= whole_archive_flag_spec_F77= enable_shared_with_static_runtimes_F77=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o objext_F77=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} compiler=$CC compiler_F77=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6; } GCC_F77="$G77" LD_F77="$LD" lt_prog_compiler_wl_F77= lt_prog_compiler_pic_F77= lt_prog_compiler_static_F77= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_static_F77='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_F77='-fno-common' ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_F77=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_F77=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_F77='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' else lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_F77='-qnocommon' lt_prog_compiler_wl_F77='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_F77='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_F77='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_F77='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_F77='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_F77='-non_shared' ;; newsos6) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fpic' lt_prog_compiler_static_F77='-Bstatic' ;; ccc*) lt_prog_compiler_wl_F77='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' lt_prog_compiler_wl_F77='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' lt_prog_compiler_wl_F77='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_F77='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; rdos*) lt_prog_compiler_static_F77='-non_shared' ;; solaris*) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_F77='-Qoption ld ';; *) lt_prog_compiler_wl_F77='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_F77='-Qoption ld ' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_F77='-Kconform_pic' lt_prog_compiler_static_F77='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; unicos*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_can_build_shared_F77=no ;; uts4*) lt_prog_compiler_pic_F77='-pic' lt_prog_compiler_static_F77='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_F77=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_F77"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_F77=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_F77" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:15536: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:15540: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_F77=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } if test x"$lt_prog_compiler_pic_works_F77" = xyes; then case $lt_prog_compiler_pic_F77 in "" | " "*) ;; *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; esac else lt_prog_compiler_pic_F77= lt_prog_compiler_can_build_shared_F77=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_F77= ;; *) lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_F77=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_F77=yes fi else lt_prog_compiler_static_works_F77=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } if test x"$lt_prog_compiler_static_works_F77" = xyes; then : else lt_prog_compiler_static_F77= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_F77=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:15640: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:15644: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_F77=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag_F77= enable_shared_with_static_runtimes_F77=no archive_cmds_F77= archive_expsym_cmds_F77= old_archive_From_new_cmds_F77= old_archive_from_expsyms_cmds_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= thread_safe_flag_spec_F77= hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_direct_F77=no hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=unsupported link_all_deplibs_F77=unknown hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= always_export_symbols_F77=no export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_F77= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_F77=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_F77='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_F77= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_F77=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_F77=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_F77=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_F77=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_F77='-L$libdir' allow_undefined_flag_F77=unsupported always_export_symbols_F77=no enable_shared_with_static_runtimes_F77=yes export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_F77=no fi ;; interix[3-9]*) hardcode_direct_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs_F77=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_F77=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_F77=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac ;; sunos4*) archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac if test "$ld_shlibs_F77" = no; then runpath_var= hardcode_libdir_flag_spec_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_F77=unsupported always_export_symbols_F77=yes archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_F77=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_F77=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_F77='' hardcode_direct_F77=yes hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_F77=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_F77=yes hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_libdir_separator_F77= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_F77=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_F77='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_F77="-z nodefs" archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_F77=' ${wl}-bernotok' allow_undefined_flag_F77=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_F77='$convenience' archive_cmds_need_lc_F77=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes # see comment about different semantics on the GNU ld section ld_shlibs_F77=no ;; bsdi[45]*) export_dynamic_flag_spec_F77=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_F77=' ' allow_undefined_flag_F77=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_F77='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_F77='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_F77=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_F77=no hardcode_direct_F77=no hardcode_automatic_F77=yes hardcode_shlibpath_var_F77=unsupported whole_archive_flag_spec_F77='' link_all_deplibs_F77=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_F77=no ;; esac fi ;; dgux*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; freebsd1*) ld_shlibs_F77=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes export_dynamic_flag_spec_F77='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_F77='+b $libdir' hardcode_direct_F77=no hardcode_shlibpath_var_F77=no ;; *) hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: link_all_deplibs_F77=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; newsos6) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_shlibpath_var_F77=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-R$libdir' ;; *) archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs_F77=no fi ;; os2*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes allow_undefined_flag_F77=unsupported archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_F77='-rpath $libdir' fi hardcode_libdir_separator_F77=: ;; solaris*) no_undefined_flag_F77=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_shlibpath_var_F77=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs_F77=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; sysv4) case $host_vendor in sni) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_F77='$CC -r -o $output$reload_objs' hardcode_direct_F77=no ;; motorola) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv4.3*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_F77=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_F77='${wl}-z,text' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_F77='${wl}-z,text' allow_undefined_flag_F77='${wl}-z,nodefs' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes export_dynamic_flag_spec_F77='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; *) ld_shlibs_F77=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 echo "${ECHO_T}$ld_shlibs_F77" >&6; } test "$ld_shlibs_F77" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_F77" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_F77=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_F77 in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_F77 pic_flag=$lt_prog_compiler_pic_F77 compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_F77 allow_undefined_flag_F77= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_F77=no else archive_cmds_need_lc_F77=yes fi allow_undefined_flag_F77=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_F77= if test -n "$hardcode_libdir_flag_spec_F77" || \ test -n "$runpath_var_F77" || \ test "X$hardcode_automatic_F77" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_F77" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && test "$hardcode_minus_L_F77" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_F77=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_F77=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_F77=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 echo "${ECHO_T}$hardcode_action_F77" >&6; } if test "$hardcode_action_F77" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_F77 \ CC_F77 \ LD_F77 \ lt_prog_compiler_wl_F77 \ lt_prog_compiler_pic_F77 \ lt_prog_compiler_static_F77 \ lt_prog_compiler_no_builtin_flag_F77 \ export_dynamic_flag_spec_F77 \ thread_safe_flag_spec_F77 \ whole_archive_flag_spec_F77 \ enable_shared_with_static_runtimes_F77 \ old_archive_cmds_F77 \ old_archive_from_new_cmds_F77 \ predep_objects_F77 \ postdep_objects_F77 \ predeps_F77 \ postdeps_F77 \ compiler_lib_search_path_F77 \ archive_cmds_F77 \ archive_expsym_cmds_F77 \ postinstall_cmds_F77 \ postuninstall_cmds_F77 \ old_archive_from_expsyms_cmds_F77 \ allow_undefined_flag_F77 \ no_undefined_flag_F77 \ export_symbols_cmds_F77 \ hardcode_libdir_flag_spec_F77 \ hardcode_libdir_flag_spec_ld_F77 \ hardcode_libdir_separator_F77 \ hardcode_automatic_F77 \ module_cmds_F77 \ module_expsym_cmds_F77 \ lt_cv_prog_compiler_c_o_F77 \ fix_srcfile_path_F77 \ exclude_expsyms_F77 \ include_expsyms_F77; do case $var in old_archive_cmds_F77 | \ old_archive_from_new_cmds_F77 | \ archive_cmds_F77 | \ archive_expsym_cmds_F77 | \ module_cmds_F77 | \ module_expsym_cmds_F77 | \ old_archive_from_expsyms_cmds_F77 | \ export_symbols_cmds_F77 | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_F77 # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_F77 # Is the compiler the GNU C compiler? with_gcc=$GCC_F77 # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_F77 # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_F77 # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_F77 pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_F77 # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_F77 old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_F77 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_F77 module_expsym_cmds=$lt_module_expsym_cmds_F77 # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_F77 # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_F77 # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_F77 # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_F77 # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_F77 # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_F77 # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_F77 # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_F77 # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_F77 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_F77 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_F77 # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_F77 # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_F77 # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_F77 # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_F77 # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_F77 # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o objext_GCJ=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC compiler_GCJ=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # GCJ did not exist at the time GCC didn't implicitly link libc in. archive_cmds_need_lc_GCJ=no old_archive_cmds_GCJ=$old_archive_cmds lt_prog_compiler_no_builtin_flag_GCJ= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:17827: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:17831: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl_GCJ= lt_prog_compiler_pic_GCJ= lt_prog_compiler_static_GCJ= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_static_GCJ='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' fi ;; amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_GCJ='-fno-common' ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared_GCJ=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_GCJ=-Kconform_pic fi ;; hpux*) # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_GCJ='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' else lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_GCJ='-qnocommon' lt_prog_compiler_wl_GCJ='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_GCJ='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_GCJ='-non_shared' ;; newsos6) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-fpic' lt_prog_compiler_static_GCJ='-Bstatic' ;; ccc*) lt_prog_compiler_wl_GCJ='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' lt_prog_compiler_wl_GCJ='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' lt_prog_compiler_wl_GCJ='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_GCJ='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; rdos*) lt_prog_compiler_static_GCJ='-non_shared' ;; solaris*) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_GCJ='-Qoption ld ';; *) lt_prog_compiler_wl_GCJ='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_GCJ='-Qoption ld ' lt_prog_compiler_pic_GCJ='-PIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_GCJ='-Kconform_pic' lt_prog_compiler_static_GCJ='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; unicos*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_can_build_shared_GCJ=no ;; uts4*) lt_prog_compiler_pic_GCJ='-pic' lt_prog_compiler_static_GCJ='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_GCJ=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_GCJ"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_GCJ=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_GCJ" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:18117: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:18121: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_GCJ=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then case $lt_prog_compiler_pic_GCJ in "" | " "*) ;; *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; esac else lt_prog_compiler_pic_GCJ= lt_prog_compiler_can_build_shared_GCJ=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_GCJ= ;; *) lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_GCJ=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_GCJ=yes fi else lt_prog_compiler_static_works_GCJ=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then : else lt_prog_compiler_static_GCJ= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_GCJ=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:18221: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:18225: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_GCJ=yes fi fi chmod u+w . 2>&5 $rm conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files $rm out/* && rmdir out cd .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag_GCJ= enable_shared_with_static_runtimes_GCJ=no archive_cmds_GCJ= archive_expsym_cmds_GCJ= old_archive_From_new_cmds_GCJ= old_archive_from_expsyms_cmds_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= thread_safe_flag_spec_GCJ= hardcode_libdir_flag_spec_GCJ= hardcode_libdir_flag_spec_ld_GCJ= hardcode_libdir_separator_GCJ= hardcode_direct_GCJ=no hardcode_minus_L_GCJ=no hardcode_shlibpath_var_GCJ=unsupported link_all_deplibs_GCJ=unknown hardcode_automatic_GCJ=no module_cmds_GCJ= module_expsym_cmds_GCJ= always_export_symbols_GCJ=no export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_GCJ= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_GCJ=yes if test "$with_gnu_ld" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_GCJ= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_GCJ=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_GCJ=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_GCJ=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_GCJ=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_GCJ='-L$libdir' allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=no enable_shared_with_static_runtimes_GCJ=yes export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_GCJ=no fi ;; interix[3-9]*) hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ $echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi else ld_shlibs_GCJ=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs_GCJ=no cat <&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_GCJ=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac ;; sunos4*) archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac if test "$ld_shlibs_GCJ" = no; then runpath_var= hardcode_libdir_flag_spec_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=yes archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L_GCJ=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_GCJ=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_GCJ='' hardcode_direct_GCJ=yes hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_GCJ=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_GCJ=yes hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_libdir_separator_GCJ= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols_GCJ=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_GCJ='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_GCJ="-z nodefs" archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_GCJ=' ${wl}-bernotok' allow_undefined_flag_GCJ=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_GCJ='$convenience' archive_cmds_need_lc_GCJ=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # see comment about different semantics on the GNU ld section ld_shlibs_GCJ=no ;; bsdi[45]*) export_dynamic_flag_spec_GCJ=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_GCJ=' ' allow_undefined_flag_GCJ=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_GCJ='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_GCJ=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_GCJ=no hardcode_direct_GCJ=no hardcode_automatic_GCJ=yes hardcode_shlibpath_var_GCJ=unsupported whole_archive_flag_spec_GCJ='' link_all_deplibs_GCJ=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_GCJ=no ;; esac fi ;; dgux*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; freebsd1*) ld_shlibs_GCJ=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no ;; *) hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: link_all_deplibs_GCJ=yes ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; newsos6) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_shlibpath_var_GCJ=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' ;; *) archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs_GCJ=no fi ;; os2*) hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes allow_undefined_flag_GCJ=unsupported archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec_GCJ='-rpath $libdir' fi hardcode_libdir_separator_GCJ=: ;; solaris*) no_undefined_flag_GCJ=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_shlibpath_var_GCJ=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs_GCJ=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; sysv4) case $host_vendor in sni) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_GCJ='$CC -r -o $output$reload_objs' hardcode_direct_GCJ=no ;; motorola) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_GCJ=no ;; sysv4.3*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no export_dynamic_flag_spec_GCJ='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_GCJ=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_GCJ='${wl}-z,text' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_GCJ='${wl}-z,text' allow_undefined_flag_GCJ='${wl}-z,nodefs' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; *) ld_shlibs_GCJ=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } test "$ld_shlibs_GCJ" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_GCJ" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_GCJ=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_GCJ in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_GCJ pic_flag=$lt_prog_compiler_pic_GCJ compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ allow_undefined_flag_GCJ= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_GCJ=no else archive_cmds_need_lc_GCJ=yes fi allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; nto-qnx*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_GCJ= if test -n "$hardcode_libdir_flag_spec_GCJ" || \ test -n "$runpath_var_GCJ" || \ test "X$hardcode_automatic_GCJ" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_GCJ" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && test "$hardcode_minus_L_GCJ" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_GCJ=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_GCJ=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_GCJ=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 echo "${ECHO_T}$hardcode_action_GCJ" >&6; } if test "$hardcode_action_GCJ" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_GCJ \ CC_GCJ \ LD_GCJ \ lt_prog_compiler_wl_GCJ \ lt_prog_compiler_pic_GCJ \ lt_prog_compiler_static_GCJ \ lt_prog_compiler_no_builtin_flag_GCJ \ export_dynamic_flag_spec_GCJ \ thread_safe_flag_spec_GCJ \ whole_archive_flag_spec_GCJ \ enable_shared_with_static_runtimes_GCJ \ old_archive_cmds_GCJ \ old_archive_from_new_cmds_GCJ \ predep_objects_GCJ \ postdep_objects_GCJ \ predeps_GCJ \ postdeps_GCJ \ compiler_lib_search_path_GCJ \ archive_cmds_GCJ \ archive_expsym_cmds_GCJ \ postinstall_cmds_GCJ \ postuninstall_cmds_GCJ \ old_archive_from_expsyms_cmds_GCJ \ allow_undefined_flag_GCJ \ no_undefined_flag_GCJ \ export_symbols_cmds_GCJ \ hardcode_libdir_flag_spec_GCJ \ hardcode_libdir_flag_spec_ld_GCJ \ hardcode_libdir_separator_GCJ \ hardcode_automatic_GCJ \ module_cmds_GCJ \ module_expsym_cmds_GCJ \ lt_cv_prog_compiler_c_o_GCJ \ fix_srcfile_path_GCJ \ exclude_expsyms_GCJ \ include_expsyms_GCJ; do case $var in old_archive_cmds_GCJ | \ old_archive_from_new_cmds_GCJ | \ archive_cmds_GCJ | \ archive_expsym_cmds_GCJ | \ module_cmds_GCJ | \ module_expsym_cmds_GCJ | \ old_archive_from_expsyms_cmds_GCJ | \ export_symbols_cmds_GCJ | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_GCJ # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_GCJ # Is the compiler the GNU C compiler? with_gcc=$GCC_GCJ # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_GCJ # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_GCJ # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_GCJ pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_GCJ # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_GCJ old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_GCJ archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_GCJ module_expsym_cmds=$lt_module_expsym_cmds_GCJ # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_GCJ # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_GCJ # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_GCJ # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_GCJ # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_GCJ # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_GCJ # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_GCJ # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_GCJ # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_GCJ # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_GCJ # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_GCJ # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_GCJ # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_GCJ # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; RC) # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o objext_RC=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $rm conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $rm conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC compiler_RC=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` lt_cv_prog_compiler_c_o_RC=yes # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_RC \ CC_RC \ LD_RC \ lt_prog_compiler_wl_RC \ lt_prog_compiler_pic_RC \ lt_prog_compiler_static_RC \ lt_prog_compiler_no_builtin_flag_RC \ export_dynamic_flag_spec_RC \ thread_safe_flag_spec_RC \ whole_archive_flag_spec_RC \ enable_shared_with_static_runtimes_RC \ old_archive_cmds_RC \ old_archive_from_new_cmds_RC \ predep_objects_RC \ postdep_objects_RC \ predeps_RC \ postdeps_RC \ compiler_lib_search_path_RC \ archive_cmds_RC \ archive_expsym_cmds_RC \ postinstall_cmds_RC \ postuninstall_cmds_RC \ old_archive_from_expsyms_cmds_RC \ allow_undefined_flag_RC \ no_undefined_flag_RC \ export_symbols_cmds_RC \ hardcode_libdir_flag_spec_RC \ hardcode_libdir_flag_spec_ld_RC \ hardcode_libdir_separator_RC \ hardcode_automatic_RC \ module_cmds_RC \ module_expsym_cmds_RC \ lt_cv_prog_compiler_c_o_RC \ fix_srcfile_path_RC \ exclude_expsyms_RC \ include_expsyms_RC; do case $var in old_archive_cmds_RC | \ old_archive_from_new_cmds_RC | \ archive_cmds_RC | \ archive_expsym_cmds_RC | \ module_cmds_RC | \ module_expsym_cmds_RC | \ old_archive_from_expsyms_cmds_RC | \ export_symbols_cmds_RC | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_RC # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_RC # Is the compiler the GNU C compiler? with_gcc=$GCC_RC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_RC # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_RC # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_RC pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC # Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_RC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC # Library versioning type. version_type=$version_type # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_RC old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_RC archive_expsym_cmds=$lt_archive_expsym_cmds_RC postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_RC module_expsym_cmds=$lt_module_expsym_cmds_RC # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_RC # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_RC # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_RC # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_RC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_RC # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method == file_magic. file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_RC # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_RC # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_RC # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_RC # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_RC # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC # Set to yes if building a shared library automatically hardcodes DIR into the library # and all subsequent libraries and executables linked against it. hardcode_automatic=$hardcode_automatic_RC # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_RC # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_RC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_RC # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_RC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_RC # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ;; *) { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} { (exit 1); exit 1; }; } fi fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' # Prevent multiple expansion { echo "$as_me:$LINENO: checking for library containing strerror" >&5 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } if test "${ac_cv_search_strerror+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char strerror (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return strerror (); ; return 0; } _ACEOF for ac_lib in '' cposix; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_search_strerror=$ac_res else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext if test "${ac_cv_search_strerror+set}" = set; then break fi done if test "${ac_cv_search_strerror+set}" = set; then : else ac_cv_search_strerror=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 echo "${ECHO_T}$ac_cv_search_strerror" >&6; } ac_res=$ac_cv_search_strerror if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi # save the cache so far cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache # Check whether --enable-optimization was given. if test "${enable_optimization+set}" = set; then enableval=$enable_optimization; case "${enableval}" in yes) USING_DEBUG="no";; no) USING_DEBUG="yes";; *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-optimization" >&5 echo "$as_me: error: bad value ${enableval} for --enable-optimization" >&2;} { (exit 1); exit 1; }; } ;; esac else USING_DEBUG="yes" fi SILO_DTYPPTR="void" SILO_DTYPPTR1="void*" SILO_DTYPPTR2="void*" # Check whether --enable-legacy-datatyped-pointers was given. if test "${enable_legacy_datatyped_pointers+set}" = set; then enableval=$enable_legacy_datatyped_pointers; if test $enableval = yes; then SILO_DTYPPTR="float" SILO_DTYPPTR1="float*" SILO_DTYPPTR2="float**" fi fi NETCDF="netcdf" cat >>confdefs.h <<\_ACEOF #define HAVE_NETCDF_DRIVER 1 _ACEOF PDB_DRV="pdb_drv" cat >>confdefs.h <<\_ACEOF #define HAVE_PDB_DRIVER 1 _ACEOF TAURUS="taurus" cat >>confdefs.h <<\_ACEOF #define HAVE_TAURUS_DRIVER 1 _ACEOF HDF5_DRV="hdf5_drv" # Some sites have the GNU readline header files and libraries installed # incorrectly which causes programs that use them to not link or possibly # not run. This configure doesn't check for misconfigured systems, but # it does allow the user to prevent the GNU readline files from being # detected. # Check whether --with-readline was given. if test "${with_readline+set}" = set; then withval=$with_readline; detect_readline=$withval else detect_readline=$default_detect_readline fi BROWSER=$DEFAULT_BROWSER # Check whether --enable-browser was given. if test "${enable_browser+set}" = set; then enableval=$enable_browser; if test "$enable_browser" = "no"; then BROWSER="" fi fi SILEX=$DEFAULT_SILEX # Check whether --enable-silex was given. if test "${enable_silex+set}" = set; then enableval=$enable_silex; if test "$enable_silex" = "no"; then SILEX="" fi fi # Check whether --with-zlib was given. if test "${with_zlib+set}" = set; then withval=$with_zlib; fi if test "$with_zlib" = no; then cat >>confdefs.h <<\_ACEOF #define HAVE_ZLIB_H 0 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_LIBZ 0 _ACEOF ZLIB="" elif test -n "$with_zlib" && test "$with_zlib" != yes; then ZLIB_INCDIR="`echo $with_zlib |cut -f1 -d,`" if test ! -f $ZLIB_INCDIR/zlib.h; then { { echo "$as_me:$LINENO: error: problem with directory specified for zlib includes" >&5 echo "$as_me: error: problem with directory specified for zlib includes" >&2;} { (exit 1); exit 1; }; } fi ZLIB_LIBDIR="`echo $with_zlib | cut -f2 -d, -s`" if test ! -f $ZLIB_LIBDIR/libz.a && test ! -f $ZLIB_LIBDIR/libz.so; then { { echo "$as_me:$LINENO: error: problem with directory specified for zlib libs" >&5 echo "$as_me: error: problem with directory specified for zlib libs" >&2;} { (exit 1); exit 1; }; } fi CPPFLAGS="$CPPFLAGS -I$ZLIB_INCDIR" LDFLAGS="$LDFLAGS -L$ZLIB_LIBDIR" LIBS="$LIBS -lz" cat >>confdefs.h <<\_ACEOF #define HAVE_ZLIB_H 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_LIBZ 1 _ACEOF ZLIB="zlib" fi { echo "$as_me:$LINENO: checking for hzip" >&5 echo $ECHO_N "checking for hzip... $ECHO_C" >&6; } if test -d $srcdir/src/hzip; then { echo "$as_me:$LINENO: result: found" >&5 echo "${ECHO_T}found" >&6; } HZIP=$DEFAULT_HZIP else { echo "$as_me:$LINENO: result: hzip compression not available in BSD version" >&5 echo "${ECHO_T}hzip compression not available in BSD version" >&6; } HZIP="" fi # Check whether --enable-hzip was given. if test "${enable_hzip+set}" = set; then enableval=$enable_hzip; if test "$enable_hzip" = "no"; then HZIP="" fi fi if test -n "$HZIP" && test "$with_zlib" != no; then cat >>confdefs.h <<\_ACEOF #define HAVE_HZIP 1 _ACEOF ZLIB="zlib" for ac_header in zlib.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------- ## ## Report this to visit-users@email.ornl.gov ## ## ----------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF have_zlib_h="yes" fi done if test -n "$have_zlib_h"; then { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; } if test "${ac_cv_lib_z_inflateEnd+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char inflateEnd (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return inflateEnd (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_z_inflateEnd=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_z_inflateEnd=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; } if test $ac_cv_lib_z_inflateEnd = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBZ 1 _ACEOF LIBS="-lz $LIBS" fi if test -z "`echo $LIBS | tr ' ' '\n' | grep -x -e '-lz'`"; then cat >>confdefs.h <<\_ACEOF #define HAVE_ZLIB_H 0 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_LIBZ 0 _ACEOF ZLIB="" fi fi fi { echo "$as_me:$LINENO: checking for fpzip" >&5 echo $ECHO_N "checking for fpzip... $ECHO_C" >&6; } if test -d $srcdir/src/fpzip; then { echo "$as_me:$LINENO: result: found" >&5 echo "${ECHO_T}found" >&6; } FPZIP=$DEFAULT_FPZIP else { echo "$as_me:$LINENO: result: fpzip compression not available in BSD version" >&5 echo "${ECHO_T}fpzip compression not available in BSD version" >&6; } FPZIP="" fi # Check whether --enable-fpzip was given. if test "${enable_fpzip+set}" = set; then enableval=$enable_fpzip; if test "$enable_fpzip" = "no"; then FPZIP="" fi fi if test -n "$FPZIP"; then cat >>confdefs.h <<\_ACEOF #define HAVE_FPZIP 1 _ACEOF fi # Turn on C optimization flags { echo "$as_me:$LINENO: checking compiler optimization" >&5 echo $ECHO_N "checking compiler optimization... $ECHO_C" >&6; } if test "X$USING_DEBUG" = Xno; then # use contributed GNU m4 macro library provided see: # autoconf-archive-2006-06-04/htmldoc/ax_cc_maxopt.html { echo "$as_me:$LINENO: checking for C compiler vendor" >&5 echo $ECHO_N "checking for C compiler vendor... $ECHO_C" >&6; } if test "${ax_cv_c_compiler_vendor+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ax_cv_c_compiler_vendor=unknown # note: don't check for gcc first since some other compilers define __GNUC__ for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { #if !($vencpp) thisisanerror; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done fi { echo "$as_me:$LINENO: result: $ax_cv_c_compiler_vendor" >&5 echo "${ECHO_T}$ax_cv_c_compiler_vendor" >&6; } # Check whether --enable-portable-binary was given. if test "${enable_portable_binary+set}" = set; then enableval=$enable_portable_binary; acx_maxopt_portable=$withval else acx_maxopt_portable=no fi # Try to determine "good" native compiler flags if none specified via CFLAGS if test "$ac_test_CFLAGS" != "set"; then CFLAGS="" case $ax_cv_c_compiler_vendor in dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host" if test "x$acx_maxopt_portable" = xno; then CFLAGS="$CFLAGS -arch host" fi;; sun) CFLAGS="-native -fast -xO5 -dalign" if test "x$acx_maxopt_portable" = xyes; then CFLAGS="$CFLAGS -xarch=generic" fi;; hp) CFLAGS="+Oall +Optrs_ansi +DSnative" if test "x$acx_maxopt_portable" = xyes; then CFLAGS="$CFLAGS +DAportable" fi;; ibm) if test "x$acx_maxopt_portable" = xno; then xlc_opt="-qarch=auto -qtune=auto" else xlc_opt="-qtune=auto" fi { echo "$as_me:$LINENO: checking whether C compiler accepts $xlc_opt" >&5 echo $ECHO_N "checking whether C compiler accepts $xlc_opt... $ECHO_C" >&6; } ax_save_FLAGS=$CFLAGS CFLAGS="$xlc_opt" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval `echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval `echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$ax_save_FLAGS eval ax_check_compiler_flags=$`echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh` { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 echo "${ECHO_T}$ax_check_compiler_flags" >&6; } if test "x$ax_check_compiler_flags" = xyes; then CFLAGS="-O3 -qansialias -w $xlc_opt" else CFLAGS="-O3 -qansialias -w" echo "******************************************************" echo "* You seem to have the IBM C compiler. It is *" echo "* recommended for best performance that you use: *" echo "* *" echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *" echo "* ^^^ ^^^ *" echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *" echo "* CPU you have. (Set the CFLAGS environment var. *" echo "* and re-run configure.) For more info, man cc. *" echo "******************************************************" fi ;; intel) CFLAGS="-O3 -ansi_alias" if test "x$acx_maxopt_portable" = xno; then icc_archflag=unknown icc_flags="" case $host_cpu in i686*|x86_64*) # icc accepts gcc assembly syntax, so these should work: ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for x86 cpuid 0 output" >&5 echo $ECHO_N "checking for x86 cpuid 0 output... $ECHO_C" >&6; } if test "${ax_cv_gcc_x86_cpuid_0+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ax_cv_gcc_x86_cpuid_0=unknown else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int op = 0, eax, ebx, ecx, edx; FILE *f; __asm__("cpuid" : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) : "a" (op)); f = fopen("conftest_cpuid", "w"); if (!f) return 1; fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); fclose(f); return 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ax_cv_gcc_x86_cpuid_0" >&5 echo "${ECHO_T}$ax_cv_gcc_x86_cpuid_0" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for x86 cpuid 1 output" >&5 echo $ECHO_N "checking for x86 cpuid 1 output... $ECHO_C" >&6; } if test "${ax_cv_gcc_x86_cpuid_1+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ax_cv_gcc_x86_cpuid_1=unknown else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int op = 1, eax, ebx, ecx, edx; FILE *f; __asm__("cpuid" : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) : "a" (op)); f = fopen("conftest_cpuid", "w"); if (!f) return 1; fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); fclose(f); return 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ax_cv_gcc_x86_cpuid_1" >&5 echo "${ECHO_T}$ax_cv_gcc_x86_cpuid_1" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG *:756e6547:*:*) # Intel case $ax_cv_gcc_x86_cpuid_1 in *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";; *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";; *f??:*:*:*) icc_flags="-xN -xW -xK";; esac ;; esac ;; esac if test "x$icc_flags" != x; then for flag in $icc_flags; do { echo "$as_me:$LINENO: checking whether C compiler accepts $flag" >&5 echo $ECHO_N "checking whether C compiler accepts $flag... $ECHO_C" >&6; } ax_save_FLAGS=$CFLAGS CFLAGS="$flag" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval `echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval `echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$ax_save_FLAGS eval ax_check_compiler_flags=$`echo "ax_cv_c_flags_$flag" | $as_tr_sh` { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 echo "${ECHO_T}$ax_check_compiler_flags" >&6; } if test "x$ax_check_compiler_flags" = xyes; then icc_archflag=$flag; break else : fi done fi { echo "$as_me:$LINENO: checking for icc architecture flag" >&5 echo $ECHO_N "checking for icc architecture flag... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $icc_archflag" >&5 echo "${ECHO_T}$icc_archflag" >&6; } if test "x$icc_archflag" != xunknown; then CFLAGS="$CFLAGS $icc_archflag" fi fi ;; gnu) # default optimization flags for gcc on all systems CFLAGS="-O3 -fomit-frame-pointer" # -malign-double for x86 systems { echo "$as_me:$LINENO: checking whether C compiler accepts -malign-double" >&5 echo $ECHO_N "checking whether C compiler accepts -malign-double... $ECHO_C" >&6; } if test "${ax_cv_c_flags__malign_double+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ax_save_FLAGS=$CFLAGS CFLAGS="-malign-double" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ax_cv_c_flags__malign_double=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ax_cv_c_flags__malign_double=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$ax_save_FLAGS fi eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 echo "${ECHO_T}$ax_check_compiler_flags" >&6; } if test "x$ax_check_compiler_flags" = xyes; then CFLAGS="$CFLAGS -malign-double" else : fi # -fstrict-aliasing for gcc-2.95+ { echo "$as_me:$LINENO: checking whether C compiler accepts -fstrict-aliasing" >&5 echo $ECHO_N "checking whether C compiler accepts -fstrict-aliasing... $ECHO_C" >&6; } if test "${ax_cv_c_flags__fstrict_aliasing+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ax_save_FLAGS=$CFLAGS CFLAGS="-fstrict-aliasing" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ax_cv_c_flags__fstrict_aliasing=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ax_cv_c_flags__fstrict_aliasing=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$ax_save_FLAGS fi eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 echo "${ECHO_T}$ax_check_compiler_flags" >&6; } if test "x$ax_check_compiler_flags" = xyes; then CFLAGS="$CFLAGS -fstrict-aliasing" else : fi # note that we enable "unsafe" fp optimization with other compilers, too { echo "$as_me:$LINENO: checking whether C compiler accepts -ffast-math" >&5 echo $ECHO_N "checking whether C compiler accepts -ffast-math... $ECHO_C" >&6; } if test "${ax_cv_c_flags__ffast_math+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ax_save_FLAGS=$CFLAGS CFLAGS="-ffast-math" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ax_cv_c_flags__ffast_math=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ax_cv_c_flags__ffast_math=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$ax_save_FLAGS fi eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 echo "${ECHO_T}$ax_check_compiler_flags" >&6; } if test "x$ax_check_compiler_flags" = xyes; then CFLAGS="$CFLAGS -ffast-math" else : fi # Check whether --with-gcc-arch was given. if test "${with_gcc_arch+set}" = set; then withval=$with_gcc_arch; ax_gcc_arch=$withval else ax_gcc_arch=yes fi { echo "$as_me:$LINENO: checking for gcc architecture flag" >&5 echo $ECHO_N "checking for gcc architecture flag... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: " >&5 echo "${ECHO_T}" >&6; } if test "${ax_cv_gcc_archflag+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ax_cv_gcc_archflag="unknown" if test "$GCC" = yes; then if test "x$ax_gcc_arch" = xyes; then ax_gcc_arch="" if test "$cross_compiling" = no; then case $host_cpu in i[3456]86*|x86_64*) # use cpuid codes, in part from x86info-1.7 by D. Jones ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for x86 cpuid 0 output" >&5 echo $ECHO_N "checking for x86 cpuid 0 output... $ECHO_C" >&6; } if test "${ax_cv_gcc_x86_cpuid_0+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ax_cv_gcc_x86_cpuid_0=unknown else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int op = 0, eax, ebx, ecx, edx; FILE *f; __asm__("cpuid" : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) : "a" (op)); f = fopen("conftest_cpuid", "w"); if (!f) return 1; fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); fclose(f); return 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ax_cv_gcc_x86_cpuid_0" >&5 echo "${ECHO_T}$ax_cv_gcc_x86_cpuid_0" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for x86 cpuid 1 output" >&5 echo $ECHO_N "checking for x86 cpuid 1 output... $ECHO_C" >&6; } if test "${ax_cv_gcc_x86_cpuid_1+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ax_cv_gcc_x86_cpuid_1=unknown else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int op = 1, eax, ebx, ecx, edx; FILE *f; __asm__("cpuid" : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) : "a" (op)); f = fopen("conftest_cpuid", "w"); if (!f) return 1; fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); fclose(f); return 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ax_cv_gcc_x86_cpuid_1" >&5 echo "${ECHO_T}$ax_cv_gcc_x86_cpuid_1" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu case $ax_cv_gcc_x86_cpuid_0 in *:756e6547:*:*) # Intel case $ax_cv_gcc_x86_cpuid_1 in *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;; *5??:*:*:*) ax_gcc_arch=pentium ;; *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; *6[9d]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;; *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; *6??:*:*:*) ax_gcc_arch=pentiumpro ;; *f3[347]:*:*:*|*f41347:*:*:*) case $host_cpu in x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;; *) ax_gcc_arch="prescott pentium4 pentiumpro" ;; esac ;; *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";; esac ;; *:68747541:*:*) # AMD case $ax_cv_gcc_x86_cpuid_1 in *5[67]?:*:*:*) ax_gcc_arch=k6 ;; *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;; *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;; *60?:*:*:*) ax_gcc_arch=k7 ;; *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;; *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;; *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;; *6[68a]?:*:*:*) ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for x86 cpuid 0x80000006 output" >&5 echo $ECHO_N "checking for x86 cpuid 0x80000006 output... $ECHO_C" >&6; } if test "${ax_cv_gcc_x86_cpuid_0x80000006+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ax_cv_gcc_x86_cpuid_0x80000006=unknown else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int op = 0x80000006, eax, ebx, ecx, edx; FILE *f; __asm__("cpuid" : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) : "a" (op)); f = fopen("conftest_cpuid", "w"); if (!f) return 1; fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); fclose(f); return 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5 echo "${ECHO_T}$ax_cv_gcc_x86_cpuid_0x80000006" >&6; } ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # L2 cache size case $ax_cv_gcc_x86_cpuid_0x80000006 in *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;; *) ax_gcc_arch="athlon-4 athlon k7" ;; esac ;; *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;; *f5?:*:*:*) ax_gcc_arch="opteron k8" ;; *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;; *f??:*:*:*) ax_gcc_arch="k8" ;; esac ;; *:746e6543:*:*) # IDT case $ax_cv_gcc_x86_cpuid_1 in *54?:*:*:*) ax_gcc_arch=winchip-c6 ;; *58?:*:*:*) ax_gcc_arch=winchip2 ;; *6[78]?:*:*:*) ax_gcc_arch=c3 ;; *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;; esac ;; esac if test x"$ax_gcc_arch" = x; then # fallback case $host_cpu in i586*) ax_gcc_arch=pentium ;; i686*) ax_gcc_arch=pentiumpro ;; esac fi ;; sparc*) # Extract the first word of "prtdiag", so it can be a program name with args. set dummy prtdiag; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PRTDIAG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PRTDIAG in [\\/]* | ?:[\\/]*) ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/" for as_dir in $as_dummy do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag" ;; esac fi PRTDIAG=$ac_cv_path_PRTDIAG if test -n "$PRTDIAG"; then { echo "$as_me:$LINENO: result: $PRTDIAG" >&5 echo "${ECHO_T}$PRTDIAG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null` cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters` case $cputype in *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;; *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;; *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;; *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;; *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;; *cypress*) ax_gcc_arch=cypress ;; esac ;; alphaev5) ax_gcc_arch=ev5 ;; alphaev56) ax_gcc_arch=ev56 ;; alphapca56) ax_gcc_arch="pca56 ev56" ;; alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;; alphaev6) ax_gcc_arch=ev6 ;; alphaev67) ax_gcc_arch=ev67 ;; alphaev68) ax_gcc_arch="ev68 ev67" ;; alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;; alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;; alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;; powerpc*) cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null` cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'` case $cputype in *750*) ax_gcc_arch="750 G3" ;; *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;; *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;; *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;; *970*) ax_gcc_arch="970 G5 power4";; *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";; *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";; 603ev|8240) ax_gcc_arch="$cputype 603e 603";; *) ax_gcc_arch=$cputype ;; esac ax_gcc_arch="$ax_gcc_arch powerpc" ;; esac fi # not cross-compiling fi # guess arch if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then for arch in $ax_gcc_arch; do if test "x$acx_maxopt_portable" = xyes; then # if we require portable code flags="-mtune=$arch" # -mcpu=$arch and m$arch generate nonportable code on every arch except # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr. case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac else flags="-march=$arch -mcpu=$arch -m$arch" fi for flag in $flags; do { echo "$as_me:$LINENO: checking whether C compiler accepts $flag" >&5 echo $ECHO_N "checking whether C compiler accepts $flag... $ECHO_C" >&6; } ax_save_FLAGS=$CFLAGS CFLAGS="$flag" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval `echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval `echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$ax_save_FLAGS eval ax_check_compiler_flags=$`echo "ax_cv_c_flags_$flag" | $as_tr_sh` { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 echo "${ECHO_T}$ax_check_compiler_flags" >&6; } if test "x$ax_check_compiler_flags" = xyes; then ax_cv_gcc_archflag=$flag; break else : fi done test "x$ax_cv_gcc_archflag" = xunknown || break done fi fi # $GCC=yes fi { echo "$as_me:$LINENO: checking for gcc architecture flag" >&5 echo $ECHO_N "checking for gcc architecture flag... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $ax_cv_gcc_archflag" >&5 echo "${ECHO_T}$ax_cv_gcc_archflag" >&6; } if test "x$ax_cv_gcc_archflag" = xunknown; then : else CFLAGS="$CFLAGS $ax_cv_gcc_archflag" fi ;; esac if test -z "$CFLAGS"; then echo "" echo "********************************************************" echo "* WARNING: Don't know the best CFLAGS for this system *" echo "* Use ./configure CFLAGS=... to specify your own flags *" echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" echo "********************************************************" echo "" CFLAGS="-O3" fi { echo "$as_me:$LINENO: checking whether C compiler accepts $CFLAGS" >&5 echo $ECHO_N "checking whether C compiler accepts $CFLAGS... $ECHO_C" >&6; } ax_save_FLAGS=$CFLAGS CFLAGS="$CFLAGS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval `echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval `echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$ax_save_FLAGS eval ax_check_compiler_flags=$`echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh` { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 echo "${ECHO_T}$ax_check_compiler_flags" >&6; } if test "x$ax_check_compiler_flags" = xyes; then : else echo "" echo "********************************************************" echo "* WARNING: The guessed CFLAGS don't seem to work with *" echo "* your compiler. *" echo "* Use ./configure CFLAGS=... to specify your own flags *" echo "********************************************************" echo "" CFLAGS="" fi fi { echo "$as_me:$LINENO: result: enabled" >&5 echo "${ECHO_T}enabled" >&6; } else { echo "$as_me:$LINENO: result: disabled" >&5 echo "${ECHO_T}disabled" >&6; } fi # # MCM: I have no idea what good the following line does. I think # all compilers accept the -D argument and any string following # it is an argument to the -D argument. So, I think this is # just totally bogus! # Default to large file support { echo "$as_me:$LINENO: checking whether C compiler accepts \"-D_LARGEFILE_SOURCE\"" >&5 echo $ECHO_N "checking whether C compiler accepts \"-D_LARGEFILE_SOURCE\"... $ECHO_C" >&6; } if test "${ax_cv_c_flags___D_LARGEFILE_SOURCE_+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ax_save_FLAGS=$CFLAGS CFLAGS=""-D_LARGEFILE_SOURCE"" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ax_cv_c_flags___D_LARGEFILE_SOURCE_=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ax_cv_c_flags___D_LARGEFILE_SOURCE_=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$ax_save_FLAGS fi eval ax_check_compiler_flags=$ax_cv_c_flags___D_LARGEFILE_SOURCE_ { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 echo "${ECHO_T}$ax_check_compiler_flags" >&6; } if test "x$ax_check_compiler_flags" = xyes; then CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE"; else : fi { echo "$as_me:$LINENO: checking whether C compiler accepts \"-D_LARGEFILE64_SOURCE\"" >&5 echo $ECHO_N "checking whether C compiler accepts \"-D_LARGEFILE64_SOURCE\"... $ECHO_C" >&6; } if test "${ax_cv_c_flags___D_LARGEFILE64_SOURCE_+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ax_save_FLAGS=$CFLAGS CFLAGS=""-D_LARGEFILE64_SOURCE"" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ax_cv_c_flags___D_LARGEFILE64_SOURCE_=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ax_cv_c_flags___D_LARGEFILE64_SOURCE_=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$ax_save_FLAGS fi eval ax_check_compiler_flags=$ax_cv_c_flags___D_LARGEFILE64_SOURCE_ { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 echo "${ECHO_T}$ax_check_compiler_flags" >&6; } if test "x$ax_check_compiler_flags" = xyes; then CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"; else : fi { echo "$as_me:$LINENO: checking whether C compiler accepts \"-D_FILE_OFFSET_BITS=64\"" >&5 echo $ECHO_N "checking whether C compiler accepts \"-D_FILE_OFFSET_BITS=64\"... $ECHO_C" >&6; } if test "${ax_cv_c_flags___D_FILE_OFFSET_BITS_64_+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ax_save_FLAGS=$CFLAGS CFLAGS=""-D_FILE_OFFSET_BITS=64"" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ax_cv_c_flags___D_FILE_OFFSET_BITS_64_=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ax_cv_c_flags___D_FILE_OFFSET_BITS_64_=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$ax_save_FLAGS fi eval ax_check_compiler_flags=$ax_cv_c_flags___D_FILE_OFFSET_BITS_64_ { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 echo "${ECHO_T}$ax_check_compiler_flags" >&6; } if test "x$ax_check_compiler_flags" = xyes; then CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64"; else : fi { echo "$as_me:$LINENO: checking whether C compiler accepts \"-Wdeclaration-after-statement\"" >&5 echo $ECHO_N "checking whether C compiler accepts \"-Wdeclaration-after-statement\"... $ECHO_C" >&6; } if test "${ax_cv_c_flags___Wdeclaration_after_statement_+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ax_save_FLAGS=$CFLAGS CFLAGS=""-Wdeclaration-after-statement"" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ax_cv_c_flags___Wdeclaration_after_statement_=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ax_cv_c_flags___Wdeclaration_after_statement_=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS=$ax_save_FLAGS fi eval ax_check_compiler_flags=$ax_cv_c_flags___Wdeclaration_after_statement_ { echo "$as_me:$LINENO: result: $ax_check_compiler_flags" >&5 echo "${ECHO_T}$ax_check_compiler_flags" >&6; } if test "x$ax_check_compiler_flags" = xyes; then CFLAGS="$CFLAGS -Wdeclaration-after-statement"; else : fi # # Note: regardless of what the stuff above regarding large file support # appears to do, the following test is the one that affects Silo's # knowledge and support for large files. It may be that the result of # the sizeof check is dependent on whether -D_LARGEFILE64_SOURCE is # defined on the command line to the compiler though. # Use size of off64_t to determine which form of stat() calls to make # { echo "$as_me:$LINENO: checking for off64_t" >&5 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } if test "${ac_cv_type_off64_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off64_t ac__type_new_; #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_off64_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_off64_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_off64_t" >&5 echo "${ECHO_T}$ac_cv_type_off64_t" >&6; } # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { echo "$as_me:$LINENO: checking size of off64_t" >&5 echo $ECHO_N "checking size of off64_t... $ECHO_C" >&6; } if test "${ac_cv_sizeof_off64_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off64_t ac__type_sizeof_; #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off64_t ac__type_sizeof_; #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off64_t ac__type_sizeof_; #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off64_t ac__type_sizeof_; #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off64_t ac__type_sizeof_; #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_off64_t=$ac_lo;; '') if test "$ac_cv_type_off64_t" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (off64_t) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_off64_t=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off64_t ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_off64_t=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_off64_t" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (off64_t) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_off64_t=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off64_t" >&5 echo "${ECHO_T}$ac_cv_sizeof_off64_t" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t _ACEOF # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' for ac_header in sys/time.h stdarg.h sys/stat.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------- ## ## Report this to visit-users@email.ornl.gov ## ## ----------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else { { echo "$as_me:$LINENO: error: $0 wasn't able to find a necessary header file (see above). Please rectify this and rerun configure. See the file INSTALL_FAQ in this directory for possible reasons this might have happened." >&5 echo "$as_me: error: $0 wasn't able to find a necessary header file (see above). Please rectify this and rerun configure. See the file INSTALL_FAQ in this directory for possible reasons this might have happened." >&2;} { (exit 1); exit 1; }; } fi done for ac_header in fcntl.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------- ## ## Report this to visit-users@email.ornl.gov ## ## ----------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/fcntl.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------- ## ## Report this to visit-users@email.ornl.gov ## ## ----------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test ! "$ac_cv_header_fcntl_h"="yes" && test ! "$ac_cv_header_sys_fcntl_h"="yes" ; then { { echo "$as_me:$LINENO: error: $0 wasn't able to find a necessary fcntl.h or sys/fcntl.h header file. Please rectify this and rerun configure. See the file INSTALL_FAQ in this directory for possible reasons this might have happened." >&5 echo "$as_me: error: $0 wasn't able to find a necessary fcntl.h or sys/fcntl.h header file. Please rectify this and rerun configure. See the file INSTALL_FAQ in this directory for possible reasons this might have happened." >&2;} { (exit 1); exit 1; }; } fi for ac_header in fnmatch.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------- ## ## Report this to visit-users@email.ornl.gov ## ## ----------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in ieeefp.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------- ## ## Report this to visit-users@email.ornl.gov ## ## ----------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/types.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------- ## ## Report this to visit-users@email.ornl.gov ## ## ----------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi if false; then cat >>confdefs.h <<\_ACEOF #define HAVE_FCLOSE_POINTER 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_FFLUSH_POINTER 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_FOPEN_POINTER 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_FPRINTF_POINTER 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_FREAD_POINTER 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_FSEEK_POINTER 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_SETVBUF_POINTER 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_FTELL_POINTER 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_FWRITE_POINTER 1 _ACEOF fi for function in fclose fflush fopen fprintf fread fseek setvbuf ftell fwrite do cap_func="`echo ${function}|tr [a-z] [A-Z]`" cache_name="`echo vc_cv_${function}_pointer`" have_name="`echo HAVE_${cap_func}_POINTER`" { echo "$as_me:$LINENO: checking for $function function pointer" >&5 echo $ECHO_N "checking for $function function pointer... $ECHO_C" >&6; } if { as_var=$cache_name; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { int (*f)() = (int(*)())$function; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval $cache_name=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval $cache_name=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if eval "test \"`echo '$''{'$cache_name'}'`\" = no"; then { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } else cat >>confdefs.h <<_ACEOF #define ${have_name} 1 _ACEOF { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } fi done for ac_func in memmove fnmatch isnan fpclass strerror do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking if setjmp and longjmp work" >&5 echo $ECHO_N "checking if setjmp and longjmp work... $ECHO_C" >&6; } if test -n "$SETJMP_OVERRIDE"; then { echo "$as_me:$LINENO: result: no. Replacing with _setjmp and _longjmp." >&5 echo "${ECHO_T}no. Replacing with _setjmp and _longjmp." >&6; } cat >>confdefs.h <<\_ACEOF #define setjmp _setjmp _ACEOF cat >>confdefs.h <<\_ACEOF #define longjmp _longjmp _ACEOF else { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } fi cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) { echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6; } if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmw $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char _mwvalidcheckl (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return _mwvalidcheckl (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_mw__mwvalidcheckl=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_mw__mwvalidcheckl=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6; } if test $ac_cv_lib_mw__mwvalidcheckl = yes; then LIBM="-lmw" fi { echo "$as_me:$LINENO: checking for cos in -lm" >&5 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; } if test "${ac_cv_lib_m_cos+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char cos (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return cos (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_m_cos=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_m_cos=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; } if test $ac_cv_lib_m_cos = yes; then LIBM="$LIBM -lm" fi ;; *) { echo "$as_me:$LINENO: checking for cos in -lm" >&5 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; } if test "${ac_cv_lib_m_cos+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char cos (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return cos (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_m_cos=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_m_cos=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; } if test $ac_cv_lib_m_cos = yes; then LIBM="-lm" fi ;; esac LIBS="$LIBS $LIBM" # Check whether --with-szlib was given. if test "${with_szlib+set}" = set; then withval=$with_szlib; else withval=default fi case $withval in default) HAVE_SZLIB="no" if test "$DEFAULT_SZIP" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_SZIP/lib" LIBS="$LIBS -lsz" HAVE_SZLIB="yes" szlib_lib="$DEFAULT_SZIP/lib" fi if test "$DEFAULT_SZIP_LIB" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_SZIP_LIB" LIBS="$LIBS -lsz" HAVE_SZLIB="yes" szlib_lib="$DEFAULT_SZIP_LIB" fi if test "$DEFAULT_SZIP_LIBDIR" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_SZIP_LIBDIR" LIBS="$LIBS -lsz" HAVE_SZLIB="yes" szlib_lib="$DEFAULT_SZIP_LIBDIR" fi if test "$HAVE_SZLIB" = "yes" ; then { echo "$as_me:$LINENO: checking default szlib path provided" >&5 echo $ECHO_N "checking default szlib path provided... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $szlib_lib" >&5 echo "${ECHO_T}$szlib_lib" >&6; } else { echo "$as_me:$LINENO: checking for szlib" >&5 echo $ECHO_N "checking for szlib... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: suppressed" >&5 echo "${ECHO_T}suppressed" >&6; } fi ;; yes) HAVE_SZLIB="no" if test "$DEFAULT_SZIP" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_SZIP/lib" LIBS="$LIBS -lsz" HAVE_SZLIB="yes" szlib_lib="$DEFAULT_SZIP/lib" fi if test "$DEFAULT_SZIP_LIB" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_SZIP_LIB" LIBS="$LIBS -lsz" HAVE_SZLIB="yes" szlib_lib="$DEFAULT_SZIP_LIB" fi if test "$DEFAULT_SZIP_LIBDIR" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_SZIP_LIBDIR" LIBS="$LIBS -lsz" HAVE_SZLIB="yes" szlib_lib="$DEFAULT_SZIP_LIBDIR" fi if test "$HAVE_SZLIB" = "yes" ; then { echo "$as_me:$LINENO: checking using szlib path provided" >&5 echo $ECHO_N "checking using szlib path provided... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $szlib_lib" >&5 echo "${ECHO_T}$szlib_lib" >&6; } else { { echo "$as_me:$LINENO: error: expect to find szlib environment variables" >&5 echo "$as_me: error: expect to find szlib environment variables" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking for szlib" >&5 echo $ECHO_N "checking for szlib... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: suppressed" >&5 echo "${ECHO_T}suppressed" >&6; } fi ;; no) HAVE_SZLIB="no" { echo "$as_me:$LINENO: checking for szlib" >&5 echo $ECHO_N "checking for szlib... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: suppressed" >&5 echo "${ECHO_T}suppressed" >&6; } ;; *) HAVE_SZLIB="yes" case "$withval" in *) if test -n "$withval"; then szlib_lib="$withval/lib" fi ;; esac if test -n "$szlib_lib"; then LDFLAGS="$LDFLAGS -L$szlib_lib" fi { echo "$as_me:$LINENO: checking for SZ_BufftoBuffCompress in -lsz" >&5 echo $ECHO_N "checking for SZ_BufftoBuffCompress in -lsz... $ECHO_C" >&6; } if test "${ac_cv_lib_sz_SZ_BufftoBuffCompress+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsz $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char SZ_BufftoBuffCompress (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return SZ_BufftoBuffCompress (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_sz_SZ_BufftoBuffCompress=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_sz_SZ_BufftoBuffCompress=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_sz_SZ_BufftoBuffCompress" >&5 echo "${ECHO_T}$ac_cv_lib_sz_SZ_BufftoBuffCompress" >&6; } if test $ac_cv_lib_sz_SZ_BufftoBuffCompress = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBSZ 1 _ACEOF LIBS="-lsz $LIBS" else LDFLAGS="$saved_LDFLAGS"; unset HAVE_SZLIB fi if test -z "$HAVE_SZLIB" -a -n "$HDF5_CONFIG_ABORT"; then { { echo "$as_me:$LINENO: error: couldn't find szlib library" >&5 echo "$as_me: error: couldn't find szlib library" >&2;} { (exit 1); exit 1; }; } fi ;; esac # Is HDF5 present (it's needed for the silo/hdf5 driver for pmesh/alec SAMI # files larger than 2GB until SAF is in place)? Normally check for # hdf5.h and libhdf5.a but skip the test if `--without-hdf5' is specified. # Alternate directories can be specified for hdf5.h and/or libhdf5.a by giving # the names like this `--with-hdf5=INC,LIB' (if only the LIB directory is # given then it must still be preceded by a comma). # # Checking for hdf5 is complicated by the fact that hdf5 may or may not # in turn depend on zlib compression lib. In and of itself, Silo does NOT # depend on zlib. So, we don't want -lz on the link line if zlib is either # not needed or, worse, not present as this generates warning messages # or fatal errors. So, we first test for hdf5 without -lz on the link line. # If this succeeds, we conclude hdf5 is present and we can build the hdf5 # driver. If hdf5 fails, it may be that hdf5 was compiled with zlib. So, next # we make an independent test for zlib. If zlib fails, we conclude that the # failure on the hdf5 test was due to something other than lack of zlib and # decide libhdf5.a is NOT present and we cannot build the hdf5 driver. If # zlib succeeds, we re-try the hdf5 test with -lz on the link line. If that # succeeds, we conclude we need -lz on the link line and we can build the # hdf5 driver. Again, if it fails, we neither put -lz on the link line nor # build the hdf5 driver. One other possibility that could be tested for # and configure could make a reasonable comment on is to see if only the # binaries for hdf5 were installed AND they have zlib dependences which # are NOT resolvable on the platform they are installed on. This would be # a boneheaded thing to do, but nonetheless something that configure could # inform the user has gone wrong and what to do. # if test -n "$HDF5_DRV"; then { echo "$as_me:$LINENO: checking for hdf5" >&5 echo $ECHO_N "checking for hdf5... $ECHO_C" >&6; } saved_CPPFLAGS="$CPPFLAGS" saved_LDFLAGS="$LDFLAGS" saved_LIBS="$LIBS" # Check whether --with-hdf5 was given. if test "${with_hdf5+set}" = set; then withval=$with_hdf5; else withval="default" fi if test "$withval" = "no" ; then { echo "$as_me:$LINENO: result: suppressed" >&5 echo "${ECHO_T}suppressed" >&6; } HDF5_DRV="" elif test "$withval" = "default" ; then if test "$DEFAULT_HDF5_LIBDIR" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_HDF5_LIBDIR" LIBS="$LIBS -lhdf5 -lz" hdf5_lib=$DEFAULT_HDF5_LIBDIR hdf5_explicit=true fi if test "$DEFAULT_HDF5_INCLUDE" != "" ; then CPPFLAGS="$CPPFLAGS -I$DEFAULT_HDF5_INCLUDE" hdf5_inc=$DEFAULT_HDF5_INCLUDE hdf5_explicit=true fi if test -d "$hdf5_lib"; then { echo "$as_me:$LINENO: result: $hdf5_lib" >&5 echo "${ECHO_T}$hdf5_lib" >&6; } cat >>confdefs.h <<\_ACEOF #define HAVE_HDF5_H 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_LIBHDF5 1 _ACEOF else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } HDF5_DRV="" fi elif test "$withval" = "yes" ; then if test "$DEFAULT_HDF5_LIBDIR" != "" ; then LDFLAGS="$LDFLAGS -L$DEFAULT_HDF5_LIBDIR" LIBS="$LIBS -lhdf5 -lz" hdf5_lib=$DEFAULT_HDF5_LIBDIR hdf5_explicit=true fi if test "$DEFAULT_HDF5_INCLUDE" != "" ; then CPPFLAGS="$CPPFLAGS -I$DEFAULT_HDF5_INCLUDE" hdf5_inc=$DEFAULT_HDF5_INCLUDE hdf5_explicit=true fi if test -d "$hdf5_lib"; then { echo "$as_me:$LINENO: result: $hdf5_lib" >&5 echo "${ECHO_T}$hdf5_lib" >&6; } cat >>confdefs.h <<\_ACEOF #define HAVE_HDF5_H 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_LIBHDF5 1 _ACEOF else { { echo "$as_me:$LINENO: error: expected to find hdf5 environment variables" >&5 echo "$as_me: error: expected to find hdf5 environment variables" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } HDF5_DRV="" fi else { echo "$as_me:$LINENO: checking for hdf5 and supporting libraries..." >&5 echo "$as_me: checking for hdf5 and supporting libraries..." >&6;} hdf5_inc="`echo $withval |cut -f1 -d,`" if test "$withval" != "yes" && test -n "$hdf5_inc"; then hdf5_explicit=true if test -d "$hdf5_inc"; then CPPFLAGS="-I$hdf5_inc $CPPFLAGS" else { { echo "$as_me:$LINENO: error: problem with directory specified for hdf5 includes" >&5 echo "$as_me: error: problem with directory specified for hdf5 includes" >&2;} { (exit 1); exit 1; }; } fi fi hdf5_lib="`echo $withval |cut -f2 -d, -s`" if test "$withval" != "yes" && test -n "$hdf5_lib"; then hdf5_explicit=true if test -d "$hdf5_lib"; then if test -n "$szlib_lib"; then LDFLAGS="-L$hdf5_lib -L$szlib_lib $LDFLAGS" else LDFLAGS="-L$hdf5_lib $LDFLAGS" fi else { { echo "$as_me:$LINENO: error: problem with directory specified for hdf5 library" >&5 echo "$as_me: error: problem with directory specified for hdf5 library" >&2;} { (exit 1); exit 1; }; } fi fi notfound="" for ac_header in hdf5.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------- ## ## Report this to visit-users@email.ornl.gov ## ## ----------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else notfound="hdf5.h" fi done tmp_LIBS="$LIBS" if test -n "$szlib_lib"; then ### LIBS="$hdf5_lib/libhdf5.a $LIBS" LIBS="-lhdf5 -lsz $LIBS" else LIBS="-lhdf5 $LIBS" fi { echo "$as_me:$LINENO: checking for H5open" >&5 echo $ECHO_N "checking for H5open... $ECHO_C" >&6; } if test "${ac_cv_func_H5open+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define H5open to an innocuous variant, in case declares H5open. For example, HP-UX 11i declares gettimeofday. */ #define H5open innocuous_H5open /* System header to define __stub macros and hopefully few prototypes, which can conflict with char H5open (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef H5open /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char H5open (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_H5open || defined __stub___H5open choke me #endif #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return H5open (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_H5open=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_H5open=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_H5open" >&5 echo "${ECHO_T}$ac_cv_func_H5open" >&6; } if test $ac_cv_func_H5open = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_LIBHDF5 1 _ACEOF else notfound="$notfound libhdf5.a" fi if test -n "$notfound"; then LIBS="$tmp_LIBS" fi # # If the above tests did NOT find headers and lib for # hdf5, it could be due to zlib, so now test for zlib # MCM -- July, 2008: This code now looks completely useless # It is supposed to attempt to check if '-lz' is needed to # link with HDF5. However, it doesn't appear to do any of # that and had a useless embedded AC_ARG_WITH in it which # I removed and replaced all instances of 'withval' to the # with variable the code needs, with_zlib # if test -n "$notfound"; then # reset the compile and link flags CPPFLAGS="$saved_CPPFLAGS" LDFLAGS="$saved_LDFLAGS" { echo "$as_me:$LINENO: checking if lack of zlib caused tests for hdf5 to fail..." >&5 echo "$as_me: checking if lack of zlib caused tests for hdf5 to fail..." >&6;} if test "no" = "$with_zlib"; then { echo "$as_me:$LINENO: checking for zlib" >&5 echo $ECHO_N "checking for zlib... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: suppressed" >&5 echo "${ECHO_T}suppressed" >&6; } else zlib_inc="`echo $with_zlibval |cut -f1 -d,`" if test "$with_zlibval" != "yes" && test -n "$zlib_inc"; then if test -d "$zlib_inc"; then CPPFLAGS="-I$zlib_inc $CPPFLAGS" else { { echo "$as_me:$LINENO: error: problem with directory specified for zlib includes" >&5 echo "$as_me: error: problem with directory specified for zlib includes" >&2;} { (exit 1); exit 1; }; } fi fi zlib_lib="`echo $with_zlibval |cut -f2 -d, -s`" if test "$with_zlibval" != "yes" && test -n "$zlib_lib"; then if test -d "$zlib_lib"; then LDFLAGS="-L$zlib_lib $LDFLAGS" else { { echo "$as_me:$LINENO: error: problem with directory specified for zlib library" >&5 echo "$as_me: error: problem with directory specified for zlib library" >&2;} { (exit 1); exit 1; }; } fi fi notfound="" if test -z "`echo $LIBS | tr ' ' '\n' | grep -x -e '-lz'`"; then for ac_header in zlib.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------- ## ## Report this to visit-users@email.ornl.gov ## ## ----------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else notfound="zlib.h" fi done { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; } if test "${ac_cv_lib_z_compress2+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char compress2 (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return compress2 (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_z_compress2=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_z_compress2=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; } if test $ac_cv_lib_z_compress2 = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBZ 1 _ACEOF LIBS="-lz $LIBS" else notfound="$notfound libz.a" fi fi fi # # If libz was not found, the failure of hdf5 must be something else. # if test -n "$notfound"; then CPPFLAGS="$saved_CPPFLAGS" LDFLAGS="$saved_LDFLAGS" HDF5_DRV="" if test -n "$hdf5_explicit"; then { { echo "$as_me:$LINENO: error: You have made an explicit request for hdf5 with the --with-hdf option and $0 is unable to find hdf5 and its supporting libs, if any. Please see INSTALL_FAQ for possible causes." >&5 echo "$as_me: error: You have made an explicit request for hdf5 with the --with-hdf option and $0 is unable to find hdf5 and its supporting libs, if any. Please see INSTALL_FAQ for possible causes." >&2;} { (exit 1); exit 1; }; } else { echo "$as_me:$LINENO: WARNING: hdf5 driver disabled" >&5 echo "$as_me: WARNING: hdf5 driver disabled" >&2;} fi else # we unset these to defeat autoconf's cache unset ac_cv_header_hdf5_h unset ac_cv_lib_hdf5_H5open # # Now, retest for hdf5 with zlib # if test -n "$hdf5_inc"; then CPPFLAGS="-I$hdf5_inc $CPPFLAGS" fi if test -n "$hdf5_lib"; then if test -n "$szlib_lib"; then LDFLAGS="-L$hdf5_lib -L$szlib_lib $LDFLAGS" else LDFLAGS="-L$hdf5_lib $LDFLAGS" fi fi notfound="" for ac_header in hdf5.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------- ## ## Report this to visit-users@email.ornl.gov ## ## ----------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else notfound="hdf5.h" fi done tmp_LIBS="$LIBS" { echo "$as_me:$LINENO: checking for H5open in -lhdf5" >&5 echo $ECHO_N "checking for H5open in -lhdf5... $ECHO_C" >&6; } if test "${ac_cv_lib_hdf5_H5open+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lhdf5 $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char H5open (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return H5open (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_hdf5_H5open=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_hdf5_H5open=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_hdf5_H5open" >&5 echo "${ECHO_T}$ac_cv_lib_hdf5_H5open" >&6; } if test $ac_cv_lib_hdf5_H5open = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBHDF5 1 _ACEOF LIBS="-lhdf5 $LIBS" else notfound="$notfound libhdf5.a" fi if test "$notfound" = ""; then if test -n "$szlib_lib"; then ### LIBS="$hdf5_lib/libhdf5.a $tmp_LIBS" LIBS="-lhdf5 -lsz $tmp_LIBS" else LIBS="-lhdf5 $tmp_LIBS" fi fi if test -n "$notfound"; then CPPFLAGS="$saved_CPPFLAGS" LDFLAGS="$saved_LDFLAGS" HDF5_DRV="" if test -n "$hdf5_explicit"; then { { echo "$as_me:$LINENO: error: You have made an explicit request for hdf5 with the --with-hdf option and $0 is unable to find hdf5 and its supporting libs, if any. Please see INSTALL_FAQ for possible causes." >&5 echo "$as_me: error: You have made an explicit request for hdf5 with the --with-hdf option and $0 is unable to find hdf5 and its supporting libs, if any. Please see INSTALL_FAQ for possible causes." >&2;} { (exit 1); exit 1; }; } else { echo "$as_me:$LINENO: WARNING: hdf5 driver disabled" >&5 echo "$as_me: WARNING: hdf5 driver disabled" >&2;} fi fi fi # if test -n "$notfound" (for second hdf5 test) fi # if test -n "$notfound" (for zlib) fi # if test "no" = "$withval" fi # if test -n "$HDF5_DRV" # Check to see if the results of the above tests found the HDF5 libraries if test -n "$HDF5_DRV"; then # Short-term hack to deal with bogus code above (too complex) # putting -lsz AHEAD of -lhdf5 in libs if test "$HAVE_SZLIB" = "yes"; then LIBS="$LIBS -lsz" fi cat >>confdefs.h <<\_ACEOF #define HAVE_HDF5_DRIVER 1 _ACEOF else LIBS="$saved_LIBS" fi # Check whether --with-pdb-proper was given. if test "${with_pdb_proper+set}" = set; then withval=$with_pdb_proper; if test $withval != yes; then PDBP_DRV="pdbp_drv" cat >>confdefs.h <<\_ACEOF #define HAVE_PDBP_DRIVER 1 _ACEOF CPPFLAGS="-I$withval/include $CPPFLAGS" LDFLAGS="-L$withval/lib $LDFLAGS" LIBS="-lpdb -lpml -lscore $LIBS" else { { echo "$as_me:$LINENO: error: You must specify a directory for PDB proper" >&5 echo "$as_me: error: You must specify a directory for PDB proper" >&2;} { (exit 1); exit 1; }; } fi fi READLINE_LIBS="" if test "X$detect_readline" = Xyes; then # use contributed GNU m4 macro library provided see: # autoconf-archive-2006-06-04/htmldoc/vl_lib_readline.html saved_LIBS="$LIBS" { echo "$as_me:$LINENO: checking for a readline compatible library" >&5 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; } if test "${vl_cv_lib_readline+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ORIG_LIBS="$LIBS" for readline_lib in readline edit editline; do for termcap_lib in "" termcap curses ncurses; do if test -z "$termcap_lib"; then TRY_LIB="-l$readline_lib" else TRY_LIB="-l$readline_lib -l$termcap_lib" fi LIBS="$ORIG_LIBS $TRY_LIB" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char readline (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return readline (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then vl_cv_lib_readline="$TRY_LIB" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -n "$vl_cv_lib_readline"; then break fi done if test -n "$vl_cv_lib_readline"; then break fi done if test -z "$vl_cv_lib_readline"; then vl_cv_lib_readline="no" LIBS="$ORIG_LIBS" fi fi { echo "$as_me:$LINENO: result: $vl_cv_lib_readline" >&5 echo "${ECHO_T}$vl_cv_lib_readline" >&6; } if test "$vl_cv_lib_readline" != "no"; then cat >>confdefs.h <<\_ACEOF #define HAVE_LIBREADLINE 1 _ACEOF for ac_header in readline.h readline/readline.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------- ## ## Report this to visit-users@email.ornl.gov ## ## ----------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking whether readline supports history" >&5 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; } if test "${vl_cv_lib_readline_history+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else vl_cv_lib_readline_history="no" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char add_history (); #ifdef FC_DUMMY_MAIN #ifndef FC_DUMMY_MAIN_EQ_F77 # ifdef __cplusplus extern "C" # endif int FC_DUMMY_MAIN() { return 1; } #endif #endif int main () { return add_history (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then vl_cv_lib_readline_history="yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $vl_cv_lib_readline_history" >&5 echo "${ECHO_T}$vl_cv_lib_readline_history" >&6; } if test "$vl_cv_lib_readline_history" = "yes"; then cat >>confdefs.h <<\_ACEOF #define HAVE_READLINE_HISTORY 1 _ACEOF for ac_header in history.h readline/history.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ----------------------------------------- ## ## Report this to visit-users@email.ornl.gov ## ## ----------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done fi fi # Put only the stuff NOT already in $LIBS into READLINE_LIBS saved_LIBS_grep=$(echo $saved_LIBS | tr -s ' ' | sed 's% %\\|%g') READLINE_LIBS=$(echo $LIBS | tr -s ' ' | tr ' ' '\n' | grep -v -e $saved_LIBS_grep | tr '\n' ' ') LIBS="$saved_LIBS" else { echo "$as_me:$LINENO: checking for readline" >&5 echo $ECHO_N "checking for readline... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: disabled" >&5 echo "${ECHO_T}disabled" >&6; } fi # Check whether --with-qt was given. if test "${with_qt+set}" = set; then withval=$with_qt; if test $withval != yes; then QTDIR=$withval fi fi # Check whether --with-qt-bin was given. if test "${with_qt_bin+set}" = set; then withval=$with_qt_bin; if test $withval != yes; then QT_BIN=$withval fi fi # Check whether --with-qt-include was given. if test "${with_qt_include+set}" = set; then withval=$with_qt_include; if test $withval != yes; then QT_INCLUDE=$withval fi fi # Check whether --with-qt-lib was given. if test "${with_qt_lib+set}" = set; then withval=$with_qt_lib; if test $withval != yes; then QT_LIB=$withval fi fi if test -n "$SILEX"; then if test -z "$QT_BIN" || test -z "$QT_INCLUDE" || test -z "$QT_LIB"; then if test -z "QTDIR"; then { echo "$as_me:$LINENO: WARNING: The QT_BIN, QT_INCLUDE and QT_LIB environment variables must be set in order to find Qt. silex is being disabled" >&5 echo "$as_me: WARNING: The QT_BIN, QT_INCLUDE and QT_LIB environment variables must be set in order to find Qt. silex is being disabled" >&2;} SILEX="" else QT_BIN="$QTDIR/bin" QT_INCLUDE="$QTDIR/include" QT_LIB="$QTDIR/lib" fi fi { echo "$as_me:$LINENO: checking for supported Qt version" >&5 echo $ECHO_N "checking for supported Qt version... $ECHO_C" >&6; } QtVersion="" QtVersion2="" consumeCount=-1 toks=`$QT_BIN/qmake --version` for tok in $toks; do if test "$tok" == "Qt"; then consumeCount=2 fi if test $consumeCount == 0; then QtVersion2=$tok break else consumeCount=$((consumeCount-1)) fi done ## Check for supported versions of Qt. for ver in 4.4.0 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 \ 4.5.0 4.5.1 4.5.2 4.5.3 4.5.4 4.5.5 \ 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 ; do if test "$QtVersion2" == "$ver"; then QtVersion=$ver break fi done if test -z "$QtVersion"; then { echo "$as_me:$LINENO: WARNING: Sorry, but you need Qt version 4.4.0 or higher to compile Silo's silex tool. silex is being disabled" >&5 echo "$as_me: WARNING: Sorry, but you need Qt version 4.4.0 or higher to compile Silo's silex tool. silex is being disabled" >&2;} SILEX="" else { echo "$as_me:$LINENO: result: Qt $QtVersion in $QT_INCLUDE" >&5 echo "${ECHO_T}Qt $QtVersion in $QT_INCLUDE" >&6; } fi # Set the Qt bin,include,lib directories # Set platform-specific options if test "$UNAME" = "Darwin"; then QT_LDFLAGS="-F$""(QT_LIB) -L$""(QT_LIB)" QT_CORE=QtCore.framework QT_CORE_LIB="-framework QtCore" QT_GUI=QtGui.framework QT_GUI_LIB="-framework QtGui" else QT_LDFLAGS="-L$""(QT_LIB)" QT_CORE=libQtCore.so QT_CORE_LIB=-lQtCore QT_GUI=libQtGui.so QT_GUI_LIB=-lQtGui fi # Qt libraries QT_LIBS="$""(QT_CORE_LIB) $""(QT_GUI_LIB)" # Include path QT_CXXFLAGS="-I$""(QT_INCLUDE) -I$""(QT_INCLUDE)/Qt -I$""(QT_INCLUDE)/QtCore -I$""(QT_INCLUDE)/QtGui" # Path to moc QT_MOC="$""(QT_BIN)/moc" fi if test -n "$PYTHONMODULE"; then if test -n "$PYTHON"; then # If the user set $PYTHON, use it and don't search something else. { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.1" >&5 echo $ECHO_N "checking whether $PYTHON version >= 2.1... $ECHO_C" >&6; } prog="import sys, string # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. minver = map(int, string.split('2.1', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)" if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 ($PYTHON -c "$prog") >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { { echo "$as_me:$LINENO: error: too old" >&5 echo "$as_me: error: too old" >&2;} { (exit 1); exit 1; }; } fi am_display_PYTHON=$PYTHON else # Otherwise, try each interpreter until we find one that satisfies # VERSION. { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.1" >&5 echo $ECHO_N "checking for a Python interpreter with version >= 2.1... $ECHO_C" >&6; } if test "${am_cv_pathless_PYTHON+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do test "$am_cv_pathless_PYTHON" = none && break prog="import sys, string # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. minver = map(int, string.split('2.1', '.')) + [0, 0, 0] minverhex = 0 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i] sys.exit(sys.hexversion < minverhex)" if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then break fi done fi { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; } # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. if test "$am_cv_pathless_PYTHON" = none; then PYTHON=: else # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. set dummy $am_cv_pathless_PYTHON; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PYTHON+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PYTHON in [\\/]* | ?:[\\/]*) ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PYTHON=$ac_cv_path_PYTHON if test -n "$PYTHON"; then { echo "$as_me:$LINENO: result: $PYTHON" >&5 echo "${ECHO_T}$PYTHON" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi am_display_PYTHON=$am_cv_pathless_PYTHON fi if test "$PYTHON" = :; then : else { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; } if test "${am_cv_python_version+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"` fi { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5 echo "${ECHO_T}$am_cv_python_version" >&6; } PYTHON_VERSION=$am_cv_python_version PYTHON_PREFIX='${prefix}' PYTHON_EXEC_PREFIX='${exec_prefix}' { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; } if test "${am_cv_python_platform+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"` fi { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5 echo "${ECHO_T}$am_cv_python_platform" >&6; } PYTHON_PLATFORM=$am_cv_python_platform { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; } if test "${am_cv_python_pythondir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null || echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"` fi { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5 echo "${ECHO_T}$am_cv_python_pythondir" >&6; } pythondir=$am_cv_python_pythondir pkgpythondir=\${pythondir}/$PACKAGE { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; } if test "${am_cv_python_pyexecdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null || echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"` fi { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; } pyexecdir=$am_cv_python_pyexecdir pkgpyexecdir=\${pyexecdir}/$PACKAGE fi # Check for Python include path # { echo "$as_me:$LINENO: checking for Python include path" >&5 echo $ECHO_N "checking for Python include path... $ECHO_C" >&6; } if test -z "$PYTHON_CPPFLAGS"; then python_path=`$PYTHON -c "import distutils.sysconfig; \ print distutils.sysconfig.get_python_inc();"` if test -n "${python_path}"; then python_path="-I$python_path" fi PYTHON_CPPFLAGS=$python_path fi { echo "$as_me:$LINENO: result: $PYTHON_CPPFLAGS" >&5 echo "${ECHO_T}$PYTHON_CPPFLAGS" >&6; } fi # skip for now #ACX_MPI # Create a bundle target for Darwin BUNDLE_TARGET="" case $host_os in darwin*) BUNDLE_TARGET="silo.app" ;; esac cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache if test -n "$NETCDF"; then NETCDF_NEEDED_TRUE= NETCDF_NEEDED_FALSE='#' else NETCDF_NEEDED_TRUE='#' NETCDF_NEEDED_FALSE= fi if test -n "$PDB_DRV"; then PDB_DRV_NEEDED_TRUE= PDB_DRV_NEEDED_FALSE='#' else PDB_DRV_NEEDED_TRUE='#' PDB_DRV_NEEDED_FALSE= fi if test -n "$PDBP_DRV"; then PDBP_DRV_NEEDED_TRUE= PDBP_DRV_NEEDED_FALSE='#' else PDBP_DRV_NEEDED_TRUE='#' PDBP_DRV_NEEDED_FALSE= fi if test -n "$TAURUS"; then TAURUS_NEEDED_TRUE= TAURUS_NEEDED_FALSE='#' else TAURUS_NEEDED_TRUE='#' TAURUS_NEEDED_FALSE= fi if test -n "$HDF5_DRV"; then HDF5_DRV_NEEDED_TRUE= HDF5_DRV_NEEDED_FALSE='#' else HDF5_DRV_NEEDED_TRUE='#' HDF5_DRV_NEEDED_FALSE= fi if test -n "$BROWSER"; then BROWSER_NEEDED_TRUE= BROWSER_NEEDED_FALSE='#' else BROWSER_NEEDED_TRUE='#' BROWSER_NEEDED_FALSE= fi if test -n "$PYTHONMODULE"; then PYTHON_NEEDED_TRUE= PYTHON_NEEDED_FALSE='#' else PYTHON_NEEDED_TRUE='#' PYTHON_NEEDED_FALSE= fi if test -n "$FORTRAN"; then FORTRAN_NEEDED_TRUE= FORTRAN_NEEDED_FALSE='#' else FORTRAN_NEEDED_TRUE='#' FORTRAN_NEEDED_FALSE= fi if test -n "$SILEX"; then SILEX_NEEDED_TRUE= SILEX_NEEDED_FALSE='#' else SILEX_NEEDED_TRUE='#' SILEX_NEEDED_FALSE= fi if test -n "$HZIP"; then HZIP_NEEDED_TRUE= HZIP_NEEDED_FALSE='#' else HZIP_NEEDED_TRUE='#' HZIP_NEEDED_FALSE= fi if test -n "$FPZIP"; then FPZIP_NEEDED_TRUE= FPZIP_NEEDED_FALSE='#' else FPZIP_NEEDED_TRUE='#' FPZIP_NEEDED_FALSE= fi if test -n "$ZLIB"; then ZLIB_AVAILABLE_TRUE= ZLIB_AVAILABLE_FALSE='#' else ZLIB_AVAILABLE_TRUE='#' ZLIB_AVAILABLE_FALSE= fi if test "$enable_shared" = "no" -a \( -n "$FPZIP" -o -n "$HZIP" \); then CXX_LINK_NEEDED_TRUE= CXX_LINK_NEEDED_FALSE='#' else CXX_LINK_NEEDED_TRUE='#' CXX_LINK_NEEDED_FALSE= fi ac_config_files="$ac_config_files Makefile SiloWindows/Makefile svn_bin/Makefile config/Makefile config-site/Makefile docs/Makefile src/Makefile src/score/Makefile src/pdb/Makefile src/silo/Makefile src/silo/silo.h src/debug/Makefile src/netcdf/Makefile src/pdb_drv/Makefile src/pdbp_drv/Makefile src/hdf5_drv/Makefile src/taurus/Makefile src/unknown/Makefile src/filters/Makefile tests/Makefile tools/Makefile tools/browser/Makefile tools/python/Makefile tools/silex/Makefile tools/silock/Makefile" if test -n "$HZIP"; then ac_config_files="$ac_config_files src/hzip/Makefile" fi if test -n "$FPZIP"; then ac_config_files="$ac_config_files src/fpzip/Makefile" fi if test -n "$HDF5_DRV"; then ac_config_files="$ac_config_files src/libsiloh5.settings" else ac_config_files="$ac_config_files src/libsilo.settings" fi CC_FULLPATH="" if test -n "$CC"; then CC_FULLPATH=`which $CC` fi CXX_FULLPATH="" if test -n "$CXX"; then CXX_FULLPATH=`which $CXX` fi FC_FULLPATH="" if test -n "$FC"; then FC_FULLPATH=`which $FC` fi cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${NETCDF_NEEDED_TRUE}" && test -z "${NETCDF_NEEDED_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"NETCDF_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"NETCDF_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${PDB_DRV_NEEDED_TRUE}" && test -z "${PDB_DRV_NEEDED_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"PDB_DRV_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"PDB_DRV_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${PDBP_DRV_NEEDED_TRUE}" && test -z "${PDBP_DRV_NEEDED_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"PDBP_DRV_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"PDBP_DRV_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${TAURUS_NEEDED_TRUE}" && test -z "${TAURUS_NEEDED_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"TAURUS_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"TAURUS_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HDF5_DRV_NEEDED_TRUE}" && test -z "${HDF5_DRV_NEEDED_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"HDF5_DRV_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"HDF5_DRV_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${BROWSER_NEEDED_TRUE}" && test -z "${BROWSER_NEEDED_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"BROWSER_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"BROWSER_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${PYTHON_NEEDED_TRUE}" && test -z "${PYTHON_NEEDED_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"PYTHON_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"PYTHON_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${FORTRAN_NEEDED_TRUE}" && test -z "${FORTRAN_NEEDED_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"FORTRAN_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"FORTRAN_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${SILEX_NEEDED_TRUE}" && test -z "${SILEX_NEEDED_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"SILEX_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"SILEX_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HZIP_NEEDED_TRUE}" && test -z "${HZIP_NEEDED_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"HZIP_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"HZIP_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${FPZIP_NEEDED_TRUE}" && test -z "${FPZIP_NEEDED_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"FPZIP_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"FPZIP_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${ZLIB_AVAILABLE_TRUE}" && test -z "${ZLIB_AVAILABLE_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"ZLIB_AVAILABLE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"ZLIB_AVAILABLE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${CXX_LINK_NEEDED_TRUE}" && test -z "${CXX_LINK_NEEDED_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"CXX_LINK_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"CXX_LINK_NEEDED\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by silo $as_me 4.8, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ silo config.status 4.8 configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config/config.h.in" ;; "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "SiloWindows/Makefile") CONFIG_FILES="$CONFIG_FILES SiloWindows/Makefile" ;; "svn_bin/Makefile") CONFIG_FILES="$CONFIG_FILES svn_bin/Makefile" ;; "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; "config-site/Makefile") CONFIG_FILES="$CONFIG_FILES config-site/Makefile" ;; "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/score/Makefile") CONFIG_FILES="$CONFIG_FILES src/score/Makefile" ;; "src/pdb/Makefile") CONFIG_FILES="$CONFIG_FILES src/pdb/Makefile" ;; "src/silo/Makefile") CONFIG_FILES="$CONFIG_FILES src/silo/Makefile" ;; "src/silo/silo.h") CONFIG_FILES="$CONFIG_FILES src/silo/silo.h" ;; "src/debug/Makefile") CONFIG_FILES="$CONFIG_FILES src/debug/Makefile" ;; "src/netcdf/Makefile") CONFIG_FILES="$CONFIG_FILES src/netcdf/Makefile" ;; "src/pdb_drv/Makefile") CONFIG_FILES="$CONFIG_FILES src/pdb_drv/Makefile" ;; "src/pdbp_drv/Makefile") CONFIG_FILES="$CONFIG_FILES src/pdbp_drv/Makefile" ;; "src/hdf5_drv/Makefile") CONFIG_FILES="$CONFIG_FILES src/hdf5_drv/Makefile" ;; "src/taurus/Makefile") CONFIG_FILES="$CONFIG_FILES src/taurus/Makefile" ;; "src/unknown/Makefile") CONFIG_FILES="$CONFIG_FILES src/unknown/Makefile" ;; "src/filters/Makefile") CONFIG_FILES="$CONFIG_FILES src/filters/Makefile" ;; "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; "tools/browser/Makefile") CONFIG_FILES="$CONFIG_FILES tools/browser/Makefile" ;; "tools/python/Makefile") CONFIG_FILES="$CONFIG_FILES tools/python/Makefile" ;; "tools/silex/Makefile") CONFIG_FILES="$CONFIG_FILES tools/silex/Makefile" ;; "tools/silock/Makefile") CONFIG_FILES="$CONFIG_FILES tools/silock/Makefile" ;; "src/hzip/Makefile") CONFIG_FILES="$CONFIG_FILES src/hzip/Makefile" ;; "src/fpzip/Makefile") CONFIG_FILES="$CONFIG_FILES src/fpzip/Makefile" ;; "src/libsiloh5.settings") CONFIG_FILES="$CONFIG_FILES src/libsiloh5.settings" ;; "src/libsilo.settings") CONFIG_FILES="$CONFIG_FILES src/libsilo.settings" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim am__isrc!$am__isrc$ac_delim CYGPATH_W!$CYGPATH_W$ac_delim PACKAGE!$PACKAGE$ac_delim VERSION!$VERSION$ac_delim ACLOCAL!$ACLOCAL$ac_delim AUTOCONF!$AUTOCONF$ac_delim AUTOMAKE!$AUTOMAKE$ac_delim AUTOHEADER!$AUTOHEADER$ac_delim MAKEINFO!$MAKEINFO$ac_delim install_sh!$install_sh$ac_delim STRIP!$STRIP$ac_delim INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim mkdir_p!$mkdir_p$ac_delim AWK!$AWK$ac_delim SET_MAKE!$SET_MAKE$ac_delim am__leading_dot!$am__leading_dot$ac_delim AMTAR!$AMTAR$ac_delim am__tar!$am__tar$ac_delim am__untar!$am__untar$ac_delim MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim MAINT!$MAINT$ac_delim PYTHONMODULE!$PYTHONMODULE$ac_delim build!$build$ac_delim build_cpu!$build_cpu$ac_delim build_vendor!$build_vendor$ac_delim build_os!$build_os$ac_delim host!$host$ac_delim host_cpu!$host_cpu$ac_delim host_vendor!$host_vendor$ac_delim host_os!$host_os$ac_delim SILO_VERS_MAJ!$SILO_VERS_MAJ$ac_delim SILO_VERS_MIN!$SILO_VERS_MIN$ac_delim SILO_VERS_PAT!$SILO_VERS_PAT$ac_delim SILO_VERS_PRE!$SILO_VERS_PRE$ac_delim SILO_VERS_TAG!$SILO_VERS_TAG$ac_delim CONFIG_CMD!$CONFIG_CMD$ac_delim CONFIG_DATE!$CONFIG_DATE$ac_delim CONFIG_USER!$CONFIG_USER$ac_delim FORTRAN!$FORTRAN$ac_delim CXX!$CXX$ac_delim CXXFLAGS!$CXXFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CXX!$ac_ct_CXX$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim DEPDIR!$DEPDIR$ac_delim am__include!$am__include$ac_delim am__quote!$am__quote$ac_delim AMDEP_TRUE!$AMDEP_TRUE$ac_delim AMDEP_FALSE!$AMDEP_FALSE$ac_delim AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim CXXDEPMODE!$CXXDEPMODE$ac_delim am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim CC!$CC$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF CFLAGS!$CFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim CCDEPMODE!$CCDEPMODE$ac_delim am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim CPP!$CPP$ac_delim FC!$FC$ac_delim FCFLAGS!$FCFLAGS$ac_delim ac_ct_FC!$ac_ct_FC$ac_delim FCLIBS!$FCLIBS$ac_delim SED!$SED$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim LN_S!$LN_S$ac_delim ECHO!$ECHO$ac_delim AR!$AR$ac_delim RANLIB!$RANLIB$ac_delim CXXCPP!$CXXCPP$ac_delim F77!$F77$ac_delim FFLAGS!$FFLAGS$ac_delim ac_ct_F77!$ac_ct_F77$ac_delim LIBTOOL!$LIBTOOL$ac_delim SILO_DTYPPTR!$SILO_DTYPPTR$ac_delim SILO_DTYPPTR1!$SILO_DTYPPTR1$ac_delim SILO_DTYPPTR2!$SILO_DTYPPTR2$ac_delim NETCDF!$NETCDF$ac_delim PDB_DRV!$PDB_DRV$ac_delim TAURUS!$TAURUS$ac_delim HDF5_DRV!$HDF5_DRV$ac_delim BROWSER!$BROWSER$ac_delim SILEX!$SILEX$ac_delim HZIP!$HZIP$ac_delim ZLIB!$ZLIB$ac_delim FPZIP!$FPZIP$ac_delim PRTDIAG!$PRTDIAG$ac_delim PDBP_DRV!$PDBP_DRV$ac_delim READLINE_LIBS!$READLINE_LIBS$ac_delim QT_BIN!$QT_BIN$ac_delim QT_INCLUDE!$QT_INCLUDE$ac_delim QT_LIB!$QT_LIB$ac_delim QT_LDFLAGS!$QT_LDFLAGS$ac_delim QT_LIBS!$QT_LIBS$ac_delim QT_CORE!$QT_CORE$ac_delim QT_CORE_LIB!$QT_CORE_LIB$ac_delim QT_GUI!$QT_GUI$ac_delim QT_GUI_LIB!$QT_GUI_LIB$ac_delim QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim QT_MOC!$QT_MOC$ac_delim PYTHON!$PYTHON$ac_delim PYTHON_VERSION!$PYTHON_VERSION$ac_delim PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim pythondir!$pythondir$ac_delim pkgpythondir!$pkgpythondir$ac_delim pyexecdir!$pyexecdir$ac_delim pkgpyexecdir!$pkgpyexecdir$ac_delim PYTHON_CPPFLAGS!$PYTHON_CPPFLAGS$ac_delim BUNDLE_TARGET!$BUNDLE_TARGET$ac_delim NETCDF_NEEDED_TRUE!$NETCDF_NEEDED_TRUE$ac_delim NETCDF_NEEDED_FALSE!$NETCDF_NEEDED_FALSE$ac_delim PDB_DRV_NEEDED_TRUE!$PDB_DRV_NEEDED_TRUE$ac_delim PDB_DRV_NEEDED_FALSE!$PDB_DRV_NEEDED_FALSE$ac_delim PDBP_DRV_NEEDED_TRUE!$PDBP_DRV_NEEDED_TRUE$ac_delim PDBP_DRV_NEEDED_FALSE!$PDBP_DRV_NEEDED_FALSE$ac_delim TAURUS_NEEDED_TRUE!$TAURUS_NEEDED_TRUE$ac_delim TAURUS_NEEDED_FALSE!$TAURUS_NEEDED_FALSE$ac_delim HDF5_DRV_NEEDED_TRUE!$HDF5_DRV_NEEDED_TRUE$ac_delim HDF5_DRV_NEEDED_FALSE!$HDF5_DRV_NEEDED_FALSE$ac_delim BROWSER_NEEDED_TRUE!$BROWSER_NEEDED_TRUE$ac_delim BROWSER_NEEDED_FALSE!$BROWSER_NEEDED_FALSE$ac_delim PYTHON_NEEDED_TRUE!$PYTHON_NEEDED_TRUE$ac_delim PYTHON_NEEDED_FALSE!$PYTHON_NEEDED_FALSE$ac_delim FORTRAN_NEEDED_TRUE!$FORTRAN_NEEDED_TRUE$ac_delim FORTRAN_NEEDED_FALSE!$FORTRAN_NEEDED_FALSE$ac_delim SILEX_NEEDED_TRUE!$SILEX_NEEDED_TRUE$ac_delim SILEX_NEEDED_FALSE!$SILEX_NEEDED_FALSE$ac_delim HZIP_NEEDED_TRUE!$HZIP_NEEDED_TRUE$ac_delim HZIP_NEEDED_FALSE!$HZIP_NEEDED_FALSE$ac_delim FPZIP_NEEDED_TRUE!$FPZIP_NEEDED_TRUE$ac_delim FPZIP_NEEDED_FALSE!$FPZIP_NEEDED_FALSE$ac_delim ZLIB_AVAILABLE_TRUE!$ZLIB_AVAILABLE_TRUE$ac_delim ZLIB_AVAILABLE_FALSE!$ZLIB_AVAILABLE_FALSE$ac_delim CXX_LINK_NEEDED_TRUE!$CXX_LINK_NEEDED_TRUE$ac_delim CXX_LINK_NEEDED_FALSE!$CXX_LINK_NEEDED_FALSE$ac_delim CC_FULLPATH!$CC_FULLPATH$ac_delim CXX_FULLPATH!$CXX_FULLPATH$ac_delim FC_FULLPATH!$FC_FULLPATH$ac_delim LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input="Generated from "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then replace #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| . 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "tests/atconfig":C) cat >tests/atconfig < /dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir=$dirpart/$fdir case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi echo;echo if test -n "$HDF5_DRV"; then cat src/libsiloh5.settings | sed 's|\\n||' | sed 's|"||g' else cat src/libsilo.settings | sed 's|\\n||' | sed 's|"||g' fi silo-4.8-bsd/INSTALL0000644000707000001660000002243211444246315013524 0ustar miller86visitInstallation Instructions ************************* Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free Software Foundation, Inc. This file is free documentation; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. (Caching is disabled by default to prevent problems with accidental use of stale cache files.) If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You only need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not support the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Here is a another example: /bin/bash ./configure CONFIG_SHELL=/bin/bash Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent configuration-related scripts to be executed by `/bin/bash'. `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of the options to `configure', and exit. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. silo-4.8-bsd/COPYRIGHT0000644000707000001660000000537211444246315013772 0ustar miller86visitCopyright (c) 1994 - 2010, Lawrence Livermore National Security, LLC. LLNL-CODE-425250. All rights reserved. This file is part of Silo. For details, see silo.llnl.gov. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the disclaimer below. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the disclaimer (as noted below) in the documentation and/or other materials provided with the distribution. * Neither the name of the LLNS/LLNL nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This work was produced at Lawrence Livermore National Laboratory under Contract No. DE-AC52-07NA27344 with the DOE. Neither the United States Government nor Lawrence Livermore National Security, LLC nor any of their employees, makes any warranty, express or implied, or assumes any liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately-owned rights. Any reference herein to any specific commercial products, process, or services by trade name, trademark, manufacturer or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or Lawrence Livermore National Security, LLC. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or Lawrence Livermore National Security, LLC, and shall not be used for advertising or product endorsement purposes. silo-4.8-bsd/FAQ0000644000707000001660000001657211444246315013035 0ustar miller86visitSilo Development FAQ -------------------- 1) make errors Some file timestamps become an issue, because of the ClearCase file write protection on non-checkedout files, there will be errors in the build because of these make dependencies. Most of these files can be created manually, by looking at the creating scripts in the Makefiles. (useful command: force a timestamp update "ct ci -ident") make sure that the timestamps of: - Autoreconf files, just make sure of the ClearCase checkin order ./configure > ./configure.ac */Makefile.in > */Makefile.am - Targets in tests, used by autotest (i.e., make check) tests/package.m4 > ./configure.ac tests/testsuite > tests/testsuite.at - Target in src/silo/Makefile, src/silo/silo.inc > src/silo/silo.h src/silo/silo.inc > src/silo/silo_f.h 2) Maintainer mode The "missing" script is a wrapper around several maintainer tools, designed to warn users if a maintainer tool is required but missing. Typical maintainer tools are "autoconf", "automake", etc. Because file generated by these tools are shipped with the other sources of a package, these tools shouldn't be required during a user build and they are not checked for in "configure". However, if for some reason a rebuild rule is triggered and involves a missing tool, "missing" will notice it and warn the user. Besides the warning, when a tool is missing, "missing" will attempt to fix timestamps in a way which allow the build to continue. For instance "missing" will touch "configure" if "autoconf" is not installed. When all distributed files are kept under ClearCase, this feature of "missing" allows user with no maintainer tools to build a package off ClearCase, bypassing any timestamp inconsistency implied by "cleartool checkin". If the required tool is installed, "missing" will run it and won't attempt to continue after failures. This is the correct behavior during development. However, users with wrong versions of maintainer tools may get an error when the rebuild rule is spuriously triggered, halting the build. The rebuild rules are disabled by default, hence all autotools must be manually run (usually through, "config/bootstrap" script). Running "./configure --enable-maintainer-mode", will enable the automatic rebuild rules in Makefile's, which will maintain consistency between the autogenerated files. This feature totally automates the running of maintainer tools. In maintainer mode should just be able to run "make" as it should recognise that Makefile.am, etc. has been modified and run the appropriate commands to regenerate the Makefile. 1) you must put the current autotools binaries in your PATH: PATH=/usr/gapps/silo/autotools/i686-pc-linux-gnu:$PATH 2) check-out all of the autotools generated files: config/bootstrap -o 3) Enable maintainer tools: ./configure --enable-maintainer-mode 4) development . . . to regenerate all autotools generated files: config/bootstrap . . . 5) Disable maintainer mode for distribution: ./configure 6) check-in of the changed autotools generated files: config/bootstrap -i "check-in change comments" 2) Distributions Automake generates rules to provide archives of Silo for distributions in various formats. Their targets are: dist-bzip2 Generate a bzip2 tar archive of the distribution. bzip2 archives are frequently smaller than gzipped archives. dist-gzip Generate a gzip tar archive of the distribution. dist-shar Generate a shar archive of the distribution. dist-zip Generate a zip archive of the distribution. dist-tarZ Generate a compressed tar archive of the distribution. The rule "dist" by default executes the dist-gzip target. The files is named based on the PACKAGE and VERSION variables, and the gzip'd tar file is named "PACKAGE-VERSION.tar.gz". PACKAGE is defined as "silo" in configure.ac, along with VERSION. VERSION is release specific usually defined as something like "5.0.0". The archive will be extracted into the directory "PACKAGE-VERSION". To override the default naming and create a distribution "test-test" do something like: make PACKAGE="test" VERSION="test" dist 3) Installs By default, `make install' will install all the files in `/usr/local/bin', `/usr/local/lib' etc. You can specify an installation prefix other than `/usr/local' using `--prefix', for instance `--prefix=$HOME'. Alternatively, You run the normal build procedure until you get to the install target: ./configure make Instead of calling 'make install' you can add a DESTDIR flag which will prepend the normal PREFIX (must be an absolute directory name), like follows: make DESTDIR=`pwd` install This will install all the files (libraries, includes, binaries) at the level of the current directory. Automake generates separate install-data and install-exec rules, in case the installer is installing on multiple machines that share directory structure--hese targets allow the machine-independent parts to be installed only once. install-exec installs platform-dependent files, and install-data installs platform-independent files. The install target depends on both of these targets. Variables using the standard directory prefixes "data", "info", "man", "include", "oldinclude", "pkgdata", or "pkginclude" are installed by install-data. Variables using the standard directory prefixes "bin", "sbin", "libexec", "sysconf", "localstate", "lib", or "pkglib" are installed by install-exec. 4) clearmake Clearmake has it's own idea of computing dependencies, it is pretty much a special file system tracking all of the reads, writes, etc, and feeding that information back into clearmake. Automake on the otherhand, not nearly as complex an application, generates dependencies as a side effect of complation. Clearmake doesn't follow the automake defined dependencies. Clearmake's dependency tracking does appear to function in parallel with the current silo automake configuration. To use clearmake: 1) you must put the current autotools binaries in your PATH: PATH=/usr/gapps/silo/autotools/i686-pc-linux-gnu:$PATH 2) checkout all of the autotools generated files: config/bootstrap -o 5) Configure Variables not defined in a site shell script can be set in the environment passed to configure. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the configure command line, using "VAR=value". For example: ./configure CC=/usr/local/pgi/linux86/6.0/bin/pgcc causes the specified Portland Group C to be used as the C compiler. Run "./configure --help" for details on some of the pertinent environment variables. Other examples: ./configure --prefix=/usr/gapps/silo/4.5.1-pre4/i386-pc-linux-gcc-3.2.3 \ --with-szlib=/usr/gapps/silo/szip/2.0/i386-pc-linux-gcc-3.2.3 \ --with-hdf5=/usr/gapps/silo/hdf5/1.8.0-beta3/i386-pc-linux-gcc-3.2.3/\ include,/usr/gapps/silo/hdf5/1.8.0-beta3/i386-pc-linux-gcc-3.2.3/lib \ --enable-silex \ --with-Qt-dir=/usr/gapps/silo/qt/3.3.8/i386-pc-linux-gcc-3.2.3 silo-4.8-bsd/VERSION0000664000707000001660000000000411444246315013534 0ustar miller86visit4.8 silo-4.8-bsd/BSD_LICENSE_README0000644000707000001660000000625411444246315015211 0ustar miller86visitAs of Version 4.8, July, 2010, the Silo source code is now available under the standard BSD Open Source License. See COPYRIGHT file for BSD notice. The source code for two compression libraries which have been part of previous releases of the Silo library is not available under the terms of the BSD Open Source license. These are the Hzip and FPzip compression libraries. For this reason, two different releases of the Silo source code are made available. One is the BSD Open Source release identified by the moniker 'bsd' in the distribution file names. For example, silo-4.8-bsd.tar.gz is the name of a BSD Open Source release distribution of Silo. The other is a non-Open Source release of Silo under the same licensing terms that all previous releases have been made. We call this other release a /legacy/ release. The legacy terms are repeated, below, for convenience. ------------------------------------------------------------------ Copyright (c) 1994-2010, Lawrence Livermore National Security, LLC. All rights reserved. This work was produced at Lawrence Livermore National Laboratory under Contract No. DE-AC52-07NA27344 with the DOE. DISCLAIMER This work was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the University of California nor any of their employees, makes any warranty, express or implied, or assumes any liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately- owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or the University of California, and shall not be used for advertising or product endorsement purposes. NOTIFICATION OF COMMERCIAL USE Commercialization of this product is prohibited without notifying the Department of Energy (DOE) or Lawrence Livermore National Laboratory (LLNL). ---------------------------------------------------------------- The BSD Open Source release distributions do not contain the Hzip and FPzip compression libraries while the legacy release distributions do. This means any objects within a Silo file containing data that is compressed with Hzip or FPzip from a legacy distribution will not be readable in a BSD distribution. Since compression features must be explicitly turned on by a Silo application, this impact can be easily mitigating by ensuring that Hzip and FPzip compression are used only for objects within Silo files not intended to be read by BSD releases. For more information on availability of Hzip and FPzip compression, contact the developer, Peter Lindstrom, lindstrom2@llnl.gov. silo-4.8-bsd/config-site/0002775000707000001660000000000011444246315014703 5ustar miller86visitsilo-4.8-bsd/config-site/README0000644000707000001660000000120211444246315015552 0ustar miller86visitThis directory contains examples of site configuration files. The selection order of the configure files is: `hostname`.conf CPU-VENDOR-OS.conf VENDOR-OS.conf CPU-OS.conf CPU-VENDOR.conf OS.conf VENDOR.conf CPU.conf `uname`.conf To quote from the autoconf manual: If the environment variable `CONFIG_SITE' is set, `configure' uses its value as the name of a shell script to read. Otherwise, it reads the shell script `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Thus, settings in machine-specific files override those in machine-independent ones in case of conflict. silo-4.8-bsd/config-site/Makefile.am0000644000707000001660000001013111444246315016727 0ustar miller86visit# Copyright (c) 1994 - 2010, Lawrence Livermore National Security, LLC. # LLNL-CODE-425250. # All rights reserved. # # This file is part of Silo. For details, see silo.llnl.gov. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the disclaimer below. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the disclaimer (as noted # below) in the documentation and/or other materials provided with # the distribution. # * Neither the name of the LLNS/LLNL nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE # LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # This work was produced at Lawrence Livermore National Laboratory under # Contract No. DE-AC52-07NA27344 with the DOE. # # Neither the United States Government nor Lawrence Livermore National # Security, LLC nor any of their employees, makes any warranty, express # or implied, or assumes any liability or responsibility for the # accuracy, completeness, or usefulness of any information, apparatus, # product, or process disclosed, or represents that its use would not # infringe privately-owned rights. # # Any reference herein to any specific commercial products, process, or # services by trade name, trademark, manufacturer or otherwise does not # necessarily constitute or imply its endorsement, recommendation, or # favoring by the United States Government or Lawrence Livermore # National Security, LLC. The views and opinions of authors expressed # herein do not necessarily state or reflect those of the United States # Government or Lawrence Livermore National Security, LLC, and shall not # be used for advertising or product endorsement purposes. # ## Procss this file with automake to create Makefile.in EXTRA_DIST = *.conf # # By default, the dist-gzip target (as well as other distribution # targets) winds up creating copies of files that are really links # instead of preserving the links. I did not find any ways to control # the flags Automake uses to do the copy to, for example, ensure a # '-d' was included in the 'cp' command to preserve links. I learned # from reading AutoMake documentation that you can kinda-sorta do # what you want by making special code in the 'dist-hook' target. So, # we create that target here to ensure we wind up with a config-site # dir where the links between config-site files are preserved. The # code below is a based on code generated by Automake for the distdir # target, but modified to handle this case. # dist-hook: @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ for file in $$dist_files; do \ rm -f $(distdir)/$$file; \ cp -pd $(srcdir)/$$file $(distdir)/$$file ;\ done silo-4.8-bsd/config-site/Makefile.in0000644000707000001660000003366411444246315016760 0ustar miller86visit# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (c) 1994 - 2010, Lawrence Livermore National Security, LLC. # LLNL-CODE-425250. # All rights reserved. # # This file is part of Silo. For details, see silo.llnl.gov. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the disclaimer below. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the disclaimer (as noted # below) in the documentation and/or other materials provided with # the distribution. # * Neither the name of the LLNS/LLNL nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE # LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # This work was produced at Lawrence Livermore National Laboratory under # Contract No. DE-AC52-07NA27344 with the DOE. # # Neither the United States Government nor Lawrence Livermore National # Security, LLC nor any of their employees, makes any warranty, express # or implied, or assumes any liability or responsibility for the # accuracy, completeness, or usefulness of any information, apparatus, # product, or process disclosed, or represents that its use would not # infringe privately-owned rights. # # Any reference herein to any specific commercial products, process, or # services by trade name, trademark, manufacturer or otherwise does not # necessarily constitute or imply its endorsement, recommendation, or # favoring by the United States Government or Lawrence Livermore # National Security, LLC. The views and opinions of authors expressed # herein do not necessarily state or reflect those of the United States # Government or Lawrence Livermore National Security, LLC, and shall not # be used for advertising or product endorsement purposes. # VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = config-site DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BROWSER = @BROWSER@ BUNDLE_TARGET = @BUNDLE_TARGET@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CC_FULLPATH = @CC_FULLPATH@ CFLAGS = @CFLAGS@ CONFIG_CMD = @CONFIG_CMD@ CONFIG_DATE = @CONFIG_DATE@ CONFIG_USER = @CONFIG_USER@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CXX_FULLPATH = @CXX_FULLPATH@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FC_FULLPATH = @FC_FULLPATH@ FFLAGS = @FFLAGS@ FORTRAN = @FORTRAN@ FPZIP = @FPZIP@ GREP = @GREP@ HDF5_DRV = @HDF5_DRV@ HZIP = @HZIP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NETCDF = @NETCDF@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PDBP_DRV = @PDBP_DRV@ PDB_DRV = @PDB_DRV@ PRTDIAG = @PRTDIAG@ PYTHON = @PYTHON@ PYTHONMODULE = @PYTHONMODULE@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT_BIN = @QT_BIN@ QT_CORE = @QT_CORE@ QT_CORE_LIB = @QT_CORE_LIB@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_GUI = @QT_GUI@ QT_GUI_LIB = @QT_GUI_LIB@ QT_INCLUDE = @QT_INCLUDE@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_MOC = @QT_MOC@ RANLIB = @RANLIB@ READLINE_LIBS = @READLINE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SILEX = @SILEX@ SILO_DTYPPTR = @SILO_DTYPPTR@ SILO_DTYPPTR1 = @SILO_DTYPPTR1@ SILO_DTYPPTR2 = @SILO_DTYPPTR2@ SILO_VERS_MAJ = @SILO_VERS_MAJ@ SILO_VERS_MIN = @SILO_VERS_MIN@ SILO_VERS_PAT = @SILO_VERS_PAT@ SILO_VERS_PRE = @SILO_VERS_PRE@ SILO_VERS_TAG = @SILO_VERS_TAG@ STRIP = @STRIP@ TAURUS = @TAURUS@ VERSION = @VERSION@ ZLIB = @ZLIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = *.conf all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign config-site/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign config-site/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ dist-hook distclean distclean-generic distclean-libtool \ distdir dvi dvi-am html html-am info info-am install \ install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am # # By default, the dist-gzip target (as well as other distribution # targets) winds up creating copies of files that are really links # instead of preserving the links. I did not find any ways to control # the flags Automake uses to do the copy to, for example, ensure a # '-d' was included in the 'cp' command to preserve links. I learned # from reading AutoMake documentation that you can kinda-sorta do # what you want by making special code in the 'dist-hook' target. So, # we create that target here to ensure we wind up with a config-site # dir where the links between config-site files are preserved. The # code below is a based on code generated by Automake for the distdir # target, but modified to handle this case. # dist-hook: @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ for file in $$dist_files; do \ rm -f $(distdir)/$$file; \ cp -pd $(srcdir)/$$file $(distdir)/$$file ;\ done # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: silo-4.8-bsd/config-site/AIX.conf0000644000707000001660000000076011444246315016172 0ustar miller86visit## ## Site configuration for an IBM AIX system. Any special configuration that ## should be done on an AIX system should go in here. ## # If the user hasn't specified a C compile, use xlc if test "X$CC" = "X"; then CC="xlc" fi if test "X$CXX" = "X"; then CXX="xlC" fi if test "X$FC" = "X"; then FC="xlf" fi # Set up other configuration if test "X$CC" = "Xgcc"; then CPPFLAGS="-D_LARGE_FILE_API -D_ALL_SOURCE $CPPFLAGS" else CPPFLAGS="-D_LARGE_FILES -D_ALL_SOURCE $CPPFLAGS" fi silo-4.8-bsd/config-site/Darwin.conf0000644000707000001660000000126211444246315016773 0ustar miller86visit## ## ## Preprocessor flags ## ## Compiler and Loader flags ## if test -z "$CFLAGS"; then CFLAGS="-O3 -fexceptions" # Universal build case # CFLAGS="-O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \ # -arch ppc -arch i386" fi if test -z "$CXXFLAGS"; then CXXFLAGS="-O3 -fexceptions" # Universal build case # CXXFLAGS="-O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \ # -arch ppc -arch i386" fi if test -z "$LDFLAGS"; then LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names" # Universal build case # LDFLAGS="$LDFLAGS -L$HOME/mpich2/lib \ # -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk \ # -Wl,-headerpad_max_install_names \ # -Wl,-undefined,dynamic_lookup -arch ppc -arch i386" fi ## silo-4.8-bsd/config-site/HP-UX.conf0000644000707000001660000000052211444246315016406 0ustar miller86visit## ## Site configuration for an HP-UX system. Any special configuration that ## should be done on an HP-UX system should go in here. ## # If the user hasn't specified a C compiler, use c89. Also, set up some # CFLAGS. if test "X$CC" = "X"; then CC="cc" CFLAGS="$CFLAGS -Aa +u1 +z +e" CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE" fi silo-4.8-bsd/config-site/IRIX.conf0000644000707000001660000000063711444246315016327 0ustar miller86visit## ## Site configuration for a SGI IRIX system. Any special configuration that ## should be done on an IRIX system should go in here. ## ## Use sgi's compiler. ## if test -z "$CC"; then CC=cc fi if test -z "$CXX"; then CXX=CC fi ## ## Turn on full warnings unless the user specifies something else. ## if test -z "$CFLAGS"; then CFLAGS="-n32 -fullwarn" fi if test -z "$LDFLAGS"; then LDFLAGS=-n32 fi silo-4.8-bsd/config-site/IRIX64.conf0000644000707000001660000000064011444246315016473 0ustar miller86visit## ## Site configuration for a SGI IRIX64 system. Any special configuration that ## should be done on an IRIX64 system should go in here. ## ## Use sgi's compiler. ## if test -z "$CC"; then CC=cc fi if test -z "$CXX"; then CXX=CC fi ## ## Turn on full warnings unless the user specifies something else. ## if test -z "$CFLAGS"; then CFLAGS="-64 -fullwarn" fi if test -z "$LDFLAGS"; then LDFLAGS=-64 fi silo-4.8-bsd/config-site/Linux.conf0000644000707000001660000000051511444246315016646 0ustar miller86visit## ## Site configuration for an Linux system. Any special configuration that ## should be done on an Linux system should go in here. ## # Linux like to see the -fPIC flag if this Library ever links staticly # with a shared library if test -z "$CFLAGS"; then CFLAGS="-fPIC" fi if test -z "$CXXFLAGS"; then CXXFLAGS="-fPIC" fi silo-4.8-bsd/config-site/OSF1.conf0000644000707000001660000000047611444246315016265 0ustar miller86visit## ## Site configuration for a DEC OSF1 system. Any special configuration that ## should be done on an OSF1 system should go in here. ## ## If we're on an alpha, use a different C compiler. ## if test "`uname -p`"="alpha"; then if test "X$CC" = "X"; then CC="/usr/bin/cc" fi CFLAGS="-std1 $CFLAGS" fi silo-4.8-bsd/config-site/SunOS.conf0000644000707000001660000000046111444246315016556 0ustar miller86visit## ## Site configuration for an SunOS system. Any special configuration that ## should be done on an SunOS system should go in here. ## ## ## Over-ride the default C compilers. ## ##if test -z "$CC"; then ## CC=/opt/SUNWspro/bin/c89 ##fi ##if test -z "$CXX"; then ## CXX=/opt/SUNWspro/bin/CC ##fi silo-4.8-bsd/config-site/alderaan.conf0000777000707000001660000000000011444246315021123 2hoth.confustar miller86visitsilo-4.8-bsd/config-site/atlas0.conf0000777000707000001660000000000011444246315020526 2yana.confustar miller86visitsilo-4.8-bsd/config-site/atlas1088.conf0000777000707000001660000000000011444246315020767 2yana.confustar miller86visitsilo-4.8-bsd/config-site/atlas1120.conf0000777000707000001660000000000011444246315020752 2yana.confustar miller86visitsilo-4.8-bsd/config-site/atlas32.conf0000777000707000001660000000000011444246315020613 2yana.confustar miller86visitsilo-4.8-bsd/config-site/atlas512.conf0000777000707000001660000000000011444246315020676 2yana.confustar miller86visitsilo-4.8-bsd/config-site/atlas544.conf0000777000707000001660000000000011444246315020703 2yana.confustar miller86visitsilo-4.8-bsd/config-site/atlas576.conf0000777000707000001660000000000011444246315020710 2yana.confustar miller86visitsilo-4.8-bsd/config-site/atlas608.conf0000777000707000001660000000000011444246315020704 2yana.confustar miller86visitsilo-4.8-bsd/config-site/bgl1.conf0000777000707000001660000000000011444246315020170 2ubgl.confustar miller86visitsilo-4.8-bsd/config-site/bgl10.conf0000777000707000001660000000000011444246315020250 2ubgl.confustar miller86visitsilo-4.8-bsd/config-site/bgl11.conf0000777000707000001660000000000011444246315020251 2ubgl.confustar miller86visitsilo-4.8-bsd/config-site/bgl2.conf0000777000707000001660000000000011444246315020171 2ubgl.confustar miller86visitsilo-4.8-bsd/config-site/bgl3.conf0000777000707000001660000000000011444246315020172 2ubgl.confustar miller86visitsilo-4.8-bsd/config-site/bgl4.conf0000777000707000001660000000000011444246315020173 2ubgl.confustar miller86visitsilo-4.8-bsd/config-site/bgl5.conf0000777000707000001660000000000011444246315020174 2ubgl.confustar miller86visitsilo-4.8-bsd/config-site/bgl6.conf0000777000707000001660000000000011444246315020175 2ubgl.confustar miller86visitsilo-4.8-bsd/config-site/bgl7.conf0000777000707000001660000000000011444246315020176 2ubgl.confustar miller86visitsilo-4.8-bsd/config-site/bgl8.conf0000777000707000001660000000000011444246315020177 2ubgl.confustar miller86visitsilo-4.8-bsd/config-site/bgl9.conf0000777000707000001660000000000011444246315020200 2ubgl.confustar miller86visitsilo-4.8-bsd/config-site/cslic.conf0000777000707000001660000000000011444246315021126 2llnl_lc.confustar miller86visitsilo-4.8-bsd/config-site/cslic1.conf0000777000707000001660000000000011444246315020665 2cslic.confustar miller86visitsilo-4.8-bsd/config-site/cslic2.conf0000777000707000001660000000000011444246315020666 2cslic.confustar miller86visitsilo-4.8-bsd/config-site/cslic3.conf0000777000707000001660000000000011444246315020667 2cslic.confustar miller86visitsilo-4.8-bsd/config-site/cslic4.conf0000777000707000001660000000000011444246315020670 2cslic.confustar miller86visitsilo-4.8-bsd/config-site/cslic5.conf0000777000707000001660000000000011444246315020671 2cslic.confustar miller86visitsilo-4.8-bsd/config-site/delenn.conf0000644000707000001660000000225311444246315017015 0ustar miller86visit## ## Site configuration for B Division delenn Linux RedHat ## #if test -z "$DEFAULT_HEXZIP"; then # HEXZIP=YES #fi #if test -z "$DEFAULT_LOCAL"; then # DEFAULT_LOCAL=YES #fi if test -z "$DEFAULT_FORTRAN"; then DEFAULT_FORTRAN=YES fi if test -z "$F77"; then F77=g77 fi if test -z "$FC"; then FC=g77 fi if test -z "$DEFAULT_SZIP_LIBDIR"; then DEFAULT_SZIP_LIBDIR=/usr/gapps/silo/szip/2.1/i386-pc-linux-gcc-3.2.3/lib fi if test -z "$DEFAULT_HDF5_LIBDIR"; then DEFAULT_HDF5_LIBDIR=/usr/gapps/silo/hdf5/1.6.6/i386-pc-linux-gcc-3.2.3/lib fi if test -z "$DEFAULT_HDF5_INCLUDE"; then DEFAULT_HDF5_INCLUDE=/usr/gapps/silo/hdf5/1.6.6/i386-pc-linux-gcc-3.2.3/include fi if test -z "$QTDIR"; then QTDIR=/usr/gapps/silo/qt/3.3.8/i386-pc-linux-gcc-3.2.3 # QT_CXXFLAGS="-I/usr/gapps/silo/qt/3.3.8/i386-pc-linux-gcc-3.2.3/include -DQT_THREAD_SUPPORT" # QT_DIR=/usr/gapps/silo/qt/3.3.8/i386-pc-linux-gcc-3.2.3 # QT_LIBS="-L/usr/gapps/silo/qt/3.3.8/i386-pc-linux-gcc-3.2.3/lib -lqt-mt -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi" # QT_UIC=/usr/gapps/silo/qt/3.3.8/i386-pc-linux-gcc-3.2.3/bin/uic # QT_MOC=/usr/gapps/silo/qt/3.3.8/i386-pc-linux-gcc-3.2.3/bin/moc fi silo-4.8-bsd/config-site/eos.conf0000777000707000001660000000000011444246315020617 2llnl_lc.confustar miller86visitsilo-4.8-bsd/config-site/eos0.conf0000777000707000001660000000000011444246315020046 2eos.confustar miller86visitsilo-4.8-bsd/config-site/eos1.conf0000777000707000001660000000000011444246315020047 2eos.confustar miller86visitsilo-4.8-bsd/config-site/fc0.llnl.gov.conf0000644000707000001660000000030611444246315017747 0ustar miller86visit## ## Site configuration for LLNL's Frankencluster [fc0.llnl.gov] ## CFLAGS="-I/usr/lib/mpi/include $CFLAGS" LDFLAGS="-L/usr/lib/mpi/lib $LDFLAGS" MPI_LIBS="-lmpi -lelan -lelan3 -lots -lrmscall" silo-4.8-bsd/config-site/fhp.conf0000644000707000001660000000074211444246315016326 0ustar miller86visit## ## Site configuration file for fhp.llnl.gov where the X11 include files ## and libraries are in different directories than the Motif include ## files and libraries. ## if test "$x_includes" = NONE; then echo '--x-includes="/usr/include/X11R5 /usr/include/Motif1.2"' x_includes="/usr/include/X11R5 /usr/include/Motif1.2" fi if test "$x_libraries" = NONE; then echo '--x-libraries="/usr/lib/X11R5 /usr/lib/Motif1.2"' x_libraries="/usr/lib/X11R5 /usr/lib/Motif1.2" fi silo-4.8-bsd/config-site/hera.conf0000777000707000001660000000000011444246315020750 2llnl_lc.confustar miller86visitsilo-4.8-bsd/config-site/hera0.conf0000777000707000001660000000000011444246315020330 2hera.confustar miller86visitsilo-4.8-bsd/config-site/hera1.conf0000777000707000001660000000000011444246315020331 2hera.confustar miller86visitsilo-4.8-bsd/config-site/hera552.conf0000777000707000001660000000000011444246315020504 2hera.confustar miller86visitsilo-4.8-bsd/config-site/hera553.conf0000777000707000001660000000000011444246315020505 2hera.confustar miller86visitsilo-4.8-bsd/config-site/hera840.conf0000777000707000001660000000000011444246315020504 2hera.confustar miller86visitsilo-4.8-bsd/config-site/hera841.conf0000777000707000001660000000000011444246315020505 2hera.confustar miller86visitsilo-4.8-bsd/config-site/hoth.conf0000644000707000001660000000076011444246315016513 0ustar miller86visit## ## Site configuration for B Division hoth Linux RedHat ## if test -z "$QTDIR"; then QTDIR=/usr/gapps/visit/qt/4.4.3/linux_rhel3_gcc_3.2.3 fi if test -z "$DEFAULT_SZIP_LIBDIR"; then DEFAULT_SZIP_LIBDIR=/usr/gapps/silo/szip/2.1/i686_Linux_ELsmp/lib fi if test -z "$DEFAULT_HDF5_LIBDIR"; then DEFAULT_HDF5_LIBDIR=/usr/gapps/silo/hdf5/1.8.1/i686_Linux_ELsmp/lib fi if test -z "$DEFAULT_HDF5_INCLUDE"; then DEFAULT_HDF5_INCLUDE=/usr/gapps/silo/hdf5/1.8.1/i686_Linux_ELsmp/include fi silo-4.8-bsd/config-site/janus.conf0000644000707000001660000000045011444246315016665 0ustar miller86visit## ## Site configuration for Sandia's ASCI Red machine. This file contains ## the "common denominator" settings that can be used for both the ## scalar version on the service nodes and the stripped-down parallel ## version on the compute nodes. ## CFLAGS="-fast $CFLAGS" SETJMP_OVERRIDE="true" silo-4.8-bsd/config-site/kickit.conf0000644000707000001660000000045511444246315017030 0ustar miller86visit## ## Site configuration for kickit, an R10000 running IRIX 6.2. ## ## People are having problems compiling gcc for this configuration, so use cc ## instead. ## CC=cc ## ## Turn on full warnings unless the user specifies something else. ## if test -z "$CFLAGS"; then CFLAGS="-n32 -fullwarn -g" fi silo-4.8-bsd/config-site/llnl_lc.conf0000644000707000001660000000161511444246315017170 0ustar miller86visit## ## Site configuration for LLNL, LC Systems ## if test -z "$DEFAULT_FORTRAN"; then DEFAULT_FORTRAN=YES fi if test -z "$DEFAULT_SZIP_LIBDIR"; then DEFAULT_SZIP_LIBDIR=/usr/gapps/silo/szip/2.1/$SYS_TYPE/lib fi if test -z "$DEFAULT_HDF5_LIBDIR"; then DEFAULT_HDF5_LIBDIR=/usr/gapps/silo/hdf5/1.8.1/$SYS_TYPE/lib fi if test -z "$DEFAULT_HDF5_INCLUDE"; then DEFAULT_HDF5_INCLUDE=/usr/gapps/silo/hdf5/1.8.1/$SYS_TYPE/include fi if test -z "$QTDIR"; then if test "`echo $SYS_TYPE | cut -d'_' -f1`" = chaos; then if test -d /usr/gapps/visit/qt/4.4.3/chaos_4_x86_64_gcc_4.1.2; then QTDIR=/usr/gapps/visit/qt/4.4.3/chaos_4_x86_64_gcc_4.1.2 elif test -d /usr/gapps/visit/qt/4.4.3/chaos_4_x86_64_ib_gcc_4.1.2; then QTDIR=/usr/gapps/visit/qt/4.4.3/chaos_4_x86_64_ib_gcc_4.1.2 fi else QTDIR=/usr/gapps/visit/qt/4.4.3/aix_5_xlc_64 fi fi silo-4.8-bsd/config-site/localhost.conf0000777000707000001660000000000011444246315021647 2delenn.confustar miller86visitsilo-4.8-bsd/config-site/minos.conf0000777000707000001660000000000011444246315021156 2llnl_lc.confustar miller86visitsilo-4.8-bsd/config-site/minos0.conf0000777000707000001660000000000011444246315020744 2minos.confustar miller86visitsilo-4.8-bsd/config-site/minos32.conf0000777000707000001660000000000011444246315021031 2minos.confustar miller86visitsilo-4.8-bsd/config-site/minos512.conf0000777000707000001660000000000011444246315021114 2minos.confustar miller86visitsilo-4.8-bsd/config-site/minos544.conf0000777000707000001660000000000011444246315021121 2minos.confustar miller86visitsilo-4.8-bsd/config-site/minos576.conf0000777000707000001660000000000011444246315021126 2minos.confustar miller86visitsilo-4.8-bsd/config-site/minos608.conf0000777000707000001660000000000011444246315021122 2minos.confustar miller86visitsilo-4.8-bsd/config-site/naboo.conf0000777000707000001660000000000011444246315020452 2hoth.confustar miller86visitsilo-4.8-bsd/config-site/pcr.llnl.gov.conf0000644000707000001660000000037711444246315020073 0ustar miller86visit# Config-site file for emperor.llnl.gov and adelie.llnl.gov, # 88 and 126 node, dual-P4 1.7GHz linux clusters CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/mpi/include $CFLAGS" MPI_LIBS="-L/usr/lib/mpi/lib -lmpi -lelan -lelan3 -lrmscall" silo-4.8-bsd/config-site/prism1.conf0000777000707000001660000000000011444246315020555 2yana.confustar miller86visitsilo-4.8-bsd/config-site/prism2.conf0000777000707000001660000000000011444246315020556 2yana.confustar miller86visitsilo-4.8-bsd/config-site/purple.conf0000777000707000001660000000000011444246315021340 2llnl_lc.confustar miller86visitsilo-4.8-bsd/config-site/purple1441.conf0000777000707000001660000000000011444246315021542 2purple.confustar miller86visitsilo-4.8-bsd/config-site/purple1442.conf0000777000707000001660000000000011444246315021543 2purple.confustar miller86visitsilo-4.8-bsd/config-site/purple1443.conf0000777000707000001660000000000011444246315021544 2purple.confustar miller86visitsilo-4.8-bsd/config-site/purple1444.conf0000777000707000001660000000000011444246315021545 2purple.confustar miller86visitsilo-4.8-bsd/config-site/rhea.conf0000777000707000001660000000000011444246315020750 2llnl_lc.confustar miller86visitsilo-4.8-bsd/config-site/rhea0.conf0000777000707000001660000000000011444246315020330 2rhea.confustar miller86visitsilo-4.8-bsd/config-site/rhea32.conf0000777000707000001660000000000011444246315020415 2rhea.confustar miller86visitsilo-4.8-bsd/config-site/rhea512.conf0000777000707000001660000000000011444246315020500 2rhea.confustar miller86visitsilo-4.8-bsd/config-site/rhea544.conf0000777000707000001660000000000011444246315020505 2rhea.confustar miller86visitsilo-4.8-bsd/config-site/sasn100.conf0000644000707000001660000000045011444246315016732 0ustar miller86visit## ## Site configuration for Sandia's ASCI Red machine. This file contains ## the "common denominator" settings that can be used for both the ## scalar version on the service nodes and the stripped-down parallel ## version on the compute nodes. ## CFLAGS="-fast $CFLAGS" SETJMP_OVERRIDE="true" silo-4.8-bsd/config-site/sidious.conf0000644000707000001660000000124711444246315017231 0ustar miller86visit## ## Site configuration for B Division sidious Linux RedHat-Enterprise 5 ## if test -z "$QTDIR"; then QTDIR=/usr/gapps/visit/qt/4.4.3/linux-x86_64_gcc_4.1.2 fi if test -z "$DEFAULT_FORTRAN"; then DEFAULT_FORTRAN=YES fi if test -z "$F77"; then F77=g77 fi if test -z "$FC"; then FC=g77 fi if test -z "$DEFAULT_SZIP_LIBDIR"; then DEFAULT_SZIP_LIBDIR=/usr/gapps/silo/szip/2.1/x86_64-linux-el5-gcc-4.2.1/lib fi if test -z "$DEFAULT_HDF5_LIBDIR"; then DEFAULT_HDF5_LIBDIR=/usr/gapps/silo/hdf5/1.6.6/x86_64-linux-el5-gcc-4.2.1/lib fi if test -z "$DEFAULT_HDF5_INCLUDE"; then DEFAULT_HDF5_INCLUDE=/usr/gapps/silo/hdf5/1.6.6/x86_64-linux-el5-gcc-4.2.1/include fi silo-4.8-bsd/config-site/skywalker.conf0000777000707000001660000000000011444246315021370 2hoth.confustar miller86visitsilo-4.8-bsd/config-site/sphere.conf0000644000707000001660000000047211444246315017037 0ustar miller86visit## ## Site configuration for sphere, an R5000 running IRIX 6.3. ## ## People are having problems compiling gcc for this configuration, so use cc ## instead. ## CC=cc ## ## Turn on full warnings unless the user specifies something else. ## if test -z "$CFLAGS"; then CFLAGS="-fullwarn -g" fi enable_browser=no silo-4.8-bsd/config-site/sunburn.conf0000777000707000001660000000000011444246315021621 2sunspot.confustar miller86visitsilo-4.8-bsd/config-site/sunset.conf0000644000707000001660000000130711444246315017070 0ustar miller86visit## ## Site configuration for B Division sunset Sun Solaris 5 ## #if test -z "$DEFAULT_HEXZIP"; then # HEXZIP=YES #fi #if test -z "$DEFAULT_LOCAL"; then # DEFAULT_LOCAL=YES #fi if test -z "$DEFAULT_FORTRAN"; then DEFAULT_FORTRAN=YES fi if test -z "$DEFAULT_SZIP_LIBDIR"; then DEFAULT_SZIP_LIBDIR=/usr/gapps/silo/szip/2.1/sparc-sun-solaris-gcc-2.95/lib fi if test -z "$DEFAULT_HDF5_LIBDIR"; then DEFAULT_HDF5_LIBDIR=/usr/gapps/silo/hdf5/1.6.6/sparc-sun-solaris-gcc-2.95/lib fi if test -z "$DEFAULT_HDF5_INCLUDE"; then DEFAULT_HDF5_INCLUDE=/usr/gapps/silo/hdf5/1.6.6/sparc-sun-solaris-gcc-2.95/include fi if test -z "$QTDIR"; then QTDIR=/usr/gapps/silo/qt/3.3.8/sparc-sun-solaris-gcc-2.95 fi silo-4.8-bsd/config-site/sunspot.conf0000644000707000001660000000227711444246315017271 0ustar miller86visit## ## Site configuration for B Division sunspot Sun Solaris 5 ## #if test -z "$DEFAULT_HEXZIP"; then # HEXZIP=YES #fi #if test -z "$DEFAULT_LOCAL"; then # DEFAULT_LOCAL=YES #fi if test -z "$DEFAULT_FORTRAN"; then DEFAULT_FORTRAN=YES fi if test -z "$DEFAULT_SZIP_LIBDIR"; then DEFAULT_SZIP_LIBDIR=/usr/gapps/silo/szip/2.1/sparc-sun-solaris-gcc-2.95/lib fi if test -z "$DEFAULT_HDF5_LIBDIR"; then DEFAULT_HDF5_LIBDIR=/usr/gapps/silo/hdf5/1.6.6/sparc-sun-solaris-gcc-2.95/lib fi if test -z "$DEFAULT_HDF5_INCLUDE"; then DEFAULT_HDF5_INCLUDE=/usr/gapps/silo/hdf5/1.6.6/sparc-sun-solaris-gcc-2.95/include fi if test -z "$QTDIR"; then # QTDIR=/usr/gapps/silo/qt/3.3.8/sparc-sun-solaris-gcc-2.95 QT_CXXFLAGS="-I/usr/gapps/silo/qt/3.3.8/sparc-sun-solaris-gcc-2.95/include \ -DQT_THREAD_SUPPORT" QT_DIR=/usr/gapps/silo/qt/3.3.8/sparc-sun-solaris-gcc-2.95 QT_LIBS="-L/usr/gapps/silo/qt/3.3.8/sparc-sun-solaris-gcc-2.95/lib -lqt-mt \ -L/usr/openwin/lib -L/usr/openwin/lib -lGL -lXmu -lXext -lX11 -lresolv \ -lsocket -lnsl -lSM -lICE -ldl -lpthread -lrt" QT_UIC=/usr/gapps/silo/qt/3.3.8/sparc-sun-solaris-gcc-2.95/bin/uic QT_MOC=/usr/gapps/silo/qt/3.3.8/sparc-sun-solaris-gcc-2.95/bin/moc fi silo-4.8-bsd/config-site/t3d.conf0000644000707000001660000000053211444246315016240 0ustar miller86visit## ## Site configuration for cross compiling for a Cray T3D from its front end. ## ## Set up the targetting ($TARGET) to be "cray-t3d". That sets up cross ## compilation. Also set MPP_NPES to 1 to set the number of MPP nodes for ## an executable. This allows us to run the binaries without "mppexec" or ## "-npes". TARGET=cray-t3d MPP_NPES=1 silo-4.8-bsd/config-site/tc127.conf0000644000707000001660000000016411444246315016407 0ustar miller86visit## ## Site configuration for LLNL DEC TC (TeraCluster) ## MPI_LIBS="-lfmpi -lmpi -lelan -lelan3 -lrmscall -lmach" silo-4.8-bsd/config-site/tempest.conf0000777000707000001660000000000011444246315021512 2llnl_lc.confustar miller86visitsilo-4.8-bsd/config-site/tempest01.conf0000777000707000001660000000000011444246315021715 2tempest.confustar miller86visitsilo-4.8-bsd/config-site/tempest02.conf0000777000707000001660000000000011444246315021716 2tempest.confustar miller86visitsilo-4.8-bsd/config-site/tread.conf0000644000707000001660000000235611444246315016653 0ustar miller86visit## ## Site configuration for Intel Macintosh running Mac OS X 10.4 ## #if test -z "$DEFAULT_HEXZIP"; then # HEXZIP=YES #fi #if test -z "$DEFAULT_LOCAL"; then # DEFAULT_LOCAL=YES #fi if test -z "$DEFAULT_FORTRAN"; then DEFAULT_FORTRAN=NO fi if test -z "$F77"; then F77="" fi if test -z "$FC"; then FC="" fi if test -z "$DEFAULT_SZIP_LIBDIR"; then DEFAULT_SZIP_LIBDIR=/usr/gapps/silo/szip/2.1/i386-apple-darwin8-gcc-4.0.1/lib fi if test -z "$DEFAULT_HDF5_LIBDIR"; then DEFAULT_HDF5_LIBDIR=/usr/gapps/silo/hdf5/1.6.6/i386-apple-darwin8-gcc-4.0.1/lib fi if test -z "$DEFAULT_HDF5_INCLUDE"; then DEFAULT_HDF5_INCLUDE=/usr/gapps/silo/hdf5/1.6.6/i386-apple-darwin8-gcc-4.0.1/include fi if test -z "$QTDIR"; then # QTDIR=/usr/gapps/silo/qt/3.3.8/i386-apple-darwin8-gcc-4.0.1 QT_CXXFLAGS="-I/usr/gapps/silo/qt/3.3.8/i386-apple-darwin8-gcc-4.0.1/include -DQT_THREAD_SUPPORT" QT_DIR=/usr/gapps/silo/qt/3.3.8/i386-apple-darwin8-gcc-4.0.1 QT_LIBS="-L/usr/gapps/silo/qt/3.3.8/i386-apple-darwin8-gcc-4.0.1/lib -lqt-mt -framework Carbon -framework QuickTime -lz -framework OpenGL -framework AGL" QT_UIC=/usr/gapps/silo/qt/3.3.8/i386-apple-darwin8-gcc-4.0.1/bin/uic QT_MOC=/usr/gapps/silo/qt/3.3.8/i386-apple-darwin8-gcc-4.0.1/bin/moc fi silo-4.8-bsd/config-site/ubgl.conf0000777000707000001660000000000011444246315020762 2llnl_lc.confustar miller86visitsilo-4.8-bsd/config-site/um.conf0000777000707000001660000000000011444246315017465 2uv.confustar miller86visitsilo-4.8-bsd/config-site/um006.conf0000777000707000001660000000000011444246315017713 2uv.confustar miller86visitsilo-4.8-bsd/config-site/up.conf0000777000707000001660000000000011444246315020455 2llnl_lc.confustar miller86visitsilo-4.8-bsd/config-site/up038.conf0000777000707000001660000000000011444246315017715 2up.confustar miller86visitsilo-4.8-bsd/config-site/up039.conf0000777000707000001660000000000011444246315017716 2up.confustar miller86visitsilo-4.8-bsd/config-site/up041.conf0000777000707000001660000000000011444246315017707 2up.confustar miller86visitsilo-4.8-bsd/config-site/uv.conf0000777000707000001660000000000011444246315020463 2llnl_lc.confustar miller86visitsilo-4.8-bsd/config-site/uv006.conf0000777000707000001660000000000011444246315017724 2uv.confustar miller86visitsilo-4.8-bsd/config-site/vader.conf0000777000707000001660000000000011444246315020760 2delenn.confustar miller86visitsilo-4.8-bsd/config-site/x86_64.conf0000644000707000001660000000035611444246315016510 0ustar miller86visit## ## Site configuration for an Linux system. Any special configuration that ## should be done on an Linux system should go in here. ## if test -z "$CFLAGS"; then CFLAGS="-fPIC" fi if test -z "$CXXFLAGS"; then CXXFLAGS="-fPIC" fi silo-4.8-bsd/config-site/yana.conf0000777000707000001660000000000011444246315020761 2llnl_lc.confustar miller86visitsilo-4.8-bsd/config-site/yana1.conf0000777000707000001660000000000011444246315020353 2yana.confustar miller86visitsilo-4.8-bsd/config-site/yana2.conf0000777000707000001660000000000011444246315020354 2yana.confustar miller86visitsilo-4.8-bsd/config-site/yana3.conf0000777000707000001660000000000011444246315020355 2yana.confustar miller86visitsilo-4.8-bsd/config-site/yana4.conf0000777000707000001660000000000011444246315020356 2yana.confustar miller86visitsilo-4.8-bsd/config-site/zeus.conf0000777000707000001660000000000011444246315021017 2llnl_lc.confustar miller86visitsilo-4.8-bsd/config-site/zeus279.conf0000777000707000001660000000000011444246315021261 2llnl_lc.confustar miller86visitsilo-4.8-bsd/svn_bin/0002775000707000001660000000000011444246315014132 5ustar miller86visitsilo-4.8-bsd/svn_bin/Makefile.am0000644000707000001660000000602611444246315016166 0ustar miller86visit# Copyright (c) 1994 - 2010, Lawrence Livermore National Security, LLC. # LLNL-CODE-425250. # All rights reserved. # # This file is part of Silo. For details, see silo.llnl.gov. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the disclaimer below. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the disclaimer (as noted # below) in the documentation and/or other materials provided with # the distribution. # * Neither the name of the LLNS/LLNL nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE # LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # This work was produced at Lawrence Livermore National Laboratory under # Contract No. DE-AC52-07NA27344 with the DOE. # # Neither the United States Government nor Lawrence Livermore National # Security, LLC nor any of their employees, makes any warranty, express # or implied, or assumes any liability or responsibility for the # accuracy, completeness, or usefulness of any information, apparatus, # product, or process disclosed, or represents that its use would not # infringe privately-owned rights. # # Any reference herein to any specific commercial products, process, or # services by trade name, trademark, manufacturer or otherwise does not # necessarily constitute or imply its endorsement, recommendation, or # favoring by the United States Government or Lawrence Livermore # National Security, LLC. The views and opinions of authors expressed # herein do not necessarily state or reflect those of the United States # Government or Lawrence Livermore National Security, LLC, and shall not # be used for advertising or product endorsement purposes. # ## Procss this file with automake to create Makefile.in EXTRA_DIST = \ build-3rdparty-closed \ build-3rdparty-open \ regressiontest \ silo-release-closed \ silo-release-open \ get_sys_info \ winsilo-dist silo-4.8-bsd/svn_bin/Makefile.in0000644000707000001660000003136311444246315016201 0ustar miller86visit# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (c) 1994 - 2010, Lawrence Livermore National Security, LLC. # LLNL-CODE-425250. # All rights reserved. # # This file is part of Silo. For details, see silo.llnl.gov. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the disclaimer below. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the disclaimer (as noted # below) in the documentation and/or other materials provided with # the distribution. # * Neither the name of the LLNS/LLNL nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE # LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # This work was produced at Lawrence Livermore National Laboratory under # Contract No. DE-AC52-07NA27344 with the DOE. # # Neither the United States Government nor Lawrence Livermore National # Security, LLC nor any of their employees, makes any warranty, express # or implied, or assumes any liability or responsibility for the # accuracy, completeness, or usefulness of any information, apparatus, # product, or process disclosed, or represents that its use would not # infringe privately-owned rights. # # Any reference herein to any specific commercial products, process, or # services by trade name, trademark, manufacturer or otherwise does not # necessarily constitute or imply its endorsement, recommendation, or # favoring by the United States Government or Lawrence Livermore # National Security, LLC. The views and opinions of authors expressed # herein do not necessarily state or reflect those of the United States # Government or Lawrence Livermore National Security, LLC, and shall not # be used for advertising or product endorsement purposes. # VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = svn_bin DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BROWSER = @BROWSER@ BUNDLE_TARGET = @BUNDLE_TARGET@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CC_FULLPATH = @CC_FULLPATH@ CFLAGS = @CFLAGS@ CONFIG_CMD = @CONFIG_CMD@ CONFIG_DATE = @CONFIG_DATE@ CONFIG_USER = @CONFIG_USER@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CXX_FULLPATH = @CXX_FULLPATH@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FC_FULLPATH = @FC_FULLPATH@ FFLAGS = @FFLAGS@ FORTRAN = @FORTRAN@ FPZIP = @FPZIP@ GREP = @GREP@ HDF5_DRV = @HDF5_DRV@ HZIP = @HZIP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NETCDF = @NETCDF@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PDBP_DRV = @PDBP_DRV@ PDB_DRV = @PDB_DRV@ PRTDIAG = @PRTDIAG@ PYTHON = @PYTHON@ PYTHONMODULE = @PYTHONMODULE@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT_BIN = @QT_BIN@ QT_CORE = @QT_CORE@ QT_CORE_LIB = @QT_CORE_LIB@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_GUI = @QT_GUI@ QT_GUI_LIB = @QT_GUI_LIB@ QT_INCLUDE = @QT_INCLUDE@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_MOC = @QT_MOC@ RANLIB = @RANLIB@ READLINE_LIBS = @READLINE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SILEX = @SILEX@ SILO_DTYPPTR = @SILO_DTYPPTR@ SILO_DTYPPTR1 = @SILO_DTYPPTR1@ SILO_DTYPPTR2 = @SILO_DTYPPTR2@ SILO_VERS_MAJ = @SILO_VERS_MAJ@ SILO_VERS_MIN = @SILO_VERS_MIN@ SILO_VERS_PAT = @SILO_VERS_PAT@ SILO_VERS_PRE = @SILO_VERS_PRE@ SILO_VERS_TAG = @SILO_VERS_TAG@ STRIP = @STRIP@ TAURUS = @TAURUS@ VERSION = @VERSION@ ZLIB = @ZLIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = \ build-3rdparty-closed \ build-3rdparty-open \ regressiontest \ silo-release-closed \ silo-release-open \ get_sys_info \ winsilo-dist all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign svn_bin/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign svn_bin/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: silo-4.8-bsd/svn_bin/build-3rdparty-closed0000755000707000001660000003725711444246315020206 0ustar miller86visit#!/bin/sh ####################################################################### # # build-3rdparty-closed - Build and install 3rd party libraries. # # Author: Thomas Treadway # Date: Fri Nov 30 13:26:50 PST 2007 # # Usage: # build-3rdparty-closed # # This script will build and install szip-2.1 and hdf5-1.6.1 libraries. # To change or upgrade szip or hdf5 release: # 1) untar the szip/hdf5 distribution in /usr/gapps/silo/szip/src/ or # /usr/gapps/silo/hdf5/src/. This should be done on both the BDivision # and LC /usr/gapps directories. # 2) change the value of the variable SZIPRELEASE or HDF5RELEASE # to be the release number # 3) run ./build-3rdparty-closed in both the BDivision and then the LC # servers # # Modifications: # Thomas R. Treadway, Fri Dec 7 16:03:39 PST 2007 # Added hdfonly commnad option, will skip the szip build. # Added bservers and lcservers for B Division or LC server build. # ####################################################################### # TOPDIR="/usr/gapps/silo" SZIPRELEASE=2.1 HDF5RELEASE=1.6.6 QTRELEASE=3.3.8 lcun=$USER bdun=$USER bdhost="vader" skipszip="no" MAKE=gmake MAKEOPTS="" export TOPDIR MAKE MAKEOPTS SZIPRELEASE HDF5RELEASE QTRELEASE export lcun bdun bdhost skipszip usage() { printf "Usage: %s [-lc-username ] [-bdiv-username ] [-bdiv-host ] [hdf5only] [all|localhost|sunset|purple|uv|gauss|lilac|rhea|bgl]" $0 printf "\n" printf "Silo 3rd party library installing script. Assumes a tarball exist in\n" printf "/usr/gapps/silo/szip/src/szip-$SZIPRELEASE, and\n" printf "/usr/gapps/silo/hdf5/src/hdf5-$HDF5RELEASE.\n" printf "Log files are stored at ./ARCH.log\n" printf "You may want to run this script from the LC network.\n" } stdbuild() { ssh ${HOSTS} "/bin/sh" << EOF > ${ARCH}.log 2>&1 & $* umask 002 if [ "$skipszip" = "no" ] ; then mkdir $TOPDIR/szip/src/$ARCH cd $TOPDIR/szip/src/$ARCH $TOPDIR/szip/src/szip-$SZIPRELEASE/configure $CONFOPTS \ --prefix=$TOPDIR/szip/$SZIPRELEASE/$ARCH \ --disable-shared $MAKE $MAKEOPTS install chmod -R a+rX,ug+w $TOPDIR/szip/$SZIPRELEASE/$ARCH chgrp -R visit $TOPDIR/szip/$SZIPRELEASE/$ARCH cd $TOPDIR/szip/src rm -rf $TOPDIR/szip/src/$ARCH fi mkdir $TOPDIR/hdf5/src/$ARCH cd $TOPDIR/hdf5/src/$ARCH $TOPDIR/hdf5/src/hdf5-$HDF5RELEASE/configure $CONFOPTS \ --prefix=$TOPDIR/hdf5/$HDF5RELEASE/$ARCH \ --with-szlib=$TOPDIR/szip/$SZIPRELEASE/$ARCH \ --disable-shared if [ "$POSTCONFCMDS" != "" ]; then echo "prevent an empty if-clause" > /dev/null $POSTCONFCMDS fi $MAKE $MAKEOPTS -j 4 install chmod -R a+rX,ug+w $TOPDIR/hdf5/$HDF5RELEASE/$ARCH chgrp -R visit $TOPDIR/hdf5/$HDF5RELEASE/$ARCH cd $TOPDIR/hdf5/src rm -rf $TOPDIR/hdf5/src/$ARCH EOF } stdbuild_nobg() { ssh ${HOSTS} "/bin/sh" << EOF > ${ARCH}.log 2>&1 $* umask 002 if [ "$skipszip" = "no" ] ; then mkdir $TOPDIR/szip/src/$ARCH cd $TOPDIR/szip/src/$ARCH $TOPDIR/szip/src/szip-$SZIPRELEASE/configure $CONFOPTS \ --prefix=$TOPDIR/szip/$SZIPRELEASE/$ARCH \ --disable-shared $MAKE $MAKEOPTS install chmod -R a+rX,ug+w $TOPDIR/szip/$SZIPRELEASE/$ARCH chgrp -R visit $TOPDIR/szip/$SZIPRELEASE/$ARCH cd $TOPDIR/szip/src rm -rf $TOPDIR/szip/src/$ARCH fi mkdir $TOPDIR/hdf5/src/$ARCH cd $TOPDIR/hdf5/src/$ARCH $TOPDIR/hdf5/src/hdf5-$HDF5RELEASE/configure $CONFOPTS \ --prefix=$TOPDIR/hdf5/$HDF5RELEASE/$ARCH \ --with-szlib=$TOPDIR/szip/$SZIPRELEASE/$ARCH \ --disable-shared if [ "$POSTCONFCMDS" != "" ]; then echo "prevent an empty if-clause" > /dev/null $POSTCONFCMDS fi $MAKE $MAKEOPTS -j 4 install chmod -R a+rX,ug+w $TOPDIR/hdf5/$HDF5RELEASE/$ARCH chgrp -R visit $TOPDIR/hdf5/$HDF5RELEASE/$ARCH cd $TOPDIR/hdf5/src # rm -rf $TOPDIR/hdf5/src/$ARCH EOF } localhost() { localhostgcc localhostpgc localhosticc } localhostgcc() { HOSTS="$bdun@${bdhost}" ARCH="i386-pc-linux-gcc-3.2.3" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 CFLAGS=\"-fPIC -O2\" \ CXXFLAGS=\"-fPIC -O2\" FFLAGS=-Wno-globals F77FLAGS=-Wno-globals \ FCFLAGS=-Wno-globals" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/atria/bin:\ /usr/lib/jre/bin:/sbin:/usr/sbin:/opt/bin:/usr/local/apps/bin:\ /usr/security/bin" \ "LD_LIBRARY_PATH=/usr/lib:/lib" \ "export PATH LD_LIBRARY_PATH" } # localhostpgc() { HOSTS="$bdun@${bdhost}" ARCH="i386-pc-linux-pgc-6.2" CONFOPTS="CC=pgcc CXX=pgCC FC=\"pgf77 -g77libs\" \ CFLAGS=\"-fPIC -O2\" CXXFLAGS=\"-fPIC -O2\"" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/atria/bin:\ /sbin:/usr/sbin:/opt/bin:/usr/local/apps/bin:/usr/local/pgi/linux86/6.2/bin:\ /usr/security/bin" \ "LD_LIBRARY_PATH=/usr/lib:/lib:/usr/local/pgi/linux86/lib" \ "LM_LICENSE_FILE=/usr/local/flexlm/licenses/license.dat:\ 7128@helios.llnl.gov:7127@helios.llnl.gov" \ "export PATH LD_LIBRARY_PATH LM_LICENSE_FILE" } # localhosticc() { HOSTS="$bdun@${bdhost}" ARCH="i386-pc-linux-icc-8.1" CONFOPTS="CC=icc CXX=icc FC=ifort LDFLAGS=-lstdc++ \ CFLAGS=\"-fPIC -O2\" CXXFLAGS=\"-fPIC -O2\"" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/atria/bin:\ /usr/lib/jre/bin:/sbin:/usr/sbin:/opt/bin:/usr/local/apps/bin:\ /usr/local/pgi/linux86/6.0/bin:/usr/security/bin:\ /usr/local/intel/compiler81/bin" \ "LD_LIBRARY_PATH=/usr/lib:/lib:/usr/local/intel/compiler81/lib" \ "INTEL_LICENSE_FILE=7127@helios.llnl.gov" \ "LM_LICENSE_FILE=/usr/local/flexlm/licenses/license.dat:\ 7128@helios.llnl.gov:7127@helios.llnl.gov" \ "export PATH LD_LIBRARY_PATH INTEL_LICENSE_FILE LM_LICENSE_FILE" \ ". /usr/local/intel/compiler81/bin/iccvars.sh" } # sunset() { sunsetgcc sunsetcc } sunsetgcc() { HOSTS=$bdun@sunset ARCH="sparc-sun-solaris-gcc-2.95" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 \ FFLAGS=-Wno-globals F77FLAGS=-Wno-globals FCFLAGS=-Wno-globals" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/bin:/bin:/usr/local/apps/bin:/usr/local/bin:/usr/ccs/bin:\ /opt/SUNWspro/bin:/usr/ucb:/etc:/usr/openwin/bin:/usr/dt/bin:/usr/java/bin" \ "LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib" \ "export PATH LD_LIBRARY_PATH" } # sunsetcc() { HOSTS=$bdun@sunset ARCH="sparc-sun-solaris-cc-5.2" CONFOPTS="CC=c89 CXX=CC FC=f77 F77=f77" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/bin:/bin:/usr/local/apps/bin:/usr/local/bin:/usr/ccs/bin:\ /opt/SUNWspro/bin:/usr/ucb:/etc:/usr/openwin/bin:/usr/dt/bin:/usr/java/bin" \ "LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib" \ "export PATH LD_LIBRARY_PATH" } purple() { purple64 purple32 purple64gcc purple32gcc } purple64() { HOSTS=$lcun@purple ARCH="aix_5_64_fed" CONFOPTS="CC=xlc CXX=xlC FC=xlf F77=xlf \ CFLAGS=-q64 LDFLAGS=-q64 AR=\"ar -X64\"" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:\ /usr/local/gnu/bin:/usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=64" \ "export PATH OBJECT_MODE" } # purple32() { HOSTS=$lcun@purple ARCH="aix_5_ll" CONFOPTS="CC=xlc CXX=xlC FC=xlf F77=xlf \ CFLAGS=-q32 LDFLAGS=-q32 AR=\"ar -X32\"" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:\ /usr/local/gnu/bin:/usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=32" \ "export PATH OBJECT_MODE" } # purplegcc() { purplegcc32 purplegcc64 } purple64gcc() { HOSTS=$lcun@purple ARCH="aix_5_64_fed-gcc" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 \ CFLAGS=\"-maix64 -mminimal-toc\" LDFLAGS=-maix64 AR=\"ar -X64\"" MAKEOPTS="-i" export HOSTS ARCH CONFOPTS MAKEOPTS stdbuild \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:\ /usr/local/gnu/bin:/usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=64" \ "export PATH OBJECT_MODE" } # purple32gcc() { HOSTS=$lcun@purple ARCH="aix_5_ll-gcc" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 \ CFLAGS=\"-maix32 -mminimal-toc\" LDFLAGS=-maix32 AR=\"ar -X32\"" MAKEOPTS="-i" export HOSTS ARCH CONFOPTS MAKEOPTS stdbuild \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:\ /usr/local/gnu/bin:/usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=32" \ "export PATH OBJECT_MODE" } lilac() { lilacgcc lilacicc } lilacgcc() { HOSTS=$lcun@lilac ARCH=chaos_3_x86_elan3 CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" } # lilacicc() { HOSTS=$lcun@lilac ARCH=chaos_3_x86_elan3-icc CONFOPTS="CC=icc CXX=icc FC=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/intel/compiler100_025/bin:/usr/local/bin:/bin:\ /usr/bin:/usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "LD_LIBRARY_PATH=/usr/local/intel/compiler100_025/lib" \ "INTEL_LICENSE_FILE=${INTEL_LICENSE_FILE}:\ /usr/local/intel/compiler100_025/licenses:/opt/intel/licenses" \ "export PATH LD_LIBRARY_PATH INTEL_LICENSE_FILE" } # gauss() { gaussgcc gaussicc } gaussgcc() { HOSTS=$lcun@gauss ARCH=chaos_3_x86_64_ib-gcc CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" } # gaussicc() { HOSTS=$lcun@gauss ARCH=chaos_3_x86_64_ib-icc CONFOPTS="CC=icc CXX=icc FC=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/intel/compiler100_025/bin:/usr/local/bin:/bin:\ /usr/bin:/usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "LD_LIBRARY_PATH=/usr/local/intel/compiler100_025/lib" \ "INTEL_LICENSE_FILE=${INTEL_LICENSE_FILE}:\ /usr/local/intel/compiler100_025/licenses:/opt/intel/licenses" \ "export PATH LD_LIBRARY_PATH INTEL_LICENSE_FILE" } # rhea() { rheagcc rheaicc rheapc rheapgc } rheagcc() { HOSTS=$lcun@rhea ARCH=chaos_3_x86_64-gcc-3.4.4 CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 CFLAGS=-fPIC CXXFLAGS=-fPIC \ FFLAGS=-Wno-globals F77FLAGS=-Wno-globals FCFLAGS=-Wno-globals" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" } # rheaicc() { HOSTS=$lcun@rhea ARCH=chaos_3_x86_64-icc-10.0 CONFOPTS="CC=icc CXX=icc FC=ifort F77=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/intel/compiler100_025/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin:/usr/kerberos/bin" \ "LD_LIBRARY_PATH=/usr/local/intel/compiler100_025/lib" \ "INTEL_LICENSE_FILE=${INTEL_LICENSE_FILE}:\ /usr/local/intel/compiler100_025/licenses:/opt/intel/licenses" \ "export PATH LD_LIBRARY_PATH INTEL_LICENSE_FILE" } # rheapc() { HOSTS=$lcun@rhea ARCH=chaos_3_x86_64-pc-2.4 CONFOPTS="CC=pathcc CXX=pathCC FC=pathf90 F77=pathf90 \ CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/global/tools/RSI/bin:\ /usr/local/tools/pathscale/pathscale-2.4/bin2:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin:/usr/kerberos/bin" \ "LM_LICENSE_FILE=/usr/local/etc/license.client" \ "PATHSCALE_SUBSCRIPTION_DAEMON=license1ocf.llnl.gov" \ "export PATH LM_LICENSE_FILE PATHSCALE_SUBSCRIPTION_DAEMON" } # rheapgc() { HOSTS=$lcun@rhea ARCH=chaos_3_x86_64-pgc-6.2 CONFOPTS=" CC=pgcc CXX=pgCC FC=\"pgf77 -g77libs\" CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/global/tools/RSI/bin:\ /usr/local/tools/pgi6.23/linux86-64/6.2/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin:/usr/kerberos/bin" \ "LM_LICENSE_FILE=/usr/local/etc/license.client" \ "export PATH LM_LICENSE_FILE" } # bgl() { bglxlc bglblrts_xlc rm -rf $TOPDIR/hdf5/src/sles_9_ppc64* } bglxlc() { HOSTS=${lcun}@bgl ARCH=sles_9_ppc64-xlc CONFOPTS="CC=/opt/ibmcmp/vacpp/bg/8.0/bin/xlc FC=xlf \ CXX=/opt/ibmcmp/vacpp/bg/8.0/bin/xlC \ CFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ CXXFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" " export HOSTS ARCH CONFOPTS stdbuild_nobg \ "PATH=/opt/ibmcmp/vacpp/bg/8.0/bin:/opt/ibmcmp/xlf/bg/10.1/bin:/usr/local/bin:\ /bin:/usr/bin:/usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" cp $TOPDIR/hdf5/src/$ARCH/src/H5Tinit.c $TOPDIR/hdf5/src/. } bglblrts_xlc() { HOSTS=${lcun}@bgl ARCH=sles_9_ppc64-blrts_xlc POSTCONFCMDS="cp $TOPDIR/hdf5/src/H5Tinit.c $TOPDIR/hdf5/src/$ARCH/src/." CONFOPTS="CC=/opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlc FC=blrts_xlf \ CXX=/opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlC \ CFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ CXXFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ `grep ^ac_cv_sizeof $TOPDIR/hdf5/src/sles_9_ppc64-xlc/config.log | tr '\n' ' ' ` \ --disable-stream-vfd" export HOSTS ARCH CONFOPTS POSTCONFCMDS stdbuild_nobg \ "PATH=/opt/ibmcmp/vacpp/bg/8.0/bin:/opt/ibmcmp/xlf/bg/10.1/bin:/usr/local/bin:\ /bin:/usr/bin:/usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" } umask 002 if [ "$1" = "-lc-username" ] ; then lcun=$2 shift 2 fi if [ "$1" = "-bdiv-username" ] ; then bdun=$2 shift 2 fi if [ "$1" = "-bdiv-host" ] ; then bdhost=$2 shift 2 fi if [ $# -lt 1 ] ; then localhost sunset purple gauss lilac rhea bgl else while [ "$*" != "" ] do case $1 in bser*|-bser*) localhost sunset shift;; lcser*|-lcser*) purple uv gauss lilac rhea bgl shift;; hdf*|-hdf*) skipszip="yes" shift;; skip*|-skip*) skipszip="yes" shift;; all|-a*) localhost sunset purple gauss lilac rhea bgl shift;; local*pgc|-local*pgc) localhostpgc shift;; local*icc|-local*icc) localhosticc shift;; local*gcc|-local*gcc) localhostgcc shift;; localhost|-lo*) localhost shift;; sun*gcc|-sun*gcc) sunsetgcc shift;; sun*cc|-sun*cc) sunsetcc shift;; sun*|-sun*) sunset shift;; purple32|-pu*32) purple32 shift;; purple64|-pu*64) purple64 shift;; purple|-pu*) purple shift;; uv32|-uv*32) uv32 shift;; uv64|-uv*64) uv64 shift;; uv|-uv*) uv shift;; sccc|-sccc) sccc shift;; sc|-sc) sc shift;; gaus*icc|-gs*icc) gaussicc shift;; gaus*gcc|-gs*gcc) gaussgcc shift;; gaus*|-gs*) gauss shift;; rhea*icc|-rh*icc) rheaicc shift;; rhea*gcc|-rh*gcc) rheagcc shift;; rhea*|-rh*) rhea shift;; lil*|-li*) lilac shift;; slic*icc|-sl*icc) slicicc shift;; slic*gcc|-sl*gcc) slicgcc shift;; slic*|-sl*) slic shift;; bgltest|-bgltest) bgltest shift;; bgl|-bgl) bgl shift;; sh*|-sh*) shar shift;; *) shift;; esac done fi silo-4.8-bsd/svn_bin/build-3rdparty-open0000755000707000001660000004602011444246315017662 0ustar miller86visit#!/bin/bash ####################################################################### # # build-3rdparty-open - Build and install 3rd party libraries. # # Author: Thomas Treadway # Date: Wed Nov 28 16:35:50 PST 2007 # # Usage: # build-3rdparty-open # # This script will build and install szip-2.1 and hdf5-1.6.1 libraries. # To change or upgrade szip or hdf5 release: # 1) untar the szip/hdf5 distribution in /usr/gapps/silo/szip/src/ or # /usr/gapps/silo/hdf5/src/. This should be done on both the BDivision # and LC /usr/gapps directories. # 2) change the value of the variable SZIPRELEASE or HDF5RELEASE # to be the release number # 3) run ./build-3rdparty-open # # Modifications: # Thomas R. Treadway, Fri Dec 7 16:03:39 PST 2007 # Added hdfonly commnad option, will skip the szip build. # ####################################################################### # TOPDIR="/usr/gapps/silo" SZIPRELEASE=2.1 HDF5RELEASE=1.8.1 QTRELEASE=3.3.8 lcun=$USER skipszip="no" MAKE="gmake" MAKEOPTS="" export TOPDIR MAKE MAKEOPTS SZIPRELEASE HDF5RELEASE QTRELEASE lcun skipszip usage() { printf "Usage: %s [-lc-username ] [hdf5only] [all|hoth|up|yana|prism|thunder|pengra|quad|ubgl]" $0 printf "\n" printf "Silo 3rd party library installing script. Assumes a tarball exist in\n" printf "/usr/gapps/silo/szip/src/szip-$SZIPRELEASE, and\n" printf "/usr/gapps/silo/hdf5/src/hdf5-$HDF5RELEASE.\n" printf "Log files are stored at ./ARCH.log\n" printf "You may want to run this script from the LC network.\n" } # --disable-shared --with-default-api-version=v16 --enable-production stdbuild() { ssh ${HOSTS} "/bin/sh" << EOF > ${ARCH}.log 2>&1 & $* unalias cp unset noclobber umask 002 if [ "$skipszip" = "no" ] ; then mkdir $TOPDIR/szip/src/$ARCH cd $TOPDIR/szip/src/$ARCH $TOPDIR/szip/src/szip-$SZIPRELEASE/configure $CONFOPTS \ --prefix=$TOPDIR/szip/$SZIPRELEASE/$ARCH \ --disable-shared $MAKE $MAKEOPTS install chmod -R a+rX,ug+w $TOPDIR/szip/$SZIPRELEASE/$ARCH chgrp -R visit $TOPDIR/szip/$SZIPRELEASE/$ARCH cd $TOPDIR/szip/src rm -rf $TOPDIR/szip/src/$ARCH fi mkdir $TOPDIR/hdf5/src/$ARCH cd $TOPDIR/hdf5/src/$ARCH $TOPDIR/hdf5/src/hdf5-$HDF5RELEASE/configure $CONFOPTS \ --prefix=$TOPDIR/hdf5/$HDF5RELEASE/$ARCH \ --with-szlib=$TOPDIR/szip/$SZIPRELEASE/$ARCH \ --disable-shared --enable-production if [ "$POSTCONFCMDS" != "" ] ; then echo "prevent an empty if-clause" > /dev/null $POSTCONFCMDS fi $MAKE $MAKEOPTS -j 4 install chmod -R a+rX,ug+w $TOPDIR/hdf5/$HDF5RELEASE/$ARCH chgrp -R visit $TOPDIR/hdf5/$HDF5RELEASE/$ARCH cd $TOPDIR/hdf5/src # rm -rf $TOPDIR/hdf5/src/$ARCH EOF } stdbuild_nobg() { ssh ${HOSTS} "/bin/sh" << EOF > ${ARCH}.log 2>&1 $* unalias cp unset noclobber umask 002 if [ "$skipszip" = "no" ] ; then mkdir $TOPDIR/szip/src/$ARCH cd $TOPDIR/szip/src/$ARCH $TOPDIR/szip/src/szip-$SZIPRELEASE/configure $CONFOPTS \ --prefix=$TOPDIR/szip/$SZIPRELEASE/$ARCH \ --disable-shared $MAKE $MAKEOPTS install chmod -R a+rX,ug+w $TOPDIR/szip/$SZIPRELEASE/$ARCH chgrp -R visit $TOPDIR/szip/$SZIPRELEASE/$ARCH cd $TOPDIR/szip/src rm -rf $TOPDIR/szip/src/$ARCH fi mkdir $TOPDIR/hdf5/src/$ARCH cd $TOPDIR/hdf5/src/$ARCH $TOPDIR/hdf5/src/hdf5-$HDF5RELEASE/configure $CONFOPTS \ --prefix=$TOPDIR/hdf5/$HDF5RELEASE/$ARCH \ --with-szlib=$TOPDIR/szip/$SZIPRELEASE/$ARCH \ --disable-shared --enable-production if [ "$POSTCONFCMDS" != "" ] ; then echo "prevent an empty if-clause" > /dev/null $POSTCONFCMDS fi $MAKE $MAKEOPTS -j 4 install chmod -R a+rX,ug+w $TOPDIR/hdf5/$HDF5RELEASE/$ARCH chgrp -R visit $TOPDIR/hdf5/$HDF5RELEASE/$ARCH cd $TOPDIR/hdf5/src # rm -rf $TOPDIR/hdf5/src/$ARCH EOF } hoth() { hothgcc hothpgc hothicc } hothgcc() { HOSTS="hoth" ARCH="i686_Linux_ELsmp" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 CFLAGS=\"-fPIC -O2\" \ CXXFLAGS=\"-fPIC -O2\" FFLAGS=-Wno-globals F77FLAGS=-Wno-globals \ FCFLAGS=-Wno-globals" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/atria/bin:\ /usr/lib/jre/bin:/sbin:/usr/sbin:/opt/bin:/usr/local/apps/bin:\ /usr/security/bin" \ "LD_LIBRARY_PATH=/usr/lib:/lib" \ "export PATH LD_LIBRARY_PATH" } # hothpgc() { HOSTS="hoth" ARCH="i686_Linux_ELsmp_pgcc" CONFOPTS="CC=pgcc CXX=pgCC FC=\"pgf77 -g77libs\" \ CFLAGS=\"-fPIC -O2\" CXXFLAGS=\"-fPIC -O2\"" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/atria/bin:\ /sbin:/usr/sbin:/opt/bin:/usr/local/apps/bin:/usr/local/pgi/linux86/6.2/bin" \ "LM_LICENSE_FILE=/usr/local/flexlm/licenses/license.dat:\ 7496@genesse.llnl.gov:7127@corona.llnl.gov:28528@license1ocf.llnl.gov" \ "export PATH LM_LICENSE_FILE" } # hothicc() { HOSTS="hoth" ARCH="i686_Linux_ELsmp_icc" CONFOPTS="CC=icc CXX=icc FC=ifort LDFLAGS=-lstdc++ \ CFLAGS=\"-fPIC -O2\" CXXFLAGS=\"-fPIC -O2\"" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/atria/bin:/sbin:\ /usr/sbin:/opt/bin:/usr/local/apps/bin:/usr/local/intel/cc/current/bin:\ /usr/local/intel/fc/current/bin:/usr/local/intel/idb/current/bin" \ "LD_LIBRARY_PATH=/usr/lib:/lib:/usr/local/intel/cc/current/lib:\ /usr/local/intel/fc/current/lib" \ "INTEL_LICENSE_FILE=28528@license1ocf.llnl.gov" \ "LM_LICENSE_FILE=/usr/local/flexlm/licenses/license.dat:\ 7496@genesse.llnl.gov:7127@corona.llnl.gov:28528@license1ocf.llnl.gov" \ "export PATH INTEL_LICENSE_FILE LM_LICENSE_FILE LD_LIBRARY_PATH" \ ". /usr/local/intel/compiler90/bin/iccvars.sh" } # sunspot() { sunspotgcc sunspotcc } sunspotgcc() { HOSTS=sunspot ARCH="sparc_SunOS_57_gcc" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 \ FFLAGS=-Wno-globals F77FLAGS=-Wno-globals FCFLAGS=-Wno-globals" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/bin:/bin:/usr/local/apps/bin:/usr/local/bin:/usr/ccs/bin:\ /opt/SUNWspro/bin:/usr/ucb:/etc:/usr/openwin/bin:/usr/dt/bin:/usr/java/bin" \ "LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib" \ "export PATH LD_LIBRARY_PATH" } # sunspotcc() { HOSTS=sunspot ARCH="sparc_SunOS_57" CONFOPTS="CC=c89 CXX=CC FC=f77 F77=f77" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/bin:/bin:/usr/local/apps/bin:/usr/local/bin:/usr/ccs/bin:\ /opt/SUNWspro/bin:/usr/ucb:/etc:/usr/openwin/bin:/usr/dt/bin:/usr/java/bin" \ "LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib" \ "export PATH LD_LIBRARY_PATH" } sidious() { HOSTS="sidious" ARCH="x86_64_Linux_el5xen" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 CFLAGS=\"-fPIC -O2\" \ CXXFLAGS=\"-fPIC -O2\" FFLAGS=-Wno-globals F77FLAGS=-Wno-globals \ FCFLAGS=-Wno-globals" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/atria/bin:\ /usr/lib/jre/bin:/sbin:/usr/sbin:/opt/bin:/usr/local/apps/bin:\ /usr/security/bin" \ "LD_LIBRARY_PATH=/usr/lib:/lib" \ "export PATH LD_LIBRARY_PATH" } tread() { HOSTS="tread" ARCH="i386-apple-darwin8-gcc-4.0.1" CONFOPTS="CC=gcc CXX=g++ FC=\"\" F77=\"\"" MAKE=make export HOSTS ARCH CONFOPTS MAKE stdbuild \ "PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin" \ "export PATH" } up() { up64 up32 upgcc64 upgcc32 } up64() { HOSTS=${lcun}@up ARCH="aix_5_64_fed" CONFOPTS="CC=xlc CXX=xlC FC=xlf F77=xlf \ CFLAGS=-q64 LDFLAGS=-q64 AR=\"ar -X64\"" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:\ /usr/local/gnu/bin:/usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=64" \ "export PATH OBJECT_MODE" } # up32() { HOSTS=${lcun}@up ARCH="aix_5_ll" CONFOPTS="CC=xlc CXX=xlC FC=xlf F77=xlf \ CFLAGS=-q32 LDFLAGS=-q32 AR=\"ar -X32\"" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:\ /usr/local/gnu/bin:/usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=32" \ "export PATH OBJECT_MODE" } # upgcc64() { HOSTS=${lcun}@up ARCH="aix_5_64_fed_gcc" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 \ CFLAGS=-maix64 LDFLAGS=-maix64 AR=\"ar -X64\"" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:\ /usr/local/gnu/bin:/usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=64" \ "export PATH OBJECT_MODE" } # upgcc32() { HOSTS=${lcun}@up ARCH="aix_5_ll_gcc" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 \ CFLAGS=-maix32 LDFLAGS=-maix32 AR=\"ar -X32\"" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:\ /usr/local/gnu/bin:/usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=32" \ "export PATH OBJECT_MODE" } pengra() { pengragcc pengraicc } pengragcc() { HOSTS=${lcun}@pengra ARCH=chaos_3_x86_elan3 CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" } # pengraicc() { HOSTS=${lcun}@pengra ARCH=chaos_3_x86_elan3_icc CONFOPTS="CC=icc CXX=icc FC=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:\ /usr/bin:/usr/bin/X11:/usr/apps/bin:/usr/gapps/bin" \ "LD_LIBRARY_PATH=/usr/local/intel/compiler91/lib" \ "INTEL_LICENSE_FILE=${INTEL_LICENSE_FILE}:\ /usr/local/intel/compiler91/licenses:/opt/intel/licenses" \ "export PATH LD_LIBRARY_PATH INTEL_LICENSE_FILE" } # yana() { yanagcc yanaicc yanapc yanapgc } yanagcc() { HOSTS=${lcun}@yana ARCH=chaos_4_x86_64 CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 CFLAGS=-fPIC CXXFLAGS=-fPIC \ FFLAGS=-Wno-globals F77FLAGS=-Wno-globals FCFLAGS=-Wno-globals" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" } # yanaicc() { HOSTS=${lcun}@yana ARCH=chaos_4_x86_64_icc CONFOPTS="CC=icc CXX=icc FC=ifort F77=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin:/usr/kerberos/bin" \ "LD_LIBRARY_PATH=/usr/local/intel/compiler91/lib" \ "INTEL_LICENSE_FILE=/usr/local/intel/compiler91/licenses:\ /opt/intel/licenses" \ "export PATH LD_LIBRARY_PATH INTEL_LICENSE_FILE" } # yanapc() { HOSTS=${lcun}@yana ARCH=chaos_4_x86_64_pathcc CONFOPTS="CC=pathcc CXX=pathCC FC=pathf90 F77=pathf90 \ CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/global/tools/RSI/bin:\ /usr/local/tools/pathscale/pathscale-2.4/bin2:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin:/usr/kerberos/bin" \ "LM_LICENSE_FILE=/usr/local/etc/license.client" \ "PATHSCALE_SUBSCRIPTION_DAEMON=license1ocf.llnl.gov" \ "export PATH LM_LICENSE_FILE PATHSCALE_SUBSCRIPTION_DAEMON" } # yanapgc() { HOSTS=${lcun}@yana ARCH=chaos_3_x86_64_pgcc CONFOPTS=" CC=pgcc CXX=pgCC FC=\"pgf77 -g77libs\" CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/global/tools/RSI/bin:\ /usr/local/tools/pgi6.23/linux86-64/6.2/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin:/usr/kerberos/bin" \ "LM_LICENSE_FILE=/usr/local/etc/license.client" \ "export PATH LM_LICENSE_FILE" } # prism() { prismgcc prismicc prismpc prismpgc } prismgcc() { HOSTS=${lcun}@prism ARCH=chaos_4_x86_64_ib CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 CFLAGS=-fPIC CXXFLAGS=-fPIC \ FFLAGS=-Wno-globals F77FLAGS=-Wno-globals FCFLAGS=-Wno-globals" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" } # prismicc() { HOSTS=${lcun}@prism ARCH=chaos_4_x86_64_ib_icc CONFOPTS="CC=icc CXX=icc FC=ifort F77=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin:/usr/kerberos/bin" \ "LD_LIBRARY_PATH=/usr/local/intel/compiler91/lib" \ "INTEL_LICENSE_FILE=/usr/local/intel/compiler91/licenses:\ /opt/intel/licenses" \ "export PATH LD_LIBRARY_PATH INTEL_LICENSE_FILE" } # prismpc() { HOSTS=${lcun}@prism ARCH=chaos_4_x86_64_ib_pathcc CONFOPTS="CC=pathcc CXX=pathCC FC=pathf90 F77=pathf90 \ CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild } # prismpgc() { HOSTS=${lcun}@prism ARCH=chaos_4_x86_64_ib_pgcc CONFOPTS=" CC=pgcc CXX=pgCC FC=\"pgf77 -g77libs\" CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/global/tools/RSI/bin:\ /usr/local/tools/pgi6.23/linux86-64/6.2/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin:/usr/kerberos/bin" \ "LM_LICENSE_FILE=/usr/local/etc/license.client" \ "export PATH LM_LICENSE_FILE" } # thunder() { thundergcc thundericc } thundergcc() { HOSTS=${lcun}@thunder ARCH=chaos_3_ia64_elan4 CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" } # thundericc() { HOSTS=${lcun}@thunder ARCH=chaos_3_ia64_elan4_icc CONFOPTS="CC=icc CXX=icc FC=ifort F77=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "LD_LIBRARY_PATH=/usr/local/intel/compiler91/lib" \ "INTEL_LICENSE_FILE=/usr/local/intel/compiler91/licenses:\ /opt/intel/licenses" \ "export PATH LD_LIBRARY_PATH INTEL_LICENSE_FILE" } quad() { quad32 quad64 } quad32() { HOSTS=${lcun}@quad ARCH=irix_6.5_n32 CONFOPTS="LDFLAGS=-n32 CFLAGS=-n32 MAKE=$MAKE" export HOSTS ARCH CONFOPTS stdbuild \ "PATH=/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11:/usr/freeware/bin" \ "LD_LIBRARY_PATH=/usr/gapps/silo/qt/$QTRELEASE/irix_6.5-gcc-3.3/lib:\ $LD_LIBRARY_PATH" \ "PARALLEL=4" \ "export PATH LD_LIBRARY_PATH PARALLEL" } # quad64() { HOSTS=${lcun}@quad ARCH=irix_6.5_64 CONFOPTS="LDFLAGS=-64 CFLAGS=-64 MAKE=$MAKE" MAKEOPTS="-i" export HOSTS ARCH CONFOPTS MAKEOPTS stdbuild \ "PATH=/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11:/usr/freeware/bin" \ "PARALLEL=4" \ "export PATH PARALLEL" } ubgl() { ubglxlc ubglblrts_xlc rm -rf $TOPDIR/hdf5/src/sles_9_ppc64* } ubglxlc() { HOSTS=${lcun}@ubgl ARCH=sles_9_ppc64-xlc CONFOPTS="CC=/opt/ibmcmp/vacpp/bg/8.0/bin/xlc FC=xlf \ CFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ CXXFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" " export HOSTS ARCH CONFOPTS stdbuild_nobg \ "PATH=/opt/ibmcmp/vacpp/bg/8.0/bin:/opt/ibmcmp/xlf/bg/10.1/bin:/usr/local/bin:\ /bin:/usr/bin:/usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" if [ "`hostname`" = "ubgl" ] ; then cp -f $TOPDIR/hdf5/src/$ARCH/src/H5Tinit.c $TOPDIR/hdf5/src/. else ssh ${lcun}@ubgl "cp -f --reply=yes $TOPDIR/hdf5/src/$ARCH/src/H5Tinit.c $TOPDIR/hdf5/src/." fi } ubglblrts_xlc() { HOSTS=${lcun}@ubgl ARCH=sles_9_ppc64-blrts_xlc POSTCONFCMDS="cp -f --reply=yes $TOPDIR/hdf5/src/H5Tinit.c $TOPDIR/hdf5/src/$ARCH/src/." if [ "`hostname`" = "ubgl" ] ; then CONFOPTS="CC=/opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlc FC=blrts_xlf \ CFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ CXXFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ `grep ^ac_cv_sizeof $TOPDIR/hdf5/src/sles_9_ppc64-xlc/config.log | tr '\n' ' ' ` \ --disable-stream-vfd" else CONFOPTS="CC=/opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlc FC=blrts_xlf \ CFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ CXXFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ `ssh ${lcun}@ubgl \"grep ^ac_cv_sizeof $TOPDIR/hdf5/src/sles_9_ppc64-xlc/config.log | tr '\n' ' '\"` \ --disable-stream-vfd" fi export HOSTS ARCH CONFOPTS POSTCONFCMDS stdbuild_nobg \ "PATH=/opt/ibmcmp/vacpp/bg/8.0/bin:/opt/ibmcmp/xlf/bg/10.1/bin:/usr/local/bin:\ /bin:/usr/bin:/usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" } umask 002 if [ "$1" = "-lc-username" ] ; then lcun=$2 shift 2 fi # disable the 'automatic' mode of setting which hosts get built if false ; then hoth sidious up thunder pengra yana quad ubgl else while [ "$*" != "" ] do case $1 in hdf*|-hdf*) skipszip="yes" shift;; skip*|-skip*) skipszip="yes" shift;; all|-a*) hoth sidious up thunder pengra yana quad ubgl shift;; hothgcc|-hothgcc) hothgcc shift;; hothpgc|-hothpgc) hothpgc shift;; hothicc|-hothicc) hothicc shift;; hoth|-ho*) hoth shift;; sun*gcc|-sun*gcc) sunspotgcc shift;; sun*cc|-sun*cc) sunspotcc shift;; sun*|-sun*) sunspot shift;; sidious) sidious shift;; upgcc32|-up*gcc32) upgcc32 shift;; up32|-up*32) up32 shift;; upgcc64|-up*gcc64) upgcc64 shift;; up64|-up*64) up64 shift;; upgcc|-upgcc) upgcc shift;; up|-up*) up shift;; thun*icc|-th*icc) thundericc shift;; thun*gcc|-th*gcc) thundergcc shift;; thun*|-th*) thunder shift;; yana*pgc|-ya*pgc) yanapgc shift;; yana*pc|-ya*pc) yanapc shift;; yana*icc|-ya*icc) yanaicc shift;; yana*gcc|-ya*gcc) yanagcc shift;; yana*|-ya*) yana shift;; prism*pgc) prismpgc shift;; prism*pc) prismpc shift;; prism*icc) prismicc shift;; prism*gcc) prismgcc shift;; prism*) prism shift;; pen*icc|-pe*icc) pengraicc shift;; pen*gcc|-pe*gcc) pengragcc shift;; pen*|-pe*) pengra shift;; quad32|-quad32) quad32 shift;; quad64|-quad64) quad64 shift;; quad|-quad) quad shift;; ubgl|-ubgl) ubgl shift;; tread|-tread) tread shift;; sh*|-sh*) shar shift;; *) shift;; esac done fi silo-4.8-bsd/svn_bin/regressiontest0000755000707000001660000004465511444246315017152 0ustar miller86visit#!/bin/sh #-------------------------------------------------------------------------------- # # Purpose: Run nightly tests for silo, create HTML and post results to # VisIt's testing web pages # # This script does the following # * builds silo library in its vob # * runs silo's make check create a 'checklog' file # * installs silo library to publicly visible place # * builds VisIt with this silo library # * selects 10% of VisIt's tests, runs them creating its index.html file # * digests checklog, index.html, etc. to produce final html output # * copys final html output to ~visit and adds link at top level # # Programmer: Mark C. Miller # Created: August 21, 2006 # # Modifications: # # Mark C. Miller, Tue Aug 22 08:46:41 PDT 2006 # Fixed various issues with initial script development # # Mark C. Miller, Tue Aug 22 10:21:42 PDT 2006 # Added VisIt tests in both Silo/PDB and Silo/HDF5 # # Mark C. Miller, Wed Aug 23 08:50:08 PDT 2006 # Added PATH stuff # # Mark C. Miller, Thu Aug 24 13:54:00 PDT 2006 # Added error thresholds to runtest for VisIt's tests. Added code to # skipp tests if no changes # # Mark C. Miller, Thu Aug 31 15:50:10 PDT 2006 # Fixed problem including view-private files in checksum checks # # Mark C. Miller, Tue Sep 5 12:36:16 PDT 2006 # Redirected some command error output to /dev/null # # Mark C. Miller, Wed Feb 7 22:34:32 PST 2007 # Fixed build of visit's data so visit gets built before its data # Made it build visit with -J 3 (3 processors) # # Mark C. Miller, Thu Feb 8 08:23:39 PST 2007 # Added PATH=...;export PATH lines to just after each ct startview command # so that we get the right path each time we start a new view # changed min/max-error tolerances flags to runtest to pix/avg-diff to # confirm to new argument format. # # Mark C. Miller, Thu Feb 8 11:26:01 PST 2007 # Changed HTML output to include visit's html output dir. Fixed problems # with incorrect reporting of top-level pass/fail. # # Mark C. Miller, Thu Feb 8 16:13:18 PST 2007 # Added '-m silo,optimized' to VisIt's runtest # # Mark C. Miller, Fri Feb 9 08:33:36 PST 2007 # Added backslash chars to quotes surrounding href in code that inserts # a line into visit account's top-level index.html # # Mark C. Miller, Sat Feb 10 20:44:53 PST 2007 # Added code to populate visit account top-level public_html index file # even when we choose not to run Silo's tests due to lack of any changes # to sources. Made code to wait for an html dir to post to into its own # subroutine. # # Mark C. Miller, Mon Feb 12 09:42:02 PST 2007 # Sort list of VisIt tests by category # # Mark C. Miller, Tue Feb 13 09:07:23 PST 2007 # Added email log when deciding to re-run due to changes. Removed tarballs # from VisIt test runs after scp'ing them to visit acct. Added logic to # terminate waiting for current dir after 12 hours. # # Mark C. Miller, Wed Feb 14 08:39:43 PST 2007 # Fixed problem where md5sums were emailed and not differences in sums # # Mark C. Miller, Thu Feb 22 08:04:47 PST 2007 # Fixed problem correctly posting fact of skipped test due to no changes # # Mark C. Miller, Sat Feb 24 13:16:15 PST 2007 # Exclude files in 'lost+found' dir from checksum change testing # # Mark C. Miller, Tue Dec 4 07:12:44 PST 2007 # Modified to use temporary nersc test install in /gscratch #-------------------------------------------------------------------------------- umask 002 useMake=gmake parMake="-j 4" tmpRoot="/gscratch/silo_test" tmpInstall="$tmpRoot/silo" logrecipients="miller treadway" dateBase=`date +%Y-%m-%d` now=`date` PATH=/misc/gapps/mpich/1.2.4/Linux/serial/64/debug/bin:/home/visit/bin:/home/visit/clearcase_bin:/usr/atria/bin:/usr/security/bin:/sbin:/usr/sbin:/usr/bsd:/usr/local/bin:/usr/bin:/bin:/etc:/usr/bin/X11:/usr/local/X11:/usr/etc:/usr/lib:/usr/atria/bin:/usr/ccs/bin:/usr/SUNWspro/bin:. export PATH # # Check current error status and, if set, log the given error # ifErrorSendMessage args... # $1 # $2 # $3 # $4 # ifErrorSendMessage() { if test "$1" != "0" && test "$1" != ""; then rm -rf mailmsg cat > mailmsg << EOF From: silo@lists.llnl.gov Subject: $2 This is a message from Silo's automatic test run $2 EOF if test -n "$3"; then if test -e $3; then echo "##################################################" >> mailmsg cat $3 >> mailmsg echo "##################################################" >> mailmsg else echo "##################################################" >> mailmsg echo "$3" >> mailmsg echo "##################################################" >> mailmsg fi fi for user in $logrecipients; do /home/visit/bin/sendregressionmail $user mailmsg done if test -n "$4" && test $4 -eq 1; then arg1Len=`expr length "$1"` if test $arg1Len -lt 3; then exit $1 else exit 1 fi fi rm -f mailmsg fi } # # Function to search visit account's public_html dir and # find most recent posting of silo test results htmlCiteMostRecentSiloDir () { mruSiloDir=`ls -1tdF /home/visit/public_html/*/silo | grep -v @$ | head -n 1 | cut -d'/' -f5` mruSiloFailed=`grep Failed /home/visit/public_html/$mruSiloDir/silo/index.html` ssh visit@hoth -x "cd $todaysDir ; ln -s ../$mruSiloDir/silo ." if test "$mruSiloFailed" = ""; then ssh visit@hoth -x "/bin/sed -i \"10 i \siloSKIPPEDPASSED most recent run\" /home/visit/public_html/index.html" else ssh visit@hoth -x "/bin/sed -i \"10 i \siloSKIPPEDFAILED most recent run\" /home/visit/public_html/index.html" fi } # # Function to wait until visit account's public_html dir # has today's dir to post results to (generated by VisIt's # regression test tools) and return the name of that dir # waitForTodaysDir () { todaysDir=`ls -d /home/visit/public_html/${dateBase}* 2>/dev/null` theHour=`date +%k` theHour=`expr $theHour + 12` while test "$todaysDir" = ""; do sleep 600 todaysDir=`ls -d /home/visit/public_html/${dateBase}* 2>/dev/null` if test `date +%k` -gt $theHour; then ifErrorSendMessage 1 "Silo tests stopped waiting for today's dir" "" 1 fi done echo $todaysDir } # # # Start up the test view, cd there, remove old test install point # cleartool startview silo_VOBowner_test 1> /dev/null 2>&1 cd /view/silo_VOBowner_test/data_vobs/Silo # # First, see if we even need to run the tests # cleartool ls -recurse -view -short | grep -v md5sums_last.txt | xargs -n 1 rm -rf 2>/dev/null find . -type f \! -name "md5sums*.txt" -exec md5sum {} \; | grep -v .mvfs_ | grep -v 'lost+found' 1>md5sums_current.txt 2>&1 if test -e md5sums_last.txt; then if test "`diff md5sums_last.txt md5sums_current.txt`" = ""; then todaysDir=`waitForTodaysDir` todaysBase=`basename $todaysDir` htmlCiteMostRecentSiloDir ifErrorSendMessage 1 "Silo tests skipped. No changes since last run" "" 1 else diff md5sums_last.txt md5sums_current.txt 1>md5sums_diffs.txt 2>&1 chmod 660 md5sums_last.txt 1>/dev/null 2>&1 mv -f md5sums_current.txt md5sums_last.txt 1>/dev/null 2>&1 chmod 440 md5sums_last.txt 1>/dev/null 2>&1 ifErrorSendMessage 1 "Running silo tests. Changed files listed" md5sums_diffs.txt rm -f md5sums_diffs.txt fi else mv -f md5sums_current.txt md5sums_last.txt 1>/dev/null 2>&1 chmod 440 md5sums_last.txt 1>/dev/null 2>&1 fi # # Configure silo library and make clean # rm -rf $tmpRoot 1>/dev/null 2>&1 mkdir $tmpRoot 1>/dev/null 2>&1 chmod 775 $tmpRoot 1>/dev/null 2>&1 ./configure --prefix=$tmpInstall --with-hdf5=/usr/gapps/silo/hdf5/1.6.6/linux_rhel3-gcc-3.2.3/include,/usr/gapps/silo/hdf5/1.6.6/linux_rhel3-gcc-3.2.3/lib --with-szlib=/misc/gapps/silo/szip/2.1/linux_rhel3-gcc-3.2.3/include,/misc/gapps/silo/szip/2.1/linux_rhel3-gcc-3.2.3/lib 1>configlog --with-Qt-dir=/misc/gapps/silo/qt/3.3.8/i386-pc-linux-gcc-3.2.3 2>&1 $useMake clean 1>/dev/null 2>&1 uncleanedFiles=`find . -regex '.*\.o$' | grep -v -e '_pure_p9_c0_'` ifErrorSendMessage "$uncleanedFiles" "'make clean' missed some files" $uncleanedFiles 0 if test ! "$uncleanedFiles" = ""; then find . -regex '.*\.o$' -exec rm -f {} \; 1> /dev/null 2>&1 fi # # Make silo library # $useMake $parMake 1>> buildlog 2>&1 ifErrorSendMessage $? "Failed to build Silo library" buildlog 1 # # Run silo's tests # $useMake $parMake check 1>checklog 2>&1 ifErrorSendMessage $? "Failed to run Silo's tests" checklog 1 cp checklog $tmpRoot # # Ok, now build VisIt with this Silo # $useMake install 1>/dev/null 2>&1 cd /gscratch/miller/silo_visit_test/trunk/src PATH=/misc/gapps/mpich/1.2.4/Linux/serial/64/debug/bin:/home/visit/bin:/home/visit/clearcase_bin:/usr/atria/bin:/usr/security/bin:/sbin:/usr/sbin:/usr/bsd:/usr/local/bin:/usr/bin:/bin:/etc:/usr/bin/X11:/usr/local/X11:/usr/etc:/usr/lib:/usr/atria/bin:/usr/ccs/bin:/usr/SUNWspro/bin:. export PATH env CXXFLAGS=-g MAKE=gmake ./configure --with-silo_include=$tmpInstall/include --with-silo_library=$tmpInstall/lib --with-hdf5=/usr/gapps/silo/hdf5/1.6.6/linux_rhel3-gcc-3.2.3/include,/usr/gapps/silo/hdf5/1.6.6/linux_rhel3-gcc-3.2.3/lib --with-szip=/misc/gapps/silo/szip/2.1/linux_rhel3-gcc-3.2.3/include,/misc/gapps/silo/szip/2.1/linux_rhel3-gcc-3.2.3/lib --enable-parallel 1>configlog 2>&1 cat config.log >> configlog ifErrorSendMessage $? "Failed to configure VisIt" configlog 1 gmake -j 3 1>buildlog 2>&1 ifErrorSendMessage $? "Failed to build VisIt" buildlog 1 # short term fix for repo src tree changes sed -i -e 's|../src/exe/visitconvert_ser|../exe/visitconvert_ser|' data/Makefile sed -i -e 's|../src/bin/visitconvert|../bin/visitconvert|' data/Makefile cd data gmake clean 1>/dev/null 2>&1 gmake test 1>makedatalog 2>&1 ifErrorSendMessage $? "Failed to make VisIt's Silo/PDB data" makedatalog 1 cd ../test # short term fix for repo src tree changes sed -i -e 's|^exepath="../src/bin/visit"|exepath="../bin/visit"|' runtest sed -i -e 's|^# CLARGS: -cli -s ../src/bin/visitdiff.py \(.*\)|# CLARGS: -cli -s ../bin/visitdiff.py \1|' tests/databases/diff.py rm -f ~miller/.visit/linux-intel/plugins/databases/*.so # # Examine VisIt's test .py files and find "best" 10% to run # the "best" is determined by number of references to silo data files # rm -f datafiles.txt grep -e .silo tests/*/*.py | grep OpenDatabase | cut -d'"' -f2 | grep -v database | sort | uniq | xargs -n 1 basename >> datafiles.txt pyFiles=`ls -1 tests/*/*.py` pyidx=1 pyScores= for pfile in $pyFiles; do pyScores[$pyidx]=`grep -f datafiles.txt $pfile | sort | uniq | wc -l` pyidx=`expr $pyidx + 1` done rm -f scores.txt sorted_scores.txt pyidx=1 for pfile in $pyFiles; do echo "${pfile} ${pyScores[$pyidx]}" >> scores.txt pyidx=`expr $pyidx + 1` done cat scores.txt | sort -r -n -k 2 > sorted_scores.txt tenPercent=`expr $pyidx / 10` testsToRun=`head -n $tenPercent sorted_scores.txt | cut -d' ' -f1 | sort` rm -f datafiles.txt scores.txt sorted_scores.txt # # Run selected VisIt tests for both PDB and HDF5 data # Note: since its an optimized build, use non-zero error tolerances # Note: We also need to tell runtest this is an optimized run to # get the correct diffing behavior # ./runtest -m silo,optimized -notrackmem -q -pixdiff 10 -avgdiff 10 $testsToRun siloVisItPDBStatus=$? cp -R html html_pdb 1>/dev/null 2>&1 chgrp -R visit html_pdb 1>/dev/null 2>&1 chmod -R g+rwX html_pdb 1>/dev/null 2>&1 tar cf - html_pdb | gzip > $tmpRoot/html_pdb.tar.gz rm -rf html_pdb cd ../data rm -f makedatalog gmake testh5 1>makedatalog 2>&1 ifErrorSendMessage $? "Failed to make VisIt's Silo/HDF5data" makedatalog 1 cd ../test ./runtest -m hdf5,silo,optimized -notrackmem -q -pixdiff 10 -avgdiff 10 $testsToRun siloVisItHDF5Status=$? cp -R html html_hdf5 1>/dev/null 2>&1 chgrp -R visit html_hdf5 1>/dev/null 2>&1 chmod -R g+rwX html_hdf5 1>/dev/null 2>&1 tar cf - html_hdf5 | gzip > $tmpRoot/html_hdf5.tar.gz rm -rf html_hdf5 # # Back to silo vob # cd /view/silo_VOBowner_test/data_vobs/Silo PATH=/misc/gapps/mpich/1.2.4/Linux/serial/64/debug/bin:/home/visit/bin:/home/visit/clearcase_bin:/usr/atria/bin:/usr/security/bin:/sbin:/usr/sbin:/usr/bsd:/usr/local/bin:/usr/bin:/bin:/etc:/usr/bin/X11:/usr/local/X11:/usr/etc:/usr/lib:/usr/atria/bin:/usr/ccs/bin:/usr/SUNWspro/bin:. export PATH # # Construct HTML for results from silo library tests # siloHtmlFile="silo_index.html" rm -f $siloHtmlFile echo "Silo Library Results - $now" >> $siloHtmlFile echo "" >> $siloHtmlFile echo "

Results of Silo Library Tests - $now

" >> $siloHtmlFile echo "" >> $siloHtmlFile echo " " >> $siloHtmlFile echo " " >> $siloHtmlFile echo " " >> $siloHtmlFile echo " " >> $siloHtmlFile echo "" >> $siloHtmlFile testNames=`cat ${tmpRoot}/checklog| grep -e "^ *[0-9]*:" | cut -d':' -f2 | cut -d' ' -f1-10 | sed "s/ /%%/" | sed "s/ /~/g" | cut -d'%' -f1` testStats=`cat ${tmpRoot}/checklog| grep -e "^ *[0-9]*:" | cut -d':' -f2 | cut -d' ' -f11- | sed "s/ /~/g"` testidx=1 anyerror=0 for tname in $testNames; do theName=`echo $testNames | cut -d' ' -f$testidx | sed "s/~/ /g"` theStat=`echo $testStats | cut -d' ' -f$testidx | sed "s/~/ /g"` echo " " >> $siloHtmlFile echo " " >> $siloHtmlFile if test "`echo $theStat | grep ok`" != ""; then echo " " >> $siloHtmlFile else echo " " >> $siloHtmlFile anyerror=1 fi echo " " >> $siloHtmlFile testidx=`expr $testidx + 1` done echo "
Test CaseStatus
$theNameSucceededUnacceptable
" >> $siloHtmlFile echo "" >> $siloHtmlFile # # Construct top-level HTML file for this round of silo tests # topHtmlFile="index.html" rm -f $topHtmlFile echo "Silo Regression Results - $now" >> $topHtmlFile echo "" >> $topHtmlFile echo "

Results of Silo Regression Tests - $now

" >> $topHtmlFile echo "" >> $topHtmlFile echo " " >> $topHtmlFile echo " " >> $topHtmlFile echo " " >> $topHtmlFile echo " " >> $topHtmlFile echo "" >> $topHtmlFile echo " " >> $topHtmlFile echo " " >> $topHtmlFile if test $anyerror -ne 0; then echo " " >> $topHtmlFile else echo " " >> $topHtmlFile fi echo " " >> $topHtmlFile echo " " >> $topHtmlFile echo " " >> $topHtmlFile if test $siloVisItPDBStatus -ne 0; then echo " " >> $topHtmlFile else echo " " >> $topHtmlFile fi echo " " >> $topHtmlFile echo " " >> $topHtmlFile echo " " >> $topHtmlFile if test $siloVisItHDF5Status -ne 0; then echo " " >> $topHtmlFile else echo " " >> $topHtmlFile fi echo " " >> $topHtmlFile echo "
TestStatus
Silo LibraryFailedSucceeded
VisIt Tests on Silo/PDBFailedSucceeded
VisIt Tests on Silo/HDF5FailedSucceeded
" >> $topHtmlFile echo "" >> $topHtmlFile todaysDir=`waitForTodaysDir` todaysBase=`basename $todaysDir` # # Copy results to visit's public directory and update main index.html # ssh visit@hoth -x "mkdir $todaysDir/silo" scp $siloHtmlFile $topHtmlFile $tmpRoot/html_pdb.tar.gz $tmpRoot/html_hdf5.tar.gz visit@hoth:$todaysDir/silo/. ssh visit@hoth -x "cd $todaysDir/silo ; gunzip < html_pdb.tar.gz | tar xf - ; rm -f html_pdb.tar.gz" ssh visit@hoth -x "cd $todaysDir/silo ; gunzip < html_hdf5.tar.gz | tar xf - ; rm -f html_hdf5.tar.gz" # # Update visit account's top-level public html file # Note: 3 backslash chars ('\') needed before quotes surrounding # href so that VisIt's html generation code won't miss this # line that we're adding when it re-scans the file # if test $anyerror -eq 0 && test $siloVisItPDBStatus -eq 0 && test $siloVisItHDF5Status -eq 0; then ssh visit@hoth -x "/bin/sed -i \"10 i \siloPASSED$now\" /home/visit/public_html/index.html" ifErrorSendMessage 1 "Silo Passed nightly tests" "" 0 else ssh visit@hoth -x "/bin/sed -i \"10 i \siloFAILED$now\" /home/visit/public_html/index.html" ifErrorSendMessage 1 "Silo Failed nightly tests" "" 0 fi silo-4.8-bsd/svn_bin/silo-release-closed0000755000707000001660000013175411444246315017722 0ustar miller86visit#!/bin/bash ####################################################################### # # silo-release-closed - Build and install a tarball on the closed network. # # Author: Thomas Treadway # Date: Fri Dec 14 15:13:23 PST 2007 # # Usage: # silo-release-closed version [host-options] # # Modifications: # Thomas R. Treadway, Wed Oct 3 13:48:15 PDT 2007 # Removed gps, added up # Added build of silex, and included szip # # Thomas R. Treadway, Fri Nov 2 16:17:59 PDT 2007 # Tunning for release 4.6 # # Thomas R. Treadway, Wed Nov 14 12:54:37 PST 2007 # Corrected some of the pathc issues. # # Thomas R. Treadway, Thu Dec 27 14:06:40 PST 2007 # reformatted, added -final, -clean, all-lc, and all-bdiv options. # ####################################################################### # function usage() { printf "Usage: %s version [-lc-username ] [-check-install | -no-install | -final | -clean] [-bdiv-username ] [-bdiv-host ] [all|all-lc|all-bdiv|localhost|sunset|purple|uv|gauss|lilac|rhea|bgl]" $0 printf "\n" printf "Build options\n" printf " -- default, runs make install\n" printf -- "-check-install -- runs make check before make install\n" printf -- "-no-install -- runs make only no make install step\n" printf -- "-final {host} -- creates links to silo/current directory\n" printf " and other convenient symbolic links\n" printf -- "-clean {host} -- removes the build directories\n" printf "\n" printf "Host select options\n" printf "all -- tries to build on both BDiv, and LC host\n" printf "all-lc -- tries to build on LC host only\n" printf "all-bdiv -- tries to build on both BDiv host only\n" printf "{hostopt} -- host, host list or host option list, such as:\n" printf " localhost, localhostgcc, localhosticc, localhostpgc,\n" printf " sunset, sunsetcc, purple, purple32, purple64,\n" printf " purple32gcc, purple64gcc, gauss, gaussgcc, gaussicc,\n" printf " rhea, rheagcc, rheaicc, lilac, lilacgcc, lilacicc,\n" printf " all, all-lc, all-bd, etc.\n" printf "{host} -- host name or host name list, such as:\n" printf " localhost, sunset, purple, uv, gauss, lilac, rhea,\n" printf " all, all-lc, all-bd\n" printf "\n" printf "Silo release installing script. Assumes a tarball exist in\n" printf "current directory, named something like silo-\$1.tar.gz.\n" printf "This script will attempt to:\n" printf " 1) copy tarball to B Div's /usr/gapps/silo/$VERSION and\n" printf " LC's /usr/gapps/silo/$VERSION.\n" printf " 2) untar in /usr/gapps/silo/$VERSION/test.\n" printf " 3) start remote scripts on the target machines that\n" printf " perform a configure, make check, followed by a make install\n" printf " into directories /usr/gapps/silo/$VERSION/$ARCH.\n" printf "Log files are stored at ./ARCH.log\n" printf "You may want to run this script on both the LC and BDiv network.\n" printf "Typical usage:\n" printf "ssh lilac\n" printf "ftp fis\n" printf "cd FROM\n" printf "get silo-4.6.1.tar.gz\n" printf "quit\n" printf "tar zxf silo-4.6.1.tar.gz\n" printf "cp silo-4.6.1/clearcase_bin/silo-release-closed .\n" printf "./silo-release-closed 4.6.1 all-lc\n" printf "./silo-release-closed 4.6.1 final all-lc\n" printf "./silo-release-closed 4.6.1 clean all-lc\n" } function build() { ssh ${HOSTS} "/bin/bash" << EOF > ${ARCH}.log 2>&1 & $* umask 002 rm -rf $TOPDIR/$VERSION/test/$ARCH mkdir $TOPDIR/$VERSION/test/$ARCH cd $TOPDIR/$VERSION/test/$ARCH unsetenv QTDIR ../$TOPSRCDIR/configure \ --prefix=$TOPDIR/$VERSION/$ARCH \ --disable-browser --disable-silex --without-hdf5 --without-szlib $CONFOPTS $MAKE $MAKEOPTS if [ "$DOCHECK" = "yes" ] ; then $MAKE $MAKEOPTS check && $MAKE $MAKEOPTS install elif [ "$DOINSTALL" = "yes" ] ; then $MAKE $MAKEOPTS install fi $MAKE $MAKEOPTS clean chmod -R g+w $TOPDIR/$VERSION/$ARCH unsetenv QTDIR ../$TOPSRCDIR/configure \ --prefix=$TOPDIR/$VERSION/$ARCH $CONFOPTS $MAKE $MAKEOPTS if [ "$DOCHECK" = "yes" ] ; then $MAKE $MAKEOPTS check && $MAKE $MAKEOPTS install elif [ "$DOINSTALL" = "yes" ] ; then $MAKE $MAKEOPTS install fi chmod -R a+rX,ug+w $TOPDIR/$VERSION/test/$ARCH chgrp -R visit $TOPDIR/$VERSION/test/$ARCH chmod -R a+rX,ug+w $TOPDIR/$VERSION/$ARCH chgrp -R visit $TOPDIR/$VERSION/$ARCH EOF } function build2() { ssh ${HOSTS} "/bin/bash" << EOF > ${ARCH}.log 2>&1 & $* umask 002 rm -rf $TOPDIR/$VERSION/test/$ARCH mkdir $TOPDIR/$VERSION/test/$ARCH cd $TOPDIR/$VERSION/test/$ARCH unsetenv QTDIR ../$TOPSRCDIR/configure \ --prefix=$TOPDIR/$VERSION/$ARCH \ --disable-browser --disable-silex --without-hdf5 --without-szlib $CONFOPTS $MAKE $MAKEOPTS if [ "$DOCHECK" = "yes" ] ; then $MAKE $MAKEOPTS check && $MAKE $MAKEOPTS install elif [ "$DOINSTALL" = "yes" ] ; then $MAKE $MAKEOPTS install fi $MAKE $MAKEOPTS clean chmod -R g+w $TOPDIR/$VERSION/$ARCH unsetenv QTDIR ../$TOPSRCDIR/configure \ --prefix=$TOPDIR/$VERSION/$ARCH $CONFOPTS2 $MAKE $MAKEOPTS if [ "$DOCHECK" = "yes" ] ; then $MAKE $MAKEOPTS check && $MAKE $MAKEOPTS install elif [ "$DOINSTALL" = "yes" ] ; then $MAKE $MAKEOPTS install fi chmod -R a+rX,ug+w $TOPDIR/$VERSION/test/$ARCH chgrp -R visit $TOPDIR/$VERSION/test/$ARCH chmod -R a+rX,ug+w $TOPDIR/$VERSION/$ARCH chgrp -R visit $TOPDIR/$VERSION/$ARCH EOF } function localhost() { localhostgcc # localhostpgc - fails to find include file float.h during compile # localhosticc - fails to find libstdc++_shared during configure } function localhostfinal() { ssh ${bdun}@${bdhost} "/bin/bash" << EOF >> linux_rhel3-gcc-3.2.3.log 2>&1 umask 002 cd $TOPDIR/$VERSION/test/linux_rhel3-gcc-3.2.3 for FILE in $BININSTALLS do if [[ -e /misc/gapps/Linux/bin/\$FILE ]] ; then rm -f /misc/gapps/Linux/bin/\$FILE fi done PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/atria/bin:\ /usr/lib/jre/bin:/sbin:/usr/sbin:/opt/bin:/usr/local/apps/bin:/usr/security/bin LD_LIBRARY_PATH=/usr/lib:/lib export PATH LD_LIBRARY_PATH gmake bindir=/misc/gapps/Linux/bin install-exec for FILE in $BININSTALLS do chmod a+rX,ug+w /misc/gapps/Linux/bin/\$FILE chgrp visit /misc/gapps/Linux/bin/\$FILE done for ARCHDIR in "linux_rhel3-gcc-3.2.3" "linux_rhel3-pgc-4.0" \ "linux_rhel3-icc-8.1" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview ]] ; then rm -f $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview fi ln -s $TOPDIR/hdfview/linux/hdfview \ $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview done for ARCHDIR in "linux_rhel3-pgc-4.0" "linux_rhel3-icc-8.1" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin/silex ]] ; then rm -f $TOPDIR/$VERSION/\$ARCHDIR/bin/silex fi ln -s $TOPDIR/$VERSION/linux_rhel3-gcc-3.2.3/bin/silex \ $TOPDIR/$VERSION/\$ARCHDIR/bin/silex chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin/silex done EOF } function localhostclean() { ssh ${bdun}@${bdhost} "/bin/bash" << EOF >> linux_rhel3-gcc-3.2.3.log 2>&1 for ARCHDIR in "linux_rhel3-gcc-3.2.3" "linux_rhel3-pgc-4.0" \ "linux_rhel3-icc-8.1" do if [[ -d $TOPDIR/$VERSION/test/\$ARCHDIR ]] ; then rm -rf $TOPDIR/$VERSION/test/\$ARCHDIR fi done EOF } function localhostgcc() { HOSTS="${bdun}@${bdhost}" ARCH="linux_rhel3-gcc-3.2.3" CONFOPTS="FC=g77 F77=g77 \ FFLAGS=-Wno-globals F77FLAGS=-Wno-globals FCFLAGS=-Wno-globals LDFLAGS=-L/usr/X11R6/lib" export HOSTS ARCH CONFOPTS build \ "PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/atria/bin:\ /usr/lib/jre/bin:/sbin:/usr/sbin:/opt/bin:/usr/local/apps/bin:\ /usr/security/bin" \ "LD_LIBRARY_PATH=/usr/lib:/lib" \ "export PATH LD_LIBRARY_PATH" } function localhostpgc() { HOSTS="${bdun}@${bdhost}" ARCH="linux_rhel3-pgc-4.0" CONFOPTS="CC=pgcc CXX=pgCC FC=pgf77 --disable-silex" export HOSTS ARCH CONFOPTS build \ "PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/atria/bin:\ /sbin:/usr/sbin:/opt/bin:/usr/local/apps/bin:/usr/local/pgi/linux86/bin" \ "LD_LIBRARY_PATH=/usr/lib:/lib:/usr/local/pgi/linux86/lib" \ "LM_LICENSE_FILE=/usr/local/flexlm/licenses/license.dat:\ 7128@helios.llnl.gov:7127@helios.llnl.gov" \ "export PATH LD_LIBRARY_PATH LM_LICENSE_FILE" } function localhosticc() { HOSTS="${bdun}@${bdhost}" ARCH="linux_rhel3-icc-8.1" CONFOPTS="CC=icc CXX=icpc FC=ifort LDFLAGS=-lstdc++ --disable-silex" export HOSTS ARCH CONFOPTS build \ "PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/atria/bin:\ /usr/lib/jre/bin:/sbin:/usr/sbin:/opt/bin:/usr/local/apps/bin:\ /usr/local/pgi/linux86/6.0/bin:/usr/security/bin:\ /usr/local/intel/compiler81/bin" \ "LD_LIBRARY_PATH=/usr/lib:/lib:/usr/local/intel/compiler81/lib" \ "INTEL_LICENSE_FILE=7127@helios.llnl.gov" \ "LM_LICENSE_FILE=/usr/local/flexlm/licenses/license.dat:\ 7128@helios.llnl.gov:7127@helios.llnl.gov" \ "export PATH LD_LIBRARY_PATH INTEL_LICENSE_FILE LM_LICENSE_FILE" } function sunset() { sunsetgcc sunsetcc } function sunsetfinal() { ssh sunset "/bin/bash" << EOF >> sunos_57.log 2>&1 umask 002 cd $TOPDIR/$VERSION/test/sunos_57 for FILE in $BININSTALLS do if [[ -e /misc/gapps/SunOS/bin/\$FILE ]] ; then rm -f /misc/gapps/SunOS/bin/\$FILE fi done PATH=/usr/bin:/bin:/usr/local/apps/bin:/usr/local/bin:/usr/ccs/bin:\ /opt/SUNWspro/bin:/usr/ucb:/etc:/usr/openwin/bin:/usr/dt/bin:/usr/java/bin LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib export PATH LD_LIBRARY_PATH gmake bindir=/misc/gapps/SunOS/bin install-exec for FILE in $BININSTALLS do chmod a+rX,ug+w /misc/gapps/SunOS/bin/\$FILE chgrp visit /misc/gapps/SunOS/bin/\$FILE done ln -s $TOPDIR/$VERSION/sunos_57/bin/silex \ $TOPDIR/$VERSION/sunos_57-cc-5.2/bin/silex chgrp visit $TOPDIR/$VERSION/sunos_57-cc-5.2/bin/silex EOF } function sunsetclean() { ssh sunset "/bin/bash" << EOF >> sunos_57.log 2>&1 for ARCHDIR in "sunos_57" "sunos_57-cc-5.2" do rm -rf $TOPDIR/$VERSION/test/\$ARCHDIR done EOF } function sunsetgcc() { HOSTS="sunset" ARCH="sunos_57" CONFOPTS="FC=g77 F77=g77 \ FFLAGS=-Wno-globals F77FLAGS=-Wno-globals FCFLAGS=-Wno-globals" MAKE="make" export HOSTS ARCH CONFOPTS MAKE build \ "PATH=/usr/bin:/bin:/usr/local/apps/bin:/usr/local/bin:/usr/ccs/bin:\ /opt/SUNWspro/bin:/usr/ucb:/etc:/usr/openwin/bin:/usr/dt/bin:/usr/java/bin" \ "LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib" \ "export PATH LD_LIBRARY_PATH" } function sunsetcc() { HOSTS="sunset" ARCH="sunos_57-cc-5.2" CONFOPTS="FC=g77 F77=g77 \ FFLAGS=-Wno-globals F77FLAGS=-Wno-globals FCFLAGS=-Wno-globals" CONFOPTS2="CC=cc CXX=CC FC=f77 \ LDFLAGS=-L/usr/local/lib --disable-silex --without-readline \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/sparc-sun-solaris-cc-5.2 \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/sparc-sun-solaris-cc-5.2/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/sparc-sun-solaris-cc-5.2/lib" MAKE="make" export HOSTS ARCH CONFOPTS CONFOPTS2 MAKE build2 \ "PATH=/usr/bin:/bin:/usr/local/apps/bin:/usr/local/bin:/usr/ccs/bin:\ /opt/SUNWspro/bin:/usr/ucb:/etc:/usr/openwin/bin:/usr/dt/bin:/usr/java/bin" \ "LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib" \ "export PATH LD_LIBRARY_PATH" } function macosfinal() { ssh macos "/bin/bash" << EOF cd $TOPDIR/$VERSION/test/i386-apple-darwin8-gcc-4.0.1 PATH=/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin export PATH make bindir=/misc/gapps/Darwin/bin install-exec for FILE in $BININSTALLS do chmod a+rX,ug+w /misc/gapps/Darwin/bin/\$FILE chgrp visit /misc/gapps/Darwin/bin/\$FILE done ln -s $TOPDIR/hdfview/MacOSX-i386/hdfview/HDFView.app \ $TOPDIR/$VERSION/i386-apple-darwin8-gcc-4.0.1/bin/HDFView.app chgrp visit $TOPDIR/$VERSION/i386-apple-darwin8-gcc-4.0.1/bin/HDFView.app EOF } function macosclean() { ssh macos "/bin/bash" << EOF rm -rf $TOPDIR/$VERSION/test/i386-apple-darwin8-gcc-4.0.1 EOF } function macos() { HOSTS="macos" ARCH="i386-apple-darwin8-gcc-4.0.1" CONFOPTS="--enable-shared" MAKE="make" export HOSTS ARCH CONFOPTS MAKE build \ "PATH=/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin" \ "export PATH" } function purple() { # not using gcc # use gmake for parallel seems to hang # 32-bit and 64-bit compiles purple64 purple32 purplegcc } function purplefinal() { ssh ${lcun}@purple "/bin/bash" << EOF >> aix_5_64_fed.log 2>&1 umask 002 cd $TOPDIR/$VERSION/test/aix_5_64_fed for ARCHDIR in "aix_5_64" "aix_5_64_fed" "aix_5_ll" do for FILE in $BININSTALLS do if [[ -e /usr/gapps/bin/\$ARCHDIR/\$FILE ]] ; then rm -f /usr/gapps/bin/\$ARCHDIR/\$FILE fi done PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/local/gnu/bin:\ /usr/local/scripts:/usr/apps/bin:/usr/gapps/bin OBJECT_MODE=64 export PATH OBJECT_MODE gmake bindir=/usr/gapps/bin/\$ARCHDIR install-exec for FILE in $BININSTALLS do if [[ -e /usr/gapps/bin/\$ARCHDIR/\$FILE ]] ; then chmod a+rX,ug+w /usr/gapps/bin/\$ARCHDIR/\$FILE chgrp visit /usr/gapps/bin/\$ARCHDIR/\$FILE fi done done for ARCHDIR in "aix_5_ll" "aix_5_64_fed" "aix_5_ll-gcc" "aix_5_64_fed-gcc" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview ]] ; then rm -f $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview fi if [[ -d $TOPDIR/$VERSION/\$ARCHDIR/bin ]] ; then ln -s $TOPDIR/hdfview/AIX/hdfview \ $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview fi done for ARCHDIR in "aix_5_ll" "aix_5_ll-gcc" "aix_5_64_fed-gcc" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin/silex ]] ; then rm -f $TOPDIR/$VERSION/\$ARCHDIR/bin/silex fi if [[ -d $TOPDIR/$VERSION/\$ARCHDIR/bin ]] ; then ln -s $TOPDIR/$VERSION/aix_5_64_fed/bin/silex \ $TOPDIR/$VERSION/\$ARCHDIR/bin/silex chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin/silex fi done EOF } function purpleclean() { ssh ${lcun}@purple "/bin/bash" << EOF >> aix_5_64_fed.log 2>&1 for ARCHDIR in "aix_5_ll" "aix_5_64_fed" "aix_5_ll-gcc" "aix_5_64_fed-gcc" \ "linux_rhel3-icc-9.1" do if [[ -d $TOPDIR/$VERSION/test/\$ARCHDIR ]] ; then rm -rf $TOPDIR/$VERSION/test/\$ARCHDIR fi done EOF } function purple32() { HOSTS="${lcun}@purple" ARCH="aix_5_ll" CONFOPTS="CFLAGS=-q32 LDFLAGS=-q32 AR=\"ar -X32\" --disable-silex" CONFOPTS2="CFLAGS=-q32 LDFLAGS=-q32 AR=\"ar -X32\" --disable-silex \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/aix_5_ll \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/aix_5_ll/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/aix_5_ll/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/local/gnu/bin:\ /usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=32" \ "export PATH OBJECT_MODE" } function purple64() { HOSTS="${lcun}@purple" ARCH="aix_5_64_fed" CONFOPTS="CFLAGS=-q64 LDFLAGS=-q64 AR=\"ar -X64\"" CONFOPTS2="CFLAGS=-q64 LDFLAGS=-q64 AR=\"ar -X64\" --enable-silex \ --with-Qt-include-dir=/usr/gapps/silo/qt/3.3.8/aix_5_64_fed/include \ --with-Qt-bin-dir=/usr/gapps/silo/qt/3.3.8/aix_5_64_fed/bin \ --with-Qt-lib-dir=/usr/gapps/silo/qt/3.3.8/aix_5_64_fed/lib \ --with-Qt-lib=\"qt-mt -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lXt -lXi\"" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/local/gnu/bin:\ /usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=64" \ "export PATH OBJECT_MODE" } function purplegcc() { # use gmake for parallel seems to hang # 32-bit and 64-bit compiles purplegcc32 purplegcc64 } function purplegcc32() { HOSTS="${lcun}@purple" ARCH="aix_5_ll-gcc" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 \ CFLAGS=\"-maix32 -mminimal-toc\" CXXFLAGS=\"-maix32 -mminimal-toc\" \ LDFLAGS=-maix32 AR=\"ar -X32\"" CONFOPTS2="CC=gcc CXX=g++ FC=g77 F77=g77 \ CFLAGS=\"-maix32 -mminimal-toc\" CXXFLAGS=\"-maix32 -mminimal-toc\" \ LDFLAGS=-maix32 AR=\"ar -X32\" --disable-silex \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/aix_5_ll-gcc \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/aix_5_ll-gcc/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/aix_5_ll-gcc/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/local/gnu/bin:\ /usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=32" \ "export PATH OBJECT_MODE" } function purplegcc64() { HOSTS="${lcun}@purple" ARCH="aix_5_64_fed-gcc" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 \ CFLAGS=\"-maix64 -mminimal-toc\" CXXFLAGS=\"-maix64 -mminimal-toc\" \ LDFLAGS=-maix64 AR=\"ar -X64\" \ PYTHON_CPPFLAGS=-I/usr/apps/python64/include/python2.4" CONFOPTS2="CC=gcc CXX=g++ FC=g77 F77=g77 \ CFLAGS=\"-maix64 -mminimal-toc\" CXXFLAGS=\"-maix64 -mminimal-toc\" \ LDFLAGS=-maix64 AR=\"ar -X64\" --disable-silex \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/aix_5_64_fed-gcc \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/aix_5_64_fed-gcc/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/aix_5_64_fed-gcc/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/local/gnu/bin:\ /usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=64" \ "export PATH OBJECT_MODE" } function lilac() { lilacgcc lilacicc } function lilacfinal() { ssh ${lcun}@lilac "/bin/bash" << EOF >> chaos_3_x86_elan3.log 2>&1 umask 002 cd $TOPDIR/$VERSION/test/chaos_3_x86_elan3 for FILE in $BININSTALLS do if [[ -e /usr/gapps/bin/chaos_3_x86_elan3/\$FILE ]] ; then rm -f /usr/gapps/bin/chaos_3_x86_elan3/\$FILE fi done PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin export PATH gmake bindir=/usr/gapps/bin/chaos_3_x86_elan3 install-exec for FILE in $BININSTALLS do if [[ -e /usr/gapps/bin/chaos_3_x86_elan3/\$FILE ]] ; then chmod a+rX,ug+w /usr/gapps/bin/chaos_3_x86_elan3/\$FILE chgrp visit /usr/gapps/bin/chaos_3_x86_elan3/\$FILE fi done for ARCHDIR in "chaos_3_x86_elan3" "chaos_3_x86_elan3-icc" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview ]] ; then rm -f $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview fi if [[ -d $TOPDIR/$VERSION/\$ARCHDIR/bin ]] ; then ln -s $TOPDIR/hdfview/Linux/hdfview \ $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview fi done for ARCHDIR in "chaos_3_x86_elan3-icc" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin/silex ]] ; then rm -f $TOPDIR/$VERSION/\$ARCHDIR/bin/silex fi if [[ -d $TOPDIR/$VERSION/\$ARCHDIR/bin ]] ; then ln -s $TOPDIR/$VERSION/chaos_3_x86_elan3/bin/silex \ $TOPDIR/$VERSION/\$ARCHDIR/bin/silex chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin/silex fi done EOF } function lilacclean() { ssh ${lcun}@lilac "/bin/bash" << EOF >> chaos_3_x86_elan3.log 2>&1 for ARCHDIR in "chaos_3_x86_elan3" "chaos_3_x86_elan3-icc" do if [[ -d $TOPDIR/$VERSION/test/\$ARCHDIR ]] ; then rm -rf $TOPDIR/$VERSION/test/\$ARCHDIR fi done EOF } function lilacgcc() { HOSTS="${lcun}@lilac" ARCH="chaos_3_x86_elan3" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 CFLAGS=-fPIC CXXFLAGS=-fPIC \ FFLAGS=\"-fno-second-underscore -Wno-globals\" " export HOSTS ARCH CONFOPTS build \ "PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" } function lilacicc() { HOSTS="${lcun}@lilac" ARCH="chaos_3_x86_elan3-icc" CONFOPTS="CC=icc CXX=icc FC=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC" CONFOPTS2="CC=icc CXX=icc FC=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC --disable-silex \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/chaos_3_x86_elan3-icc \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/chaos_3_x86_elan3-icc/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/chaos_3_x86_elan3-icc/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/local/intel/compiler100_025/bin:/usr/local/bin:/bin:\ /usr/bin:/usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "LD_LIBRARY_PATH=/usr/local/intel/compiler100_025/lib" \ "INTEL_LICENSE_FILE=${INTEL_LICENSE_FILE}:\ /usr/local/intel/compiler100_025/licenses:/opt/intel/licenses" \ "export PATH LD_LIBRARY_PATH INTEL_LICENSE_FILE" } function gauss() { gaussgcc gaussicc } function gaussfinal() { ssh ${lcun}@gauss "/bin/bash" << EOF >> chaos_3_x86_64_ib-gcc.log 2>&1 umask 002 cd $TOPDIR/$VERSION/test/chaos_3_x86_64_ib-gcc # for FILE in $BININSTALLS # do if [[ -e /usr/gapps/bin/chaos_3_x86_elan3/\$FILE ]] ; then # rm -f /usr/gapps/bin/chaos_3_x86_elan3/\$FILE # fi # done # gmake bindir=/usr/gapps/bin/chaos_3_x86_elan3 install-exec # for FILE in $BININSTALLS # do chmod a+rX,ug+w /usr/gapps/bin/chaos_3_x86_elan3/\$FILE # chgrp visit /usr/gapps/bin/chaos_3_x86_elan3/\$FILE # done for ARCHDIR in "chaos_3_x86_64_ib-gcc" "chaos_3_x86_64_ib-icc" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview ]] ; then rm -f $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview fi ln -s $TOPDIR/hdfview/Linux64/hdfview \ $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview done # for ARCHDIR in "chaos_3_x86_64_ib-icc" # do # if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin/silex ]] ; then # rm -f $TOPDIR/$VERSION/\$ARCHDIR/bin/silex # fi # ln -s $TOPDIR/$VERSION/chaos_3_x86_64_ib-gcc/bin/silex \ # $TOPDIR/$VERSION/\$ARCHDIR/bin/silex # chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin/silex # done EOF } function gaussclean() { ssh ${lcun}@gauss "/bin/bash" << EOF >> chaos_3_x86_64_ib-gcc.log 2>&1 for ARCHDIR in "chaos_3_x86_64_ib-gcc" "chaos_3_x86_64_ib-icc" do if [[ -d $TOPDIR/$VERSION/test/\$ARCHDIR ]] ; then rm -rf $TOPDIR/$VERSION/test/\$ARCHDIR fi done EOF } function gaussgcc() { HOSTS="${lcun}@gauss" ARCH="chaos_3_x86_64_ib-gcc" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 CFLAGS=-fPIC CXXFLAGS=-fPIC \ FFLAGS=-Wno-globals F77FLAGS=-Wno-globals FCFLAGS=-Wno-globals" export HOSTS ARCH CONFOPTS build \ "PATH=/usr/local/bin:/bin:/usr/bin:/usr/bin/X11:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" } function gaussicc() { HOSTS="${lcun}@gauss" ARCH="chaos_3_x86_64_ib-icc" CONFOPTS="CC=icc CXX=icc FC=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC" CONFOPTS2="CC=icc CXX=icc FC=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC --enable-silex \ --with-Qt-dir=/usr/gapps/silo/qt/$QTRELEASE/$ARCH \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/$ARCH \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/local/intel/compiler100_025/bin:/usr/local/bin:/bin:\ /usr/bin:/usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "LD_LIBRARY_PATH=/usr/local/intel/compiler100_025/lib" \ "INTEL_LICENSE_FILE=${INTEL_LICENSE_FILE}:\ /usr/local/intel/compiler100_025/licenses:/opt/intel/licenses" \ "export PATH LD_LIBRARY_PATH INTEL_LICENSE_FILE" } function rhea() { rheagcc rheaicc # rheapgc # rheapsc } function rheafinal() { ssh ${lcun}@rhea "/bin/bash" << EOF >> chaos_3_x86_64 2>&1 umask 002 # cd $TOPDIR/$VERSION/test/chaos_3_x86_64 # gmake bindir=/usr/gapps/bin/chaos_3_x86_64 install-exec # gmake bindir=/usr/gapps/bin/chaos_3_x86_64_elan4 install-exec # gmake bindir=/usr/gapps/bin/chaos_3_x86_64_ib install-exec for ARCHDIR in "chaos_3_x86_64" "chaos_3_x86_64_elan4" "chaos_3_x86_64_ib" do for FILE in $BININSTALLS do if [[ -e /usr/gapps/bin/\$ARCHDIR/\$FILE ]] ; then rm -f /usr/gapps/bin/\$ARCHDIR/\$FILE fi if [[ -d /usr/gapps/bin/\$ARCHDIR ]] ; then ln -s $TOPDIR/$VERSION/chaos_3_x86_64/bin/\$FILE \ /usr/gapps/bin/\$ARCHDIR/\$FILE chmod a+rX,ug+w /usr/gapps/bin/\$ARCHDIR/\$FILE chgrp visit /usr/gapps/bin/\$ARCHDIR/\$FILE fi done if [[ -e /usr/gapps/bin/\$ARCHDIR/hdfview ]] ; then rm -f /usr/gapps/bin/\$ARCHDIR/hdfview fi if [[ -d /usr/gapps/bin/\$ARCHDIR ]] ; then ln -s $TOPDIR/hdfview/linux64amd/hdfview \ /usr/gapps/bin/\$ARCHDIR/hdfview chgrp visit /usr/gapps/bin/\$ARCHDIR/hdfview fi done for ARCHDIR in "chaos_3_x86_64" "chaos_3_x86_64-icc-10.0" \ "chaos_3_x86_64-pc-2.4" "chaos_3_x86_64-pgc-6.2" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview ]] ; then rm -f $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview fi if [[ -d $TOPDIR/$VERSION/\$ARCHDIR/bin ]] ; then ln -s $TOPDIR/hdfview/Linux64/hdfview \ $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview fi done for ARCHDIR in "chaos_3_x86_64-icc-10.0" "chaos_3_x86_64-pc-2.4" \ "chaos_3_x86_64-pgc-6.2" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin/silex ]] ; then rm -f $TOPDIR/$VERSION/\$ARCHDIR/bin/silex fi if [[ -d $TOPDIR/$VERSION/\$ARCHDIR/bin ]] ; then ln -s $TOPDIR/$VERSION/chaos_3_x86_64/bin/silex \ $TOPDIR/$VERSION/\$ARCHDIR/bin/silex chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin/silex fi done EOF } function rheaclean() { ssh ${lcun}@rhea "/bin/bash" << EOF >> chaos_3_x86_64 2>&1 for ARCHDIR in "chaos_3_x86_64" "chaos_3_x86_64-icc-10.0" \ "chaos_3_x86_64-pc-2.4" "chaos_3_x86_64-pgc-6.2" do rm -rf $TOPDIR/$VERSION/test/\$ARCHDIR done EOF } function rheagcc() { HOSTS="${lcun}@rhea" ARCH="chaos_3_x86_64" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 CFLAGS=-fPIC CXXFLAGS=-fPIC \ FFLAGS=-Wno-globals F77FLAGS=-Wno-globals FCFLAGS=-Wno-globals" export HOSTS ARCH CONFOPTS build \ "PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" } function rheaicc() { HOSTS="${lcun}@rhea" ARCH="chaos_3_x86_64-icc-10.0" CONFOPTS="CC=icc CXX=icc FC=ifort F77=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC" CONFOPTS2="CC=icc CXX=icc FC=ifort F77=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC --disable-silex \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/chaos_3_x86_64-icc-10.0 \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/chaos_3_x86_64-icc-10.0/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/chaos_3_x86_64-icc-10.0/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/local/intel/compiler100_025/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin:/usr/kerberos/bin" \ "LD_LIBRARY_PATH=/usr/local/intel/compiler100_025/lib" \ "INTEL_LICENSE_FILE=${INTEL_LICENSE_FILE}:\ /usr/local/intel/compiler100_025/licenses:/opt/intel/licenses" \ "export PATH LD_LIBRARY_PATH INTEL_LICENSE_FILE" } function rheapsc() { HOSTS="${lcun}@rhea" ARCH="chaos_3_x86_64-pc-2.4" CONFOPTS="CC=pathcc CXX=pathCC FC=pathf90 F77=pathf90 \ CFLAGS=-fPIC CXXFLAGS=-fPIC" CONFOPTS2="CC=pathcc CXX=pathCC FC=pathf90 F77=pathf90 \ CFLAGS=-fPIC CXXFLAGS=-fPIC --disable-silex \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/chaos_3_ia64-pc-2.4 \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/chaos_3_ia64-pc-2.4/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/chaos_3_ia64-pc-2.4/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/global/tools/RSI/bin:\ /usr/local/tools/pathscale/pathscale-2.4/bin2:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin:/usr/kerberos/bin" \ "LM_LICENSE_FILE=/usr/local/etc/license.client" \ "PATHSCALE_SUBSCRIPTION_DAEMON=license1ocf.llnl.gov" \ "export PATH LM_LICENSE_FILE PATHSCALE_SUBSCRIPTION_DAEMON" } function rheapgc() { HOSTS="${lcun}@rhea" ARCH="chaos_3_x86_64-pgc-6.2" CONFOPTS="CC=pgcc CXX=pgCC FC=\"pgf77 -g77libs\" \ CFLAGS=-fPIC CXXFLAGS=-fPIC" CONFOPTS2="CC=pgcc CXX=pgCC FC=\"pgf77 -g77libs\" \ CFLAGS=-fPIC CXXFLAGS=-fPIC --disable-silex --disable-silex \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/chaos_3_ia64-pgc-6.2 \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/chaos_3_ia64-pgc-6.2/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/chaos_3_ia64-pgc-6.2/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/global/tools/RSI/bin:\ /usr/local/tools/pgi6.23/linux86-64/6.2/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin:/usr/kerberos/bin" \ "LM_LICENSE_FILE=/usr/local/etc/license.client" \ "export PATH LM_LICENSE_FILE" } function thunder() { thundergcc thundericc } function thunderfinal() { ssh ${lcun}@thunder "/bin/bash" << EOF >> chaos_3_ia64-gcc-3.4.4.log 2>&1 umask 002 cd $TOPDIR/$VERSION/test/chaos_3_ia64-gcc-3.4.4 for ARCHDIR in "chaos_3_ia64" "chaos_3_ia64_elan4" do for FILE in $BININSTALLS do if [[ -e /usr/gapps/bin/\$ARCHDIR/\$FILE ]] ; then rm -f /usr/gapps/bin/\$ARCHDIR/\$FILE fi done PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin export PATH gmake bindir=/usr/gapps/bin/\$ARCHDIR install-exec for FILE in $BININSTALLS do chmod a+rX,ug+w /usr/gapps/bin/\$ARCHDIR/\$FILE chgrp visit /usr/gapps/bin/\$ARCHDIR/\$FILE done done # for ARCHDIR in "chaos_3_ia64-gcc-3.4.4" "chaos_3_ia64-icc" # do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview ]] ; then # rm -rf $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview # fi # ln -s $TOPDIR/hdfview/linuxia64/hdfview \ # $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview # chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview # done for ARCHDIR in "chaos_3_ia64-icc" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin/silex ]] ; then rm -f $TOPDIR/$VERSION/\$ARCHDIR/bin/silex fi ln -s $TOPDIR/$VERSION/chaos_3_ia64-gcc-3.4.4/bin/silex \ $TOPDIR/$VERSION/\$ARCHDIR/bin/silex chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin/silex done EOF } function thunderclean() { ssh ${lcun}@thunder "/bin/bash" << EOF >> chaos_3_ia64-gcc-3.4.4.log 2>&1 for ARCHDIR in "chaos_3_ia64-gcc-3.4.4" "chaos_3_ia64-icc" do if [[ -d $TOPDIR/$VERSION/test/\$ARCHDIR ]] ; then rm -rf $TOPDIR/$VERSION/test/\$ARCHDIR fi done EOF } function thundergcc() { HOSTS="${lcun}@thunder" ARCH="chaos_3_ia64-gcc-3.4.4" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 CFLAGS=-fPIC CXXFLAGS=-fPIC" export HOSTS ARCH CONFOPTS build \ "PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" } function thundericc() { HOSTS="${lcun}@thunder" ARCH="chaos_3_ia64-icc-10.0" CONFOPTS="CC=icc CXX=icc FC=ifort F77=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC" CONFOPTS2="CC=icc CXX=icc FC=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC --enable-silex \ --with-Qt-dir=/usr/gapps/silo/qt/$QTRELEASE/chaos_3_ia64-icc \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/chaos_3_ia64-icc-10.0 \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/chaos_3_ia64-icc-10.0/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/chaos_3_ia64-icc-10.0/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build \ "PATH=/usr/local/intel/compiler100_025/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "LD_LIBRARY_PATH=/usr/local/intel/compiler100_025/lib" \ "INTEL_LICENSE_FILE=${INTEL_LICENSE_FILE}:\ /usr/local/intel/compiler100_025/licenses:/opt/intel/licenses" \ "export PATH LD_LIBRARY_PATH INTEL_LICENSE_FILE" } function quad() { # not using gcc # IRIX make doesn't support VPATH # 32-bit and 64-bit compiles quad32 quad64 } function quadfinal() { ssh ${lcun}@quad "/bin/bash" << EOF >> irix_6.5_n32.log 2>&1 umask 002 cd $TOPDIR/$VERSION/test/irix_6.5_n32 for FILE in $BININSTALLS do if [[ -e /usr/gapps/bin/irix_6.5_64/\$FILE ]] ; then rm -f /usr/gapps/bin/irix_6.5_64/\$FILE fi done PATH=/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11:/usr/freeware/bin LD_LIBRARY_PATH=/usr/gapps/silo/qt/$QTRELEASE/irix_6.5-gcc-3.3/lib:\ $LD_LIBRARY_PATH PARALLEL=4 export PATH LD_LIBRARY_PATH PARALLEL gmake bindir=/usr/gapps/bin/irix_6.5_64 install-exec for FILE in $BININSTALLS do chmod a+rX,ug+w /usr/gapps/bin/irix_6.5_64/\$FILE chgrp visit /usr/gapps/bin/irix_6.5_64/\$FILE done for FILE in $BININSTALLS do ln -s $TOPDIR/$VERSION/irix_6.5_n32/bin/\$FILE \ $TOPDIR/$VERSION/irix_6.5_64/bin/\$FILE chmod a+rX,ug+w $TOPDIR/$VERSION/irix_6.5_64/bin/\$FILE chgrp visit $TOPDIR/$VERSION/irix_6.5_64/bin/\$FILE done EOF } function quadclean() { ssh ${lcun}@quad "/bin/bash" << EOF >> irix_6.5_n32.log 2>&1 for ARCHDIR in "irix_6.5_n32" "irix_6.5_64" do if [[ -d $TOPDIR/$VERSION/test/\$ARCHDIR ]] ; then rm -rf $TOPDIR/$VERSION/test/\$ARCHDIR fi done EOF } function quad32() { HOSTS="${lcun}@quad" ARCH="irix_6.5_n32" CONFOPTS="CC=\"cc -n32\" CXX=\"CC -n32\" FC=\"f77 -n32\" \ LDFLAGS=-n32 CFLAGS=\"-O2 -c99\" \ PYTHON_CPPFLAGS=-I/usr/freeware/include/python2.1" CONFOPTS2="CC=\"cc -n32\" CXX=\"CC -n32\" FC=\"f77 -n32\" \ LDFLAGS=-n32 CFLAGS=\"-O2 -c99\" --enable-silex \ --with-Qt-dir=/usr/gapps/silo/qt/$QTRELEASE/irix_6.5-gcc-3.3 \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/irix_6.5_n32 \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/irix_6.5_n32/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/irix_6.5_n32/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11:/usr/freeware/bin" \ "LD_LIBRARY_PATH=/usr/gapps/silo/qt/$QTRELEASE/irix_6.5-gcc-3.3/lib:\ $LD_LIBRARY_PATH" \ "PARALLEL=4" \ "export PATH LD_LIBRARY_PATH PARALLEL" } function quad64() { HOSTS="${lcun}@quad" ARCH="irix_6.5_64" CONFOPTS="CC=\"cc -64\" CXX=\"CC -64\" FC=\"f77 -64\" \ LDFLAGS=-64 CFLAGS=\"-O2 -c99\" \ PYTHON_CPPFLAGS=-I/usr/freeware/include/python2.1" CONFOPTS2="CC=\"cc -64\" CXX=\"CC -64\" FC=\"f77 -64\" \ LDFLAGS=-64 CFLAGS=\"-O2 -c99\" \ PYTHON_CPPFLAGS=-I/usr/freeware/include/python2.1 \ --disable-silex --disable-browser \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/irix_6.5_n32 \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/irix_6.5_n32/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/irix_6.5_n32/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/sbin:/usr/bsd:/sbin:/usr/bin:/usr/bin/X11:/usr/freeware/bin" \ "PARALLEL=4" \ "export PATH PARALLEL" } function bgl() { HOSTS="${lcun}@bgl" ARCH="sles_9_ppc64-blrts_xlc" CONFOPTS="CC=/opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlc FC=blrts_xlf \ CXX=/opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlC \ ac_cv_type_off64_t=yes ac_cv_sizeof_off64_t=8 \ CFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ CXXFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" " CONFOPTS2="CC=/opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlc FC=blrts_xlf \ CXX=/opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlC \ ac_cv_type_off64_t=yes ac_cv_sizeof_off64_t=8 \ CFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ CXXFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ --disable-silex --disable-browser --without-readline \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/$ARCH \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/opt/ibmcmp/vacpp/bg/8.0/bin:/opt/ibmcmp/xlf/bg/10.1/bin:/usr/local/bin:\ /bin:/usr/bin:/usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" ARCH="sles_9_ppc64-xlc" CONFOPTS="CC=/opt/ibmcmp/vacpp/bg/8.0/bin/xlc FC=xlf \ CXX=/opt/ibmcmp/vacpp/bg/8.0/bin/xlC \ ac_cv_type_off64_t=yes ac_cv_sizeof_off64_t=8 \ CFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ CXXFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" " CONFOPTS2="CC=/opt/ibmcmp/vacpp/bg/8.0/bin/xlc FC=xlf \ CXX=/opt/ibmcmp/vacpp/bg/8.0/bin/xlC \ ac_cv_type_off64_t=yes ac_cv_sizeof_off64_t=8 \ CFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ CXXFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ --enable-silex --with-Qt-dir=/usr/local/tools/qt/3.3.2-g++ \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/$ARCH \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/opt/ibmcmp/vacpp/bg/8.0/bin:/opt/ibmcmp/xlf/bg/10.1/bin:/usr/local/bin:\ /bin:/usr/bin:/usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" } TOPDIR="/usr/gapps/silo" SZIPRELEASE=2.1 HDF5RELEASE=1.6.6 QTRELEASE=3.3.8 lcun=$USER bdun=$USER bdhost="vader" BININSTALLS="browser silex silock silodiff" declare -i i declare -af list MAKE="gmake" #MAKEOPTS="-s LIBTOOLFLAGS=--silent" # low noise MAKEOPTS="-j 4" DOINSTALL="yes" DOCHECK="no" DOFINAL="no" DOCLEAN="no" DOBDIV="no" DOLC="no" if (( $# < 1 )) ; then usage exit 2 fi umask 002 VERSION=$1 shift TARFILE="silo-$VERSION.tar.gz" TOPSRCDIR="silo-$VERSION" if (( $# < 1 )) ; then list=("localhost" "sunset" "purple" "gauss" "lilac" "rhea" "bgl") DOBDIV="yes";DOLC="yes" else i=0 while [[ "$*" != "" ]] do case $1 in all-lc*|-all-lc*|lc-in*|-lc-in*) list[i]="purple" ; i=i+1 list[i]="gauss" ; i=i+1 list[i]="lilac" ; i=i+1 list[i]="rhea" ; i=i+1 list[i]="bgl" ; i=i+1 DOLC="yes" shift;; all-bd*|-all-bd*|bd-in*|-bd-in*) list[i]="localhost" ; i=i+1 list[i]="sunset" ; i=i+1 DOBDIV="yes" shift;; all|-a*) list[i]="localhost" ; i=i+1 list[i]="sunset" ; i=i+1 list[i]="purple" ; i=i+1 list[i]="gauss" ; i=i+1 list[i]="lilac" ; i=i+1 list[i]="rhea" ; i=i+1 list[i]="bgl" ; i=i+1 DOBDIV="yes";DOLC="yes" shift;; local*pgc|-local*pgc) list[i]="localhostpgc" ; i=i+1 DOBDIV="yes" shift;; local*icc|-local*icc) list[i]="localhosticc" ; i=i+1 DOBDIV="yes" shift;; local*gcc|-local*gcc) list[i]="localhostgcc" ; i=i+1 DOBDIV="yes" shift;; localhost|-lo*) list[i]="localhost" ; i=i+1 DOBDIV="yes" shift;; sun*gcc|-sun*gcc) list[i]="sunsetgcc" ; i=i+1 DOBDIV="yes" shift;; sun*cc|-sun*cc) list[i]="sunsetcc" ; i=i+1 DOBDIV="yes" shift;; sun*|-sun*) list[i]="sunset" ; i=i+1 DOBDIV="yes" shift;; purplegcc32|-purple*gcc32) list[i]="purplegcc32" ; i=i+1 DOLC="yes" shift;; purple32|-purple*32) list[i]="purple32" ; i=i+1 DOLC="yes" shift;; purplegcc64|-purple*gcc64) list[i]="purplegcc64" ; i=i+1 DOLC="yes" shift;; purple64|-purple*64) list[i]="purple64" ; i=i+1 DOLC="yes" shift;; purplegcc|-purplegcc) list[i]="purplegcc" ; i=i+1 DOLC="yes" shift;; purple|-purple*) list[i]="purple" ; i=i+1 DOLC="yes" shift;; gaus*icc|-ga*icc) list[i]="gaussicc" ; i=i+1 DOLC="yes" shift;; gaus*gcc|-ga*gcc) list[i]="gaussgcc" ; i=i+1 DOLC="yes" shift;; gaus*|-ga*) list[i]="gauss" ; i=i+1 DOLC="yes" shift;; rhea*pgc|-rh*pgc) list[i]="rheapgc" ; i=i+1 DOLC="yes" shift;; rhea*psc|-rh*psc) list[i]="rheapsc" ; i=i+1 DOLC="yes" shift;; rhea*icc|-rh*icc) list[i]="rheaicc" ; i=i+1 DOLC="yes" shift;; rhea*gcc|-rh*gcc) list[i]="rheagcc" ; i=i+1 DOLC="yes" shift;; rhea*|-rh*) list[i]="rhea" ; i=i+1 DOLC="yes" shift;; lil*icc|-li*icc) list[i]="lilacicc" ; i=i+1 DOLC="yes" shift;; lil*gcc|-li*gcc) list[i]="lilacgcc" ; i=i+1 DOLC="yes" shift;; lil*|-li*) list[i]="lilac" ; i=i+1 DOLC="yes" shift;; quad32|-quad32) list[i]="quad32" ; i=i+1 DOLC="yes" shift;; quad64|-quad64) list[i]="quad64" ; i=i+1 DOLC="yes" shift;; quad|-quad) list[i]="quad" ; i=i+1 DOLC="yes" shift;; bgl|-bgl) list[i]="bgl" ; i=i+1 DOLC="yes" shift;; macos|-macos) list[i]="macos" ; i=i+1 DOBDIV="yes" shift;; lc-use*|-lc-use*) lcun=$2 shift 2;; bdiv-use*|-bdiv-use*) bdun=$2 shift 2;; bdiv-ho*|-bdiv-ho*) bdhost=$2 shift 2;; check*|-check*) DOCHECK="yes" shift;; no*|-no*) DOINSTALL="no" shift;; fin*|-fin*) DOFINAL="yes" shift;; cle*|-cle*) DOCLEAN="yes" shift;; debug*|-debug*) set -vx shift;; trace*|-trace*) set -vx shift;; *) shift;; esac done fi if [[ "$DOFINAL" == "yes" ]] ; then if [[ "$DOBDIV" == "yes" ]] ; then ssh ${bdun}@${bdhost} "/bin/bash" << EOF umask 002 if [ -d $TOPDIR/current ] ; then rm $TOPDIR/current fi ln -s $TOPDIR/$VERSION $TOPDIR/current chgrp visit $TOPDIR/current if [ -f $TOPDIR/$VERSION/test/$TOPSRCDIR/docs/Silo.book.pdf ] ; then cp $TOPDIR/$VERSION/test/$TOPSRCDIR/docs/Silo.book.pdf \ $TOPDIR/$VERSION chgrp visit $TOPDIR/$VERSION/Silo.book.pdf fi EOF fi if [ "$DOLC" = "yes" ] ; then ssh ${lcun}@lilac "/bin/bash" << EOF umask 002 if [ -d $TOPDIR/current ] ; then rm $TOPDIR/current fi ln -s $TOPDIR/$VERSION $TOPDIR/current chgrp visit $TOPDIR/current if [ -f $TOPDIR/$VERSION/test/$TOPSRCDIR/docs/Silo.book.pdf ] ; then cp $TOPDIR/$VERSION/test/$TOPSRCDIR/docs/Silo.book.pdf \ $TOPDIR/$VERSION chgrp visit $TOPDIR/$VERSION/Silo.book.pdf fi EOF fi i=0 while (( i < ${#list[*]} )) do ${list[i]}final i=i+1 done elif [[ "$DOCLEAN" == "yes" ]] ; then i=0 while (( i < ${#list[*]} )) do ${list[i]}clean i=i+1 done if [[ "$DOBDIV" == "yes" ]] ; then ssh ${bdun}@${bdhost} "/bin/bash" << EOF umask 002 if [ -d $TOPDIR/$VERSION/test ] ; then rm -rf $TOPDIR/$VERSION/test rm -rf $TOPDIR/$VERSION/test fi EOF fi if [ "$DOLC" = "yes" ] ; then ssh ${lcun}@lilac "/bin/bash" << EOF umask 002 if [ -d $TOPDIR/$VERSION/test ] ; then rm -rf $TOPDIR/$VERSION/test rm -rf $TOPDIR/$VERSION/test fi EOF fi else if [[ "$DOBDIV" == "yes" ]] ; then ssh ${bdun}@${bdhost} "/bin/bash" << EOF umask 002 if [ ! -d $TOPDIR/$VERSION ] ; then mkdir $TOPDIR/$VERSION fi chgrp visit $TOPDIR/$VERSION chmod a+rX,u+w,o-w,g+s $TOPDIR/$VERSION if [ ! -d $TOPDIR/$VERSION/test ] ; then mkdir $TOPDIR/$VERSION/test chgrp visit $TOPDIR/$VERSION/test chmod a+rX,ug+w $TOPDIR/$VERSION/test fi EOF if [ -e $TARFILE ] ; then scp $TARFILE ${bdun}@${bdhost}:$TOPDIR/$VERSION ssh ${bdun}@${bdhost} "/bin/bash" << EOF umask 002 cd $TOPDIR/$VERSION/test chmod a+r,ug+w ../$TARFILE chgrp visit ../$TARFILE tar zxf ../$TARFILE chgrp -R visit $TOPSRCDIR chmod -R a+rX,ug+w $TOPSRCDIR EOF fi fi if [ "$DOLC" == "yes" ] ; then ssh ${lcun}@lilac "/bin/bash" << EOF umask 002 if [ ! -d $TOPDIR/$VERSION ] ; then mkdir $TOPDIR/$VERSION fi chgrp visit $TOPDIR/$VERSION chmod a+rX,u+w,o-w,g+s $TOPDIR/$VERSION if [ ! -d $TOPDIR/$VERSION/test ] ; then mkdir $TOPDIR/$VERSION/test chgrp visit $TOPDIR/$VERSION/test chmod a+rX,ug+w $TOPDIR/$VERSION/test fi EOF if [ -e $TARFILE ] ; then scp $TARFILE ${lcun}@lilac:$TOPDIR/$VERSION ssh ${lcun}@lilac "/bin/bash" << EOF umask 002 cd $TOPDIR/$VERSION/test chmod a+r,ug+w ../$TARFILE chgrp visit ../$TARFILE tar zxf ../$TARFILE chgrp -R visit $TOPSRCDIR chmod -R a+rX,ug+w $TOPSRCDIR EOF fi fi i=0 while (( i < ${#list[*]} )) do ${list[i]} i=i+1 done fi silo-4.8-bsd/svn_bin/silo-release-open0000755000707000001660000010306511444246315017404 0ustar miller86visit#!/bin/bash ####################################################################### # # silo-release-open - Build and install a tarball on the open network. # # Author: Thomas Treadway # Date: Thu Jun 15 12:48:17 PDT 2006 # # Usage: # silo-release-open version # # Modifications: # Thomas R. Treadway, Wed Oct 3 13:48:15 PDT 2007 # Removed gps, added up # Added build of silex, and included szip # # Thomas R. Treadway, Fri Nov 2 16:17:59 PDT 2007 # Tunning for release 4.6 # # Thomas R. Treadway, Wed Nov 14 12:54:37 PST 2007 # Corrected some of the pathc issues. # # Thomas R. Treadway, Thu Dec 27 14:06:40 PST 2007 # reformatted, added -final, -clean options. # ####################################################################### # function usage() { printf "Usage: %s version [-lc-username ] [-check-install | -no-install | -final | -clean] {all|hoth|sidious|sunspot|up|yana|ubgl|dawndev}" $0 printf "\n" printf "Build options\n" printf " -- default, runs make install\n" printf -- "-check-install -- runs make check before make install\n" printf -- "-no-install -- runs make only no make install step\n" printf -- "-final {host} -- creates links to silo/current directory\n" printf " and other convenient symbolic links\n" printf -- "-clean {host} -- removes the build directories\n" printf "\n" printf "Host select options\n" printf "all -- tries to build on both BDiv, and LC host\n" printf "all-lc -- tries to build on LC host only\n" printf "all-bdiv -- tries to build on both BDiv host only\n" printf "{hostopt} -- host, host list or host option list, such as:\n" printf " hoth, hothgcc, hothicc, hothpgc, yana, yanagcc,\n" printf " yanapgc, yanaicc, yanapsc\n" printf " thunder, thundericc, pengra, pengraicc, pengragcc,\n" printf " all, all-lc, all-bd, etc.\n" printf "{host} -- host name or host name list, such as:\n" printf " hoth, yana, thunder, pengra, quad, tread,\n" printf " all, all-lc, all-bd\n" printf "\n" printf "Silo release installing script. Assumes a tarball exist in\n" printf "current directory, named something like silo-\$1.tar.gz.\n" printf "This script will attempt to:\n" printf " 1) copy tarball to B Div's /usr/gapps/silo/$VERSION and\n" printf " LC's /usr/gapps/silo/$VERSION.\n" printf " 2) untar in /usr/gapps/silo/$VERSION/test.\n" printf " 3) start remote scripts on the target machines that\n" printf " perform a configure, make check, followed by a make install\n" printf " into directories /usr/gapps/silo/$VERSION/$ARCH.\n" printf "Log files are stored at ./HOSTNAME.log\n" printf "You may want to run this script from the LC network.\n" } function build() { ssh ${HOSTS} "$SSHSHELL" << EOF > ${ARCH}.log 2>&1 & $* unset QTDIR umask 002 ls -l $TOPDIR/$VERSION/test rm -rf $TOPDIR/$VERSION/test/$ARCH mkdir $TOPDIR/$VERSION/test/$ARCH ls -l $TOPDIR/$VERSION/test cd $TOPDIR/$VERSION/test/$ARCH ../$TOPSRCDIR/configure --disable-hzip --disable-fpzip --enable-legacy-datatyped-pointers \ --prefix=$TOPDIR/$VERSION/$ARCH \ --disable-browser --disable-silex --without-hdf5 --without-szlib $CONFOPTS test $? != 0 && return $MAKE $MAKEOPTS test $? != 0 && return if [ "$DOINSTALL" = "yes" ] ; then $MAKE install fi chmod -R g+w $TOPDIR/$VERSION/$ARCH $MAKE clean ../$TOPSRCDIR/configure --disable-hzip --disable-fpzip --enable-legacy-datatyped-pointers \ --prefix=$TOPDIR/$VERSION/$ARCH --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/$ARCH \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/include,/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/lib \ $CONFOPTS test $? != 0 && return $MAKE $MAKEOPTS test $? != 0 && return if [ "$DOINSTALL" = "yes" ] ; then $MAKE install fi mv $TOPDIR/$VERSION/$ARCH/lib/libsiloh5.a $TOPDIR/$VERSION/$ARCH/lib/libsiloh5.a.saved mv $TOPDIR/$VERSION/$ARCH/include/silo.h $TOPDIR/$VERSION/$ARCH/include/silo.h.saved chmod -R a+r,ug+w,a+X $TOPDIR/$VERSION/test/$ARCH chgrp -R visit $TOPDIR/$VERSION/test/$ARCH chmod -R a+r,ug+w,a+X $TOPDIR/$VERSION/$ARCH chgrp -R visit $TOPDIR/$VERSION/$ARCH $MAKE clean ../$TOPSRCDIR/configure \ --prefix=$TOPDIR/$VERSION/$ARCH --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/$ARCH \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/include,/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/lib \ $CONFOPTS test $? != 0 && return $MAKE $MAKEOPTS if [ $? = 0 && "$DOCHECK" = "yes" ] ; then $MAKE $MAKEOPTS check TESTARGS="-k \!large" fi if [ "$DOINSTALL" = "yes" ] ; then $MAKE install fi mv $TOPDIR/$VERSION/$ARCH/bin $TOPDIR/$VERSION/$ARCH/bin.saved chmod -R a+r,ug+w,a+X $TOPDIR/$VERSION/test/$ARCH chgrp -R visit $TOPDIR/$VERSION/test/$ARCH chmod -R a+r,ug+w,a+X $TOPDIR/$VERSION/$ARCH chgrp -R visit $TOPDIR/$VERSION/$ARCH $MAKE clean ../$TOPSRCDIR/configure --enable-pythonmodule --enable-shared \ --prefix=$TOPDIR/$VERSION/$ARCH --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/$ARCH \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/include,/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/lib \ $CONFOPTS test $? != 0 && return $MAKE $MAKEOPTS if [ $? = 0 && "$DOCHECK" = "yes" ] ; then $MAKE $MAKEOPTS check TESTARGS="-k compression -k python" fi if [ "$DOINSTALL" = "yes" ] ; then $MAKE install fi rm -rf $TOPDIR/$VERSION/$ARCH/libso cp -R $TOPDIR/$VERSION/$ARCH/lib $TOPDIR/$VERSION/$ARCH/libso rm -f $TOPDIR/$VERSION/$ARCH/libso/{*.settings,*.la,*.a} rm -f $TOPDIR/$VERSION/$ARCH/libso/libsiloh5.a.saved mv $TOPDIR/$VERSION/$ARCH/lib/libsiloh5.a $TOPDIR/$VERSION/$ARCH/lib/libsiloxx.a mv $TOPDIR/$VERSION/$ARCH/lib/libsiloh5.a.saved $TOPDIR/$VERSION/$ARCH/lib/libsiloh5.a mv $TOPDIR/$VERSION/$ARCH/include/silo.h.saved $TOPDIR/$VERSION/$ARCH/include/silo.h rm -f $TOPDIR/$VERSION/$ARCH/lib/*.so rm -rf $TOPDIR/$VERSION/$ARCH/bin mv $TOPDIR/$VERSION/$ARCH/bin.saved $TOPDIR/$VERSION/$ARCH/bin chmod -R a+r,ug+w,a+X $TOPDIR/$VERSION/test/$ARCH chgrp -R visit $TOPDIR/$VERSION/test/$ARCH chmod -R a+r,ug+w,a+X $TOPDIR/$VERSION/$ARCH chgrp -R visit $TOPDIR/$VERSION/$ARCH EOF } function build2() { ssh -v -v -v ${HOSTS} "$SSHSHELL" << FOOBAR > ${ARCH}.log 2>&1 & $* set -x unset QTDIR umask 002 rm -rf $TOPDIR/$VERSION/test/$ARCH mkdir $TOPDIR/$VERSION/test/$ARCH cd $TOPDIR/$VERSION/test/$ARCH ../$TOPSRCDIR/configure --disable-hzip --disable-fpzip --enable-legacy-datatyped-pointers \ --prefix=$TOPDIR/$VERSION/$ARCH \ --disable-browser --disable-silex --without-hdf5 --without-szlib $CONFOPTS2 test $? != 0 && return $MAKE $MAKEOPTS test $? != 0 && return if [ "$DOINSTALL" = "yes" ] ; then $MAKE install fi chmod -R g+w $TOPDIR/$VERSION/$ARCH $MAKE clean ../$TOPSRCDIR/configure --disable-hzip --disable-fpzip --enable-legacy-datatyped-pointers \ --prefix=$TOPDIR/$VERSION/$ARCH --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/$ARCH \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/include,/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/lib \ $CONFOPTS2 test $? != 0 && return $MAKE $MAKEOPTS test $? != 0 && return if [ "$DOINSTALL" = "yes" ] ; then $MAKE install fi mv $TOPDIR/$VERSION/$ARCH/lib/libsiloh5.a $TOPDIR/$VERSION/$ARCH/lib/libsiloh5.a.saved mv $TOPDIR/$VERSION/$ARCH/include/silo.h $TOPDIR/$VERSION/$ARCH/include/silo.h.saved chmod -R a+r,ug+w,a+X $TOPDIR/$VERSION/test/$ARCH chgrp -R visit $TOPDIR/$VERSION/test/$ARCH chmod -R a+r,ug+w,a+X $TOPDIR/$VERSION/$ARCH chgrp -R visit $TOPDIR/$VERSION/$ARCH $MAKE clean ../$TOPSRCDIR/configure \ --prefix=$TOPDIR/$VERSION/$ARCH --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/$ARCH \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/include,/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/lib \ $CONFOPTS2 test $? != 0 && return $MAKE $MAKEOPTS if [ $? = 0 && "$DOCHECK" = "yes" ] ; then $MAKE $MAKEOPTS check TESTARGS="-k \!large" fi if [ "$DOINSTALL" = "yes" ] ; then $MAKE install fi mv $TOPDIR/$VERSION/$ARCH/bin $TOPDIR/$VERSION/$ARCH/bin.saved chmod -R a+r,ug+w,a+X $TOPDIR/$VERSION/test/$ARCH chgrp -R visit $TOPDIR/$VERSION/test/$ARCH chmod -R a+r,ug+w,a+X $TOPDIR/$VERSION/$ARCH chgrp -R visit $TOPDIR/$VERSION/$ARCH $MAKE clean ../$TOPSRCDIR/configure --enable-pythonmodule --enable-shared \ --prefix=$TOPDIR/$VERSION/$ARCH --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/$ARCH \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/include,/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/lib \ $CONFOPTS2 test $? != 0 && return $MAKE $MAKEOPTS if [ $? = 0 && "$DOCHECK" = "yes" ] ; then $MAKE $MAKEOPTS check TESTARGS="-k compression -k python" fi if [ "$DOINSTALL" = "yes" ] ; then $MAKE install fi rm -rf $TOPDIR/$VERSION/$ARCH/libso cp -R $TOPDIR/$VERSION/$ARCH/lib $TOPDIR/$VERSION/$ARCH/libso rm -f $TOPDIR/$VERSION/$ARCH/libso/{*.settings,*.la,*.a} rm -f $TOPDIR/$VERSION/$ARCH/libso/libsiloh5.a.saved mv $TOPDIR/$VERSION/$ARCH/lib/libsiloh5.a $TOPDIR/$VERSION/$ARCH/lib/libsiloxx.a mv $TOPDIR/$VERSION/$ARCH/lib/libsiloh5.a.saved $TOPDIR/$VERSION/$ARCH/lib/libsiloh5.a mv $TOPDIR/$VERSION/$ARCH/include/silo.h.saved $TOPDIR/$VERSION/$ARCH/include/silo.h rm -f $TOPDIR/$VERSION/$ARCH/lib/*.so rm -rf $TOPDIR/$VERSION/$ARCH/bin mv $TOPDIR/$VERSION/$ARCH/bin.saved $TOPDIR/$VERSION/$ARCH/bin chmod -R a+r,ug+w,a+X $TOPDIR/$VERSION/test/$ARCH chgrp -R visit $TOPDIR/$VERSION/test/$ARCH chmod -R a+r,ug+w,a+X $TOPDIR/$VERSION/$ARCH chgrp -R visit $TOPDIR/$VERSION/$ARCH FOOBAR } function sidious() { sidiousgcc } sidiousgcc() { HOSTS="sidious" ARCH="x86_64_Linux_el5xen" CONFOPTS="FC=g77 F77=g77 \ FFLAGS=-Wno-globals F77FLAGS=-Wno-globals FCFLAGS=-Wno-globals" export HOSTS ARCH CONFOPTS build \ "PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/atria/bin:\ /usr/lib/jre/bin:/sbin:/usr/sbin:/opt/bin:/usr/local/apps/bin:\ /usr/security/bin" \ "LD_LIBRARY_PATH=/usr/lib:/lib" \ "export PATH LD_LIBRARY_PATH" } function hoth() { hothgcc hothpgc hothicc } function hothfinal() { ssh hoth "/bin/bash" << EOF >> i686_Linux_ELsmp.log 2>&1 umask 002 cd $TOPDIR/$VERSION/test/i686_Linux_ELsmp for FILE in $BININSTALLS do if [[ -e /misc/gapps/Linux/bin/\$FILE ]] ; then rm -f /misc/gapps/Linux/bin/\$FILE fi done unset QTDIR gmake bindir=/misc/gapps/Linux/bin install-exec for FILE in $BININSTALLS do chmod a+r,ug+w,a+X /misc/gapps/Linux/bin/\$FILE chgrp visit /misc/gapps/Linux/bin/\$FILE done for ARCHDIR in "i686_Linux_ELsmp" "i686_Linux_ELsmp_pgcc" \ "i686_Linux_ELsmp_icc" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview ]] ; then rm -f $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview fi ln -s $TOPDIR/hdfview/linux/hdfview \ $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview done for ARCHDIR in "i686_Linux_ELsmp_pgcc" "i686_Linux_ELsmp_icc" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin ]] ; then rm -rf $TOPDIR/$VERSION/\$ARCHDIR/bin fi ln -s $TOPDIR/$VERSION/i686_Linux_ELsmp/bin \ $TOPDIR/$VERSION/\$ARCHDIR/bin chgrp visit $TOPDIR/$VERSION/\$ARCHDIR done EOF } function hothclean() { ssh hoth "/bin/bash" << EOF >> linux_rhel3-gcc-3.2.3.log 2>&1 for ARCHDIR in "i686_Linux_ELsmp" "i686_Linux_ELsmp_pgcc" \ "i686_Linux_ELsmp_icc" "i686_Linux_ELsmp_pathcc" do if [[ -d $TOPDIR/$VERSION/test/\$ARCHDIR ]] ; then rm -rf $TOPDIR/$VERSION/test/\$ARCHDIR fi done EOF } function hothgcc() { HOSTS="hoth" ARCH="i686_Linux_ELsmp" CONFOPTS="FC=g77 F77=g77 \ FFLAGS=-Wno-globals F77FLAGS=-Wno-globals FCFLAGS=-Wno-globals" export HOSTS ARCH CONFOPTS build } function hothpgc() { HOSTS="hoth" ARCH="i686_Linux_ELsmp_pgcc" CONFOPTS="CC=pgcc CXX=pgCC FC=\"pgf77 -g77libs\" F77=\"pgf77 -g77libs\" LDFLAGS=-lstdc++ \ --disable-silex" export HOSTS ARCH CONFOPTS build } function hothicc() { HOSTS="hoth" ARCH="i686_Linux_ELsmp_icc" CONFOPTS="CC=icc CXX=icc FC=ifort F77=ifort LDFLAGS=-lstdc++ --disable-silex" export HOSTS ARCH CONFOPTS build } function sunspot() { sunspotgcc sunspotcc } function sunspotfinal() { ssh sunspot "/bin/bash" << EOF >> sparc_SunOS_57.log 2>&1 umask 002 cd $TOPDIR/$VERSION/test/sparc_SunOS_57 for FILE in $BININSTALLS do if [[ -e /misc/gapps/SunOS/bin/\$FILE ]] ; then rm -f /misc/gapps/SunOS/bin/\$FILE fi done PATH=/usr/bin:/bin:/usr/local/apps/bin:/usr/local/bin:/usr/ccs/bin:\ /opt/SUNWspro/bin:/usr/ucb:/etc:/usr/openwin/bin:/usr/dt/bin:/usr/java/bin LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib export PATH LD_LIBRARY_PATH gmake bindir=/misc/gapps/SunOS/bin install-exec for FILE in $BININSTALLS do chmod a+r,ug+w,a+X /misc/gapps/SunOS/bin/\$FILE chgrp visit /misc/gapps/SunOS/bin/\$FILE done ln -s $TOPDIR/$VERSION/sparc_SunOS_57/bin/silex \ $TOPDIR/$VERSION/sparc_SunOS_57_gcc/bin/silex chgrp visit $TOPDIR/$VERSION/sparc_SunOS_57_gcc/bin/silex EOF } function sunspotclean() { ssh sunspot "/bin/bash" << EOF >> sunos_57.log 2>&1 for ARCHDIR in "sparc_SunOS_57" "sparc_SunOS_57_cc" do rm -rf $TOPDIR/$VERSION/test/\$ARCHDIR done EOF } function sunspotgcc() { HOSTS="sunspot" ARCH="sparc_SunOS_57_gcc" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 \ FFLAGS=-Wno-globals F77FLAGS=-Wno-globals FCFLAGS=-Wno-globals" CONFOPTS2="CC=gcc CXX=g++ FC=g77 F77=g77 --disable-silex \ FFLAGS=-Wno-globals F77FLAGS=-Wno-globals FCFLAGS=-Wno-globals" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/bin:/bin:/usr/local/apps/bin:/usr/local/bin:/usr/ccs/bin:\ /opt/SUNWspro/bin:/usr/ucb:/etc:/usr/openwin/bin:/usr/dt/bin:/usr/java/bin" \ "LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib" \ "export PATH LD_LIBRARY_PATH" } function sunspotcc() { HOSTS="sunspot" ARCH="sparc_SunOS_57" CONFOPTS="CC=cc CXX=CC FC=f77 F77=f77 LDFLAGS=-L/usr/local/lib" CONFOPTS2="CC=cc CXX=CC FC=f77 F77=f77 \ LDFLAGS=-L/usr/local/lib --disable-silex --without-readline \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/sparc-sun-solaris-cc-5.2 \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/sparc-sun-solaris-cc-5.2/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/sparc-sun-solaris-cc-5.2/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/bin:/bin:/usr/local/apps/bin:/usr/local/bin:/usr/ccs/bin:\ /opt/SUNWspro/bin:/usr/ucb:/etc:/usr/openwin/bin:/usr/dt/bin:/usr/java/bin" \ "LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib" \ "export PATH LD_LIBRARY_PATH" } function up() { # not using gcc # use gmake for parallel seems to hang # 32-bit and 64-bit compiles up64 up32 upgcc } function upfinal() { ssh ${lcun}@up "/bin/bash" << EOF >> aix_5_64_fed.log 2>&1 umask 002 cd $TOPDIR/$VERSION/test/aix_5_64_fed for ARCHDIR in "aix_5_64" "aix_5_64_fed" "aix_5_ll" do for FILE in $BININSTALLS do if [[ -e /usr/gapps/bin/\$ARCHDIR/\$FILE ]] ; then rm -f /usr/gapps/bin/\$ARCHDIR/\$FILE fi done PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/local/gnu/bin:\ /usr/local/scripts:/usr/apps/bin:/usr/gapps/bin OBJECT_MODE=64 export PATH OBJECT_MODE gmake bindir=/usr/gapps/bin/$ARCHDIR install-exec for FILE in $BININSTALLS do chmod a+r,ug+w,a+X /usr/gapps/bin/\$ARCHDIR/\$FILE chgrp visit /usr/gapps/bin/\$ARCHDIR/\$FILE done done for ARCHDIR in "aix_5_ll" "aix_5_64_fed" "aix_5_ll_gcc" "aix_5_64_fed_gcc" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview ]] ; then rm -f $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview fi ln -s $TOPDIR/hdfview/AIX/hdfview \ $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview done for ARCHDIR in "aix_5_ll" "aix_5_ll_gcc" "aix_5_64_fed_gcc" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin ]] ; then rm -rf $TOPDIR/$VERSION/\$ARCHDIR/bin fi ln -s $TOPDIR/$VERSION/aix_5_64_fed/bin \ $TOPDIR/$VERSION/\$ARCHDIR/bin chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin done EOF } function upclean() { ssh ${lcun}@up "/bin/bash" << EOF >> aix_5_64_fed.log 2>&1 for ARCHDIR in "aix_5_ll" "aix_5_64_fed" "aix_5_ll_gcc" "aix_5_64_fed_gcc" do if [[ -d $TOPDIR/$VERSION/test/\$ARCHDIR ]] ; then rm -rf $TOPDIR/$VERSION/test/\$ARCHDIR fi done EOF } function up32() { HOSTS="${lcun}@up" ARCH="aix_5_ll" CONFOPTS="FC=xlf F77=xlf --disable-silex" CONFOPTS2="FC=xlf F77=xlf --disable-silex \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/$ARCH \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/lib" MAKEOPTS="" export HOSTS ARCH CONFOPTS CONFOPTS2 MAKEOPTS build2 \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/local/gnu/bin:\ /usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=32" \ "export PATH OBJECT_MODE" } function up64() { HOSTS="${lcun}@up" ARCH="aix_5_64_fed" CONFOPTS="FC=xlf F77=xlf " CONFOPTS2="FC=xlf F77=xlf --enable-silex" MAKEOPTS="" export HOSTS ARCH CONFOPTS CONFOPTS2 MAKEOPTS build2 \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/local/gnu/bin:\ /usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=64" \ "export PATH OBJECT_MODE" } function upgcc() { # use gmake for parallel seems to hang # 32-bit and 64-bit compiles upgcc32 upgcc64 } function upgcc32() { HOSTS="${lcun}@up" ARCH="aix_5_ll_gcc" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 \ CFLAGS=\"-maix32 -mminimal-toc\" CXXFLAGS=\"-maix32 -mminimal-toc\" \ LDFLAGS=-maix32 --disable-silex" CONFOPTS2="CC=gcc CXX=g++ FC=g77 F77=g77 \ CFLAGS=\"-maix32 -mminimal-toc\" CXXFLAGS=\"-maix32 -mminimal-toc\" \ LDFLAGS=-maix32 --disable-silex \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/$ARCH \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/local/gnu/bin:\ /usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=32" \ "export PATH OBJECT_MODE" } function upgcc64() { HOSTS="${lcun}@up" ARCH="aix_5_64_fed_gcc" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 \ CFLAGS=\"-maix64 -mminimal-toc\" CXXFLAGS=\"-maix64 -mminimal-toc\" \ LDFLAGS=-maix64" CONFOPTS2="CC=gcc CXX=g++ FC=g77 F77=g77 \ CFLAGS=\"-maix64 -mminimal-toc\" CXXFLAGS=\"-maix64 -mminimal-toc\" \ LDFLAGS=-maix64 \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/$ARCH \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/local/bin:/usr/bin:/usr/sbin:/usr/ucb:/usr/local/gnu/bin:\ /usr/local/scripts:/usr/apps/bin:/usr/gapps/bin" \ "OBJECT_MODE=64" \ "export PATH OBJECT_MODE" } function yana() { yanagcc yanaicc yanapgc yanapsc } function yanafinal() { ssh ${lcun}@yana "/bin/bash" << EOF >> chaos_4_x86_64.log 2>&1 set -x umask 002 # cd $TOPDIR/$VERSION/test/chaos_4_x86_64 # gmake bindir=/usr/gapps/bin/chaos_4_x86_64 install-exec # gmake bindir=/usr/gapps/bin/chaos_4_x86_64_elan4 install-exec # gmake bindir=/usr/gapps/bin/chaos_4_x86_64_ib install-exec for ARCHDIR in "chaos_4_x86_64" "chaos_4_x86_64_ib" do for FILE in $BININSTALLS do if [[ -e /usr/gapps/bin/\$ARCHDIR/\$FILE ]] ; then rm -f /usr/gapps/bin/\$ARCHDIR/\$FILE fi ln -s $TOPDIR/$VERSION/chaos_4_x86_64/bin/\$FILE \ /usr/gapps/bin/\$ARCHDIR/\$FILE chmod a+r,ug+w,a+X /usr/gapps/bin/\$ARCHDIR/\$FILE chgrp visit /usr/gapps/bin/\$ARCHDIR/\$FILE done if [[ -e /usr/gapps/bin/\$ARCHDIR/hdfview ]] ; then rm -f /usr/gapps/bin/\$ARCHDIR/hdfview fi ln -s $TOPDIR/hdfview/linux64amd/hdfview \ /usr/gapps/bin/\$ARCHDIR/hdfview chgrp visit /usr/gapps/bin/\$ARCHDIR/hdfview done for ARCHDIR in "chaos_4_x86_64" "chaos_4_x86_64_icc" \ "chaos_4_x86_64_pathcc" "chaos_4_x86_64_pgcc" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview ]] ; then rm -f $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview fi ln -s $TOPDIR/hdfview/linux64amd/hdfview \ $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin/hdfview done for ARCHDIR in "chaos_4_x86_64" "chaos_4_x86_64_pathcc" \ "chaos_4_x86_64_pgcc" do if [[ -e $TOPDIR/$VERSION/\$ARCHDIR/bin ]] ; then rm -rf $TOPDIR/$VERSION/\$ARCHDIR/bin fi ln -s $TOPDIR/$VERSION/chaos_4_x86_64_icc/bin \ $TOPDIR/$VERSION/\$ARCHDIR/bin chgrp visit $TOPDIR/$VERSION/\$ARCHDIR/bin done EOF } function yanaclean() { ssh ${lcun}@yana "/bin/bash" << EOF >> chaos_4_x86_64.log 2>&1 for ARCHDIR in "chaos_4_x86_64" "chaos_4_x86_64_icc" \ "chaos_4_x86_64_pathcc" "chaos_4_x86_64_pgcc" do if [[ -d $TOPDIR/$VERSION/test/\$ARCHDIR ]] ; then rm -rf $TOPDIR/$VERSION/test/\$ARCHDIR fi done EOF } function yanagcc() { HOSTS="${lcun}@yana" ARCH="chaos_4_x86_64" CONFOPTS="CC=gcc CXX=g++ FC=g77 F77=g77 CFLAGS=-fPIC CXXFLAGS=-fPIC \ FFLAGS=-Wno-globals F77FLAGS=-Wno-globals FCFLAGS=-Wno-globals --enable-silex" export HOSTS ARCH CONFOPTS build \ "PATH=/usr/local/intel/compiler91/bin:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin" \ "export PATH" } function yanaicc() { HOSTS="${lcun}@yana" ARCH="chaos_4_x86_64_icc" CONFOPTS="CC=icc CXX=icc FC=ifort F77=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC" CONFOPTS2="CC=icc CXX=icc FC=ifort F77=ifort LDFLAGS=-lstdc++ \ CFLAGS=-fPIC CXXFLAGS=-fPIC \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/$ARCH \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "LD_LIBRARY_PATH=/usr/local/tools/icc/lib" \ "export LD_LIBRARY_PATH" } function yanapsc() { HOSTS="${lcun}@yana" ARCH="chaos_4_x86_64_pathcc" CONFOPTS="CC=pathcc CXX=pathCC FC=pathf90 F77=pathf90 \ CFLAGS=-fPIC CXXFLAGS=-fPIC" CONFOPTS2="CC=pathcc CXX=pathCC FC=pathf90 F77=pathf90 \ CFLAGS=-fPIC CXXFLAGS=-fPIC --disable-silex \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/$ARCH \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 \ "PATH=/usr/global/tools/RSI/bin:\ /usr/local/tools/pathscale/pathscale-2.4/bin2:/usr/local/bin:/bin:/usr/bin:\ /usr/bin/X11:/usr/lib/mpi/bin:/usr/apps/bin:/usr/gapps/bin:/usr/kerberos/bin" \ "LM_LICENSE_FILE=/usr/local/etc/license.client" \ "PATHSCALE_SUBSCRIPTION_DAEMON=license1ocf.llnl.gov" \ "export PATH LM_LICENSE_FILE PATHSCALE_SUBSCRIPTION_DAEMON" } function yanapgc() { HOSTS="${lcun}@yana" ARCH="chaos_4_x86_64_pgcc" CONFOPTS="CC=pgcc CXX=pgCC FC=\"pgf77 -g77libs\" F77=\"pgf77 -g77libs\" \ CFLAGS=-fPIC CXXFLAGS=-fPIC LDFLAGS=/usr/local/tools/pgi-7.0.6/linux86-64/7.0-6/lib/pgfmain.o" CONFOPTS2="CC=pgcc CXX=pgCC FC=\"pgf77 -g77libs\" F77=\"pgf77 -g77libs\" \ CFLAGS=-fPIC CXXFLAGS=-fPIC LDFLAGS=/usr/local/tools/pgi-7.0.6/linux86-64/7.0-6/lib/pgfmain.o --disable-silex \ --with-szlib=/usr/gapps/silo/szip/$SZIPRELEASE/$ARCH \ --with-hdf5=/usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/include,\ /usr/gapps/silo/hdf5/$HDF5RELEASE/$ARCH/lib" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 } function ubgl() { ubglblrts_xlc ubglxlc } function ubglblrts_xlc() { HOSTS="${lcun}@ubgl" ARCH="sles_9_ppc64" CONFOPTS2="CC=blrts_xlc FC=blrts_xlf CXX=blrts_xlC \ ac_cv_type_off64_t=yes ac_cv_sizeof_off64_t=8 \ ac_cv_type_long=yes ac_cv_sizeof_long=4 \ ac_cv_type_long_long=yes ac_cv_sizeof_long_long=8 \ ac_cv_type_double=yes ac_cv_sizeof_double=8 \ CPPFLAGS=-I/usr/gapps/silo/zlib/1.2.3/sles_9_ppc64-blrts_xlc/include \ LDFLAGS=\"-L/usr/gapps/silo/zlib/1.2.3/sles_9_ppc64-blrts_xlc/lib -lz\" \ CFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ CXXFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ --disable-silex" export HOSTS ARCH CONFOPTS2 build2 } function ubglxlc() { HOSTS="${lcun}@ubgl" ARCH="sles_9_ppc64_xlc" CONFOPTS2="CC=/opt/ibmcmp/vacpp/bg/8.0/bin/xlc FC=xlf \ CXX=/opt/ibmcmp/vacpp/bg/8.0/bin/xlC \ CFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ CXXFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ --disable-silex" export HOSTS ARCH CONFOPTS2 build2 } function dawndev() { dawndevbgxlc_r dawndevxlc } function dawndevbgxlc_r() { HOSTS="${lcun}@dawndev" ARCH="sles_10_ppc64" CONFOPTS2="CC=bgxlc_r FC=bgxlf_r \ CXX=bgxlC_r \ ac_cv_type_off64_t=yes ac_cv_sizeof_off64_t=8 \ ac_cv_type_long=yes ac_cv_sizeof_long=4 \ ac_cv_type_long_long=yes ac_cv_sizeof_long_long=8 \ ac_cv_type_double=yes ac_cv_sizeof_double=8 \ CPPFLAGS=-I/usr/gapps/silo/zlib/1.2.3/sles_10_ppc64-bgxlc_r/include \ LDFLAGS=\"-L/usr/gapps/silo/zlib/1.2.3/sles_10_ppc64-bgxlc_r/lib -lz\" \ CFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ CXXFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ --disable-silex" export HOSTS ARCH CONFOPTS2 build2 } function dawndevxlc() { HOSTS="${lcun}@dawndev" ARCH="sles_10_ppc64_xlc" CONFOPTS2="CC=xlc FC=xlf \ CXX=xlC \ CPPFLAGS=-I/usr/gapps/silo/zlib/1.2.3/sles_10_ppc64-xlc/include \ LDFLAGS=\"-L/usr/gapps/silo/zlib/1.2.3/sles_10_ppc64-xlc/lib -lz\" \ CFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ CXXFLAGS=\"-O -qlanglvl=extended -qmaxmem=64000\" \ --disable-silex" export HOSTS ARCH CONFOPTS CONFOPTS2 build2 } TOPDIR="/usr/gapps/silo" SSHSHELL="/bin/bash" SZIPRELEASE=2.1 HDF5RELEASE=1.8.4 QTRELEASE=3.3.8 lcun=$USER BININSTALLS="browser silex silock silodiff silofile" declare -i i declare -af list MAKE="gmake" #MAKEOPTS="-s LIBTOOLFLAGS=--silent" # low noise MAKEOPTS="-j 4" DOINSTALL="yes" DOCHECK="no" DOFINAL="no" DOCLEAN="no" DOBDIV="no" DOLC="no" if (( $# < 1 )) ; then usage exit 2 fi umask 002 VERSION=$1 shift TARFILE="silo-$VERSION.tar.gz" TOPSRCDIR="silo-$VERSION" if (( $# < 1 )) ; then list=("hoth" "sidious" "sunspot" "up" "yana" "hera" "ubgl" "dawndev") DOBDIV="yes";DOLC="yes" else i=0 while [[ "$*" != "" ]] do case $1 in all-lc*|-all-lc*) list[i]="up" ; i=i+1 list[i]="yana" ; i=i+1 list[i]="hera" ; i=i+1 list[i]="ubgl" ; i=i+1 list[i]="dawndev" ; i=i+1 DOLC="yes" shift;; all-bd*|-all-bd*) list[i]="hoth" ; i=i+1 list[i]="sidious" ; i=i+1 list[i]="sunspot" ; i=i+1 DOBDIV="yes" shift;; all|-a*) list[i]="hoth" ; i=i+1 list[i]="sidious" ; i=i+1 list[i]="sunspot" ; i=i+1 list[i]="up" ; i=i+1 list[i]="yana" ; i=i+1 list[i]="hera" ; i=i+1 list[i]="ubgl" ; i=i+1 list[i]="dawndev" ; i=i+1 DOBDIV="yes";DOLC="yes" shift;; sidiousgcc|-sidiousgcc) list[i]="sidiousgcc" ; i=i+1 DOBDIV="yes" shift;; hothgcc|-hothgcc) list[i]="hothgcc" ; i=i+1 DOBDIV="yes" shift;; hothpgc|-hothpgc) list[i]="hothpgc" ; i=i+1 DOBDIV="yes" shift;; hothicc|-hothicc) list[i]="hothicc" ; i=i+1 DOBDIV="yes" shift;; sidious|-sid*) list[i]="sidious" ; i=i+1 DOBDIV="yes" shift;; hoth|-ho*) list[i]="hoth" ; i=i+1 DOBDIV="yes" shift;; sun*gcc|-sun*gcc) list[i]="sunspotgcc" ; i=i+1 DOBDIV="yes" shift;; sun*cc|-sun*cc) list[i]="sunspotcc" ; i=i+1 DOBDIV="yes" shift;; sun*|-sun*) list[i]="sunspot" ; i=i+1 DOBDIV="yes" shift;; upgcc32|-up*gcc32) list[i]="upgcc32" ; i=i+1 DOLC="yes" shift;; up32|-up*32) list[i]="up32" ; i=i+1 DOLC="yes" shift;; upgcc64|-up*gcc64) list[i]="upgcc64" ; i=i+1 DOLC="yes" shift;; up64|-up*64) list[i]="up64" ; i=i+1 DOLC="yes" shift;; upgcc|-upgcc) list[i]="upgcc" ; i=i+1 DOLC="yes" shift;; up|-up*) list[i]="up" ; i=i+1 DOLC="yes" shift;; yana*pgc|-ya*pgc) list[i]="yanapgc" ; i=i+1 DOLC="yes" shift;; yana*psc|-ya*psc) list[i]="yanapsc" ; i=i+1 DOLC="yes" shift;; yana*icc|-ya*icc) list[i]="yanaicc" ; i=i+1 DOLC="yes" shift;; yana*gcc|-ya*gcc) list[i]="yanagcc" ; i=i+1 DOLC="yes" shift;; yana*|-ya*) list[i]="yana" ; i=i+1 DOLC="yes" shift;; hera*pgc) list[i]="herapgc" ; i=i+1 DOLC="yes" shift;; hera*psc) list[i]="herapsc" ; i=i+1 DOLC="yes" shift;; hera*icc) list[i]="heraicc" ; i=i+1 DOLC="yes" shift;; hera*gcc) list[i]="heragcc" ; i=i+1 DOLC="yes" shift;; hera*) list[i]="hera" ; i=i+1 DOLC="yes" shift;; ubgl|-ubgl) list[i]="ubgl" ; i=i+1 DOLC="yes" shift;; ubglblrts_xlc|-ubglblrts_xlc) list[i]="ubglblrts_xlc" ; i=i+1 DOLC="yes" shift;; ubglxlc|-ubglxlc) list[i]="ubglxlc" ; i=i+1 DOLC="yes" shift;; dawndevbgxlc_r|-dawndevbgxlc_r) list[i]="dawndevbgxlc_r" ; i=i+1 DOLC="yes" shift;; dawndevxlc|-dawndevxlc) list[i]="dawndevxlc" ; i=i+1 DOLC="yes" shift;; dawndev|-dawndev) list[i]="dawndev" ; i=i+1 DOLC="yes" shift;; lc-use*|-lc-use*) lcun=$2 shift 2;; check*|-check*) DOCHECK="yes" shift;; no*|-no*) DOINSTALL="no" shift;; fin*|-fin*) DOFINAL="yes" shift;; cle*|-cle*) DOCLEAN="yes" shift;; debug*|-debug*) set -vx shift;; trace*|-trace*) set -vx shift;; *) shift;; esac done fi if [[ "$DOFINAL" = "yes" ]] ; then if [[ "$DOBDIV" = "yes" ]] ; then ssh hoth "/bin/bash" << EOF umask 002 if [ -d $TOPDIR/current ] ; then rm $TOPDIR/current fi ln -s $TOPDIR/$VERSION $TOPDIR/current chgrp visit $TOPDIR/current if [ -f $TOPDIR/$VERSION/test/$TOPSRCDIR/docs/Silo.book.pdf ] ; then cp $TOPDIR/$VERSION/test/$TOPSRCDIR/docs/Silo.book.pdf \ $TOPDIR/$VERSION chgrp visit $TOPDIR/$VERSION/Silo.book.pdf fi EOF fi if [ "$DOLC" = "yes" ] ; then ssh ${lcun}@yana "/bin/bash" << EOF umask 002 if [ -d $TOPDIR/current ] ; then rm $TOPDIR/current fi ln -s $TOPDIR/$VERSION $TOPDIR/current chgrp visit $TOPDIR/current if [ -f $TOPDIR/$VERSION/test/$TOPSRCDIR/docs/Silo.book.pdf ] ; then cp $TOPDIR/$VERSION/test/$TOPSRCDIR/docs/Silo.book.pdf \ $TOPDIR/$VERSION chgrp visit $TOPDIR/$VERSION/Silo.book.pdf fi EOF fi i=0 while (( i < ${#list[*]} )) do ${list[i]}final i=i+1 done elif [[ "$DOCLEAN" = "yes" ]] ; then i=0 while (( i < ${#list[*]} )) do ${list[i]}clean i=i+1 done if [[ "$DOBDIV" = "yes" ]] ; then ssh hoth "/bin/bash" << EOF if [ -d $TOPDIR/$VERSION/test ] ; then rm rf $TOPDIR/$VERSION/test fi EOF fi if [ "$DOLC" = "yes" ] ; then ssh ${lcun}@yana "/bin/bash" << EOF if [ -d $TOPDIR/$VERSION/test ] ; then rm rf $TOPDIR/$VERSION/test fi EOF fi else if [[ "$DOBDIV" = "yes" ]] ; then ssh hoth "/bin/bash" << EOF umask 002 if [ ! -d $TOPDIR/$VERSION ] ; then mkdir $TOPDIR/$VERSION fi chgrp visit $TOPDIR/$VERSION chmod a+rX,u+w,o-w,g+s $TOPDIR/$VERSION if [ ! -d $TOPDIR/$VERSION/test ] ; then mkdir $TOPDIR/$VERSION/test chgrp visit $TOPDIR/$VERSION/test chmod a+rX,ug+w $TOPDIR/$VERSION/test fi sleep 5 EOF if [[ -e $TARFILE ]] ; then scp $TARFILE hoth:$TOPDIR/$VERSION ssh hoth "/bin/bash" << EOF umask 002 cd $TOPDIR/$VERSION/test chmod a+r,ug+w ../$TARFILE chgrp visit ../$TARFILE tar zxf ../$TARFILE chgrp -R visit $TOPSRCDIR chmod -R a+rX,ug+w $TOPSRCDIR EOF fi fi if [ "$DOLC" = "yes" ] ; then ssh ${lcun}@yana "/bin/bash" << EOF umask 002 if [ ! -d $TOPDIR/$VERSION ] ; then mkdir $TOPDIR/$VERSION fi chgrp visit $TOPDIR/$VERSION chmod a+rX,u+w,o-w,g+s $TOPDIR/$VERSION if [ ! -d $TOPDIR/$VERSION/test ] ; then mkdir $TOPDIR/$VERSION/test chgrp visit $TOPDIR/$VERSION/test chmod a+rX,ug+w $TOPDIR/$VERSION/test fi EOF if [ -e $TARFILE ] ; then scp $TARFILE ${lcun}@yana:$TOPDIR/$VERSION ssh ${lcun}@yana "/bin/bash" << EOF umask 002 cd $TOPDIR/$VERSION/test chmod a+r,ug+w ../$TARFILE chgrp visit ../$TARFILE tar zxf ../$TARFILE chgrp -R visit $TOPSRCDIR chmod -R a+rX,ug+w $TOPSRCDIR EOF fi fi i=0 while (( i < ${#list[*]} )) do ${list[i]} i=i+1 done fi silo-4.8-bsd/svn_bin/get_sys_info0000755000707000001660000000245711444246315016554 0ustar miller86visit#!/bin/sh # # Script to iterate over a set of machine names and determine # the unique set of machines and compilers on them # #machine_names="alc atlas prism snowbert thunder up yana zeus" machine_names="hera zeus up yana prism" machine_types="" for m in $machine_names; do sys_type=`ssh mcmiller@$m -x 'echo $SYS_TYPE'` machine_types="$machine_types ${m}:$sys_type" done unique_machine_types=`echo $machine_types | tr ' ' '\n' | tr ':' ' ' | sort -k2 | uniq -f1 | cut -d' ' -f2` unique_machine_names=`echo $machine_types | tr ' ' '\n' | tr ':' ' ' | sort -k2 | uniq -f1 | cut -d' ' -f1` unique_machine_tnpairs=`echo $machine_types | tr ' ' '\n' | tr ':' ' ' | sort -k2 | uniq -f1 | tr ' ' ':'` echo $unique_machine_tnpairs | tr ' ' '\n' compiler_names="gcc xlc icc pgcc pathcc cc blrts_xlc" compile_modes="" for ump in $unique_machine_tnpairs; do compilers= um_name=`echo $ump | cut -d':' -f1` um_type=`echo $ump | cut -d':' -f2` for c in $compiler_names; do has_c=`ssh mcmiller@$um_name -x "which $c"` if test $? -eq 0; then compile_modes="$compile_modes ${um_type}_${c}" compilers="$compilers ${um_type}_${c}" fi done echo "For machine name=\"$um_name\", type=\"$um_type\"..." for c in $compilers; do echo " $c" done done silo-4.8-bsd/svn_bin/winsilo-dist0000755000707000001660000000365111444246315016506 0ustar miller86visit#!/bin/csh -f # Make a temporary directory and cd into it. mkdir tmpsilodir cd tmpsilodir # Unzip the SiloWindows tar file in the current directory cp ../silo/SiloWindows.tar . tar xvf SiloWindows.tar > /dev/null # Copy certain header files into the SiloWindows/include directory. # The SiloWindows directory already contains config.h and pdform.h which # has platform related information but it needs the rest of these directories # to build Silo. cp ../silo/debug/silo_debug_private.h SiloWindows/include cp ../silo/pdb/pdb.h SiloWindows/include cp ../silo/pdb_drv/silo_pdb_private.h SiloWindows/include cp ../silo/score/score.h SiloWindows/include cp ../silo/silo/silo.h SiloWindows/include cp ../silo/silo/silo_drivers.h SiloWindows/include cp ../silo/silo/silo_f.h SiloWindows/include cp ../silo/silo/silo_private.h SiloWindows/include cp ../silo/silo/silo_win32_compatibility.h SiloWindows/include cp ../silo/swat/swat.h SiloWindows/include cp ../silo/unknown/silo_unknown_private.h SiloWindows/include # Create a silo directory and copy the parts that we will build in # the Windows version of Silo. mkdir silo mkdir silo/debug cp ../silo/debug/*.c silo/debug mkdir silo/pdb cp ../silo/pdb/*.c silo/pdb mkdir silo/pdb_drv cp ../silo/pdb_drv/*.c silo/pdb_drv mkdir silo/score cp ../silo/score/*.c silo/score mkdir silo/silo cp ../silo/silo/*.c silo/silo mkdir silo/swat cp ../silo/swat/*.c silo/swat mkdir silo/unknown cp ../silo/unknown/*.c silo/unknown # Create a tar file that has the SiloWindows and silo directories in it. tar cf winsilo.tar SiloWindows silo gzip winsilo.tar # Move the tar file to the top directory and remove the tmp directory. mv winsilo.tar.gz .. cd .. rm -rf tmpsilodir # Tell the user echo "The pieces of Silo needed to build on Windows have been placed in winsilo.tar.gz" silo-4.8-bsd/docs/0002775000707000001660000000000011444246315013424 5ustar miller86visitsilo-4.8-bsd/docs/Makefile.am0000644000707000001660000000604111444246315015455 0ustar miller86visit# Copyright (c) 1994 - 2010, Lawrence Livermore National Security, LLC. # LLNL-CODE-425250. # All rights reserved. # # This file is part of Silo. For details, see silo.llnl.gov. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the disclaimer below. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the disclaimer (as noted # below) in the documentation and/or other materials provided with # the distribution. # * Neither the name of the LLNS/LLNL nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE # LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # This work was produced at Lawrence Livermore National Laboratory under # Contract No. DE-AC52-07NA27344 with the DOE. # # Neither the United States Government nor Lawrence Livermore National # Security, LLC nor any of their employees, makes any warranty, express # or implied, or assumes any liability or responsibility for the # accuracy, completeness, or usefulness of any information, apparatus, # product, or process disclosed, or represents that its use would not # infringe privately-owned rights. # # Any reference herein to any specific commercial products, process, or # services by trade name, trademark, manufacturer or otherwise does not # necessarily constitute or imply its endorsement, recommendation, or # favoring by the United States Government or Lawrence Livermore # National Security, LLC. The views and opinions of authors expressed # herein do not necessarily state or reflect those of the United States # Government or Lawrence Livermore National Security, LLC, and shall not # be used for advertising or product endorsement purposes. # ## Procss this file with automake to create Makefile.in EXTRA_DIST = \ Makefile.am \ Silo.book.fm \ Cover.fm \ Chapter1.fm \ Chapter2-start.fm \ Silo.bookLOP.fm \ Chapter2-man_pages.fm \ silo.h.fm \ Silo.book.pdf silo-4.8-bsd/docs/Makefile.in0000644000707000001660000003136511444246315015475 0ustar miller86visit# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Copyright (c) 1994 - 2010, Lawrence Livermore National Security, LLC. # LLNL-CODE-425250. # All rights reserved. # # This file is part of Silo. For details, see silo.llnl.gov. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the disclaimer below. # * Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the disclaimer (as noted # below) in the documentation and/or other materials provided with # the distribution. # * Neither the name of the LLNS/LLNL nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE # LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # This work was produced at Lawrence Livermore National Laboratory under # Contract No. DE-AC52-07NA27344 with the DOE. # # Neither the United States Government nor Lawrence Livermore National # Security, LLC nor any of their employees, makes any warranty, express # or implied, or assumes any liability or responsibility for the # accuracy, completeness, or usefulness of any information, apparatus, # product, or process disclosed, or represents that its use would not # infringe privately-owned rights. # # Any reference herein to any specific commercial products, process, or # services by trade name, trademark, manufacturer or otherwise does not # necessarily constitute or imply its endorsement, recommendation, or # favoring by the United States Government or Lawrence Livermore # National Security, LLC. The views and opinions of authors expressed # herein do not necessarily state or reflect those of the United States # Government or Lawrence Livermore National Security, LLC, and shall not # be used for advertising or product endorsement purposes. # VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = docs DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BROWSER = @BROWSER@ BUNDLE_TARGET = @BUNDLE_TARGET@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CC_FULLPATH = @CC_FULLPATH@ CFLAGS = @CFLAGS@ CONFIG_CMD = @CONFIG_CMD@ CONFIG_DATE = @CONFIG_DATE@ CONFIG_USER = @CONFIG_USER@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CXX_FULLPATH = @CXX_FULLPATH@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FC = @FC@ FCFLAGS = @FCFLAGS@ FCLIBS = @FCLIBS@ FC_FULLPATH = @FC_FULLPATH@ FFLAGS = @FFLAGS@ FORTRAN = @FORTRAN@ FPZIP = @FPZIP@ GREP = @GREP@ HDF5_DRV = @HDF5_DRV@ HZIP = @HZIP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NETCDF = @NETCDF@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PDBP_DRV = @PDBP_DRV@ PDB_DRV = @PDB_DRV@ PRTDIAG = @PRTDIAG@ PYTHON = @PYTHON@ PYTHONMODULE = @PYTHONMODULE@ PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@ PYTHON_PLATFORM = @PYTHON_PLATFORM@ PYTHON_PREFIX = @PYTHON_PREFIX@ PYTHON_VERSION = @PYTHON_VERSION@ QT_BIN = @QT_BIN@ QT_CORE = @QT_CORE@ QT_CORE_LIB = @QT_CORE_LIB@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_GUI = @QT_GUI@ QT_GUI_LIB = @QT_GUI_LIB@ QT_INCLUDE = @QT_INCLUDE@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIB = @QT_LIB@ QT_LIBS = @QT_LIBS@ QT_MOC = @QT_MOC@ RANLIB = @RANLIB@ READLINE_LIBS = @READLINE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SILEX = @SILEX@ SILO_DTYPPTR = @SILO_DTYPPTR@ SILO_DTYPPTR1 = @SILO_DTYPPTR1@ SILO_DTYPPTR2 = @SILO_DTYPPTR2@ SILO_VERS_MAJ = @SILO_VERS_MAJ@ SILO_VERS_MIN = @SILO_VERS_MIN@ SILO_VERS_PAT = @SILO_VERS_PAT@ SILO_VERS_PRE = @SILO_VERS_PRE@ SILO_VERS_TAG = @SILO_VERS_TAG@ STRIP = @STRIP@ TAURUS = @TAURUS@ VERSION = @VERSION@ ZLIB = @ZLIB@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ ac_ct_FC = @ac_ct_FC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ pkgpyexecdir = @pkgpyexecdir@ pkgpythondir = @pkgpythondir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pyexecdir = @pyexecdir@ pythondir = @pythondir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = \ Makefile.am \ Silo.book.fm \ Cover.fm \ Chapter1.fm \ Chapter2-start.fm \ Silo.bookLOP.fm \ Chapter2-man_pages.fm \ silo.h.fm \ Silo.book.pdf all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign docs/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign docs/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: silo-4.8-bsd/docs/Silo.book.fm0000644000707000001660000006400011444246315015603 0ustar miller86visit  AaY@p`00@ p Ācdd'  n1_duplexeBooki%+59169: Func-Title-Head: DBOPT_REGION_PNAMES &See DBOPT_REGION_PNAMES on page206.$58187: Func-Title-Head: DBShowErrors DBShowErrors on page2-11E91069: API-Section: 4 API Section Multi-Block Objects and Parallelism OSee Multi-Block Objects, Parallelism and Poor-Mans Parallel I/O on page147.*28929: API-Section: 8 API Section Optlists Optlists on page2-218 13665: Func-Title-Head: DBCreate DBCreate on page2-46047195: Func-Title-Head: DBRegisterFileOptionsSet 'DBRegisterFileOptionsSet on page2-38463743: Func-Title-Head: DBSetUnknownDriverPriorities +DBSetUnknownDriverPriorities on page2-44!76720: Func-Title-Head: DBInqFile DBInqFile on page2-64672575: Figure: Figure 1-1: Model of Silo Architecture. Figure 1-1:569766: Figure: Figure 1-5 UCD 2-D and 3-D Cell Shapes )UCD 2-D and 3-D Cell Shapes on page1-6"22625: Func-Title-Head: PMPIO_Init See PMPIO_Init on page171E91069: API-Section: 4 API Section Multi-Block Objects and Parallelism NSee Multi-Block Objects, Parallelism and Poor-Mans Parallel I/O on page147.20978: Func-Title-Head: DBCalcExternalFacelist &DBCalcExternalFacelist on page2-212/23390: Func-Title-Head: DBCalcExternalFacelist2 'DBCalcExternalFacelist2 on page2-214Y19451: Figure: Figure 0-3: Example usage of UCD zonelist combining a hex and 2 polyhedra. Figure 0-3 on page 98%19920: Func-Title-Head: DBMakeMrgtree See DBMakeMrgtree on page183.$34613: Func-Title-Head: DBPutUcdmesh DBPutUcdmesh on page2-93=28479: Figure: Figure 2-4: Node ordering for UCD zone shapes. Figure 0-2 on page 96%48611: Func-Title-Head: dbset2dstrlen See dbset2dstrlen on page268.(47512: Func-Title-Head: DBMakeNamescheme DBMakeNamescheme on page2-196&33408: Func-Title-Head: DBPutMultimesh 3PMPIO_RankInGroup 180DBPutMultimesh on page2-148'87683: Func-Title-Head: PMPIO_GroupRank "See PMPIO_GroupRank on page180.)87564: Func-Title-Head: PMPIO_RankInGroup $See PMPIO_RankInGroup on page181.31563: Figure: Figure 0-9: Figure 0-8 on page 183 66709: Func-Title-Head: DBSetCwr See DBSetCwr on page191.(47512: Func-Title-Head: DBMakeNamescheme #See DBMakeNamescheme on page196.+53462: Func-Title-Head: DBVariableNameValid %See DBVariableNameValid on page14.(99194: Func-Title-Head: DBAddRegionArray #See DBAddRegionArray on page189.`24842: Figure: Figure 0-6: Example using mixed data arrays for representing material information Figure 0-6 on page 136=28479: Figure: Figure 2-4: Node ordering for UCD zone shapes. INode, edge and face ordering for zoo-type UCD zone shapes. on page2-96$25840: Func-Title-Head: DBPutQuadvar DBPutQuadvar on page2-85$97927: Func-Title-Head: DBPutDefvars See DBPutDefvars on page142.363205: Func-Title-Head: MultivarToMultimeshMap_vars .See MultivarToMultimeshMap_vars on page263..16457: Func-Title-Head: DBFortranAccessPointer &DBFortranAccessPointer on page2-271.25110: Func-Title-Head: DBFortranRemovePointer &DBFortranRemovePointer on page2-272-18493: Func-Title-Head: DBFortranAllocPointer %DBFortranAllocPointer on page2-270.38376: Func-Title-Head: DBSetDeprecateWarnings (See DBSetDeprecateWarnings on page33..<$paratext> on page<$pagenum> in Appendix A.<$paratext> on page<$pagenum> in Appendix A"<$paratext> on page3-<$pagenum>"<$paratext> on page3-<$pagenum>"<$paratext> on page1-<$pagenum>"<$paratext> on page1-<$pagenum>"<$paratext> on page2-<$pagenum>"<$paratext> on page2-<$pagenum> <$paranum> <$paranum>$See <$paratext> on page<$pagenum>$See <$paratext> on page<$pagenum>%See <$paratext> on page<$pagenum>.%See <$paratext> on page<$pagenum>.(Figure <$paranumonly> on page <$pagenum>(Figure <$paranumonly> on page <$pagenum> Appendix_AChapter3-start Chapter1Chapter2-start Cover.docQuikref.docSILO.bookTOC.docSILO.bookLOF.docSILO.bookLOT.docPreface.docChapter1.docChapter2-start.docChapter2-man_pages.doc Chapter2-summary_examples.docChapter3-start.docChapter3-man_pages.doc Chapter3-summary_examples.docAppendix_A.docGlossary.docSilo.bookTOC.fmSilo.bookLOF.fm Cover.fmChapter1.fmChapter2-man_pages.fmChapter2-start.fmChapter2-man_pagesLOP.fm silo.h.fmSilo.bookLOM2.fmSilo.bookLOM.fmSilo.bookLOP.fmdTdUdLeftdRightf@HQ  ~  1Heading 1Heading RuleH:\t.\t FirstBody. f@HQ  ~  1Heading-TOPH:\t..< >< >< >< >\t FirstBody. fff@SE ff 1Step Step Number S:.\tStep. _f@HQ  ~  2HeadingH:\t..\t FirstBody. _ f@HQ  ~  3HeadingH:\t...\t FirstBody. f@SQ API-SectionBoldS: API Section\tBody. f@U Func-Syn-Fort-HdrEmphasisFortran Equivalent:Func-Body-Type.  f@ Body. f@ ff  Bullet Bullet Symbol\t. f@  Bulleted\t. fffff@ CBullet. f@  CellBody. f@   CellHeading. c,f@HA Chapter Chapter #H:CHAPTER \t FirstBody. c,f@HA Chapter (not inc) Chapter #H:\t FirstBody. ( f@      D h  Code. HH f@   l      D h  Code out.  f@   - Z ~     2 V z  CodeExample. ,f@ Cover date. xf@$ Cover title. f@  Cover top. fffff@ CStep. HHf@T  DefinitionBody f@ Definition Body. f@D  DisclaimerDisclaimer Body. f@ Disclaimer Body. f@ Disclaimer Bottom. f@E EquationEquation Number E:(EQ ). f@ Extract. f@FA   Figure Table Top Step NumberF:FIGURE \tBody. f@D  FirstBodyBody. c,f@HA FirstChapter Chapter #H:CHAPTER \t FirstBody. @@  Footer. @@   footer first. @@   footer left. @@   footer right. f@ Footnote. f@E  Func-Arg-HdrEmphasis Arguments: Func-Arglist. f@E Func-Arg-Hdr-CEmphasisArguments (C only): Func-Arglist. f@E Func-Arg-Hdr-F77EmphasisArguments (Fortran only): Func-Arglist. l$f@E l Func-ArglistEmphasis Func-Arglist. llf@E l Func-Arglist-ContdEmphasis Func-Arglist. f@E Func-Arglist-HdrEmphasis Arguments:Func-Arglist-Head. l$f@A  l Func-Arglist-HeadEmphasis Func-Arglist\t$$f@      Func-Body. $f@D  @  Func-Body-TypeFunc-Body-Type. f@E  Func-Desc-HdrEmphasis Description: Func-Body. f@E  Func-Note-HdrEmphasisNotes: Func-Body. f@E  Func-Ret-HdrEmphasisReturns: Func-Body. $f@D  zff Func-Summary Func-Summary. f@E  Func-Syn-HdrEmphasis Synopsis: Func-Body-Type. f@E Func-Syn-Hdr-CEmphasisSynopsis (C): Func-Body-Type. f@E Func-Syn-Hdr-F77EmphasisSynopsis (Fortran): Func-Body-Type. f@D Func-Title Func-Syn-Hdr. f@T Func-Title-Head Func-Title()  f@  HangIn. @@   Header. @@   header left. @@   header right. f@T HeadingBody. f@T Heading1Body. f@T  Heading2Body. f@T   HeadingRunInBody. f@  Indented. $f@D   zff ff ff ff ff .ff Rff vff ff ff ff liebe code Func-Summary. f@  Numbered.\t. f@E  Numbered1.\tNumbered. fff@S ff Step Step Number S:.\t. f@  TableFootnote. f@T  TableTitle Table Top Step NumberT:TABLE \t. f@P TitleBody.  f@ TopForWebmaker. @@ Mapping Table Cell. @@Mapping Table Title.  vp  Bold 3  Chapter #  code  Emphasis  EquationVariables 3  Figure Helv23  Small Helv   Subscript   Superscript # Times-Italic  Typeface   Typeface-Bold [  ڝ [  [  )  Chapter # ڝ ڝ yc>  yc>  i_mF ڝ$tu  ڝ ڝ tu  tu Emphasis i_mF Emphasisڝ`f )  ) [  i_mF )  `f  tu  ڝPrevailing Font ڝ Changed ڝ ڝPrevailing Font ڝ  ڝ Not Changed | Graphic ڝ Changed ڝChanged vpPrevailing Font ̣x  vp 3 8 Bold i_mF  3 8  vpBoldComment Bad for Webmakerd@BlackAT!Whitedd@AReddd@Greendd@ Blued@Cyand@Magentad@ YellowHeader/Footer $1Header/Footer $1Header/Footer $2Header/Footer $2IndexIndexCommentCommentSubjectSubjectAuthorAuthorGlossaryGlossaryEquationEquation Hypertext Hypertext  Cross-Ref Cross-Ref Conditional TextConditional TextPositionFMPrivatePositionFMPrivateRangeEndFMPrivateRangeEndFMPrivate HTML Macro HTML Macro Cover.fm**Silo Users GuideChapter1.fm**Chapter 1 Introduction to Silo Chapter2-start.fm**!Chapter 2 C and Fortran Functions Silo.bookLOP.fmLOP API-SectionFunc-Title-Head**2Error Handling and Other Global Library Behavior 7Chapter2-man_pages.fm**>1 API Section Error Handling and Other Global Library Behavior  silo.h.fm**/*% Helvetica-Bold FrameRoman Times-Roman FrameRomanTimesNewRomanPSMT FrameRomanTimesNewRomanPS-ItalicMT FrameRoman Helvetica FrameRomanCourier FrameRoman Times-Italic FrameRoman Courier-Bold FrameRoman Times-Bold FrameRomanCourier-Oblique FrameRomanArialMT FrameRomanTimesNewRomanPS-BoldMT FrameRomanArialCourier HelveticaTimes TimesNewRoman RegularRegularBoldRegularObliqueItalicS C/*[IuA(1ы>F$'U-&fSA;sX(,3ߊ  Aa, y0`@ @  P @P @ eBookiHH $ @d HHHH̀̀̀ff@  d Footnote TableFootnote**. . / - :;,.!?_K6" nyTOCHeading1Heading2   EquationVariables <  <$lastpagenum><$monthname> <$daynum>, <$year>"<$monthnum>/<$daynum>/<$shortyear><$monthname> <$daynum>, <$year>"<$monthnum>/<$daynum>/<$shortyear><$monthname> <$daynum>, <$year>"<$monthnum>/<$daynum>/<$shortyear> <$fullfilename> <$filename> <$paratext[Title]> <$paratext[Heading1]> <$curpagenum> <$marker1> <$marker2> (Continued)+ (Sheet <$tblsheetnum> of <$tblsheetcount>)Heading & Page <$paratext> on page<$pagenum>Pagepage<$pagenum>See Heading & Page%See <$paratext> on page<$pagenum>. Table All7Table<$paranumonly>, <$paratext>, on page<$pagenum>Table Number & Page'Table<$paranumonly> on page<$pagenum> CCDDEEAFFGGHHAIIJJKKALMAP7 BookHeadings\?BookHTML z>t==~?>?==@s?o>AEE|BBBF!F#F%F'G)F9=>B@BBBDFFFHFJFLFNFiFkFmFoFqFsFuFwFyF{F}FFFFFFFFBBBBFFFFFFFFBBBFFFFFFBBBBF!F#F%F'F)F FF-F FFFFLFFOFQFSFUFWFYF9FF]F_FaFcFeFgFiF*FFmFoFqFsFuFwFyFFF}FFFFFFFFFFF+FF,FFFF:FF;FFFFBBBFFFFFFBBBBBFFFFFFFFFFFFFFF0F2F4F6F8F:F<F>F@FBFDFFFHFJFLFNFPFRFTFVFXFZF\F^F`FbFdFfFhFjFlFnFpFrFtFvFxFzF|F~FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF F FFFFFFFFFF F"F$F&F(F*F,F.F0F2F4F6F8F:F<F>F@FBFDFFFHFJFLFNFPFRFTFVFXFZF\F^F`FbFdFfFhFjFlFnFpFrFtFvFxFzF|F~FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF F FFFFFFFFFF F"F$F&F(F*F,F.F0F2F4F6F8F:F<F>F@FBFDFFFHFJFLFNFPFRFTFVFXFZF\F^F`FbFdFfFhFjFlFnFpFrFtFvFxFzF|F~FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF F FFFFFFFFFF F"F$F&F(F*F,F.F0F2F4F6F8F:F<F>F@FBFDFFFHFJFLFNFPFRFTFVFXFZF\F^F`FbFdFfFhFjFlFnFpFrFtFvFxFzF|F~FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF F FFFFFFFFFF F"F$F&F(F*F,F.F0F2F4F6F8F:F<F>F@FBFDFFFHFJFLFNFPFRFTFVFXFZF\F^F`FbFdFfFhFjFlFnFpFrFtFvFxFzF|F~FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFGFFIFFFFFFFFFFSFFUFFFFFF;FF=FFOFFQFFsFFuFFFFFF+FF-FFOFFQFFcFFeFFFFFFFFFFFFFFFFQFFSFFQFFYFFXFFOFFWFFVFFUFFLFFTFFKFFQFFQFFQFFQFFSFFQFFRFFQFFPFF O FFOFFNFFMF F"L$F&F(K*F,F.J0F2F4J6F8F:J<F>F@KBFDFFHHFJFLGNFPFRJTFVFXIZF\F^H`FDDEE7dkCEdqFH H$lH$CW ` HUamHUaDW l  #  HHˆnHHˆEWUTUTd H$H$FW` HUaHUaGWl # HHˆ HHˆHWUTUTd dvIK H$w H$IW` HUax HUaJW` HHˆy HHˆKWUTUTd dq HR`@q HR`@HRHRFootnote Hq3@`@q Hq3@`@HzHz Single LineHq Footnote   H3D`@q H3D`@HH Double LineHq  Double LineHq  Single LineHZq  TableFootnote EGVR`@q EGVR`@EPwEPw TableFootnoted5p7 HHˆHHˆ@L `  `Silo Users Guide   Revision: August 2010 !Version: 4.8 of the Silo Library /X@'Document Release Number LLNL-SM-453191 1 qThis document was prepared as an account of work sponsored by an agency of the United States government. Neither = mthe United States government nor Lawrence Livermore National Security, LLC, nor any of their employees makes xany warranty, expressed or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or ! wusefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe p!vprivately owned rights. Reference herein to any specific commercial product, process, or service by trade name, trade nmark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or qfavoring by the United States government or Lawrence Livermore National Security, LLC. The views and opinions of uauthors expressed herein do not necessarily state or reflect those of the United States government or Lawrence Liver@dmore National Security, LLC, and shall not be used for advertising or product endorsement purposes. Hj11;%u w@@nY8vYZNn ))@Bı\0Hu_WŠKŠLu!*\0:BT2Z))iI NiI-uT2{:F!*?*0{(x_6{(xH?*ı@Fn gNN; %xQajsR=&sR=4aja-f(D\$j3j3\$TnD)ּ-AY,aOhY4OhY&AY,)ֽ1Tn;,,f'<1aj ]//;!%yxqqAxk,8ЛBhBI=IEOBhb,0%770%b\EP =CbМ I\x |<DD;"  % ER \\|^h<"Y^h) ݜ@{;n{;n;# !%!/ W#`W#`99eXש'l CigpTpT;$  "% "6f"ޗ7XCx_.Eg%PUj,j^Lxmr !#%!#LxmrPLxb)n jX ;& "$%"$'x*<vi X€N3Xؔ,nKݍ77 #%%#nKݍ77ݍnK)GCig<3( $.@?Cig<3$Gݍ`V) L'Gݍ`VGmR* &(GmRG!-E+')G!-EG:-8 (*G:-8 4:-G:-G!-E )+G!-E 4!-G!-GmR*,GmR@mGmGݍ`{8+-Gݍ`{8GݍGݍJP8,4GݍJP8GݍG:-U,;1%/>/|j—ffe(-њ;2.0>.05D+zY@^L::;3/1>/1~΅7e_4;4 02>029Gt5s5siד;6 13>13@.Iۃۃ;728>2= /Lѷ J/>ɹ8-5J/>ɹJ/mJ/m J/>ɹ946J/>ɹJ/mJ/m J/>ɹ:57J/>ɹJ/mJ/m J/>ɹ;6J/>ɹJ/mJ/m 뭿;#;#;<39<9='kp= `= `Lawrence v 4/4/;=8:<8:H 郪5pHnHn Livermore i𞵫;>9;<9;٣Dpp٣٣National ,4 ;?:<<:R뭻M58; @&j&j;5<>>3\3Ӑȑ)vn35Vaֳ~~;E=??<С扯J.=RLaLa;F>@@%@I٬n@j<>Cig<3G?LCig<3%?dTMM HHˆUAHHˆM`  kThis work was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National P@_Laboratory in part under Contract W-7405-Eng-48 and in part under Contract DE-AC52-07NA27344. H$DH$lHUaCEHUalHHˆDHHˆlH$GH$lHUaFHHUalHHˆGHHˆlH$ JH$ lHUa IKHUa lHHˆ JHHˆ lHHˆ@&HHˆM lHHˆAHHˆLBB ldPP $$N$$Q`P[XUROLIGUTBm  $$N$$7OO l} NT OGeHeadings Table } N OGe } N OGe }lNQUlOGeHeading Level } NTVOGeParagraph Format }"NUWOGe Comments }l$NVXlOGe11 }&NWYOGe 1Heading }(NX2OGe d7\\ $$8Z$$x>\x ~ytoje`[VQLGB=83.)$ |wrmhc^YTOJE@;61,'" zupkfa\WRMHC>94/*%  }xsnid_ZU58;FC@ 1-)%! x|]`curolifGUTBm       $$:Z$$T[[ l} ==` >GeCharacter Macros } ?= >Ge } A= >Ge }HC=]aH>Ge Character }E=`b>Ge Replace With }G=ac>G e Comments }HI=bdH>G!e }K=ce>G"e¢ }M=du>G#e }Hh=kgH>G$e }j=fh>G%e... }l=g>G&e }Hn=njH>G'e }p=ik>G(e- }r=jf>G)e }Ht=qmH> G*e }v=ln> G+e-- }x=mi> G,e }Hz=tpH> G-e }|=oq> G.e° }~=pl> G/e }H=wsH> G0e }=rt> G1e® }=so> G2e }H=evH> G3e }=uw> G4e© }=vr> G5e } = | > G6eGeneral Macros } = > G7e } = > G8e } = > G9e }h=x}h>G:e Macro Name }h=|~h>G;e Replace With }h=}h>G<eHead }=~>G=e Comments }h=h>G>e }h=h>G?e }h=h>G@e }=]>GAe } = > GBeCross-Reference Macros } = > GCe } = > GDe }=> GEe Macro Name }= > GFe Replace With }= > GGe Comments }= > GHe See Also }= > GIeSee <$paratext> }= x> GJe } :B ; GKeSystem Macros } : ; GLe } : ; GMe } : ; GNe }h: h; GOe Macro Name }h :h; GPe Replace With }h":h; GQeHead }h$:h; GRe Comments }h:&:h:; GSe StartOfDoc }h:(:h:; GTe }h:*:h::; Ye U��e <$defaulttitle> W��e AXe }h:,:h:; GVe }hN= h> GZeEndOfLastSubDoc }hP=h> G[e }hR=h> G\e }hT=h> G]e }h:V=$h:> G^eStartOfLastSubDoc }h:X=h:> G_e }h:Z= h::> ~e `��e <$defaulttitle> |��e A}e }h:\=h:> Gae }h^=("h> GbeEndOfFirstSubDoc }h`=!#h> Gce }hb="$h> Gde }hd=#h> Gee }h:f=,&h:> GfeStartOfFirstSubDoc }h:h=%'h:> Gge }h:j=&(h::> {e h��e <$defaulttitle> y��e Aze }h:l='!h:> Gie }hn=0*h> Gje EndOfSubDoc }hp=)+h> Gke }hr=*,h> Gle }ht=+%h> Gme }h:v=4.h:> GneStartOfSubDoc }h:x=-/h:> Goe }h:z=.0h::> xe p��e <$defaulttitle> v��e Awe }h:|=/)h:> Gqe }h~=2h> Gre EndOfDoc }h=13h> Gse }h=24h> Gte }h=3-h> Gue } :Y8 ; GeHTML Options Table } : ; Ge } : ; Ge }:59; GeControl }:8:; GeValue }H:9;H; Ge Comments }::<; Ge Image Format }:;=; Ge0001IMAGGIF GIF }H:D.[ !G eFrameMaker Source Item }~ZCF~[ !Ge XML Item }6Z6[ !Ge }6.ZDG6.[ !g%Include EAuto# }.ZFI.[ !Ge Comments }Z[ "Ge }HZGJH[ "GeElement }6ZIM6[ "g%New Web EPage? }6Z6[ "Ge }Z[ "Ge }ZJN[ #Ge P:1Heading }HZMOH[ #GeH* }6ZNP6[ #GeN }6ZOQ6[ #GeN }ZP2[ #Ge dTT $$R$$Z T ~ytoje`[VQLGB=83.)$ |Zwrmhc^YTOJE@;61,'" zupkfa\WRMHC>94/*%  }xsnid_ZU58;FC@ 1-)%! x|]`curolif$$R$$\9SS l}/:^V; $GeX:Table Number & Page }H1:UWH; $Ge See Also }63:VX6; $GeN }65:WY6; $GeN }7:X5; $G e }9:c[; %G!e X:Table All }H;:Z\H; %G"e See Also }6=:[]6; %G#eN }6?:\^6; %G$eN }A:]U; %G%e }C:h`; &G&eX:Table & Page }HE:_aH; &G'e See Also }6G:`b6; &G(eN }6I:ac6; &G)eN }K:bZ; &G*e }M:me; 'G+eX:See Heading & Page }HO:dfH; 'G,e See Also }6Q:eg6; 'G-eN }6S:fh6; 'G.eN }U:g_; 'G/e }W:rj; (G0eX:Page }HY:ikH; (G1e See Also }6[:jl6; (G2eN }6]:km6; (G3eN }_:ld; (G4e }a:wo; )G5eX:Heading & Page }Hc:npH; )G6e See Also }6e:oq6; )G7eN }6g:pr6; )G8eN }i:qi; )G9e }k:|t; *G:eX:Figure & Page }Hm:suH; *G;e See Also }6o:tv6; *G<eN }6q:uw6; *G=eN }s:vn; *G>e }u:y; +g?%X:Appendix A Heading & EPage }Hw:xzH; +G@e See Also }6y:y{6; +GAeN }6{:z|6; +GBeN }}:{s; +GCe }:~; ,GDeC:Typeface-Bold }H:}H; ,GEeEM }6:~6; ,GFeN }6:6; ,GGeN }:x; ,GHe }: ; -GIe C:Typeface }H:H; -GJeEM }6:6; -GKeN }6:6; -GLeN }:}; -GMe }:; .GNeC:Times-Italic }H: H; .GOeEM }6: 6; .GPeN }6: 6; .GQeN }: ; .GRe }: ; /GSeC:Superscript }H: H; /GTeEM }6: 6; /GUeN }6:6; /GVeN }:; /GWe }:; 0GXe C:Subscript }H:H; 0GYeEM }6:6; 0GZeN }6:6; 0G[eN }: ; 0G\e }:; 1G]e C:Small Helv }H:H; 1G^eEM }6:6; 1G_eN }6:6; 1G`eN }:; 1Gae }:$; 2GbeC:Not Changed }H:H; 2GceEM }6:6; 2GdeN }6:6; 2GeeN }:; 2Gfe }:)!; 3Gge C:Graphic }H: "H; 3GheEM }6:!#6; 3GieN }6:"$6; 3GjeN }:#; 3Gke }:.&; 4GleC:gloss }H:%'H; 4GmeEM }6:&(6; 4GneN }6:')6; 4GoeN }:( ; 4Gpe }:3+; 5GqeC:fname }H:*,H; 5GreEM }6:+-6; 5GseN }6:,.6; 5GteN }:-%; 5Gue }:80; 6GveC:Figure Helv }H:/1H; 6GweEM }6:026; 6GxeN }6:136; 6GyeN }:2*; 6Gze }:=5; 7G{eC:EquationVariables }H:46H; 7G|eEM }6:576; 7G}eN }6:686; 7G~eN }:7/; 7Ge }:B:; 8Ge C:Emphasis }H:9;H; 8GeEM }6::<6; 8GeN }6:;=6; 8GeN }:<4; 8Ge }:G?; 9GeC:code }H:>@H; 9GeEM }6:?A6; 9GeN }6:@B6; 9GeN } :A9; 9G e } :LD; :G e C:Chapter # }H :CEH; :G eEM }6:DF6; :G eN }6:EG6; :G eN }:F>; :Ge }:QI; ;Ge C:Changed }H:HJH; ;GeEM }6:IK6; ;GeN }6:JL6; ;GeN }:KC; ;Ge }:VN; <GeC:Bold }H!:MOH; <GeEM }6#:NP6; <GeN }6%:OQ6; <GeN }':PH; <Ge }):[S; =Ge C:allcaps }H+:RTH; =GeEM }6-:SU6; =GeN }6/:TV6; =GeN }1:UM; =Ge }3:X; >GeP:Typedef-topcomment }H5:WYH; >GeH* }67:XZ6; >G eN }69:Y[6; >G!eN };:ZR; >G"e }=7e]8 ?G#eP:Typedef-First }H?7\^H8 ?G$eH* }6A7]_68 ?G%eN }6C7^`68 ?G&eN }E7_8 ?G'e }G7jb8 @G(eP:Typedef-Comment }HI7acH8 @G)eH* }6K7bd68 @G*eN }6M7ce68 @G+eN }O7d\8 @G,e }Q7og8 AG-e P:Typedef }HS7fhH8 AG.eH* }6U7gi68 AG/eN }6W7hj68 AG0eN }Y7ia8 AG1e }[7tl8 BG2eP:TopForWebmaker }H]7kmH8 BG3eP }6_7ln68 BG4eN }6a7mo68 BG5eN }c7nf8 BG6e }e7yq8 CG7eP:TOC section }Hg7prH8 CG8eP }6i7qs68 CG9eN }6k7rt68 CG:eN }m7sk8 CG;e }o7~v8 DG<eP:Title }Hq7uwH8 DG=eH* }6s7vx68 DG>eN }6u7wy68 DG?eN }w7xp8 DG@e }y7{8 EGAeP:TableTitleTOC }H{7z|H8 EGBeP }6}7{}68 EGCeN }67|~68 EGDeN }7}u8 EGEe }78 FGFe P:TableTitle }H7H8 FGGeH* }6768 FGHeN }6768 FGIeN }7z8 FGJe }7 8 GGKeP:TableFootnote }H7H8 GGLeH* }6768 GGMeN }6768 GGNeN }78 GGOe },7 ,8 HGPeP:Step }H,7 H,,8 HQeLI e Parent = OL Ae Depth = 0 }6,7 6,8 HGReN }6,7 6,8 HGSeN },7 ,8 HGTe }78 IGUe P:quikref }H7H8 IGVeP }6768 IGWeN }6768 IGXeN }7 8 IGYe },7,8 JGZe P:Numbered1 }H,7H,,8 J[eLI e Parent = OL Ae Depth = 0 }6,76,8 JG\eN }6,76,8 JG]eN },7,8 JG^e },7!,8 KG_e P:Numbered }H,7H,,8 K`eLI e Parent = OL Ae Depth = 0 }6,76,8 KGaeN }6,76,8 KGbeN },7,8 KGce }7&8 LGdeP:Note to Sean }H7H8 LGeeH* }67 68 LGfeN }67!68 LGgeN }7 8 LGhe }7+#8 MGieP:note }H7"$H8 MGjeP }67#%68 MGkeN }67$&68 MGleN }7%8 MGme }70(8 NGneP:Mapping Table Title }H7')H8 NGoeP }67(*68 NGpeN }67)+68 NGqeN }7*"8 NGre }75-8 OGseP:Mapping Table Cell }H7,.H8 OGteP }67-/68 OGueN }67.068 OGveN }7/'8 OGwe }7:28 PGxe P:liebe code }H713H8 PGyeP }672468 PGzeN }673568 PG{eN }74,8 PG|e }7?78 QG}e P:Indented }H768H8 QG~eP }677968 QGeN }678:68 QGeN }7918 QGe }7D<8 RGeP:HeadingRunIn }H7;=H8 RGeP }67<>68 RGeN }67=?68 RGeN }7>68 RGe }7IA8 SGe P:Heading2 }H7@BH8 SGeH* }6 7AC68 SG eN }6 7BD68 SG eN } 7C;8 SG e }7NF8 TG e P:Heading1 }H7EGH8 TG eH* }67FH68 TGeN }67GI68 TGeN }7H@8 TGe }7SK8 UGe P:Heading }H7JLH8 UGeP }67KM68 UGeN }67LN68 UGeN }!7ME8 UGe }#7XP8 VGeP:header right }H%7OQH8 VGeP }6'7PR68 VGeN }6)7QS68 VGeN }+7RJ8 VGe }-7]U8 WGeP:header left }H/7TVH8 WGeP }617UW68 WGeN }637VX68 WGeN }57WO8 WGe }77bZ8 XG e P:Header }H97Y[H8 XG!eP }6;7Z\68 XG"eN }6=7[]68 XG#eN }?7\T8 XG$e }A7g_8 YG%e P:HangIn }HC7^`H8 YG&eP }6E7_a68 YG'eN }6G7`b68 YG(eN }I7aY8 YG)e }K7ld8 ZG*e P:glossary }HM7ceH8 ZG+eP }6O7df68 ZG,eN }6Q7eg68 ZG-eN }S7f^8 ZG.e }U7qi8 [G/eP:Func-Title-Head }HW7hjH8 [G0eH* }6Y7ik68 [G1eN }6[7jl68 [G2eN }]7kc8 [G3e }_7vn8 \G4e P:Func-Title }Ha7moH8 \G5eH* }6c7np68 \G6eN }6e7oq68 \G7eN }g7ph8 \G8e },i7{s,8 ]G9eP:Func-Syn-Hdr-F77 }H,k7rtH,,8 ]:eLI e Parent = UL Ae Depth = 0 }6,m7su6,8 ]G;eN }6,o7tv6,8 ]G<eN },q7um,8 ]G=e },s7x,8 ^G>eP:Func-Syn-Hdr-C }H,u7wyH,,8 ^?eLI e Parent = UL Ae Depth = 0 }6,w7xz6,8 ^G@eN }6,y7y{6,8 ^GAeN },{7zr,8 ^GBe }}R}S _GCeP:Func-Syn-Hdr }HR|~HS _GDeH* }6R}6S _GEeN }6R~6S _GFeN }RS _GGe }R S `GHeP:Func-Summary }HRHS `GIeP }6R6S `GJeN }6R6S `GKeN }R|S `GLe }RS aGMeP:Func-Ret-Hdr }HRHS aGNeH* }6R 6S aGOeN }6R 6S aGPeN }R S aGQe }R S bGReP:Func-Note-Hdr }HR HS bGSeH* }6R 6S bGTeN }6R 6S bGUeN }RS bGVe }RS cGWeP:Func-Desc-Hdr }HRHS cGXeH* }6R6S cGYeN }6R6S cGZeN }R S cG[e }RS dG\eP:Func-Body-Type }HRHS dG]eP }6R6S dG^eN }6R6S dG_eN }RS dG`e }R#S eGae P:Func-Body }HRHS eGbeP }6R6S eGceN }6R6S eGdeN }RS eGee }R( S fGfeP:Func-Arglist-Head }HR!HS fGgeH* }6R "6S fGheN }6R!#6S fGieN }R"S fGje }R-%S gGkeP:Func-Arglist-Hdr }HR$&HS gGleH* }6R%'6S gGmeN }6R&(6S gGneN }R'S gGoe },R2*,S hGpeP:Func-Arglist-Contd }H,R)+H,,S hqeLI  e Parent = UL A e Depth = 0 }6,R*,6,S hGreN }6,R+-6,S hGseN },R,$,S hGte }R7/S iGueP:Func-Arglist }HR.0HS iGveH* }6R/16S iGweN }6R026S iGxeN }R1)S iGye },R<4,S jGzeP:Func-Arg-Hdr-F77 }H,R35H,,S j{eLI  e Parent = UL A e Depth = 0 }6,R466,S jG|eN }6,R576,S jG}eN },R6.,S jG~e },RA9,S kGeP:Func-Arg-Hdr-C }H,R8:H,,S keLI e Parent = UL A e Depth = 0 }6,R9;6,S kGeN }6,R:<6,S kGeN },R;3,S kGe }RF>S lGeP:Func-Arg-Hdr }HR=?HS lGeH* }6R>@6S lGeN }6R?A6S lGeN }R@8S lGe } RKCS mG e P:Footnote }H RBDHS mG eP }6 RCE6S mG eN }6RDF6S mG eN }RE=S mG e }RPHS nGeP:footer right }HRGIHS nGeP }6RHJ6S nGeN }6RIK6S nGeN }RJBS nGe }RUMS oGeP:footer left }HRLNHS oGeP }6!RMO6S oGeN }6#RNP6S oGeN }%ROGS oGe }'RZRS pGeP:footer first }H)RQSHS pGeP }6+RRT6S pGeN }6-RSU6S pGeN }/RTLS pGe }1R_WS qGe P:Footer }H3RVXHS qGeP }65RWY6S qGeN }67RXZ6S qG eN }9RYQS qG!e },;Rd\,S rG"eP:FirstChapter }H,=R[]H,,S r#eLI e Parent = UL Ae Depth = 0 }6,?R\^6,S rG$eN }6,AR]_6,S rG%eN },CR^V,S rG&e }ERiaS sG'e P:FirstBody }HGR`bHS sG(eP }6IRac6S sG)eN }6KRbd6S sG*eN }MRc[S sG+e }ORnfS tG,eP:FigureTOCLOF }HQRegHS tG-eP }6SRfh6S tG.eN }6URgi6S tG/eN }WRh`S tG0e }YRskS uG1e P:FigureTOC }H[RjlHS uG2eP }6]Rkm6S uG3eN }6_Rln6S uG4eN }aRmeS uG5e }cRxpS vG6e P:FigureLOF }HeRoqHS vG7eP }6gRpr6S vG8eN }6iRqs6S vG9eN }kRrjS vG:e }mR}uS wG;e P:Figure }HoRtvHS wG<eH* }6qRuw6S wG=eN }6sRvx6S wG>eN }uRwoS wG?e }wRzS xG@e P:Extract }HyRy{HS xGAeP }6{Rz|6S xGBeN }6}R{}6S xGCeN }R|tS xGDe },R,S yGEe P:Equation }H,R~H,,S yFeLI e Parent = OL Ae Depth = 0 }6,R6,S yGGeN }6,R6,S yGHeN },Ry,S yGIe }R S zGJeP:Disclaimer Bottom }HRHS zGKeP }6R6S zGLeN }6R6S zGMeN }R~S zGNe }R S {GOeP:Disclaimer Body }HR HS {GPeP }6R 6S {GQeN }6R 6S {GReN }R S {GSe }RS |GTe P:Disclaimer }HR HS |GUeH* }6R6S |GVeN }6R6S |GWeN }RS |GXe }Z[ }GYeP:Definition Body }HZH[ }GZeP }6Z6[ }G[eN }6Z6[ }G\eN }Z[ }G]e }Z [ ~G^e P:Definition }HZH[ ~G_eH* }6Z6[ ~G`eN }6Z6[ ~GaeN }Z[ ~Gbe }Z%[ GceP:CStep }HZH[ GdeP }6Z6[ GeeN }6Z 6[ GfeN }Z[ Gge }Z*"[ Ghe P:Cover top }HZ!#H[ GieH* }6Z"$6[ GjeN }6Z#%6[ GkeN }Z$[ Gle }Z/'[ GmeP:Cover title }HZ&(H[ GneH* }6Z')6[ GoeN }6Z(*6[ GpeN }Z)![ Gqe }Z4,[ Gre P:Cover date }HZ+-H[ GseP }6Z,.6[ GteN }6Z-/6[ GueN }Z.&[ Gve }Z91[ GweP:CodeExample }HZ02H[ GxeP }6Z136[ GyeN }6Z246[ GzeN }Z3+[ G{e }Z>6[ G|e P:Code out }HZ57H[ G}eP }6Z686[ G~eN }6Z796[ GeN }Z80[ Ge }ZC;[ GeP:Code }HZ:<H[ GeP }6Z;=6[ GeN }6Z<>6[ GeN }Z=5[ Ge }ZH@[ Ge P:ChapterTOC }HZ?AH[ GeH* }6Z@B6[ GeN }6 ZAC6[ G eN } ZB:[ G e } ZME[ G eP:Chapter (notag)TOC }HZDFH[ G eH* }6ZEG6[ G eN }6ZFH6[ GeN }ZG?[ Ge }ZRJ[ GeP:Chapter (notag) }HZIKH[ GeH* }6ZJL6[ GeN }6ZKM6[ GeN }ZLD[ Ge }!ZWO[ GeP:Chapter (not inc) }H#ZNPH[ GeH* }6%ZOQ6[ GeN }6'ZPR6[ GeN })ZQI[ Ge }+Z\T[ Ge P:Chapter }H-ZSUH[ GeH* }6/ZTV6[ GeN }61ZUW6[ GeN }3ZVN[ Ge }5ZaY[ GeP:CellHeading }H7ZXZH[ G eP }69ZY[6[ G!eN }6;ZZ\6[ G"eN }=Z[S[ G#e }?Zf^[ G$e P:CellBody }HAZ]_H[ G%eP }6CZ^`6[ G&eN }6EZ_a6[ G'eN }GZ`X[ G(e }IZkc[ G)e P:CBullet }HKZbdH[ G*eP }6MZce6[ G+eN }6OZdf6[ G,eN }QZe][ G-e },SZph,[ G.e P:Bulleted }H,UZgiH,,[ /eLI e Parent = UL Ae Depth = 0 }6,WZhj6,[ G0eN }6,YZik6,[ G1eN },[Zjb,[ G2e },]Zum,[ G3e P:Bullet }H,_ZlnH,,[ 4eLI e Parent = UL Ae Depth = 0 }6,aZmo6,[ G5eN }6,cZnp6,[ G6eN },eZog,[ G7e }gZzr[ G8eP:Body }HiZqsH[ G9eP }6kZrt6[ G:eN }6mZsu6[ G;eN }oZtl[ G<e }qZw[ G=eP:AppendixTOC }HsZvxH[ G>eH* }6uZwy6[ G?eN }6wZxz6[ G@eN }yZyq[ GAe }{Z|[ GBe P:Appendix3 }H}Z{}H[ GCeP }6Z|~6[ GDeN }6Z}6[ GEeN }Z~v[ GFe }Z [ GGe P:Appendix2 }HZH[ GHeH* }6Z6[ GIeN }6Z6[ GJeN }Z{[ GKe }Z[ GLe P:Appendix1 }HZH[ GMeH* }6Z6[ GNeN }6Z 6[ GOeN }Z[ GPe }Z [ GQe P:Appendix }HZ H[ GReH* }6Z 6[ GSeN }6Z 6[ GTeN }Z [ GUe }Z[ GVe P:3Heading }HZH[ GWeH* }6Z6[ GXeN }6Z6[ GYeN }Z [ GZe }Z[ G[eP:2HeadingTOC }HZH[ G\eP }6Z6[ G]eN }6Z6[ G^eN }Z[ G_e }Z"[ G`e P:2Heading }HZH[ GaeH* }6Z6[ GbeN }6Z6[ GceN }Z[ Gde },Z',[ GeeP:1Step }H,Z H,,[ feLI ~e Parent = OL Ae Depth = 0 }6,Z!6,[ GgeN }6,Z "6,[ GheN },Z!,[ Gie }Z,$[ GjeP:1HeadingTOC }HZ#%H[ GkeP }6Z$&6[ GleN }6Z%'6[ GmeN }Z&[ Gne }Z1)[ GoeP:1Heading-TOPTOC }HZ(*H[ GpeP }6Z)+6[ GqeN }6Z*,6[ GreN }Z+#[ Gse }Z6.[ GteP:1Heading-TOP }HZ-/H[ GueP }6Z.06[ GveN }6Z/16[ GweN }Z0([ Gxe }ZQ3[ GyeP:1Heading - TOP }HZ24H[ GzeP }6Z356[ G{eN }6Z466[ G|eN }Z5-[ G}e d99 $$7$$ :w`9 wrmhc^YTOJE@;61,'" zupkfa\:WRMHC>94/*%  }xsnid_ZU58;FC@ 1-)%! x|]`curolif$$7$$T<88 ld<< $$:$$$W<$WRMHC>94/*%  }xsnid_ZU58;FC@ 1-)%! x|]`curolif$$:$$9?;; ld?? $$=$$1h?1-)%! x|]`curolif$$=$$<>> l}:EA; GeCSS Export Encoding }:@B; Ge }H:A H; Ge }:HD; GeExport Encoding }:CE; Ge }H:D@H; Ge }:=G; Ge!Copy Files Imported by Reference }:FH; GeN }H:GCH; G e }l5NJl6!G!e20 }5IK6!G"%UTeTypedef-topcomment }5J6!G#e }l5QMl6"G$e23 }5LN6"G%'UTeTypedef-First }5MI6"G&e }l5TPl6#G'e21 }5OQ6#G(%UTeTypedef-Comment }5PL6#G)e }l5WSl6$G*e19 }5RT6$G+-UTeTypedef }5SO6$G,e }l5ZVl6%G-e3 }5UW6%G., eTitle }5VR6%G/e }l5]Yl6&G0e13 }5XZ6&G1e TableTitle }5YU6&G2e }l5\l6'G3e17 }5[] 6'G4+eTableFootnote }5\X6'G5e }lNc_lO(G6e4 }N^`O(G7*UTe Note to Sean }N_O(G8e }lNfblO)G9e6 }NacO)G:)e Heading2 }Nb^O)G;e }lNielO*G<e4 }NdfO*G=!UTe Heading1 }NeaO*G>e }lNlhlO+G?e18 }NgiO+G@(UTeFunc-Title-Head }NhdO+GAe }lNoklO,GBe5 }NjlO,GC UTe Func-Title }NkgO,GDe }lNrnlO-GEe8 }NmoO-GF%UTe Func-Syn-Hdr }NnjO-GGe }lNuqlO.GHe8 }NprO.GI%UTe Func-Ret-Hdr }NqmO.GJe }lNxtlO/GKe8 }NsuO/GL%UTeFunc-Note-Hdr }NtpO/GMe }lN{wlO0GNe8 }NvxO0GO%UTeFunc-Desc-Hdr }NwsO0GPe }lN~zlO1GQe22 }Ny{O1GR'UTeFunc-Arglist-Head }NzvO1GSe }lN}lO2GTe8 }N|~O2GU%UTeFunc-Arglist-Hdr }N}yO2GVe }lNlO3GWe9 }NO3GX&UTe Func-Arglist }N|O3GYe }lNlO4GZe8 }NO4G[%UTe Func-Arg-Hdr }NO4G\e }lN lO5G]e15 }N O5G^$eFigure }NO5G_e }lN lO6G`e10 } N O6Gae Disclaimer } N O6Gbe }l N lO7Gce16 }N O7Gde Definition }N O7Gee }lNlO8Gfe7 }NO8Gg#e Cover top }N O8Ghe }lNNlNO9Gie1 }NNNNO9gj"% Cover tiEtle }NNNO9Gke }lNlO:Gle4 }!NO:Gm!UTe ChapterTOC }#NO:Gne }l%NlO;Goe5 }'NO;Gp UTeChapter (notag)TOC })NO;Gqe }l6+Nl6O<Gre2 }6-N66O<gs% Chapter (noEtag) }6/N6O<Gte }l61N"l6O=Gue2 }63N66O=gv% Chapter (not Einc) }65N6O=Gwe }l7N%!lO>Gxe2 }9N "O>GyeChapter };N!O>Gze }l=N($lO?G{e5 }?N#%O?G| UTe AppendixTOC }AN$ O?G}e }lCN+'lO@G~e12 }EN&(O@Ge Appendix2 }GN'#O@Ge }lIN.*lOAGe11 }KN)+OAGe Appendix1 }MN*&OAGe }lON1-lOBGe2 }QN,.OBGe Appendix }SN-)OBGe }lUN40lOCGe14 }WN/1 OCGe 3Heading }YN0,OCG e }l[NY3lODG e12 }]N24ODG e 2Heading }_N3/ODG e d77 $$5$$[K7[XUROLI$$5$$P66 l dLeftdRightd Firstd  ReferencedFirstdAd N BookHeadingsd ZBookHTMLd RBookHTMLd 7BookHTMLd :BookHTMLd =BookHTMLd5 BookHeadingsBf@HQ  ~  1Heading 1Heading RuleH:\t.\t FirstBody. fff@SE ff 1Step Step Number S:.\tStep. _f@HQ  ~  2HeadingH:\t..\t FirstBody. _ f@HQ  ~  3HeadingH:\t...\t FirstBody. f@ Body. f@ ff  Bullet Bullet Symbol\t. f@  Bulleted\t. fffff@ CBullet. f@  CellBody. f@   CellHeading. c,f@HA Chapter Chapter #H:CHAPTER \t FirstBody. @@Mapping Table Title. xf@$ Cover title. f@  Cover top. ,f@ Cover date. @@ Mapping Table Cell. ,f@ Cover date. @@ Body. fffff@ CStep. f@D  DisclaimerDisclaimer Body. f@ Disclaimer Body. f@ Disclaimer Bottom. f@E EquationEquation Number E:(EQ ). f@ Extract. f@FA   Figure Table Top Step NumberF:FIGURE \tBody. f@D  FirstBodyBody. c,f@HA FirstChapter Chapter #H:\t FirstBody. @@   Footer. f@ Footnote. f@E  Func-Arg-HdrEmphasis Arguments: Func-Arglist. f@E Func-Arg-Hdr-CEmphasisArguments (C only): Func-Arglist. f@E Func-Arg-Hdr-F77EmphasisArguments (Fortran only): Func-Arglist. l$f@E l Func-ArglistEmphasis Func-Arglist. llf@E l Func-Arglist-ContdEmphasis Func-Arglist. $$f@      Func-Body. $f@D  @  Func-Body-TypeFunc-Body-Type. f@E  Func-Desc-HdrEmphasis Description: Func-Body. f@E  Func-Note-HdrEmphasisNotes: Func-Body. f@E  Func-Ret-HdrEmphasisReturns: Func-Body. $f@D  zff Func-Summary Func-Summary. f@E  Func-Syn-HdrEmphasis Synopsis: Func-Body-Type. f@E Func-Syn-Hdr-CEmphasisSynopsis (C): Func-Body-Type. f@E Func-Syn-Hdr-F77EmphasisSynopsis (Fortran): Func-Body-Type. f@D Func-Title Func-Syn-Hdr. f@  HangIn. @@   Header. f@THeadingBody. f@THeading1Body. f@T Heading2Body. f@T  HeadingRunInBody. f@  Indented. f@  Numbered.\t. f@E  Numbered1.\tNumbered. fff@S ff Step Step Number S:.\t. f@  TableFootnote. f@T  TableTitle Table Top Step NumberT:TABLE \t. f@PTitleBody. f@   CellHeading. f@   CellBody. f@T  TableTitle Table Top Step NumberT:TABLE \t. f@  Body. @@   Header. @@   Footer. f@  Cover top. xf@$ Cover title. @@ Mapping Table Title.  f@ Disclaimer Body. f@ Disclaimer Bottom. @@ Mapping Table Cell. @@  Mapping Table Cell. @@  Mapping Table Cell. @@  Mapping Table Cell. @@Mapping Table Cell. @@ Mapping Table Cell. @@!Mapping Table Cell. @@$"Mapping Table Cell. @@ #Mapping Table Cell. @@ Mapping Table Cell. @@  $Mapping Table Cell. @@ %Mapping Table Cell. @@ &Mapping Table Cell. @@  'Mapping Table Cell. @@ (Mapping Table Cell. @@ )Mapping Table Cell. @@ *Mapping Table Cell. @@ +Mapping Table Cell. @@,Mapping Table Cell. @@  -Mapping Table Cell. - ڝ ڝ ڝ ڝ ڝ 3 Chapter # vp$tu tu tu  Not Changed ڝ yc>  yc>  [  [ $tu  ڝ ڝ [  3  Figure Helv  BoldEquationVariables Subscript Superscript# Times-Italicڝ  Typeface-Bold Emphasis  Typeface Changed Not Changedڝ)$tu  ڝ yc>  tu  ڝ i_mF `f  )[  ڝ) `f tu ffThinMediumDoubleThick@ Very Thin <H:;:H:;:H:;:H:;:H:;:Format A <H:;:H:;:H:;:H:;:H:;:Format BBH Mapping TableBH Mapping Table !lh pH  hhh   ( hhhh @ H>* $H66D OQRSOTUVDOWXYh >]^_h>`abh >cdeh>fghh >ijkh >l m n h >o p q h >r s t h >u v w  >x y z {  >|}~> >> >    ; ;:;>:> >!"#$:>%&'(>)*+,:>-./0>1234 ;567;89: ;;<= ![> ? @ A B  "[C!D!E!F!G!!#[H"I"J"K"L""[M#N#O#P#Q#%;U$V$W$X$Y$&$;Z%[%\%]%^%'%;_&`&a&b&c&(&;d'e'f'g'h')';i(j(k(l(m(*(;n)o)p)q)r)+);s*t*u*v*w*,*;x+y+z+{+|+-+;},~,,,,.,;-----/-;.. . . .0.; / ////1/;0000020;1111131;2222242; 3!3"3#3$353;%4&4'4(4)464;*5+5,5-5.575;/60616263686;475767778797;98:8;8<8=8:8;>9?9@9A9B9;9;C:D:E:F:G:<:;H;I;J;K;L;=;;M<N<O<P<Q<><;R=S=T=U=V=?=;W>X>Y>Z>[>@>8\?]?^?_?`?A?8a@b@c@d@e@B@8fAgAhAiAjACA8kBlBmBnBoBDB8pCqCrCsCtCEC8uDvDwDxDyDFD8zE{E|E}E~EGE8FFFFFHF8GGGGG,IG8 H H H H HJH8IIIII,KI8JJJJJ,LJ8KKKKKMK8LLL L!LNL8"M#M$M%M&MOM8'N(N)N*N+NPN8,O-O.O/O0OQO81P2P3P4P5PRP86Q7Q8Q9Q:QSQ8;RR?RTR8@SASBSCSDSUS8ETFTGTHTITVT8JUKULUMUNUWU8OVPVQVRVSVXV8TWUWVWWWXWYW8YXZX[X\X]XZX8^Y_Y`YaYbY[Y8cZdZeZfZgZ\Z8h[i[j[k[l[][8m\n\o\p\q\,^\8r]s]t]u]v],_]8w^x^y^z^{^`^S|_}_~___a_S`````b`Saaa a acaS b b bbbdbScccccecSdddddfdSeeeeegeSf f!f"f#fhfS$g%g&g'g(g,igS)h*h+h,h-hjhS.i/i0i1i2i,kiS3j4j5j6j7j,ljS8k9k:k;kl?l@lAlnlSBmCmDmEmFmomSGnHnInJnKnpnSLoMoNoOoPoqoSQpRpSpTpUprpSVqWqXqYqZq,sqS[r\r]r^r_rtrS`sasbscsdsusSetftgthtitvtSjukulumunuwuSovpvqvrvsvxvStwuwvwwwxwywSyxzx{x|x}x,zxS~yyyyy{ySzzzzz|zS{ { { { {}{S |||||~|[}}}}}}[~~~~~~[ [!"#$%[&'()*[+,-./[01234[56789[:;<=>[?@ABC[DEFGH [IJKLM [N O P Q R  [S T U V W  [X Y Z [ \  [] ^ _ ` a  [b c d e f , [ghijk,[lmnop[qrstu[vwxyz[{|}~[[ [    [[[,[ !"[#$%&'[()*+,[-./01#[23456;@AB ;CDE;F G H "6I!J!K!#!6L"M"N"$"6O#P#Q#%#6R$S$T$&$6U%V%W%'%6X&Y&Z&(&6['\']')'O^(_(`(*(Oa)b)c)+)Od*e*f*,*Og+h+i+-+Oj,k,l,.,Om-n-o-/-Op.q.r.0.Os/t/u/1/Ov0w0x020Oy1z1{131O|2}2~242O33353O44464O55575O6 6 686O 7 7 797O888N:8O999;9O:::<:O;;;6=;O<<<6>!>">@>O#?$?%?A?O&@'@(@B@O)A*A+ACAO,B-B.BDBO/C0C1CCO2D3D4DCommentgqd BlackT!WhiteddARedddGreendd BluedCyandMagentad YellowHeader/Footer $1Header/Footer $1Header/Footer $2Header/Footer $2IndexIndexCommentCommentSubjectSubjectAuthorAuthorGlossaryGlossaryEquationEquation Hypertext Hypertext  Cross-Ref Cross-Ref Conditional TextConditional TextPositionFMPrivatePositionFMPrivateRangeEndFMPrivateRangeEndFMPrivate HTML Macro HTML MacroHelvetica-Bold FrameRoman Times-Roman FrameRoman Helvetica FrameRomanTimesNewRomanPSMT FrameRoman Times-Italic FrameRomanCourier FrameRoman Times-Bold FrameRoman Courier-Bold FrameRomanCourier HelveticaTimes TimesNewRoman RegularRegularBoldRegularItalicS 3bCZkH-P41z/涁)!+'1_4EwW/ ! 1xzGn  RW+2݊\!#BO&`V)S댭LDYh͕R=sL$gˮ\HSZq΁}E RT!1%ZROe%Co~t#3nvfqX$Y4yo%Ŵe!ㆡi$Q&nj@q%֟(J х6ZM>r: A_E@P fJsi nWJc~D|silo-4.8-bsd/docs/Chapter1.fm0000644000707000001660000030000011444246315015404 0ustar miller86visit  Aad P0 `@`p 0 p@p eBooki 268435455HH $33d HHHH̀̀̀ff@  d Footnote TableFootnote**. . / - :;,.!?.: k*6" nyLOT TableTitleIXIndex IOMCommentGlossaryHeader/Footer $1Header/Footer $2IndexTOC1Heading2Heading3HeadingChapter FirstChapter;()CsgmeshCsgvar DBPutMaterialDBfile DBmrgtreeDefvarDirGroupel LivermoreMultimatMultimatspecies MultimeshMultivarObjOptlistPDBLibPDBext PHZonelist PointmeshQuadmeshQuadvarRootDirSupercomputingUcdmeshUcdvarUnidataUrbanaVaraand character*N collineardata_idsdatafiledbmkptrfacelist filesystemgridlesshttp ls lmaps_name lregn_names maps_name namespacesnetCDF object>_id optlist_id piecewise pointer_id pointer_ids regn_namesscalablystructstructs subsettedtree_id zonecenteredzonelist   EquationVariablesF&,-013489<=?@DEGHWk[lۧf g h |   Od!m     Architecture 672575: Figure: Figure 1-1: Model of Silo Architecture.Reading and Writing Silo files&Computational Meshes Supported by Silo UCD Meshes 569766: Figure: Figure 1-5 UCD 2-D and 3-D Cell Shapes! Silo Objects     LjfdV 672575: Figure: Figure 1-1: Model of Silo Architecture.Ljfe 569766: Figure: Figure 1-5 UCD 2-D and 3-D Cell ShapesLjf̷ "22625: Func-Title-Head: PMPIO_InitLjf͘ E91069: API-Section: 4 API Section Multi-Block Objects and Parallelism<$lastpagenum><$monthname> <$daynum>, <$year>"<$monthnum>/<$daynum>/<$shortyear>;<$monthname> <$daynum>, <$year> <$hour>:<$minute00> <$ampm>"<$monthnum>/<$daynum>/<$shortyear><$monthname> <$daynum>, <$year>"<$monthnum>/<$daynum>/<$shortyear> <$fullfilename> <$filename> <$marker1> <$paratext[Heading]> <$curpagenum> <$marker1> <$marker2> (Continued)Chapter1Heading & Page"<$paratext> on page1-<$pagenum>Pagepage<$pagenum>See Heading & Page$See <$paratext> on page<$pagenum> Table & Page7Table<$paranumonly>, <$paratext>, on page<$pagenum> Reference <$paranum>+ (Sheet <$tblsheetnum> of <$tblsheetcount>)Chapter2-man_pages.fm##A%%))++A--//46A;;KsAF"GEHIDJE7L Chapter 1ߥRRݺKݝKPKmM1.1.%DݮD݄D݇DݼDݿM1.2.4DpDDDqDۨM1.3.ܪDN Figure 1-1: D}O1.3.1.UPVO1.3.2.WP٘D܌M1.4.ZP Q R^Q R_QR`QRQRQR!M1.5."DO1.5.3. DDS Figure 1-2: O1.5.4.dPDuDS Figure 1-3: DS Figure 1-4: O1.5.5.PO1.5.6.PO1.5.7.ܔPM1.6.DDdQgRjQmRQRzQ{R~QRQRQRܣQܤRܥQܦRQRڻQڼRQRQRQRQRܛQܟRܠQRQRQRQRQRO1.6.8.aPޚQޛRdQeRޢQޣRvQwRzQ~RތM1.7.ަP|O 1.7.9.ެDTD}O  1.7.10.rDT$D"TzUuUvUwUxUyUߐD߃QߋRߎQߏRߙQߚRߜQߝRߛQߴPPߵDD߶DQߺMD 1.8.߻PPDDDDDDDDDDDDsd"#)d+134y<ܬQR^T!J ܭ^T!J j feܮj fejj% Read/Write@̫ 홙ܯ@̫ 홙@̝홙ffܰ @̝홙ffzffGɽ33$ܱ  zffGɽ33$Gɻff$ܲ  Gɻff$Gɻff$ܳ Gɻff$ $İ?ܷ $İ?~*$* Application RVtL?ܹ RVtL?%]R]&PDB ǮVt=p?ܺ  ǮVt=p?L]Ǯ]'netcdf ?Vt?ܻ  ?Vt?3]?] Taurus{J {J /fe/fe//%Read o(nlyGɻff$ Gɻff$ Gɻff$Gɻff$ @̝홙ff@̝홙ff {Jn{Jn^T!JZn^T!JZn^T!J n^T!J n@H$@H$ NߤVvA?NߤVvA?\D]Nߤ])HDF5@G홚7 @G홚7 ⵻5?.⵻5?II'Silo-API WJX?/WJX?^^^^'DriversRX YONZ AJ8:܉?AJ8:܉?T޸LAJL* Rectilinear 8t?8t?LL* Curvilinear Q_? Q_?T޸fQf*X &?!&?@:@:*Y c_ "."c_O O X = {0.0,1.0,2.0,3.0, _!#.!_  Y = {0.0,1.0,2.0,3.0} z_"$1$ z_  X = { |e#%1#%|e {O3,_$&1$&{O3,_ 0.0,1.0,2.0, O3,_%'1%'O3,_ 0.0,0.8,1.6, O3,_&(1&(O3,_ 0.0,0.4,0.8, O3,_')1')O3,_ 0.0,0.0,0.0} Ǡ_(*1(*Ǡ_  Y = { O3,_)+1)+O3,_ 0.0,0.0,0.0, O3,_*,1*,O3,_ 0.0,0.4,0.8, ĔO3,_+-1+-ĔO3,_ˀˀ 0.0,0.8,1.6, ϔO3,_,.1,ϔO3,_+ 0.0,1.0,2.0}c[-/c[!" a܆?.0 a܆? h h*X |u?/1|u?AA*Y zr]t02 zr]t#- C|ew13C|eCC ޸33924N4޸33޸33:35N35޸33K޸33;46N46K޸33]޸33<57N57]޸33o޸33=68N68o޸33޸33@79N79޸33޸33A8:N8:޸33K޸33B9;N9;K޸33]޸33C:N<>޸F33޸F33H=?N=?޸F33K޸F33I>@N>@K޸F33]޸F33J?AN?A]޸F33o޸F33K@BN@o޸F33f\QACLCf\Qf\D#\fjQBDLBDfjQf\fjfEhrbT'CELCEfEhrbT'f\EhrfSɮDFLDFfSɮf\F/F/Q?ϋZEGLEGF/Q?ϋZF/Q?\ftFHLFHftʜbEhrftʜbEhr͋GILGIʜbEhr͋ʜbEhrF/Q?fjݗSɋHJLHJfjݗSɋfjF/Ehr[T'!IKLIKEhr[T'D#\EhrF/SS#JLLJF/SSEhrF/fjݺQQ@KMfjݺQQBK c\f^_ILNc\f^_OO 4.0,5.0}޸33Z6hM޸33Z63AHK33}Y/PcZMW۱ OQcQMW۱ eۀ4)9*OPRcPReۀ4)9er@f~brۘ,OQScQS~brۘ33r~brf뼀 H.ORTcRTf뼀 H33rf뼀 ;rۘr0OSUcSU;rۘrMr۴;rM2OTVcTVMMMW;۱ 4OUWcUW;۱ f۴;;66OVXcV_;6;۴;rUQOWY^YUQ RUQOXZ^XZ RUQ*OUQOY[^Y[*OUQRUQOZ\^Z\RUQđRUQO[]^[]đRUQ{*OUQO\^^\{*OUQđia`RO]_đia`RX]Wa ?O^`cW`Wa MWaWaWaHȋAO_ac_aWaHȋ}nWae-r9MWar9 ۛ?CO`bc`b ۛ? M]WMEOaccaMMWf^bU#^ObbU#^PbgK33}\e!]#-B@Idff#-B@D#-B#D#-B@KdegegD#-B@D#-B##Mdfhfh###D#mBOdgigiD#mBD#-BI#mB#mB@Qdhjhj#mB@#I#mB#mBS diki#mB#I#mB sƖ8djlsƖ8d |s|, Tetrahedron[#Vdkmm[#[#D#D#BXdlnlnD#BD#D#Bv#BZ dmomov#BD#Bv#B[#B\ dnpnp[#Bv#B[#v#q^ doqoqv#qv#Bv#q[#q`dprpr[#qv#q[#v#qbdqsqsv#qv#qD#v#qddrtrv#qv#qD#B o͐Ɩm&dsuo͐Ɩm&}#|o͐|,PyramidD#@gdtvvD#@D#@#@#M@@@iduwuw#M@@@#@#M@#Mo?kdvxvx#Mo?#@#Mo#Momdwywy#Mo#Mo#M@#Moodxzxz#Mo#Mo#MoD#Mo?qdy{y{D#Mo?#MoD#@ń#M@s dz|z|ń#M@#M@ń#M@D#M@@@u d{}{}D#M@@@D#@ń#M@#Mow d|~|#Moń#M@#Mo ƖF1d} ƖF1Ϥ ||,Prism(#y@?zd~(#y@?(#|<#y<#z|d<#z<#y<#zD#zۨ~dD#zۨ<#zD#z#z۔@@؀d#z۔@@D#z#9(#z۔@@؂d(#z۔@@(#9<#zD#y؄ dD#y<#yD#y#|؆ d#|#|#|#y@?؈ d#y@?#|D#yD#z؊ dD#zD#yD#z Ɩ7d ! Ɩ7d | |, Hexahedron v`d  v`ǭvAy-Ay-2ʴ_d  -2ʴ_zp؏d zpHzpzp Já:d  Já:!mP&" P&", Quadrilateral JÝM=d  JÝM=P&"P&"-Triangle iW>Já,d iW>Já,pmP&"iW>P&",LineV-ЯؔdV-ЯV-Я#mBNdk#mBej#9ۨؗd#9ۨ#9(#9(#9ؙd(#9(#|(#9#|؛d#|#|(#|#9؝d#9#|#9#zۼOd!#zۼD#Mo?Pd ~D#Mo?u}[#qCQdt[#qCls vJÓdvJÓP&"vP&".Point䭲k__ d䭲k__vk'R dvk'V-Я T dV-Я vU dv -2ʴ຀W d-2ʴ຀Ā #mBX d#mBk[#qCLwY d [#qCLwtD#MoE9yZ d!D#MoE9y~#zۼR [ d #zۼR  HHˆ HHˆ#W UTUT` HHˆ_%HHˆ""l H$  H$ %WlRunning H/F 1 H$ `#&H$ $$lHذ%'HHH6ز&)H6H66 H  H )Wl5C1-#Silo Users Guide H a'H ((l HHˆ HHˆ+W UTUT` HHˆb-HHˆ** l H$  H$ -WlRunning H/F 1 H$ c+/H$ ,, l H  H T/Wl5Silo Users Guide C1 - #  H d-0H .. lE ؼ/1E EH6ؾ0H6H66d4; Hl~ 2Hl~4W UTUT` Hl~e26Hl~633 l H; 2H;6H;f247H;455 lH$ 268H$H$$H279HHH28;HH H  2H ;W1l:Silo Users Guide C1-# H g29H ::  ld =H d R <>d Rd2d2/Footnote Hr@ <=?Hr@HzHz/ Single Line <>A@@Footnote6 ?6 6 HD JDevelopers working in a particular stovepipe designed every piece of softU<Iware they wrote, simulation code and tools alike, to conform to a common UJPrepresentation for the data. In a sense, all software in a particular stovepipe UTNwas really just one big, monolithic application, typically held together by a |@*common, binary or ASCII file format.  ,U4 HData exchanges across stovepipes were laborious and often achieved only 9U2Lby employing one or more computer scientists whose sole task in life was to ZUpXwrite a conversion tool called a 4linker3. Worse, each linker needed to be kept GU|Pit up to date as changes were made to one or the other codes that it linked. In &Lshort, there was nothing but brute force data sharing and exchange. FurtherUpNmore, there was duplication of effort in the development of support tools for Up@each code.  U& HBetween 1980 and 2000, an important innovation emerged, the general purU$Lpose I\O library. In fact, two variants emerged each working at a different VMlevel of abstraction. One focused on the objects of computer science. That WQis arrays, structs and linked lists (e.g. data structures). The other focused on Hthe objects of computational modeling. That is structured and unstruc`Ktured meshes with piecewise-constant and piecewise-linear fields. Examples VBof the former are CDF, HDF (HDF4 and HDF5) and PDBLib. Silo is an pVOexample of the latter type of I/O library. At the same time, Silo makes use of @the former.  HHˆjNHHˆLSOO ld&SS HHˆ QHHˆ[̨DShSilo Architecture 3UTUT LSilo has several drivers. Some are read-only and some are read-write. These UR"L8are illustrated in Figure 1-1:67 8h&Model of Silo Architecture.9 3UT"" KSilo supports both read and write on the PDB (Portable Database) formatted  " Gfiles and HDF5 drivers. However, Silo cannot read just any PDB or HDF5 Kfile. It can read only PDB or HDF5 files that were also written with Silo. 0ISilo supports only read on the taurus and netcdf drivers. The particular Ndriver used to write data is chosen by an application when a Silo file is creNated. It can be automatically determined by the Silo library when a Silo file @is opened.  :jwjhReading Silo Files 3UT{" [The S ilo 3library has a pplication-level routines to be used for reading mesh  "Sand mesh-related data3.  These functions return compound C data structures @'which represent data in a general way.  wc`Writing Silo files !3UT"  [The S ilo 3library c ontains application-level routines to be used for writing  " @-mesh and mesh-related data into Silo files. "" IIn the C interface, the application provides a compound C data structure "Prepresenting the data. In the Fortran interface, the data is passed via individ?@ual arguments3.  #5(̮`Terminology $ UT>" FHere is a short summary of some of the terms used throughout the Silo K"Einterface and documentation. These terms are common to most computer P@simulation environments. HHˆkQHHˆPVRR  ld(VX HHˆ THHˆDV%`Block & UTCThis is the fundamental building block of a computational mesh. It Hdefines the nodal coordinates of one contiguous section of a mesh (also UP@known as a mesh-block). '`Mesh ( UTBA computational mesh, composed of one or more mesh-blocks. A mesh Acan be composed of mesh-blocks of different types (quad, UCD) as D@well as of different shapes. )_UJ` Variable * UT_UJAData which are associated in some way with a computational mesh. lUHHVariables usually represent values of some physics quantity (e.g., presFsure). Values are usually located either at the mesh nodes or at zone u@ centers. +` Material , UT`Zone 0 UTU>DAn area or volume of which meshes are comprised. Zones are polygons U< Ior polyhedra with nodes as vertices (see  UCD 2-D and 3-D Cell M Shapes  on page1-6.) 1h,Computational Meshes Supported by Silo 2 UT"U8 aSilo supports 3several c lasses, or types, of meshes3. These are q uadrilateral, /U6funstructured3-zoo, unstructured-arbitrary,  3p oint3, constructive solid geometry 3UH@,(CSG), and adaptive refinement meshes.  3Z`,Quadrilateral-Based Meshes and Related Data 4 UTsU1 JA quadrilateral mesh is one which contains four nodes per zone in 2-D and U/Keight nodes per zone (four nodes per zone face) in 3-D. Quad meshes can be ?Oeither regular, rectilinear, or curvilinear, but they must be logically rectanPT@gular (Fig. 1-2). HHˆlTWHHˆS[UU l |eTVX|e i",TWi",ii0d*[[ HHˆ YHHˆDOO[5 UTUT"h 6  `,Examples of quadrilateral meshes;.  7:h,UCD-Based Meshes and Related Data 8 UT!W] HAn unstructured (UCD) mesh is a very general mesh representation; it is .W[Kcomposed of an arbitrary list of zones of arbitrary sizes and shapes. Most _Lmeshes, including quadrilateral ones, can be represented as an unstructured 0_Kmesh (Fig. 1-4). Because of their generality, however, unstructured meshes @8require more storage space and more complex algorithms. 9nWS NIn UCD meshes, the basic concept of zones (cells) still applies, but there is {WQKno longer an implied connectivity between a zone and its neighbor, as with Lthe quadrilateral mesh. In other words, given a 2-D quadrilateral mesh zone baccessed by (i, j) , one knows that this zones neighbors are (i-1,j), (i+1,j), (i, @2(q`Point Meshes and Related Data ? UTB OA point mesh consists of a set of locations, or points, in space. This type of ONmesh is well suited for representing random scalar data, such as tracer parti}@cles. @:{(j`?Constructive Solid Geometry (CSG) Meshes and Related Data A3UT EA constructive Solid Geometry mesh is constructed by boolean combinaKtions of solid model primitives such as spheres, cones, planes and quadric d#Hsurfaces. In a CSG mesh, a zone is a region defined by such a boolean 5@Ccombination. CSG meshes support only zone-centered variables.  B:(a ?Block Structured, Adaptive Refinement Meshes (AMR) and Related (`@ Data C3UT  CBlock structured AMR meshes are composed of a large number of Quad Gmeshes representing refinements of other quad meshes. The hierarchy of ,@Jrefinement is characterized using a Mesh Region Grouping (MRG) tree.  D,}(G!5Summary of Silo5s 5Computational Modeling :}@Objects E UTS JObjects are a grouping mechanism for maintaining related variables, dimen`Msions, and other data. The Silo library understands and operates on specific P̔uItypes of objects including the previously described computational meshes HHˆn\HHˆ[a]] ld.aa HHˆ _HHˆyTD22mmaE UTUTPand related data. The user is also able to define arbitrary objects for storage UR@9of data if the standard Silo objects are not sufficient. FUP GThe objects are generalized representations for data commonly found in UN@,physics simulations. These objects include: GL` Quadmesh H UTLDA quadrilateral mesh. At a minimum, this must include the dimension YGand coordinate data, but typically also includes the meshs coordinate UHA variable associated with a UCD mesh. This at a minimum must Finclude the variables data, centering information (node-centered vs. Bzone-centered), and the name of the UCD mesh with which this vari.Hable is associated. Additional information, such as time, cycle, units, x@ and label can also be included. OK` Pointmesh P UTKCA point mesh. At a minimum, this must include dimension and coordiX@ nate data. Q2kU(` Csgmesh R3UTkU(/A constructive solid geometry (CSG) mesh.  S2}|` Csgvar T3UT}|>A variable defined on a CSG mesh (always zone centered).  U2` Defvar V3UTGDefined variable representing an arithmetic expression involving other @variables.  W2U"`Groupel Map X3UTU"@Used in concert with an MRG tree to define subsetted regions of U @ meshes.  YΪt` Multimat Z UTΪtKA set of materials. This object contains the names of the materials in the ۪r@set. [`Multimatspecies \ UTJA set of material species. This object contains the names of the material @species in the set. ] U` Multimesh ^ UT UDA set of meshes. This object contains the names of and types of the U@meshes in the set. _,j` Multivar W` UT,j0Mesh variable data associated with a multimesh. HHˆo_HHˆ^d``  ld'dd HHˆ bHHˆMUD44d a` Material b UTGMaterial information. This includes the number of materials present, a Llist of valid material identifiers, and a zonal-length array which contains UP@(the material identifiers for each zone. c`Material species d UTHExtra material information. A material species is a type of a material. GThey are used when a given material (i.e. air) may be made up of other D@Bmaterials (i.e. oxygen, nitrogen) in differing amounts3.  e2_UJ`MRG Tree f3UT_UJGMesh Region Grouping tree used to define various subset regions of any lUH@of Silos mesh types.  g2~`Zonelist h UT~CZone-oriented connectivity information for a UCD mesh. This object Fcontains a sequential list of nodes which identifies the zones in the @Gmesh, and arrays which describe the shape(s) of the zones in the mesh. i2`PHZonelist j3UT4Arbitrary, polyhedral extension of a zonelist.  kU@` Facelist l UTU@CFace-oriented connectivity information for a UCD mesh. This object U>Fcontains a sequential list of nodes which identifies the faces in the Jmesh, and arrays which describe the shape(s) of the faces in the mesh. It *Fmay optionally include arrays which provide type information for each *@face. m`Curve n UTHX versus Y data. This object must contain at least the domain and range Lvalues, along with the number of points in the curve. In addition, a title, DUV@3variable names, labels, and units may be provided. o/` Variable p UT/JArray data. This object contains, in addition to the data, the dimensions <Iand data type of the array. This object is not required to be associated @ with a mesh. q:hU,`Other Silo Objects r3UTx PIn addition to the objects listed in the previous section which are tailored to Kthe job of representing computational data from scientific computing appli# Mcations. Silo supports a number of other objects useful to scientific comput@Qing applications. Some of the more useful ones are briefly summarized here.  s2U#`Compound Array t3UTU#DA compound array is an abstraction of a Fortran common block. It is U!Xalso somewhat like a C struct. It is a 3list of similarly typed by differently Inamed and sized (usually small in size) items that one often treats as a x@,group (particularly for I/O purposes).  u2q`Directory v3UTqRA silo file can be organized into 4directories3 in much the same way as a o@UNIX<3 filesystem. w2 ` Optlist x3UT IAn options list object used to pass additional options to various Silo @API functions.  y2*U`Simple Variable z3UT*UHA simple variable is just a named, multi-dimensional array of arbitrary 7U@ data.  {2Ig`User Defined Object W|3UTIg9A generic, user-defined object or arbitrary nature.  HHˆpbHHˆagcc ldާgg HHˆ# eHHˆ~D**g }5`Silos Fortran Interface ~3UTUT MThe Silo library is implemented in C. Nonetheless, a set of Fortran callable 4UR[wrappers3 have been written to make a majority of Silos functionality a3vail3Jable to Fortran applications. These wrappers simply take the data that is 0Hpassed through a Fortran function interface, re-package it and call the Kequivalent C function. However, there are a few limitations of the Fortran @interface.  :|`&Limitations of Fortran Interface 3UTUG OFirst, it is primarily a write-only interface. This means Fortran applications UEOcan use the interface to write Silo files so that other tools, like VisIt, can ꪔLread them. However, for all but a few of Silos objects, only the functions Knecessary to write the objects to a Silo file have been implemented in the 0NFortran interface. This means Fortran applications cannot really use Silo for @restart file purposes.  U; NConceptually, the Fortran interface is identical to the C interface. To avoid U9Hduplication of documentation, the Fortran interface is documented right %Ialong with the C interface. However, because of differences in C and ForAJtran argument passing conventions, there are key differences in the inter=Efaces. Here, we use an example to outline the key differences in the 0=Xinterfaces as well as the 4rules3 to be used to construct the Fortran interface @from the C.  :[`;Conventions used to construct the Fortran interface from C 3UTlU, KIn this section, we show an example of a C function in Silo and its equivayU*Ilent Fortran. We use this example to demonstrate many of the conventions W@4used to construct the Fortran interface from the C. U& NWe describe these rules so that Fortran users can be assured of having up to U$Jdate documentation (which tends to always first come for the C interface) V@7but still be aware of key differences between the two. U `#A C function specification...  > Jint DBAddRegionArray(DBmrgtree *tree, int nregn, const char **regn_names, Nint info_bits, const char *maps_name, int nsegs, int *seg_ids, int *seg_lens, ܹd@&int *seg_types, DBoptlist *opts)= 3UTU`(The equivalent Fortran function...  ># Ginteger function dbaddregiona(tree_id, nregn, regn_names, lregn_names, .Ltype_info_bits, maps_name, lmaps_name, nsegs, seg_ids, seg_lens, seg_types, ̶Y>@optlist_id, status)= ?[` @g[x`Einteger tree_id, nregn, lregn_names, type_info_bits, lmaps_name?  [[``'integer nsegs, optlist_id, status?  [[``?integer lregn_names(), seg_ids(), seg_lens(), seg_types()?  `character* maps_name? A `character*N regn_names? HHˆުeHHˆdjff  ld-jj HHˆ' hHHˆZD00j  UTUT` 2` l 3UTHWherever the C interface accepts a char*, the fortran interface accepts Ctwo arguments; the character* argument followed by an integer arguMment indicating the strings length. In the function specifications, it will 0Jalways be identified with an ell (l) in front of the name of the characGter* argument that comes before it. In the example above, this rule is @Gevident in the +maps_name3 and +lmaps_name3 arguments. 2l`ls 3UTlFWherever the C interface accepts an array of char* (e.g. char**), the yHFortran interface accepts a character*N followed by an array of lengths UUDBof the strings. In the above example, this rule is evident by the +ULKregn_names3 and +lregn_names3 arguments. By default, N=32, but 23ULKthe value for N can be changed, as needed by the +dbset2dstrlen()3 @ method.  2U<`_id 3UTU<GWherever the C interface accepts a pointer to an abstract Silo object, U:Klike the Silo database file handle (DBfile *) or, as in the example above, Ra DBmrgtree*, the Fortran interface accepts an equivalent 4pointer_id3. A 4ꪰOpointer_id3 is really an integer index into an internally maintained table 3ʪMof pointers to Silos objects. In the above example, this rule is evident in ʪ@;the +tree_id3 aand +optlist_id3 arguments. 2`data_ids 3UTGWherever the C interface accepts an array of void* (e.g. a void** argu Tment), the Fortran interface accepts an array of integer 4pointer_id3s. The >MFortran application may use the +dbmkptr()3 function to a create the ^8Epointer ids to populate this array. The above example does not demon`@strate this rule. 2Y`status  3UTYIWherever the C interface returns integer error information in the return fKvalue of the function, the Fortran interface accepts an extra integer argu5TFment named status as the last argument in the list. The above example ;V@demonstrates this rule.  OFinally, there are a few function in Silos API that are unique to the Fortran Jinterface. Those functions are described in the section of the API manual < @having to do with Fortran. تp`Using Silo in Parallel UT \Silo is a serial library. Nevertheless, it (as well as the tools that use it like [VisIt)  has several features that enable its effective use in parallel with excelVdRlent scaling behavior. However, using Silo effectively in parallel does Urequire an application to store its data to multiple Silo files ; typically Hbetween 8 and 64 depending on the number of concurrent I/O channels the p@application has available. G MThe two features that enable Silo to be used effectively in parallel are its TWability to create separate namespaces (directories) within a single file and 1sthe fact that a multi-block object can span multiple Silo files. With these fea߀notures, aparallel application can easily divide its processors into N groups R̻vl@4and write a separate Silo file for each group. HHˆ0hHHˆgpii l~HJIHMW 2d:VisIt can be obtained from http://www.llnl.gov/visit ~H¬MNH¬O $RThe 2National Center for Supercomputing Applications (NCSA) at the University 2Oof Illinois at Urbana-Champaign (UIUC). The HDF5 software can be obtained R@Dfrom 2http://hdf5.ncsa.uiuc.edu/HDF5/release/obtain5.html. ~H–P_H–`" $NUnstructured cell data (UCD) is a term commonly used to denote an arbitrarily Nconnected mesh. Such a mesh is composed of vectors of coordinate values along Pwith an index array which identifies the nodes associated with each zone and/or pMface. Zones may contain any number of nodes for 2-D meshes, and either four, @*five, six, or eight nodes for 3-D meshes. dpp HHˆ nHHˆeDp "UTUT RWithin a group, each processor in the group writes to its own directory URIwithin the Silo file. One and only one processor has write access to the bgroups Silo file at any one time. So, I/O is serial within a group. However, Qbecause each group has a separate Silo file to write to, each group has one "Lprocessor writing concurrently with other processors from other groups. So, @.I/O is parallel across groups. #aUH PAfter all processors have created all their individual objects in various direcnUFOtories within the each groups Silo file, one processor is designated to write JNmulti-block objects. The multi-block objects serve as an assembly of the aUH@Enames of all the individual objects written from various processors. U@ VWhen N, the number of processor groups, is equal to one, I/O is effectively U>Wserial. All the processors write their data to a single Silo file. When N is UPNequal to the number of processors, each processor writes its data to its own, Lunique Silo file. Both of these extremes are bad for effective and scalable  Uparallel I/O. A good choice for N is the number of concurrent I/O channels 0 Mavailable to the application when it is actually running. For many parallel, @:HPC platforms, this number is typically between 8 and 64. !U2 LThis technique for using a serial I/O library effectively in parallel while U0Nbeing able to tune the number of files concurrently being written to is affecbU@PMPIO_Init on page171# for more information. HHˆnHHˆjsoo  ld:ss HHˆ; qHHˆs HHˆ=qHHˆprr ldLeftdRightd2Firstd< ReferencedIFirstdNdQd Td Yd \d _d bd ed hd nd qf@HQ  ~  1Heading 1Heading RuleH:\t..< >< >< >< >\t FirstBody. f@HQ  ~  1Heading-TOPH:\t..< >< >< >< >\t FirstBody. fff@SE ff 1Step Step Number S:.\tStep. _f@HQ  ~  2HeadingH:\t...< >< >< >\t FirstBody. _ f@HQ  ~  3HeadingH:\t....< >< >\t FirstBody. f@ Body. f@ ff  Bullet Bullet Symbol\t. f@  Bulleted\t. fffff@ CBullet. f@  CellBody. f@   CellHeading. c,f@HA Chapter Chapter #H:Chapter \t FirstBody. c,f@HA Chapter (not inc) Chapter #H:\t FirstBody. f@      D h  Code. BHH f@   l      D h  Code out.  f@   - Z ~     2 V z  CodeExample. fffff@ CStep. HHf@T  DefinitionDefinition Body f@D Definition Body Definition. f@E EquationEquation Number E:(EQ ). f@ Extract. f@HA  Figure Step NumberH:Figure -< >< >< >< >: Body. f@D  FirstBodyBody. c,f@HA FirstChapter Chapter #H:\t FirstBody. @@   footer first. @@   footer left. @@   footer right. f@ Footnote. f@E  Func-Arg-HdrEmphasis Arguments:Func-Arglist-Head. uuf@E  Func-ArglistEmphasisFunc-Arglist-Head. llf@E l Func-Arglist-ContdEmphasis Func-Arglist. f@E Func-Arglist-HdrEmphasis Arguments:Func-Arglist-Head. l$f@A  l Func-Arglist-HeadEmphasis Func-Arglist\t$$f@      Func-Body. $f@@  @  Func-Body-TypeFunc-Body-Type. f@U  Func-Desc-HdrEmphasis Description: Func-Body. f@U  Func-Note-HdrEmphasisNotes: Func-Body. f@U  Func-Ret-HdrEmphasisReturns: Func-Body. $f@@  zff Func-Summary Func-Summary. f@U  Func-Syn-HdrEmphasis Synopsis:Func-Body-Type. f@U  Func-Title Func-Syn-Hdr. f@T Func-Title-Head Func-Title() f@  HangIn. @@   Header. @@   header left. @@   header right. f@THeadingBody. f@THeading1Body. f@T Heading2Body. f@T  HeadingRunInBody. f@  Indented. $f@D   zff ff ff ff ff .ff Rff vff ff ff ff liebe code Func-Summary. f@  Numbered.\t. f@E  Numbered1.\tNumbered. fff@S ff Step Step Number S:.\t. f@  TableFootnote. f@H   TableTitleH:Table -< >< >< >< >. . f@PTitleBody. f@ TopForWebmaker. f@   CellHeading. f@   CellBody. f@T  TableTitle Table Top Step NumberT:TABLE \t. f@  Body. $$f@       Func-Body. @@   header left. @@   footer left. @@   header right. @@   footer right. @@   footer first. f@ Footnote. c,f@HA Chapter Chapter #H:Chapter \t FirstBody. f@HQ  ~  1Heading 1Heading RuleH:\t..< >< >< >< >\t FirstBody. f@HA    Figure Step NumberH:Figure -< >< >< >< >: Body. _f@HQ  ~  2HeadingH:\t...< >< >< >\t FirstBody. f@D  FirstBodyBody. HHf@T  DefinitionDefinition Body f@D  Definition Body Definition. f@HA   Figure Step NumberH:Figure -< >< >< >< >: Body. 6$f@@  =Func-Body-TypeFunc-Body-Type. $f@@  ?@  Func-Body-TypeFunc-Body-Type.   Bold  Changed tu  [  ڝ [  ڝ yc>  yc> ڝ ڝ [  tu  tu Emphasis+ ڝ ڝ i_mF  tu  Emphasis EquationVariables 3  Figure Helv  Graphic  Not Changed3  Small Helv  Subscript  Superscript # Times-Italic  Typeface   Typeface-Boldyc>  Small Helv "yc> Graphic yc> yc>  Small Helv  yc> Graphic yc>  Figure Helv i_mF Typefaceyc>  Figure Helvyc>  Figure Helvyc>  Figure Helv [  [ tu  ڝ ڝ tu  [  ڝChanged ڝChanged yc> Changed yc> Changed [  yc>  V@ i_mF  i_mF  i_mF  i_mF  tu dddddddd dddd@ddThinMediumDoubleThick@ Very Thin CHABAHABAHABAHABAHABAFormat A CHABAHABAHABAHABAHABAFormat B      $#&%d BlackT!WhiteddARedddGreendd BluedCyandMagentad YellowHeader/Footer $1Header/Footer $1Header/Footer $2Header/Footer $2IndexIndexCommentCommentSubjectSubjectAuthorAuthorGlossaryGlossaryEquationEquation Hypertext Hypertext  Cross-Ref Cross-Ref Conditional TextConditional TextPositionFMPrivatePositionFMPrivateRangeEndFMPrivateRangeEndFMPrivate HTML Macro HTML Macro               @|                                                Helvetica-Bold FrameRoman Times-Roman FrameRoman Helvetica FrameRomanCourier FrameRoman Times-Italic FrameRoman Courier-Bold FrameRoman Times-Bold FrameRomanSymbol FrameRomanCourier HelveticaSymbolTimes RegularRegularBoldRegularItalicS c6RMYET{nyF6պi@.o^@n@HU$ &V);֟@Q>^>(IeѬo'8)9JM/:I`wz׹Dijqʚ=O^Nuvu3TJ<М$=~B.uH>SNUdpD  Aad @= P`@p 0p  P0PpP eBookiHH $ d HHHH̀̀̀ff@  d Footnote TableFootnote**. . / - :;,.!?#;_K6" nyIXIndex IOMCommentGlossaryHeader/Footer $1Header/Footer $2IndexTOCHeading&()(),DBAddFltComponentDBAddIntComponent DBAddOptionDBAddStrComponentDBAddVarComponentDBAllocDBCalcExternalFacelist DBClearObjectDBClearOptlistDBClose DBContinueDBCreateDBCurve DBErrFunc DBErrStringDBErrnoDBFree DBFreeObject DBFreeOptlistDBGetAttDBGetComponentDBGetCompoundarray DBGetCurveDBGetDir DBGetMaterialDBGetMatspeciesDBGetMultimeshDBGetPointmesh DBGetPointvar DBGetQuadmesh DBGetQuadvarDBGetToc DBGetUcdmesh DBGetUcdvarDBGetVarDBGetVarBytelengthDBGetVarLengthDBInqCompoundarray DBInqMeshname DBInqMeshtypeDBInqVarExists DBInqVarType DBListDir DBMakeObject DBMakeOptlistDBMkDirDBOpenDBPauseDBPutCompoundarray DBPutFacelist DBPutMaterialDBPutMatspecies DBPutMultimatDBPutMultimesh DBPutMultivarDBPutPointmesh DBPutPointvar DBPutQuadmesh DBPutQuadvar DBPutUcdmesh DBPutUcdvar DBPutZonelist DBReadAtt DBReadVarDBReadVarSliceDBSetDir DBSetDirID DBShowErrorsDBWriteDBWriteComponent DBWriteObject DBWriteSlice DBfacelist DBmaterial DBmatspecies DBmeshvar DBmultimeshDBobject DBoptlist DBpointmesh DBquadmesh DBquadvar DBucdmeshDBucdvarDatatypePDBLibUCDbased bnd_methoddbaddoptdbcalcfldbclosedbcreatedbfile dbfreeoptlistdbgetcadbinglendbinqcadbmkdir dbmkoptlistdbopendbputcadbputfldbputmat dbputmmat dbputmmeshdbputmsp dbputmvardbputpmdbputqmdbputumdbputzldbrdvar dbrdvarslicedbsetdir dbshowerrors dbshowerrsdbwritediredgelistfacelist fnodelist fshapecnt fshapesizefzonenohi_offint lfnodelist lnodelistlo_off lznodelistmatlistmatnamemaxcompsmix_matmix_nextmix_vfmix_zonemixlenmixvarmixvarsndimsnfacesnfshapesnftypesnmatnmeshnnodesnodelistnshapes nspecies_mfntypesnvarsnzonesnzshapesoptlistperrorstdoutstructsubdir znodelist zonel_namezonelist zshapecnt zshapesizeAHm    EquationVariabless# V W Z [ ] ^ b c f g i j o p r s C Interface Overview 737943: 2Heading: 3.1.3. Using the Silo Option Parameter     <$lastpagenum><$monthname> <$daynum>, <$year>"<$monthnum>/<$daynum>/<$shortyear>;<$monthname> <$daynum>, <$year> <$hour>:<$minute00> <$ampm>"<$monthnum>/<$daynum>/<$shortyear><$monthname> <$daynum>, <$year>"<$monthnum>/<$daynum>/<$shortyear> <$fullfilename> <$filename> <$marker1> <$paratext[Heading]> <$curpagenum> <$marker1> <$marker2> (Continued)+ (Sheet <$tblsheetnum> of <$tblsheetcount>)Heading & Page <$paratext> on page<$pagenum>Pagepage<$pagenum>See Heading & Page%See <$paratext> on page<$pagenum>. Table & Page7Table<$paranumonly>, <$paratext>, on page<$pagenum>Chapter2ۀSSۀTTۀUUAۀVVۀWWۀXXAۀYZAۀ[[ۀ\A|H2.2.}I]HM2.3.^II J2.2.4.IJ2.2.5.IK@J2.2.6.I@MBCOEC@FAl Chapter 2tH2.1.MINJ2.1.1.g@J2.1.2.IKJ2.1.3.+I `L 2.1.3.1. aI,@*M YL 2.1.3.2. bI cN L 2.1.3.3.I*Md"S%dV*db  HHˆcHHˆHHˆeHHˆc(l<H;TD\H;\^(ldH cc HHˆIaHHˆDc$UTUT dbcreate UR dbmkdir  dbsetdir "d bputqm d bputqv1 d bputqv1 d bputqv1  .  . . "$ dbsetdir  dbmkdir  dbsetdir "d bputzl d bputfl d bputum d bputmat d bputuv1  .  . . "$ dbsetdir  @dbclose <`Reading Silo Files UTRU( LSilo functions that return Silo objects from an open file return a C struct _U&Ldata structure defining the object. The most reliable source of information `Pon the C structure returned from each call is the silo header file, silo.h. For UOreference, the header file for this version of Silo is attached as an appendix PU@to this manual. HHˆKaHHˆ`bb(l/ H;UDH;[DB)*hPC Interface Overview *&UTUT eThis chapter  documents t he C  and Fortran  interface  to the Silo library. The  UR@DC header file is silo.h and the Fortran header file is silo.inc /H`O ptional Arguments 0 UTaUO \Many Silo f unctions  h ave optional arguments. By optional, it is meant that a &nUMIdummy value can be supplied instead of an actual value. An argument to a ULFC function which the user does not want to provide, and which is docuULMmented as being optional, should be replaced with a NULL (as  defined in ,@the file  silo.h ). 1+` Using the Silo Option Parameter 2&UTUD KMany of the functions take as one of their arguments a list of option-name/UBJoption-value pairs. In this way additional information can be passed to a Jfunction without having to change the function's interface. The following Jsequence of function declarations outlines the procedure for creating and @populating such a list: 3. U: =DBoptlist *DBMakeOptlist (int maxopts) /* Create a list with U8A maximum list length */  IAint DBAddOption ( / * Add an option to the list: */ 8D Boptlist *optlist, / * the list, */ p5i nt option_id, / * the option, */ Av oid *option_value  / * the option's value */ D )  % H$ #H$ SW&l=Running H/F 1> H 4H TWl+?2@-A#BSilo Users Guide HHˆ5HHˆUW &UTUTd H U%HHH6 $H6H66 H$ H$ VW!lCRunning H/F 1D H H WW"l+Silo Users GuideE2F-G#H HHˆHHˆXW#&UTUTd H X*HHH6 )H6H66dY[ Hl~+Hl~YW$&UTUTd H;+H;ZH$ +Z/H$H$$H +.0HHH +/[HH H 8+H P[W%l+Silo Users GuideI2J-K#L d 3C HR`@ 24HR`@HRHR4Footnote Hq3@`@ 235Hq3@`@HzHz4 Single LineH 24766Footnote  (5  H3D`@258H3D`@HH4 Double LineH27;9: Double Line ,8: .89H28=<< Single Line 1;HZ2;> TableFootnote EGVR`@2=?EGVR`@EPwEPw4 TableFootnoteH!?*4 2>C@B Check mark  6 ?ABA 0  8 ?@BB@0 0O@/@*< ?A/@@A Hpc0*5 2?Hpc0HH Check markd\B Hl~DHl~@\W'`C and Fortran Functions d$^^ HHˆ%GHHˆ…@..^4+`C Calling Sequence 5&UTUS JThe functions in the Silo output package should be called in a particular UQ@order. 6/`Write Sequence 7&UTIUO MStart by creating a Silo file, with DBCreate(), create any necessary directoVUMKries, then call the remaining routines as needed for writing out the mesh, j@Dmaterial data, and any physics variables associated with the mesh. 8|UI`=Schematically, your program should look something like this: 9.UG DBCreate UE DBMkdir UB DBSetDir 2UBD BPutQuadmesh D BPutQuadvar1 D BPutQuadvar1  .  . . ". DBSetDir  DBMkdir  DBSetDir "D BPutZonelist D BPutFacelist D BPutUcdmesh D BPutMaterial D BPutUcdvar1  .  . . ". DBSetDir @DBClose :/`*Example of C Calling Sequence for writing ;&UTU LThe following C code is an example of the creation of a Silo file with just U@one directory (the root): <.U #include U#include zU3 ¨Uu int main() N{ pN @ DBfile *file = NULL; /* The Silo file pointer */ C char *coordnames[2]; /* Names of the coordinates */ @ float nodex[4]; /* The coordinate arrays */  float nodey[4]; ? float *coordinates[2]; /* The array of coordinate 1 arrays */ > int dimensions[2]; /* The number of nodes in 8 each dimension */   /* Create the Silo file */ d&__ HHˆ'IHHˆ@00_<.UTUT? file = DBCreate(sample.silo, DB_CLOBBER, DB_LOCAL, NULL, UR DB_PDB);  0!/ /* Name the coordinate axes X and Y */ ! coordnames[0] = strdup(X); ! coordnames[1] = strdup(Y);  - /* Give the x coordinates of the mesh */  nodex[0] = -1.1;  nodex[1] = -0.1;  nodex[2] = 1.3;  nodex[3] = 1.7;  - /* Give the y coordinates of the mesh */  nodey[0] = -2.4;  nodey[1] = -1.2;  nodey[2] = 0.4;  nodey[3] = 0.8;  , /* How many nodes in each direction? */  dimensions[0] = 4;  dimensions[1] = 4;  2 /* Assign coordinates to coordinates array */  coordinates[0] = nodex;  coordinates[1] = nodey;  ) /* Write out the mesh to the file */ : DBPutQuadmesh(file, mesh1, coordnames, coordinates, @ dimensions, 2, DB_FLOAT, DB_COLLINEAR, NULL);   /* Close the Silo file */  DBClose(file);   return (0); @} =/`Read Sequence >&UTU  JStart by opening the Silo file with DBOpen(), then change to the required U Kdirectory, and then read the mesh, material, and variables. Schematically,  T@.your program should look something like this: ?.!U DBOpen .U 3T DBSetDir D BGetQuadmesh 0D BGetQuadvar1 D BGetQuadvar1  .  . . B. d(`` HHˆ)KHHˆ„@**`?.UTUT DBSetDir URD BGetUcdmesh D BGetUcdvar1 0D BGetMaterial  .  . . ". @ DBClos e  y`Fortran Interface  UTUF MCurrently, C-callable functions exist for all routines, but Fortran-callable UDOfunctions exist for only a portion of the routines. The Fortran header file is ת@ silo.inc. Ǫ`Optional Arguments  UTU? JThe functions described below have optional arguments. By optional, it is U=Hmeant that a dummy value can be supplied instead of an actual value. An UHIargument to a Fortran function, which the user does not want to provide, Hand which is documented as optional, should be replaced with the parame@Ater DB_F77NULL, which is defined in the file  silo.inc . *h%QUsing the Silo Option Parameter  UT;U4 KMany of the functions take as one of their arguments a list of option-name/HU2Koption-value pairs. In this way, additional information can be passed to a Jfunction without having to change the functions interface. The following «Jsequence of function declarations outlines the procedure for creating and h@populating such a list: U* >integer function dbmkoptlist( !  Create a list: U(3m axopts, !  maximum list length T 1o ptlist_id !  list identifier r )  S ADinteger function dbaddiopt ( !  Add an integer option 2A!  to the list: +o ptlist_id, !  the list ,o ption_id, !  the option 5i nt_value !  the options integer !  value D )   U`PThere also are functions for adding real and character option values to a list. 0f`Fortran Calling Sequence  UTAU JThe functions in the Silo output package should be called in a particular NU Vorder. Start by creating a Silo file, with  dbcreate() , create any necessary AxLLdirectories, then call the remaining routines as needed for writing out the K~F@Jmesh, material data, and any physics variables associated with the mesh. QU`=Schematically, your program should look something like this: H$ TH$ !!lH SUH "" lHHˆT$HHˆ##!lH$ WH$ &&"lH VXH ''#lHHˆW)HHˆ(($lHl~+ZHl~Z,,%lH;+Y.H;Y--%lH +0H 11'lHl~DBHl~BEE(lHHˆGHHˆB_HH(lHHˆIHHˆ^`JJ(lHHˆKHHˆ_cLL(l dLeftdRightd+Firstd2 ReferencedDFirstdGdId Kd d a f@HQ  ~  1Heading 1Heading RuleH:\t..< >< >< >< >\t FirstBody. f@HQ  ~  1Heading-TOPH:\t..< >< >< >< >\t FirstBody. fff@SE ff 1Step Step Number S:.\tStep. _f@HQ  ~  2HeadingH:\t...< >< >< >\t FirstBody. _ f@HQ  ~  3HeadingH:\t....< >< >\t FirstBody. f@ Body. f@ ff  Bullet Bullet Symbol\t. f@  Bulleted\t. fffff@ CBullet. f@  CellBody. f@   CellHeading. c,f@HA Chapter (not inc) Chapter #H:\t FirstBody. f@      D h  Code. c*f@HA ChapterH:Chapter \t FirstBody. HH f@   l      D h  Code out.  f@   - Z ~     2 V z  CodeExample. fffff@ CStep. HHf@T  DefinitionBody f@E EquationEquation Number E:(EQ ). f@ Extract. f@HA   Figure Table Top Step Number H:Figure -< >< >< >< >\tBody. f@D  FirstBodyBody. c,f@HA FirstChapter Chapter #H:\t FirstBody. @@   footer first. @@   footer left. @@   footer right. f@ Footnote. f@E  Func-Arg-HdrEmphasis Arguments:Func-Arglist-Head. llf@E  Func-ArglistEmphasisFunc-Arglist-Head. llf@E l Func-Arglist-ContdEmphasis Func-Arglist. l$f@A  l Func-Arglist-HeadEmphasis Func-Arglist\t$$f@      Func-Body. $f@@  @  Func-Body-TypeFunc-Body-Type. f@U  Func-Desc-HdrEmphasis Description: Func-Body. f@U  Func-Note-HdrEmphasisNotes: Func-Body. f@U  Func-Ret-HdrEmphasisReturns: Func-Body. $f@@  zff Func-Summary Func-Summary. f@U  Func-Syn-HdrEmphasis Synopsis:Func-Body-Type. f@U  Func-Title Func-Syn-Hdr. f@T Func-Title-Head Func-Title() f@  HangIn. @@   Header. @@   header left. f@THeadingBody. f@THeading1Body. f@T Heading2Body. f@T  HeadingRunInBody. f@  Indented. $f@D   zff ff ff ff ff .ff Rff vff ff ff ff liebe code Func-Summary. f@  Numbered.\t. f@E  Numbered1.\tNumbered. fff@S ff Step Step Number S:.\t. f@  TableFootnote. f@H   TableTitleH:Table -< >< >< >< >. . f@PTitleBody. f@   CellHeading. f@   CellBody. f@H  + TableTitleH:Table -< >< >< >< >. . f@  Body. @@   header left. @@   footer left. $$f@       Func-Body. @@   footer right. @@   footer first. f@HQ   ~  1Heading 1Heading RuleH:\t..< >< >< >< >\t FirstBody. f@D  FirstBodyBody. _f@HQ  +~  2HeadingH:\t...< >< >< >\t FirstBody. HH f@   l      D h  Code out. _ f@HQ  /~  3HeadingH:\t....< >< >\t FirstBody. f@      D h  Code.  f@   - Z ~     2 V z  CodeExample. @@   header right. @@   header right. c*f@HA Chapter Chapter #H:Chapter \t FirstBody. ڝ ڝ i_mF  [  i_mF  Not Changed i_mF  3 Chapter # [  [  ڝ ڝ yc>  yc>  i_mF  3  Figure Helv tu  yc>   Bold tu  Emphasis  codeEquationVariables Subscript Superscript# Times-Italic  Typeface-Bold  Typeface Changed Not Changed i_mF code i_mF  Not Changed ڝ [  [  ڝEmphasis i_mF Emphasis i_mF  [  [ @ThinMediumDoubleThick@ Very Thin ?v=>==>==>=l=>=Format A ?H=>=H=>=H=>=H=>=H=>=Format B ?v=>=^=>=m=>=^=>=twosides Bad for Webmaker CommentS S  SZd BlackT!WhiteddARedddGreendd BluedCyandMagentad YellowHeader/Footer $1Header/Footer $1Header/Footer $2Header/Footer $2IndexIndexCommentCommentSubjectSubjectAuthorAuthorGlossaryGlossaryEquationEquation Hypertext Hypertext  Cross-Ref Cross-Ref Conditional TextConditional TextPositionFMPrivatePositionFMPrivateRangeEndFMPrivateRangeEndFMPrivate HTML Macro HTML MacroHelvetica-Bold FrameRoman Times-Roman FrameRoman Helvetica FrameRomanCourier FrameRoman Times-Italic FrameRoman Courier-Bold FrameRoman Times-Bold FrameRomanCourier HelveticaTimes RegularRegularBoldRegularItalicS ן -CmSr7]ʔ*,:XSDkll8?~՗ E2-5k4ȲkdJ$k$\h*-p3維HEOSU~D|silo-4.8-bsd/docs/Silo.bookLOP.fm0000644000707000001660000037000011444246315016156 0ustar miller86visit  Aad 0Pp0@ @P   PPP eBookiHH $ @d HHHH̀̀̀ff@  d Footnote TableFootnote**. . / - :;,.!? k06" ny   EquationVariables Vc $: $< $G $I $i %^ *e * * * + Uj Ul Un Up Ur Ut Uv Ux Uz U| U~ U U U U U U U U U U U U U U U U U U U U U U! U" U# U$ U% U& U' U( U) U* U+ U, U- U. U/ U0 U1 U2 U3 U4 U5 U6 U7 U8 U9 U: U; U< U= U> U? U@ UA UB UC UD UE UF UG UH UI UJ UK VL VM VN VO VP V Q V R VS VT VU VV VW VXa VZ V[ V \ V"] V$^ V&_ V(` V*a V,b V.c V0d V2e V4f V6g V8h V:i V<j V>k V@l VBm VDn VFo VHp VJq VLr VNs VPt VRu VTv VVw VXx VZy V\z V^{ V`| Vb} Vd~ Vf Vh Vj Vl Vn Vp Vr Vt Vv Vx Vz V| V~ V V V V V V V V V V V V V V V V V V V V V V! V" V# V$ V% V& V' V( V) V* V+ V, V- V. V/ V0 V1 V2 V3 V4 V5 V6 V7 V8 V9 V: V<X +openObjectId Chapter2-man_pages.fm:2 812464 +openObjectId Chapter2-man_pages.fm:2 810144 +openObjectId Chapter2-man_pages.fm:2 798246 +openObjectId Chapter2-man_pages.fm:2 798255 +openObjectId Chapter2-man_pages.fm:2 798265 +openObjectId Chapter2-man_pages.fm:2 819782 +openObjectId Chapter2-man_pages.fm:2 820630 +openObjectId Chapter2-man_pages.fm:2 808182 +openObjectId Chapter2-man_pages.fm:2 803857 +openObjectId Chapter2-man_pages.fm:2 815455 +openObjectId Chapter2-man_pages.fm:2 815456 +openObjectId Chapter2-man_pages.fm:2 815484 +openObjectId Chapter2-man_pages.fm:2 804088 +openObjectId Chapter2-man_pages.fm:2 796236 +openObjectId Chapter2-man_pages.fm:2 796606 +openObjectId Chapter2-man_pages.fm:2 804114 +openObjectId Chapter2-man_pages.fm:2 796683 +openObjectId Chapter2-man_pages.fm:2 804263 +openObjectId Chapter2-man_pages.fm:2 804636 +openObjectId Chapter2-man_pages.fm:2 797245 +openObjectId Chapter2-man_pages.fm:2 804353! +openObjectId Chapter2-man_pages.fm:2 804361" +openObjectId Chapter2-man_pages.fm:2 804336# +openObjectId Chapter2-man_pages.fm:2 804323$ +openObjectId Chapter2-man_pages.fm:2 804387% +openObjectId Chapter2-man_pages.fm:2 814783& +openObjectId Chapter2-man_pages.fm:2 793896' +openObjectId Chapter2-man_pages.fm:2 817880( +openObjectId Chapter2-man_pages.fm:2 820064) +openObjectId Chapter2-man_pages.fm:2 820098* +openObjectId Chapter2-man_pages.fm:2 820138+ +openObjectId Chapter2-man_pages.fm:2 820675, +openObjectId Chapter2-man_pages.fm:2 817883- +openObjectId Chapter2-man_pages.fm:2 803771. +openObjectId Chapter2-man_pages.fm:2 803751/ +openObjectId Chapter2-man_pages.fm:2 7969480 +openObjectId Chapter2-man_pages.fm:2 8194591 +openObjectId Chapter2-man_pages.fm:2 8129162 +openObjectId Chapter2-man_pages.fm:2 8037043 +openObjectId Chapter2-man_pages.fm:2 8037254 +openObjectId Chapter2-man_pages.fm:2 8150515 +openObjectId Chapter2-man_pages.fm:2 8038016 +openObjectId Chapter2-man_pages.fm:2 8038167 +openObjectId Chapter2-man_pages.fm:2 8035898 +openObjectId Chapter2-man_pages.fm:2 8036009 +openObjectId Chapter2-man_pages.fm:2 803839: +openObjectId Chapter2-man_pages.fm:2 813246; +openObjectId Chapter2-man_pages.fm:2 813261< +openObjectId Chapter2-man_pages.fm:2 813288= +openObjectId Chapter2-man_pages.fm:2 793903> +openObjectId Chapter2-man_pages.fm:2 815439? +openObjectId Chapter2-man_pages.fm:2 798311@ +openObjectId Chapter2-man_pages.fm:2 798451A +openObjectId Chapter2-man_pages.fm:2 798813B +openObjectId Chapter2-man_pages.fm:2 812970C +openObjectId Chapter2-man_pages.fm:2 810569D +openObjectId Chapter2-man_pages.fm:2 798835E +openObjectId Chapter2-man_pages.fm:2 798859F +openObjectId Chapter2-man_pages.fm:2 799391G +openObjectId Chapter2-man_pages.fm:2 799068H +openObjectId Chapter2-man_pages.fm:2 810705I +openObjectId Chapter2-man_pages.fm:2 799413J +openObjectId Chapter2-man_pages.fm:2 799438K +openObjectId Chapter2-man_pages.fm:2 800048L +openObjectId Chapter2-man_pages.fm:2 800115M +openObjectId Chapter2-man_pages.fm:2 800698N +openObjectId Chapter2-man_pages.fm:2 800730O +openObjectId Chapter2-man_pages.fm:2 800842P +openObjectId Chapter2-man_pages.fm:2 801900Q +openObjectId Chapter2-man_pages.fm:2 800986R +openObjectId Chapter2-man_pages.fm:2 800142S +openObjectId Chapter2-man_pages.fm:2 800283T +openObjectId Chapter2-man_pages.fm:2 801062U +openObjectId Chapter2-man_pages.fm:2 801089V +openObjectId Chapter2-man_pages.fm:2 796624W +openObjectId Chapter2-man_pages.fm:2 801518X +openObjectId Chapter2-man_pages.fm:2 796663Y +openObjectId Chapter2-man_pages.fm:2 801921Z +openObjectId Chapter2-man_pages.fm:2 796644[ +openObjectId Chapter2-man_pages.fm:2 802054\ +openObjectId Chapter2-man_pages.fm:2 802414] +openObjectId Chapter2-man_pages.fm:2 817593^ +openObjectId Chapter2-man_pages.fm:2 802441_ +openObjectId Chapter2-man_pages.fm:2 802469` +openObjectId Chapter2-man_pages.fm:2 802559a +openObjectId Chapter2-man_pages.fm:2 803518b +openObjectId Chapter2-man_pages.fm:2 803534c +openObjectId Chapter2-man_pages.fm:2 816081ae +openObjectId Chapter2-man_pages.fm:2 796757f +openObjectId Chapter2-man_pages.fm:2 804944g +openObjectId Chapter2-man_pages.fm:2 796781h +openObjectId Chapter2-man_pages.fm:2 805104i +openObjectId Chapter2-man_pages.fm:2 796801j +openObjectId Chapter2-man_pages.fm:2 805250k +openObjectId Chapter2-man_pages.fm:2 797540l +openObjectId Chapter2-man_pages.fm:2 805422m +openObjectId Chapter2-man_pages.fm:2 797559n +openObjectId Chapter2-man_pages.fm:2 808276o +openObjectId Chapter2-man_pages.fm:2 808522p +openObjectId Chapter2-man_pages.fm:2 808563q +openObjectId Chapter2-man_pages.fm:2 808613r +openObjectId Chapter2-man_pages.fm:2 808519s +openObjectId Chapter2-man_pages.fm:2 808379t +openObjectId Chapter2-man_pages.fm:2 808409u +openObjectId Chapter2-man_pages.fm:2 808445v +openObjectId Chapter2-man_pages.fm:2 808477w +openObjectId Chapter2-man_pages.fm:2 793933x +openObjectId Chapter2-man_pages.fm:2 803189y +openObjectId Chapter2-man_pages.fm:2 803275z +openObjectId Chapter2-man_pages.fm:2 803307{ +openObjectId Chapter2-man_pages.fm:2 803340| +openObjectId Chapter2-man_pages.fm:2 803354} +openObjectId Chapter2-man_pages.fm:2 803365~ +openObjectId Chapter2-man_pages.fm:2 803385 +openObjectId Chapter2-man_pages.fm:2 803398 +openObjectId Chapter2-man_pages.fm:2 815551 +openObjectId Chapter2-man_pages.fm:2 815768 +openObjectId Chapter2-man_pages.fm:2 807295 +openObjectId Chapter2-man_pages.fm:2 807506 +openObjectId Chapter2-man_pages.fm:2 810066 +openObjectId Chapter2-man_pages.fm:2 809936 +openObjectId Chapter2-man_pages.fm:2 803451 +openObjectId Chapter2-man_pages.fm:2 810732 +openObjectId Chapter2-man_pages.fm:2 803178 +openObjectId Chapter2-man_pages.fm:2 803914 +openObjectId Chapter2-man_pages.fm:2 803956 +openObjectId Chapter2-man_pages.fm:2 793938 +openObjectId Chapter2-man_pages.fm:2 796331 +openObjectId Chapter2-man_pages.fm:2 796375 +openObjectId Chapter2-man_pages.fm:2 796327 +openObjectId Chapter2-man_pages.fm:2 818764 +openObjectId Chapter2-man_pages.fm:2 818762 +openObjectId Chapter2-man_pages.fm:2 796116 +openObjectId Chapter2-man_pages.fm:2 796133 +openObjectId Chapter2-man_pages.fm:2 796154 +openObjectId Chapter2-man_pages.fm:2 796194 +openObjectId Chapter2-man_pages.fm:2 796213 +openObjectId Chapter2-man_pages.fm:2 796175 *openObjectId Chapter2-man_pages.fm:2 49897 +openObjectId Chapter2-man_pages.fm:2 802596 +openObjectId Chapter2-man_pages.fm:2 802618 +openObjectId Chapter2-man_pages.fm:2 802709 +openObjectId Chapter2-man_pages.fm:2 802727 +openObjectId Chapter2-man_pages.fm:2 802745 +openObjectId Chapter2-man_pages.fm:2 802831 +openObjectId Chapter2-man_pages.fm:2 803028 +openObjectId Chapter2-man_pages.fm:2 803043 +openObjectId Chapter2-man_pages.fm:2 802944! +openObjectId Chapter2-man_pages.fm:2 802957" +openObjectId Chapter2-man_pages.fm:2 802976# +openObjectId Chapter2-man_pages.fm:2 802990$ +openObjectId Chapter2-man_pages.fm:2 802852% +openObjectId Chapter2-man_pages.fm:2 802886& +openObjectId Chapter2-man_pages.fm:2 802915' +openObjectId Chapter2-man_pages.fm:2 795672( +openObjectId Chapter2-man_pages.fm:2 796057) +openObjectId Chapter2-man_pages.fm:2 796074* +openObjectId Chapter2-man_pages.fm:2 796089+ +openObjectId Chapter2-man_pages.fm:2 795871, +openObjectId Chapter2-man_pages.fm:2 795887- +openObjectId Chapter2-man_pages.fm:2 795904. +openObjectId Chapter2-man_pages.fm:2 795941/ +openObjectId Chapter2-man_pages.fm:2 7959570 +openObjectId Chapter2-man_pages.fm:2 7959831 +openObjectId Chapter2-man_pages.fm:2 7960142 +openObjectId Chapter2-man_pages.fm:2 7960343 +openObjectId Chapter2-man_pages.fm:2 7962534 +openObjectId Chapter2-man_pages.fm:2 7962695 +openObjectId Chapter2-man_pages.fm:2 7965556 +openObjectId Chapter2-man_pages.fm:2 8159747 +openObjectId Chapter2-man_pages.fm:2 7950138 +openObjectId Chapter2-man_pages.fm:2 7950149 +openObjectId Chapter2-man_pages.fm:2 795016: +openObjectId Chapter2-man_pages.fm:2 807037; +openObjectId Chapter2-man_pages.fm:2 806404< +openObjectId Chapter2-man_pages.fm:2 807161= +openObjectId Chapter2-man_pages.fm:2 802577> +openObjectId Chapter2-man_pages.fm:2 812307? +openObjectId Chapter2-man_pages.fm:2 812308@ +openObjectId Chapter2-man_pages.fm:2 811109A +openObjectId Chapter2-man_pages.fm:2 811134B +openObjectId Chapter2-man_pages.fm:2 806549C +openObjectId Chapter2-man_pages.fm:2 804003D +openObjectId Chapter2-man_pages.fm:2 804044E +openObjectId Chapter2-man_pages.fm:2 818626G +openObjectId Chapter2-man_pages.fm:2 803994  <$lastpagenum><$monthname> <$daynum>, <$year>"<$monthnum>/<$daynum>/<$shortyear><$monthname> <$daynum>, <$year>"<$monthnum>/<$daynum>/<$shortyear><$monthname> <$daynum>, <$year>"<$monthnum>/<$daynum>/<$shortyear> <$fullfilename> <$filename> <$paratext[Title]> <$paratext[Heading1]> <$curpagenum> <$marker1> <$marker2> (Continued)+ (Sheet <$tblsheetnum> of <$tblsheetcount>)Heading & Page <$paratext> on page<$pagenum>Pagepage<$pagenum>See Heading & Page%See <$paratext> on page<$pagenum>. Table All7Table<$paranumonly>, <$paratext>, on page<$pagenum>Table Number & Page'Table<$paranumonly> on page<$pagenum>  A  A!AA(  BookHeadings#BookHTMLLOPe $F? $T? $U@ $VA $J@ $KA V $9? $=@ $>A $k> $m> $o> $qB $sB $uB $wB $yC ${B $}B $D $B $B $E $B $B $F $B $B $C $B $B $D $B $B $G $B $B $F $B $B $F $B $B $F $B $B $G $B $B $H $B $B $I $B $B $J $B $B $K $B $B $K $B $B $L $B $B $M $B $B $N $B $B $M $B $B $O $B $B $M $B $B $M $B %B %M %B %B % M % B % B %G %B %B %P %B %B %H %B %B %!Q %#B %%B %'R %)B %+B %-S %/B %1B %3K %5B %7B %9T %;B %=B %?U %AB %CB %EM %GB %IB %KO %MB %OB %QM %SB %TA %`> %b> %d> %f> %h> %jB %lB %nB %pB %rB %tB %vB %xB %zB %|B %~B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %BB %BB %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B %B &B &B &B &B &B & B & B &B &B &B &B &B &B &BB &BB &B &B & B &"B &$B &%BB &&BB &(B &*B &,B &.B &0B &2B &4B &6B &8B &:B &<B &>B &@B &BB &DB &FB &HB &JB &LB &NB &PB &RB &TB &VB &XB &ZB &\B &^B &`B &bB &dB &fB &hB &jB &lB &nB &pB &rB &tB &vB &xB &zB &|B &~B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &B &BB &BB &B &B 'B 'B 'B 'B 'B ' B ' B 'B 'B 'B 'B 'B 'B 'B 'B 'B ' B '"B '$B '&B '(B '*B ',B '.B '0B '2B '4B '6B '8B ':B '<B '>B '@B 'ABB 'BBB 'DB 'FB 'HB 'JB 'LB 'NB 'PB 'RB 'TB 'VB 'XB 'ZB '\B '^B '`B 'bB 'dB 'fB 'hB 'jB 'lB 'nB 'pB 'rB 'tB 'vB 'xB 'zB '|B '~B 'B 'B 'B 'B 'B 'BB 'BB 'B 'B 'B 'B 'B 'BB 'BB 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'BB 'BB 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B 'B (B (B (B (B (B ( B ( B (B (B (BB (BB (B (B (B (B (B (BB (BB ( B ("B ($B (&B ((B (*B (,B (.B (0B (2B (4B (6B (8B (:B (<B (>B (@B (BB (DB (FB (HB (JB (LB (NB (PB (RB (TB (VB (XB (ZB (\B (^B (`B (bB (dB (fB (hB (jB (lB (nB (pB (rB (tB (vB (xB (zB (|B (~B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (B (BB (BB (B (B (B (B (B (BB (BB (B (B (B (B (B (B (B (B (B (B (BB (BB (B (B (B (B )B )B )B )B )B ) B ) B )B )B )B )B )B )B )B )B )B ) B )"B )$B )&B )(B )*B ),B ).B )0B )2B )4B )6B )8B ):B )<B )>B )@B )BB )DB )FB )HB )JB )LB )NB )PB )RB )TB )VB )XB )ZB )\B )^B )`B )bB )dB )fB )hB )jB )lB )nB )pB )rB )tB )vB )xB )zB )|B )~B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B )B *B *B *B *B *B * B * B *B *B *B *B *B *B *B *B *B * B *"B *$B *&B *(B **B *,B *.B *0B *2B *4B *6B *8B *:B *<B *>B *@B *BB *DB *FB *HB *JB *LB *NB *PB *RB *TB *VB *XB *ZB *\B *^B *`B *bB *dB *g> *i> *k> *mB *oB *qB *sB *uB *wB *yB *{B *}B *B *B *B *B *B *B *> *> *> *> *B *B *B *B *B *B *BB *BB *BB *BB *B *B *B *B *B *B *B *BB *BB *BB *BB *B *B *B *B *B *B *B *BB *BB *BB *BB *B *B *B *B *B *B *B *BB *BB *BB *BB *B *B *B *B *B *> *> *> *B *B *B *B *B *B *> *> +> +> +B +B +B + B + B +B +B +B +> +> +> +B +B +B +!B +#B +%B +'B +)B ++B +-B +/B +1B +3B +5B +7B +9B +;B +=B +?B +AB +CB +EB +GB +IB +JA +aA +c +d^ +eZ Uk Um^ Uo^ Uq^ Us^ Uu^ Uw^ Uy^ U{^ U}^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ U^ V^ V^ V^ V^ V ^ V ^ V ^ V^ V^ V^ V^ V^ V^ V^ V^_ V!^ V#^ V%^ V'^ V)^ V+^ V-^ V/^ V1^ V3^ V5^ V7^ V9^ V;^ V=^ V?^ VA VC^ VE^ VG^ VI^ VK^ VM^ VO^ VQ^ VS^ VU^ VW^ VY^ V[^ V]^ V_^ Va^ Vc Ve^ Vg^ Vi Vk^ Vm^ Vo^ Vq^ Vs Vu^ Vw^ Vy^ V{^ V}^ V^ V V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V^ V V^ V^ V^ V^ V^ V^ V^ V V^ V^ V^ V^ V^ V^ V^ V^ V!d $? d +_ H$ $@ H$l H$ $AH$W` d $M H$ $NH$l H$ $OH$We HUa $P HUa l HUa $QHUaWe HHˆ $RHHˆlHUa $B HUa l HUa $CHUa Wl # HHˆ $D HHˆl HHˆ $EHHˆ WUTUT` d $X&d $. HHˆ $/HHˆ++ +UTUTh8 Error Handling and Other Global Library Behavior7  h DBErrfuncname8 hDBErrno9 hDBErrString10 hDBShowErrors11 hDBErrlvl12 hDBErrfunc13 hDBVariableNameValid14 &hDBVersion15 hDBVersionGE16 hDBFileVersion17 hDBFileVersionGE18 hDBSetAllowOverwrites19 hDBGetAllowOverwrites20 hDBForceSingle21 hDBSetDataReadMask22 hDBGetDataReadMask24 hDBSetEnableChecksums25 hDBGetEnableChecksums26 hDBSetCompression27  h DBGetCompression30 !h!DBSetFriendlyHDF5Names31 "h"DBGetFriendlyHDF5Names32 #h#DBSetDeprecateWarnings33 $h$DBGetDeprecateWarnings34 %h%DB_VERSION_GE35 &+UTURh!&Files and File Structure36 'h!'DBRegisterFileOptionsSet38 (h#(DBUnregisterFileOptionsSet42 )qh')DBUnregisterAllFileOptionsSets43 *Uph%*DBSetUnknownDriverPriorities44 +Uph%+DBGetUnknownDriverPriorities45 ,h,DBCreate46 -h-DBOpen51 .h.DBClose53 /h/DBGetToc54 0h0DBSortObjectsByOffset55 1h1DBMkDir56 2h2DBSetDir57 3h3DBGetDir58 4h4DBCpDir59 5h5DBGrabDriver60 A6h6DBUngrabDriver61 HHˆ $1HHˆld $2H$ $3H$l H$ $4H$W` HUa $5HUa l HUa $6HUaW l # HHˆ $7HHˆ l HHˆ $8HHˆW UTUTe HHˆ $SHHˆ WUTUTe HR`@ $YHR`@HRHRFootnote Hq3@`@ $ZHq3@`@HzHz Single LineH $[Footnote $\  H3D`@ $] H3D`@HH Double LineH $^#!" Double Line $_ " $` !H $a %$$ Single Line $b#HZ $c#& TableFootnote EGVR`@ $d%EGVR`@EPwEPw TableFootnoted $f(($$ $g'$$ )) l $$ $h'$$* ( WUTUTBi }$ $j'-$ )W `Headings Table } $l' )W a }  $n'  )W a }$Dl $p'*.$Dl)W `Heading Level }D $r'-/D)W `Paragraph Format } D $t'.0 D)W ` Comments }$Tl $v'/1$Tl)W a11 }T $x'02T)W a 1Heading } T $z'13 T)W a }$dl $|'24$dl)W a12 }d $~'35d)Wa 2Heading } d $'46 d)W a }$tl $'57$tl)W a14 }t $'68t )Wa 3Heading } t $'79 t)W a }$l $'8:$l)W a2 } $'9;)Wa Appendix }  $':< )W a }$l $';=$l)W a11 } $'<>)W a Appendix1 }  $'=? )W a }$l $'>@$l)W  a12 } $'?A)W!a Appendix2 }  $'@B )W" a }$l $'AC$l) W# a5 } $'BD) W$UTUTa AppendixTOC } $'CE ) W% a }$l $'DF$l) W& a2 } $'EG) W'aChapter }  $'FH ) W( a }$l6 $'GI$l6) W) a2 }6 $'HJ66) *! Chapter (not P,Ainc) } 6 $'IK 6) W+ a }$$l6 $'JL$$l6) W, a2 }$6 $'KM$66) -! Chapter (noP,Atag) } $6 $'LN $6) W. a }$Zl $'MO$Zl) W/ a5 }Z $'NPZ) W0UTUTaChapter (notag)TOC } Z $'OQ Z) W1 a }$ll $'PR$ll)W2 a4 }l $'QSl)W3UTUTa ChapterTOC } l $'RT l)W4 a }$~lN $'SU$~lN)W5 a1 }~N $'TV~NN)6! Cover tiP@Atle } ~N $'UW ~N)W7 a }$l $'VX$l)W8 a7 } $'WY)W9 a Cover top }  $'XZ )W: a }$l $'Y[$l)W; a16 } $'Z\)W<a Definition }  $'[] )W= a }$l $'\^$l)W> a10 } $']_)W?a Disclaimer }  $'^` )W@ a }$l $'_a$l)WA a15 } $'`b )WBaFigure }  $'ac )WC a }$ l $'bd$ l)WD a8 }  $'ce )WEUTUTa Func-Arg-Hdr }  $'df )WF a }$l $'eg$l)WG a9 } $'fh)WHUTUTa Func-Arglist }  $'gi )WI a }$,l $'hj$,l)WJ a8 }, $'ik,)WKUTUTaFunc-Arglist-Hdr } , $'jl ,)WL a }$z!$Wu%UTUTaTypedef } z %@ z!$Wv a }$l %B$l!%Ww a21 } %D!%WxUTUTaTypedef-Comment }  %F !%Wy a }$l %H$l!&Wz a23 } %J!&W{UTUTaTypedef-First }  %L !&W| a }$l %N$l!'W} a20 } %P!'W~UTUTaTypedef-topcomment }  %R !'W a d %V $$ %W$$(!! l $$ %X$$   d %[##$$ %\"$$$$ l $$ %]"$$x%]#x^chmrw| $).38=BGLQV[`ejoty~ !&+05:?DINSX]bglqv{ #(-27h$,W a }$ %"=?$$-W aP:1Heading-TOP }H %">@H$-W aP }6 %"?A6$-W aN }26 %"@B26$-W aN }h %"ACh$-W a }$ %"BD$$.W aP:1Heading-TOPTOC }H %"CEH$.W  aP }6 %"DF6$.W! aN }26 %"EG26$.W" aN }h %"FHh$.W# a }$ %"GI$$/W$ aP:1HeadingTOC }H %"HJH$/W% aP }6 %"IK6$/W& aN }26 %"JL26$/W' aN }h %"KMh$/W( a }$, %"LN$,$0W) aP:1Step }H, %"MOH,,$0* aLI +a Parent = OL Q,a Depth = 0 }6, %"NP6,$0W- aN }26, %"OQ26,$0W. aN }h, %"PRh,$0W/ a }$ %"QS$$1W0 a P:2Heading }H %"RTH$1W1 aH* }6 %"SU6$1W2 aN }26 %"TV26$1W3 aN }h %"UWh$1W4 a }$ %"VX$$2W5 aP:2HeadingTOC }H %"WYH$2W6 aP }6 %"XZ6$2W7 aN }26 %"Y[26$2W8 aN }h %"Z\h$2W9 a }$ %"[]$$3W: a P:3Heading }H %"\^H$3W; aH* }6 %"]_6$3W< aN }26 %"^`26$3W= aN }h %"_ah$3W> a }$ %"`b$$4W? a P:Appendix }H %"acH$4W@ aH* }6 %"bd6$4WA aN }26 %"ce26$4WB aN }h %"dfh$4WC a }$. %"eg$.$5WD a P:Appendix1 }.H %"fh.H$5WE aH* }.6 %"gi.6$5WF aN }2.6 %"hj2.6$5WG aN }h. %"ikh.$5WH a }$> %"jl$>$6WI a P:Appendix2 }>H %"km>H$6WJ aH* }>6 %"ln>6$6WK aN }2>6 %"mo2>6$6WL aN }h> %"nph>$6WM a }$N %"oq$N$7WN a P:Appendix3 }NH %"prNH$7WO aP }N6 %"qsN6$7WP aN }2N6 %"rt2N6$7WQ aN }hN %"suhN$7WR a }$^ &"tv$^$8WS aP:AppendixTOC }^H &"uw^H$8WT aH* }^6 &"vx^6$8WU aN }2^6 &"wy2^6$8WV aN }h^ & "xzh^$8WW a }$n & "y{$n$9WX aP:Body }nH & "z|nH$9WY aP }n6 &"{}n6$9WZ aN }2n6 &"|~2n6$9W[ aN }hn &"}hn$9W\ a }$~, &"~$~,$:W] a P:Bullet }~H, &"~H,,$:^ aLI _a Parent = UL Q`a Depth = 0 }~6, &"~6,$:Wa aN }2~6, &"2~6,$:Wb aN }h~, &"h~,$:Wc a }$, &!"$,$;Wd a P:Bulleted }H, &#"H,,$;e aLI fa Parent = UL Qga Depth = 0 }6, &'"6,$;Wh aN }26, &)"26,$;Wi aN }h, &+" h,$;Wj a }$ &-" $$<Wk a P:CBullet }H &/" H$<Wl aP }6 &1" 6$<Wm aN }26 &3" 26$<Wn aN }h &5" h$<Wo a }$ &7" $$=Wp a P:CellBody }H &9"H$=Wq aP }6 &;"6$=Wr aN }26 &="26$=Ws aN }h &?"h$=Wt a }$ &A"$$>Wu aP:CellHeading }H &C"H$>Wv aP }6 &E"6$>Ww aN }26 &G"26$>Wx aN }h &I"h$>Wy a }$ &K"$$?Wz a P:Chapter }H &M"H$?W{ aH* }6 &O"6$?W| aN }26 &Q"26$?W} aN }h &S"h$?W~ a }$ &U"$$@W aP:Chapter (not inc) }H &W"H$@W aH* }6 &Y" 6$@W aN }26 &["!26$@W aN }h &]" "h$@W a }$& &_"!#$&$AW aP:Chapter (notag) }&H &a""$&H$AW aH* }&6 &c"#%&6$AW aN }2&6 &e"$&2&6$AW aN }h& &g"%'h&$AW a }$6 &i"&($6$BW  aP:Chapter (notag)TOC }6H &k"')6H$BW  aH* }66 &m"(*66$BW  aN }266 &o")+266$BW  aN }h6 &q"*,h6$BW  a }$F &s"+-$F$CW a P:ChapterTOC }FH &u",.FH$CW aH* }F6 &w"-/F6$CW aN }2F6 &y".02F6$CW aN }hF &{"/1hF$CW a }$V &}"02$V$DW aP:Code }VH &"13VH$DW aP }V6 &"24V6$DW aN }2V6 &"352V6$DW aN }hV &"46hV$DW a }$f &"57$f$EW a P:Code out }fH &"68fH$EW aP }f6 &"79f6$EW aN }2f6 &"8:2f6$EW aN }hf &"9;hf$EW a }$v &":<$v$FW aP:CodeExample }vH &";=vH$FW aP }v6 &"<>v6$FW aN }2v6 &"=?2v6$FW  aN }hv &">@hv$FW! a }$† &"?A$†$GW" a P:Cover date }†H &"@B†H$GW# aP }†6 &"AC†6$GW$ aN }2†6 &"BD2†6$GW% aN }h† &"CEh†$GW& a }$– &"DF$–$HW' aP:Cover title }–H &"EG–H$HW( aH* }–6 &"FH–6$HW) aN }2–6 &"GI2–6$HW* aN }h– &"HJh–$HW+ a }$¦ &"IK$¦$IW, a P:Cover top }¦H &"JL¦H$IW- aH* }¦6 &"KM¦6$IW. aN }2¦6 &"LN2¦6$IW/ aN }h¦ &"MOh¦$IW0 a }$¶ &"NP$¶$JW1 aP:CStep }¶H &"OQ¶H$JW2 aP }¶6 &"PR¶6$JW3 aN }2¶6 &"QS2¶6$JW4 aN }h¶ &"RTh¶$JW5 a }$ &"SU$$KW6 a P:Definition }H &"TVH$KW7 aH* }6 &"UW6$KW8 aN }26 &"VX26$KW9 aN }h &"WYh$KW: a }$ &"XZ$$LW; aP:Definition Body }H &"Y[H$LW< aP }6 &"Z\6$LW= aN }26 &"[]26$LW> aN }h &"\h$LW? a }$b &_$bMW@ a P:Disclaimer }bH &^`bHMWA aH* }b6 &_ab6MWB aN }2b6 &`b2b6MWC aN }hb &achbMWD a }$r &bd$rNWE aP:Disclaimer Body }rH &cerHNWF aP }r6 &dfr6NWG aN }2r6 &eg2r6NWH aN }hr &fhhrNWI a }$ &gi$OWJ aP:Disclaimer Bottom }H &hjHOWK aP }6 &ik6OWL aN }26 &jl26OWM aN }h &kmhOWN a }$, &ln$,PWO a P:Equation }H, &moH,,PP aLI Qa Parent = OL QRa Depth = 0 }6, &np6,PWS aN }26, &oq26,PWT aN }h, &prh,PWU a }$ 'qs$QWV a P:Extract }H 'rtHQWW aP }6 'su6QWX aN }26 'tv26QWY aN }h ' uwhQWZ a }$ ' vx$RW[ a P:Figure }H ' wyHRW\ aH* }6 'xz6RW] aN }26 'y{26RW^ aN }h 'z|hRW_ a }$ '{}$SW` a P:FigureLOF }H '|~HSWa aP }6 '}6SWb aN }26 '~26SWc aN }h 'hSWd a }$ '$TWe a P:FigureTOC }H '!HTWf aP }6 '#6TWg aN }26 '%26TWh aN }h ''hTWi a }$ ')$UWj aP:FigureTOCLOF }H '+HUWk aP }6 '- 6UWl aN }26 '/ 26UWm aN }h '1 hUWn a }$ '3 $VWo a P:FirstBody }H '5 HVWp aP }6 '7 6VWq aN }26 '9 26VWr aN }h ';hVWs a }$, '=$,WWt aP:FirstChapter }H, '?H,,Wu aLI va Parent = UL Qwa Depth = 0 }6, 'C6,WWx aN }26, 'E26,WWy aN }h, 'Gh,WWz a }$J 'I$JXW{ a P:Footer }JH 'KJHXW| aP }J6 'MJ6XW} aN }2J6 'O2J6XW~ aN }hJ 'QhJXW a }$Z 'S$ZYW aP:footer first }ZH 'UZHYW aP }Z6 'WZ6YW aN }2Z6 'Y2Z6YW aN }hZ '[hZYW a }$j '] $jZW aP:footer left }jH '_!jHZW aP }j6 'a "j6ZW aN }2j6 'c!#2j6ZW aN }hj 'e"$hjZW  a }$z 'g#%$z[W  aP:footer right }zH 'i$&zH[W  aP }z6 'k%'z6[W  aN }2z6 'm&(2z6[W  aN }hz 'o')hz[W a }$ 'q(*$\W a P:Footnote }H 's)+H\W aP }6 'u*,6\W aN }26 'w+-26\W aN }h 'y,.h\W a }$ '{-/$]W aP:Func-Arg-Hdr }H '}.0H]W aH* }6 '/16]W aN }26 '0226]W aN }h '13h]W a }$, '24$,^W aP:Func-Arg-Hdr-C }H, '35H,,^ aLI a Parent = UL Qa Depth = 0 }6, '466,^W aN }26, '5726,^W aN }h, '68h,^W a }$, '79$,_W  aP:Func-Arg-Hdr-F77 }H, '8:H,,_! aLI "a Parent = UL Q#a Depth = 0 }6, '9;6,_W$ aN }26, ':<26,_W% aN }h, ';=h,_W& a }$ '<>$`W' aP:Func-Arglist }H '=?H`W( aH* }6 '>@6`W) aN }26 '?A26`W* aN }h '@Bh`W+ a }$, 'AC$,aW, aP:Func-Arglist-Contd }H, 'BDH,,a- aLI .a Parent = UL Q/a Depth = 0 }6, 'CE6,aW0 aN }26, 'DF26,aW1 aN }h, 'EGh,aW2 a }$> 'FH$>bW3 aP:Func-Arglist-Hdr }>H 'GI>HbW4 aH* }>6 'HJ>6bW5 aN }2>6 'IK2>6bW6 aN }h> 'JLh>bW7 a }$N 'KM$NcW8 aP:Func-Arglist-Head }NH 'LNNHcW9 aH* }N6 'MON6cW: aN }2N6 'NP2N6cW; aN }hN 'OQhNcW< a }$^ 'PR$^dW= a P:Func-Body }^H 'QS^HdW> aP }^6 'RT^6dW? aN }2^6 'SU2^6dW@ aN }h^ 'TVh^dWA a }$n 'UW$neWB aP:Func-Body-Type }nH 'VXnHeWC aP }n6 'WYn6eWD aN }2n6 'XZ2n6eWE aN }hn 'Y[hneWF a }$~ 'Z\$~fWG aP:Func-Desc-Hdr }~H '[]~HfWH aH* }~6 '\^~6fWI aN }2~6 ']_2~6fWJ aN }h~ '^`h~fWK a }$Ž '_a$ŽgWL aP:Func-Note-Hdr }ŽH '`bŽHgWM aH* }Ž6 'acŽ6gWN aN }2Ž6 'bd2Ž6gWO aN }hŽ 'cehŽgWP a }$ž 'df$žhWQ aP:Func-Ret-Hdr }žH 'egžHhWR aH* }ž6 'fhž6hWS aN }2ž6 'gi2ž6hWT aN }hž 'hjhžhWU a }$® 'ik$®iWV aP:Func-Summary }®H 'jl®HiWW aP }®6 'km®6iWX aN }2®6 'ln2®6iWY aN }h® (moh®iWZ a }$¾ (np$¾jW[ aP:Func-Syn-Hdr }¾H (oq¾HjW\ aH* }¾6 (pr¾6jW] aN }2¾6 ( qs2¾6jW^ aN }h¾ ( rh¾jW_ a }$b, ( u$b, kW` aP:Func-Syn-Hdr-C }bH, (tvbH,, ka aLI ba Parent = UL Qca Depth = 0 }b6, (uwb6, kWd aN }2b6, (vx2b6, kWe aN }hb, (wyhb, kWf a }$, (xz$, lWg aP:Func-Syn-Hdr-F77 }H, (y{H,, lh aLI ia Parent = UL Qja Depth = 0 }6, (z|6, lWk aN }26, (!{}26, lWl aN }h, (#|~h, lWm a }$ (%}$ mWn a P:Func-Title }H ('~H mWo aH* }6 ()6 mWp aN }26 (+26 mWq aN }h (-h mWr a }$ (/$ nWs aP:Func-Title-Head }H (1H nWt aH* }6 (36 nWu aN }26 (526 nWv aN }h (7h nWw a }$ (9 $ oWx a P:glossary }H (; H oWy aP }6 (= 6 oWz aN }26 (? 26 oW{ aN }h (A h oW| a }$ (C $ pW} a P:HangIn }H (E H pW~ aP }6 (G6 pW aN }26 (I26 pW aN }h (Kh pW a }$ (M$ qW a P:Header }H (OH qW aP }6 (Q6 qW aN }26 (S26 qW aN }h (Uh qW a }$  (W$  rW aP:header left } H (Y H rW aP } 6 ([ 6 rW  aN }2 6 (]2 6 rW  aN }h  (_h  rW  a }$ (a$ sW  aP:header right }H (cH sW  aP }6 (e6 sW aN }26 (g 26 sW aN }h (i!h sW a }$* (k "$* tW a P:Heading }*H (m!#*H tW aP }*6 (o"$*6 tW aN }2*6 (q#%2*6 tW aN }h* (s$&h* tW a }$: (u%'$: uW a P:Heading1 }:H (w&(:H uW aH* }:6 (y'):6 uW aN }2:6 ({(*2:6 uW aN }h: (})+h: uW a }$J (*,$J vW a P:Heading2 }JH (+-JH vW aH* }J6 (,.J6 vW aN }2J6 (-/2J6 vW aN }hJ (.0hJ vW a }$Z (/1$Z wW  aP:HeadingRunIn }ZH (02ZH wW! aP }Z6 (13Z6 wW" aN }2Z6 (242Z6 wW# aN }hZ (35hZ wW$ a }$j (46$j xW% a P:Indented }jH (57jH xW& aP }j6 (68j6 xW' aN }2j6 (792j6 xW( aN }hj (8:hj xW) a }$z (9;$z yW* a P:liebe code }zH (:<zH yW+ aP }z6 (;=z6 yW, aN }2z6 (<>2z6 yW- aN }hz (=?hz yW. a }$ (>@$ zW/ aP:Mapping Table Cell }H (?AH zW0 aP }6 (@B6 zW1 aN }26 (AC26 zW2 aN }h (BDh zW3 a }$ (CE$ {W4 aP:Mapping Table Title }H (DFH {W5 aP }6 (EG6 {W6 aN }26 (FH26 {W7 aN }h (GIh {W8 a }$ (HJ$ |W9 aP:note }H (IKH |W: aP }6 (JL6 |W; aN }26 (KM26 |W< aN }h (LNh |W= a }$ (MO$ }W> aP:Note to Sean }H (NPH }W? aH* }6 (OQ6 }W@ aN }26 (PR26 }WA aN }h (QSh }WB a }$, (RT$, ~WC a P:Numbered }H, (SUH,, ~D aLI Ea Parent = OL QFa Depth = 0 }6, (TV6, ~WG aN }26, (UW26, ~WH aN }h, (VXh, ~WI a }$, (WY$, WJ a P:Numbered1 }H, (XZH,, K aLI La Parent = OL QMa Depth = 0 }6, (Y[6, WN aN }26, (Z\26, WO aN }h, ([]h, WP a }$" (\^$" WQ a P:quikref }"H (]_"H WR aP }"6 (^`"6 WS aN }2"6 (_a2"6 WT aN }h" (`bh" WU a }$2, (ac$2, WV aP:Step }2H, (bd2H,, W aLI Xa Parent = OL QYa Depth = 0 }26, (ce26, WZ aN }226, (df226, W[ aN }h2, (egh2, W\ a }$^ (fh$^ W] aP:TableFootnote }^H (gi^H W^ aH* }^6 )hj^6 W_ aN }2^6 )ik2^6 W` aN }h^ )jlh^ Wa a }$n )km$n Wb a P:TableTitle }nH ) lnnH Wc aH* }n6 ) mon6 Wd aN }2n6 ) np2n6 We aN }hn )oqhn Wf a }$~ )pr$~ Wg aP:TableTitleTOC }~H )qs~H Wh aP }~6 )rt~6 Wi aN }2~6 )su2~6 Wj aN }h~ )tvh~ Wk a }$Ž )uw$Ž Wl aP:Title }ŽH )vxŽH Wm aH* }Ž6 )wyŽ6 Wn aN }2Ž6 )!xz2Ž6 Wo aN }hŽ )#y{hŽ Wp a }$ž )%z|$ž Wq aP:TOC section }žH )'{}žH Wr aP }ž6 ))|~ž6 Ws aN }2ž6 )+}2ž6 Wt aN }hž )-~hž Wu a }$® )/$® Wv aP:TopForWebmaker }®H )1®H Ww aP }®6 )3®6 Wx aN }2®6 )52®6 Wy aN }h® )7h® Wz a }$¾ )9$¾ W{ a P:Typedef }¾H );¾H W| aH* }¾6 )=¾6 W} aN }2¾6 )? 2¾6 W~ aN }h¾ )A h¾ W a }$ )C $  W aP:Typedef-Comment }H )E H  W aH* }6 )G 6  W aN }26 )I 26  W aN }h )K h  W a }$ )M$  W aP:Typedef-First }H )OH  W aH* }6 )Q6  W aN }26 )S26  W aN }h )Uh  W  a }$b )W $b  W  aP:Typedef-topcomment }bH )Y bH  W  aH* }b6 )[ b6  W  aN }2b6 )] 2b6  W  aN }hb )_ hb  W a }$r )a $r  W a C:allcaps }rH )c rH  W aEM }r6 )e r6  W aN }2r6 )g 2r6  W aN }hr )i hr  W a }$ )k $  W aC:Bold }H )m  H  W aEM }6 )o !6  W aN }26 )q "26  W aN }h )s !#h  W a }$ )u "$$ W a C:Changed }H )w #%H W aEM }6 )y $&6 W aN }26 ){ %'26 W aN }h )} &(h W a }$ ) ')$ W a C:Chapter # }H ) (*H W aEM }6 ) )+6 W  aN }26 ) *,26 W! aN }h ) +-h W" a }$ ) ,.$ W# aC:code }H ) -/H W$ aEM }6 ) .06 W% aN }26 ) /126 W& aN }h ) 02h W' a }$ ) 13$ W( a C:Emphasis }H ) 24H W) aEM }6 ) 356 W* aN }26 ) 4626 W+ aN }h ) 57h W, a }$ ) 68$ W- aC:EquationVariables }H ) 79H W. aEM }6 ) 8:6 W/ aN }26 ) 9;26 W0 aN }h ) :<h W1 a }$ ) ;=$ W2 aC:Figure Helv }H ) <>H W3 aEM }6 ) =?6 W4 aN }26 ) >@26 W5 aN }h ) ?Ah W6 a }$ ) @B$ W7 aC:fname }H ) ACH W8 aEM }6 ) BD6 W9 aN }26 ) CE26 W: aN }h ) DFh W; a }$ ) EG$ W< aC:gloss }H ) FHH W= aEM }6 ) GI6 W> aN }26 ) HJ26 W? aN }h ) IKh W@ a }$ ) JL$ WA a C:Graphic }H ) KMH WB aEM }6 ) LN6 WC aN }26 ) MO26 WD aN }h ) NPh WE a }$" ) OQ$" WF aC:Not Changed }"H ) PR"H WG aEM }"6 ) QS"6 WH aN }2"6 ) RT2"6 WI aN }h" ) SUh" WJ a }$2 ) TV$2 WK a C:Small Helv }2H ) UW2H WL aEM }26 ) VX26 WM aN }226 ) WY226 WN aN }h2 ) XZh2 WO a }$B ) Y[$B WP a C:Subscript }BH ) Z\BH WQ aEM }B6 ) []B6 WR aN }2B6 ) \^2B6 WS aN }hB ) ]_hB WT a }$R ) ^`$R WU aC:Superscript }RH ) _aRH WV aEM }R6 ) `bR6 WW aN }2R6 ) ac2R6 WX aN }hR ) bdhR WY a }$b ) ce$b WZ aC:Times-Italic }bH ) dfbH W[ aEM }b6 ) egb6 W\ aN }2b6 ) fh2b6 W] aN }hb ) gihb W^ a }$r * hj$r W_ a C:Typeface }rH * ikrH W` aEM }r6 * jlr6 Wa aN }2r6 * km2r6 Wb aN }hr *  lnhr Wc a }$ *  mo$ Wd aC:Typeface-Bold }H *  npH We aEM }6 * oq6 Wf aN }26 * pr26 Wg aN }h * qsh Wh a }$ * rt$ i !X:Appendix A Heading & PAPage }H * suH Wj a See Also }6 * tv6 Wk aN }26 * uw26 Wl aN }h * vxh Wm a }$ * wy$ Wn aX:Figure & Page }H *! xzH Wo a See Also }6 *# y{6 Wp aN }26 *% z|26 Wq aN }h *' {}h Wr a }$ *) |~$  Ws aX:Heading & Page }H *+ }H  Wt a See Also }6 *- ~6  Wu aN }26 */ 26  Wv aN }h *1 h  Ww a }$ *3 $ !Wx aX:Page }H *5 H !Wy a See Also }6 *7 6 !Wz aN }26 *9 26 !W{ aN }h *; h !W| a }$ *= $ "W} aX:See Heading & Page }H *?  H "W~ a See Also }6 *A  6 "W aN }26 *C 26 "W aN }h *E h "W a }$ *G $ #W aX:Table & Page }H *I H #W a See Also }6 *K 6 #W aN }26 *M 26 #W aN }h *O h #W a }$ *Q $ $W a X:Table All }H *S H $W a See Also }6 *U 6 $W  aN }26 *W 26 $W  aN }h *Y h $W  a }$ *[ $ %W  aX:Table Number & Page }H *] H %W  a See Also }6 *_ 6 %W aN }26 *a 26 %W aN }h *c h %W a }$& *f $&  &WaHTML Options Table }& *h &  &Wa }h& *j h&  &Wa }$6 *l $6 'W aControl }6 *n  6 'W aValue }h6H *p !h6H 'W a Comments }$F *r "$F (W a Image Format }F *t !#F (W a0001IMAGGIF GIF }hFH *v "$hFH (W a }$V *x #%$V )W a!Copy Files Imported by Reference }V *z $&V )W aN }hVH *| %'hVH )W a }$f *~ &($f *W aExport Encoding }f * ')f *W a }hfH * (*hfH *W a }$v * )+$v +W  aCSS Export Encoding }v * *,v +W! a }hvH * +-hvH +W" a }$Œ * ,1$Œ  ,W#`System Macros }Œ * Œ  ,W$a }Œ * Œ  ,W%a }\Œ * \Œ  ,W&a }$œh * -2$œh -W' ` Macro Name }œh * 13œh -W( ` Replace With }œh * 24œh -W) `Head }\œh * 35\œh -W* ` Comments }$¬h: * 46$¬h: .W+ a StartOfDoc }¬h: * 57¬h: .W, a }¬h: * 68¬h:: .- a .��a <$defaulttitle> /��a Q0a }\¬h: * 7\¬h: .W1 a }$Dh *:$Dh/W2 a EndOfDoc }Dh *9;Dh/W3 a }Dh *:<Dh/W4 a }\Dh *;=\Dh/W5 a }$Th: *<>$Th:0W6 aStartOfSubDoc }Th: *=?Th:0W7 a }Th: *>@Th::08 a 9��a <$defaulttitle> :��a Q;a }\Th: *?A\Th:0W< a }$h *@B$h1W= a EndOfSubDoc }h *ACh1W> a }h *BDh1W? a }\h *CE\h1W@ a }$h: *DF$h:2WA aStartOfFirstSubDoc }h: *EGh:2WB a }h: *FHh::2C a D��a <$defaulttitle> E��a QFa }\h: *GI\h:2WG a }$h *HJ$h3WH aEndOfFirstSubDoc }h *IKh3WI a }h *JLh3WJ a }\h *KM\h3WK a }$h: *LN$h:4WL aStartOfLastSubDoc }h: *MOh:4WM a }h: *NPh::4N a O��a <$defaulttitle> P��a QQa }\h: *OQ\h:4WR a }$"h *PR$"h5WS aEndOfLastSubDoc }"h *QS"h5WT a }"h *RT"h5WU a }\"h *SU\"h5WV a }$8 *TX$8  6WWaCross-Reference Macros }8 *8  6WXa }D8 *D8  6WYa }$H *UY$H 7WZ a Macro Name }H *XZH 7W[ a Replace With }DH *Y[DH 7W\ a Comments }$X *Z\$X 8W] a See Also }X *[]X 8W^ aSee <$paratext> }DX *\^DX 8W_ a }$n *]b$n  9W`aGeneral Macros }n *n  9Waa }n *n  9Wba }\n +\n  9Wca }$~h +^c$~h :Wd a Macro Name }~h +bd~h :We a Replace With }~h +ce~h :Wf aHead }\~ + df\~ :Wg a Comments }$h + eg$h ;Wh a }h + fhh ;Wi a }h +gih ;Wj a }\ +hj\ ;Wk a }$ +im$  <WlaCharacter Macros }l +l  <Wma } +  <Wna }$H +jn$H =Wo a Character }l +mol =Wp a Replace With } +np =Wq a Comments }$H + oq$H >Wr a }l +"prl >Ws a¢ } +$qs >Wt a }$H +&rt$H ?Wu a }l +(sul ?Wv a© } +*tv ?Ww a }$H +,uw$H @Wx a }l +.vxl @Wy a® } +0wy @Wz a }$H +2xz$H AW{ a }l +4y{l AW| a° } +6z| AW} a }$H +8{}$H BW~ a }l +:|~l BW a-- } +<} BW a }$H +>~$H CW a }l +@l CW a- } +B CW a }$$H +D$$H DW a }l$ +Fl$ DW a... }$ +H$ DW a d +L $$ +M$$#  l $$ +N$$Z^s^chmrw| $).38=BGLQV[`ejoZty~ !&+05:?DINSX]bglqv{ #(-27:<$ObjectType> <$ObjectId>  `<$paratext><$pagenum>  +UTGUT`<$paratext><$pagenum> WUTbUR` HHˆ +bHHˆ ld , HHˆ ,HHˆ|D++7h7DBGetDriverType62 8h 8DBGetDriverTypeFromPath63 9h9DBInqFile64 :h:_silolibinfo65 ;h;_hdf5libinfo66 <h<_was_grabbed67 =+UTUTh(=Meshes, Variables and Materials68 >h>DBPutCurve70 ?h?DBGetCurve72 @檨h@DBPutPointmesh73 A&ΪhADBGetPointmesh75 BΪhBDBPutPointvar76 ChCDBPutPointvar178 D&hDDBGetPointvar80 EhEDBPutQuadmesh81 FhFDBGetQuadmesh84 GhGDBPutQuadvar85 HhHDBPutQuadvar189 IhIDBGetQuadvar92 JhJDBPutUcdmesh93 KhKDBPutUcdsubmesh101 LhLDBGetUcdmesh102 MhMDBPutZonelist103 NhNDBPutZonelist2104 OhODBPutPHZonelist106 P&hPDBGetPHZonelist109 QhQDBPutFacelist110 RhRDBPutUcdvar112 ShSDBPutUcdvar1115 ThTDBGetUcdvar117 UhUDBPutCsgmesh118 VhVDBGetCsgmesh123 WhWDBPutCSGZonelist124 XhXDBGetCSGZonelist129 YhYDBPutCsgvar130 ZhZDBGetCsgvar132 [h[DBPutMaterial133 \h\DBGetMaterial137 ]h]DBPutMatspecies138 ^h^DBGetMatspecies141 _h_DBPutDefvars142 `h`DBGetDefvars144 Ca&haDBInqMeshname145 HHˆ ,HHˆld , HHˆ ,HHˆ}D((bhbDBInqMeshtype146 +UTUT(*cMulti-Block Objects, Parallelism and JUR@Poor-Mans Parallel I/O147 cY`DBPutMultimesh148 dgheDBGetMultimesh153 eMhfDBPutMultimeshadj154 gMhgDBGetMultimeshadj157 hhhDBPutMultivar158 ihiDBGetMultivar162 jhjDBPutMultimat163 khkDBGetMultimat166 lh#lDBPutMultimatspeci'es167 mhmDBGetMultimatspecies170 nhnPMPIO_Init171 oh"oPMPIO_CreateFileCallBack174 ph pPMPIO_OpenFileCallBack175 qh!qPMPIO_CloseFileCallBack176 rhrPMPIO_WaitForBaton177 shsPMPIO_HandOffBaton178 thtPMPIO_Finish179 uhuPMPIO_GroupRank180 vhvPMPIO_RankInGroup181 w+UTUP(+wPart Assemblies, AMR, Slide Surfaces, UN@.Nodesets and Other Arbitrary Mesh Subsets182 xhxDBMakeMrgtree183 yhyDBAddRegion187 zhzDBAddRegionArray189 {h{DBSetCwr191 |h|DBGetCwr192 }h}DBPutMrgtree193 ~h~DBGetMrgtree194 hDBFreeMrgtree195 hDBMakeNamescheme196 hDBGetName198 hDBPutMrgvar199 hDBGetMrgvar201 hDBPutGroupelmap202 hDBGetGroupelmap204 hDBFreeGroupelmap205 AhDBOPT_REGION_PNAMES206 HHˆ ,HHˆld , HHˆ ,HHˆƒ&&+UTm$Object Allocation and Free208  mDBAlloc209  mDBFree210  +UTm#Calculational and Utility211  m DBCalcExternalFacelist212  m!DBCalcExternalFacelist2214 m#DBStringArrayToStringList216 m#DBStringListToStringArray217 +UTmOptlists218 mDBMakeOptlist219 mDBAddOption220 mDBClearOption221 mDBGetOption222 mDBFreeOptlist223 mDBClearOptlist224 ,UTm1User Defined (Generic) Data and Objects225 mDBWrite226 mDBWriteSlice227 mDBReadVar229 mDBReadVar1230 mDBReadVarSlice231 mDBGetVar232 mDBInqVarExists233 mDBInqVarType234  mDBGetVarByteLength236 !mDBGetVarDims237 "mDBGetVarLength238 #mDBGetVarType239 $mDBPutCompoundarray240 %mDBInqCompoundarray241 &mDBGetCompoundarray242 'mDBMakeObject243 (mDBFreeObject244 )mDBChangeObject245 *mDBClearObject246 +&mDBAddDblComponent247 ,mDBAddFltComponent248 A-mDBAddIntComponent249 HHˆ ,HHˆld 0h HHˆ 0iHHˆ.mDBAddStrComponent250 /mDBAddVarComponent251 0mDBWriteComponent252 1mDBWriteObject253 2mDBGetObject254 3mDBGetComponent255 4mDBGetComponentType256 5+UTm1Previously Undocumented Use Conventions257 6m_visit_defvars258 7m_visit_searchpath259 8m_visit_domain_groups260 9mAlphabetizeVariables261 :m#ConnectivityIsTimeVarying262 ;m%MultivarToMultimeshMap_vars263 <m'MultivarToMultimeshMap_meshes264 =+UTm"Silos Fortran Interface265 >mdbmkptr266 ?mdbrmptr267 @mdbset2dstrlen268 Amdbget2dstrlen269 BmDBFortranAllocPointer270 Cm DBFortranAccessPointer271 Dm DBFortranRemovePointer272 Emdbwrtfl273 GG+UTmDeprecated Functions274 HHˆ 0kHHˆ!ld 0l!! HHˆ 0mHHˆ!HHˆ 0oHHˆ ldLeftdRightd ReferenceddFirstd' BookHeadingsd BookHeadingsd "BookHTMLd BookHTMLd BookHTMLd BookHTMLd BookHTMLd LOPdddddV@@ Body. "@@+..API-SectionLOP. @@ .. Func-Title-HeadLOP. f@HQ  ~  1Heading 1Heading RuleH:\t.\t FirstBody. fff@SE ff 1Step Step Number S:.\tStep. _f@HQ  ~  2HeadingH:\t..\t FirstBody. _ f@HQ  ~  3HeadingH:\t...\t FirstBody. f@ Body. f@ ff  Bullet Bullet Symbol\t. f@  Bulleted\t. fffff@ CBullet. f@  CellBody. f@   CellHeading. c,f@HA Chapter Chapter #H:CHAPTER \t FirstBody. @@Mapping Table Title. xf@$ Cover title. f@  Cover top. @@ Mapping Table Cell. ,f@ Cover date. fffff@ CStep. f@D  DisclaimerDisclaimer Body. f@ Disclaimer Body. f@ Disclaimer Bottom. f@E EquationEquation Number E:(EQ ). f@ Extract. f@FA   Figure Table Top Step NumberF:FIGURE \tBody. f@D  FirstBodyBody. c,f@HA FirstChapter Chapter #H:\t FirstBody. @@   Footer. f@ Footnote. f@E  Func-Arg-HdrEmphasis Arguments: Func-Arglist. f@E Func-Arg-Hdr-CEmphasisArguments (C only): Func-Arglist. f@E Func-Arg-Hdr-F77EmphasisArguments (Fortran only): Func-Arglist. l$f@E l Func-ArglistEmphasis Func-Arglist. llf@E l Func-Arglist-ContdEmphasis Func-Arglist. $$f@      Func-Body. $f@D  @  Func-Body-TypeFunc-Body-Type. f@E  Func-Desc-HdrEmphasis Description: Func-Body. f@E  Func-Note-HdrEmphasisNotes: Func-Body. f@E  Func-Ret-HdrEmphasisReturns: Func-Body. $f@D  zff Func-Summary Func-Summary. f@E  Func-Syn-HdrEmphasis Synopsis: Func-Body-Type. f@E Func-Syn-Hdr-CEmphasisSynopsis (C): Func-Body-Type. f@E Func-Syn-Hdr-F77EmphasisSynopsis (Fortran): Func-Body-Type. f@D Func-Title Func-Syn-Hdr. f@  HangIn. @@   Header. f@THeadingBody. f@THeading1Body. f@T Heading2Body. f@T  HeadingRunInBody. f@  Indented. f@  Numbered.\t. f@E  Numbered1.\tNumbered. fff@S ff Step Step Number S:.\t. f@  TableFootnote. f@T  TableTitle Table Top Step NumberT:TABLE \t. f@PTitleBody. f@T  TableTitle Table Top Step NumberT:TABLE \t. f@   CellHeading. f@  CellBody. @@ Mapping Table Title. @@   Header. @@   Footer. f@ Body. @@ Mapping Table Cell. @@  Mapping Table Cell. @@  Mapping Table Cell. @@  Mapping Table Cell. @@Mapping Table Cell. @@Mapping Table Cell. @@Mapping Table Cell. @@$Mapping Table Cell. @@ Mapping Table Cell. @@ Mapping Table Cell. @@  Mapping Table Cell. @@ Mapping Table Cell. @@ Mapping Table Cell. @@  Mapping Table Cell. @@  Mapping Table Cell. @@ !Mapping Table Cell. @@ "Mapping Table Cell. @@ #Mapping Table Cell. @@$Mapping Table Cell. @@  %Mapping Table Cell. "@@..API-SectionLOP. @@  ActiveLOP. @@ .. Func-Title-HeadLOP.  vp% 3 Chapter # 3  Figure Helv  BoldEquationVariables Subscript Superscript# Times-Italic  Typeface-Bold Emphasis  Typeface Changed Not Changed ڝ yc>  yc>  ڝ ڝ [  [  [ ڝڝ)$tu  ڝ yc>  tu  ڝ i_mF `f  )[  ڝ) `f  vp Not Changed vpChanged3 83 8 Not ChangedThinMediumDoubleThick@ Very Thin ;H<=<H<=<H<=<H<=<H<=<Format A ;H<=<H<=<H<=<H<=<H<=<Format B>H Mapping Table>H Mapping Table 'l>*(%H66 @&+H (,5hhhh  68  9;hhhh p $ )?@A$ )B C D $ )E F G $6 )H I J $$6 )K L M $Z )N O P $l )QRS$~N)TUV$)WXY$)Z[\$)]^_$)`ab$ )cde$)fgh$,)ijk$<)lmn$L)opq$\)rst$l)uvw$|)xyz$Œ){|}$ž)~$°)$ )$!)   $D "! ! ! !$T!#! """$d"$!###$z#%!$$$$$&!%%%$%'!&&&$&!'''$ )$%(&('((()($D(*$*)+),)-).)$T)+$/*0*1*2*3*$r*,$4+5+6+7+8+$+-$9,:,;,<,=,$,.$>-?-@-A-B-$-/$C.D.E.F.G.$.0$H/I/J/K/L/$,/1$M0N0O0P0Q0$02$R1S1T1U1V1$13$W2X2Y2Z2[2$24$\3]3^3_3`3$35$a4b4c4d4e4$.46$f5g5h5i5j5$>57$k6l6m6n6o6$N68$p7q7r7s7t7$^79$u8v8w8x8y8$n8:$z9{9|9}9~9$~,9;$:::::$,:<$;;;;;$;=$ < < < < <$<>$=====$=?$>>>>>$>@$?????$?A$@@@ @!@$&@B$"A#A$A%A&A$6AC$'B(B)B*B+B$FBD$,C-C.C/C0C$VCE$1D2D3D4D5D$fDF$6E7E8E9E:E$vEG$;FF?F$†FH$@GAGBGCGDG$–GI$EHFHGHHHIH$¦HJ$JIKILIMINI$¶IK$OJPJQJRJSJ$JL$TKUKVKWKXK$KM$YLZL[L\L]L$bLN^M_M`MaMbM$rMOcNdNeNfNgN$NPhOiOjOkOlO$,OQmPnPoPpPqP$PRrQsQtQuQvQ$QSwRxRyRzR{R$RT|S}S~SSS$SUTTTTT$TVUUU U U$UW V V VVV$,VXWWWWW$JWYXXXXX$ZXZYYYYY$jY[Z Z!Z"Z#Z$zZ\$[%[&['[([$[])\*\+\,\-\$\^.]/]0]1]2]$,]_3^4^5^6^7^$,^`8_9_:_;_<_$_a=`>`?`@`A`$,`bBaCaDaEaFa$>acGbHbIbJbKb$NbdLcMcNcOcPc$^ceQdRdSdTdUd$ndfVeWeXeYeZe$~eg[f\f]f^f_f$Žfh`gagbgcgdg$žgiehfhghhhih$®hjjikilimini$¾ikojpjqjrjsj$b,jl tkukvkwkxk$,km ylzl{l|l}l$ln ~mmmmm$mo nnnnn$np o o o o o$oq  ppppp$pr qqqqq$ qs rrrrr$rt ssss s$*su !t"t#t$t%t$:tv &u'u(u)u*u$Juw +v,v-v.v/v$Zvx 0w1w2w3w4w$jwy 5x6x7x8x9x$zxz :y;yy$y{ ?z@zAzBzCz$z| D{E{F{G{H{${} I|J|K|L|M|$|~ N}O}P}Q}R}$,} S~T~U~V~W~$,~ XYZ[\$" ]^_`a$2, bcdef$^ ghijk$n lmnop$~ qrstu$Ž vwxyz$ž {|}~$® $¾  $      $      $b      $r      $     ! " $  #$%&'$ ()*+,$ -./01$ 23456$ 789:;$ <=>?@$ ABCDE$ FGHIJ$ KLMNO$" PQRST$2 UVWXY$B Z[\]^$R _`abc$b defgh$r ijklm$ nopqr$ stuvw$ xyz{|$! } ~    $ " !!!!!$!# "" " " "$"$  # ####$#% $$$$$$$ %%%%%$& ' &&&$6&( '' '$F') !("(#($V(* $)%)&)$f)+ '*(*)*$v* *+++,+$Œ - -,.,/,0,$œ,. 1-2-3-4-$¬:-/ 5.6.7.8.$D.09/:/;/0?0@0$02A1B1C1D1$:13E2F2G2H2$24I3J3K3L3$:35M4N4O4P4$"4Q5R5S5T5$8 7U6V6W6$H68X7Y7Z7$X7[8\8]8$n :^9_9`9a9$~9;b:c:d:e:$:f;g;h;i;$ =j<k<l<$h<>m=n=o=$h=?p>q>r>$h>@s?t?u?$h?Av@w@x@$h@ByAzA{A$hAC|B}B~B$hBDCCC$$hCDDDComment $; $Hd BlackT!WhiteddARedddGreendd BluedCyandMagentad YellowHeader/Footer $1Header/Footer $1Header/Footer $2Header/Footer $2IndexIndexCommentCommentSubjectSubjectAuthorAuthorGlossaryGlossaryEquationEquation Hypertext Hypertext  Cross-Ref Cross-Ref Conditional TextConditional TextPositionFMPrivatePositionFMPrivateRangeEndFMPrivateRangeEndFMPrivate HTML Macro HTML Macro TimesNewRomanPSMT FrameRomanTimesNewRomanPS-BoldMT FrameRomanHelvetica-Bold FrameRoman Times-Roman FrameRoman Helvetica FrameRoman Times-Italic FrameRomanCourier FrameRoman Times-Bold FrameRoman Courier-Bold FrameRomanCourier HelveticaTimes TimesNewRoman RegularRegularBoldRegularItalicS  վVT$>T"$ChBpYu?Sl>Nx*[u l}ƈWPm F02Ɯ@| >7mn[L.D^m iZP궬QOFHdL  Aahd `p`0@p@0P `p  @``P@eBookiHH $ d HHHH̀̀̀ff@  d Footnote TableFootnote**. . / - :;,.!?) n\7" nyLOP API-SectionFunc-Title-HeadLOMHeader/Footer $1IXIndex IOMHeader/Footer $1IndexTOCHeading1()(), ABS(matlist[iAlphabetizeVariables BLOCK=:],,,==coordsvarargsvardatavarsvel visit_defvarsvisit_domain_groupsvisit_searchpath was_grabbedx[NNODESxformxformsxvalsxy(zy[NNODESyvalszAz[NNODES znodelist zonel_namezonelist zonelists zonelists[mzonetemp zshapecnt zshapesize zshapetype   EquationVariables G ~ F G O ژT   U V   k m o &q 0s :u Dw Ny X{ }                  %ݕ+t*)ܜ(m'& >  ) + - / 1 3 5 7 9 ; = ? A C E G I K M O Q S \ \ .% .. .7 .8 .F U Yz D! D" &K# G-$ E% E!, ( & E'   G( *<) G4* G5+ G6, G7- ML. G8/ n0 f h m n a1 2 3 4 5 6 7 8 9 : ; < = > ? @ A {B     {2 C '_D '`E               CF : ; = > CG )H gsI CwJ CK GBL GEM GGN GJO   CP BQ * , R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k !l #m %n 'o )p +q -r /s 1t 3u 5v 7w .y . .fz .{ /  0\| g} / ^H~ 0 0r 0 0 2 1[ `4 ^^ ^ 2 2 2 2     + h F      xM 4 G[ 2 3 5r 7 7 7 8*   8I 8p = m y v1 >0! > > N " " # # >" >! B" B# B$ s$ % & ' ( ) * + , - . / 0 1 2 3 4 6 7 8 5 9 $ $ ; Tu: % % G (T; HO<                ! # % ' ) & & ' ' ( ( H (l= H> =) >) J* K* O+ P+ I? I (@ IA , , I +cB J-C - - JB +vD \&E kF \'G \(H \)I nJ ]. ^. `/ a/ \+K \,L \-M cwN \.O c{P Q R S T U V W X Y Z [ \ ] :^ _ Kt` Ja 0 0  Ab I Kwc #1 %1 XY- K|d Z(e V2 W2 Z3 [3 Kf X0g Kh Ki Kj Kk rl q. Qm 4 4 5 5 6 6 Z / \En \Qo D7 E7 Fa [p Kq _r ^0 s8 t8 w9 x9 |: }: s t t{u DIv Dsw x y &z &{ & ; ; &| &} & ' < < ~F~ p      % % p= q= % &! &4 & ? }                     ! " # $ % & ' l ?9) 4( ?* ?+ ?, zU @- @. @/ @# @0 @1 @2 @#3 > > @E4 @b5 $6 %7 %8 $9 $: $; %$< %4= %N> %m? h@ &\A &lB &z C D E F G H I J oK h? i? e<L e=M @ @ e>N e?O eEP gQ eFR A A S T U V W X Y Z eL[ eM\ b] g^ eN_ N` Na B  B  C  C Db Dc D D  E !E Dd De 2F 3F 5G 6G NH OH U Wf Yg h i j k m ( nw/ +openObjectId Chapter2-man_pages.fm:2 8031890 +openObjectId Chapter2-man_pages.fm:2 8101441 +openObjectId Chapter2-man_pages.fm:2 7982462 +openObjectId Chapter2-man_pages.fm:2 7982553 +openObjectId Chapter2-man_pages.fm:2 7982654 +openObjectId Chapter2-man_pages.fm:2 8197825 +openObjectId Chapter2-man_pages.fm:2 8206306 +openObjectId Chapter2-man_pages.fm:2 8081827 +openObjectId Chapter2-man_pages.fm:2 8038578 +openObjectId Chapter2-man_pages.fm:2 8154559 +openObjectId Chapter2-man_pages.fm:2 815456: +openObjectId Chapter2-man_pages.fm:2 815484; +openObjectId Chapter2-man_pages.fm:2 804088< +openObjectId Chapter2-man_pages.fm:2 796236= +openObjectId Chapter2-man_pages.fm:2 796606> +openObjectId Chapter2-man_pages.fm:2 804114? +openObjectId Chapter2-man_pages.fm:2 796683@ +openObjectId Chapter2-man_pages.fm:2 804263A +openObjectId Chapter2-man_pages.fm:2 804636B +openObjectId Chapter2-man_pages.fm:2 797245C +openObjectId Chapter2-man_pages.fm:2 804353D +openObjectId Chapter2-man_pages.fm:2 804361E +openObjectId Chapter2-man_pages.fm:2 804336\ +openObjectId Chapter2-man_pages.fm:2 804323F DBErrFuncG DBErrFuncHDBErrnoI DBErrStringJ DBShowErrorsK $58187: Func-Title-Head: DBShowErrorsMDBVariableNameValidN +53462: Func-Title-Head: DBVariableNameValidO DBVersionPDBSetAllowOverwritesQDBGetAllowOverwritesR DBForceSingleSDBSetDataReadMaskUDBGetDataReadMaskVDBSetEnableChecksumsYDBGetEnableChecksumsZDBSetCompression[DBGetCompression\DBSetFriendlyHDF5Names]DBGetFriendlyHDF5Names^DBSetDeprecateWarnings_ .38376: Func-Title-Head: DBSetDeprecateWarnings`DBGetDeprecateWarningsaSILO_VERSION_GEf +openObjectId Chapter2-man_pages.fm:2 817880g +openObjectId Chapter2-man_pages.fm:2 817880h +openObjectId Chapter2-man_pages.fm:2 820064i +openObjectId Chapter2-man_pages.fm:2 820098j +openObjectId Chapter2-man_pages.fm:2 820138k +openObjectId Chapter2-man_pages.fm:2 820675l +openObjectId Chapter2-man_pages.fm:2 817883m +openObjectId Chapter2-man_pages.fm:2 803771n +openObjectId Chapter2-man_pages.fm:2 803751o +openObjectId Chapter2-man_pages.fm:2 796948p +openObjectId Chapter2-man_pages.fm:2 819459q +openObjectId Chapter2-man_pages.fm:2 812916r +openObjectId Chapter2-man_pages.fm:2 803704s +openObjectId Chapter2-man_pages.fm:2 803725t +openObjectId Chapter2-man_pages.fm:2 815051u +openObjectId Chapter2-man_pages.fm:2 803801v +openObjectId Chapter2-man_pages.fm:2 803816w 047195: Func-Title-Head: DBRegisterFileOptionsSet} 463743: Func-Title-Head: DBSetUnknownDriverPriorities~DBCreate 13665: Func-Title-Head: DBCreateDBOpenDBCloseDBGetTocDBMkDirDBSetDirDBGetDir DBGrabDriverDBUngrabDriverDBGetDriverTypeDBGetDriverTypeFromPath DBInqFile !76720: Func-Title-Head: DBInqFile" +openObjectId Chapter2-man_pages.fm:2 803275# +openObjectId Chapter2-man_pages.fm:2 803307$ +openObjectId Chapter2-man_pages.fm:2 798311% +openObjectId Chapter2-man_pages.fm:2 798451& +openObjectId Chapter2-man_pages.fm:2 798813' +openObjectId Chapter2-man_pages.fm:2 812970( +openObjectId Chapter2-man_pages.fm:2 810569) +openObjectId Chapter2-man_pages.fm:2 798835* +openObjectId Chapter2-man_pages.fm:2 798859+ +openObjectId Chapter2-man_pages.fm:2 799391, +openObjectId Chapter2-man_pages.fm:2 799068- +openObjectId Chapter2-man_pages.fm:2 810705. +openObjectId Chapter2-man_pages.fm:2 799413/ +openObjectId Chapter2-man_pages.fm:2 7994380 +openObjectId Chapter2-man_pages.fm:2 8000481 +openObjectId Chapter2-man_pages.fm:2 8001152 +openObjectId Chapter2-man_pages.fm:2 8006983 +openObjectId Chapter2-man_pages.fm:2 8007304 +openObjectId Chapter2-man_pages.fm:2 8008425 +openObjectId Chapter2-man_pages.fm:2 8019006 +openObjectId Chapter2-man_pages.fm:2 8009867 +openObjectId Chapter2-man_pages.fm:2 8001428 +openObjectId Chapter2-man_pages.fm:2 8002839 +openObjectId Chapter2-man_pages.fm:2 801062: +openObjectId Chapter2-man_pages.fm:2 801089; +openObjectId Chapter2-man_pages.fm:2 796624< +openObjectId Chapter2-man_pages.fm:2 801518= +openObjectId Chapter2-man_pages.fm:2 796663> +openObjectId Chapter2-man_pages.fm:2 801921? +openObjectId Chapter2-man_pages.fm:2 796644@ +openObjectId Chapter2-man_pages.fm:2 802054A +openObjectId Chapter2-man_pages.fm:2 802414B +openObjectId Chapter2-man_pages.fm:2 817593C +openObjectId Chapter2-man_pages.fm:2 802441D +openObjectId Chapter2-man_pages.fm:2 802469E +openObjectId Chapter2-man_pages.fm:2 802559F +openObjectId Chapter2-man_pages.fm:2 803518G +openObjectId Chapter2-man_pages.fm:2 803534vI DBPutCurveK DBGetCurveLDBPutPointmeshNDBGetPointmeshO DBPutPointvarQDBPutPointvar1S DBGetPointvarT DBPutQuadmeshV DBGetQuadmeshW DBPutQuadvarX $25840: Func-Title-Head: DBPutQuadvarZ DBPutQuadvar1\ DBGetQuadvar] DBPutUcdmesh^ $34613: Func-Title-Head: DBPutUcdmeshe =28479: Figure: Figure 2-4: Node ordering for UCD zone shapes.k Y19451: Figure: Figure 0-3: Example usage of UCD zonelist combining a hex and 2 polyhedra.mDBPutUcdsubmeshp DBGetUcdmeshq DBPutZonelistrDBPutZonelist2wDBPutPHZonelistzDBGetPHZonelist{ DBPutFacelist| DBPutUcdvar DBPutUcdvar1 DBGetUcdvar DBPutCsgmesh DBGetCsgmeshDBPutCSGZonelistDBGetCSGZonelist DBPutCsgvar DBGetCsgvar DBPutMaterial `24842: Figure: Figure 0-6: Example using mixed data arrays for representing material information DBGetMaterialDBPutMatspeciesDBGetMatspecies DBPutDefvars $97927: Func-Title-Head: DBPutDefvars$ DBGetDefvars% DBInqMeshname& DBInqMeshtype( E91069: API-Section: 4 API Section Multi-Block Objects and Parallelism) +openObjectId Chapter2-man_pages.fm:2 796757* +openObjectId Chapter2-man_pages.fm:2 804944+ +openObjectId Chapter2-man_pages.fm:2 796781, +openObjectId Chapter2-man_pages.fm:2 805104- +openObjectId Chapter2-man_pages.fm:2 796801. +openObjectId Chapter2-man_pages.fm:2 805250/ +openObjectId Chapter2-man_pages.fm:2 7975400 +openObjectId Chapter2-man_pages.fm:2 8054221 +openObjectId Chapter2-man_pages.fm:2 7975592 +openObjectId Chapter2-man_pages.fm:2 8082763 +openObjectId Chapter2-man_pages.fm:2 8085224 +openObjectId Chapter2-man_pages.fm:2 8085635 +openObjectId Chapter2-man_pages.fm:2 8086136 +openObjectId Chapter2-man_pages.fm:2 8085197 +openObjectId Chapter2-man_pages.fm:2 8083798 +openObjectId Chapter2-man_pages.fm:2 808409< +openObjectId Chapter2-man_pages.fm:2 8084459 +openObjectId Chapter2-man_pages.fm:2 808477:DBPutMultimesh; &33408: Func-Title-Head: DBPutMultimesh= +openObjectId Chapter2-man_pages.fm:2 808477A ;89656: Figure: Figure 0-7: Strings for multi-block objects.EDBGetMultimeshFDBPutMultimeshadjbDBGetMultimeshadjc DBPutMultivarjDBPutPointmeshl DBGetMultivarm DBPutMultimatq DBGetMultimatrDBPutMultimatspeciesvDBGetMultimatspeciesw PMPIO_Initx "22625: Func-Title-Head: PMPIO_InityPMPIO_CreateFileCallBackzPMPIO_OpenFileCallBack{PMPIO_CloseFileCallBack|PMPIO_WaitForBatonPMPIO_HandOffBaton PMPIO_FinishPMPIO_GroupRank '87683: Func-Title-Head: PMPIO_GroupRankPMPIO_RankInGroup )87564: Func-Title-Head: PMPIO_RankInGroup +openObjectId Chapter2-man_pages.fm:2 803340 +openObjectId Chapter2-man_pages.fm:2 803354 +openObjectId Chapter2-man_pages.fm:2 803365 +openObjectId Chapter2-man_pages.fm:2 803385 +openObjectId Chapter2-man_pages.fm:2 803398 +openObjectId Chapter2-man_pages.fm:2 815551 +openObjectId Chapter2-man_pages.fm:2 815768 +openObjectId Chapter2-man_pages.fm:2 807295 +openObjectId Chapter2-man_pages.fm:2 807506 +openObjectId Chapter2-man_pages.fm:2 810066 +openObjectId Chapter2-man_pages.fm:2 809936 +openObjectId Chapter2-man_pages.fm:2 803451 +openObjectId Chapter2-man_pages.fm:2 810732 +openObjectId Chapter2-man_pages.fm:2 796331 +openObjectId Chapter2-man_pages.fm:2 796375 DBMakeMrgtree %19920: Func-Title-Head: DBMakeMrgtree 31563: Figure: Figure 0-9: DBAddRegion!DBAddRegionArray" (99194: Func-Title-Head: DBAddRegionArray'DBSetCwr( 66709: Func-Title-Head: DBSetCwr)DBGetCwr* DBPutMrgtree+ DBGetMrgtree, DBFreeMrgtree- (47512: Func-Title-Head: DBMakeNamescheme/ DBPutMrgvar7 DBGetMrgvar8DBPutGroupelmap<DBGetGroupelmap=DBFreeGroupelmap> +59169: Func-Title-Head: DBOPT_REGION_PNAMESF +openObjectId Chapter2-man_pages.fm:2 803956G +openObjectId Chapter2-man_pages.fm:2 796327H +openObjectId Chapter2-man_pages.fm:2 803956IDBAllocJDBFreeK +openObjectId Chapter2-man_pages.fm:2 818764L +openObjectId Chapter2-man_pages.fm:2 796116MDBCalcExternalFacelistN .20978: Func-Title-Head: DBCalcExternalFacelistRDBCalcExternalFacelist2S /23390: Func-Title-Head: DBCalcExternalFacelist2X *28929: API-Section: 8 API Section OptlistsY +openObjectId Chapter2-man_pages.fm:2 796116Z +openObjectId Chapter2-man_pages.fm:2 796133[ +openObjectId Chapter2-man_pages.fm:2 796154\ +openObjectId Chapter2-man_pages.fm:2 796194] +openObjectId Chapter2-man_pages.fm:2 796213^ +openObjectId Chapter2-man_pages.fm:2 796175_ DBMakeOptlist` DBAddOptionc DBClearOptiond DBGetOptione DBFreeOptlistfDBClearOptlist. +openObjectId Chapter2-man_pages.fm:2 802596g +openObjectId Chapter2-man_pages.fm:2 802596i +openObjectId Chapter2-man_pages.fm:2 802618j +openObjectId Chapter2-man_pages.fm:2 802709k +openObjectId Chapter2-man_pages.fm:2 802727l +openObjectId Chapter2-man_pages.fm:2 802745m +openObjectId Chapter2-man_pages.fm:2 802831n +openObjectId Chapter2-man_pages.fm:2 803028o +openObjectId Chapter2-man_pages.fm:2 803043p +openObjectId Chapter2-man_pages.fm:2 802944q +openObjectId Chapter2-man_pages.fm:2 802957r +openObjectId Chapter2-man_pages.fm:2 802976s +openObjectId Chapter2-man_pages.fm:2 802990t +openObjectId Chapter2-man_pages.fm:2 802852u +openObjectId Chapter2-man_pages.fm:2 802886v +openObjectId Chapter2-man_pages.fm:2 802915w +openObjectId Chapter2-man_pages.fm:2 795672x +openObjectId Chapter2-man_pages.fm:2 796057y +openObjectId Chapter2-man_pages.fm:2 796074z +openObjectId Chapter2-man_pages.fm:2 796089{ +openObjectId Chapter2-man_pages.fm:2 795871| +openObjectId Chapter2-man_pages.fm:2 795887} +openObjectId Chapter2-man_pages.fm:2 795904~ +openObjectId Chapter2-man_pages.fm:2 795941 +openObjectId Chapter2-man_pages.fm:2 795957 +openObjectId Chapter2-man_pages.fm:2 795983 +openObjectId Chapter2-man_pages.fm:2 796014 +openObjectId Chapter2-man_pages.fm:2 796034 +openObjectId Chapter2-man_pages.fm:2 796253d +openObjectId Chapter2-man_pages.fm:2 796269 DBWriteSlice DBReadVar DBReadVar1 DBReadVarSlice DBGetVar DBInqVarExists  DBInqVarTypeDBGetVarByteLengthDBGetVarLength DBGetVarTypeDBPutCompoundarrayDBInqCompoundarrayDBGetCompoundarray DBMakeObject DBFreeObject DBClearObjectDBAddDblComponentDBAddFltComponentDBAddIntComponentDBAddStrComponentDBAddVarComponentDBWriteComponent  DBWriteObject! DBGetObject"DBGetComponent#DBGetComponentType% +openObjectId Chapter2-man_pages.fm:2 815974& +openObjectId Chapter2-man_pages.fm:2 795013' +openObjectId Chapter2-man_pages.fm:2 795014( +openObjectId Chapter2-man_pages.fm:2 795016) +openObjectId Chapter2-man_pages.fm:2 807037* +openObjectId Chapter2-man_pages.fm:2 806404+ +openObjectId Chapter2-man_pages.fm:2 807161, +openObjectId Chapter2-man_pages.fm:2 812307-_visit_defvars0_visit_searchpath1_visit_domain_groups4AlphabetizeVariables5ConnectivityIsTimeVarying6MultivarToMultimeshMap_vars7 363205: Func-Title-Head: MultivarToMultimeshMap_vars8MultivarToMultimeshMap_meshes; +openObjectId Chapter2-man_pages.fm:2 812308< +openObjectId Chapter2-man_pages.fm:2 811109= +openObjectId Chapter2-man_pages.fm:2 811134> +openObjectId Chapter2-man_pages.fm:2 806549? +openObjectId Chapter2-man_pages.fm:2 804003@ +openObjectId Chapter2-man_pages.fm:2 804044A +openObjectId Chapter2-man_pages.fm:2 803589B +openObjectId Chapter2-man_pages.fm:2 803600CdbmkptrDdbrmptrE dbset2dstrlenF %48611: Func-Title-Head: dbset2dstrlenG dbget2dstrlenH -18493: Func-Title-Head: DBFortranAllocPointerIDBFortranAllocPointerNDBFortranAccessPointerO .16457: Func-Title-Head: DBFortranAccessPointerTDBFortranRemovePointerU .25110: Func-Title-Head: DBFortranRemovePointer] +openObjectId Chapter2-man_pages.fm:2 804387^ +openObjectId Chapter2-man_pages.fm:2 814783_ +openObjectId Chapter2-man_pages.fm:2 803839` +openObjectId Chapter2-man_pages.fm:2 813246a +openObjectId Chapter2-man_pages.fm:2 813261b +openObjectId Chapter2-man_pages.fm:2 813288 +openObjectId Chapter2-man_pages.fm:2 796269cDBWritee +openObjectId Chapter2-man_pages.fm:2 818626    DLj6 6+59169: Func-Title-Head: DBOPT_REGION_PNAMESLj6 +59169: Func-Title-Head: DBOPT_REGION_PNAMESLj6 +59169: Func-Title-Head: DBOPT_REGION_PNAMESLj6 +59169: Func-Title-Head: DBOPT_REGION_PNAMESLj6 ʽ+59169: Func-Title-Head: DBOPT_REGION_PNAMESLj6 ˉ $58187: Func-Title-Head: DBShowErrorsLj6 ̄ E91069: API-Section: 4 API Section Multi-Block Objects and ParallelismLj6 | E91069: API-Section: 4 API Section Multi-Block Objects and ParallelismLj6 f *28929: API-Section: 8 API Section OptlistsLj6  13665: Func-Title-Head: DBCreateLj6 047195: Func-Title-Head: DBRegisterFileOptionsSetLj6 Ѝ047195: Func-Title-Head: DBRegisterFileOptionsSetLj6 C047195: Func-Title-Head: DBRegisterFileOptionsSetLj6 047195: Func-Title-Head: DBRegisterFileOptionsSetLj6 Ҳ047195: Func-Title-Head: DBRegisterFileOptionsSetLj6 z047195: Func-Title-Head: DBRegisterFileOptionsSetLj6 >047195: Func-Title-Head: DBRegisterFileOptionsSetLj6 463743: Func-Title-Head: DBSetUnknownDriverPrioritiesLj6 ճ 13665: Func-Title-Head: DBCreateLj6 p!76720: Func-Title-Head: DBInqFileLj6 \E91069: API-Section: 4 API Section Multi-Block Objects and ParallelismLj6 L.20978: Func-Title-Head: DBCalcExternalFacelistLj6 3/23390: Func-Title-Head: DBCalcExternalFacelist2Lj6  Y19451: Figure: Figure 0-3: Example usage of UCD zonelist combining a hex and 2 polyhedra.Lj6  Y19451: Figure: Figure 0-3: Example usage of UCD zonelist combining a hex and 2 polyhedra.Lj6 %19920: Func-Title-Head: DBMakeMrgtreeLj6 $34613: Func-Title-Head: DBPutUcdmeshLj6 =28479: Figure: Figure 2-4: Node ordering for UCD zone shapes.Lj6 ޾!%19920: Func-Title-Head: DBMakeMrgtreeLj6 ߶"%48611: Func-Title-Head: dbset2dstrlenLj6 #%48611: Func-Title-Head: dbset2dstrlenLj6 $%48611: Func-Title-Head: dbset2dstrlenLj6 ~%(47512: Func-Title-Head: DBMakeNameschemeLj6 ]&%19920: Func-Title-Head: DBMakeMrgtreeLj6 .'&33408: Func-Title-Head: DBPutMultimeshLj6 (&33408: Func-Title-Head: DBPutMultimeshLj6 )%48611: Func-Title-Head: dbset2dstrlenLj6 *&33408: Func-Title-Head: DBPutMultimeshLj6 +&33408: Func-Title-Head: DBPutMultimeshLj6 ,&33408: Func-Title-Head: DBPutMultimeshLj6 Y-&33408: Func-Title-Head: DBPutMultimeshLj6 H.'87683: Func-Title-Head: PMPIO_GroupRankLj6 B/)87564: Func-Title-Head: PMPIO_RankInGroupLj6 '0 31563: Figure: Figure 0-9:Lj6 1 66709: Func-Title-Head: DBSetCwrLj6 2(47512: Func-Title-Head: DBMakeNameschemeLj6 3+53462: Func-Title-Head: DBVariableNameValidLj6 4%48611: Func-Title-Head: dbset2dstrlenLj6 5%48611: Func-Title-Head: dbset2dstrlenLj6 t6(99194: Func-Title-Head: DBAddRegionArrayLj6 :7 `24842: Figure: Figure 0-6: Example using mixed data arrays for representing material informationLj6 %8=28479: Figure: Figure 2-4: Node ordering for UCD zone shapes.Lj6 9=28479: Figure: Figure 2-4: Node ordering for UCD zone shapes.Lj6 :$25840: Func-Title-Head: DBPutQuadvarLj6 ;$34613: Func-Title-Head: DBPutUcdmeshLj6 L<$34613: Func-Title-Head: DBPutUcdmeshLj6 @=%48611: Func-Title-Head: dbset2dstrlenLj6 3>%48611: Func-Title-Head: dbset2dstrlenLj6 ?$97927: Func-Title-Head: DBPutDefvarsLj6 @%19920: Func-Title-Head: DBMakeMrgtreeLj6 A363205: Func-Title-Head: MultivarToMultimeshMap_varsLj6 B.16457: Func-Title-Head: DBFortranAccessPointerLj6 C.25110: Func-Title-Head: DBFortranRemovePointerLj6 D-18493: Func-Title-Head: DBFortranAllocPointerLj6 E.25110: Func-Title-Head: DBFortranRemovePointerLj6 F.16457: Func-Title-Head: DBFortranAccessPointerLj6 G-18493: Func-Title-Head: DBFortranAllocPointerLj6 H.38376: Func-Title-Head: DBSetDeprecateWarnings <$lastpagenum><$monthname> <$daynum>, <$year>"<$monthnum>/<$daynum>/<$shortyear>;<$monthname> <$daynum>, <$year> <$hour>:<$minute00> <$ampm>"<$monthnum>/<$daynum>/<$shortyear><$monthname> <$daynum>, <$year>"<$monthnum>/<$daynum>/<$shortyear> <$fullfilename> <$filename> <$marker1> <$paratext[Heading]> <$curpagenum> <$marker1> <$marker2> (Continued)+ (Sheet <$tblsheetnum> of <$tblsheetcount>)Heading & Page"<$paratext> on page2-<$pagenum>Pagepage<$pagenum>See Heading & Page%See <$paratext> on page<$pagenum>. Table & Page7Table<$paranumonly>, <$paratext>, on page<$pagenum>Appendix A Heading & Page.<$paratext> on page<$pagenum> in Appendix A <$volnum> <$chapnum><$paratext[paratag]><$paratext[paratag]><$paratext[paratag]><$paratext[paratag]><$paratext[paratag]><$paratext[paratag]><$paratext[paratag]><$paratext[paratag]> Figure & Page(Figure <$paranumonly> on page <$pagenum>VVXXZZA^^``bbAyyHeadings|~HTML#A{ &~ & &| & & & & & & & & & & & &% & & & &' & &' & &( ' & ' ' '  ' ' '  ' '  ' ' ' ' ' ' '# ' '' '! '+ '% K ') K K K J K  K  K  K K" K$ K( K K* K, K0 K& K2 K4 K8 K. K: K< KC K6 KE KG KK KA K@) KM KO KS KI KU KW K[ KQ K] Ka Ke KY K^ K_ Kg Ki y1 Kc y3 y5 y) y/ y+ y- A y' C E 9 ? ; = 1 7 3 5 ) / + - ! ' # % S  S S S S* S S S S S S G S G G G G G G G G G G G G G G G G G G G G G G G G G) G G G G G G G G H H H G H  H  H H H H R H  R R R R R R r R r r  r   ~  ~ ~ ~ ~ ~ ~ o ~ q s  m   H  H H S~ H* S S Sv S| Sx Sz H St H! H# H' H H) H+ H/ H% H1 H3 H7 H- H9 H; .J H5 .N .H Z .L .R X .V .P .Z .T I .X I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I) I J J I J J  J  J J J J J  J J J J J J!  J               S  S S S S* S S S S S S JF S JH JJ JN JD JP JR Jf JL Jh Jj Jn Jd Jp Jr Jv Jl Jx Jz J~ Jt J J J J| J J J J J J J J J J x J x  x  w x x x  w               x2  x4 x6 x* x0* x, x. x" x( x$ x& H x  H* H H H H* H* H+ H H, H H+ H+ H H H, H, . H, H, H, H, H, H, . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . / . / / /! / /# /% /) / /+ /- /1 /' /3 /5 /9 // /; /= /A /7 /C /E /I /? /K /M /Q /G /S /U /Y /O /[ /] /a /W /c /e /i /_ /k /m /q /g /s /u /y /o /{ /} / /w / / z9 / z; z= z1 z7 z3 z5 Q* z/ Q, Q. Q Q(* Q  Q" / Q / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / x / x x x x x x 0  x 0  0 0 0  0 0 0 0 0 0 0# 0 0% 0' 0+ 0! 0- 0/ 03 0) 05 07 0; 01 0= 0? x 09 x x x x x x 0 x 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1  1  1 1 1 1 1  1 1 1 1 1 1! 1% 1 1' 1) 1- 1# 1/ 11 15 1+ 17 19 1= 13 1? 1A 1E 1; 1G 1I 1M 1C 1O 1Q 1U 1K 1W 1Y Q; 1S Q= Q? Q3 Q9* Q5 Q7 ^b Q1 ^d ^f ^j ^` ^l ^n ^r ^h ^t ^v ^z ^p ^| ^~ ^ ^x ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ x ^ x x x x x x ^ x ^ ^ ^ ^ ^ ^ 2 ^ 2 2! 2% 2 2' 2) 2- 2# 2/ 21 25 2+ 27 29 2= 23 2? 2A 2E 2; 2G 2I 2M 2C 2O 2Q 2U 2K 2W 2Y 2] 2S 2_ 2a 2e 2[ 2g 2i 2m 2c 2o 2q 2u 2k 2w 2y x 2s x x x x x x 4 x 4 4 4 4 4 4 4 4 4 4 z 4 z z 4 z 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4( 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 4 5 5 5  5 5  5 5 5 5 5 5 5 5 5 5" 5 5$ 5& 5* 5  5, 5. Rw 5( Ry R{ Ro Ru Rq Rs QL Rm QN QP QD QJ* QF QH 5 QB 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 6 6 5 6 6 6  6 6 6 6 6  6 6 x 6 x x x x x x 6= x 6? 6A 6E 6; 6G 6I 6M 6C 6O 6Q 6U 6K 6W 6Y 6] 6S 6_ 6a 6e 6[ 6g 6i 6m 6c 6o 6q 6u 6k 6w 6y 6} 6s 6 6 6 6{ 6 6 y 6 y y  x y y y 8 x 8 8 8  8 8 8  8 8  8 8 8 8 8 8 8# 8 8' 8! 8. 8% 80 82 86 8, 88 8: y 84 y y 8> y 8@ 8B 8t 8< 8v 8x 8| 8r 8~ 8 y 8z y y 9m y 9o* 9s 9k 9x 9| 9q 9 9 9z 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 : 9 :* : 9 :  : : : : : : :" : :' :+ :  :0 :4 :) :9 := :2 :B :F :; :K :O :D :Q :U :M :W :[ :S :] :a :Y :c :n :_ :p :r :v :l :x :z :~ :t : : : :| : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : R : R R R R R R Q^ R Q` Qb QV Q\* QX QZ ke QT ;* kg ; ; ki ; ; k kk ;  ;# k kq ;% ;( ;, ks ;* ;- ;1 ku ;/ ;2 ;6 kw ;4 ;7 ;; ky ;9 ;< ;A k ;> k ;H k ;J ;L ;P ;F ;R ;T ;X ;N ;Z ;\ ; ;V ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;- ; ; ; ; ;- ; ; ; ; ;- ; ; ; ; ;- < ; < < < - <  < < < <- < <  < < <- 4 = >6 >8 >< >2 >> >@ >D >: >F >H >L >B >N >P w >J w w w w w w > w > > > > > > > >* > > > >* > > > >* > > > >* > > @ >* @ @ @ @ A @ A @ A A A  A A A  A A A A A A A  A A$ A A( A" A, A& A0 A* A4 A. A8 A2 A< A6 A@ A: AD A> AH AB AL AF AP AJ AT AN AX AR A\ AV B AZ B B B B B B B B B B B B . B $ $$./..D0.F.>1B.@.82<.:. 36."... >$ @$$....9..;.3.7.5.-.1./.'.+.).!.%.#....y.. $ $ $o${.}.܁.w.܃.܅.ܦ.. $ $ܞ$ܨ.ܬ.ܤ.ܮ..ܪ. $ $ $$....]..4..6.8.,.2.o.0.$.*.&.(..".. ..... ..... ...~.. <$ >$v$݀.݄.|.݆.j.݂.l.ݣ.h. ^$ `$ b$ d$ݗ$ݥ.ݧ.ݩ.ݭ.ݡ.ݯ.ݱ.ݳ.ݷ.ݫ.ݹ.ݻ.ݽ.8.ݵ.:.<.>...6.0.2.4.$.,.&.(.*.."... ......'... . ...-./....K.......Q.S........................޶.޾.޸.޺.޼.ެ.޴.ޮ.ް.޲.ޢ.ު.ޤ.ަ.ި.ޘ.ޠ.ޚ.ޜ.ޞ.ގ.ޖ.ސ.ޒ.ޔ.ބ.ތ.ކ.ވ.ފ.z.ނ.|.~.ހ.p.x.r.t.v.f.n.h.j.l.\.d.^.`.b.R.Z.T.V.X.H.P.J.L.N.>.F.@.B.D.4.<.6.8.:.*.2.,...0. .(.".$.&...... ...... .............. E% . E) E# E- E' E1 E+ E5 E/ E9 E3 E= E7 EA E; EE E? EI EC EM EG EQ EK EU EO EY ES E] EW Ea E[ Ee E_ Ei Ec Em Eg Eq Ek Eu Eo Ey Es E} Ew E E{ E E E E E E E E E E E E Y  E Y Y  Y Y Y Y YP Y Yf YN q Yd q q q q q q q q r} q Z  r{ Z Z  Z Z Z Z ^ Z ^ _ w=4 ^ w?5 wA4 wC5 wE5 wG5 wI5 wK4 wM5 wO5 wQ5 wS5 wU5 v5 wz4 wZ4 wY4 v5 v5 v5 v5 v5 v5 v5 v5 v5 v5 v5 v5 v4 w|5 v4 v4 v4 v4 v4 v4 v4 v4 v4 w4 w4 w4 w 5 w~5 w"5 w$5 w&5 w(5 w*5 w,5 w.5 w05 w25 w45 w65 w85 !6 w5 {"6 {$6 {&6 #- { 6 {*- {,- {.- %- {(- {- W- {- {- {2- {4- {6- '- {0- <- |- {:- {<- {>- )- {8- {B- |-- {F- +- {@- {J- - {N- -- {H- {R- {T- {V- /- {P- {Z- {\- {^- 1- {X7 {b- {f- {h- 3- {`- {l- - {p- V- {j- X- Z- \- L- T- N- P- R- B- J- D- F- H- 8- @- :- <- >- .- 6- 0- 2- 4- $- ,- &- - *- - "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C- - - - - _;; - - - - - - - - - - - - - - - - - - -  - - - - - - - - - - - "- - $- &- (- - - - - -: -;<=;88 e>1 API Section9 =- r; r; * , . 0 2 4 6 8 : < > @ B D F H J L N P R T V  \A .B .C Synopsis: . D `EFortran Equivalent: `D .!FReturns: ."; .#G Description: .$; .&A .'B `C Synopsis: `D `EFortran Equivalent: `D `FReturns: .+; .,G Description: .-; ./A .0B .1C Synopsis: .2D `EFortran Equivalent: `D .3FReturns: .4; .5G Description: .6; .9A .:B .;C Synopsis: .<D `EFortran Equivalent: `D .=H Arguments: .>I .?J .@I .AJ .BFReturns: .C; .DG Description: .E; z; FA JB KC Synopsis: LD MEFortran Equivalent: QD RFReturns: V; A B C Synopsis: D EFortran Equivalent: D G Description: ; TA TB TC Synopsis: TD `EFortran Equivalent: `D TH Arguments: TI TJ TFReturns: U; UG Description: U; U; DA DB DC Synopsis: DD `EFortran Equivalent: `D DFReturns: D; DG Description: D; q_A qaB qhC Synopsis: qiD qjEFortran Equivalent: qkD quH Arguments: qvI qwJ qxI qyJ qzI q{J qlFReturns: qm; qnG Description: qo; q`A qB qC Synopsis: qD qEFortran Equivalent: qD qH Arguments: qI qJ qFReturns: q; qG Description: q; q|A qB qC Synopsis: qD qEFortran Equivalent: qD qH Arguments: qI qJ qI qJ qI qJ qI qJ qFReturns: q; DA DB DC Synopsis: DD `EFortran Equivalent: `D DH Arguments: DI DJ DFReturns: E; EG Description: E; E; E; E; &LA &MB &NC Synopsis: &OD `EFortran Equivalent: `D &PFReturns: &Q; &RG Description: &S; 'A 'B 'C Synopsis: 'D `EFortran Equivalent: `D 'H Arguments: 'I 'J 'FReturns: '; 'G Description: '; d; ; F; EA EB EC Synopsis: ED aEFortran Equivalent: aD EH Arguments: EI EJ EFReturns: E; EG Description: E; E; E; E; E ; E; F; ( A ( B ( C Synopsis: (D a EFortran Equivalent: a D (FReturns: (; (G Description: (; (; EA EB EC Synopsis: ED aEFortran Equivalent: aD EH Arguments: EI FJ EFReturns: E; EG Description: E; E; E; E; G; GA GB (3C Synopsis: (4D aEFortran Equivalent: aD (5FReturns: (6; (7G Description: (8; *=A *>B *?C Synopsis: *@D aEFortran Equivalent: aD *AH Arguments: *BI *CJ *DFReturns: *E; *FG Description: *H; o/; o; o; oK o; o; o; o; o}; oi; om; FA FB FC Synopsis: F D a EFortran Equivalent: a!D F H Arguments: F I F J FFReturns: F; FG Description: F; F A FB +C Synopsis: +D a)EFortran Equivalent: a*D +H Arguments: + I +!J +"FReturns: +#; +$G Description: +%; +&; X; +'LNotes: +(; EA EB EC Synopsis: ED a.EFortran Equivalent: a/D EH Arguments: EI EJ EFReturns: E; EG Description: E; EA EB EC Synopsis: ED a3EFortran Equivalent: a4D EH Arguments: EI EJ FFReturns: F; FG Description: F; h; h; F#A F$B F%C Synopsis: F&D a8EFortran Equivalent: a9D F'H Arguments: F6I F7J F8FReturns: F9; F,G Description: n; nA nB nC Synopsis: nD nH Arguments: nI nJ nI nJ nI nJ nFReturns: n; nG Description: n; n; nM (>2 API Section S; S; F; Mn; F; \; b                 zA zB zC Synopsis: zD zEFortran Equivalent: zD zH Arguments: zI zJ zFReturns: z; zG Description: {; z; {; {; ; |; X Z  `A dB lC Synopsis: mD vEFortran Equivalent: zD rH Arguments: {I |J FReturns: ; }G Description: ; A B C Synopsis: D EFortran Equivalent: D H Arguments: I J FReturns: ; G Description: ; A B C Synopsis: D EFortran Equivalent: D H Arguments: I J FReturns: ; G Description: ; ; ; A B C Synopsis: D EFortran Equivalent: D G Description: ; zA 'bB 'cC Synopsis: 'dD a>EFortran Equivalent: a?D aHD }D 'eH Arguments: 'fI 'gJ 'hI 'iJ 'jI 'kJ 'lI 'mJ 'nI tJ 'pFReturns: 'q; 'rG Description: 's; 'tLNotes: 'u; {; ; {; {; {; {; |; |$; |n; 'w; |; |; |; 'y; aV; 'z; |; CA CB CC Synopsis: CD aNEFortran Equivalent: aOD }D CH Arguments: CI CJ CI CJ CI CJ CFReturns: C; CG Description: F; k; ; ; F; C; CA CB CC Synopsis: CD aZEFortran Equivalent: jD jH Arguments: jI CJ CFReturns: C; CG Description: C; )A )B )C Synopsis: )D adEFortran Equivalent: aeD )H Arguments: )I )J )FReturns: ); )G Description: gp; gqLNotes: gr; A B C Synopsis: D D EFortran Equivalent: D H Arguments: I J !I "J &I 'J .FReturns: 2; 5G Description: 9; gtA )[B )\C Synopsis: )]D aiEFortran Equivalent: ajD )^H Arguments: )_I )`J )aI )bJ )cFReturns: )d; )eG Description: )f; CxA CyB CzC Synopsis: C{D avEFortran Equivalent: awD C|H Arguments: C}I C~J CI CJ CFReturns: C; CG Description: C; CA CB CC Synopsis: CD a~EFortran Equivalent: aD CH Arguments: CI CJ CI CJ CFReturns: C; CG Description: C; oA oB oC Synopsis: oD oD oEFortran Equivalent: oD oH Arguments: oI oJ oI oJ oI oJ oI oJ oFReturns: o; oG Description: o; o; CA CB CC Synopsis: CD aEFortran Equivalent: aD CH Arguments: CI CJ CFReturns: C; CG Description: C; C; CLNotes: C; i; CA CB CC Synopsis: CD aEFortran Equivalent: aD CH Arguments: CI CJ CI CJ CFReturns: C; CG Description: C; CA CB CC Synopsis: CD aEFortran Equivalent: aD C H Arguments: C I C J C FReturns: C ; CG Description: C; CA CB CC Synopsis: CD aEFortran Equivalent: aD CH Arguments: CI CJ CFReturns: C; CG Description: C; =; >; ?; CA DB DC Synopsis: DD aEFortran Equivalent: aD DH Arguments: DI DJ DFReturns: D; DG Description: h; x9; x;; x:; x>; hA hB hC Synopsis: hD hD hD hD hD hG Description: h; hA hB hC Synopsis: hD hD hD hD hD hG Description: h; hA hB hC Synopsis: hD hD hG Description: h; />3 API Section S; F; MZ; M[; \;                            " $ & ( * , . 0 2 4 6 qOA .B .C Synopsis: .D aEFortran Equivalent: aD .H Arguments: .I .J .I .J .I .J .I .J .I .J .I .J .I .J .FReturns: .; .G Description: .; .; .; .; .gA .hB .iC Synopsis: .jD aEFortran Equivalent: aD aH Arguments: .lI .mJ .nI .oJ .pFReturns: .q; .rG Description: .s; gLNotes: g; .A .B .C Synopsis: .D aEFortran Equivalent: aD aD .H Arguments: .I .J .I .J .I .J .I .J /I /J /I /J /I /J /FReturns: /; /G Description: / ; / ; / LNotes: / ; 0]A 0^B 0_C Synopsis: 0`D 0aH Arguments: 0bI 0cJ 0dI 0eJ 0fFReturns: 0g; 0hG Description: g; gLNotes: g; gA /B /C Synopsis: /D aEFortran Equivalent: aD /H Arguments: /I /J /I /J /I /J /I /J /I /J /I /J /I /J /I /J /FReturns: /; /G Description: /; /; /LNotes: /; ^IA /B /C Synopsis: /D aEFortran Equivalent: aD /H Arguments: /I /J /I /J /I /J /I /J /I /J /I /J /I /J 0FReturns: 0; 0G Description: 0; 0; 0LNotes: 0; 0sA 0tB 0uC Synopsis: 0vD aEFortran Equivalent: aD 0wH Arguments: 0xI 0yJ 0zI 0{J 0|FReturns: 0}; 0~G Description: 0; gLNotes: g; 0A 0B 0C Synopsis: 0D aEFortran Equivalent: aD aD bD 0H Arguments: 0I 0J 0I 0J 0I 0J 0I 0J 0I 0J 0I 0J 0I 0J 0I 0J 0I 0J 0FReturns: 0; 0G Description: 0; 0; 0LNotes: 0; 1Z; 2A 2B 2C Synopsis: aD aEFortran Equivalent: aD aH Arguments: aI 2J 2I 2J 2FReturns: 2; 2G Description: 2; gLNotes: g; 1\A 1]B 1^C Synopsis: 1_D aEFortran Equivalent: aD 1`H Arguments: 1aI 1bJ 1cI 1dJ 1eI 1fJ 1gI 1hJ 1iI 1jJ 1kI 1lJ 1mI 1nJ 1oI 1pJ 1qI 1rJ 1sI 1tJ 1uI 1vJ 1wI 1xJ 1yI 1zJ 1{FReturns: 1|; 1}G Description: 1~; 1; 1; 1; 1; 1; x; 1LNotes: ^]; ^A 1B 1C Synopsis: 1D aEFortran Equivalent: bD 1H Arguments: 1I 1J 1I 2J 2I 2J 2I 2J 2I 2J 2I 2J 2 I 2 J 2 I 2 J 2 I 2J 2I 2J 2I 2J 2FReturns: 2; 2G Description: 2; x; 2LNotes: 2; 2A 2B 2C Synopsis: 2D bEFortran Equivalent: bD 2H Arguments: 2I 2J 2I 2J 2FReturns: 2; 2G Description: 2; gLNotes: g; 2A 2B 2C Synopsis: 2D b EFortran Equivalent: bD bD bD bD 2H Arguments: 2I 2J 2I 2J 2I 2J 2I 2J 2I 2J 2I 2J 2I 2J 2I 2J 2I 2J 2I 2J 2I 2J 2FReturns: 2; 2G Description: 2; 2; 2; 2; 2LNotes: 2; 368 37N Figure 0-1: 38; FN Figure 0-2: F; F; F; 4H; 4; 4N Figure 0-3: 5/; 50A 51B 52C Synopsis: 53D 54D 55D bEFortran Equivalent: bD 56H Arguments: 57I 58J 59I 5:J 5;I 5<J 5=I 5>J 5?I 5@J 5AI 5BJ 5CI 5DJ 5EFReturns: 5F; 5GG Description: 5HO 5IO 5sA 5tB 5uC Synopsis: 5vD bEFortran Equivalent: b D 5wH Arguments: 5xI 5yJ 5zI 5{J 5|FReturns: 5}; 5~G Description: 5; gLNotes: g; 7A 7B 7C Synopsis: 7D b(EFortran Equivalent: b)D 7H Arguments: 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7FReturns: 7; 7G Description: 7O j; 7LNotes: 7; 7A 7B 7C Synopsis: 7D b-EFortran Equivalent: b.D 7H Arguments: 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7I 7J 7FReturns: 7; 7G Description: 7; 8(; 8)LNotes: 8C; 8D; 8G; 8JA 8KB 8LC Synopsis: 8MD b2EFortran Equivalent: b3D 8NH Arguments: 8OI 8PJ 8QI 8RJ 8SI 8TJ 8UI 8VJ 8WI 8XJ 8YI 8ZJ 8[I 8\J 8]I 8^J 8_I 8`J 8aI 8bJ 8cI 8dJ 8eI 8fJ 8gI 8hJ 8iI 8jJ 8kFReturns: 8l; 8mG Description: 8n; 8oLNotes: 8; 8; 8; 8P 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8Q 8N Figure 0-4: (J >)I >*J >+FReturns: >,; >-G Description: >.; t; xC; w; w; u; u; w; u; w; >/LNotes: >Q; >A >B >C Synopsis: >D bEFortran Equivalent: bD >H Arguments: >I >J >I >J >FReturns: >; >G Description: >; hLNotes: h; >A >B >C Synopsis: >D >D >D bEFortran Equivalent: bD bD bD >H Arguments: >I >J >I >J >I >J >I >J >I >J >I >J >I >J >FReturns: >; >G Description: >; >; >; >; >; >; >; >A ?B ?C Synopsis: ?D bEFortran Equivalent: bD ?H Arguments: ?I ?J ?I ?J ?FReturns: ? ; ? G Description: ? ; hLNotes: h; BA BB BC Synopsis: BD bEFortran Equivalent: bD BH Arguments: BI BJ BI BJ BI BJ BFReturns: B; BG Description: B; BA BB BC Synopsis: BD bEFortran Equivalent: bD BH Arguments: BI BJ BI BJ BFReturns: B; BG Description: B; s>4 API Section M; M; T ; T; V9; d;                    A rB GC Synopsis: GD bEFortran Equivalent: bD bD GH Arguments: GI GJ GI GJ GI GJ GI ~J ~I GJ GI GJ GFReturns: G; GG Description: G; 8; C; D; G; H; T#; T{N Figure 0-7: T~; ; ; ; ; ; WF; TpLNotes: H<; H=; H>; H?; H@; HA; HB; (UA (VB (WC Synopsis: (XD bEFortran Equivalent: bD (YH Arguments: (ZI ([J (\I (]J (^FReturns: (_; (`G Description: (a; h%LNotes: h&; HPA HQB HRC Synopsis: HSD HTD HUD HVD HWD HXD bEFortran Equivalent: bD HYH Arguments: HZI H[J H\I H]J H^I H_J H`I HaJ HbI HcJ HjI HnJ HuI HyJ HI HJ HI HJ HI HJ HI HJ HI HJ HG Description: HO J; H; H; H; H; H; (mA (nB (oC Synopsis: (pD (qD (rD bEFortran Equivalent: bD (sH Arguments: (tI (uJ (vI (wJ (xI (yJ (zI ({J (|FReturns: (}; (~G Description: (; h1LNotes: h2; HA HB HC Synopsis: HD cEFortran Equivalent: cD c D cH Arguments: HI HJ HI HJ HI HJ HI HJ HI HJ HI IJ IFReturns: I; IG Description: I; ILNotes: Iu; Iv; SW; IwM Ix; (A (B (C Synopsis: (D cEFortran Equivalent: cD (H Arguments: (I (J (I (J (FReturns: (; (G Description: (; h9LNotes: h:; IA IB IC Synopsis: ID cEFortran Equivalent: cD IH Arguments: II IJ II IJ II IJ II y^J II IJ IFReturns: I; IG Description: I; ILNotes: J"; J#; J$; +dA +eB +fC Synopsis: +gD cEFortran Equivalent: cD +hH Arguments: +iI +jJ +kI +lJ +mFReturns: +n; +oG Description: +p; hALNotes: hB; J.A J/B J0C Synopsis: J1T c!EFortran Equivalent: c"D J2H Arguments: J3I J4J J5I J6J J7I J8J J9I J:J J;I J<J J=FReturns: J>; J?G Description: J@; JALNotes: J; +wA +xB +yC Synopsis: +zD c&EFortran Equivalent: c'D +{H Arguments: +|I +}J +~I +J +FReturns: +; +G Description: +; hILNotes: hJ; UTA UVB UWC Synopsis: UXD UYD UZD U[D U\D U]D c/EFortran Equivalent: c0D U^H Arguments: U_I U`J UaI UbJ UcI UdJ UeI UfJ UiI UjJ UvI UwJ UzI U{J U|I U}J U~FReturns: U; UG Description: UO U; V; V; V; W; WD WD WD W D W D W D W D WD WD WD WD V; c;; U; VJA VOB VPC Synopsis: VQD VUD cEEFortran Equivalent: cFD VXH Arguments: VYI VZJ V[I V\J VaI VbJ VcFReturns: Vd; VeG Description: Vf; Vg; Vh; Vo; W; VsA VzB V{C Synopsis: V|D VD cNEFortran Equivalent: cOD VH Arguments: VI VJ VI VJ VI VJ VI VJ VFReturns: V; VG Description: V; V; V; V; W; VA VB VC Synopsis: VD cSEFortran Equivalent: cTD VH Arguments: VI VJ VI VJ VFReturns: V; VG Description: V; V; W; VGA UB UC Synopsis: UD UD cXEFortran Equivalent: cYD UH Arguments: UI UJ UI UJ UI UJ UFReturns: U; UG Description: U; U; U; cp; UA UB UC Synopsis: UD UD c]EFortran Equivalent: c^D UH Arguments: UI UJ UI UJ UFReturns: U; UG Description: U; UA UB UC Synopsis: UD cbEFortran Equivalent: ccD UH Arguments: UI UI UJ UFReturns: U; UG Description: U; UA UB UC Synopsis: VD cgEFortran Equivalent: chD VH Arguments: VI VJ VI VJ VFReturns: V; VG Description: V; VA V"B V#C Synopsis: V$D clEFortran Equivalent: cmD V%H Arguments: V&I V)J V.I V/J V0FReturns: V1; V2G Description: V3; M>5 API Section N; N; N; T; T; ];                 AuA AvB AwC Synopsis: AxD AyD cEFortran Equivalent: cD }D AzH Arguments: A{I A|J A}I A~J AI AJ AI AJ AFReturns: A; AG Description: A; A; AN Figure 0-8: A; N; T; NU OH; OY; OR; OuN Figure 0-9: WO; WV; OEO O+; T; W; W; X; X; X; OBO PP; PQ; PR; X; AA AB AC Synopsis: AD AD AD AD cEFortran Equivalent: cD AH Arguments: AI AJ AI AJ AI AJ AI AJ AI AJ AI AJ AI AJ AI AJ AI AJ AI AJ AFReturns: A; AG Description: X; X4; X!; X/; X; XS; AA AB AC Synopsis: AD AD AD AD cEFortran Equivalent: cD hQD hRD AH Arguments: AI AJ AI AJ AI AJ AI AJ AI AJ AI AJ AI BJ BI BJ BI BJ BI BJ BFReturns: B; B G Description: Yn; Yo; Yr; Yy; r:; B A B B BC Synopsis: BD cEFortran Equivalent: cD BH Arguments: BI BJ BI BJ BFReturns: B; BG Description: Y; YLNotes: Y; BA BB BC Synopsis: BD BH Arguments: BI B J B!FReturns: B"; B#G Description: B%A B&B B'C Synopsis: B(D B)D cEFortran Equivalent: cD B*H Arguments: B+I B,J B-I B.J B/I B0J B1I B2J B3I B4J B5FReturns: B6; B7G Description: B8; B9A B:B B;C Synopsis: cD cEFortran Equivalent: cD cH Arguments: cI B?J B@I BAJ BBFReturns: BC; BDG Description: hTLNotes: hU; BFA BGB BHC Synopsis: BID cEFortran Equivalent: cD cH Arguments: BKI BLJ BMFReturns: BN; BOG Description: Z; qA qB qC Synopsis: qD qEFortran Equivalent: qD qH Arguments: qI qJ rBI rCJ q; qG Description: q; rl; q; q; rD; rE; rJ; rs; ri; ~; r; rA rB rC Synopsis: rD rEFortran Equivalent: rD rH Arguments: rI rJ rFReturns: r; rG Description: r; QA QB QC Synopsis: QD S<D RD RD RD cEFortran Equivalent: cD cD cD cD QH Arguments: QI QJ QI QJ RI RJ QI QJ QI QJ SI SJ SI SJ QI QJ SI SJ ZWFReturns: ZX; QG Description: Q; R:; R?; RF; Z; RH; RRA RSB RTC Synopsis: RUD cEFortran Equivalent: cD RVH Arguments: RWI RXJ RYI RZJ R[FReturns: ZU; h\LNotes: h]; \RA BRB BSC Synopsis: BTD BUD BVD cEFortran Equivalent: cD cD cD BWH Arguments: BXI BYJ BZI B[J B\I B]J B^I B_J B`I BaJ BbI BcJ BdI BeJ BhI BiJ oI oJ BjI BkJ BlFReturns: ZT; ZfG Description: Zg; Zj; Z; Zc; Z; [N Figure 0-10: \$; [A BoB BpC Synopsis: BqD cEFortran Equivalent: cD BrH Arguments: BsI BtJ BuI BvJ BwFReturns: Bx; hcLNotes: hd; B{A B|B B}C Synopsis: B~D cEFortran Equivalent: cD BH Arguments: BI BJ BFReturns: B; BG Description: ^A ^B ^C Synopsis: _ ; _E; _ ; `; _i; }; _h; `H; `; `; Aj>6 API Section M;  DJA DKB DLC Synopsis: DMD DND DOD DPD DQD DRD DSD DTD DUD DVD DWD DXD DYD DZD D[D D\D D]D D^D D_D D`D DaD DbD DcD cEFortran Equivalent: cD DdFReturns: De; DfG Description: Dg; DtA DuB DvC Synopsis: DwD DxD DyD DzD D{D D|D D}D D~D DD DD DD DD DD DD DD DD DD DD DD DD DD DH Arguments: DI DJ cEFortran Equivalent: cD DFReturns: D; DG Description: D; D; R>7 API Section M;   &A &B &C Synopsis: &D cEFortran Equivalent: cD dD &H Arguments: &I &J &I &J &I &J &I &J &I &J &I &J &I &J &I &J &FReturns: &; &G Description: &; &; &A &B &C Synopsis: &D dEFortran Equivalent: dD &H Arguments: &I &J &I &J &I &J &I &J &I &J &I &J &I &J &I &J &I &J &I &J &I &J &FReturns: &; &G Description: &; ',; '/; &A ~ B ~!C Synopsis: ~"D ~)D ~*EFortran Equivalent: ~+D ~,H Arguments: ~-I ~.J ~/I ~0J ~1I ~2J ~3I ~4J ~7G Description: ~E; ~K; ~; ~LA ~MB ~\C Synopsis: ~[D ~bD ~eEFortran Equivalent: ~fD ~gH Arguments: ~hI ~iJ ~jI ~kJ ~lI ~qJ ~xI ~yJ ~zG Description: ~{; ~J>8 API Section ~G; M; M;     =; @ %A %B %C Synopsis: %D d EFortran Equivalent: d D dD %H Arguments: %I %J %FReturns: %; %G Description: %; %A %B %C Synopsis: %D dEFortran Equivalent: dD dD dD dD dD dD dD dD dD %H Arguments: %I %J %I %J %I %J %FReturns: %; %G Description: %; %A %B %C Synopsis: d3D d8EFortran Equivalent: d9D d4H Arguments: d5I &J &I &J &FReturns: &; &G Description: &; &; &; &"A &#B &$C Synopsis: dJD dPEFortran Equivalent: dQD dKH Arguments: dLI &(J &)I &*J &+FReturns: &,; &-G Description: &.; &5A &6B &7C Synopsis: &8D dUEFortran Equivalent: dVD &9H Arguments: &:I &;J &<FReturns: &=; &>G Description: &?; &@; &; &A &B &C Synopsis: &D dZEFortran Equivalent: d[D &H Arguments: &I &J &FReturns: &; &G Description: &; %8> 9 API Section ;                               A B ?&C Synopsis: ?'D d_EFortran Equivalent: d`D ?(H Arguments: ?)I ?*J ?+I ?,J ?-I ?.J ?/I ?0J ?1I ?2J ?3I ?4J ?5FReturns: ?6; ?7G Description: ?8; ?:A ?;B ?<C Synopsis: ?=D dhEFortran Equivalent: diD ?>H Arguments: ??I ?@J ?AI ?BJ ?CI ?DJ ?EI ?FJ ?GI ?HJ ?II ?JJ ?KI ?LJ ?MI ?NJ ?OI ?PJ ?QFReturns: ?R; ?SV Description: ?T; ?U; ?V; ?; ?N Figure 0-11: ?A ?B ?C Synopsis: ?D dqEFortran Equivalent: drD ?H Arguments: ?I ?J ?I ?J ?I ?J ?FReturns: ?; ?G Description: ?; ?LNotes: ?; ?A ?B ?C Synopsis: ?D dzEFortran Equivalent: d{D ?H Arguments: ?I ?J ?I ?J ?I ?J ?I ?J ?FReturns: ?; ?G Description: ?; ?A ?B ?C Synopsis: ?D dEFortran Equivalent: dD ?H Arguments: ?I ?J ?I ?J ?I ?J ?I ?J ?I ?J ?I ?J ?I ?J ?FReturns: ?; ?G Description: ?; ?; ?; @N Figure 0-12: @A @B @C Synopsis: @D dEFortran Equivalent: dD @H Arguments: @I @J @I @J @FReturns: @; @G Description: @; @LNotes: @; @A @B @C Synopsis: @D dEFortran Equivalent: dD @H Arguments: @I @J @I @J @FReturns: @; @G Description: @; @; @A @B @C Synopsis: @D dEFortran Equivalent: dD @H Arguments: @I @J @I @J @FReturns: @; @G Description: @; A]; hjLNotes: hk; @A @B @C Synopsis: @D dEFortran Equivalent: dD @H Arguments: @I @J @I @J @FReturns: @; @G Description: @; @A @B @C Synopsis: @D @D dEFortran Equivalent: dD @H Arguments: @I @J @I @J @I @J @I @J @FReturns: @; @G Description: @; @A @B @C Synopsis: @D dEFortran Equivalent: dD @H Arguments: @I @J @I @J @FReturns: @; @G Description: @; @A @B @C Synopsis: @D dEFortran Equivalent: dD @H Arguments: @I @J @I @J @FReturns: @; @G Description: @; @LNotes: @; @}; @$A @%B @&C Synopsis: @'D dEFortran Equivalent: dD dD @(H Arguments: @)I @*J @+I @,J @-I @.J @/I @0J @1I @2J @3I @4J @5I @6J @7I @8J @9I @:J @;FReturns: @<; @=G Description: @>; @?; @FA @GB @HC Synopsis: @ID dEFortran Equivalent: dD @JH Arguments: @KI @LJ @MI @NJ @OI @PJ @QI @RJ @SI @TJ @UI @VJ @WI @XJ @YFReturns: @Z; @[G Description: @\; @cA @dB @eC Synopsis: @fD dEFortran Equivalent: dD @gH Arguments: @hI @iJ @jI @kJ @lFReturns: @m; @nG Description: @o; hrLNotes: hs; $A $B $C Synopsis: $D dEFortran Equivalent: dD $H Arguments: $I $J $I $ J $!I $"J $#FReturns: $$; $%G Description: $&; %A %B %C Synopsis: %D dEFortran Equivalent: dD %H Arguments: %I %J %FReturns: %; %G Description: %; %; %A %B %C Synopsis: %D dEFortran Equivalent: dD %H Arguments: %I %J %I %J %FReturns: %; %G Description: %; %A %B %C Synopsis: %D dEFortran Equivalent: dD %H Arguments: %I %J %FReturns: %; %G Description: %; $A $B $C Synopsis: $D dEFortran Equivalent: dD $H Arguments: $I $W $I $J $I $J $FReturns: $; $G Description: $; $A $B $C Synopsis: $D dEFortran Equivalent: dD $H Arguments: $I $W $I $J $I $J $FReturns: $; $G Description: $; %A %B %C Synopsis: %D dEFortran Equivalent: dD %H Arguments: %I %J %I %J % I % J % FReturns: % ; % G Description: %; %%A %&B %'C Synopsis: %(D dEFortran Equivalent: dD %)H Arguments: %*I %+J %,I %-J %.I %/J %0FReturns: %1; %2G Description: %3; %5A %6B %7C Synopsis: %8D dEFortran Equivalent: dD %9H Arguments: %:I %;J %<I %=J %>I %?J %@FReturns: %A; %BG Description: %C; %D; %OA %PB %QC Synopsis: %RD dEFortran Equivalent: dD %SH Arguments: %TI %UJ %VI %WJ %XI %YJ %ZI %[J %\I %]J %^I %_J %`I %aJ %bI %cJ %dFReturns: %e; %fG Description: %g; %nA %oB %pC Synopsis: %qD eEFortran Equivalent: eD %rH Arguments: %sI %tJ %uI %vJ %wI %xJ %yFReturns: %z; %{G Description: %|; %A %B %C Synopsis: %D eEFortran Equivalent: eD %H Arguments: %I %J %I %J %FReturns: %; %G Description: %; %; hzLNotes: h{; &]A &^B &_C Synopsis: &`D e EFortran Equivalent: e D &aH Arguments: &bI &cJ &dI &eJ &fI &gJ &hFReturns: &i; &jG Description: &k; &mA &nB &oC Synopsis: &pD eEFortran Equivalent: eD &qH Arguments: &rI &sJ &tI &uJ &vI &wJ &xFReturns: &y; &G Description: &; '> 10 API Section M; M; M;        sfA oB MC Synopsis: MD N8D ND NeD N9D ND MG Description: NuO M; Ng; N; N|; Nn; !A MB MC Synopsis: MD NiD NjD NkD NhD MG Description: M; N}; !A MB MC Synopsis: ND ND ND MD MG Description: PaO M; !A MB PkC Synopsis: PlD PmD PnD PpG Description: Pq; P}A PB PC Synopsis: PD PD PD PG Description: R`; NA PB PC Synopsis: PD PD PD PD PD PG Description: PO P; PA QB QC Synopsis: QD QD PD PD PD QG Description: Q; ?> 11 API Section M1;        eA eB eC Synopsis: eD e H Arguments: e!I e"J e#FReturns: e$; e%G Description: e&; e+; eA e3B e4C Synopsis: e5D e6H Arguments: e7I e8J e9FReturns: e:; `eA `gB `kC Synopsis: `lD `sD `tD `uH Arguments: `vI `wJ `xFReturns: `y; `zG Description: `{; `; `~A `B `C Synopsis: `D `H Arguments: `I `J `FReturns: `; NA NB NC Synopsis: ND NH Arguments: NI NJ NFReturns: N; NG Description: N; N; N; M28 DA DB DC Synopsis: DD DH Arguments: DI DJ DFReturns: D; DG Description: D; D; DA DB DC Synopsis: DD DH Arguments: DI DJ DFReturns: D; DG Description: D; D; D; }A }B }C Synopsis: }D }H Arguments: }I }J }I }J }I }J }I }J }I }J }FReturns: }; }G Description: }; D> 12 API Section MK; $X ;; ;; f-- v-- p--     #d"V\d^dy^Ҿy( He8j9Gw( Hfw(w(׾'πErNտNտ4 l+Dr 3 +=?l+Drl+MXl+MX5 H;E ӆr 3 +>@H;E ӆrH;NGH;NG6 Sqkr 3+?ASqkrSz+;Sz+;7 Hqkr 3+@BHqkrHz+;Hz+;8 +pv r 3+AC+pv r+y+y9 SYҍ/r 3+BDSYҍ/rSS10 ddy/r 3+CEddy/rddy+Uddy+U11 nˆ/r 3+DFnˆ/rnVnV12 br 3+EGbr+p+pnnodes = 13 {\Ir 3+FH{\Ir+K+Knzones = 3 \Ir 3+GI\Ir+U+Unzshapes = 2 }r 3+HJ}r+`+`&lznodelist = 2*8 + 1*5 = 21 zone nodes r 3+IKr +j +jnfaces = 13 external faces  v涀r 3+JL v涀r+F+F#nfshapes = 2 external face shapes \Ir 3+KM\Ir +P +Pnftypes = 0 "5Ѐr 3+LN"5Ѐr++[++[/lfnodelist = 9*4 + 4*3 = 48 external face nodes 8Ur 3+MO8UrA+pA+p fnodelist = { rM8vr 3+NPrM8vrrMAYrMAY1,2,8,7 external face nodelist rMCvr 3+OQrMCvrrMLcrMLc2,3,9,8, rMNvnAr 3+PRrMNvnArrMW>rMW> 8,9,12,11, rMYvybr 3 +QSrMYvybrrMbIrMbI5,6,12,11,...} ls" r 3!+RTls" ruCuC,fshapesize = {4,3} external face shape sizes w}" r 3"+SUw}" rMM,fshapecnt = {9,4} external face shape counts &Ur 3#+TV&Ur znodelist = { rMr 3$+UWrMrrMrM 7,10,11,8,1,4,5,2, zone nodelist rMvr 3%+VXrMvrrMrM8,11,12,9,2,5,6,3, Z6涀r 3&+WYZ6涀r#zshapesize = {8,5} zone shape sizes Z@涀r 3'+XZZ@涀ŕ́#zshapecnt = {2,1} zone shape counts wXr 3(+Y[wXrGGx = {0,1,2,0,1,2,0,1,2,0,1,2,3} r 3)+Z\rQQ y = {1,1,1,0,0,0,1,1,1,0,0,0,.5} gr)p 3*+[]gr)pgrUgrUX պ(a)p 3++\^պ(a)pպQպQY +ehp)p 3,+]_+ehp)p+erd+erdZ r 3-+^`r\\ z = {1,1,1,1,1,1,0,0,0,0,0,0,.5}  hkm!pJ,u~@)pJ,tJ,t5 %~@)p 3? hlnOn%~@)p%%4 X֋~@)p 3@ hmoOmqX֋~@)pXޠ{Xޠ{0 VND~@)p 3A hnpqkrVND~@)pVNNIVNNI3 t6~@)p 3B hoq!ls t6~@)p ~& ~&6 ֕~@)p 3C hprOnt֕~@)pࠅࠅ3 y )U;~@)p 3D hqsqovy )U;~@)py 3+y 3+0 W~@)p 3E hrt!pu W~@)p a a7 V~@)p 3F hsuOq}V~@)p { {2 iAV~@)p 3G htv!sxiAV~@)piA`iA`4 N~@)p 3H huwqrwN~@)pNN5 D~@)p 3I hvxqvy D~@)p NI NI2 L[~@)p 3J hwy!uzL[~@)pLğKLğK1 ί(U6~@)p 3K hxzqwί(U6~@)pί2&ί2&1 `*}~@)p 3L hy{!x{`*}~@)p`m`m2 A~@)p 3M hz|!z|A~@)pAIAI3 e,~@)p 3N h{}!{e,~@)pe,Ie,I0 {%f~@)p 3O h|~Ot{%f~@)p{%V{%V1^{J6 3P h}^{J6^{J{J{J$$ 3Q h~~{J$${J{J{J6 3R h{J6{J{J^{J$$ 3S h^{J$${J^{J{J$ 3T h{J${J{J^{J$H 3U h^{J$H{J^{J{JH 3V h{JH{J{J{J6$ 3W h{J6${J{J^{JZH 3XhO}^{JZH~\(Bo6 3Y h\(Bo6\(Bo(Bo('o 3Z h  ('o(Bo('o(o ? 3[ h  (o ?(Bo(o(o$ 3\ h  (o$(o('oe(o6 3] h  e(o6(oe(o\(o ? 3^ h  \(o ?e(o\(Bow('o6 3_ h  w('o6('ow('o\('o 3` h  \('o\(Bow('oe(o$ 3a he(o$w('oe(o\(oQ? 3bhqy\(oQ?  3c h   h 6 3d hh 6 h oh 6 3e hoh 6h oh Th  3f hTh oh T h  3g hh  h o 6 3h ho 6 o T 3i hT T T T  3j hT T o oh 6 3k hoh 6o oh T 6 3l hT 6T   6 3m h 6  T 6 3n hT 6T  T 6 3o hT 6T T Th QQ 3ph!|Th QQ]$J Z 3qh % ]$J Z]$J $J ]$J -$ 3rh!%!]$J -$]$J $n $J -$ 3sh "% "$J -$$n $J ]$ -$ 3th!#%!#]$ -$]$J $ $ H 3uh"$%"$$ H$n $ $ -$ 3vh#%%#$ -$$ $J ]$ ZH 3wh$& 2]$ ZH$$J Z 3xh%'$J Z$J ,$J $J -$ 3yh&($J -$$J $n $J -$ 3zh')$J -$$n ,$J $ -$ 3{h(*$ -$$J $ $ -$ 3|h)+$ -$$ ,$J ;J Z 3}h*,1,;J Z;J J ;J -$ 3~h+-1+-;J -$;J hn hJ -$ 3h,.1,.hJ -$hn J ; -$ 3h-/1-/; -$;J h h H 3h.01.0h Hhn h h -$ 3h/11/h -$h J ; ZH 3h02; ZH+0 n5~@)p 3h13 %3 n5~@)p w w0 $ CXC~@)p 3h24 24$ CXC~@)p$ M"3$ M"31 >~@)p 3h35 35 >~@)p . .2 V$ CXC~@)p 3h46 4V$ CXC~@)pV$ M"3V$ M"33 $6)p 3h57$6)p$$ dH~@)p 3h68dH~@)pdb8db81 ? 3 h79:9 ? ]~@)p 3 h8::8]~@)pMM3])p 3 h9;])p89V@ ? 3 h:<=<V@ ? UXC~@)p 3 h;==;UXC~@)p_"3_"30UXC)p 3 h<>UXC)p;<V ? 3 h=?@?V ? U]~@)p 3 h>@@> U]~@)p _M _M2 U])p 3 h?A U])p>?冀 ? 3 h@BCB冀 ? H~@)p 3 hACCAH~@)p885H)p 3 hBDH)pABD ? 3 hCEFED ? C9~@)p 3 hDFFDC9~@)pMb)Mb)4C9)p 3 hEGC9)pDE$6 3hFHjH$6$$$$$ 3hGIjGI$$$$,$$6 3hHJjHJ$6,$$$$$ 3hIKjIK$$$$$$$ 3hJLjJL$$$$$$H 3hKMjKM$$H$$$H 3hLNjLN$H$$$6$ 3hMOjM[$6$$,$Xg~j` 3hNPXg~j`m;6 3 hOQXQ;6;qq$$ 3 hPRXPRq$$q_6 3 hQSXQS_6_;$$ 3 hRTXRT;$$_;_$ 3 hSUXSU_$__;$H 3 hTVXTV;$H_;_H 3 hUWXUW_H_q_6$ 3 hVXXV_6$_;ZH 3hWY;ZHPW@ۆ ? 3 hXZ[Z@ۆ ? $>~@)p 3 hY[[Y$>~@)p$.$.1$>)p 3 hZ\jN^$>)pYZ@ ? 3 h[]^]@ ? $$~@)p 3 h\^^\$$~@)p$Ũ$Ũ5$$)p 3 h]_j[a$$)p\] ? 3 h^`a` ? 9~@)p 3 h_aa_9~@)pb)b)09)p 3 h`bj^d9)p_` ? 3 hacdc ? C~@)p 3 hbddbC~@)p332C)p 3 hcejagC)pbcE ? 3 hdfgfE ? ^$~@)p 3 hegge^$~@)p((7^$)p 3 hfhjdj^$)pef?E冀 ? 3 hgiji?E冀 ? #^I~@)p 3 hhjjh#^I~@)p#(9#(96#^I)p 3 hikjgm#^I)phi ? 3 hjlml ? ]~@)p 3 hkmmk]~@)pMM4])p 3 hlnjjp])pkl  ? 3 hmopo  ? S~@)p 3 hnppn S~@)p bC bC3 S)p 3 hoqjm S)pnoVN]!\ 3 hprVN]!\kBE-6 3hqsisBE-6BE- BE- B*- 3hrtirt B*- BE-$B*- B- ? 3hsuisu B- ? BE-B-B-$ 3htvitvB-$B-$B*-B-6 3huwiuwB-6B-B-B- ? 3hvxivxB- ?B-BE-B*-6 3hwyiwyB*-6$B*-B*-B*- 3hxzixzB*-BE-B*-B-$ 3hy{iyB-$B*-B-;E-6 3 hz||;E-6;E-qE-q*- 3 h{}{}q*-qE-*-q- ? 3 h|~|~q- ?qE-z-z-$ 3 h}}z-$z-*-D-6 3 h~~D-6z-D-;- ? 3 h;- ?D-;E-V*-6 3 hV*-6*-V*-;*- 3 h;*-;E-V*-D-$ 3 hD-$V*-D-;-Q? 3h;-Q?{?% ? 3 h?% ? #$;~@)p 3 h#$;~@)p#.+#.+0#$;)p 3 hiz #$;)p#0d ? 3 h #0d ? /}Z~@)p 3 h /}Z~@)p9GJ9GJ3/}Z)p 3 h i /}Z)p $> ? 3 h $> ? =_~@)p 3 h =_~@)pGOGO5=_)p 3 h i =_)p #0d ? 3 h #0d ? /}Z~@)p 3 h/}Z~@)p9GJ9GJ1/}Z)p 3 hi /}Z)p$d ? 3 h$d ? }Z~@)p 3 h}Z~@)pGJGJ2}Z)p 3 hi}Z)p#d熀 ? 3 h#d熀 ? }J~@)p 3 h}J~@)pG:G:4}J)p 3 hi}J)p֤d ? 3 h֤d ? և}_~@)p 3 hև}_~@)pև(GOև(GO7և}_)p 3 hiև}_)p $ ? 3 h $ ? d~@)p 3 h d~@)p $T $T6 d)p 3 hi d)p$ ? 3 h$ ? ;~@)p 3 h;~@)p + +8;)p 3 h i;)pV$ >h~@`" 3 h!V$ >h~@`"%5J,Vc~Uo 3 h "J,Vc~Uol$ >G 3h!#$ >G$ >G$ >G$ g>G6 3h"$$ g>G6$ >G$ g>G$ g>G6 3h#%$ g>G6$ g>G$ g>G$ g>G 3h$&$ g>G$ g>G$ >G$ g>G 3h%'$ g>G$ >G$ g>G$ >G6 3h&($ >G6$ >G$ >G$ >G 4 h')$ >G$ >G$ >G$ >G 4h(*$ >G$ >G$ >G$ g>G6 4h)+$ g>G6$ >G$ g>G$ >G6 4h*,$ >G6$ >G$ >G$ >G6 4h+-$ >G6$ >G$ >G$ >G6 4h,.$ >G6$ >G$ >G$ >G6 4h-/$ >G6$ >G$ >G! ? 4 h.010! ? ~@)p 4 h/11/~@)pmm0)p 4 h02)p/0 p靏N))p 4 h13d3p靏N))pp静>p静> Node Order $N)p 4 h24d24$N)p$>$> Edge Order Y$N)p 4 h35d3Y$N)pY$>Y$> Face Order|0߆ ? 4 h4676|0߆ ? `,~@)p 4 h5775`,~@)p`,`,3`,)p 4 h68`,)p56 І ? 4 h79:9 І ? 3~@)p 4 h8::8 3~@)p # #5 3)p 4 h9; 3)p89 |!ĵ ? 4 h:<=< |!ĵ ? `~@)p 4 h;==; `~@)p ` `1 `)p 4 h<> `)p;<nʆ ? 4 h=?@?nʆ ? m-~@)p 4 h>@@>m-~@)pww8m-)p 4 h?Am-)p>?6|冀 ? 4 h@BCB6|冀 ? 1{H)p 4 hACCA1{H)p1818101{H)p 4 hBD1{H)pAB |0oІ ? 4 hCEFE |0oІ ? `,n3)p 4 hDFFD `,n3)p `,x# `,x#11 `,n3)p 4 hEG `,n3)pDE|b ? 4! hFHIH|b ? `a~@)p 4" hGIIG`a~@)p`kl`kl9`a)p 4# hHJ`a)pGH| ? 4$ hIKLK| ? `#~@)p 4% hJLLJ`#~@)p``2`#)p 4& hKM`#)pJK0D ? 4' hLNON0D ? ,]~@)p 4( hMOOM,]~@)p,','4,])p 4) hNP,])pMN+D ? 4* hOQRQ+D ? ']~@)p 4+ hPRRP']~@)p''''6'])p 4, hQS'])pPQ`<~ ņ ? 4- hRTUT`<~ ņ ? D8}"~@)p 4. hSUUSD8}"~@)pD8D87D8}")p 4/ hTVD8}")pSTt$G 41 hUWcWt$Gt$G$G$hG6 42 hVXcVX$hG6$G$hGY$hG6 43 hWYcWYY$hG6$hGY$hG>$hG 44 hXZcXZ>$hGY$hG>$Gt$hG 45 hY[cY[t$hGt$G$hGY$G6 46 hZ\cZ\Y$G6$GY$G>$G 47 h[]c[]>$G>$G>$G>$G 48 h\^c\^>$G>$GY$GY$hG6 49 h]_c]_Y$hG6Y$GY$hG>$G6 4: h^`c^`>$G6>$Gt$Gt$G6 4; h_ac_at$G6t$Gt$G>$G6 4< h`bc`b>$G6>$Gt$G>$G6 4= hacca>$G6>$G>$G>$hGQQ 4>hbd>$hGQQVbp靏NVC)p 4@hcep靏NVC)p24 sPFm)p 4BhdfsPFm)p$P]sPP] Tetrahedron p6;)p 4Chegp6;)p$pPyramid  6`)p 4Dhfh 6`)p$**Prism sP6)p 4EhgisP6)p$sP HexahedronB;QI) FhhjB;QI)r$ZM Fhik$ZM΀Gp ZO)p FhjlolZO)p$?$?0:012 )p Fhkmokm)pHMHM1:023 J1)p FhlnolnJ1)pTw!Tw!2:031 V֋)p FhmoomV֋)p`{`{3:132ZOథ FhnpZOథkn 0Ǟ )p Fhoquq0Ǟ )p0:0123 ZO)p FhpruprZO)p$?$?1:034 )p Fhqsuqs)pMM2:041 1)p Fhrturt1)pw!w!3:142 ֋)p Fhsuus֋)p̠{̠{4:2430Ǟ 4 Fhtv0Ǟ 4pt 0Ǟ )p Fhuw{w0Ǟ )p0:0123 ZO)p Fhvx{vxZO)p$?$?1:034  )p Fhwy{wy )p)M)M2:0451 +1)p Fhxz{xz+1)p5w!5w!3:152 7֋ )p Fhy{{y7֋ )pA{A{4:25430Ǟ 4 Fhz|0Ǟ 4vz h )p Fh{}}h )pqq0:0154 t)m )p Fh|~|~t)m )p}]}]1:0321 R )p Fh}}R )p2:0473 |O )p Fh~~|O )pF?F?3:1265 )p Fh )poo4:2376 1 )p Fh1 )p!!5:4567h H Fhh H|RXO 4J<j*E*\ 4K*E*\ g+E*Z 4L g+E*Zg+E*g+***6$ 4M **6$*E*[**+*6$ 4N +*6$+E*+*ZG* 4O  ZG*ZG*HU*g+*6$ 4P  g+*6$g+E*+*+|f6$ 4Q  +|f6$+f+|f+*Z 4R +*Z+*+{*Zՠ|G 4S Zՠ|GZՠ|Gr|GG|G6$ 4T G|G6$GGZG|G[7Z 4U [7Z[7[7{+*Z 4V+*Z+*+{*g+|G6$ 4Wg+|G6$g+G+|G U+`)p 4XU+`)pU+*U+* Z򿒒mr 4YZ򿒒mrZ򿛹=Z򿛹=1 lr 4Zlr<<2 Ԇr 4[ Ԇr  3 Er 4\ErNտNտ4 l+Dr 4]l+Drl+MXl+MX5 H;E ӆr 4^H;E ӆrH;NGH;NG6 Sqkr 4_SqkrSz+;Sz+;7 Hqkr 4`HqkrHz+;Hz+;8 +pv r 4a+pv r+y+y9 SYҍ/r 4bSYҍ/rSS10 ddy/r 4cddy/rddy+Uddy+U11 nˆ/r 4dnˆ/rnVnV12 {\Ir 4e{\Ir+K+Knzones = 3 \Ir 4f \Ir+U+Unzshapes = 2 5Ѐr 4g!5Ѐr+`+`/lznodelist = 8 + 1 + 6 * 5 + 1 + 5 + 4 * 4 = 61 ĀXr 4h "ĀXr P Pznodelist = {7,10,11,8,1,4,5,2, gr)p 4i!#gr)pgrUgrUX պ(a)p 4j"$պ(a)pպQպQY +ehp)p 4k#%+ehp)p+erd+erdZ@ 4l $&*&@@?]] 4m %'*%']|]DC 4n &(*&(DCD]]BC 4o ')*']BC] xV˫/r 4p(*xV˫/rx_{x_{13@C 4q)+@C%( r 4r*,r +P +P kA /r 4s+-kA /rkAkA6, kAOr 4t,.kAOrkA!kA! 4,11,12,9,8, kA#Hr 4u-/kA#HrkA,kA, 4,12,6,3,9, kA.Ar 4v.0kA.ArkA7kA7 4,6,5,2,3, kA9Hr 4w/1kA9HrkABkAB 4,5,11,8,2, kADOr 4x02kADOrkAMkAM 4,5,6,12,11, kAOAr 4y13kAOArkAXkAX 4,3,2,8,9, kAZ΍/r 4z24kAZ΍/rkAckAc5, kAeHr 4{35kAeHrkAnkAn 4,3,6,12,9, kApAr 4|46kApArkAykAy 3,6,13,12, kA{Ar 4}57kA{ArkAkA 3,12,13,9, kAɻSr 4~68kAɻSrkAkA 3,9,13,3, kAӻSr 479kAӻSrkAkA 3,3,13,6} r 48:rzshapetype = {DB_ZONETYPE_HEX, v3Br 49;v3Brv3Bv3BDB_ZONETYPE_POLYHEDRON} r 4:<rӕzshapesize = {8, 53} Āvr 4;ĀvrPPzshapecnt = {1, 2}B 8+>j,y=\\ 8=?[?=\\ =Ϲ\Z 8 =>@[>@=Ϲ\Z=Ϲ\=\=\6$ 8 =?A[?A=\6$=\u=\=ϕ\6$ 8 =@B[@B=ϕ\6$=Ϲ\=ϕ\tZK\ 8 =AC[ACtZK\tZK\[\=ϕ\6$ 8 =BD[BD=ϕ\6$=Ϲ\=ϕ\=qy6$ 8 =CE[CE=qy6$=y=qy=ϕ\Z 8=DF[DF=ϕ\Z=ϕ\=o\thpy. 8=EG[EGthpy.thpy.9py.ZKpy.6$ 8=FH[FHZKpy.6$ZKy.tZKpy.vZ 8=GI[GIvZvvo=ϕ\Z 8=HJ[HJ=ϕ\Z=ϕ\=o\=py.6$ 8=IK[IK=py.6$=y.=py. o=ϋ)p 8=JL[JLo=ϋ)po=ϕ\o=ϕ\ uĀr 8=KM[KMuĀruPuP9 ݈/r 8=LN[LN݈/rݒ$Oݒ$O10 Ҋ/r 8=MO[MOҊ/rғ@ғ@11 Cr 8=NP[NPCrCCCC6 >vĚr 8=OQ[OQ>vĚr>vAj>vAj7 [R憗r 8=PR[PR[R憗r[By[By8 m̝e6~r 8=QS[QSm̝e6~rm̝n]Nm̝n]N3 e6~r 8=RT[RTe6~rn]Nn]N4 >d3r 8=SU[SU>d3r>m>m5 冗r 8=TV[TV冗r0 ~wA6r 8=UW[UW~wA6r~wA]h~wA]h1 ư5r 8=VX[VXư5rư5$iư5$i2 )p 8=WY[WY )pX omp)p 8=XZ[XZomp)p9]9]Z >-Z!)p 8=Y[[Y>-Z!)p>-d>-dY>-Ā佥7 8=Z\>-Ā佥7>Z ?r 8=[]?rb nY%r 8=\^nY%rwwc oDr 8=]_oDryyd w dY r 8=^`w dY rw mw me d:r 8=_ad:rn n f vY r 8=`bvY rvvg Y*r 8=acY*rh @Y0r 8=bd@Y0r@@i :r 8=ce:r j ]Dr 8=df]Drggk xr 8=egxrxxa `)p 8=fh`)p  zone 0 8=giQ 8=hj  6$`)p 8=i 6$`)p  zone 1ٜ O 9vOmAllP  O 9wk O Oc'-,equal[plus[times[indexes[0,1,char[a],num[0.0000000000000000,"0"]],indexes[1,0,char[x],num[2.0000000000000000,"2"]]],times[indexes[0,1,char[a],num[1.0000000000000000,"1"]],indexes[1,0,char[y],num[2.0000000000000000,"2"]]],times[indexes[0,1,char[a],num[2.0000000000000000,"2"]],indexes[1,0,char[z],num[2.0000000000000000,"2"]]],times[indexes[0,1,char[a],num[3.0000000000000000,"3"]],char[x],char[y]],times[indexes[0,1,char[a],num[4.0000000000000000,"4"]],char[y],char[z]],times[indexes[0,1,char[a],num[5.0000000000000000,"5"]],char[x],char[z]],times[indexes[0,1,char[a],num[6.0000000000000000,"6"]],char[x]],times[indexes[0,1,char[a],num[7.0000000000000000,"7"]],char[y]],times[indexes[0,1,char[a],num[8.0000000000000000,"8"]],char[z]],indexes[0,1,char[a],num[9.0000000000000000,"9"]]],num[0.0000000000000000,"0"]]3M O 9OkoAnnP 3M O 9m3M O3M OOc'-bequal[plus[indexes[1,0,id[plus[char[x],minus[indexes[0,1,char[a],num[0.0000000000000000,"0"]]]]],num[2.0000000000000000,"2"]],indexes[1,0,id[plus[char[y],minus[indexes[0,1,char[a],num[1.0000000000000000,"1"]]]]],num[2.0000000000000000,"2"]],indexes[1,0,id[plus[char[z],minus[indexes[0,1,char[a],num[2.0000000000000000,"2"]]]]],num[2.0000000000000000,"2"]],minus[indexes[1,0,indexes[0,1,char[a],num[3.0000000000000000,"3"]],num[2.0000000000000000,"2"]]]],num[0.0000000000000000,"0"]]% O 9OmqAppP% O 9o% O% O`Cc'\ equal[plus[fract[indexes[1,0,id[plus[char[x],minus[indexes[0,1,char[a],num[0.0000000000000000,"0"]]]]],num[2.0000000000000000,"2"]],indexes[1,1,char[a],num[3.0000000000000000,"3"],num[2.0000000000000000,"2"]]],fract[indexes[1,0,id[plus[char[y],minus[indexes[0,1,char[a],num[1.0000000000000000,"1"]]]]],num[2.0000000000000000,"2"]],indexes[1,1,char[a],num[4.0000000000000000,"4"],num[2.0000000000000000,"2"]]],fract[indexes[1,0,id[plus[char[z],minus[indexes[0,1,char[a],num[2.0000000000000000,"2"]]]]],num[2.0000000000000000,"2"]],indexes[1,1,char[a],num[5.0000000000000000,"5"],num[2.0000000000000000,"2"]]],minus[num[1.0000000000000000,"1"]]],num[0.0000000000000000,"0"]]?`5fA 9OosArrP^5fA 9q^5fA^5fAˇ'-equal[plus[times[indexes[0,1,char[a],num[0.0000000000000000,"0"]],char[x]],times[indexes[0,1,char[a],num[1.0000000000000000,"1"]],char[y]],times[indexes[0,1,char[a],num[2.0000000000000000,"2"]],char[z]],indexes[0,1,char[a],num[3.0000000000000000,"3"]]],num[0.0000000000000000,"0"]])?֪fA 9OquAttPfA 9sfAfAr'-hequal[plus[char[x],minus[indexes[0,1,char[a],num[0.0000000000000000,"0"]]]],num[0.0000000000000000,"0"]] ; -/1/]v> Y;CtU ; .01.0];CtU[ހ  ; /11/ހ ހ ހ ً ; 025-2ً.0 ` ;! 1351``@_aXW ;! 244,aXW"$i[6)}O[[1 [[}O =$6=?[[}O[Ӕ[Ӕ16 =&6>@6H +[[}O ='6?A+[[}O+[Ӕ+[Ӕ2 6)}O ='6@B6)}O뼭뼭2 .+;[}O ='6AC.+;[}O.+;Ӕ.+;Ӕ2 ,˰6)}O ='6BD,˰6)}O,˼,˼2 d )p ='6CEGEd )pd d  Mesh plot d HP)p ='6DFGDFd HP)pd d  with material d 1)p ='6EGGEd 1)pd d  numbers and d 1)u ='6FHd 1)uDFêc6 =$6GI'Iêc6ê} =%6HJ'HJê}ê}J}c6 =%6IK'IKc6coc6 =%6JL'JLoc6oco *h[}O =$6KM'KM*h[}O*tӔ*tӔ1 *6)}O =$6LN'LN*6)}O**1 6)}O =$6MO'MO6)}O h[}O =$6NP'NPh[}OtӔtӔ Uh[}O =$6OQ'OQUh[}OUtӔUtӔ ~6)}O =$6PR'PR~6)}O~~ .Uh[}O =$6QS'QS.Uh[}O.UtӔ.UtӔ2 ,6)}O =$6RT'RT,6)}O,,2 iՏ}O =$6SU'SUiՏ}O-1 hiՏ}O =$6TV'ThiՏ}Ouu-3 euk AM)p =$6UWXWeuk AM)peuueuu Corresponding euyGt =$6VXXVeuyGteueumatlist arrayeuk Gt =$6WYeuk GtVW6Hc =$6XZgZ6Hc6H =%6Y[gY[6H6~ ?!/}O =$6Z\gZ\?!/}O??mix_zone6H =%6[]g[]6H6~6H =%6\^g\^6H6~ ?}bT}O =$6]_g]_?}bT}O??1: B,bT}O =$6^`g^`B,bT}OBvÿBv2: BnbT}O =$6_ag_aBnbT}OB$LB$L3: 6)H =%6`bg`b6)H6)~) *bT}O =$6acgac*bT}O75754: c*}}O =$6bdgbdc*}}Oc*c*2 bh}O =$6cegcebh}Ob1b12 c,}O =$6dfgdfc,}Oc#vc#v5 c)}O =$6eggec)}Oc6vc6v56Hc =$6fh6HcYfHc =$6giviHcH =%6hjvhjH !}O =$6ikvik!}Omix_matH =%6jlvjlHH =%6kmvkmH }bT}O =$6lnvln}bT}O1: B,bT}O =$6movmoB,bT}OBvBv2: BnbT}O =$6npvnpBnbT}OB$LB$L3: )H =%6oqvoq)H)) *bT}O =$6prvpr*bT}O75754: *}}O =$6qsvqs*}}O**1 Łh}O =$6rtvrtŁh}OŁ1Ł12 ,}O =$6suvsu,}O#v#v1 )}O =$6tvvt)}O6v6v2Hc =$6uwHchuHc =$6vxxHcH =%6wywyHD !l}}O =$6xzxz!l}}Omix_vfH =%6y{y{HDH =%6z|z|HD }bT}O =$6{}{}}bT}O1: B,bT}O =$6|~|~B,bT}OBvBv2: BnbT}O =$6}}BnbT}OB$LB$L3: )H =%6~~)H)D) *bT}O =$6*bT}O75754: )*}~}O =$6)*}~}O)*)*.4 (h~}O =$6(h~}O(1(1.6 ),~}O =$6),~}O)#v)#v.7 ))~}O =$6))~}O)6v)6v.3VHc =$6VHcVH =%6VHV _!}O =$6_!}O__mix_nextVH =%6  VHVVH =%6  VHV _}bT}O =$6  _}bT}O__1: _B,bT}O =$6  _B,bT}O_Bv_Bv2: _BnbT}O =$6  _BnbT}O_B$L_B$L3: V)H =%6  V)HV)) _*bT}O =$6  _*bT}O_75_754: *}}O =$6*}}O**2 h}O =$6h}O110 ,}O =$6,}O#v#v4 )}O =$6)}O6v6v0VHc =$6VHcHc =$6Hcw d n )p =$6Gd n )pd Ed E interfaced 1)` =$6d 1)`Gc =(6c6 Q =(6 QcQ Q 6 ~ =(6~~~ =(6~~~  =(6~ ~ ~2 =(6~2~22 =(6 =(6  =(6  2 =(6!222D >(6 "DDVD >(6!#DDVD  >(6"$D D V D2 >(6#%D2D2V2po$ >(6$&EiTpo$ >(6%'Y{TQ990êc6 >)6&êc6HUT1Rh ?XnZv)T\ ?Y(*S*\G\l ?Z*()+S)+G\l\K ?[+(*,S*,\K\K싚\]\T- ?\,(+-S+-\T-\TG\T @VY8 ?]*(,.S,.@VY8 ^|!@^|! Offset = 5G\K ?^-(-/S-/G\KG\KG\]\K ?_-(.0S.0\K\K\]G\Tl ?`.(/1S/1G\TlG\T\T eMVѺ& ?a*(02S02eMVѺ& }\^eM^ Length = 12P\ ?b-(13S13P\P\BP\\ ?c-(24S24\\B\\ ?d-(35S35\\B\\ ?e-(46S46\\B\\ ?f-(57S57\\B\\ ?g-(68S68\\B\Y\ ?h-(79S79Y\Y\BY\b\ ?i-(8:S8:b\b\Bb\k\ ?j-(9;S9;k\k\Bk\t\ ?k-(:S@R>@@K@K@]@T ?p0(?AR?A@T@T?T #Uw8 ?q(@BR@B#Uw8 ^#^ Offset = 5?K ?r/(ACRAC?K?K?]?K ?s/(BDRBD?K?K?]?Tl ?t1(CERCE?Tl?T?T 8cCUw& ?u(DFRDF8cCUw& P?^8cC^ Length = 12 <Ċ ?v(EGREG<Ċ P?֢C?֧  ?y*(HJRHJ>?֧ P?֧  ?z*(IKRIKP?֧ b?֧  ?{*(JLRJLb?֧ t?֧  ?|*(KMRKOt?֧ \  ?})(LNS=N\ \  ?~)(MOSM\ @  ?)(NPRLP@ ?֧  ?)(OQROQ?֧ ?֧ ?2(PRRP?֧?B?֧@E'b ?)(QSTS@E'b>Q\F ?)(RTTR\F)N\%F ?)(S\%FRST1GU h ? nZvV! \ ?UWW\G\l ?*UVXVXG\l\K ?-UWYWY\K\K싚\]\T- ?,UXZXZ\T-\TG\T @VY8 ?*UY[Y[@VY8 ^|!@^|! Offset = 5G\K ?-UZ\Z\G\KG\KG\]\K ?-U[][]\K\K\]G\Tl ?.U\^\^G\TlG\T\T eMVѺ& ?*U]_]_eMVѺ& }\^eM^ Length = 12P\ ?-U^`^`P\P\BP\\ ?-U_a_a\\B\\ ?-U`b`b\\B\\ ?-Uacac\\B\\ ?-Ubdbd\\B\\ ?-Ucece\\B\Y\ ?-UdfdfY\Y\BY\b\ ?-Uegegb\b\Bb\k\ ?-Ufhfhk\k\Bk\t\ ?-Ugigit\t\Bt\}\ ?-Uhjhj}\}\B}\ j˦Ċ ?*Uikizj˦Ċ }\j Stride = 1@ ?Ujll@@K ?/Ukmkm@K@K@]@T ?0Ulnln@T@T?T #Uw8 ?Umomo#Uw8 ^#^ Offset = 5?K ?/Unpnp?K?K?]?K ?/Uoqoq?K?K?]?Tl ?1Uprpr?Tl?T?T 8cCUw& ?Uqsqs8cCUw& P?^8cC^ Length = 12 <Ċ ?Urtrt<Ċ P?֢C?֧  ?*Uuwuw>?֧ P?֧  ?*UvxvxP?֧ b?֧  ?*Uwywyb?֧ t?֧  ?*Uxzx|t?֧ \  ?)Uy{j{\ \  ?)Uz|z\ @  ?)U{}y}@ ?֧  ?)U|~|~?֧ ?֧ ?2U}}?֧?B?֧@E'b ?)U~@E'bk~\F ?)U\FV{\%F ?)U\%FHU*ԟ AH6 A6 ׃f A׃fe׃emesh6 A>666 A66 f Af6BeBenodesets66 A > 6666 A 66 f A fBeBe materials66 A >66 266 A  266 266 qb{x A<;qb{x{jzqjzwings  b{ N=: b{)jz jz fueselagec$ Ac$ VaVi>ns_aa<$ A>a<$⊅33c$ A33c$ Fa<- AFa<-O33i>Fi>ns_b33a<$ A>33a<$⊅~c$ A~c$ ai>copper~a<$ A>~a<$⊅33c$ A33c$ a< Aa<33i>i>zinc33a<$ A>33a<$⊅ffc$ Affc$ )a)i>ironffa<$ A >"ffa<$⊅W$ A!"!W$ cTv A "" cTviucTuleftWv$ A!#>%Wv$⊅ !$ A"$%$$ v- A#%%#v-uurightv$ A$&>"(v$⊅#$$ A%'('$  vw~ A&((& vw~u ucabinv$ A')>%+v$⊅&')$ A(*+*)$ -@vu A)++)-@vu;u-@ucockpit)v$ A*,>(,)v$⊅)*6$ A+->+-6$66$$$ A,.>,.$$6$$l A-/>-/$lM6$$H A.0>.0$H$c6H6H33 A/1>/16H33O33c6HH- A02>02H-cH33H͛ A13>1333H͛33cHHff A24>24HffffcH)H$ A35>35)H$)^MHMH̖ A46>46MH̖{^MHp34 A57>57p34)p)p A68>68)p;)pip A79>79ipi{p{p34 A8:>8<{p34{p^6 N39;=^6a ^6 N3:<<a ^6a^ N3;=>9=a^;^6 N3<>><^6: N3=?= UGЍ N3>@FA UGЍ ®D8wN N3?AEB®D8wN region-only node GЍ N3@BF?D GЍ cxwN N3ACE@CcxwN grouping-only node «AwN N3BDEB«AwN region & grouping node GЍ N3CEFA GЍA7 N3DFGFA7@C UG6 N3EGGE UG6?D UGnl6 N3FH UGnl6EF S(% N3GS(%U'U'node-type legenddBx{ OxJ:❸6 O{IKLK❸6 i O|IJLLJiimesh❸6 O}IKMqO❸6JKOA6 OILNONOA6 XRE OIMOOMXRE jMXRM groupingsOA6 OINPqLQOA6MN m0{ OIOQUTm0{Fuu grouping A8- OIPRqOR8-jA8FS$ OIQSqQSFS$FijSjS͖ OIRTqRUjS͖ZijSj86 O3ISUUPj86j86 O3ITVqSXj86PT 4m O3IUWXW4mu4u grouping B~j86 O3IVXXV~j86~j86 O3IWYqU[~j86VW8 O3IXZ[Z8 !z O3IY[[Y!zA  side! O3IZ\qX^!YZZ8 O3I[]^]Z8 |!|f O3I\^^\|!|fگ | topZ! O3I]_q[aZ!\]BI8 O3I^`a`BI8 C!xj O3I_aa_C!xjPtI C bottomBI! O3I`bq^dBI!_`a8 O3Iacdca8 fQ!x O3IbddbfQ!xo fQ fronta! O3Iceqaea!bc|86 OIdfqdf|868F|8|8 OIegqeg|88F|8F|8  OIfhqfhF|8 O8F|8F|8- OIgiqgkF|8-s8F|8N O3IhjkjN K/ O3IikkiK/ MMskinnyK O3IjlqhnKij'|N O3Ikmnm'|N K{S O3IlnnlK{S|MMfat'|K O3Imoqko'|Klm|8  OInpqnp|8 8|8|8$ OIoqqo|8$8|8fg O3IprrfgLp C`G'I O3IqsqC`G'IfIC`Multiple Groupings ͚)6 OIrtut ͚)6 %G8 OIsuus %G8 I7 %I7mesh ͚)6 PItv6x ͚)6st( )6 PIuwxw( )6 1BG8 PIvxxv1BG8 C JI71JI7 groupings( )6 PIwy6uy( )6vw - PIxz6x| -C ) Tnz P3Iy{|{Tnz UQ~n=xj P3Iz||zUQ~n=xjb v?UQ~v?bottomTn= P3I{}6yTn=z{s'|nz P3I|~~s'|nz w n=x P3I}}w n=x|v?w v?fronts'|n= P3I~6|s'|n=}~'|P3H < PI6'|P3H <'|l=1F'|P34'|P3 PI64'|P34'|k3F'|P3F'|P37k PI6F'|P37kb nzF'|P3F'|P3k PI6F'|P3k|nzF'|P3 PP>Single, Hierarchical Groupingfg U3I8fgqr pl> UI$pl><&l>iz@>pz@> !@ UI6 !@|e@GN}!N} h\m u U!I $ h\m up'Wm uwzuh\zu">s8늀H U"I $ ">s8늀H s8">s*ss87ހH U#I $ ss87ހH~ s8ss*G)э܀ U,I 6G)э܀( G)G= {5 U5I  {5xʀ{5ʀo@  U64I  o@ o@ ̨@ ,AM*] U7I  ,AM*],,groupel map object z@>M U?5I8 z@>M 8 bbz@>bz@>3M U@5I8bz@>3MZ8Zbbz@>bz@>ffM UA5I8bz@>ffMO 8O bbz@>bz@>ZfM UB5I8bz@>ZfMn8nbbz@><&k<7 UC5I8<&k<7<&l><&L@bL@bmbzuMff UF5I8mbzuMff 8 mbmbzumbzuf UG5I8$mbzuf Nmbmbzu mj] WI6I mj]groupel map segments refs.oAj.) WJ3IoAj.) wl- W]3Iwl- pڲu W^3Ipڲu'wxܱxܱinteriortl W_3I6 tl'bl=1- Wa3I'bl=1- %pZn Wb3I%pZn3bx\%x\exterior'`l=0 Wc3I6 '`l=0'| Wh3I '| +Pe Wi3I +Pe|Rd+Rddeep'|Pe Wj3I!6#'|Pe Wk3I "#" F8Pe Wl3I!##!F8PeARdF8RdshallowF8Pe Wm3I"$6 %F8Pe!"pl>p7 Wp3I#%87pl>p7 |~ WtI$&6#&|~|'w~'w~ WuI%'6%)'w~A'w~=  Wx3I&()(=  "ڢuΉ Wy3I'))'"ڢuΉ, ܡ"ܡfacesڢ Wz3I(*6&,ڢ'(='|=  W{3I)+,+='|=  @l ڢv W|3I*,,*@l ڢvJ|ܡ@l ܡedges='|ڢ W}3I+-6)-='|ڢ*+, ~=1 WI,.6,., ~=1, = 3b~=13b~=1 WI-/6-/3b~=1J|= 3b~=1|e= W5I.06.0|e= |e@|e= '|N}7L W5I/16/1'|N}7L, = , = '|= '|N}'|N}L W5I02602'|N}LJ|= J|= '|= '|N}AN}gL5 W5I13613AN}gL5AA= '|= '|N}|N}L5 W5I24624|N}L5||= '|= '|N}'|N}H7"c W5I35635'|N}H7"cb nzb \= '|\= '|N}'|N}g"c W5I4664'|N}g"c|nz|\= '|\= '|N}'|< W3I57'|<u5A'|-@ u W5I688$A'|-@ up'Wm up'WcA'|cA'|-fg W3I79fg7 o@ W5I8: o@  ~%~%o%o W5I9%o@@u@@}u%}u%oHo  ) <`*@?-  ;=@=?-?  ;<>@<>?V ;=?@=?/MGV ZZV ;>@@>MGV ?? ;?AWA??>file foo.silo )B=" ;HJJG)B=")J<)J< /dir2/mesh2 ?? ;IKVR ??CIq?- ;JLQLq?-q? ;KMQKMq?V ;LNQLNh/MGV ZZqV ;MOQMOqMGqV  z=K ;NPQNPz=KzA' m>file bar.silo MHq #;RTWBMHqUGUG /multi-mesh t <茉 $;SUUQt <茉>t >file gorfo.siloq;k793U:33l$W `Float }1fU:f @;k8:1fU:fl$W ` DB_FLOAT }3U:33 D;k9;3U:33l$W  `Double }1fU:f F;k:<1fU:fl$W ` DB_DOUBLE }3U:33 J;k;=3U:33l$W  `String }1fU:f L;k<>1fU:fl$W `DB_CHAR }3U:33 P;k=?3U:33l$W  ` Variable }1fU:f R;k>@1fU:fl$W  ` DB_VARIABLE }3U:33 V;k?A3U:33l$W ` all others }1fU:f X;k@1fU:fl$W  ` DB_NOTYPE }vHU H \;gCvHU HhOWa bnd_method }HU .ff ^;gBDHU .ffhOWaMeaning }v_UH b;gCEv_UHhO W a0 }_U.ff d;gDF_U.ffhO  !BDo not use material boundaries when computing external faces. The PA-matlist parameter can be replaced with NULL. }v}UHJ h;gEGv}UHJhO W a1 }}U.ffJ j;gF}U.ffJJhO  !IIn addition to true external faces, include faces on material boundaries Cbetween zones. Faces get generated for both zones sharing a common Eface. This setting should not be used with meshes that contain mixed pHmaterial zones. If this setting is used with meshes with mixed material Izones, all faces which border a mixed material zone will be include. The A$matlist parameter must be provided. }}F33 n;pI}F33qT W a bnd_method }"3 p;pHJ"3qT W aMeaning }}F33 t;pIK}F33qT W a0 }"3 v;pJL"3qT  !BDo not use material boundaries when computing external faces. The PA-matlist parameter can be replaced with NULL. }}F33J z;pKM}F33JqT W a1 }"3J |;pLN"3JJqT  !IIn addition to true external faces, include faces on material boundaries @between zones. Faces get generated for both zones sharing a comCmon face. This setting should not be used with meshes that contain pEmixed material zones. If this setting is used with meshes with mixed Ematerial zones, all faces which border a mixed material zone will be A2included. The matlist parameter must be provided. }u/ ׀;pMOu/qUW aType }/ff ׂ;pNP/ffqUW a Description }uB ׆;pOQuBqUW aDB_ZONETYPE_BEAM }Bff ׈;pPRBffqUW aA line segment }uU ׌;pQSuUqUW! aDB_ZONETYPE_POLYGON }Uff ׎;pRTUffqUW a7A polygon where nodes are enumerated to form a polygon }uh ג;pSUuhqUW# aDB_ZONETYPE_TRIANGLE }hff ה;pTVhffqUW  a A triangle }u{ ט;pUWu{qUW% aDB_ZONETYPE_QUAD }{ff ך;pVX{ffqUW" aA quadrilateral }u מ;pWYuqU' !DB_ZONETYPE_POLYHEDPARON }ff נ;pXZffqU$ !5A polyhedron with nodes enumerated to form faces and PA*faces are enumerated to form a polyhedron }u פ;pY[uqUW) aDB_ZONETYPE_TET }ff צ;pZ\ffqUW& aA tetrahedron }u ת;p[]uqUW+ aDB_ZONETYPE_PYRAMID }ff ׬;p\^ffqUW( a A pyramid }u װ;p]_uqUW- aDB_ZONETYPE_PRISM }ff ײ;p^`ffqUW* aA prism }u ׶;p_auqUW/ aDB_ZONETYPE_HEX }ff ׸;p`ffqUW, a A hexahedron }M~†U ׼;DcM~†UEkW3` Option Name }ݎ~†U ׾;Dbdݎ~†UEk. Value P@ Data Type }(†U ;Dce(†UEkW0`Option Meaning }(†UKIk ;Ddf(†UKIkEkW1`Default Value }M~¨U ;DegM~¨UEkW7 `DBOPT_BLOCKORIGIN }ݎ~¨U ;Dfhݎ~¨UEkW2 `int }(¨U ;Dgi(¨UEkW4 `!The origin of the block numbers. }(¨UKIk ;Dhj(¨UKIkEkW5 `1 }M~»U ;DikM~»UEkW; ` DBOPT_CYCLE }ݎ~»U ;Djlݎ~»UEkW6 `int }(»U ;Dkm(»UEkW8 `Problem cycle value. }(»UKIk ;Dl(»UKIkEkW9 `0 }M~i ;GoM~iHkW? ` DBOPT_TIME }ݎ~i ;Gnpݎ~iHkW: `float }(i ;Goq(iHkW< `Problem time value. }(iKIk ;Gpr(iKIkHkW= `0.0 }M~| ;GqsM~|HkWC ` DBOPT_DTIME }ݎ~| ;Grtݎ~|HkW> `double }(| ;Gsu(|HkW@ `Problem time value. }(|KIk ;Gtv(|KIkHkWA `0.0 }M~) ;GuwM~)HkWG `DBOPT_HIDE_FROM_GUI }ݎ~) ;Gvxݎ~)HkWB `int }() ;Gwy())HkD  'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools }(KIk) ;Gxz(KIk)HkWE `0 }M~ ;Gy{M~HkWK lDBOPT_EXTENTS_SIZE }ݎ~ ;Gz|ݎ~HkWF `int }( ;G{}(HkWH `&Number of values in each extent tuple }(KIk ;G|(KIkHkWI `0 ~M~ J6M~ KWLdTIndicates a !Down-stream Performance Option. See notes for DBPutMultimesh. }M~J ;G}M~JHkWP `DBOPT_EXTENTS"a }ݎ~J ;Gݎ~JHkWJ `double* }(J ;G(JJHkM  *Pointer to an array of length nvar * &DBOPT_EXTENTS_SIZE doubles where +each group of DBOPT_EXTENTS_SIZE (doubles is an extent tuple (see below). (DBOPT_EXTENTS_SIZE must be set for B@this option to work correctly. }(KIkJ ;G(KIkJHkWN `NULL }M~U ;GM~UHk WT `DBOPT_MMESH_NAME }ݎ~U ";Gݎ~UHk WO `char * }(U $;G(UUHk Q  'Name of the multimesh this variable is +associated with. Note, this option is very &important as down-stream post processp*ing tools are otherwise required to guess *as to the mesh a given variable is associ*ated with. Sometimes, the tools can guess @wrong. }(KIkU &;G(KIkUHk WR `NULL }M~j] ,;GM~j]Hk!WX `DBOPT_TENSOR_RANK }ݎ~j] .;G ݎ~j]Hk!WS `int }(j] 0;G (j]]Hk!U  )Specify the variable type; one of either DB_VARTYPE_SCALAR, DB_VARTYPE_VECTOR 0DB_VARTYPE_TENSOR, @DB_VARTYPE_SYMTENSOR, YG`DB_VARTYPE_ARRAY QZ{`DB_VARTYPE_LABEL }(jKIk] 2;G (jKIk]Hk!V  DB_VARTYPEP@_SCALAR }M~ :;G M~Hk"W^ `DBOPT_REGION_PNAMES }ݎ~ <;G ݎ~Hk"WW `char** }( >;G (Hk"[  ,A null-pointer terminated array of pointers 'to strings specifying the pathnames of +regions in the mrg tree for the associated 0'mesh where the variable is defined. If )there is no mrg tree associated with the 'mesh, the names specified here will be $assumed to be material names of the *material object associated with the mesh. +The last pointer in the array must be null ,and is used to indicate the end of the list  of names.See #DBOPT_REGION_PNAMES on P Lpage206. }(KIk @;G (KIkHk"W\ `NULL }M~^) I;GM~^)Hk#Wb `DBOPT_CONSERVED }ݎ~^) K;Gݎ~^)Hk#W] `int }(^) M;G(^))Hk#_  ,Indicates if the variable represents a phys+ical quantity that must be conserved under P@*various operations such as interpolation. }(^KIk) O;G(^KIk)Hk#W` `0 }M~iU U;JM~iUKk$Wf `DBOPT_EXTENSIVE }ݎ~iU W;Jݎ~iUKk$Wa `int }(iU Y;J(iUUKk$c  ,Indicates if the variable represents a phys,ical quantity that is extensive (as opposed /to intensive). Note, while it is true that any p)conserved quantity is extensive, the con*verse is not true. By default and histori)cally, all Silo variables are treated as @ intensive. }(iKIkU [;J(iKIkUKk$Wd `0 }M~ a;JM~Kk%Wj `DBOPT_MB_BLOCK_TYPE }ݎ~ c;Jݎ~Kk%We `int }( e;J(Kk%Wg `#Constant block type for all blocks }(KIk g;J(KIkKk%Wh `(not specified) }M~4 m;JM~4Kk&Wn `DBOPT_MB_FILE_NS }ݎ~4 o;Jݎ~4Kk&Wi `char* }(4 q;J(44Kk&k  1Multi-block file namescheme. This is a %namescheme, indexed by block number, )to generate filename in which each block P@ is stored. }(KIk4 s;J(KIk4Kk&Wl `NULL }M~? y;J M~?Kk'Wr `DBOPT_MB_BLOCK_NS }ݎ~? {;J!ݎ~?Kk'Wm `char* }(? };J "(??Kk'o  2Multi-block block namescheme. This is a %namescheme, indexed by block number, %used to generate names of each block p+object apart from the file in which it may @reside. }(KIk? ;J!#(KIk?Kk'Wp `NULL }M~D? ؅;J"$M~D?Kk(Wv `DBOPT_MB_EMPTY_LIST }ݎ~D? ؇;J#%ݎ~D?Kk(Wq `int* }(D? ؉;J$&(D??Kk(s  "When namescheme options are used, 1there is no varnames argument in which %to use the keyword EMPTY for empty p)blocks. Instead, the empty blocks can be @$enumerated here, indexed from zero. }(DKIk? ؋;J%'(DKIk?Kk(Wt `NULL }M~ ؑ;J&(M~Kk)Wz `DBOPT_MB_EMPTY_COUNT }ݎ~ ؓ;J')ݎ~Kk)Wu `int }( ؕ;J(*(Kk)w  %Number of entries in the argument to P@DBOPT_MB_EMPTY_LIST }(KIk ؗ;J)+(KIkKk)Wx `0 }M~} ؝;J*.M~}Kk*W~ `?The options below have been deprecated. Use MRG trees instead. }ݎ~ ؟;Jݎ~Kk*Wy e }( ء;J(Kk*W{ e }(KIk أ;J+/(KIkKk*W| ` }M~ ة'33&-D.W  `!The origin of the block numbers. }33&33 ;,=?33&33-D.W  `1 }K9 ;,>@K9-D/W ` DBOPT_CYCLE }홚9蹙 ;,?A홚9蹙-D/W  `int }'339 ;,@B'339-D/W `Problem cycle value. }33933 ;,AC33933-D/W `0 }KL ;,BDKL-D0W ` DBOPT_TIME }홚L蹙 ;,CE홚L蹙-D0W `float }'33L ;,DF'33L-D0W `Problem time value. }33L33 ;,EG33L33-D0W `0.0 }K_ ;,FHK_-D1W ` DBOPT_DTIME }홚_蹙 ;,GI홚_蹙-D1W `double }'33_ ;,HJ'33_-D1W `Problem time value. }33_33 ;,IK33_33-D1W `0.0 }Kr ;,JLKr-D2W lDBOPT_EXTENTS_SIZE }홚r蹙 ;,KM홚r蹙-D2W `int }'33r ;,LN'33r-D2W `&Number of values in each extent tuple }33r33 ;,MP33r33-D2W `0 ~KM 2KM 3WdGIndicates a !Down-stream Performance Option. See notes below. }KU ;,NQKU-D3W# `DBOPT_EXTENTS"a }홚蹙U ;,PR홚蹙U-D3W `double* }'33U ;,QS'33UU-D3   +Pointer to an array of length nmesh * &DBOPT_EXTENTS_SIZE doubles where +each group of DBOPT_EXTENTS_SIZE 0(doubles is an extent tuple for the mesh coordinates (see below). (DBOPT_EXTENTS_SIZE must be set for B@this option to work correctly. }3333U ;,RT3333U-D3W! `NULL }K ;,SUK-D4W' `DBOPT_ZONECOUNTS"a }홚蹙 ;,TV홚蹙-D4W" `int* }'33 ;,UW'33-D4$  3Pointer to an array of length nmesh indiP@*cating the number of zones in each block. }3333 ;,VX3333-D4W% `NULL }KJ %;,WYKJ-D5W+ `DBOPT_HAS_EXTERNAL_ZONES"a }홚蹙J ';,XZ홚蹙J-D5W& `int* }'33J );,Y['33JJ-D5(  3Pointer to an array of length nmesh indi)cating for each block whether that block &has zones external to the whole multi-p)mesh object. A non-zero value at index i (indicates block i has external zones. A @)value of 0 (zero) indicates it does not. }3333J +;,Z\3333J-D5W) `NULL }KB) 1;,[]KB)-D6W/ `DBOPT_HIDE_FROM_GUI }홚B蹙) 3;,\^홚B蹙)-D6W* `int }'33B) 5;,]_'33B))-D6,  'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools }33B33) 7;,^`33B33)-D6W- `0 }Kk =;,_aKk-D7W3 `DBOPT_MRGTREE_NAME }홚k蹙 ?;,`b홚k蹙-D7W. `char * }'33k A;,ac'33k-D70  )Name of the mesh region grouping tree to P@#be associated with this multimesh. }33k33 C;,bd33k33-D7W1 `NULL }K‰ I;,ceK‰-D8W7 `DBOPT_TV_CONNECTIVTY }홚‰蹙 K;,df홚‰蹙-D8W2 `int }'33‰ M;,eg'33‰-D84  (A non-zero value indicates that the conP@(nectivity of the mesh varies with time. }33‰33 O;,f33‰33-D8W5 `0 }Kik U;/iKik0D9W; `DBOPT_DISJOINT_MODE }홚ik W;/hj홚ik0D9W6 `int }'33ik Y;/ik'33ikk0D98  *Indicates if any elements in the mesh are (disjoint. There are two possible modes. 'One is DB_ABUTTING indicating that elep,ments abut spatially but actually reference -different node ids (but spatially equivalent -nodal positions) in the node list. The other &is DB_FLOATING where elements neither )share nodes in the nodelist nor abut spa@tially. }33i33k [;/jl33i33k0D9W9 `DB_NONE }K) a;/kmK)0D:W? `DBOPT_TOPO_DIM }홚) c;/ln홚)0D:W: `int }'33) e;/mo'33))0D:<  +Used to indicate the topological dimension )of the mesh apart from its spatial dimenP@sion. }3333) g;/np3333)0D:=  -1 (not P@ specified) }K m;/oqK0D;WC `DBOPT_MB_BLOCK_TYPE }홚 o;/pr홚0D;W> `int }'33 q;/qs'330D;W@ `#Constant block type for all blocks }3333 s;/rt33330D;A  (not speciP@fied) }K4 y;/suK40D<WG `DBOPT_MB_FILE_NS }홚4 {;/tv홚40D<WB `char* }'334 };/uw'33440D<D  1Multi-block file namescheme. This is a %namescheme, indexed by block number, )to generate filename in which each block P@ is stored. }33334 ;/vx333340D<WE `NULL }KO? م;/wyKO?0D=WK `DBOPT_MB_BLOCK_NS }홚O? ه;/xz홚O?0D=WF `char* }'33O? ى;/y{'33O??0D=H  2Multi-block block namescheme. This is a %namescheme, indexed by block number, %used to generate names of each block p+object apart from the file in which it may @reside. }33O33? ً;/z|33O33?0D=WI `NULL }K? ّ;/{}K?0D>WO `DBOPT_MB_EMPTY_LIST }홚? ٓ;/|~홚?0D>WJ `int* }'33? ٕ;/}'33??0D>L  "When namescheme options are used, 2there is no meshnames argument in which %to use the keyword EMPTY for empty p)blocks. Instead, the empty blocks can be @$enumerated here, indexed from zero. }3333? ٗ;/~3333?0D>WM `NULL }K ٝ;/K0D?WS `DBOPT_MB_EMPTY_COUNT }홚 ٟ;/홚0D?WN `int }'33 ١;/'330D?P  %Number of entries in the argument to P@DBOPT_MB_EMPTY_LIST }3333 ٣;/33330D?WQ `0 }K ٩;/K0D@WW `]The options specified below have been deprecated. Use Mesh Region Group (MRG) trees instead. }홚 ٫;/홚0D@WR e }'33 ٭;/'330D@WT e }3333 ٯ;/33330D@WU e }K ٵݎ~i?WpQW  `char** }(i? U;V=?(i??WpQ #  Pointer to an array of length $)DBOPT_NMATNOS# containing a complete #+list of the material names used in the Mulp.timat object. $DBOPT_NMATNOS# must be @ set for this to work correctly. }(iKIk? W;V>@(iKIk?WpQW  `NULL }M~k ];V?AM~kWpRW `DBOPT_MATCOLORS }ݎ~k _;V@Bݎ~kWpRW `char** }(k a;VAC(kkWpR  +Array of strings defining the names of col)ors to be associated with each material. )The color names are taken from the X win0%dows color database. If a color name )begins with a# symbol, the remaining 6 'characters are interpreted as the hexa!decimal RGB value for the color. $+DBOPT_NMATNOS# must be set for this to B#@work correctly. }(KIkk c;VBD(KIkkWpRW `NULL }M~ i;VCEM~WpSW# ` DBOPT_CYCLE }ݎ~ k;VDFݎ~WpSW# `int }( m;VEG(WpSW# `Problem cycle value. }(KIk o;VFH(KIkWpSW# `0 }M~& u;VGIM~&WpTW# ` DBOPT_TIME }ݎ~& w;VHJݎ~&WpTW# `float }(& y;VIK(&WpTW# `Problem time value. }(&KIk {;VJL(&KIkWpTW# `0.0 }M~9 ځ;VKMM~9WpUW# ` DBOPT_DTIME }ݎ~9 ڃ;VLNݎ~9WpUW# `double }(9 څ;VMO(9WpUW# `Problem time value. }(9KIk ڇ;VNP(9KIkWpUW# `0.0 }M~L) ڍ;VOQM~L)WpVW# lDBOPT_MIXLENS }ݎ~L) ڏ;VPRݎ~L)WpVW `int* }(L) ڑ;VQS(L))WpV   5Array of nmat ints which are the values of 3the mixlen arguments in each of the indiP@!vidual blocks material objects. }(LKIk) ړ;VRU(LKIk)WpVW! ` ~M~O ڕYM~O ZW$dTIndicates a !Down-stream Performance Option. See notes for DBPutMultimesh. }M~u ڝ;VSVM~uWpWW( `DBOPT_MATCOUNTS"a }ݎ~u ڟ;VUWݎ~uWpWW" `int* }(u ڡ;VVX(uWpW%  2Array of nmat counts indicating the numP@*ber of materials actually in each block. }(uKIk ڣ;VWY(uKIkWpWW& `NULL }M~? ک;VXZM~?WpXW, `DBOPT_MATLISTS"a }ݎ~? ګ;VY[ݎ~?WpXW' `int* }(? ڭ;VZ\(??WpX)  )Array of material numbers in each block. Length is the sum of values in 0DBOPT_MATCOUNTS. DBOPT_MATCOUNTS r(must be set for this option to work cor@rectly. }(KIk? گ;V[](KIk?WpXW* `NULL }M~) ڵ;V\^M~)WpYW0 `DBOPT_HIDE_FROM_GUI }ݎ~) ڷ;V]_ݎ~)WpYW+ `int }() ڹ;V^`())WpY-  'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools }(KIk) ڻ;V_a(KIk)WpYW. `0 }M~4 ;V`bM~4WpZW4 `DBOPT_ALLOWMAT0 }ݎ~4 ;Vacݎ~4WpZW/ `int }(4 ;Vbd(44WpZ1  *If set to non-zero, indicates that a zero -entry in the matlist array is actually not a +valid material number but is instead being P@$used to indicate an unused zone. }(KIk4 ;Vce(KIk4WpZW2 `0 }M~/U ;VdfM~/UWp[W8 `DBOPT_MMESH_NAME }ݎ~/U ;Vegݎ~/UWp[W3 `char * }(/U ;Vfh(/UUWp[5  'Name of the multimesh this material is +associated with. Note, this option is very &important as down-stream post processp*ing tools are otherwise required to guess *as to the mesh a given material is associ*ated with. Sometimes, the tools can guess @wrong. }(/KIkU ;Vgi(/KIkUWp[W6 `NULL }M~„4 ;VhjM~„4Wp\W< `DBOPT_MB_FILE_NS }ݎ~„4 ;Vikݎ~„4Wp\W7 `char* }(„4 ;Vjl(„44Wp\9  1Multi-block file namescheme. This is a %namescheme, indexed by block number, )to generate filename in which each block P@ is stored. }(„KIk4 ;Vk(„KIk4Wp\W: `NULL }M~i? ;YnM~i?Zp]W@ `DBOPT_MB_BLOCK_NS }ݎ~i? ;Ymoݎ~i?Zp]W; `char* }(i? ;Ynp(i??Zp]=  2Multi-block block namescheme. This is a %namescheme, indexed by block number, %used to generate names of each block p+object apart from the file in which it may @reside. }(iKIk? ;Yoq(iKIk?Zp]W> `NULL }M~? ;YprM~?Zp^WD `DBOPT_MB_EMPTY_LIST }ݎ~? ;Yqsݎ~?Zp^W? `int* }(? ;Yrt(??Zp^A  "When namescheme options are used, 1there is no varnames argument in which %to use the keyword EMPTY for empty p)blocks. Instead, the empty blocks can be @$enumerated here, indexed from zero. }(KIk? ;Ysu(KIk?Zp^WB `NULL }M~ ;YtvM~Zp_WH `DBOPT_MB_EMPTY_COUNT }ݎ~ ;Yuwݎ~Zp_WC `int }( ;Yvx(Zp_E  %Number of entries in the argument to P@DBOPT_MB_EMPTY_LIST }(KIk ;Ywy(KIkZp_WF `0 }M~ ;Yx}M~Zp`WL `?The options below have been deprecated. Use MRG trees instead. }ݎ~ ;Yݎ~Zp`WG e }( ;Y(Zp`WI e }(KIk ;Y(KIkZp`WJ e }M~ M~|duqW `DBOPT_MB_EMPTY_COUNT }ݎ~| ;c=?ݎ~|duqW  `int }(| ;c>@(|duq   %Number of entries in the argument to P@DBOPT_MB_EMPTY_LIST }(|KIk ;c?A(|KIkduqW `0 }M~š ;c@M~šdurW `?The options below have been deprecated. Use MRG trees instead. }ݎ~š ;cݎ~šdurW e }(š ;c(šdurW e }(šKIk ;c(šKIkdurW e }M~i O~H&?auW  ` }$ ;>$?auW e }  ;>MS ?auW `Neighbor mesh type }V ;>V?auW e }~$ ;>~$?avW$ e }$ ;>$?avW e } ;>OT?avW! `DB_POINT or DB_UCD }V ;>SUV?avW" `DB_QUAD }~$ ;>TVs$?awW(`Given mesh type }$l ;>UW~2l$?awW#`DB_POINT or DB_UCD }l !<>VXl?awW%`nnodes[m] pairs of integers }Vl #;>WZVlh?aw& `nnodes[m]+6 integers. ) The first nnodes[m] integers & identify the nodes in the given .@point or ucd mesh. *@ !The next 6 integers identify ijk Kbounds of the corresponding Lnodes in the quad mesh neighPT@bor. }~z$ +;>~z$?axW.Ce }z$ -;>X[s$?axW'`DB_QUAD }z /;>Z\z]?ax+`6+nnodes[m] integers. / "The first 6 integers identify ijk !bounds of the nodes in the given S@ quad mesh. 0R The last nnodes[m] integers ]#identify the nodes in the neighbor P@point or ucd mesh. }Vz 1<>[Vz?ax, ` 15 integers 1 %The first set of 6 integers identify &!ijk bounds of nodes in the given .@ quad mesh. 2@ The second set of 6 integers K$identify ijk bounds of nodes in the L@neighbor quad mesh 3e The next 3 integers specify the p!orientation of the neighbor quad Pc@!mesh relative to the given mesh. }T`U <;<^T`U=JyW7` Option Name }[J`U >;<]_[J`U=Jy- Value P@ Data Type }`U @;<^``U=JyW4`Option Meaning }`UKIk B;<_a`UKIk=JyW5`Default Value }T‚U H;<`bT‚U=JzW; ` DBOPT_LABEL }[J‚U J; `char * }¨U d; just as mesh @#names in the DBPutMultiMesh call. X<` Yd /Note also that if this option is set, then the V)caller must pass NULL for both xvals and  )yvals arguments but must also pass valid ,information for all other object attributes p(including not only npoints and datatype @but also any options. } KIk ܢ;? KIk@JWU `NULL }T) ܪ;?T)@JW] `DBOPT_HIDE_FROM_GUI }[J) ܬ;?[J)@JWV `int }) ܮ;?))@JZ  'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools }KIk) ܰ;?KIk)@JW[ `0 }DfgyU ܶ;EDfgyUFMWa` Option Name }yU ܸ;EyUFM\ Value P@ Data Type }yU ܺ;EyUFMW^`Option Meaning }yUl ܼ;E yUlFMW_`Default Value }Dfg›U ;E Dfg›UFMWe ` DBOPT_CYCLE }›U ;E ›UFMW` `int }›U ;E ›UFMWb `Problem cycle value. }›Ul ;E ›UlFMWc `0 }Dfg®U ;E Dfg®UFMWi ` DBOPT_XLABEL }®U ;E ®UFMWd `char * }®U ;E®UFMf  +Character string defining the label associP@ated with the X dimension. }®Ul ;E®UlFMWg `NULL }Dfgi ;HDfgiIMWm ` DBOPT_YLABEL }i ;HiIMWh `char * }i ;HiIMj  +Character string defining the label associP@ated with the Y dimension. }il ;HilIMWk `NULL }Dfg ;HDfgIMWq ` DBOPT_ZLABEL } ;HIMWl `char * } ;HIMn  +Character string defining the label associP@ated with the Z dimension. }l ;HlIMWo `NULL }Dfg ;HDfgIMWu ` DBOPT_NSPACE } ;HIMWp `int } ;HIMr  *Number of spatial dimensions used by this P@mesh. }l ;HlIMWs `ndims }Dfg ;HDfgIM Wy ` DBOPT_ORIGIN } ;HIM Wt `int } ;H IM Wv ` Origin for arrays. Zero or one. }l ;H!lIM Ww `0 }Dfg ;H "DfgIM W} ` DBOPT_TIME } ;H!#IM Wx `float } ;H"$IM Wz `Problem time value. }l ;H#%lIM W{ `0.0 }Dfg ;H$&DfgIM W ` DBOPT_DTIME } ;H%'IM W| `double } ;H&(IM W~ `Problem time value. }l ;H')lIM W `0.0 }Dfg ";H(*DfgIM W ` DBOPT_XUNITS } $;H)+IM W `char * } &;H*,IM   +Character string defining the units associP@ated with the X dimension. }l (;H+-lIM W `NULL }Dfg .;H,.DfgIM W  ` DBOPT_YUNITS } 0;H-/IM W `char * } 2;H.0IM   +Character string defining the units associP@ated with the Y dimension. }l 4;H/1lIM W `NULL }Dfg8 :;H02Dfg8IMW  ` DBOPT_ZUNITS }8 <;H138IMW `char * }8 >;H248IM   +Character string defining the units associP@ated with the Z dimension. }8l @;H358lIMW  `NULL }DfgV) F;H46DfgV)IMW `DBOPT_HIDE_FROM_GUI }V) H;H57V)IMW  `int }V) J;H68V))IM  'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools }Vl) L;H79Vl)IMW `0 }Dfg R;H8:DfgIMW `DBOPT_MRGTREE_NAME } T;H9;IMW `char * } V;H:<IM  )Name of the mesh region grouping tree to P@be associated with this mesh. }l X;H;=lIMW `NULL }Dfg) ^;H<>Dfg)IMW `DBOPT_NODENUM }) `;H=?)IMW `void* }) b;H>@))IM  4An array of length nnodes giving a global 'node number for each node in the mesh. P@/By default, this array is treated as type int. }l) d;H?Al)IMW `NULL }Dfg) j;H@BDfg)IMW `DBOPT_LLONGNZNUM }) l;HAC)IMW `int }) n;HBD))IM  $Indicates that the array passed for %DBOPT_NODENUM option is of long long P@type instead of int. }l) p;HCEl)IMW `0 }Dfg32 v;HDIDfg32IMW! `JThe following optlist options have been deprecated. Instead use MRG trees } x;HIMW e } z;HIMW e }l |;HlIMW e }Dfg ݂  +Indicate if the variable should be treated +as single character, ascii values. A value P@of 1 indicates yes, 0 no. }l) ;Qgil)RPW? `0 }Dfg7) ;QhjDfg7)RPWE `DBOPT_HIDE_FROM_GUI }7) ;Qik7)RPW@ `int }7) ;Qjl7))RPB  'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools }7l) ;Qkm7l)RPWC `0 }Dfg` ;QlnDfg`RPWI `DBOPT_REGION_PNAMES }` ;Qmo`RPWD `char** }` ;Qnp`RPF  ,A null-pointer terminated array of pointers 'to strings specifying the pathnames of +regions in the mrg tree for the associated 0'mesh where the variable is defined. If )there is no mrg tree associated with the 'mesh, the names specified here will be $assumed to be material names of the *material object associated with the mesh. +The last pointer in the array must be null ,and is used to indicate the end of the list  of names. See #DBOPT_REGION_PNAMES on P Lpage206. }`l ;Qoq`lRPWG `NULL }Dfg) ;QprDfg)RPWM `DBOPT_CONSERVED }) ;Qqs)RPWH `int }) ;Qrt))RPJ  ,Indicates if the variable represents a phys+ical quantity that must be conserved under P@*various operations such as interpolation. }l) ;Qsul)RPWK `0 }Dfg U ;QtvDfg URPWQ `DBOPT_EXTENSIVE } U ;Quw URPWL `int } U ;Qvx UURPN  ,Indicates if the variable represents a phys,ical quantity that is extensive (as opposed /to intensive). Note, while it is true that any p)conserved quantity is extensive, the con*verse is not true. By default and histori)cally, all Silo variables are treated as @ intensive. } lU ;Qw lURPWO `0 }Dfg ;WzDfgXR WU` Option Name } ;Wy{XR P Value P@ Data Type } ;Wz|XR WR`Option Meaning }l ;W{}lXR WS`Default Value }Dfg !;W|~DfgXR!WY ` DBOPT_CYCLE } #;W}XR!WT `int } %;W~XR!WV `Problem cycle value. }l ';WlXR!WW `0 }Dfg -;WDfgXR"W] ` DBOPT_NSPACE } /;WXR"WX `int } 1;WXR"Z  *Number of spatial dimensions used by this P@mesh. }l 3;WlXR"W[ `ndims }Dfg 9;WDfgXR#Wa ` DBOPT_ORIGIN } ;;WXR#W\ `int } =;WXR#W^ ` Origin for arrays. Zero or one. }l ?;W lXR#W_ `0 }Dfg E;W DfgXR$We ` DBOPT_TIME } G;W XR$W` `float } I;W XR$Wb `Problem time value. }l K;W lXR$Wc `0.0 }Dfg Q;W DfgXR%Wi ` DBOPT_DTIME } S;W XR%Wd `double } U;WXR%Wf `Problem time value. }l W;WlXR%Wg `0.0 }Dfg) ];WDfg)XR&Wm `DBOPT_HIDE_FROM_GUI }) _;W)XR&Wh `int }) a;W))XR&j  'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools }l) c;Wl)XR&Wk `0 }Dfg7) i;WDfg7)XR'Wq `DBOPT_CONSERVED }7) k;W7)XR'Wl `int }7) m;W7))XR'n  ,Indicates if the variable represents a phys+ical quantity that must be conserved under P@*various operations such as interpolation. }7l) o;W7l)XR'Wo `0 }Dfg`U u;WDfg`UXR(Wu `DBOPT_EXTENSIVE }`U w;W`UXR(Wp `int }`U y;W`UUXR(r  ,Indicates if the variable represents a phys,ical quantity that is extensive (as opposed /to intensive). Note, while it is true that any p)conserved quantity is extensive, the con*verse is not true. By default and histori)cally, all Silo variables are treated as @ intensive. }`lU {;W`lUXR(Ws `0 }Dfg ށ;`DfgaU)Wy` Option Name }򹙙 ރ;`򹙙aU)t Value P@ Data Type } ޅ;` aU)Wv`Option Meaning }l އ;`!laU)Ww`Default Value }Dfg4 ލ;` "Dfg4aU*W} `DBOPT_COORDSYS }𹙙4 ޏ;`!#𹙙4aU*Wx `int }4 ޑ;`"$44aU*z  Coordinate system. One of: DB_CARTESIAN, DB_CYLINDRICAL, DB_SPHERICAL, DB_NUMERICAL, or P@ DB_OTHER. }l4 ޓ;`#%l4aU*W{ ` DB_OTHER }Dfg ޙ;`$&DfgaU+W ` DBOPT_CYCLE }𹙙 ޛ;`%'𹙙aU+W| `int } ޝ;`&(aU+W~ `Problem cycle value. }l ޟ;`')laU+W `0 }Dfg)) ޥ;`(*Dfg))aU,W `DBOPT_FACETYPE })𹙙) ާ;`)+)𹙙)aU,W `int })) ީ;`*,)))aU,  &Zone face type. One of the predefined types: DB_RECTILINEAR or P@DB_CURVILINEAR. })l) ޫ;`+-)l)aU,W `DB_RECTILINEAR }DfgR) ޱ;`,.DfgR)aU-W  `DBOPT_HI_OFFSET }R𹙙) ޳;`-/R𹙙)aU-W `int * }R) ޵;`.0R))aU-  3Array of length ndims which defines zero-*origin offsets from the last node for the P@$ending index along each dimension. }Rl) ޷;`/1Rl)aU-W ` {0,0,...} }Dfg{) ޽;`02Dfg{)aU.W  `DBOPT_LO_OFFSET }{𹙙) ޿;`13{𹙙)aU.W `int * }{) ;`24{))aU.   3Array of ndims which defines zero-origin -offsets from the first node for the starting P@index along each dimension. }{l) ;`35{l)aU.W  ` {0,0,...} }Dfg ;`46DfgaU/W ` DBOPT_XLABEL }𹙙 ;`57𹙙aU/W  `char * } ;`68aU/  +Character string defining the label associP@ated with the X dimension. }l ;`79laU/W `NULL }Dfg ;`8:DfgaU0W ` DBOPT_YLABEL }𹙙 ;`9;𹙙aU0W `char * } ;`:<aU0  +Character string defining the label associP@ated with the Y dimension. }l ;`;=laU0W `NULL }Dfg ;`<>DfgaU1W ` DBOPT_ZLABEL }𹙙 ;`=?𹙙aU1W `char * } ;`>@aU1  +Character string defining the label associP@ated with the Z dimension. }l ;`?AlaU1W `NULL }Dfg) ;`@BDfg)aU2W `DBOPT_MAJORORDER }𹙙) ;`AC𹙙)aU2W `int }) ;`BD))aU2  &Indicator for row-major (0) or column-'major (1) storage for multidimensional P@arrays. }l) ;`CEl)aU2W `0 }Dfg' ;`DFDfg'aU3W! ` DBOPT_NSPACE }'𹙙 ;`EG'𹙙aU3W `int }' ;`FH'aU3  *Number of spatial dimensions used by this P@mesh. }'l ;`GI'laU3W `ndims }DfgE ;`HJDfgEaU4W% ` DBOPT_ORIGIN }E𹙙 ;`IKE𹙙aU4W  `int }E ;`JLEaU4W" ` Origin for arrays. Zero or one. }El ;`KMElaU4W# `0 }DfgX ;`LNDfgXaU5W) ` DBOPT_PLANAR }X𹙙 ;`MOX𹙙aU5W$ `int }X ;`NPXaU5&  !Planar value. One of: DB_AREA or P@ DB_VOLUME. }Xl ;`OQXlaU5W' ` DB_OTHER }Dfgv ;`PRDfgvaU6W- ` DBOPT_TIME }v𹙙 ;`QSv𹙙aU6W( `float }v !;`RTvaU6W* `Problem time value. }vl #;`SUvlaU6W+ `0.0 }Dfg‰ );`TVDfg‰aU7W1 ` DBOPT_DTIME }‰𹙙 +;`UW‰𹙙aU7W, `double }‰ -;`VX‰aU7W. `Problem time value. }‰l /;`WY‰laU7W/ `0.0 }Dfgœ 5;`XZDfgœaU8W5 ` DBOPT_XUNITS }œ𹙙 7;`Y[œ𹙙aU8W0 `char * }œ 9;`Z\œaU82  +Character string defining the units associP@ated with the X dimension. }œl ;;`[œlaU8W3 `NULL }Dfgi A;c^DfgidU9W9 ` DBOPT_YUNITS }i C;c]_idU9W4 `char * }i E;c^`idU96  +Character string defining the units associP@ated with the Y dimension. }il G;c_aildU9W7 `NULL }Dfg M;c`bDfgdU:W= ` DBOPT_ZUNITS } O;cacdU:W8 `char * } Q;cbddU::  +Character string defining the units associP@ated with the Z dimension. }l S;cceldU:W; `NULL }Dfg) Y;cdfDfg)dU;WA `DBOPT_HIDE_FROM_GUI }) [;ceg)dU;W< `int }) ];cfh))dU;>  'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools }l) _;cgil)dU;W? `0 }Dfg e;chjDfgdU<WE `DBOPT_BASEINDEX } g;cikdU<W@ `int[3] } i;cjldU<B  ,Indicate the indices of the mesh within its P@group. }l k;ckmldU<WC `0,0,0 }Dfg q;clnDfgdU=WI `DBOPT_MRGTREE_NAME } s;cmodU=WD `char * } u;cnpdU=F  )Name of the mesh region grouping tree to P@be associated with this mesh. }l w;coqldU=WG `NULL }Dfg 32 };cpuDfg 32dU>WM `BThe following options have been deprecated. Use MRG trees instead }  ;c dU>WH e }  ߁;c dU>WJ e } l ߃;c ldU>WK e }Dfg ߉ X;x:Dfg>y[PW` Option Name }>湙 Z;x9;>湙y[P Value P@ Data Type }> \;x:<>y[PW`Option Meaning }>l ^;x;=>ly[PW`Default Value }Dfg`4 d;x<>Dfg`4y[QW `DBOPT_COORDSYS }`乙4 f;x=?`乙4y[QW `int }`4 h;x>@`44y[Q  Coordinate system. One of: DB_CARTESIAN, DB_CYLINDRICAL, DB_SPHERICAL, DB_NUMERICAL, or P@ DB_OTHER. }`l4 j;x?A`l4y[QW ` DB_OTHER }Dfg p;x@BDfgy[RW ` DBOPT_CYCLE }乙 r;xAC乙y[RW `int } t;xBDy[RW `Problem cycle value. }l v;xCEly[RW `0 }Dfg) |;xDFDfg)y[SW! `DBOPT_FACETYPE }乙) ~;xEG乙)y[SW `int }) ;xFH))y[S  &Zone face type. One of the predefined types: DB_RECTILINEAR or P@DB_CURVILINEAR. }l) ;xGIl)y[SW `DB_RECTILINEAR }Dfg ;xHJDfgy[TW% ` DBOPT_LABEL }乙 ;xIK乙y[TW  `char * } ;xJLy[T"  +Character string defining the label associP@ated with this variable. }l ;xKMly[TW# `NULL }Dfg) ;xLNDfg)y[UW) `DBOPT_MAJORORDER }乙) ;xMO乙)y[UW$ `int }) ;xNP))y[U&  &Indicator for row-major (0) or column-'major (1) storage for multidimensional P@arrays. }l) ;xOQl)y[UW' `0 }Dfg ;xPRDfgy[VW- ` DBOPT_ORIGIN }乙 ;xQS乙y[VW( `int } ;xRTy[VW* ` Origin for arrays. Zero or one. }l ;xSUly[VW+ `0 }Dfg* ;xTVDfg*y[WW1 ` DBOPT_TIME }*乙 ;xUW*乙y[WW, `float }* ;xVX*y[WW. `Problem time value. }*l ;xWY*ly[WW/ `0.0 }Dfg= ;xXZDfg=y[XW5 ` DBOPT_DTIME }=乙 ;xY[=乙y[XW0 `double }= ;xZ\=y[XW2 `Problem time value. }=l ;x[]=ly[XW3 `0.0 }DfgP ;x\^DfgPy[YW9 ` DBOPT_UNITS }P乙 ;x]_P乙y[YW4 `char * }P ;x^`Py[Y6  +Character string defining the units associP@ated with this variable. }Pl ;x_aPly[YW7 `NULL }Dfgn4 ;x`bDfgn4y[ZW= `DBOPT_USESPECMF }n乙4 ;xacn乙4y[ZW8 `int }n4 ;xbdn44y[Z:  Boolean (DB_OFF or DB_ON) value (specifying whether or not to weight the &variable by the species mass fraction P@"when using material species data. }nl4 ;xcenl4y[ZW; `DB_OFF }Dfg¢) ;xdfDfg¢)y[[WA `DBOPT_HIDE_FROM_GUI }¢乙) ;xeg¢乙)y[[W< `int }¢) ;xfh¢))y[[>  'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools }¢l) ;xg¢l)y[[W? `0 }Dfgi) ;{jDfgi)|[\WE `DBOPT_CONSERVED }i) ;{iki)|[\W@ `int }i) ;{jli))|[\B  ,Indicates if the variable represents a phys+ical quantity that must be conserved under P@*various operations such as interpolation. }il) ;{kmil)|[\WC `0 }DfgU ;{lnDfgU|[]WI `DBOPT_EXTENSIVE }U ;{moU|[]WD `int }U ;{npUU|[]F  ,Indicates if the variable represents a phys,ical quantity that is extensive (as opposed /to intensive). Note, while it is true that any p)conserved quantity is extensive, the con*verse is not true. By default and histori)cally, all Silo variables are treated as @ intensive. }lU ;{olU|[]WG `0 }Dfg^ ;rDfg^l^WM` Option Name }^ ;qs^l^H Value P@ Data Type }^ ;rt^l^WJ`Option Meaning }^l ;su^ll^WK`Default Value }Dfg4 ;tvDfg4l_WQ `DBOPT_COORDSYS }4 ;uw4l_WL `int }4 ;vx44l_N  Coordinate system. One of: DB_CARTESIAN, DB_CYLINDRICAL, DB_SPHERICAL, DB_NUMERICAL, or P@ DB_OTHER. }l4 ;wyl4l_WO ` DB_OTHER }Dfg) ;xzDfg)l`WU `DBOPT_NODENUM }) ;y{)l`WP `void* }) ;z|))l`R  4An array of length nnodes giving a global 'node number for each node in the mesh. P@/By default, this array is treated as type int. }l) ;{}l)l`WS `NULL }Dfg) $;|~Dfg)laWY `DBOPT_LLONGNZNUM }) &;})laWT `int }) (;~))laV  $Indicates that the array passed for %DBOPT_NODENUM option is of long long P@type instead of int. }l) *;l)laWW `0 }Dfg 0;DfglbW] ` DBOPT_CYCLE } 2;lbWX `int } 4;lbWZ `Problem cycle value }l 6;llbW[ `0 }Dfg) <;Dfg)lcWa `DBOPT_FACETYPE }) >;)lcW\ `int }) @;))lc^  &Zone face type. One of the predefined types: DB_RECTILINEAR or P@DB_CURVILINEAR. }l) B; l)lcW_ `DB_RECTILINEAR }DfgB H; DfgBldWe ` DBOPT_XLABEL }B J; BldW` `char * }B L; Bldb  +Character string defining the label associP@ated with the X dimension. }Bl N; BlldWc `NULL }Dfg` T; Dfg`leWi ` DBOPT_YLABEL }` V; `leWd `char * }` X;`lef  +Character string defining the label associP@ated with the Y dimension. }`l Z;`lleWg `NULL }Dfg~ `;Dfg~lfWm ` DBOPT_ZLABEL }~ b;~lfWh `char * }~ d;~lfj  +Character string defining the label associP@ated with the Z dimension. }~l f;~llfWk `NULL }Dfg l;DfglgWq ` DBOPT_NSPACE } n;lgWl `int } p;lgn  *Number of spatial dimensions used by this P@mesh. }l r;llgWo `ndims }Dfg x;DfglhWu ` DBOPT_ORIGIN } z;lhWp `int } |;lhWr ` Origin for arrays. Zero or one. }l ~;llhWs `0 }Dfg ;DfgliWy ` DBOPT_PLANAR } ;liWt `int } ; liv  !Planar value. One of: DB_AREA or P@ DB_VOLUME. }l ;!lliWw `DB_NONE }Dfg ; "DfgljW} ` DBOPT_TIME } ;!#ljWx `float } ;"$ljWz `Problem time value. }l ;#%lljW{ `0.0 }Dfg ;$&DfglkW ` DBOPT_DTIME } ;%'lkW| `double } ;&(lkW~ `Problem time value. }l ;')llkW `0.0 }Dfg ;(*DfgllW ` DBOPT_XUNITS } ;)+llW `char * } ;*,ll  +Character string defining the units associP@ated with the X dimension. }l ;+-lllW `NULL }Dfg/ ;,.Dfg/lmW  ` DBOPT_YUNITS }/ ;-//lmW `char * }/ ;.0/lm  +Character string defining the units associP@ated with the Y dimension. }/l ;/1/llmW `NULL }DfgM ;02DfgMlnW  ` DBOPT_ZUNITS }M ;13MlnW `char * }M ;24Mln   +Character string defining the units associP@ated with the Z dimension. }Ml ;35MllnW  `NULL }Dfgk) ;46Dfgk)loW `DBOPT_PHZONELIST }k) ;57k)loW  `char * }k) ;68k))lo  (Character string holding the name for a ,polyhedral zonelist object to be associated P@with the mesh }kl) ;79kl)loW `NULL }Dfg”) ;8:Dfg”)lpW `DBOPT_HIDE_FROM_GUI }”) ;9;”)lpW `int }”) ;:<”))lp  'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools }”l) ;;”l)lpW `0 }Dfgi ;>DfgilqW `DBOPT_MRGTREE_NAME }i ;=?ilqW `char * }i ;>@ilq  )Name of the mesh region grouping tree to P@be associated with this mesh. }il ;?AillqW `NULL }Dfg) ;@BDfg)lrW `DBOPT_TOPO_DIM }) ;AC)lrW `int }) ;BD))lr  +Used to indicate the topological dimension )of the mesh apart from its spatial dimenP@sion. }l) ;CEl)lrW `-1 (not specified) }Dfg ;DFDfglsW! `DBOPT_TV_CONNECTIVTY } ;EGlsW `int } ;FHls  (A non-zero value indicates that the conP@'nectivity of the mesh varies with time }l ;GIllsW `0 }Dfgk ;HJDfgkltW% `DBOPT_DISJOINT_MODE }k ;IKkltW  `int }k ;JLkklt"  *Indicates if any elements in the mesh are (disjoint. There are two possible modes. 'One is DB_ABUTTING indicating that elep,ments abut spatially but actually reference -different node ids (but spatially equivalent -nodal positions) in the node list. The other &is DB_FLOATING where elements neither )share nodes in the nodelist nor abut spa@tially. }lk ;KMlkltW# `DB_NONE }Dfg932 ;LQDfg932luW) `BThe following options have been deprecated. Use MRG trees instead }9 ;9luW$ e }9 ;9luW& e }9l ;9lluW' e }DfgL <MRDfgLlvW- `DBOPT_GROUPNUM }L "<QSLlvW( `int }L $<RTLlv*  $The group number to which this quadP@mesh belongs. }Ll &<SLllvW+ `-1 (not in a group) }Dfg2 ,;=VDfg2>wW1` Option Name }2¹ .;=UW2¹>w, Value P@ Data Type }2 0;=VX2>wW.`Option Meaning }2l 2;=WY2l>wW/`Default Value }DfgT4 8;=XZDfgT4>xW5 `DBOPT_COORDSYS }T4 :;=Y[T4>xW0 `int }T4 <;=Z\T44>x2  Coordinate system. One of: DB_CARTESIAN, DB_CYLINDRICAL, DB_SPHERICAL, DB_NUMERICAL, or P@ DB_OTHER. }Tl4 >;=[]Tl4>xW3 ` DB_OTHER }Dfgˆ D;=\^Dfgˆ>yW9 ` DBOPT_CYCLE }ˆ F;=]_ˆ>yW4 `int }ˆ H;=^`ˆ>yW6 `Problem cycle value. }ˆl J;=_aˆl>yW7 `0 }Dfg› P;=`bDfg›>zW= ` DBOPT_LABEL }› R;=ac›>zW8 `char * }› T;=bd›>z:  *Character strings defining the label assoP@ciated with this variable. }›l V;=ce›l>zW; `NULL }Dfg¹ \;=dfDfg¹>{WA ` DBOPT_ORIGIN }¹ ^;=eg¹>{W< `int }¹ `;=fh¹>{W> ` Origin for arrays. Zero or one. }¹l b;=g¹l>{W? `0 }Dfgi h;@jDfgiA|WE ` DBOPT_TIME }i j;@ikiA|W@ `float }i l;@jliA|WB `Problem time value. }il n;@kmilA|WC `0.0 }Dfg| t;@lnDfg|A}WI ` DBOPT_DTIME }| v;@mo|A}WD `double }| x;@np|A}WF `Problem time value. }|l z;@oq|lA}WG `0.0 }Dfg ;@prDfgA~WM ` DBOPT_UNITS } ;@qsA~WH `char * } ;@rtA~J  +Character string defining the units associP@ated with this variable. }l ;@sulA~WK `NULL }Dfg4 ;@tvDfg4AWQ `DBOPT_USESPECMF }4 ;@uw4AWL `int }4 ;@vx44AN  Boolean (DB_OFF or DB_ON) value (specifying whether or not to weight the &variable by the species mass fraction P@"when using material species data. }l4 ;@wyl4AWO `DB_OFF }Dfg) ;@xzDfg)AWU `DBOPT_ASCII_LABEL }) ;@y{)AWP `int }) ;@z|))AR  +Indicate if the variable should be treated +as single character, ascii values. A value P@of 1 indicates yes, 0 no. }l) ;@{}l)AWS `0 }Dfg ) ;@|~Dfg )AWY `DBOPT_HIDE_FROM_GUI } ) ;@} )AWT `int } ) ;@~ ))AV  'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools } l) ;@ l)AWW `0 }Dfg3 ;@Dfg3AW] `DBOPT_REGION_PNAMES }3 ;@3AWX `char** }3 ;@3AZ  ,A null-pointer terminated array of pointers 'to strings specifying the pathnames of +regions in the mrg tree for the associated 0'mesh where the variable is defined. If )there is no mrg tree associated with the 'mesh, the names specified here will be $assumed to be material names of the *material object associated with the mesh. +The last pointer in the array must be null ,and is used to indicate the end of the list  of names.  See #DBOPT_REGION_PNAMES on P Lpage206.  }3l ;@3lAW[ `NULL }Dfg) ;@Dfg)AWa `DBOPT_CONSERVED }) ;@)AW\ `int }) ;@))A^  ,Indicates if the variable represents a phys+ical quantity that must be conserved under P@*various operations such as interpolation. }l) ;@ l)AW_ `0 }DfgU ;@ DfgUAWe `DBOPT_EXTENSIVE }U ;@ UAW` `int }U ;@ UUAb  ,Indicates if the variable represents a phys,ical quantity that is extensive (as opposed /to intensive). Note, while it is true that any p)conserved quantity is extensive, the con*verse is not true. By default and histori)cally, all Silo variables are treated as @ intensive. }lU ;@ lUAWc `0 }Dfgu ;FDfguGWi` Option Name }u ;F uGd Value P@ Data Type }u ;FuGWf`Option Meaning }ul ;FulGWg`Default Value }Dfg4 ;FDfg4GWm `DBOPT_COORDSYS }4 ;F4GWh `int }4 ;F44Gj  Coordinate system. One of: DB_CARTESIAN, DB_CYLINDRICAL, DB_SPHERICAL, DB_NUMERICAL, or P@ DB_OTHER. }l4 ;Fl4GWk ` DB_OTHER }Dfg ;FDfgGWq ` DBOPT_CYCLE } ;FGWl `int } ;FGWn `Problem cycle value. }l ;FlGWo `0 }Dfg ;FDfgGWu ` DBOPT_LABEL } ;FGWp `char * } ;FGr  *Character strings defining the label assoP@ciated with this variable. }l ;FlGWs `NULL }Dfg ;FDfgG Wy ` DBOPT_ORIGIN } ;FG Wt `int } ;F G Wv ` Origin for arrays. Zero or one. }l ;F!lG Ww `0 }Dfg ;F "DfgG W} ` DBOPT_TIME } ;F!#G Wx `float } ;F"$G Wz `Problem time value. }l ;F#%lG W{ `0.0 }Dfg" ;F$&Dfg"G W ` DBOPT_DTIME }" !;F%'"G W| `double }" #;F&("G W~ `Problem time value. }"l %;F')"lG W `0.0 }Dfg5 +;F(*Dfg5G W ` DBOPT_UNITS }5 -;F)+5G W `char * }5 /;F*,5G   +Character string defining the units associP@ated with this variable. }5l 1;F+-5lG W `NULL }DfgS4 7;F,.DfgS4G W  `DBOPT_USESPECMF }S4 9;F-/S4G W `int }S4 ;;F.0S44G   Boolean (DB_OFF or DB_ON) value (specifying whether or not to weight the &variable by the species mass fraction P@"when using material species data. }Sl4 =;F/1Sl4G W `DB_OFF }Dfg) C;F02Dfg)GW  `DBOPT_HIDE_FROM_GUI }) E;F13)GW `int }) G;F24))G   'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools }l) I;F35l)GW  `0 }Dfg) O;F46Dfg)GW `DBOPT_CONSERVED }) Q;F57)GW  `int }) S;F68))G  ,Indicates if the variable represents a phys+ical quantity that must be conserved under P@*various operations such as interpolation. }l) U;F79l)GW `0 }DfgU [;F8:DfgUGW `DBOPT_EXTENSIVE }U ];F9;UGW `int }U _;F:<UUG  ,Indicates if the variable represents a phys,ical quantity that is extensive (as opposed /to intensive). Note, while it is true that any p)conserved quantity is extensive, the con*verse is not true. By default and histori)cally, all Silo variables are treated as @ intensive. }lU a;F;lUGW `0 }kp  g;%>kp &sW `Type })ff i;%=?)ff&sW ` Description }kp  m;%>@kp &sW `DB_ZONETYPE_BEAM })ff o;%?A)ff&sW `A line segment }kp  s;%@Bkp &sW `DB_ZONETYPE_POLYGON })ff u;%AC)ff&sW `7A polygon where nodes are enumerated to form a polygon }kp  y;%BDkp &sW `DB_ZONETYPE_TRIANGLE })ff {;%CE)ff&sW ` A triangle }kp  ;%DFkp &sW `DB_ZONETYPE_QUAD })ff ;%EG)ff&sW `A quadrilateral }kp  ;%FHkp &sW! `DB_ZONETYPE_POLYHEDRON })ff ;%GI)ff&s  5A polyhedron with nodes enumerated to form faces and P@*faces are enumerated to form a polyhedron }kp  ;%HJkp &sW# `DB_ZONETYPE_TET })ff ;%IK)ff&sW  `A tetrahedron }kp ' ;%JLkp '&sW% `DB_ZONETYPE_PYRAMID })'ff ;%KM)'ff&sW" ` A pyramid }kp : ;%LNkp :&sW' `DB_ZONETYPE_PRISM }):ff ;%MO):ff&sW$ `A prism }kp M ;%NPkp M&sW) `DB_ZONETYPE_HEX })Mff ;%OQ)Mff&sW& ` A hexahedron }Iv̡ ;%PRIv̡&tW-` Option Name } ;%QS&t( Value P@ Data Type }32 ;%RT32&tW*`Option Meaning }32l ;%SU32l&tW+`Default Value }Iv) ;%TVIv)&tW1 `DBOPT_ZONENUM }򹙙) ;%UW򹙙)&tW, `void* }32) ;%VX32))&t.  &Array of global zone numbers, one per +zone in this zonelist. By default, this is P@assumed to be of type int. }32l) ;%WY32l)&tW/ `NULL }Iv) ;%XZIv)&tW5 `DBOPT_LLONGNZNUM }򹙙) ;%Y[򹙙)&tW0 `int }32) ;%Z\32))&t2  $Indicates that the array passed for %DBOPT_ZONENUM option is of long long P@type instead of int. }32l) ;%[]32l)&tW3 `0 }Iv ;%\^Iv&tW9 `DBOPT_EDGELIST }򹙙 ;%]_򹙙&tW4 `char* }32 ;%^`32&tW6 `!Name of explicit edgelist object }32l ;%_32l&tW7 `NULL }Iv̡ ;+bIv̡,xW=` Option Name } ;+ac,x8 Value P@ Data Type }32 ;+bd32,xW:`Option Meaning }32l ;+ce32l,xW;`Default Value }I$v) ;+dfI$v),x WA `DBOPT_ZONENUM }$칙) ;+eg$칙),x W< `void* }32$) ;+fh32$)),x >  &Array of global zone numbers, one per )zone in this zonelist. By default, it is P@$assumed this array is of type int*. }32$l) ;+gi32$l),x W? `NULL }IMv) ;+hjIMv),x!WE `DBOPT_LLONGNZNUM }M칙) ;+ikM칙),x!W@ `int }32M) ;+jl32M)),x!B  $Indicates that the array passed for %DBOPT_ZONENUM option is of long long P@type instead of int. }32Ml) ;+k32Ml),x!WC `0 }H9 ;OnH9P"WH ` typeflag }$9 ;Omò9$P"WD ` num-coeffs } 9 ;Onp 9P"WF `coefficients and equation }H ;OoqHP#WK `DBCSG_QUADRIC_G }$ ;Opr$P#WG `10 }  ;Oqs P#WI "h  }H ;OrtHP$WN `DBCSG_SPHERE_PR }$ ;Osu$P$WJ `4 }  ;Otv P$WL "h  }H ;OuwHP%WQ `DBCSG_ELLIPSOID_PRRR }$ ;Ovx$P%WM `6 }  ;Owy P%WO "h }H ;OxzHP&WT `DBCSG_PLANE_G }$ ;Oy{$P&WP `4 }  ";Oz| P&WR "h }H$ (;O{}H$P'WW `DBCSG_PLANE_X }$$ *;O|~$$P'WS `1 }$  ,;O}$ P'WU "h }H7 2;O~H7P(WZ `DBCSG_PLANE_Y }7$ 4;O7$P(WV `1 }7  6;O7 P(WX "h }HJ <;OHJP)W] `DBCSG_PLANE_Z }J$ >;OJ$P)WY `1 }J  @;OJ P)W[ "h }H] F;OH]P*W` `DBCSG_PLANE_PN }]$ H;O]$P*W\ `6 }]  J;O] P*W^ "h }HpO P;O HpOP+Wc `DBCSG_PLANE_PPP }p$O R;O p$OP+W_ `9 }p O T;O p OOP+Wa "h }H®% Z;O H®%P,Wf `DBCSG_CYLINDER_PNLR }®%$ \;O ®%$P,Wb `8 }®%  ^;O ®% P,Wd `to be completed }H c;RHS-Wi `DBCSG_CYLINDER_PPR }$ e;R$S-We `7 }  g;R S-Wg `to be completed }H l;RHS.Wl `DBCSG_BOX_XYZXYZ }$ n;R$S.Wh `6 }  p;R S.Wj `to be completed }H u;RHS/Wo `DBCSG_CONE_PNLA }$ w;R$S/Wk `8 }  y;R S/Wm `to be completed }H ~;RHS0Wr `DBCSG_CONE_PPA }$ ;R$S0Wn ` }  ;R S0Wp `to be completed }H ;RHS1Wu `DBCSG_POLYHEDRON_KF | K }$ ;R$S1Wq `6K }  ;R S1Ws `to be completed }H ;RHS2Wx ` DBCSG_HEX_6F }$ ;R$S2Wt `36 }  ;R S2Wv `to be completed }H ;R!HS3W{ ` DBCSG_TET_4F }$ ;R "$S3Ww `24 }  ;R!# S3Wy `to be completed }H ;R"$HS4W~ `DBCSG_PYRAMID_5F }$ ;R#%$S4Wz `30 }  ;R$& S4W| `to be completed }H ;R%'HS5W `DBCSG_PRISM_5F }$ ;R&($S5W} `30 }  ;R') S5W `to be completed }HN9 ;R(*HN9S6W ` typeflag }N$9 ;R)+̀Y9$S6W ` num-coeffs }N 9 ;R*,N 9S6W `coefficients and equation }H ;R+-HS7W `DBCSG_QUADRATIC_G }$ ;R,.$S7W `6 }  ;R-/ S7W "h }H ;R.0HS8W  `DBCSG_CIRCLE_PR }$ ;R/1$S8W `3 }  ;R02 S8W "h }H ;R13HS9W  `DBCSG_ELLIPSE_PRR }$ ;R24$S9W  `4 }  ;R35 S9W  "h }H ;R46HS:W ` DBCSG_LINE_G }$ ;R57$S:W  `3 }  ;R68 S:W "h }H ;R79HS;W ` DBCSG_LINE_X }$ ;R8:$S;W `1 }  ;R9; S;W "h }H ;R:<HS<W ` DBCSG_LINE_Y }$ ;R;=$S<W `1 }  ;R<> S<W "h }H ;R=?HS=W `DBCSG_LINE_PN }$ ;R>@$S=W `4 }  ;R?A S=W "h }H ;R@BH S>W `DBCSG_LINE_PP } $ ;RAC $S>W `4 } ;RBD S>W "h }H2ʾ ;RCEH2ʾS?W `DBCSG_BOX_XYXY }2ʾ$ ;RDF2ʾ$S?W `4 }2ʾ  ;REG2ʾ S?W `to be completed }HEʾ ;RFHHEʾS@W" `DBCSG_POLYGON_KP | K }Eʾ$ ;RGIEʾ$S@W `2K }Eʾ  ;RHJEʾ S@W  `to be completed }HXʾ ;RIKHXʾSAW% ` DBCSG_TRI_3P }Xʾ$ !;RJLXʾ$SAW! `6 }Xʾ  #;RKMXʾ SAW# `to be completed }Hkʾ (;RLNHkʾSBW( `DBCSG_QUAD_4P }kʾ$ *;RMOkʾ$SBW$ `8 }kʾ  ,;RNkʾ SBW& `to be completed }T 1;UQTVCW,` Option Name }[J湙 3;UPR[J湙VC' Value P@ Data Type } 5;UQSVCW)`Option Meaning }KIk 7;URTKIkVCW*`Default Value }T4 =;USUT4VDW0 ` DBOPT_CYCLE }[J4乙 ?;UTV[J4乙VDW+ `int }4 A;UUW4VDW- `Problem cycle value }4KIk C;UVX4KIkVDW. `0 }TG I;UWYTGVEW4 ` DBOPT_TIME }[JG乙 K;UXZ[JG乙VEW/ `float }G M;UY[GVEW1 `Problem time value. }GKIk O;UZ\GKIkVEW2 `0.0 }TZ U;U[]TZVFW8 ` DBOPT_DTIME }[JZ乙 W;U\^[JZ乙VFW3 `double }Z Y;U]_ZVFW5 `Problem time value. }ZKIk [;U^`ZKIkVFW6 `0.0 }Tm a;U_aTmVGW< ` DBOPT_XLABEL }[Jm乙 c;U`b[Jm乙VGW7 `char * }m e;UacmVG9  +Character string defining the label associP@ated with the X dimension. }mKIk g;UbdmKIkVGW: `NULL }T m;UceTVHW@ ` DBOPT_YLABEL }[J乙 o;Udf[J乙VHW; `char * } q;UegVH=  +Character string defining the label associP@ated with the Y dimension. }KIk s;UfhKIkVHW> `NULL }T y;UgiTVIWD ` DBOPT_ZLABEL }[J乙 {;Uhj[J乙VIW? `char * } };UikVIA  +Character string defining the label associP@ated with the Z dimension. }KIk ;UjlKIkVIWB `NULL }T ;UkmTVJWH ` DBOPT_XUNITS }[J乙 ;Uln[J乙VJWC `char * } ;UmoVJE  +Character string defining the units associP@ated with the X dimension. }KIk ;UnpKIkVJWF `NULL }T ;UoqTVKWL ` DBOPT_YUNITS }[J乙 ;Upr[J乙VKWG `char * } ;UqsVKI  +Character string defining the units associP@ated with the Y dimension. }KIk ;UrtKIkVKWJ `NULL }T ;UsuTVLWP ` DBOPT_ZUNITS }[J乙 ;Utv[J乙VLWK `char * } ;UuwVLM  +Character string defining the units associP@ated with the Z dimension. }KIk ;UvxKIkVLWN `NULL }T!) ;UwyT!)VMWT `DBOPT_BNDNAMES }[J!乙) ;Uxz[J!乙)VMWO `char ** }!) ;Uy{!))VMQ  1Array of nboundaries character strings %defining the names of the individual P@ boundaries. }!KIk) ;Uz|!KIk)VMWR `NULL }TJ) ;U{}TJ)VNWX `DBOPT_HIDE_FROM_GUI }[JJ乙) ;U|~[JJ乙)VNWS `int }J) ;U}J))VNU  'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools }JKIk) ;U~JKIk)VNWV `0 }Ts ;UTsVOW\ `DBOPT_MRGTREE_NAME }[Js乙 ;U[Js乙VOWW `char * }s ;UsVOY  )Name of the mesh region grouping tree to P@be associated with this mesh. }sKIk ;UsKIkVOWZ `NULL }T‘ ;UT‘VPW` `DBOPT_TV_CONNECTIVTY }[J‘乙 ;U[J‘乙VPW[ `int }‘ ;U‘VP]  (A non-zero value indicates that the conP@'nectivity of the mesh varies with time }‘KIk ;U‘KIkVPW^ `0 }Tik ;X TikYQWd `DBOPT_DISJOINT_MODE }[Jik ;X [JikYQW_ `int }ik ;X ikkYQa  *Indicates if any elements in the mesh are (disjoint. There are two possible modes. 'One is DB_ABUTTING indicating that elep,ments abut spatially but actually reference -different node ids (but spatially equivalent -nodal positions) in the node list. The other &is DB_FLOATING where elements neither )share nodes in the nodelist nor abut spa@tially. }iKIkk ;X iKIkkYQWb `DB_NONE }T| ;X T|YRWh `BThe following options have been deprecated. Use MRG trees instead }[J ;X[JYRWc e } ;XYRWe e }KIk ;XKIkYRWf e }T replacing =. Qw&`;left operand indicates the boundary, right operand ignored }T[v- ;dT[v-e WWz ` DBCSG_ON }ff[H- ;dff[H-e WWu `unary }ff[- ;d ff[--e Wx  ?specifies the region created by all points satisfying the equa@tion defining the boundary. Q{&`;left operand indicates the boundary, right operand ignored }Tv" $;d!Tv"e XW~ ` DBCSG_UNION }ffH" &;d "ffH"e XWy `binary }ff" (;d!#ff""e X| `*take the union of left and right operands Q`-left and right operands indicate the regions }Tv" .;d"$Tv"e YW `DBCSG_INTERSECT }ffH" 0;d#%ffH"e YW} `binary }ff" 2;d$&ff""e Y `1take the intersection of left and right operands Q`-left and right operands indicate the regions }Tv" 8;d%'Tv"e ZW ` DBCSG_DIFF }ffH" :;d&(ffH"e ZW `binary }ff" <;d')ff""e Z `)subtract the right operand from the left Q`-left and right operands indicate the regions }Tv" B;d(*Tv"e [W  `DBCSG_COMPLIMENT }ffH" D;d)+ffH"e [W `unary }ff" F;d*,ff""e [ `)take the compliment of the left operand, Q `9left operand indicates the region, right operand ignored }Tv L;d+-Tve \W ` DBCSG_XFORM }ffH N;d,.ffHe \W  `unary }ff P;d-/ffe \W  `to be implemented }T#v U;d.0T#ve ]W ` DBCSG_SWEEP }ff#H W;d/1ff#He ]W  `unary }ff# Y;d02ff#e ]W `to be implemented }Z(v̡ ^;d13Z(v̡e ^W` Option Name }򹙙 `;d24򹙙e ^ Value P@ Data Type } } b;d35 }e ^W`Option Meaning }}KIk d;d46}KIke ^W`Default Value }Z(v j;d57Z(ve _W `DBOPT_REGNAMES }𹙙 l;d68𹙙e _W `char ** } } n;d79 }e _  4Array of nregs character strings defining P@%the names of the individual regions. }}KIk p;d8:}KIke _W `NULL }Z(v v;d9;Z(ve `W `DBOPT_ZONENAMES }𹙙 x;d:<𹙙e `W `char** } } z;d;= }e `  5Array of nzones character strings defining P@the names of individual zones. }}KIk |;d<}KIke `W `NULL }H3 ;g?H3h aW! ` typeflags }3$ ;g>@3$h aW `id }3 ;g?A3h aW ` coefficients }3 ;g@B3h aW `name (optional) }H3 ;gACH3h bW% `DBCSG_SPHERE_PR }3$ ;gBD3$h bW  `0 }3 ;gCE3h bW" `0.0, 0.0, 0.0, 5.0 }3 ;gDF3h bW# `housing outer shell }H3 ;gEGH3h cW) `DBCSG_PLANE_X }3$ ;gFH3$h cW$ `1 }3 ;gGI3h cW& `-2.5 }3 ;gHJ3h cW' `housing front }H3 ;gIKH3h dW- `DBCSG_PLANE_X }3$ ;gJL3$h dW( `2 }3 ;gKM3h dW* `2.5 }3 ;gLN3h dW+ `housing back }HӉ3 ;gMOHӉ3h eW1 `DBCSG_CYLINDER_PPR }Ӊ3$ ;gNPӉ3$h eW, `3 }Ӊ3 ;gOQӉ3h eW. `"0.0, 0.0, 0.0, 1.0, 0.0. 0.0, 3.0 }Ӊ3 ;gPRӉ3h eW/ `housing cavity }H3 ;gQSH3h fW5 `DBCSG_SPHERE_PR }3$ ;gRT3$h fW0 `4 }3 ;gSU3h fW2 `0.0, 0.0, 49.5, 50.0 }3 ;gTV3h fW3 `fin top side }H3 ;gUWH3h gW9 `DBCSG_SPHERE_PR }3$ ;gVX3$h gW4 `5 }3 ;gWY3h gW6 `0.0. 0.0, -49.5, 50.0 }3 ;gX3h gW7 `fin bottom side }R^Z ;j[R^Zk hW> ` typeflags }^ ;jZ\^k hW8 `regid }ۙ^ ;j[]ۙ^k hW: `leftids } ff^ ;j\^ ff^k hW; ` rightids }932^ ;j]_932^k hW< `notes }RqZ ;j^`RqZk iWC ` DBCSG_INNER }q ;j_aqk iW= `0 }ۙq ;j`bۙqk iW? `0 } ffq ;jac ffqk iW@ `-1 }932q ;jbd932qk iWA%`,creates inner sphere region from boundary 0 }RZ ;jceRZk jWH ` DBCSG_INNER } ;jdfk jWB `1 }ۙ ;jegۙk jWD `1 } ff ;jfh ffk jWE `-1 }932 ;jgi932k jWF%`0creates front half-space region from boundary 1 }RZ ;jhjRZk kWM ` DBCSG_OUTER } ;jikk kWG `2 }ۙ ;jjlۙk kWI `2 } ff ;jkm ffk kWJ `-1 }932 ;jln932k kWK%`/creates back half-space region from boundary 2 }RZ ;jmoRZk lWR ` DBCSG_INNER } ;jnpk lWL `3 }ۙ ;joqۙk lWN `3 } ff ;jpr ffk lWO `-1 }932 ;jqs932k lWP%`,creates inner cavity region from boundary 3 }RZ !;jrtRZk mW  DBCSG_INTERSEP@CT } #;jsuk mWQ `4 }ۙ %;jtvۙk mWS `0 } ff ';juw ffk mWT `1 }932 );jvx932k mWU%`2cuts front of sphere by intersecting regions 0 &1 }RZ 0;jwyRZk n\  DBCSG_INTERSEP@CT } 2;jxzk nWV `5 }ۙ 4;jy{ۙk nWX `4 } ff 6;jz| ffk nWY `2 }932 8;j{}932k nWZ%`2cuts back of sphere by intersecting regions 4 & 2 }RZ ?;j|~RZk oWa ` DBCSG_DIFF } A;j}k oW[ `6 }ۙ C;j~ۙk oW] `5 } ff E;j ffk oW^ `3 }932 G;j932k oW_%`.creates cavity in sphere by removing region 3 }R Z N;jR Zk pWf ` DBCSG_INNER }  P;j k pW` `7 }ۙ  R;jۙ k pWb `4 } ff  T;j ff k pWc `-1 }932  V;j932 k pWd%`Bcreates large sphere region for fin upper surface from boundary 4 }RZ ];jRZk qWk ` DBCSG_INNER } _;j k qWe `8 }ۙ a;j ۙk qWg `5 } ff c;j ffk qWh `-1 }932 e;j 932k qWi%`Bcreates large sphere region for fin lower surface from boundary 5 }R2Z l;j R2Zk rp  DBCSG_INTERSEP@CT }2 n;j 2k rWj `9 }ۙ2 p;j ۙ2k rWl `7 } ff2 r;j ff2k rWm `8 }9322 t;j9322k rn% ?creates lens-shaped fin with razor edge protruding from sphere P@&housing by intersecting regions 7 & 8 }RPZ {;jRPZk su  DBCSG_INTERSEP@CT }P };jPk sWo `10 }ۙP ;jۙPk sWq `9 } ffP ;j ffPk sWr `0 }932P ;j932Pk sWs%`5cuts razor edge of lens-shaped fin to sphere housing }Dfg^ ;sDfg^ttWy` Option Name }^ ;s^ttt Value P@ Data Type }^ ;s^ttWv`Option Meaning }^l ;s^lttWw`Default Value }Dfg ;sDfgtuW} ` DBOPT_CYCLE } ;stuWx `int } ;stuWz `Problem cycle value. }l ;sltuW{ `0 }Dfg ;sDfgtvW ` DBOPT_LABEL } ;s tvW| `char * } ;s!tv~  *Character strings defining the label assoP@ciated with this variable. }l ;s "ltvW `NULL }Dfg ;s!#DfgtwW ` DBOPT_TIME } ;s"$twW `float } ;s#%twW `Problem time value. }l ;s$&ltwW `0.0 }Dfg ;s%'DfgtxW  ` DBOPT_DTIME } ;s&(txW `double } ;s')txW `Problem time value. }l ;s(*ltxW `0.0 }Dfg ;s)+DfgtyW  ` DBOPT_UNITS } ;s*,tyW `char * } ;s+-ty   +Character string defining the units associP@ated with this variable. }l ;s,.ltyW  `NULL }Dfg4 ;s-/Dfg4tzW `DBOPT_USESPECMF }4 ;s.04tzW  `int }4 ;s/144tz  Boolean (DB_OFF or DB_ON) value (specifying whether or not to weight the &variable by the species mass fraction P@"when using material species data. }l4 ;s02l4tzW `DB_OFF }Dfg)) ;s13Dfg))t{W `DBOPT_ASCII_LABEL })) ;s24))t{W `int })) ;s35)))t{  +Indicate if the variable should be treated +as single character, ascii values. A value P@of 1 indicates yes, 0 no. })l) ;s46)l)t{W `0 }DfgR) ;s57DfgR)t|W `DBOPT_HIDE_FROM_GUI }R) ;s68R)t|W `int }R) ;s79R))t|  'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools }Rl) ;s8:Rl)t|W `0 }Dfg{ ;s9;Dfg{t}W `DBOPT_REGION_PNAMES }{ ;s:<{t}W `char** }{ ;s;={t}  ,A null-pointer terminated array of pointers 'to strings specifying the pathnames of +regions in the mrg tree for the associated 0'mesh where the variable is defined. If )there is no mrg tree associated with the 'mesh, the names specified here will be $assumed to be material names of the *material object associated with the mesh. +The last pointer in the array must be null ,and is used to indicate the end of the list  of names. See #DBOPT_REGION_PNAMES on P Lpage206. }{l ;s<>{lt}W `NULL }Dfg) ;s=?Dfg)t~W! `DBOPT_CONSERVED }) ;s>@)t~W `int }) ;s?A))t~  ,Indicates if the variable represents a phys+ical quantity that must be conserved under P@*various operations such as interpolation. }l) ;s@Bl)t~W `0 }Dfg;U ;sACDfg;UtW% `DBOPT_EXTENSIVE };U ;sBD;UtW  `int };U ;sCE;UUt"  ,Indicates if the variable represents a phys,ical quantity that is extensive (as opposed /to intensive). Note, while it is true that any p)conserved quantity is extensive, the con*verse is not true. By default and histori)cally, all Silo variables are treated as @ intensive. };lU ;sD;lUtW# `0 }T ;|GT}W)` Option Name }[Jܹ ;|FH[Jܹ}$ Value P@ Data Type } !;|GI}W&`Option Meaning }KIk #;|HJKIk}W'`Default Value }T );|IKT}W- ` DBOPT_CYCLE }[Jڹ +;|JL[Jڹ}W( `int } -;|KM}W* `Problem cycle value. }KIk /;|LNKIk}W+ `0 }T 5;|MOT}W1 ` DBOPT_LABEL }[Jڹ 7;|NP[Jڹ}W, `char * } 9;|OQ}.  +Character string defining the label associP@ated with material data. }KIk ;;|PRKIk}W/ `NULL }T) A;|QST)}W5 `DBOPT_MAJORORDER }[Jڹ) C;|RT[Jڹ)}W0 `int }) E;|SU))}2  &Indicator for row-major (0) or column-'major (1) storage for multidimensional P@arrays. }KIk) G;|TVKIk)}W3 `0 }T M;|UWT}W9 ` DBOPT_ORIGIN }[Jڹ O;|VX[Jڹ}W4 `int } Q;|WY}W6 `"Origin for mix_zone. Zero or one. }KIk S;|XZKIk}W7 `0 }T" Y;|Y[T"}W= ` DBOPT_TIME }[Jڹ" [;|Z\[Jڹ"}W8 `float }" ];|[]"}W: `Problem time value. }KIk" _;|\^KIk""}; `0.0 Q>` }T0 f;|]_T0}WB ` DBOPT_DTIME }[J0ڹ h;|^`[J0ڹ}W< `double }0 j;|_a0}W? `Problem time value. }0KIk l;|`b0KIk}W@ `0.0 }TC r;|acTC}WF `DBOPT_MATNAMES }[JCڹ t;|bd[JCڹ}WA `char** }C v;|ceC}C  +Array of strings defining the names of the P@individual materials. }CKIk x;|dfCKIk}WD `NULL }TaU ~;|egTaU}WJ `DBOPT_MATCOLORS }[JaڹU ;|fh[JaڹU}WE `char** }aU ;|giaUU}G  +Array of strings defining the names of col)ors to be associated with each material. )The color names are taken from the X winp%dows color database. If a color name )begins with a# symbol, the remaining 6 'characters are interpreted as the hexa@!decimal RGB value for the color. }aKIkU ;|haKIkU}WH `NULL }Ti) ;kTi) WN `DBOPT_HIDE_FROM_GUI }[Ji) ;jl[Ji) WI `int }i) ;kmi)) K  'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools }iKIk) ;lniKIk) WL `0 }T4 ;moT4 WR `DBOPT_ALLOWMAT0 }[J4 ;np[J4 WM `int }4 ;oq44 O  *If set to non-zero, indicates that a zero -entry in the matlist array is actually not a +valid material number but is instead being P@$used to indicate an unused zone. }KIk4 ;pKIk4 WP `0 }Tg ;sTg WV` Option Name }[Jgܹ ;rt[Jgܹ Q Value P@ Data Type }g ;sug WS`Option Meaning }gKIk ;tvgKIk WT`Default Value }T) ;uwT) WZ `DBOPT_MAJORORDER }[Jڹ) ;vx[Jڹ) WU `int }) ;wy)) W  &Indicator for row-major (0) or column-'major (1) storage for multidimensional P@arrays. }KIk) ;xzKIk) WX `0 }T ;y{T W^ ` DBOPT_ORIGIN }[Jڹ ;z|[Jڹ WY `int } ;{} W[ ` Origin for arrays. Zero or one. }KIk ;|~KIk W\ `0 }T) ;}T)Wb `DBOPT_HIDE_FROM_GUI }[Jڹ) ;~[Jڹ)W] `int }) ;))_  'Specify a non-zero value if you do not 'want this object to appear in menus of P@downstream tools }KIk) ;KIk)W` `0 }T4 ;T4Wf `DBOPT_SPECNAMES }[Jڹ4 ;[Jڹ4Wa `char** }4 ;44c  +Array of strings defining the names of the -individual species. The length of this array 3is the sum of the values in the nmatspec P@argument to this function. }KIk4 ;KIk4Wd `NULL }T"v ;T"vWj `DBOPT_SPECCOLORS }[J"ڹv ;[J"ڹvWe `char** }"v ; "vvg  +Array of strings defining the names of col(ors to be associated with each species. )The color names are taken from the X winp%dows color database. If a color name )begins with a# symbol, the remaining 6 'characters are interpreted as the hexa%decimal RGB value for the color. The +length of this array is the sum of the val/ues in the nmatspec argument to this @ function. }"KIkv ;"KIkvWh `NULL }o ; o#Wn ` }@ ; @#Wi `names }ff~ ; ff~#Wk `types }@ff ; @ff#Wl `defns }o ; o#Wr `0 }@ ;@#Wm ` totaltemp }ff~ ;ff~#Wo `DB_VARTYPE_SCALAR }@ff ;@ff#Wp `nodet+zonetemp }o ;o#Wv `1 }@ ;@#Wq ` }ff~ ;ff~#Ws `DB_VARTYPE_SCALAR }@ff ;@ff#Wt `-- }o ;o#Wz `2 }@ ;@#Wu `vel }ff~ ;ff~#Ww `DB_VARTYPE_VECTOR }@ff ;@ff#Wx `{Vx, Vy, Vz} }o ;o#W~ `3 }@ ;@#Wy `speed }ff~ ;ff~#W{ `DB_VARTYPE_SCALAR }@ff ;@ff#W| `magntidue(vel) }o) &;o)#W `4 }@) (; @)#W} ` dev_stress }ff~) *;!ff~)#W `DB_VARTYPE_TENSOR }@ff) ,; @ff))#  +{{,,}, 2 { 0, ,}, P@9 { 0, 0, }} }4tU<̖ 2;)#4tU<̖*W` Object Type }3 tU;)%'4U;*W ` Quadmesh }3 U;L @;)&(3 U;L*W ` DB_QUADMESH }4U; D;)')4U;*W  `Quadvar }3 U;L F;)(*3 U;L*W ` DB_QUADVAR }4U; J;))+4U;*W  ` UCD mesh }3 U;L L;)*,3 U;L*W  ` DB_UCDMESH }4U; P;)+-4U;*W ` UCD variable }3 U;L R;),.3 U;L*W  ` DB_UCDVAR }4U; V;)-/4U;*W ` CSG mesh }3 U;L X;).03 U;L*W  ` DB_CSGMESH }4U; \;)/14U;*W ` CSG variable }3 U;L ^;)023 U;L*W ` DB_CSGVAR }4U; b;)134U;*W `Multiblock mesh }3 U;L d;)243 U;L*W ` DB_MULTIMESH }4.U; h;)354.U;* W `Multiblock variable }3 .U;L j;)463 .U;L* W ` DB_MULTIVAR }4AU; n;)574AU;*!W `Multiblock material }3 AU;L p;)683 AU;L*!W ` DB_MULTIMAT }4TU; t;)794TU;*"W `Multiblock material species }3 TU;L v;)8:3 TU;L*"W `DB_MULTIMATSPECIES }4gU; z;)9;4gU;*#W ` Material }3 gU;L |;):<3 gU;L*#W ` DB_MATERIAL }4zU; ;);=4zU;*$W `Material species }3 zU;L ;)<>3 zU;L*$W `DB_MATSPECIES }4U; ;)=?4U;*%W  ` Facelist }3 U;L ;)>@3 U;L*%W ` DB_FACELIST }4 U; ;)?A4 U;*&W" ` Zonelist }3  U;L ;)@B3  U;L*&W ` DB_ZONELIST }4³U; ;)AC4³U;*'W$ `Polyhedral-Zonelist }3 ³U;L ;)B3 ³U;L*'W! `DB_PHZONELIST }4^ ;,E4^-(W& ` CSG-Zonelist }3 ^L ;,DF3 ^L-(W# `DB_CSGZONELIST }4q ;,EG4q-)W( ` Edgelist }3 qL ;,FH3 qL-)W% ` DB_EDGELIST }4 ;,GI4-*W* `Curve }3 L ;,HJ3 L-*W' ` DB_CURVE }4 ;,IK4-+W, ` Pointmesh }3 L ;,JL3 L-+W) ` DB_POINTMESH }4 ;,KM4-,W. ` Pointvar }3 L ;,LN3 L-,W+ ` DB_POINTVAR }4 ;,MO4--W0 `Defvars }3 L ;,NP3 L--W- ` DB_DEFVARS }4 ;,OQ4-.W2 `Compound array }3 L ;,PR3 L-.W/ ` DB_ARRAY }4 ;,QS4-/W4 ` Directory }3 L ;,RT3 L-/W1 `DB_DIR }4 ;,SU4-06  Other variable (one written out P@using DBWrite.) }3 L ;,TV3 L-0W3 ` DB_VARIABLE }4 ;,UW4-1W8 ` User-defined }3 L ;,V3 L-1W5 ` DB_USERDEF }gtU `UCD }=3U;_ff ; \^=3U;_ff!'4W; ` DB_UCDMESH }gU;v ; ]_gU;v!'5W@ ` Pointmesh }=3U;_ff ; ^`=3U;_ff!'5W= ` DB_POINTMESH }gU;v ; _agU;v!'6WB `Quad (Collinear) }=3U;_ff ; `b=3U;_ff!'6W? ` DB_QUAD_RECT }gU;v ; acgU;v!'7WD `Quad (Non-Collinear) }=3U;_ff ; bd=3U;_ff!'7WA ` DB_QUAD_CURV }gU;v ; cegU;v!'8WF `CSG }=3U;_ff ; d=3U;_ff!'8WC ` DB_CSGMESH } ;wi x'9GIeHeadings Table } ;w x'9GGe } ;w x'9GHe }l ;wfjlx':GLeHeading Level } ;wikx':GEeParagraph Format } ;wjlx':GJe Comments }l ;wkmlx';GOe5 } ;wlnx';GK&UTeBody } ;wmox';GMe }l ;wnplx'<GRe2 } ;woq x'<GN'eFigure } ;wprx'<GPe }l ;wqslx'=GUe1 } ";wrtx'=GQ(UTeFunc-Arglist-Hdr } $;wsux'=GSe }l );wtvlx'>GXe6 } +;wuw x'>GT)eTableFootnote } -;wvxx'>GVe }l 2;wwylx'?G[e7 } 4;wxzx'?GW*UTeFunc-Title-Head } 6;wyx'?GYe } ;;z!~ }-@G^eCharacter Macros } =;z }-@G\e } ?;z }-@G]e }H B;z{H}-AGae Character } D;z~}-AGZe Replace With } F;z}-AG_e Comments }H K;zH}-BGde } M;z}-BG`e¢ } O;z}-BGbe }H T;zH}-CGge } V;z}-CGce© } X;z}-CGee }H ];zH}-DGje } _;z }-DGfe® } a;z }-DGhe }H f;z H}-EGme } h;z }-EGie° } j;z }-EGke }H o;z H}-FGpe } q;z }-FGle-- } s;z}-FGne }H x;zH}-GGse } z;z}-GGoe- } |;z}-GGqe }H ;zH}-HGve } ;z}-HGre... } ;z}-HGte } ;z* },IGzeGeneral Macros } ;z },IGwe } ;z },IGxe } ;z },IGye }g ;zg},JG~e Macro Name }g ;zg},JGue Replace With }g ;zg},JG{eHead } ;z},JG|e Comments }g ;zg},KGe }g ;z g},KG}e }g ;z!g},KGe } ;z {},KGe } ;zR% }+LGeCross-Reference Macros } ;z }+LGe } ;z }+LGe } ;z"&}+MGe Macro Name } ;z%'}+MGe Replace With } ;z&(}+MGe Comments } ;z')}+NG e See Also } ;z(*}+NGeSee <$paratext> } ;z)}+NG e } ;z^/ }*OGeSystem Macros } ;z }*OG e } ;z }*OG e } ;z }*OGe }g ;z+0g}*PGe Macro Name }g ;z/1g}*PG e Replace With }g ;z02g}*PGeHead }g ;z13g}*PGe Comments }g ;z24g}*QGe StartOfDoc }g ;z35g}*QGe }g ;z46g}*Qg% <$default��Etitle> }g ;z57g}*QGe }g ;z68g}*RGe EndOfDoc }g ;z79g}*RGe }g ;z8:g}*RGe }g ;z9;g}*RGe }g ;z:<g}*SGeStartOfSubDoc }g ;z;=g}*SGe }g ;z<>g}*Sg% <$default��Etitle> }g ;z=?g}*SGe }g ;z>@g}*TG#e EndOfSubDoc }g ;z?Ag}*TGe }g ;z@Bg}*TG e }g ;zACg}*TG!e }g ;zBDg}*UG'eStartOfFirstSubDoc }g ;zCEg}*UG"e }g ;zDFg}*Ug$% <$default��Etitle> }g ;zEGg}*UG%e }g ;zFHg}*VG+eEndOfFirstSubDoc }g ;zGIg}*VG&e }g ;zHJg}*VG(e }g ;zIKg}*VG)e }g !;zJLg}*WG/eStartOfLastSubDoc }g #;zKMg}*WG*e }g %;zLNg}*Wg,% <$default��Etitle> }g ';zMOg}*WG-e }g -;zNPg}*XG3eEndOfLastSubDoc }g /;zOQg}*XG.e }g 1;zPRg}*XG0e }g 3;zQ"g}*XG1e } 9;zV })YG6eHTML Options Table } ;;z })YG4e } =;z })YG5e } @;zSW})ZG9eControl } B;zVX})ZG2eValue }H D;zWYH})ZG7e Comments } I;zXZ})[G<e Image Format } K;zY[})[G8e0001IMAGGIF GIF }H M;zZ\H})[G:e } R;z[]})\G?e!Copy Files Imported by Reference } T;z\^})\G;eN }H V;z]+H})\G=e } [;zd {(]GDeHTML Mapping Table } ];z {(]G@e } _;z {(]GAe } a;z {(]GBe } c;z {(]GCe }. f;z_e.{(^GIeFrameMaker Source Item }~ h;zdg~{(^G>e HTML Item }6 j;z6{(^GEe }6. l;zeh6.{(^gF%Include EAuto# }. n;zgj.{(^GGe Comments } u;z{(_GNe }H w;zhkH{(_GHeElement }6 y;zjn6{(_gJ%New Web EPage? }6 {;z6{(_GKe } };z{(_GLe } ;zko{(`GSeP:Body }H ;znpH{(`GMeH* }6 ;zoq6{(`GOeN }6 ;zpr6{(`GPeN } ;zqs{(`GQe } ;zrt{(aGXe P:CellBody }H ;zsuH{(aGReP }6 ;ztv6{(aGTeN }6 ;zuw6{(aGUeN } ;zvx{(aGVe } ;zwy{(bG]eP:CellHeading }H ;zxzH{(bGWeP }6 ;zy{6{(bGYeN }6 ;zz|6{(bGZeN } ;z{}{(bG[e } ;z|~{(cGbe P:Figure }H ;z}H{(cG\eH* }6 ;z~6{(cG^eN }6 ;z6{(cG_eN } ;z{(cG`e } ;z{(dGgeP:footer left }H ;zH{(dGaeP }6 ;z6{(dGceN }6 ;z6{(dGdeN } ;z{(dGee } ;z{(eGleP:footer right }H ;z H{(eGfeP }6 ;z 6{(eGheN }6 ;z 6{(eGieN } ;z {(eGje }, ;z ,{(fGqeP:Func-Arglist }H, ;z H,,{(fkeP re Parent = UL Ase Depth = 1 }6, ;z 6,{(fGmeN }6, ;z6,{(fGneN }, ;z,{(fGoe } ;z{(gGxeP:Func-Arglist-Hdr }H ;zH{(gGpeH* }6 ;z6{(gGteN }6 ;z6{(gGueN } ;z{(gGve }, ;z,{(hG}eP:Func-Arglist-Head }H, ;zH,,{(hweLI ~e Parent = UL Ae Depth = 1 }6, ;z6,{(hGyeN }6, ;z6,{(hGzeN }, ;z,{(hG{e } ;z{(iGe P:Func-Body }H ;zH{(iG|eP }6 ;z6{(iGeN }6 ;z6{(iGeN } ;z {(iGe } ;z!{(jG eP:Func-Body-Type }H ;z "H{(jGePRE }6 ";z!#6{(jGeN }6 $;z"$6{(jGeN } &;z#%{(jGe } -;z$&{(kGeP:Func-Desc-Hdr }H /;z%'H{(kGeH3 }6 1;z&(6{(kG eN }6 3;z')6{(kG eN } 5;z(*{(kG e } <;z)+{(lGeP:Func-Note-Hdr }H >;z*,H{(lG eH3 }6 @;z+-6{(lGeN }6 B;z,.6{(lGeN } D;z-/{(lGe } K;z.0{(mGeP:Func-Ret-Hdr }H M;z/1H{(mGeH3 }6 O;z026{(mGeN }6 Q;z136{(mGeN } S;z24{(mGe } Z;z35{(nGeP:Func-Syn-Hdr }H \;z46H{(nGeH3 }6 ^;z576{(nGeN }6 `;z686{(nGeN } b;z79{(nGe } i;z8:{(oG"e P:Func-Title }H k;z9;H{(oGeP }6 m;z:<6{(oGeN }6 o;z;=6{(oGeN } q;z<>{(oG e } x;z=?{(pG'eP:Func-Title-Head }H z;z>@H{(pG!eH* }6 |;z?A6{(pG#eY }6 ~;z@B6{(pG$eN } ;zAC{(pG%e } ;zBD{(qG,eP:header left }H ;zCEH{(qG&eP }6 ;zDF6{(qG(eN }6 ;zEG6{(qG)eN } ;zFH{(qG*e } ;zGI{(rG1eP:header right }H ;zHJH{(rG+eP }6 ;zIK6{(rG-eN }6 ;zJL6{(rG.eN } ;zKM{(rG/e } ;zLN{(sG6eP:Mapping Table Cell }H ;zMOH{(sG0eP }6 ;zNP6{(sG2eN }6 ;zOQ6{(sG3eN } ;zPR{(sG4e } ;zQS{(tG;eP:Mapping Table Title }H ;zRTH{(tG5eP }6 ;zSU6{(tG7eN }6 ;zTV6{(tG8eN } ;zUW{(tG9e } ;zVX{(uG@eP:TableFootnote }H ;zWYH{(uG:eH* }6 ;zXZ6{(uG<eN }6 ;zY[6{(uG=eN } ;zZ\{(uG>e } ;z[]{(vGEeP:TopForWebmaker }H ;z\^H{(vG?eP }6 ;z]_6{(vGAeN }6 ;z^`6{(vGBeN } ;z_a{(vGCe } ;z`b{(wGJeC:Bold }H ;zacH{(wGDeEM }6 ;zbd6{(wGFeN }6 ;zce6{(wGGeN } ;zdf{(wGHe } ;zeg{(xGOe C:Changed }H ;zfhH{(xGIeEM }6 ;zgi6{(xGKeN }6 ;zhj6{(xGLeN } ;zik{(xGMe } ;zjl{(yGTe C:Emphasis }H ;zkmH{(yGNeEM }6 ;zln6{(yGPeN }6 ;zmo6{(yGQeN } ;znp{(yGRe } ;zoq{(zGYeC:Figure Helv }H ;zprH{(zGSeEM }6 ;zqs6{(zGUeN }6 ;zrt6{(zGVeN } ;zsu{(zGWe } ;ztv{({G^eC:Not Changed }H ;zuwH{({GXeEM }6 !;zvx6{({GZeN }6 #;zwy6{({G[eN } %;zxz{({G\e } ,;zy{{(|GceC:Superscript }H .;zz|H{(|G]eEM }6 0;z{}6{(|G_eN }6 2;z|~6{(|G`eN } 4;z}{(|Gae } ;;z~{(}Ghe C:Typeface }H =;zH{(}GbeEM }6 ?;z6{(}GdeN }6 A;z6{(}GeeN } C;z{(}Gfe } J;z{(~gm%X:Appendix A Heading & EPage }H L;zH{(~Gge See Also }6 N;z6{(~GieN }6 P;z6{(~GjeN } R;z {(~Gke } Y;z {(GreX:Heading & Page }H [;z H{(Gle See Also }6 ];z 6{(GneN }6 _;z 6{(GoeN } a;z {(Gpe } h;z {(GweX:Page }H j;zH{(Gqe See Also }6 l;z6{(GseN }6 n;z6{(GteN } p;z{(Gue } w;z{(G|eX:See Heading & Page }H y;zH{(Gve See Also }6 {;z6{(GxeN }6 };z6{(GyeN } ;z{(Gze } ;z{(GeX:Table & Page }H ;zH{(G{e See Also }6 ;z6{(G}eN }6 ;z6{(G~eN } ;z{(Ge }^U&~ ;,^U&~-TW ` Mask bit }܀U&) ;,܀U&)-TW `Meaning }^1U&~ ;, ^1U&~-TW `DBAll }܀1U&) ;,!܀1U&)-T  KAll data values are read. This value is identical to specifying all of the P@Dother mask bits ored together, setting all of the bit values to 1. }^OU&~ ;, "^OU&~-TW `DBNone }܀OU&) ;,!#܀OU&)-TW `ENo data values are read. This value sets all of the bit values to 0. }^bU&~ ;,"$^bU&~-TW  `DBCalc }܀bU&) ;,#%܀bU&)-T  KIf data is calculable, calculate it. Otherwise, return NULL for that inforP@mation. }^€U&~ ;,$&^€U&~-TW  ` DBMatMatnos }܀€U&) ;,%'܀€U&)-T  HThe lists of material numbers in material objects are read by the DBGetP@Material call. }^žU&~ ;,&(^žU&~-TW  `DBMatMatnames }܀žU&) ;,'܀žU&)-T   GThe arrays of material names in material objects are read by the DBGetP@Material call. }^[~ ;/*^[~0T W ` DBMatMatlist }܀[) ;/)+܀[)0T    FThe lists of the correspondence between zones and material numbers in P@5material objects are read by the DBGetMaterial call. }^y~ ;/*,^y~0T W ` DBMatMixList }܀y) ;/+-܀y)0T   HThe lists of mixed material information in material objects are read by P@the DBGetMaterial call. }^~ ;/,.^~0T W `DBCurveArrays }܀) ;/-/܀)0T W `;The data values of curves are read by the DBGetCurve call. }^~ ;/.0^~0T W ` DBPMCoords }܀) ;//1܀)0T   DThe coordinate values of pointmeshes are read by the DBGetPointmesh P@call. }^~ ;/02^~0T W ` DBPVData }܀) ;/13܀)0T W `AThe data values of pointvars are read by the DBGetPointvar call. }^~ ;/24^~0TW ` DBQMCoords }܀) ;/35܀)0T  >The coordinate values of quadmeshes are read by the DBGetQuadP@ mesh call. }^~ ;/46^~0TW ` DBQVData }܀) ;/57܀)0TW `?The data values of quadvars are read by the DBGetQuadvar call. }^ ~ ;/68^ ~0TW ` DBUMCoords }܀ ) ;/79܀ )0T  AThe coordinate values of UCD meshes are read by the DBGetUcdmesh P@call. }^*~ ;/8:^*~0TW ` DBUMFacelist }܀*) ;/9;܀*)0TW `?The facelists of UCD meshes are read by the DBGetUcdmesh call. }^=~ ;/:<^=~0TW! ` DBUMZonelist }܀=) ;/;=܀=)0TW `?The zonelists of UCD meshes are read by the DBGetUcdmesh call. }^P~ ;/<>^P~0TW# ` DBUVData }܀P) ;/=?܀P)0TW  `CThe data values of UCD variables are read by the DBGetUcdvar call. }^c~ ;/>@^c~0TW% `DBFacelistInfo }܀c) ;/?A܀c)0T"  GThe nodelists and shape information in facelists are read by the DBGetP@Facelist call. }^~ ;/@B^~0TW' `DBZonelistInfo }܀) ;/AC܀)0T$  FThe nodelist and shape information in zonelists are read by the DBGetP@Zonelist call. }^~ ;/BD^~0TW) `DBUMGlobNodeNo }܀) ;/CE܀)0T&  ?The global node numbers of UCD meshes are read by the DBGetUcdP@ mesh call }^~ ;/DF^~0TW+ `DBZonelistGlobZoneNo }܀) ;/EG܀)0T(  ?The global zone numbers of UCD meshes are read by the DBGetUcdP@ mesh call }^~ ;/FH^~0TW- `DBMatMatcolors }܀) ;/GI܀)0T*  FThe material colors of material objects are read by the DBGetMaterial P@and DBGetMultimat calls }^~ ;/HJ^~0TW/ `DBMMADJNodelists }܀) ;/IK܀)0TW, `@The multimesh adjacency nodelist is read in DBGetMultimeshadj() }^ ~ ;/JL^ ~0TW1 `DBMMADJZonelists }܀ ) !;/KM܀ )0TW. `AThe multimesh adjacency zonelists is read in DBGetMultimeshadj() }^~ %;/LN^~0TW3 `DBCSGMBoundaryInfo }܀) ';/MO܀)0TW0 `3The boundary list is read by the DBGetCsgmesh call }^2~ +;/NP^2~0TW5 `DBCSGMZonelist }܀2) -;/OQ܀2)0TW2 `.The zonelist is read by the DBGetCsgmesh call }^E~ 1;/PR^E~0TW7 `DBCSGMBoundaryNames }܀E) 3;/QS܀E)0TW4 `5The boundary names are read by the DBGetCsgmesh call }^X~ 7;/RT^X~0TW9 ` DBCSGVData }܀X) 9;/SU܀X)0TW6 `BThe data values of CSG variables are read by the DBGetCsgvar call }^k~ =;/TV^k~0TW; `DBCSGZonelistZoneNames }܀k) ?;/UW܀k)0TW8 `5The zone names are read by the DBGetCSGZonelist call }^~~ C;/VX^~~0T W= `DBCSGZonelistRegNames }܀~) E;/W܀~)0T W: `7The region names are read by the DBGetCSGZonelist call }Z, I;ZZ, !W?`Region Naming Convention }, K;Y[,  !W<`Meaning }ZC4 O;Z\ZC4 "WA ` materials }C 4 Q;[]C 44 ">  CTop-level region below which material decomposition information is Gdefined. There can be multiple material decompositions, if so desired. :Each such decomposition would be rooted at a region named P@:material_ underneath the materials region node. }Zw4 U;\^Zw4 #WC ` groupings }w 4 W;]_w 44 #@  ATop-level region below which multi-block grouping information is Cdefined. There can be multiple groupings, if so desired. Each such =grouping would be rooted at a region named grouping_ P@(underneath the groupings region node. }Z [;^`Z $WE ` amr-levels }  ];_a  $B  LTop-level region below which Adaptive Mesh Refinement level groupP@ings are defined. }Z) a;`bZ) %WG `amr-refinements } ) c;ac )) %D  @Top-level region below which Adaptive Mesh Refinment refinement Dinformation is defined. This where the information indicating which P@3blocks are refinements of other blocks is defined. }Z g;bdZ &WI ` neighbors }  i;c  &F  BTop-level region below which multi-block adjacency information is P@ defined. }H m;:fH;.'WK`fmt } o;:eg ;.'WH`Interpretation }Hv s;:fhHv;.(WM `$|slide_%s|(n%2)?master:slave: } v u;:gi vv;.(J  HThe delimiter character is |. The format substring is slide_%s. The Eexpression substring for the argument to the first (and only in this Gcase) conversion specifier (%s) is (n%2)?master:slave: When this pEexpression is evaluated for a given region, the regions natural numBber will be inserted for n. The modulo operation with 2 will be Iapplied. If that result is non-zero, the ?:: expression will evaluate to Gmaster. Otherwise, it will evaluate to slave. Note the terminating Fcolon for the ?:: operator. This naming scheme might be useful for an Farray of regions representing, alternately, master and slave sides of @slide surfaces. }H4k y;:hjH4k;.)WO `Hblock_%02dx%02dHn/16Hn%16 }4 k {;:ik4 kk;.)L  8The delimiter character is H. The format substring is @block_%02dx%02d. The expression substring for the argument to Ethe first conversion specifier (%02d) is n/256. The expression subpAstring for the argument to the second conversion specifier (also E%02d) is n%16. When this expression is evaluated, the regions natHural number will be inserted for n and the div and mod operators will Dbe evaluated. This naming scheme might be useful for a region array Dof 256 regions to be named as a 2D array of regions with names like @block_09x11 }H? ;:jlH?;.*WQ `@domain_%03d@n } ? ;:km ??;.*N  8The delimiter character is @. The format substring is @domain_%03d. The expression substring for the argument to the Gone and only conversion specifier is n. When this expression is evalpHuated, the regions natural number is inserted for n. This results in @,names like domain_000, domain_001, etc. }H) ;:lnH);.+WS `@domain_%03d@n+1 } ) ;:mo ));.+P  EThis is just like the case above except that region names begin with Cdomain_001 instead of domain_000. This might be useful to deal P@0with different indexing origins; Fortran vs. C. }H ;:npH;.,WU `|foo_%03dx%03d|#P[n]|#U[n%4] } ;:o ;.,R  8The delimiter character is |. The format substring is Dfoo_%03dx%03d. The expression substring for the first argument is Fan external array reference #P[n] where the index into the array is pFjust the natural number, n. Because P is the first externally referJenced array in the format string, it must be the first array to appear in =the varargs list of additional args to DBMakeNamescheme. The Aexpression substring for the second argument is another external Earray reference, #U[n%4] where the index is an expression n%4 on Dthe natural number n. Because U is the second externally referenced Garray, it must appear second in the varargs list of additional args to @DBMakeNamescheme. }Zr ;CrZrD6-WW`Variable Naming Convention }r ;Cqsr D6-WT`Meaning }Z` ;CrtZ`D6.WY ` amr-ratios } ` ;Csu ``D6.V  HAn integer variable of 3 components defining the refinement ratios (rx, Gry, rz) for an AMR mesh. Typically, the refinement ratios can be speciFfied on a level-by-level basis. In this case, this variable should be pEdefined for nregns=<# of levels> on the level regions underneath the Gamr-levels grouping. However, if refinment ratios need to be defined Fon an individual patch basis instead, this variable should be defined Bon the individual patch regions under the amr-refinements group@ings. }Z) ;CtvZ)D6/W[ `ijk-orientations } ) ;Cuw ))D6/X  EAn integer variable of 3 components defined on the individual blocks Iof a multi-block mesh defining the orientations of the individual blocks P@1in a large, ijk indexing space (Ares convention) }Z? ;CvxZ?D60W] `-extents } ? ;Cw ??D60Z  EA double precision variable defining the block-by-block extents of a Fmulti-block variable. If ==coords, then it defines the spatial @extents of the mesh itself. Note, this convention obsoletes the p:DBOPT_XXX_EXTENTS options on DBPutMultivar/DBPutMultimesh @calls. }DfgUR ;UzDfgURV?1Wa `DBOPT_REGION_PNAMES }UR ;Uy{URV?1W\ `char** }UR ;Uz|URV?1^  ,A null-pointer terminated array of pointers 'to strings specifying the pathnames of +regions in the mrg tree for the associated p'mesh where the variable is defined. If )there is no mrg tree associated with the 'mesh, the names specified here will be $assumed to be material names of the *material object associated with the mesh. +The last pointer in the array must be null ,and is used to indicate the end of the list @ of names. }URl ;U{URlV?1W_ `NULL }KFH ; ~KFH 2Wo+` }F ; }F 2`, Brass (2 P@values) }fjF̛ ; fjF̛ 2Wb+e }36F ; ~36F 2c,` T-1 Steel Qp` (5 values starting at offset 3) }F̛ ; F̛ 2Wd+e }F̛ ; F̛ 2We+e }#F̛ ; #F̛ 2Wf+e }@ffF̛ ; @ffF̛ 2Wg+e }]32F3/ ; ]32F3/ 2h,` O-1 Steel Qq` (6 values starting at offset 8) }feF̛ ; feF̛ 2 Wi+e }31F̛ ; 31F̛ 2 Wj+e }F̛ ; F̛ 2 Wk+e }F̛ ; F̛ 2 Wl+e }F̛ ; F̛ 2 Wm+e }KbH ;  KbH 3W+` species_mf }b̐ ; b̐ 3Wn,`.65 }fjb̐ ; fjb̐ 3Wr,`.35 }36b̐ ; 36b̐ 3Ws,`.763 }b̐ ; b̐ 3Wt,`.007 }b̐ ; b̐ 3Wu,`.18 }#b̐ ; #b̐ 3Wv,`.04 }@ffb̐ ; @ffb̐ 3Ww,`.001 }]32b33 ; ]32b33 3Wx,`.99962 }feb̐ ; feb̐ 3 Wy,`.009 }31b̐ ; 31b̐ 3 Wz,`.014 }b̐ ; b̐ 3 W{,`.005 }b̐ ; b̐ 3 W|,`.005 }b̐ ; b̐ 3 W},`.005 }KsH ; KsH 4W +`element }s̐ ; s̐ 4W~,`Cu }fjs̐ ; fjs̐ 4W,`Zn }36s̐ ; 36s̐ 4W,`Fe }s̐ ; s̐ 4W,`C }s̐ ; s̐ 4W,`W }#s̐ ;  #s̐ 4W,`Cr }@ffs̐ ; !@ffs̐ 4W,`V }]32s33 ; "]32s33 4W,`Fe }fes̐ ; !#fes̐ 4 W,`C }31s̐ ; "$31s̐ 4 W,`Mn }s̐ !; #%s̐ 4 W ,`Cr }s̐ #; $&s̐ 4 W ,`Ni }s̐ %; %'s̐ 4 W ,`W }K„H 5; &(K„H 5W+`1-origin index }„̐ 7; ')„̐ 5W ,`1 }fj„̐ 9; (*fj„̐ 5W,`2 }36„̐ ;; )+36„̐ 5W,`3 }„̐ =; *,„̐ 5W,`4 }„̐ ?; +-„̐ 5W,`5 }#„̐ A; ,.#„̐ 5W,`6 }@ff„̐ C; -/@ff„̐ 5W,`7 }]32„33 E; .0]32„33 5W,`8 }fe„̐ G; /1fe„̐ 5 W,`9 }31„̐ I; 0231„̐ 5 W,`10 }„̐ K; 13„̐ 5 W,`11 }„̐ M; 24„̐ 5 W,`12 }„̐ O; 3„̐ 5 W,`13 }X33^Z _;_6X33^Z`|6  Option Name, P@ DBOPT_H5_... }33^ a;_5733^`|6W`Scope }^$ c;_68^$`|6W`Type }^ e;_79^`|6W`Option Meaning }^l g;_8:^l`|6W`Default Value }X33}Z\ n;_9;X33}Z\`|7W%%`VFD }33}\ p;_:<33}\`|7W%`VFD }}$\ r;_;=}$\`|7W!%`int }}\ t;_<>}\\`|7"% 3Specifies which Virtual File Driver (VFD) the HDF5 @library should use. & 4Set the integer value for this option to one of the @following values. '` DB_H5VFD_... (AUP (DEFAULT, SEC2, STDIO, CORE, LOG, SPLIT, C@!DIRECT, FAMILY, MPIO, MPIP, SILO )N 0Many of the reamining options described in this PV@/table apply to only certain of the above VFDs. }}l\ v;_=?}l\`|7W#%`DB_H5VFD_DEFAULT }X33ZY ;_>@X33ZY`|8W.%`RAW_FILE_OPTS }33Y ;_?A33Y`|8W$%`VFD }$Y ;_@B$Y`|8W*%`int }Y ;_ACYY`|8+% 1Applies only for the split VFD. Specifies a file 5options set to use for the raw data file. May be any value returned from a call to ,.DBRegisterFileOptionsSet()% or can be any %@6one of the following pre-defined file options sets... /`DB_FILE_OPTS_H5_DEFAULT_... 0cUM (DEFAULT, SEC2, STDIO, CORE, LOG, SPLIT, H@"DIRECT, FAMILY, MPIO, MPIP, SILO. QtS`0See HDF5 reference manual for H5Pset_fapl_split }lY ;_BDlY`|8,% DB_FILE_OPTS_H5_DEFAULTP@ _DEFAULT }X334Z[ ;_CEX334Z[`|9W5%`RAW_EXTENSION }334짙[ ;_DF334짙[`|9W-%`VFD }4$[ ;_EG4$[`|9W1%`char* }4[ ;_FH4[[`|92% 3Applies only for the split VFD. Specifies the file 2extension/naming convention for raw data file. If 2the string contains a %s printf-like conversion 06specifier, that will be replaced with the name of the 0file passed in the DBCreate/DBOpen call. If the 2string does NOT contain a %s printf-like conver6sion specifier, it is treated as an extension which .is appended to the name of the file passed in @DBCreate/DBopen call. QvU`0See HDF5 reference manual for H5Pset_fapl_split }4l[ ;_GI4l[`|9W3%`-raw }X33Z ;_HJX33Z`|:W:%`META_FILE_OPTS }33⧙ ;_IK33⧙`|:W4%`VFD }$ ;_JL$`|:W6%`int } ;_KM`|:u% 'Same as DBOPT_H5_RAW_FILE_OPTS, above, .except for meta data file. See HDF5 reference P@manual for H5Pset_fapl_split. }l ;_LNl`|:8% DB_FILE_OPTS_H5_DEFAULTP@_CORE }X33Z ;_MOX33Z`|;W?%`META_EXTENSION }33ߧ ;_NP33ߧ`|;W9%`VFD }$ ;_OQ$`|;W;%` } ;_PR`|;7% &Same as DBOPT_H5_RAW_EXTENSION above, .except for meta data file. See HDF5 reference P@manual for H5Pset_fapl_split. }l ;_QSl`|;W=%` }X33Z ;_RTX33Z`|<WD%`CORE_ALLOC_INC }33ܧ ;_SU33ܧ`|<W>%`VFD }$ ;_TV$`|<W@%`int } ;_UW`|<A% 0Applies only for core VFD. Specifies allocation )increment. See HDF5 reference manual for P@H5Pset_fapl_core. }l ;_VXl`|<WB%`(1<<20) }X33Z ;_WYX33Z`|=WI- `CORE_NO_BACK_STORE }33٧ ;_XZ33٧`|=WC%`VFD }$ ;_Y[$`|=WE%`int } ;_Z\`|=F% 0Applies only for core VFD. Specifies whether or 3not to store the file on close. See HDF5 reference P@manual for H5Pset_fapl_core. }l ;_[]l`|=WG%`FALSE }X33Z ;_\^X33Z`|>WN%` LOG_NAME }33֧ ;_]_33֧`|>WH%`VFD }$ ;_^`$`|>WJ%`char * } ;__a`|>K% 2Applies only for the log VFD. This is primarily a 1debugging feature. Specifies name of the file to ,which loggin data shall be stored. See HDF5 P@%refrence manual for H5Pset_fapl_log. }l ;_`bl`|>WL%`silo_hdf5_log.out }X33=Z ;_acX33=Z`|?WS%` LOG_BUF_SIZE }33=ҧ ;_bd33=ҧ`|?WM%`VFD }=$ ;_ce=$`|?WO%`int }= ;_df=`|?<% 2Applies only for the log VFD. This is primarily a 3debugging feature. Specifies size of the buffer to 2which byte-for-byte HDF5 data type information is p&written. See HDF5 refrence manual for @H5Pset_fapl_log. }=l ;_eg=l`|?WQ%`0 }X33nZ ;_fhX33nZ`|@WX%`META_BLOCK_SIZE }33nͧ ;_gi33nͧ`|@WR%`GLOBAL }n$ ;_hjn$`|@WT%`int }n ;_ikn`|@U% 2Applies the the HDF5 library as a whole (e.g. glo5bally). Specifies the size of memory allocations the 2library should use when allocating meta data. See pHDF5 reference manual for @H5Pset_meta_block_size. }nl ;_jnl`|@WV%`0 }X33gZX ;bmX33gZXc|AW]%`SMALL_RAW_SIZE }33gX ;bln33gXc|AWW%`GLOBAL }g$X ;bmog$Xc|AWY%`int }gX ;bnpgXXc|AZ% 1Applies to the HDF5 library as a whole (e.g. glo1bally). Specifies a threshold below which alloca5tions for raw data are aggregated into larger blocks p1within HDF5. This can improve I/O performance by 1reducing number of small I/O requests. Note, how1ever, that with a block-oriented VFD such as the 4Silo specific VFD, this parameter must be set to be /consistent with block size of the VFD. See the HDF5 reference manual for @H5Pset_small_data_block_size. }glX ;boqglXc|AW[%`0 }X33Z ;bprX33Zc|BWb%` ALIGN_MIN }33 ;bqs33c|BW\%`GLOBAL }$ ;brt$c|BW^%`int } ;bsuc|B_% 4Applies to the HDF5 library as a whole. Specified a ,size threshold above which all datasets are 1aligned in the file using the value specified in p)ALIGN_VAL. See HDF5 reference manual for @H5Pset_alignment. }l !;btvlc|BW`%`0 }X33Z (;buwX33Zc|CWg%` ALIGN_VAL }33񧙙 *;bvx33񧙙c|CWa%`GLOBAL }$ ,;bwy$c|CWc%`int } .;bxzc|Cd% 0The alignment to be applied to datasets of size +greater than ALIGN_MIN. See HDF5 reference P@manual for H5Pset_alignment. }l 0;by{lc|CWe%`0 }X33Z 7;bz|X33Zc|DWl%`DIRECT_MEM_ALIGN }33 9;b{}33c|DWf%`VFD }$ ;;b|~$c|DWh%`int } =;b}c|Di% 4Applies only to the direct VFD. Specifies the align/ment option. See the HDF5 reference manual for P@H5Pset_fapl_direct. }l ?;b~lc|DWj%`0 }X332Z F;bX332Zc|EWq%`DIRECT_BLOCK_SIZE }332맙 H;b332맙c|EWk%`VFD }2$ J;b2$c|EWm%`int }2 L;b2c|EP% 4Applies only to the direct VFD. Specifies the block 1size the underlying filesystem is using. See the P@.HDF5 reference manual for H5Pset_fapl_direct. }2l N;b2lc|EWo%` }X33SZ U;bX33SZc|FWv%`DIRECT_BUF_SIZE }33S觙 W;b33S觙c|FWp%` }S$ Y;bS$c|FWr%` }S [;b Sc|Fn% 1Applies only to the direct VFD. Specifies a copy /buffer size. See the HDF5 reference manual for P@H5Pset_fapl_direct. }Sl ];b Slc|FWt%` }X33tZ d;b X33tZc|GW{%` MPIO_COMM }33t姙 f;b 33t姙c|GWu%` }t$ h;b t$c|GWw%` }t j;b tc|GWx%` }tl l;b tlc|GWy%` }X33Z s;bX33Zc|HW%` MPIO_INFO }33䧙 u;b33䧙c|HWz%` }$ w;b$c|HW|%` } y;bc|HW}%` }l {;blc|HW~%` }X33Z ;bX33Zc|IW%`MPIP_NO_GPFS_HINTS }33㧙 ;b33㧙c|IW%` }$ ;b$c|IW%` } ;bc|IW%` }l ;blc|IW%` }X33Z ;bX33Zc|JW %`SIEVE_BUF_SIZE }33⧙ ;b33⧙c|JW%`GLOBAL }$ ;b$c|JW%`int } ;bc|J% 3HDF5 sieve buf size. Only relevant if using either *compression and/or checksumming. See HDF5 P@,reference manual for H5Pset_sieve_buf_size. }l ;blc|JW%` }X33Z ;bX33Zc|KW%` CACHE_NELMTS }33ߧ ;b 33ߧc|KW %`GLOBAL }$ ;b!$c|KW %`int } ;b "c|K % /HDF5 raw data chunk cache parameters. Only rel/evant if using either compression and/or check+summing. See the HDF5 reference manual for P@H5Pset_cache. }l ;b!#lc|KW %` }X33Z ;b"$X33Zc|LW%` CACHE_NBYTES }33ۧ ;b#%33ۧc|LW%` }$ ;b$&$c|LW%` } ;b%'c|LJ% /HDF5 raw data chunk cache parameters. Only rel/evant if using either compression and/or check+summing. See the HDF5 reference manual for P@H5Pset_cache. }l ;b&(lc|LW%` }X33Z ;b')X33Zc|MW%` CACHE_POLICY }33ק ;b(*33קc|MW%` }$ ;b)+$c|MW%` } ;b*,c|M% /HDF5 raw data chunk cache parameters. Only rel/evant if using either compression and/or check+summing. See the HDF5 reference manual for P@H5Pset_cache. }l ;b+-lc|MW%` }X33CZ ;b,.X33CZc|NW%` FAM_SIZE }33Cӧ ;b-/33Cӧc|NW%`VFD }C$ ;b.0C$c|NW%`int }C ;b/1Cc|N% /Size option for family VFD. See the HDF5 refer/ence manual for H5Pset_fapl_family. The family 2VFD is useful for handling files that would otherp3wise be larger than 2Gigabytes on filesystems that @0support a maximum file size of 2Gigabytes. }Cl ;b02Clc|NW%` }X33tZ ;b13X33tZc|OW#%`FAM_FILE_OPTS }33tΧ ;b2433tΧc|OW%`VFD }t$ ;b35t$c|OW%`int }t ;b46tc|Os% 1VFD options for each file in family VFD. See the .HDF5 reference manual for H5Pset_fapl_family. 1The family VFD is useful for handling files that p2would otherwise be larger than 2Gigabytes on file,systems that support a maximum file size of @ 2Gigabytes. }tl ;b57tlc|OW!%` }X33­Z ;b68X33­Zc|PW(%`USER_DRIVER_ID }33­ȧ ;b7933­ȧc|PW"%`GLOBAL }­$ ;b8:­$c|PW$%`int }­ ;b9;­c|P%% /Specify some user-defined VFD. Permtis applica/tion to specify any user-defined VFD. See HDF5 P@$reference manual for H5Pset_driver. }­l ;b:­lc|PW&%` }X33gZ ;e=X33gZf|QW-%`USER_DRIVER_INFO }33g ;e<>33gf|QW'%`GLOBAL }g$ ;e=?g$f|QW)%` }g ;e>@gf|Q % 1Specify user-defined VFD information struct. Per2mtis application to specify any user-defined VFD. P@-See HDF5 reference manual for H5Pset_driver. }gl ;e?Aglf|QW+%` }X33Z ;e@BX33Zf|RW2%`SILO_BLOCK_SIZE }33 ;eAC33f|RW,%`VFD }$ ;eBD$f|RW.%`int } ;eCEf|R/% 4Block size option for Silo VFD. All I/O requests to/P@-from disk will occur in blocks of this size. }l ;eDFlf|RW0%`(1<<16) }X33Z ;eEGX33Zf|SW7%`SILO_BLOCK_COUNT }33 ;eFH33f|SW1%`VFD }$ ;eGI$f|SW3%`int } ;eHJf|S4% 2Block count option for Silo VFD. This is the maxi0mum number of blocks the Silo VFD will maintain P@in memory at any one time. }l ;eIKlf|SW5%`32 }X33Z ';eJLX33Zf|TW<%`SILO_LOG_STATS }33 );eKM33f|TW6%`VFD }$ +;eLN$f|TW8%`int } -;eMOf|T9% 3Flag to indicate if Silo VFD should gather I/O per5formance statistics. This is primarily for debugging P@(and performance tuning of the Silo VFD. }l /;eNPlf|TW:%`0 }X33Z 6;eOQX33Zf|UWA%`SILO_USE_DIRECT }33 8;ePR33f|UW;%`VFD }$ :;eQS$f|UW=%`int } <;eRTf|U>% 3Flag to indicate if Silo VFD should attempt to use 1direct I/O. Tells the Silo VFD to use direct I/O 6where it can. Note, if it cannot, this option will be P@siliently ignored. }l >;eSlf|UW?%`0 H$ E;H$ VWI lRunning H/F 1  H$ XH$ UUl H H;H XW@ l!2-!#"Silo Users Guide H VZH WWl HHˆ K;HHˆZGBUTe HHˆX[HHˆYYlH}=Z\HHH6}=[H6H66 H$ P;H$ ^WC l#Running H/F 1$ H$ `H$ ]] l H S;H `WD l!Silo Users Guide2-%#& H ^bH __ l HHˆ V;HHˆbGEUTe HHˆ`cHHˆaa lH}=bdHHH6}=cH6H66d fv Hw}Ke )egHw}KeHRHR.Footnote Ho e )efhHo eHzHz. Single LineH egjiiFootnote }=h  H Dfe)ehkH DfeHH. Double LineHejnlm Double Line}7km}7klHekpoo Single Line}7nHZenq TableFootnote EE;RbeeprEE;RbeEPwEPw. TableFootnoteH!?*4 eqvsu Check mark }>rtut 0 }?rsuus0 0O@/@*<@rt/@st H˯^ *5@erH˯^ HH Check markdyy $$ n;w$$%fzyGFUTBm' $$w$$xxldݾ|~ $$ r;z$$+_|SVY\+/37;?CGKO"%({~ GGUTBm()*+,- $$z~$$~{{ l $$ u;z$$ &S~SVY\+/37;?CGKO"%({~ $$z|$$|}} ld HHˆ y;HHˆ  H  (Error Handling and Other Global Library "@ Behavior KUTIUT `The functions described in this section of the Silo Application Programming Interface (API) manVURhual, are those that effect behavior of the library, globally, for any file(s) that are or will be open. EbThese include such things as error handling, requiring Silo to do extra work to warn of and avoid E@coverwrites, to compute and warn of checksum errors and to compress data before writing it to disk. LUL`$The functions described here are... Mh0DBErrfuncname8 Nh1DBErrno9 OUHh2DBErrString10 P!h3DBShowErrors11 Q!h4DBErrlvl12 Rh5DBErrfunc13 Sh6DBVariableNameValid14 T1h7DBVersion15 Uh8DBVersionGE16 Vh9DBFileVersion17 Wh:DBFileVersionGE18 Xh;DBSetAllowOverwrites19 Yh<DBGetAllowOverwrites20 Zh=DBForceSingle21 [h>DBSetDataReadMask22 \h?DBGetDataReadMask24 ]h@DBSetEnableChecksums25 ^hADBGetEnableChecksums26 _hBDBSetCompression27 `hCDBGetCompression30 ahDDBSetFriendlyHDF5Names31 bhEDBGetFriendlyHDF5Names32 ch\DBSetDeprecateWarnings33 gh]DBGetDeprecateWarnings34 Ahh^DB_VERSION_GE35 HHˆHHˆ  ld HHˆ };HHˆU>  e UTUThFGDBErrfuncname fUT&Get name of error-generating function g2UT` h B`char *DBErrfuncname (void) i2\` j s`None k2[` l[ kDBErrfuncname returns a char* containing the name of the function that generated the last error. @It cannot fail. m2Ū` nZ aThe DBErrfuncname function is used to find the name of the function that generated the last Silo 骖berror. It is implemented as a macro. The returned pointer points into Silo private space and must P㪆@not be modified or freed. HHˆHHˆ ld~ HHˆ ;HHˆU@  o UTUTh HDBErrno pUTGet internal error number. q2UT` r B`int DBErrno (void) s2\` t s`integer function dberrno() u2[` v[`MDBErrno returns the internal error number of the last error. It cannot fail. w2` x bThe DBErrno function is used to find the number of the last Silo error message. It is implemented ܪ^as a macro. The error numbers are not guaranteed to remain the same between different release P@versions of Silo. HHˆHHˆ   ld^ HHˆ ;HHˆUB  y UTUThIDBErrString zUTGet error message. {2UT` | B`char *DBErrString (void) }2\` ~ s`None 2[` [`YDBErrString returns a char* containing the last error message. It cannot fail. 2`  dThe DBErrString function is used to find the last Silo error message. It is implemented as a macro. Pܪ@WThe returned pointer points into Silo private space and must not be modified or freed. HHˆHHˆ lda HHˆ ; HHˆU7 +  UTUThJKDBShowErrors UTSet the error reporting mode. 2UT`  B`3void DBShowErrors (int level, void (*func)(char*)) 2\`  s`%integer function dbshowerrors(level)  2[`  [`level  DError reporting level. One of DB_ALL, DB_ABORT, DB_TOP, or DB_NONE.  `func  0Function pointer to an error-handling function. 2ʪ` ~`5DBShowErrors returns nothing (void). It cannot fail. 2OUH` OUH _The DBShowErrors function sets the level of error reporting done by Silo when it encounters an @eerror. The following table describes the action taken upon error for different values of level. 1 `Ordinarily, error reporting from the HDF5 library is disabled. However, DBShowErrors also influP>BHBences the behavior of error reporting from the HDF5 library.L HHˆ HHˆ   ldd HHˆ ;HHˆUH UTUT` DBErrlvl UT2Return current error level setting of the library 2UT`  B`int DBErrlvl(void) 2\`  s`int dberrlvl() 2[` S[`9Returns current error level of the library. Cannot fail. HHˆHHˆ  ldg HHˆ ;HHˆUF   UTUT` DBErrfunc UT6Get current error function set by 3DBShowErrors() 2UT`  B`%void (*func)(char*) DBErrfunc(void); 2\`  s`None !2[` "[ cReturns the function pointer of the current error function set in the most recent previous call to R@DBShowErrors(). HHˆHHˆ  ldj HHˆ ;HHˆJU6# UTUThMNDBVariableNameValid $UT@check if character string represents a valid Silo variable name %2UT` & B`'int DBValidVariableName(const char *s) '2\` ( s`None )2[` * [`s +The character string to check ,2` -Z`]non-zero if the given character string represents a valid Silo variable name; zero otherwise .2UL` /UL aThis is a convenience function for Silo applications to check whether a given variable name they  @8wish to use will be considered 2valid by Silo. 0 dThe only valid characters that can appear in a Silo variable name are all alphanumerics (e.g. [a-zA-,aZ0-9]) and the underscore (e.g. _). If a candidate variable name contains any characters other xfthan these, that variable name is considered invalid. If that variable name is ever used in a call to Pzp@Ncreate an object in a Silo file, the call will fail with error E_INVALIDNAME. HHˆHHˆ ldm HHˆ ;HHˆUB   14UTUThODBVersion 25UT%Get the version of the Silo library. 32UT` 4 B`char *DBVersion (void) 52\` 6 s`None 72[` 8[`5DBVersion returns the version as a character string. 92` : bThe DBVersion function determines what version of the Silo library is being used and returns that Pܪ@version in string form. HHˆHHˆ  ldp HHˆ ;HHˆ2U: ; UTUT` DBVersionGE <UTAGreater than or equal comparison for version of the Silo library =2UT` > B`+int DBVersionGE(int Maj, int Min, int Pat) ?2\` @ s`None A2[` B [`Maj CInteger, major version number D `Min EInteger, minor version number F Ū`Pat GŪInteger, patch version number H2ܪ` I dOne (1) if the librarys version number is greater than or equal to the version number specified by @-Maj, Min, Pat arguments, zero (0) otherwise. J2` SK`EThis function is the run-time equivalent of the DB_VERSION_GE macro. HHˆHHˆ lds HHˆ ;HHˆ\U2 L UTUT`DBFileVersion MUT>Version of the Silo library used to create the specified file N2UT` O B`$char *DBFileVersion(DBfile *dbfile) P2\` Q s`None R2[` S [`dbfile TDatabase file handle U2` VZ dA character string representation of the version number of the Silo library that was used to create ܪ@the Silo file. W2` X bNote, that this is distinct from (e.g. can be the same or different from) the version of the Silo alibrary returned by the DBVersion() function. The former returns the version of the Silo library ͪzbthat was used when DBCreate() was called on the specified file. The latter returns the version of ggthe Silo library the executable is currently linked with. Most often, these two will be the same. But, pgbnot always. Also note that although is possible that a single Silo file may have contents created gwithin it from multiple versions of the Silo library, a call to this function will return ONLY the ver@Zsion that was in use when DBCreate() was called; that is when the file was first created. HHˆHHˆ"  ldv"" HHˆ ; HHˆ$U<" Y UTUT`DBFileVersionGE ZUTCGreater than or equal comparison for version of the Silo library a UT@given file was created with [2UT` \ P`?int DBFileVersionGE(DBfile *dbfile, int Maj, int Min, int Pat) ]2j` ^ `None _2` ` `dbfile aDatabase file handle b `Maj cInteger major version number d Ӫ`Min eӪInteger minor version number f 媘`Pat g媘Integer patch version number h2` i6 hOne (1) if the version number of the library used to create the specified file is greater than or equal P @Pto the version number specified by Maj, Min, Pat arguments, zero (0) otherwise. HHˆ HHˆ%!! ldy%% HHˆ ;#HHˆU&% j UTUThPDBSetAllowOverwrites kUT:Set flag permitting or denying overwrites of Silo objects l2UT` m B`$int DBSetAllowOverwrites(int allow) n2\` o s`$integer function dbsetovrwrt(allow) p2[` q [`allow rTInteger value indicating if Silo library should allow overwrites to Silo objects. A Pvalue of 0 indicates that overwrites should NOT be allowed, a value of non-zero F@-indicates that overwrites SHOULD be allowed. s2Ҫ` tƪ`8Returns the previous value set for allowing overwrites. u2U4` vU4 bBy default, the Silo library does not do any work to determine if the caller is somehow using the $glibrary in such a way that Silo objects are being overwritten. In fact, if a given file is open by muljtiple processes, it is impossible for Silo to detect this condition and either prevent it or even issue a t@$message indicating it is happening. wS ^When DBSetAllowOverwrites is passed a non-zero value, all succeeding calls that modify a Silo `hfile first check to make sure the object(s) being written do not already exist in the file. If they do, ī@Athe operation will abort and an error message will be generated. x cSome Silo calls such as DBWriteSlice permit repeated calls to write different portions of the same bobject. Overwrites are always allowed for these types of objects regardless of the setting passed B|@here. y~ dThe default setting is to allow overwrites and not do any costly work to detect when they are occurP|@ing. HHˆ#HHˆ"($$  ld|(( HHˆ ;&HHˆUD  (z UTUThQDBGetAllowOverwrites {UT2Get current setting for the allow overwrites flag |2UT` } B`int DBGetAllowOverwrites(void) ~2\`  s`integer function dbgetovrwrt() 2[` [`:Returns the current setting for the allow overwrites flag 2` C`GSee DBSetAllowOverwrites for a description of the meaning of this flag HHˆ&HHˆ%+'' ld %++ HHˆ ;)HHˆU+ UTUThRDBForceSingle UTNConvert all 6datatyped data read in read methods to type 3float 2UT`  B`int DBForceSingle(int force) 2\`  s`None  2[`  [`force  PFlag to indicate if forcing should be set or not. Pass non-zero to force single @4precision. Pass zero to NOT force single precision.  2Ū` D`Zero on success. -1 on failure 2s` s`TThis setting is global to the whole library and effects subsequent read operations.  vIf force is non-zero, then any 2datatype'd arrays are converted on read from whatever their native ,rdatatype is to float. A 2datatype'd array is an array that is part of some Silo object struct containing ۪~ma datatype member which indicates the type of data in the array. For example, a DBucdvar ʪp{struct has a datatype member to indicate the type of data in its var and mixvar arrays. Such kmarrays will be converted on read if force here is non-zero. However, a DBmaterial object 0khstruct is ALWAYS integer data. There is no datatype member for such an object and so its data @Ywill NEVER be converted to float on read regardless of the force single status set here.  `This function's original intention may have been to convert ONLY double precision arrays to sinZgle precision. However, the PDB driver was apparently never designed that way and the PDB ` gdriver's behavior sort of established the defacto meaning of DBForceSingle. Consequently, as  aof Silo version 4.8 the HDF5 driver obeys these same semantics as well. Though, in fact the HDF5 fdriver was written to support the original intention of DBForceSingle and it worked in this @N(buggy) fashion for many years before real problems with it were encountered. تx \This method is typically used by downstream, post-processing tools to reduce memory requirev\ments. By default, Silo DOES NOT have single precision forcing enabled. When it is enabled, 2gonly the methods that result in reading of floating point data from a Silo file are effected. Finally, PK\@*note that write methods are NOT effected. HHˆ %)HHˆ(.**  ld %.. HHˆ ;,HHˆ’U&,(.)+-/13579;=?ACEGIKMOQSUW UTUThSDBSetDataReadMask UTSet the data read mask 2UT`  B`#long DBSetDataReadMask (long mask) 2\`  s`None 2[`  [`mask QThe mask to use to read data. This is a bit vector of values that define whether @>each data portion of the various Silo objects should be read. 2Ū` D`7DBSetDataReadMask returns the previous data read mask. 2s`  s ]The DBSetDataReadMask allows the user to set the mask thats used to read various large data @ components within Silo objects. !, cMost Silo objects have a metadata portion and a data portion. The data portion is that part of the 9@[object that consists of pointers to long arrays of data. These arrays are problem sized. "N cSetting the data read mask allows for a DBGet* call to only return part of the data. With the data [_read mask set to DBAll, the DBGet* functions return all of the information. With the data read bmask set to DBNone, they return only the metadata. The mask is a bit vector specifying which part @"of the data model should be read. # eA special case is found in the DBCalc flag. Sometimes data is not stored in the file, but is instead dcalculated from other information. The DBCalc flag controls this behavior. If it is turned off, the G@Ddata is not calculated. If it is turned on, the data is calculated. $~ fThe values that DBSetDataReadMask takes as the mask parameter are binary-ored combinations Pƪ|BH1of the values shown in the following table:T HHˆ %,HHˆ+1-- ld %11 HHˆ ;/HHˆ)X1)+-/13579;=?ACEGIKMOQSUW%UT\UT`[Use the DBGetDataReadMask call to retrieve the current data read mask without setting one. &qUR dBy default, the data read mask is set to DBAll. The data read mask effects only the read portion of P~UP@the Silo API. HHˆ %/HHˆ.400  ld %44 HHˆ ;2HHˆU@  4' UTUThUDBGetDataReadMask (UTGet the current data read mask )2UT` * B`long DBGetDataReadMask (void) +2\` , s`None -2[` .[`6DBGetDataReadMask returns the current data read mask. /2` 0 \The DBGetDataReadMask allows the user to find out what mask is currently being used to read ܪ@the data within Silo objects. Q1`GSee the documentation on DBSetDataReadMask for a complete description. HHˆ %"2HHˆ1733 ld %I77 HHˆ ;5HHˆLU$$72 UTUThVDBSetEnableChecksums 3UT%Set flag controlling checksum checks 42UT` 5 B`%int DBSetEnableChecksums(int enable) 62\` 7 s`%integer function dbsetcksums(enable) 82[` 9 [`enable :QInteger value controlling checksum behavior of the Silo library. See description @for a complete explanation. ;2Ū` <D`4Returns the previous setting for checksum behavior. =2s` >s ^If checksums are enabled, whenever Silo writes data, it will compute checksums on the data in ememory and store these checksums with the data in the file. Note that during a write call, in no cirmhcumstance will Silo re-read data written to confirm it was written correctly (e.g. it gets back what it ~`wrote). In other words, Silo will not detect checksum errors on writes. It will detect checksum UX`errors only on reads, only if checksums were actually computed and stored with the data when it UX@8was written and only when checksums are indeed enabled. ?` \If checksums are enabled, whenever Silo reads data AND the data it is reading has checksums m`stored in the file, it will compute and compare checksums. If the checksums computed on read do ߪinot agree with the checksums stored in the file, the Silo call resulting in the data read will fail. The  xerror, E_CHECKSUM, will be set (See WDBShowErrors on page2-11X). Note that because checkܪ]sums are not checked on write, there is no foolproof way to detect whether a read has failed @ebecause the data was corrupted when it was originally written or because the read itself has failed. @| WChecksum checks are supported ONLY on the HDF5 driver. The PDB driver DOES NOT support êzichecksum checks. Calling DBCreate() with checksumming enabled will fail if DB_PDB is :bspecified as the driver. If checksumming is enabled while any PDB file is opened, the request for 9z@]checksumming will be silently ignored by all attempts to write or read data from a PDB file. At iIn the HDF5 driver, only the data that winds up in HDF5 2datasets in the file is checksumed. In rcmost applications, this represents more than 99% of all the data the client writes. However, it is ׯZimportant to note that when checksuming is enabled, NOT ALL data written by Silo is checkW㰶@3sumed. Various bits of metadata is not checksumed. B.l dFinally, empirical results show that the resulting files are 1-5% larger and take about 1-5% longer ;jcto write when checksumming is enabled. This is due primarily to the fact that a different class of P~:@_HDF5 dataset, called a 2chunked dataset, is required in order to enable checksumming. HHˆ %L5HHˆ4:66  ld %h:: HHˆ ;8HHˆUB  :C UTUThYDBGetEnableChecksums DUT3Get current state of flag controlling checksumming E2UT` F B`int DBGetEnableChecksums(void) G2\` H s`integer function dbgetcksums() I2[` J[`^Zero if checksumming is not currently enabled. Non-zero if checksumming is currently enabled. K2` L _This function returns the current setting for the library-global flag controlling checksumming Pܪ@ behavior. HHˆ %k8HHˆ7=99 ld %}== HHˆ ;;HHˆ{U ''=M UTUThZDBSetCompression NUT;Set compression options for succeeding writes of Silo data O2UT`n P B`$int DBSetCompression(char *options) Q2\` R s`2integer function dbsetcompress(options, loptions) S2[` T [`options UKCharacter string containing the name of the compression method and various Gparameters. The method set using the keyword, METHOD=. Any remaining F@Lparameters are dependent on the compression method and are described below. V2Ҫ` Wƪ`9Returns the previous value set for compression behavior. X2U4` YU4` which controls how the Silo library responds Cj^when it encounters an error during compression and/or is unable to compress the data. The two w@Roptions are FALLBACK or FAIL. Including ERRMODE=FALLBACK in the compression ' `options string tells Silo that whenever compression fails, it should simply fallback to writing ۱<\uncompressed data. Including ERRMODE=FAIL in the compression options string tells Silo to P,@Afail the write and return E_COMPRESSION error for the operation. HHˆ %;HHˆ:@<<  ld %@@ HHˆ ;>HHˆ{..@_UTUT `The second is the minimum compression ratio to be achieved by compressing the data. It is speciURUfied as MINRATIO=. For example, including MINRATIO=2.5 in the compression joptions string tells Silo that all data must be compressed by at least a factor of 2.5:1. If it is unable 0cthe compress by at least this amount, Silo will either fallback or fail the write depending on the @ERRMODE setting. `PUJ`JThe remaining paragraphs describe compression algorithm specific options. a7u gGZIP compression: is enabled using METHOD=GZIP in the 2options string. GZIP recognizes rUF_the LEVEL=, compression parameter. The compression level is an integer from 0 to 9, where Ia0 results in the fastest compression performance but at the expense of lower compression ratios. UT_Likewise, a level of 9 results in the slowest compression performance but with possibly better 0UTjcompression ratios. If the LEVEL= keyword does not appear in the 2options string or specibfies invalid values, the default is level one (1). The GZIP method of compression is applied indegpendently to float and integer data for all types of meshes and variables. It is also guaranteed to be @available to all Silo clients. b7U8 hSZIP compression: is enabled using METHOD=SZIP in the 2options string. The SZIP compresU6bsion algorithm is designed specifically for scientific data. SZIP recognizes the BLOCK=, and oZMASK={EC|NN} parameters. The BLOCK=, takes an integer value from 0 to 32, which is a 2iblocking size and must be even and not greater than 32, with typical values being 8, 10, 16, or 32. UHcThis parameter affects the compression ratio; the more values vary, the smaller this number should 0UH[be to achieve better performance. The MASK=EC, selects entropy coding method, this is best ]suited for data that has been processed, working best for small numbers.MASK=NN, selects the _nearest neighbor coding method, preprocesses the data then applies the EC method as above. The Sdefault parameters for SZIP compression are METHOD=SZIP BLOCK=4 MASK=NN. If in a \subsequent write operation (DBPutXXX, DBWrite, etc.) the value for BLOCK is bigger than the etotal number of elements in a dataset, the write will fail. This means that you should take care not _to have compression turned on when doing small writes. To achieve optimal performance for SZIP `compression, it is recommended that one select a value for BLOCK that is an integral divisor of athe datasets fastest-changing dimension. Note that the SZIP compression encoder is licensed for ]non-commercial use only while the decoder (e.g. decompression) is unlimited. Read more about ]SZIP licensing at http://www.hdfgroup.org/doc_resource/SZIP/index.html. Note that SZIP decomfpression is NOT guaranteed to be available to all Silo clients; only those for which the Silo library Xwas configured with SZIP compression capability enabled. Like GZIP, SZIP compression is @Vapplied to float and integer data independently of the types of meshes and variables. c7U gFPZIP compression: is enabled using METHOD=FPZIP in the 2options string. The FPZIP comU`pression algorithm was developed by Peter Lindstrom at LLNL and is also designed for high speed YR[compression of regular arrays of data. FPZIP recognizes the LOSS=0|1|2|3 parameter which &ispecifies the amount of loss that is tolerable in the result in terms of quarters of full precision. For Էbexample, LOSS=3 indicates that a loss of 3/4 of full precision is tolerable (resulting in 8 bit 䢮dfloats or 16 bit doubles). Note that for data being written from a double precision writer for down 0䢮fstream visualization purposes, visualization tools such as VisIt often enforce single precision data. dTherefore, specifying a loss of 32 bits here for double precision data could have a dramatic impact _on compression and I/O performance with negligible effect in down stream visualization. If the cLOSS parameter is not specified, the default is LOSS=0. It is possible to build the Silo library @Mwithout FPZIP compression support. So, it is not always guaranteed to exist. d7kT hHZIP compression: is enabled using METHOD=HZIP in the 2options string. The HZIP compresRxT[sion algorithm was developed by Peter Lindstrom at LLNL and is designed for high-speed comHHˆ %>HHˆ=C?? ld %CC HHˆ ;AHHˆz  CdUTUTapression of unstructured meshes of quad or hex elements and node-centered variables (it does not UR`yet support zone-centered variables) defined on a mesh. Before applying this compression method bto any given Silo mesh or variable object, the Silo library checks for compatibility with the con0estraints of the compression algorithm. If the mesh or variable object is compatible, the object will bbe written with compression enabled. Otherwise, compression will be silently ignored. It is possicble to build the Silo library without HZIP compression support. So, it is not always guaranteed to @exist. rjUF ]Note that FPZIP and HZIP compression features are NOT available in a BSD Licensed release of PwUD@XSilo library. They are available only in a Legacy licensed release of the Silo library. HHˆ %AHHˆ@FBB  ld %FF HHˆ ;DHHˆU>Fe UTUTh[DBGetCompression fUT#Get current compression parameters g2UT` h B`char *DBGetCompression() i2\` j s`2integer function dbgetcompress(options, loptions) k2[` l [`None m n2` oZ \NULL if no compress parameters have been set. A string of compression parameters if compresܪ@sion has been set p2` Sq`+Obtain the current compression parameters. HHˆ %DHHˆCIEE ld %II HHˆ ;GHHˆ?U""Ir UTUTh\DBSetFriendlyHDF5Names sUT;Set flag to indicate Silo should create friendly names for UT@HDF5 datasets t2UT` u P`'int DBSetFriendlyHDF5Names(int enable) v2j` w `%integer function dbsethdfnms(enable) x2` y `enable zOFlag to indicate if friendly names should be turned on (non-zero value) or off @(zero). {2Ӫ` |`Old setting for this flag }2ު` ~ު eIn versions of Silo prior to 4.8, the default behavior of the HDF5 driver was that it used HDF5 in a %Zway that made the data somewhat UNnatural to the user when viewed with HDF5 tools such as ch5ls, h5dump and hdfview as well as other tools that interact with the data via the HDF5 API. This v@Mwas not a problem for Silo but was a problem for these and other HDF5 tools. T ]DBSetFriendlyHDF5Names() was introduced as a way to address this issue so that the data a?in an HDF5 file written by Silo looked more natural. Calling ٪^\DBSetFriendlyHDF5Names() with a value of one (1) will result in additional HDF5 meta2ndata being added to the file (in the form of 2soft links) with better names (and locations) for Silo 4iobjects datasets. Note that creation of links does increase the file size somewhat. This affect is less 04ksignificant for larger files. It is also likely to have some negative but as yet to be investigated effect @on I/O performance ~ bCalling DBSetFriendlyHDF5Names() with a value of two (2) will foregoe the creation of Ī|esoft links and instead write the actual dataset data where those links would have been created (e.g. K~gthe current working directory of the Silo file). This may be important for files consisting of a large u~hnumber of objects as it eliminates the creation of the /.silo group and subsequent very large 6@-number of dataset objects in that one group. t hIn versions of Silo 4.8 and newer, the default behavior of the Silo library is to use mode 2, that is  r@Uto create the datasets themselves there the links would have otherwise been created. 2$p` SN``OIf it was not obvious from the name, this method effects only the HDF5 driver. HHˆ %GHHˆFLHH  ld %LL HHˆ ;JHHˆU@  L UTUTh]DBGetFriendlyHDF5Names UT)Get setting for friendly HDF5 names flag 2UT`  B`int DBGetFriendlyHDF5Names() 2\`  s`integer function dbgethdfnms()  2[`  [`  None  2`  Z`6The current setting for the HDF5 friendly names flag. 2UL` SUL`See DBSetFriendlyHDF5Names(). HHˆ %JHHˆIOKK ld %OO HHˆ ;MHHˆU(O UTUTh!^_DBSetDeprecateWarnings UT3Set maximum number of deprecate warnings Silo will UT@1issue for any one function, option or convention 2UT`  P`*int DBSetDeprecateWarnings(int max_count) 2j`  `)integer function dbsetdepwarn(max_count) 2`  ` max_count HMaximum number of warnings Silo will issue for any single API function. 2ƪ` ʪ`-The old maximum number of deprecate warnings 2ܪ` ܪ _Some of Silos API functions have been deprecated. Some options on Silo objects have also been kdeprecated. Finally, some 2conventional arrays, such as _visit_defvars, have been depreZ@cated. : cWhen an attempt to use a deprecated function, option or convention is detected, Silo will issue an G]error message on stderr and proceed normally. The default number of error messages any given fdeprecated function will report on stderr is 3. Note, this is on a per-deprecated function, option or ΪYconvention basis. If this number is decreased to zero by calling DBSetDeprecateWarnaings(0), no warnings will be generated on stderr. If it is increased, more warnings will be @issued.  kNote that deprecated functions, options and conventions are 2guaranteed to operate correctly only lin the 2first release in which they became deprecated. In subsequent releases, they may be removed Ìpentirely. So, it is wise to run your application for a while 2without turning off deprecation warnings P @;to get some inventory of functions that require attention. HHˆ %MHHˆLRNN  ld & RR! HHˆ ;PHHˆU@R UTUTh`DBGetDeprecateWarnings  UT3Get maximum number of deprecated function warnings UT@Silo will issue !2UT` " P`int DBGetDeprecateWarnings() #2j` $ ` integer function dbgetdepwarn() %2` & ` 'None (2ƪ` )ʪ`1The current maximum number of deprecate warnings *2ܪ` S+ܪ` HHˆ & PHHˆOUQQ ld &UU" HHˆ ;SHHˆyU.U, UTUThaDB_VERSION_GE -UT/Compile time macro to test silo version number .2UT` / B`DB_VERSION_GE(Maj,Min,Pat) 02` 1 `Maj 2pMajor version number digit 3 `Min 4DMinor version number digit. A zero is equivalent to no minor digit. 5 `Pat 6DPatch version number digit. A zero is equivalent to no patch digit. 72` 8z cTrue (non-zero) if the combination of major, minor and patch digits results in a version number of Ϫethe Silo library that is greater (e.g. newer) than or equal to the version of the Silo library being U@+compiled against. False (zero), otherwise. 92` : cThis macro is useful for writing version-specific code that interacts with the Silo library. Note, ghowever, that this macro appeared in version 4.6.1 of the Silo library and is not available in earlier  @versions of the library. ;9 _As an example of use, the function DBSetDeprecateWarnings() was introduced in Silo version 4.6 F@Kand not available in earlier versions. You could use this macro like so... <[ #if DB_VERSION_GE(4,6,0) h DBSetDeprecateWarnings(0); P3p@#endif HHˆ &SHHˆRXTT  ld &/XX# HHˆ ;VHHˆ‚**X= `Files and File Structure >UTUT,jIf you are looking for information regarding how to use Silo from a parallel application, please bSee M[Multi-Block Objects, Parallelism and Poor-Mans Parallel I/O on page147.c ?UUP lThe Silo API is implemented on a number of different low-level 2drivers. These drivers control the bUNalow-level file format Silo generates. For example, Silo can generate PDB (Portable DataBase) and K@bHDF5 formatted files. The specific choice of low-level file format is made at file creation time. @UJ oIn addition, Silo files can themselves have 2directories. That is, within a single Silo file, one can UHccreate directory hierarchies for storage of various objects. These directory hierarchies are analoOggous to the Unix filesystem. Directories serve to divide the name space of a Silo file so the user can UH@Qorganize content within a Silo file in a way that is natural to the application. AUB gNote that the organization of objects into directories within a Silo file may have direct implications U@cfor how these collections of objects are presented to users by post-processing tools. For example, UF nexcept for directories used to store multi-block objects (dSee Multi-Block Objects, Parallelism and  yPoor-Mans Parallel I/O on page147.e), VisIt will use directories in a Silo file to create 2submenus dwithin its Graphical User Interface (GUI). For example, if VisIt opens a Silo file with two directoeries called foo and bar and there are various meshes and variables in each of these directories, U\]then many of VisIts GUI menus will contain submenus named foo and bar where the objects U\@6found in those directories will be placed in the GUI. B0U2 mSilo also supports the concept of 2grabbing the low-level driver. For example, if Silo is using the =U0`HDF5 driver, an application can obtain the actual HDF5 file id and then use the native HDF5 API Uf@with that file id. C_U,d@The functions described in this section of the interface are... Etl&fgDBRegisterFileOptionsSet38 Fm#hDBUnregisterFileOptionsSet42 Gm'iDBUnregisterAllFileOptionsSets43 H6m%jDBSetUnknownDriverPriorities44 Im%kDBGetUnknownDriverPriorities45 JЫmlDBCreate46 KwUmmDBOpen51 LwUmnDBClose53 MUmoDBGetToc54 N^mpDBSortObjectsByOffset55 O^mqDBMkDir56 PmrDBSetDir57 QmsDBGetDir58 RmtDBCpDir59 SmuDBGrabDriver60 TmvDBUngrabDriver61 imADBGetDriverType62 m BDBGetDriverTypeFromPath63 wD YTm_DBInqFile64 QxEm`_silolibinfo65 HHˆ &2VHHˆU[WW ld &A[[$ HHˆ ;YHHˆ[yha_hdf5libinfo66 QDhb_was_grabbed67 HHˆ &DYHHˆX^ZZ  ld &E^^% HHˆ ;\HHˆHU##^ U UTUThwDBRegisterFileOptionsSet VUT6Register a set of options for advanced control of the UT@low-level I/O driver W2UT` X P`4int DBRegisterFileOptionsSet(const DBoptlist *opts) Y2j` Z `int dbregfopts(int optlist_id) [2` \ `opts ]Fan options list object obtained from a DBMakeOptlist() call ^2ƪ` _ʪ`Z-1 on failure. Otherwise, the integer index of a registered file options set is returned. `2ܪ` aܪ gFile options sets are used in concert with the DB_HDF5_OPTS() macro in DBCreate or aDBOpen calls to provide advanced and fine-tuned control over the behavior of the underlying Z`driver library and may be needed to affect memory usage and I/O performance as well as vary the @Obehavior of the underlying I/O driver away from its default mode of operation. bG,A 2file options set is nothing more than an optlist object (see xOptlists on page2-218y), popuTvlated with file driver related options. A 2registered file options set is such an optlist that has obeen 2registered with the Silo library via a call to this method, DBRegisterFileOptionsSet. (^A maximum of 32 registered file options sets are currently permitted. Use DBUnregisterFi"@QleOptionsSet to free up a slot in the list of registered file options sets. c rBefore a specific file options set may be used as part of a DBCreate or DBOpen call, the file uoptions set must be 2registered with the Silo library. In addition, the associated optlist object @yshould not be freed until 2after the last call to DBCreate or DBOpen in which it is needed. d~ fPresently, the only options the Silo library defines are for the HDF5 driver. The table below defines ̪|nand describes the various options. A key option is the selection of the HDF5 2Virtual File Driver or 2yjLcVFD. See zDBCreate on page2-46{ for a description of the available VFDs. ex \In the table of options below, some options are relevant to only a specific HDF5 VFD. Other vboptions effect the behavior of the HDF5 library as a whole, regardless of which underlying VFD is @T@@used. This difference is notated in the 2scope column. sr aAll of the options described here relate to options documented in the HDF5 librarys file access *pXproperty lists, http://www.hdfgroup.org/HDF5/doc/RM/RM_H5P.html. Therefore, rather than ԟ.cduplicate a lot of the HDF5-specific documentation here, in most cases, we simply refer the reader Pj$j UTUT`DBUnregisterFileOptionsSet kUT)Unregister a registered file options set l2UT` m B`0int DBUnregisterFileOptionsSet(int opts_set_id) n2\` o s` p2[` q [` opts_set_id rOThe identifer (obtained from a previous call to DBRegisterFileOptionsSet()) of @"a file options set to unregister. s2Ū` tD` Zero on success. -1 on failure. u2s` Svs` HHˆ '<hHHˆgmii ld '=mm* HHˆ ;kHHˆU@  m%w UTUT`DBUnregisterAllFileOptionsSets xUT!Unregister all file options sets y2UT` z B`%int DBUnregisterAllFileOptionsSets() {2\` | s` }2[` ~ [`None  2` Z` Zero on success, -1 on failure. 2UL` SUL` HHˆ '@kHHˆjpll  ld 'App+ HHˆ ;nHHˆzU2p& UTUTh"}DBSetUnknownDriverPriorities UT1Set driver priorities for opening files with the 3UT@DB_UNKNOWN driver. 2UT`  P`@static const int *DBSetUnknownDriverPriorities(int *driver_ids) 2j`  `None  2`  ` driver_ids  PA -1 terminated list of driver ids such as DB_HDF5, DB_PDB, RDB_HDF5_CORE, or any driver id constructed with the DB_HDF5_OPTS() @macro.  2ઘ` `The previous 2(` ( jWhen opening files with DB_UNKNOWN driver, Silo iterates over drivers, trying each until it suc2@cessfuly opens a file. G bThis call can be used to affect the order in which driver ids are attempted and can improve behavT@Iior and performance for opening files using DB_UNKNOWN driver. i mIf any of the driver ids specified in driver_ids is constructed using the DB_HDF5_OPTS() Pv@Vmacro, then the associated file options set must be registered with the Silo library. HHˆ 'DnHHˆmsoo ld 'ss, HHˆ ;qHHˆUH  s' UTUT`DBGetUnknownDriverPriorities UT)Return the currently defined ordering of UT@6drivers the 3DB_UNKNOWN driver will attempt. 2UT`  P`5static const int *DBGetUnknownDriverPriorities(void) 2j`  `None 2` S` HHˆ 'qHHˆpvrr  ld 'vv- HHˆ ;tHHˆƒU ++v( UTUTh~DBCreate UTCreate a Silo output file. 2UT`  B 9DBfile *DBCreate (char *pathname, int mode, int target, O@char *fileinfo, int filetype) 2i`  `=integer function dbcreate(pathname, lpathname, mode, target, !`&fileinfo, lfileinfo, filetype, dbid) "{`-returns created database file handle in dbid #2` $ ` pathname %ȪNPath name of file to create. This can be either an absolute or relative path. & ڪ`mode 'ڪ?Creation mode. One of the predefined Silo modes: DB_CLOBBER or 窔@DB_NOCLOBBER. ( `target )IDestination file format. One of the predefined types: DB_LOCAL, DB_SUN3, @(DB_SUN4, DB_SGI, DB_RS6000, or DB_CRAY. * ` fileinfo +OCharacter string containing descriptive information about the files contents. %QThis information is usually printed by applications when this file is opened. If U*@ option, the Silo efglibrary supports both the PDB driver that is built-in to Silo (which is actually an ancient version of FpPACTs PDB referred to internally as PDB Lite) identified with a filetype of DB_PDB and a Pe `second variant of the PDB driver using a PACT installation (specified when Silo was configured) HHˆ 'tHHˆsyuu ld 'yy. HHˆ ;wHHˆƒ..y)4UTUTpwith a filetype of DB_PDBP (Note the trailing P for PDB Proper). PDB Proper is known to UR[give far superior performance than PDB Lite on BG/P and BG/L class systems and so is recom@.mended when using PDB driver on such systems. 5UN bFor the HDF5 library, there are many more available options for fine tuned control of the underlyCULping I/O through the use of HDF5s  Virtual File Drivers (VFDs). For example, HDF5s 2sec2 VFD uses Unix Manual Section 2 I/O routines (e.g. create/open/read/write/close) while the 2UL@stdio VFD uses Standard I/O routines (e.g. fcreate/fopen/fread/fwrite/fclose). 6rUF _Depending on the circumstances, the choice of VFD can have a profound impact on actual I/O perUD[formance. For example, on BlueGene systems the customized Silo VFD (introduced to the Silo @UJ\library in Version 4.8) has demonstrated excellent performance compared to the default HDF5 cVFD; sec2. The remaining paragraphs describe each of the available Virtual File Drivers as well as @'parameters that govern their behavior. 7U< XDB_HDF5: From among the several VFDs that come pre-packaged with the HDF5 library, this U:edriver type uses whatever the HDF5 library defines as the 2default VFD. On non-Windows platUX]forms, this is the Section 2 (see below) VFD. On Windows platforms, it is a Windows specific UTUT UDB_HDF5_DIRECT: On systems that support the O_DIRECT flag in section 2 create/open URgcalls, this VFD will use 2direct I/O. This VFD comes pre-packaged with the HDF5 library. Most asystems (both the system interfaces implementations for section 2 I/O as well as underlying file0 ^systems) do a lot of work to buffer and cache data to improve I/O performance. In some cases, jhowever, this extra work can actually 2get in the way of good performance, particularly when the jI/O operations are 2streaming like and large. Three parameters govern the behavior of the direct hVFD. The 2alignment specifies memory alignment requirement of raw data buffers. That generally dmeans that posix_memalign should be used to allocate any buffers you use to hold raw data qpassed in calls to the Silo library. The 2block size indicates the underlying filesystem block size and lthe 2copy buffer size gives the HDF5 library some additional flexibility in dealing with unaligned _requests. Few systems support the O_DIRECT flag and so this VFD is not often available in prac\tice. However, when it is, using DB_HDF5_DIRECT as the driver type results in Silo using an dalignment of 4 kilobytes (1<<12), an alignment equal to the block size and a copy buffer size equal @to 256 times the blocksize. ?U8 \DB_HDF5_SILO: This is a custom VFD designed specifically to address some of the performance U6\shortcommings of VFDs that come pre-packaged with the HDF5 library. The silo VFD is a very, wavery simple, block-based VFD. It decomposes the file into blocks, keeps some number of blocks in \memory at any one time and issues I/O requests ONLY in whole blocks using section 2 I/O rou0ctines. In addition, it sets up some parameters that control HDF5 librarys allocation of meta data cand raw data such that each block winds up consisting primirily of either raw or meta data but not Zboth. It also disables meta data caching in HDF5 to reduce memory consumption of the HDF5 clibrary to the bare minimum as there is no need for HDF5 to maintain cached metadata if it resides `in blocks kept in memory in the VFD. This is a suitable VFD for most scientific computing applifcations that are dumping either post-processing or restart files as applications that do that tend to fopen the file, write a bunch of stuff from start to finish and close it or read a bunch of stuff from ostart to finish and close it. Two parameters govern the behavior of the silo VFD; the 2block size and mthe 2block count. The block size determines the size of individual blocks. All I/O requests will be _issued in whole blocks. The block count determines the number of blocks the silo VFD is permitYted to keep in memory at any one time. On BG/P class systems, good values are 1 Megabyte a(1<<20) block size and block count of 16 or 32. By default, the silo VFD uses a block size of 16 cKilobytes (1<<14) and a block count also of 16. To specify parameters other than these default val ques, the Silo client will have to create and register an appropriate file options set (see DBRegisterM)FileOptionsSet on page2-38). @U TDB_HDF5_MPIO and DB_HDF5_MPIOP: Although Silo itself DOES NOT support true parallel UfI/O (e.g. multiple processors writing to the same file, concurrently), Silo can take advantage of any VF\performance capabilities which may be available in the MPI-IO implementation used by HDF5s ¬]mpio VFD. Two parameters govern the mpio VFD; the MPI 2communicator and an MPI_Info Pobject. By default, using DB_HDF5_MPIO as the driver type results in Silo using 0WMPI_COMM_SELF and an empty MPI_Info object. Note, because Silo is not designed to work ]within the constraints of HDF5s parallel interface, values for MPI_COMM_SELF (which lead to @Oa file per processor) are likely to result in deadlock and/or corrupted files. A4U cFinally, both PDB and HDF5 support the concept of targeting output files. That is, a Sun IEEE file AUccan be created on the Cray, and vice versa. If creating files on a mainframe or other powerful com2]fputer, it is best to target the file for the machine where the file will be processed. Because of the bnbextra time required to do the floating point conversions, however, one may wish to bypass the tarPt@5geting function by providing DB_LOCAL as the target. HHˆ '}HHˆ|~~  ld '1 HHˆ %;HHˆA,BUTUT uIn Fortran, an integer represent the files 2id is returned. That integer is then used as the database file UR@:id in all functions to read and write data from the file. C UP``Note that regardless of what type of file is created, it can still be read on any machine. SD`VSee notes in the documentation on DBOpen regarding use of the DB_UNKNOWN driver type. HHˆ 'HHˆ ld '2 HHˆ );HHˆpU((-E UTUTh DBOpen FUTOpen an existing Silo file. G2UT` H B`0DBfile *DBOpen (char *name, int type, int mode) I2\` J s`7integer function dbopen(name, lname, type, mode, dbid) K`&returns database file handle in dbid. L2` M `name NFName of the file to open. Can be either an absolute or relative path. O `type PWThe type of file to open. One of the predefined types, typically DB_UNKNOWN, ͪZDB_PDB, or DB_HDF5. However, there are other options as well as subtle but UB@Nimportant issues in using them. So, read description, below for more details. Q 쪔`mode R쪔FThe mode of the file to open. One of the values DB_READ or DB_APPEND. S2` T`U8`BDBOpen returns a DBfile pointer on success and a NULL on failure. U2e` Ve qThe DBOpen function opens an existing Silo file. If the file type passed here is DB_UNKNOWN, UdSilo will attempt to guess at the file type by iterating through the known types attempting to open gthe file with each driver until it succeeds. This iteration does incur a small performance penalty. In /jaddition, use of DB_UNKNOWN can have other undesireable behavior described below. So, if at all ;UTbpossible, it is best to open using a specific type. See DBGetDriverTypeFromPath() for a ;UT@\function that uses cheap heuristics to determine the driver type given a candiate filename. W ^When writing general purpose code to read Silo files and you cannot know for certain ahead of ~@Btime what the correct driver to use is, there are a few options. X| mFirst, you can iterate over the available driver ids, calling DBOpen() using each one until one of ͪzlthem succeds. But, that is exactly what the DB_UNKNOWN driver does so there is no need for a Silo Ubgclient to have to write that code. In addition, if you have a specific preference of order of drivers, w@Nyou can use DBSetUnknownDriverPriorities()to specify that ordering. Yt fUndesireable behavior with DB_UNKNOWN can occur when the specified file can be successfully  raopened using multiple of the available drivers and/or file options sets and it succceds with the 21. mwrong one or one using options the caller neither expected or intended. See DBSetUnknownDriv qerPriorities on page2-44 for a way to specify the order of drivers tried by the DB_UNKNOWN ́Ddriver. ZEj,uIndeed, in order to use a specific VFD (see DBCreate on page2-46) in HDF5, it is necessary to Rh\pass the specific DB_HDF5_XXX argument in this call or to set the unknown driver priorities í^bsuch that whatever specific HDF5 VFD(s) are desired are tried first before falling back to other, P)@perhaps less desirable ones. HHˆ 'HHˆ  ld '3 HHˆ -;HHˆ.[8UTUT cThe mode parameter allows a user to append to an existing Silo file. If a file is DBOpened with a R9UR@[mode8 of DB_APPEND, the file will support write operations as well as read operations. HHˆ 'HHˆ  ld ' 4 HHˆ 1; HHˆU@  /\ UTUTh DBClose ]UTClose a Silo database. ^2UT` _ B`int DBClose (DBfile *dbfile) `2\` a s`integer function dbclose(dbid) b2[` c [`dbfile dDatabase file pointer. e2` fZ`3DBClose returns zero on success and -1 on failure. g2UL` ShUL`-The DBClose function closes a Silo database. HHˆ ' HHˆ  ld '5 HHˆ 5; HHˆcU40i UTUThDBGetToc jUT.Get the table of contents of a Silo database. k2UT` l B`!DBtoc *DBGetToc (DBfile *dbfile) m2\` n s`None o2[` p [`dbfile qDatabase file pointer. r2` sZ`NDBGetToc returns a pointer to a DBtoc structure on success and NULL on error. t2UL` uUL ^The DBGetToc function returns a pointer to a DBtoc structure, which contains the names of the  bvarious Silo object contained in the Silo database. The returned pointer points into Silo private Ԫ|`space and must not be modified or freed. Also, calls to DBSetDir will free the DBtoc structure, `t@:invalidating the pointer returned previously by DBGetToc. v2;` w dFor the details of the data structured returned by this function, see the Silo library header file, P_@1silo.h, also attached to the end of this manual. HHˆ ' HHˆ  ld (6 HHˆ 9;HHˆU*1x UTUT`DBSortObjectsByOffset yUT9Sort list of object names by order of offset in the file z2UT` { B`/int DBSortObjectsByOffset(DBfile *, int nobjs, |O`7 const char *const *const obj_names, int *ordering) }2i` ~ `None 2UH`  UH`DBfile Database file pointer.  `nobjs /Number of object names in obj_names.  Ҫ` ordering ҪRReturned integer array of relative order of occurence in the file of each object. ߪNFor example, if ordering[i]==k, that means the object whose name is >Qobj_names[i] occurs kth when the objects are ordered according to offset at {@which they exist in the file. 2`  e0 on succes; -1 on failure. The only possible reason for failure is if the HDF5 driver is being used 4@Jto read the file and Silo is not compiled with HDF5 version 1.8 or later. 2K`  f iThe intention of this function is to permit applications reading Silo files to order their reads in such oba way that objects are read in the order in which they occur in the file. This can have a postive ]^impact on I/O performance, particularly using a block-oriented VFD such as the Silo VFD as it ƙP^can reduce and/or eliminate unnecessary block pre-emption. The degree to which ordering reads P\@&effects performance is not yet known. HHˆ (HHˆ  ld (7 HHˆ =;HHˆ-U:2 UTUTh DBMkDir  UT'Create a new directory in a Silo file.  2UT`  B`,int DBMkDir (DBfile *dbfile, char *dirname) 2\`  s`:integer function dbmkdir(dbid, dirname, ldirname, status) 2[`  [`dbfile Database file pointer.  `dirname !Name of the directory to create. 2ʪ` ~`3DBMkDir returns zero on success and -1 on failure. 2OUH` OUH bThe DBMkDir function creates a new directory in the Silo file as a child of the current directory d(see DBSetDir). The directory name may be an absolute path name similar to /dir/subdir, Pž@Hor may be a relative path name similar to ../../dir/subdir. HHˆ (HHˆ ld (+8 HHˆ A;HHˆ-U:3 UTUThDBSetDir UT4Set the current directory within the Silo database. 2UT`  B`.int DBSetDir (DBfile *dbfile, char *pathname) 2\`  s`5integer function dbsetdir(dbid, pathname, lpathname) 2[`  [`dbfile !Database file pointer. " ` pathname #RPath name of the directory. This can be either an absolute or relative path name. $2ʪ` %~`4DBSetDir returns zero on success and -1 on failure. &2OUH` 'OUH `The DBSetDir function sets the current directory within the given Silo database. Also, calls to bDBSetDir will free the DBtoc structure, invalidating the pointer returned previously by DBGetToc. Pž@cDBGetToc must be called again in order to obtain a pointer to the new directorys DBtoc structure. HHˆ (.HHˆ  ld (:9 HHˆ E;HHˆ-U:4( UTUThDBGetDir )UT'Get the name of the current directory. *2UT` + B`-int DBGetDir (DBfile *dbfile, char *dirname) ,2\` - s`None .2[` / [`dbfile 0Database file pointer. 1 `dirname 2QReturned current directory name. The caller must allocate space for the returned Cname. The maximum space used is 256 characters, including the NULL j@ terminator. 32䪖` 4`4DBGetDir returns zero on success and -1 on failure. 52U8` S6U8`AThe DBGetDir function returns the name of the current directory. HHˆ (=HHˆ ld (J: HHˆ I;HHˆU,57 UTUT`DBCpDir 8UT:Copy a directory hierarchy from one Silo file to another. 92UT` : B`1int DBCpDir(DBfile *srcFile, const char *srcDir, ;O`&DBfile *dstFile, const char *dstDir) <2i` = `None >2UH` ? UH`srcFile @Source database file pointer. A `srcDir B?Name of the directory within the source database file to copy. C Ҫ`dstFile DҪ#Destination database file pointer. E 䪖`dstDir F䪖PName of the top-level directory in the destination file. If an absolute path is Kgiven, then all components of the path except the last must already exist. bROtherwise, the new directory is created relative to the current working directory @ in the file. G2"` H`,DBCpDir returns 0 on success, -1 on failure I2Ud` J֪`LDBCpDir copies an entire directory hierarchy from one Silo file to another. K| cNote that this function is available only on the HDF5 driver and only if the Silo library has been `compiled with HDF5 version 1.8 or later. This is because the implementation exploits functionalP@6ity available only in versions of HDF5 1.8 and later. HHˆ (MHHˆ   ld (N ; HHˆ M;HHˆU  6L UTUThDBGrabDriver MUT(Obtain the low-level driver file handle N2UT` O B`!void *DBGrabDriver(DBfile *file) P2\` Q s`None R2[` S [`file TThe Silo database file handle. U2` VZ`UA void pointer to the low-level drivers file handle on success. NULL(0) on failure. W2UL` XUL aThis method is used to obtain the low-level drivers file handle. For example, one can use it to  hobtain the HDF5 file id. The caller is responsible for casting the returned pointer to a pointer to the Ԫ|@bcorrect type. Use DBGetDriverType() to obtain information on the type of driver currently in use. Y, bWhen the low-level drivers file handle is grabbed, all Silo-level operations on the file are pre9bvented until the file is UNgrabbed. For example, after a call to DBGrabDriver, calls to functions ĸ`Xlike DBPutQuadmesh or DBGetCurve will fail until the driver is UNgrabbed using DBUngrabP@ Driver(). Z2j` [  iAs far as the integrity of a Silo file goes, grabbing is inherently dangerous. If the client is not careeful, one can easily wind up corrupting the file for the Silo library (though all may be normal for Jxbthe underlying driver library). Therefore, to minimize the likelihood of corrupting the Silo file 0dwhile it is grabbed, it is recommended that all operations with the low-level driver grabbed be conxhfined to a separate sub-directory in the silo file. That is, one should not mix writing of Silo objects 0xaand low-level driver objects in the same directory. To achieve this, before grabbing, create the ]desired directory and descend into it using Silos DBMkDir() and DBSetDir() functions. Then, egrab the driver and do all the work with the low-level driver that is necessary. Finally, ungrab the @Pdriver and immediately ascend out of the directory using Silos DBSetDir(..). \t eFor reasons described above, if problems occur on files that have been grabbed, users will likely be  rbasked to re-produce the problem on a similar file that has NOT been grabbed to rule out the possiP @ble corruption from grabbing. HHˆ (QHHˆ# ld (##< HHˆ Q;!HHˆ U<#7] UTUThDBUngrabDriver ^UT!Ungrab the low-level file driver _2UT` ` B`8int DBUngrabDriver(DBfile *file, const void *drvr_hndl) a2\` b s`None c2[` d [`file eThe Silo database file handle. f ` drvr_hndl gThe low-level driver handle. h2ʪ` i~`3The driver type on success, DB_UNKNOWN on failure. j2OUH` kOUH fThis function returns the Silo file to an ungrabbed state, permitting norma Silo calls to again proP@ceed as normal. HHˆ (!HHˆ &""  ld (&&= HHˆ U;$HHˆU>&8l UTUThDBGetDriverType mUT.Get the type of driver for the specified file n2UT` o B`(int DBGetDriverType(const DBfile *file) p2\` q s`None r2[` s [`file tA Silo database file handle. u2` vZ`IDB_UNKNOWN for failure. Otherwise, the specified driver type is returned w2UL` xUL gThis function returns the type of driver used for the specified file. If you want to ask this question P @?without actually opening the file, use DBGetDriverTypeFromPath HHˆ ($HHˆ#)%% ld ())> HHˆ Y;'HHˆU*)9y UTUThDBGetDriverTypeFromPath zUT4Guess the driver type used by a file with the given UT@ pathname {2UT` | P`.int DBGetDriverTypeFromPath(const char *path) }2j` ~ `None 2`  `path !Path to a file on the filesystem 2ƪ` ʪ TDB_UNKNOWN on failure to determine type. Otherwise, the driver type such as DB_PDB, ꪘ@ DB_HDF5. 2`  jThis function examines the first few bytes of the file for tell-tale signs of whether it is a PDB file or %@an HDF5 file. : aIf it is a PDB file, it cannot distinguish between a file generated by DB_PDB driver and DB_PDBP G@B(PDB Proper) driver. It will always return DB_PDB for a PDB file. \ bIf the file is an HDF5, the function is currently not implemented to distiniguish between various i[HDF5 VFDs the file may have been generated with. It will always return DB_HDF5 for an HDF5 @file.  cNote, this function will determine only whether the underlying file is a PDB or HDF5 file. It will `not however, indicate whether the file is a PDB or HDF5 file that was indeed generated by Silo.  {See DBInqFile on page2-64 for a function that will indicate whether the file is indeed a Silo file. P檘D=Note, however, that DBInqFile is a more expensive operation. HHˆ ('HHˆ&,((  ld (,,? HHˆ ];*HHˆU(,: UTUThDBInqFile  UT.Inquire if 3filename is a Silo file.  2UT`  B`int DBInqFile (char *filename)  2\`  s`9integer function dbinqfile(filename, lfilename, is_file) 2[`  [` filename Name of file. 2` Z vDBInqFile returns 0 if filename is not a Silo file, a positive number if filename is a Silo file, ܪ@,and a negative number if an error occurred. 2` `KThe DBInqFile function is mainly used for its return value, as seen above.  ePrior to version 4.7.1 of the Silo library, this function could return false positives when the file,dname referred to a PDB file that was NOT created by Silo. The reason for this is that all this func{@Ktion really did was check whether or not DBOpen would succeed on the file. N fStarting in version 4.7.1 of the Silo library, this function will attempt to count the number of Silo [jobjects (not including directories) in the first non-empty directory it finds. If it cannot find any Silo 䪸@Uobjects in the file, it will return zero (0) indicating the file is NOT a Silo file. } hBecause very early versions of the Silo library did not store anything to a Silo file to distinguish it ffrom a PDB file, it is conceivable that this function will return false negatives for very old, empty @+Silo files. But, that case should be rare.  `Similar problems do not exist for HDF5 files because Silos HDF5 driver has always stored inforP~@Fmation in the HDF5 file which helps to distinguish it as a Silo file. HHˆ (*HHˆ)/++ ld (//@ HHˆ a;-HHˆUB  /; UTUT` _silolibinfo UTNcharacter array written by Silo to root directory indicating the Silo library UT@)version number used to generate the file 2UT`  P`int n; ]`char vers[1024]; ^`sprintf(vers, silo-4.6);  ^`n = strlen(vers); !`7DBWrite(dbfile, _silolibinfo, vers, &n, 1, DB_CHAR); "2` #ժ nThis is a 2simple array variable written at the root directory in a Silo file that contains the Silo P@/library version string. It cannot be disabled. HHˆ (-HHˆ,2..  ld (22A HHˆ e;0HHˆU@  2<$ UTUT` _hdf5libinfo %UTFcharacter array written by Silo to root directory indicating the HDF5 UT@1library version number used to generate the file &2UT` ' P`int n; (]`char vers[1024]; )^`sprintf(vers, hdf5-1.6.6); *^`n = strlen(vers); +`7DBWrite(dbfile, _hdf5libinfo, vers, &n, 1, DB_CHAR); ,2` -ժ nThis is a 2simple array variable written at the root directory in a Silo file that contains the HDF5 dlibrary version string. It cannot be disabled. Of course, it exists, only in files created with the Po@ HDF5 driver. HHˆ (0HHˆ/511 ld )55B HHˆ i;3HHˆUH  5=. UTUT` _was_grabbed /UTJsingle integer written by Silo to root directory whenever a Silo file has UT@been grabbed. 02UT` 1 P` int n=1; 2]`4DBWrite(dbfile, _was_grabbed, &n, &n, 1, DB_INT); 32t` 4 pThis is a 2simple array variable written at the root directory in a Silo whenever a Silo file has been R2@Dgrabbed by the DBGrabDriver() function. It cannot be disabled. HHˆ )3HHˆ2844  ld )$88C HHˆ m;6HHˆ€**8>5 ` Meshes, Variables and Materials 6UTUT,iIf you are interested in learning how to deal with these objects in parallel, See Multi-Block MIObjects, Parallelism and Poor-Mans Parallel I/O on page147. 7UUP nThis section of the Silo API manual describes all the 2high-level Silo objects that are sufficiently bUN@Jself-describing as to be easily shared between a variety of applications. 8wUL ^Silo supports a variety of mesh types including simple 1D curves, structured meshes including UJ^block-structured Adaptive Mesh Refinement (AMR) meshes, point (or gridless) meshes consisting enentirely of points, unstructured meshes consisting of the standard 2zoo of element types, fully arbie\trary polyhedral meshes and Constructive Solid Geometry meshes described by boolean operaUP@%tions of primitive quadric surfaces. 9UB mIn addition, Silo supports both piecewise constant (e.g. 2zone-centered) and piecewise-linear (e.g. 2U@pnode-centered) variables (e.g. 2fields) defined on these meshes. Silo also supports the decomposixtion of these meshes into 2materials (and material 2species) including cases where multiple materials aare mixing within a single mesh element. Finally, Silo also supports the specification of expres@0sions representing 2derived variables. : U8`AThe functions described in this section of the manual include... =dDBPutCurve70 >mDBGetCurve72 ?mDBPutPointmesh73 @1]UmDBGetPointmesh75 AuUmDBPutPointvar76 B+UmDBPutPointvar178 C1+UmDBGetPointvar80 D,mDBPutQuadmesh81 EUmDBGetQuadmesh84 FUmDBPutQuadvar85 GmDBPutQuadvar189 HmDBGetQuadvar92 ImDBPutUcdmesh93 JmDBPutUcdsubmesh101 KmDBGetUcdmesh102 LmDBPutZonelist103 MmDBPutZonelist2104 NmDBPutPHZonelist106 O1mDBGetPHZonelist109 PmDBPutFacelist110 QmDBPutUcdvar112 RmDBPutUcdvar1115 SmDBGetUcdvar117 TmDBPutCsgmesh118 UmDBGetCsgmesh123 AVmDBPutCSGZonelist124 HHˆ )'6HHˆ5;77 ld )<;;D HHˆ q;9HHˆ  ;?WhDBGetCSGZonelist129 XhDBPutCsgvar130 YhDBGetCsgvar132 ZhDBPutMaterial133 [hDBGetMaterial137 \hDBPutMatspecies138 ]hDBGetMatspecies141 ^hDBPutDefvars142 _hDBGetDefvars144 `1hDBInqMeshname145 C;hDBInqMeshtype146 HHˆ )?9HHˆ8>::  ld )T>>E HHˆ u;<HHˆ‘U$ ]l>@mquy}a UTUThDBPutCurve bUT&Write a curve object into a Silo file c2UT` d B >int DBPutCurve (DBfile *dbfile, char *curvename, void *xvals, O(void *yvals, int datatype, int npoints, qUL@DBoptlist *optlist) e2v` f  @integer function dbputcurve(dbid, curvename, lcurvename, xvals, @.yvals, datatype, npoints, optlist_id, status) g2` h `dbfile iȪDatabase file pointer j ڪ` curvename kڪName of the curve object l 쪔`xvals m쪔RArray of length npoints containing the x-axis data values. Must be NULL @7when either DBOPT_XVARNAME or DBOPT_REFERENCE is used. n `yvals o RArray of length npoints containing the y-axis data values. Must be NULL @7when either DBOPT_YVARNAME or DBOPT_REFERENCE is used. p *` datatype q*_Data type of the xvals and yvals arrays. One of the predefined Silo types. r <`npoints s<"The number of points in the curve t N`optlist uNLPointer to an option list structure containing additional information to be [Nincluded in the compound array object written into the Silo file. Use NULL is U"@there are no options. v2` wUF`6DBPutCurve returns zero on success and -1 on failure. x2UT` yUT dThe DBPutCurve function writes a curve object into a Silo file. A curve is a set of x/y points that Ѫz@#describes a two-dimensional curve. zx`QBoth the xvals and yvals arrays must have the same datatype. {tU cThe following table describes the options accepted by this function. See the section titled Using PtBHOthe Silo Option Parameter for details on the use of this construct. HHˆ )W<HHˆ;A== ld )AAF HHˆ y;?HHˆmAAmquy}|UTUR gIn some cases, particularly when writing multi-part silo files from parallel clients, it is convenient UPfto write curve data to something other than the master or root file. However, for a visualization itool to become aware of such objects, the tool is then required to traverse all objects in all the files p_of a multi-part file to find such objects. The DBOPT_REFERENCE option helps address this issue fby permitting the writer to create knowledge of a curve object in the master or root file but put `the actual curve object (the referenced object) wherever is most convenient. This output option ewould be useful for other Silo objects, meshes and variables, as well. However, it is currently only @available for curve objects. HHˆ )?HHˆ>D@@  ld )DDG HHˆ };BHHˆhU4DB} UTUThDBGetCurve ~UT$Read a curve from a Silo database. 2UT`  B`6DBcurve *DBGetCurve (DBfile *dbfile, char *curvename) 2\`  s Ainteger function dbgetcurve(dbid, curvename, lcurvename, maxpts, @xvals, yvals, datatype, npts) 2`  `dbfile Database file pointer.  ` curvename Name of the curve to read. 2ת`  UB`QDBCurve returns a pointer to a DBcurve structure on success and NULL on failure.  2`   ]The DBGetCurve function allocates a DBcurve data structure, reads a curve from the Silo data)@Ubase, and returns a pointer to that structure. If an error occurs, NULL is returned.  2@`  U< dFor the details of the data structured returned by this function, see the Silo library header file, Pd@1silo.h, also attached to the end of this manual. HHˆ )BHHˆAGCC ld )GGH HHˆ ;EHHˆ¢U% GC!%)-159=AEI UTUThDBPutPointmesh UT,Write a point mesh object into a Silo file. 2UT`  B ;int DBPutPointmesh (DBfile *dbfile, char *name, int ndims, O(void *coords[], int nels, int datatype, qUL@DBoptlist *optlist) 2v`   Binteger function dbputpm(dbid, name, lname, ndims, x, y, z, nels, @datatype, optlist_id, status) tUH`7void* x, y, z (if ndims<3, z=0 ok, if ndims<2, y=0 ok) 2`  /U<`dbfile ժDatabase file pointer.  窔`name 窔Name of the mesh.  `ndims Number of dimensions.  `coords  JArray of length ndims containing pointers to coordinate arrays.  `nels %Number of elements (points) in mesh.  /` datatype !/JDatatype of the coordinate arrays. One of the predefined Silo data types. " A`optlist #ALPointer to an option list structure containing additional information to be NTincluded in the mesh object written into the Silo file. Typically, this argument is ‘@NULL. $2r` %`:DBPutPointmesh returns zero on success and -1 on failure. &28` '8 ]The DBPutPointmesh function accepts pointers to the coordinate arrays and is responsible for Ī|@Write a vector/tensor point variable object into a Silo file. <2UT` = B ?int DBPutPointvar (DBfile *dbfile, char *name, char *meshname, O#int nvars, void *vars[], int nels, qUL@"int datatype, DBoptlist *optlist) >2v` ? `None. See DBPutPointvar1 @2` A ⪘`dbfile BDatabase file pointer. C ͪ`name DͪName of the variable set. E ߪ` meshname Fߪ#Name of the associated point mesh. G `nvars H6Number of variables supplied in vars array. I `vars JEArray of length nvars containing pointers to value arrays. K `nels L)Number of elements (points) in variable. M '` datatype N'EDatatype of the value arrays. One of the predefined Silo data types. O 9`optlist P9LPointer to an option list structure containing additional information to be FUincluded in the variable object written into the Silo file. Typically, this argument =t@ is NULL. Q2j` R`9DBPutPointvar returns zero on success and -1 on failure. S2` TUp cThe DBPutPointvar function accepts pointers to the value arrays and is responsible for writing the ~@9variables into a point-variable object in the Silo file. UѪ| eA Silo point-variable object contains all necessary information for describing a variable associated ުzdwith a point mesh. This includes the number of arrays, the datatype of the variable, and the number Pcof points. This function should be used when writing vector or tensor quantities. Otherwise, it is P3@'more convenient to use DBPutPointvar1. HHˆ *+NHHˆMSOO ld *SSL HHˆ ;QHHˆ- MxSGV2UTUT` WUR cThe following table describes the options accepted by this function. See the section titled Using PUPBHJthe Silo Option Parameter for details on the use of this construct. HHˆ *QHHˆPVRR  ld *VVM HHˆ ;THHˆU ##VHX UTUThDBPutPointvar1 YUT7Write a scalar point variable object into a Silo file. Z2UT` [ B @int DBPutPointvar1 (DBfile *dbfile, char *name, char *meshname, O$void *var, int nels, int datatype, qUL@DBoptlist *optlist) \2v` ]  Binteger function dbputpv1(dbid, name, lname, meshname, lmeshname, @)var, nels, datatype, optlist_id, status) ^2` _ `dbfile `ȪDatabase file pointer. a ڪ`name bڪName of the variable. c 쪔` meshname d쪔#Name of the associated point mesh. e `var f0Array containing data values for this variable. g `nels h)Number of elements (points) in variable. i "` datatype j"ADatatype of the variable. One of the predefined Silo data types. k 4`optlist l4LPointer to an option list structure containing additional information to be AUincluded in the variable object written into the Silo file. Typically, this argument U"@ is NULL. m2e` nUR`:DBPutPointvar1 returns zero on success and -1 on failure. o2Ud` pUd cThe DBPutPointvar1 function accepts a value array and is responsible for writing the variable into ~@*a point-variable object in the Silo file. q̪| eA Silo point-variable object contains all necessary information for describing a variable associated ٪zdwith a point mesh. This includes the number of arrays, the datatype of the variable, and the number xBbof points. This function should be used when writing scalar quantities. To write vector or tensor P@(quantities, one must use DBPutPointvar. HHˆ *THHˆSYUU ld *YYN HHˆ ;WHHˆmyYIr2UTUT` sUR cThe following table describes the options accepted by this function. See the section titled Using PUPBHJthe Silo Option Parameter for details on the use of this construct. HHˆ *WHHˆV\XX  ld +\\O HHˆ ;ZHHˆhU4\Jt4UTUThDBGetPointvar uUT,Read a point variable from a Silo database. v2UT` w B`9DBmeshvar *DBGetPointvar (DBfile *dbfile, char *varname) x2\` y s`None z2[` { [`dbfile |Database file pointer. } `varname ~Name of the variable. 2ʪ` ~`YDBGetPointvar returns a pointer to a DBmeshvar structure on success and NULL on failure. 2OUH` OUH ]The DBGetPointvar function allocates a DBmeshvar data structure, reads a variable associated gwith a point mesh from the Silo database, and returns a pointer to that structure. If an error occurs, ž@NULL is returned. 2@` ` dFor the details of the data structured returned by this function, see the Silo library header file, Pd@1silo.h, also attached to the end of this manual. HHˆ +ZHHˆY_[[ ld +__P HHˆ ;]HHˆnU.._K UTUThDBPutQuadmesh UT+Write a quad mesh object into a Silo file. 2UT`  B Cint DBPutQuadmesh (DBfile *dbfile, char *name, char *coordnames[], O(void *coords[], int dims[], int ndims, qULint datatype, int coordtype, qUL@DBoptlist *optlist)  2`   Binteger function dbputqm(dbid, name, lname, xname, lxname, yname, -lyname, zname, lzname, x, y, z, dims, ndims, l@)datatype, coordtype, optlist_id, status)  UL`7void* x, y, z (if ndims<3, z=0 ok, if ndims<2, y=0 ok)  UL`>character* xname, yname, zname (if ndims<3, zname=0 ok, etc.)  2媒`  `dbfile Database file pointer.  `name Name of the mesh.  ` coordnames  UArray of length ndims containing pointers to the names to be provided when -Twriting out the coordinate arrays.  This parameter is currently ignored and can  Ûf@be set as NULL.  L`coords LNArray of length ndims containing pointers to the coordinate arrays.  ^`dims ^VArray of length ndims describing the dimensionality of the mesh. Each value kVin the dims array indicates the number of nodes contained in the mesh along ͪ@that dimension.  ~`ndims ~Number of dimensions.  |` datatype |JDatatype of the coordinate arrays. One of the predefined Silo data types.  z` coordtype zDCoordinate array type. One of the predefined types: DB_COLLINEAR or xint DBPutQuadvar (DBfile *dbfile, char *name, char *meshname, O/int nvars, char *varnames[], void *vars[], int qUL$dims[], int ndims, void *mixvars[], 0qUL)int mixlen, int datatype, int centering, @DBoptlist *optlist) =2` > `None (see DBPutQuadvar1) ?2U@` @ iU8`dbfile AժDatabase file pointer. B 窔`name C窔Name of the variable. D ` meshname EKName of the mesh associated with this variable (written with DBPutQuadmesh @Nor DBPutUcdmesh). If no association is to be made, this value should be NULL. F `nvars GRNumber of sub-variables which comprise this variable. For a scalar array, this is %Oone. If writing a vector quantity, however, this would be two for a 2-D vector @and three for a 3-D vector. H D` varnames IDVArray of length nvars containing pointers to character strings defining the Q@)names associated with each sub-variable. J c`vars KcRArray of length nvars containing pointers to arrays defining the values pOassociated with each subvariable. For true edge- or face-centering (as opposed oato DB_EDGECENT centering when ndims is 1 and DB_FACECENT centering ebwhen ndims is 2), each pointer here should point to an array that holds ndims  Ssub-arrays, one for each of the i-, j-, k-oriented edges or i-, j-, k-intercepting  @@)var object contains the variable values. ^U< lFor node- (or zone-) centered data, the question of which value in the vars array goes with which U:\node (or zone) is determined implicitly by a one-to-one correspondence with the multi-dimenUfsional array list of nodes (or zones) defined by the logical indexing for the associated meshs nodes U@ (or zones). _U4 `Edge- and face-centered data require a little more explanation. We can group edges according to !U2ctheir logical orientation. In a 2D mesh of Nx by Ny nodes, there are (Nx-1)Ny i-oriented edges and TUNx(Ny-1) j-oriented edges. Likewise, in a 3D mesh of Nx by Ny by Nz nodes, there are  Tr[(Nx-1)NyNz i-oriented edges, Nx(Ny-1)Nz, j-oriented edges and NxNy(Nz-1) k-oriented edges. żsEach group of edges is 2almost the same size as a 2normal node-centered variable. So, for concep0żytual convenience we in fact treat them that way and treat the 2extra slots in them as 2phony data. So, qin the case of edge-centered data, each of the pointers in the vars argument to DBPutQuadvar kis interpreted to point to an array that is ndims times the product of nodal sizes (NxNyNz). The `first part of the array (of size NxNy nodes for 2D or NxNyNz nodes for 3D) holds the i-oriented @8edge data, the next part the j-oriented edge data, etc. `U  _A similar approach is used for face centered data. In a 3D mesh of Nx by Ny by Nz nodes, there U[are Nx(Ny-1)(Nz-1) i-intercepting faces, (Nx-1)Ny(Nz-1) j-intercepting faces and (Nx-1)(Ny-gQd1)Nz k-intercepting faces. Again, just as for edge-centered data, each pointer in the vars array is Ofinterpreted to point to an array that is ndims times the product of nodal sizes. The first part holds β@Othe i-intercepting face data, the next part the j-interception face data, etc. aU bUnlike node- and zone-centered data, there does not necessarily exist in Silo an explicit list of Uvedges or faces. As an aside, the DBPutFacelist call is really for writing the 2external faces of a dE `mesh so that a downstream visualization tool need not have to compute them when it displays the <bmesh. Now, requiring the caller to create explicit lists of edges and/or faces in order to handle qfedge- or face-centered data results in unnecessary additional data being written to a Silo file. This bFtsincreases file size as well as the time to write and read the file. To avoid this, we rely upon  implicit bFt@lists of edges and faces. bJU ^Finally, since the zones of a one dimensional mesh are basically 2edges, the case of WUTDB_EDGECENT centering for a one dimensional mesh is treated identically to the RnDB_ZONECENT case. Likewise, since the zones of a two dimensional mesh are basically 2faces, the TDB_FACECENT centering for a two dimensional mesh is treated identically to the P>@DB_ZONECENT case. HHˆ +alHHˆkqmm ld +qqV HHˆ ;oHHˆ)y0qQ15cUTUT fOther information can also be included. This function is useful for writing vector and tensor fields, UR@Ywhereas the companion function, DBPutQuadvar1, is appropriate for writing scalar fields. d2UP` e cThe following table describes the options accepted by this function. See the section titled Using POULBHJthe Silo Option Parameter for details on the use of this construct. HHˆ +oHHˆntpp  ld -ttW HHˆ ;rHHˆ18tR15HHˆ -rHHˆqwss ld -wwX HHˆ ;uHHˆ„U44wSf UTUThDBPutQuadvar1 gUT7 Write a scalar quad variable object into a Silo file. h2UT` i B ?int DBPutQuadvar1 (DBfile *dbfile, char *name, char *meshname, O#void *var, int dims[], int ndims, qUL(void *mixvar, int mixlen, int datatype, qUL@#int centering, DBoptlist *optlist) j2` k  Binteger function dbputqv1(dbid, name, lname, meshname, lmeshname, ,var, dims, ndims, mixvar, mixlen, datatype, l@centering, optlist_id, status) l2˪` m e`dbfile n⪔Database file pointer. o `name pName of the variable. q ` meshname rKName of the mesh associated with this variable (written with DBPutQuadmesh @Nor DBPutUcdmesh.) If no association is to be made, this value should be NULL. s %`var t%PArray defining the values associated with this variable. For true edge- or face-2Wcentering (as opposed to DB_EDGECENT centering when ndims is 1 and YDB_FACECENT centering when ndims is 2), each pointer here should point to aUP]an array that holds ndims sub-arrays, one for each of the i-, j-, k-oriented edges aUPHor i-, j-, k-intercepting faces, respectively. Read the description for @ DBPutQuadvar more details. u x`dims vxYArray of length ndims which describes the dimensionality of the data stored in ~]the var array. For DB_NODECENT centering, this array holds the number of 2ê"Ynodes in each dimension. For DB_ZONECENT centering, DB_EDGECENT Tccentering when ndims is 1 and DB_FACECENT centering when ndims is 2, TQthis array holds the number of 2zones in each dimension. Otherwise, for TQDB_EDGECENT and DB_FACECENT centering, this array should hold the @-number of 2nodes in each dimension. w تr`ndims xتrNumber of dimensions. y p`mixvar zpPArray defining the mixed-data values associated with this variable. If no mixed n@)values are present, this should be NULL. { l`mixlen | l*Length of mixed data arrays, if provided. } j` datatype ~jBDatatype of sub-variables. One of the predefined Silo data types.  -h` centering -hLCentering of the subvariables on the associated mesh. One of the predefined :fetypes: DB_NODECENT, DB_EDGECENT, DB_FACECENT or DB_ZONECENT. 'FQNote that DB_EDGECENT centering on a 1D mesh is treated identically to ;QQDB_ZONECENT centering. Likewise for DB_FACECENT centering on a 2D +Q@mesh.  s^`optlist s^LPointer to an option list structure containing additional information to be P€\Uincluded in the variable object written into the Silo file. Typically, this argument HHˆ -uHHˆtzvv  ld -zzY HHˆ ;xHHˆ 9hzTimUTUT@ is NULL. 2UR` `9DBPutQuadvar1 returns zero on success and -1 on failure. 2`  bThe DBPutQuadvar1 function writes a scalar variable associated with a quad mesh into a Silo file. pUJaA quad-var object contains the variable values, plus the name of the associated quad-mesh. Other binformation can also be included. This function should be used for writing scalar fields, and its T@Wcompanion function, DBPutQuadvar, should be used for writing vector and tensor fields. UD hFor edge- and face-centered data, please refer to the description for DBPutQuadvar for a more UB@detailed explanation. 2U@`  UJ cThe following table describes the options accepted by this function. See the section titled Using PU<BHJthe Silo Option Parameter for details on the use of this construct. HHˆ -xHHˆw}yy ld -}}Z HHˆ ;{HHˆip}UimHHˆ -{HHˆz||  ld -[ HHˆ ;~HHˆhU4V UTUThDBGetQuadvar  UT4Read a quadrilateral variable from a Silo database.  2UT`  B`8DBquadvar *DBGetQuadvar (DBfile *dbfile, char *varname) 2\`  s`None 2[`  [`dbfile Database file pointer.  `varname Name of the variable. 2ʪ` ~`XDBGetQuadvar returns a pointer to a DBquadvar structure on success and NULL on failure. 2OUH` OUH \The DBGetQuadvar function allocates a DBquadvar data structure, reads a variable associated gwith a quadrilateral mesh from the Silo database, and returns a pointer to that structure. If an error ž@occurs, NULL is returned. 2@` ` dFor the details of the data structured returned by this function, see the Silo library header file, Pd@1silo.h, also attached to the end of this manual. HHˆ -~HHˆ} ld .\ HHˆ ;HHˆwU33W UTUThDBPutUcdmesh UT*Write a UCD mesh object into a Silo file. 2UT`  B 9int DBPutUcdmesh (DBfile *dbfile, char *name, int ndims, O$char *coordnames[], void *coords[], qULint nnodes, int nzones, 0qUL%char *zonel_name, char *facel_name, @"int datatype, DBoptlist *optlist) 2`   Cinteger function dbputum(dbid, name, lname, ndims, x, y, z, xname, -lxname, yname, lyname, zname, lzname, nnodes d-nzones, zonel_name, lzonel_name, facel_name, @+lfacel_name, datatype, optlist_id, status) !`5void *x,y,z (if ndims<3, z=0 ok, if ndims<2, y=0 ok) "`*character* xname,yname,zname (same rules) #` $2 ` % Bp`dbfile &#Database file pointer. ' 5`name (5Name of the mesh. ) G`ndims *G;Number of spatial dimensions represented by this UCD mesh. + Y` coordnames ,YUArray of length ndims containing pointers to the names to be provided when fTwriting out the coordinate arrays.  This parameter is currently ignored and can  D@be set as NULL. - ~`coords .~NArray of length ndims containing pointers to the coordinate arrays. / |`nnodes 0|"Number of nodes in this UCD mesh. 1 z`nzones 2z"Number of zones in this UCD mesh. 3 x` zonel_name 4xKName of the zonelist structure associated with this variable [written with ȪvKDBPutZonelist]. If no association is to be made or if the mesh is composed Jsolely of arbitrary, polyhedral elements, this value should be NULL. If a UOpolyhedral-zonelist is to be associated with the mesh, DO NOT pass the name of UxGthe polyhedral-zonelist here. Instead, use the DBOPT_PHZONELIST option 0UxNdescribed below. For more information on arbitrary, polyhedral zonelists, see @:below and also see the documentation for DBPutPHZonelist. 5 j` facel_name 6jKName of the facelist structure associated with this variable [written with (h@LDBPutFacelist]. If no association is to be made, this value should be NULL. 7 :f` datatype 8:fJDatatype of the coordinate arrays. One of the predefined Silo data types. 9 Ld`optlist :LdLPointer to an option list structure containing additional information to be YbTincluded in the mesh object written into the Silo file. See the table below for the V Pvalid options for this function. If no options are to be provided, use NULL for P%Y@this argument. HHˆ .HHˆ  ld .] HHˆ ;HHˆX;2UTUT` <UR`8DBPutUcdmesh returns zero on success and -1 on failure. =2` > `The DBPutUcdmesh function accepts pointers to the coordinate arrays and is responsible for writYUL@6ing the mesh into a UCD mesh object in the Silo file. ?nUJ _A Silo UCD mesh object contains all necessary information for describing a mesh. This includes {UHfthe coordinate arrays, the rank of the mesh (1,2,3,...) and the type (collinear or non-collinear.) In UDcaddition, other information is useful and is therefore included (time and cycle of mesh, plus coor_@dinate system type). @UB ^A Silo UCD mesh may be composed of either zoo-type elements or arbitrary, polyhedral elements U@dor a mixture of both zoo-type and arbitrary, polyhedral elements. The zonelist (connectivity) inforU8^mation for zoo-type elements is written with a call to DBPutZonelist. When there are only zoo-dtype elements in the mesh, this is the only zonelist information associated with the mesh. However, U,gthe caller can optionally specify the name of an arbitrary, polyhedral zonelist written with a call to 0U,WDBPutPHZonelist using the DBOPT_PHZONELIST option. If the mesh consists solely of arbidtrary, polyhedral elements, the only zonelist associated with the mesh will be the one written with @the call to DBPutPHZonelist. AU2 ^When a mesh is composed of both zoo-type elements and polyhedral elements, it is assumed that 'U0call the zoo-type elements come first in the mesh followed by all the polyhedral elements. This has U]implications for any DBPutUcdvar calls made on such a mesh. For zone-centered data, the vari Ubable array should be organized so that values corresponding to zoo-type zones come first followed Faby values corresponding to polyhedral zones. Also, since both the zoo-type zonelist and the polychedral zonelist support hi- and lo- offsets for ghost zones, the ghost-zones of a mesh may consist @6of zoo-type or polyhedral zones or a mixture of both. B2U$` CwV ,See the description of DBCalcExternalFacelist on page2-212 or DBCalcExternalFacelist2 on PMUpage2-214 for an automated way of computing the facelist needed for this call. HHˆ .HHˆ  ld . ^ HHˆ ;HHˆDO++ YDUTUT"h E O`?Example usage of UCD zonelist and external facelist variables. FUT31 bThe order in which nodes are defined in the zonelist is important, especially for 3D cells. Nodes P@/_defining a 2D cell should be supplied in either clockwise or counterclockwise order around the HHˆ . HHˆ   ld .  _ HHˆ ; HHˆƒ  hh ZFUTUTccell. The node, edge and face ordering and orientations for the predefined 3D cell types are illusUR"Htrated below. Gh@Node, edge and face ordering for zoo-type UCD zone shapes. HUTUP bGiven the node ordering in the left-most column, there is indeed an algorithm for determining the UN@$other orderings for each cell type. I2UL hFor edges, each edge is identified by a pair of integer indices; the first being the tail of an arrow ?UJ[oriented along the edge and the second being the head with the smaller node index always eplaced first (at the tail). Next, the ordering of edges is akin to a lexicographic ordering of these pcpairs of integers. This means that we start with the lowest node number of a cell shape, zero, and efind all edges with node zero as one of the points on the edge. Each such edge will have zero as its btail. Since they all start with node 0 as the tail, we order these edges from smallest to largest hhead node. Then we go to the next lowest node number on the cell that has edges 2that have yet to HHˆ . HHˆ  ld .` HHˆ ; HHˆ+[I2UTUThhave been placed in the ordering. We find all the edges from that node (that have not already been UReplaced in the ordering) from smallest to largest head node. We continue this process until all the @4edges on the cell have been placed in the ordering. JUN aFor faces, a similar algorithm is used. Starting with the lowest numbered node on a face, we enuCULjmerate the nodes over a face using the right hand rule for the normal to the face pointing 2away cfrom the innards of the cell. When one places the thumb of the right hand in the direction of this ULdnormal, the direction of the fingers curling around it identify the direction we go to identify the 0ULenodes of the face. Just as for edges, we start identifying faces for the lowest numbered node of the ecell (0). We find all faces that share this node. Of these, the face that enumerates the next lowest anode number as we traverse the nodes using the right hand rule, is placed first in the ordering. @?Then, the face that has the next lowest node number and so on. KU>,iAn example using arbitrary polyhedrons for some zones is illustrated in Figure 0-3 on page 98. U<TThe nodes of a DB_ZONETYPE_POLYHEDRON are specified in the following fashion: First cspecify the number of faces in the polyhedron. Then, for each face, specify the number of nodes in athe face followed by the nodes that make up the face. The nodes should be ordered such that they UXbare numbered in a counter-clockwise fashion when viewed from the outside. For a fully arbitrarily pUX`connected mesh, see DBPutPHZonelist(). In addition, for a sequence of consecutive zones of type XDB_ZONETYPE_POLYHEDRON in a zonelist, the shapesize entry is taken to be the sum of all  gthe associated positions occupied in the nodelist data. So, for the example in Figure 0-3 on page  [98, the shapesize entry for the DB_ZONETYPE_POLYEDRON segment of the zonelist is 53 gbecause for the two arbitrary polyhedral zones in the zonelist, 53 positions in the nodelist array are @used. HHˆ . HHˆ   ld .a HHˆ ;HHˆ5O\LUTUT"h M O(kExample usage of UCD zonelist combining a hex and 2 polyhedra. This example is intended to illustrate )Orthe representation of arbitrary polyhedra. So, although the two polyhedra represent a hex and pyramid which would P@nordinarily be handled just fine by a normal zonelist, they are expressed using arbitrary connectivity here. HHˆ .HHˆ ld .b HHˆ ;HHˆ“q<]=AEIMQWNUTUTBhJThe following table describes the options accepted by this function: HHˆ .HHˆ  ld 0@c HHˆ ;HHˆ"=T^=AEIMQHHˆ 0CHHˆ ld 0Dd HHˆ ;HHˆU*_O UTUThDBPutUcdsubmesh PUT5Write a subset of a parent, ucd mesh, to a Silo file Q2UT` R B`4int DBPutUcdsubmesh(DBfile *file, const char *name, SO`9const char *parentmesh, int nzones, const char *zlname, TqUL`&const char *flname, DBoptlist *opts) U2v` V `None W2` X ⪘`file YThe Silo database file handle. Z ͪ`name [ͪ.The name of the ucd submesh object to create. \ ߪ` parentmesh ]ߪ>The name of the parent ucd mesh this submesh is a portion of. ^ `nzones _%The number of zones in this submesh. ` `zlname a!The name of the zonelist object. b `fl c'[OPT] The name of the facelist object. d '`opts e'Additional options. f2>` g-x`,A positive number on success; -1 on failure h2P` i;/U$`DO NOT USE THIS METHOD. j bIt is an extremely limited, inefficient and soon to be retired way of trying to define subsets of  ba ucd mesh. Instead, use a Mesh Region Grouping (MRG) tree. See ;DBMakeMrgtree; on P8Lpage183. HHˆ 0GHHˆ  ld 0He HHˆ ;HHˆ[U6`k UTUThDBGetUcdmesh lUT&Read a UCD mesh from a Silo database. m2UT` n B`9DBucdmesh *DBGetUcdmesh (DBfile *dbfile, char *meshname) o2\` p s`None q2[` r [`dbfile sDatabase file pointer. t ` meshname uName of the mesh. v2ʪ` w~`XDBGetUcdmesh returns a pointer to a DBucdmesh structure on success and NULL on failure. x2OUH` yOUH ZThe DBGetUcdmesh function allocates a DBucdmesh data structure, reads a UCD mesh from the @^Silo database, and returns a pointer to that structure. If an error occurs, NULL is returned. z23` {Ȫ dFor the details of the data structured returned by this function, see the Silo library header file, PW@1silo.h, also attached to the end of this manual. HHˆ 0KHHˆ! ld 0L!!f HHˆ ;HHˆAU))!a| UTUThDBPutZonelist }UT*Write a zonelist object into a Silo file. ~2UT`  B `YSee the write-up of DBPutUcdmesh for a full description of the zonelist data structures. HHˆ 0OHHˆ$  ld 0P$$g HHˆ ;"HHˆfU22$b UTUThDBPutZonelist2 UTAWrite a zonelist object containing ghost zones into a Silo file.  2UT` ! B =int DBPutZonelist2 (DBfile *dbfile, char *name, int nzones, O+int ndims, int nodelist[], int lnodelist, qUL*int origin, int lo_offset, int hi_offset, 0qUL"int shapetype[], int shapesize[], int shapecnt[], int nshapes, @DBoptlist *optlist) "2` #  rNumber of zone shapes. ? p`optlist @ pLPointer to an option list structure containing additional information to be nTincluded in the variable object written into the Silo file. See the table below for Œ8Pthe valid options for this function. If no options are to be provided, use NULL 5T@for this argument. A2Kh` SB`9DBPutZonelist2 returns zero on success or -1 on failure. HHˆ 0S"HHˆ!'## ld 0T''h HHˆ ;%HHˆ  =`'cC2UTUT` DUR aThe DBPutZonelist2 function writes a zonelist object into a Silo file. The name assigned to this UP@_object can in turn be used as the zonel_name parameter to the DBPutUcdmesh function. E@UNBhHThe allowed shape types are described in the following table: F2.UL` GEUJBhJThe following table describes the options accepted by this function: HUF` IUD,lFor a description of how the nodes for the allowed shapes are enumerated, see DBPutUcdmesh PMon page2-93 HHˆ 0W%HHˆ$*&&  ld 0**i HHˆ ;(HHˆ†U66*dJ UTUThDBPutPHZonelist KUTAWrite an arbitrary, polyhedral zonelist object into a Silo file. L2UT` M B =int DBPutPHZonelist (DBfile *dbfile, char *name, int nfaces, O-int *nodecnts, int lnodelist, int *nodelist, qUL*char *extface, int nzones, int *facecnts, 0qUL*int lfacelist, int *facelist, int origin, int lo_offset, int hi_offset, DBoptlist *optlist) @ N2` O `None P2G` Q `dbfile R朗Database file pointer. S `name T Name of the zonelist structure. U `nfaces VMNumber of faces in the zonelist. Note that faces shared between zones should  @only be counted once. W 2` nodecnts X2VArray of length nfaces indicating the number of nodes in each face. That is ?@=nodecnts[i] is the number of nodes in face i. Y Q` lnodelist ZQ3Length of the succeeding nodelist array. [ c` nodelist \cVArray of length lnodelist listing the nodes of each face. The list of nodes p@Ofor face i begins at index Sum(nodecnts[j]) for j=0...i-1. ] `extface ^XAn optional array of length nfaces where extface[i]!=0x0 means that ~@Kface i is an external face. This argument may be NULL. _ |`nzones `|!Number of zones in the zonelist. a z` facecnts bzfArray of length nzones where facecnts[i] is number of faces for zone i. c Ūx` lfacelist dŪx3Length of the succeeding facelist array. e תv` facelist fתvXArray of face ids for each zone. The list of faces for zone i begins at index tFSum(facecnts[j]) for j=0...i-1. Note, however, that each face is XRidentified by a signed value where the sign is used to indicate which ordering of |Rthe nodes of a face is to be used. A face id >= 0 means that the node ordering as ԪtVit appears in the nodelist should be used. Otherwise, the value is negative 0ԪtQand it should be 1-complimented to get the faces true id. In addition, the node Uordering for such a face is the opposite of how it appears in the nodelist. Finally, Snode orders over a face should be specified such that a right-hand rule yields the @Joutward normal for the face relative to the zone it is being defined for. g Qd`origin hQdAOrigin for indices in the nodelist array. Should be zero or one. i cb` lo-offset jcbVIndex of first real (e.g. non-ghost) zone in the list. All zones with index less than p`@4(<) lo-offset are treated as ghost-zones. k ‚^` hi-offset Sl‚^SIndex of last real (e.g. non-ghost) zone in the list. All zones with index greater HHˆ 0(HHˆ'-)) ld 2~--j HHˆ ;+HHˆ@==al-elUTUT@9than (>) hi-offset are treated as ghost zones. m2UR` n`:DBPutPHZonelist returns zero on success or -1 on failure. o2` p \The DBPutPHZonelist function writes a polyhedral-zonelist object into a Silo file. The name pUJ]assigned to this object can in turn be used as the parameter in the DBOPT_PHZONELIST option @for the DBPutUcdmesh function. q2UF` rBhJThe following table describes the options accepted by this function: sDU@"h tU> bIn interpreting the diagram above, numbers correspond to nodes while letters correspond to faces. #U<fIn addition, the letters are drawn such that they will always be in the lower, right hand corner of a ~aface if you were standing outside the object looking towards the given face. In the example code P@`below, the list of nodes for a given face begin with the node nearest its corresponding letter. HHˆ 2+HHˆ*0,,  ld 200k HHˆ ;.HHˆ00fu `#define NNODES 12 v`#define NFACES 11 w`#define NZONES 2 x` y`/* coordinate arrays */ z`Pfloat x[NNODES] = {0.0, 1.0, 2.0, 0.0, 1.0, 2.0, 0.0, 1.0, 2.0, 0.0, 1.0, 2.0}; {`Pfloat y[NNODES] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}; |`Pfloat z[NNODES] = {0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0}; }` ~`;/* facelist where we enumerate the nodes over each face */ `0int nodecnts[NFACES] = {4,4,4,4,4,4,4,4,4,4,4}; `int lnodelist = 4*NFACES; `?/* a b c */ `;int nodelist[4*NFACES] = {1,7,6,0, 2,8,7,1 4,1,0,3, `?/* d e f */ `= 5,2,1,4, 3,9,10,4, 4,10,11,5, `?/* g h i */ `; 9,6,7,10, 10,7,8,11, 0,6,9,3, `?/* j K */ `1 1,7,10,4, 5,11,8,2};  `  `;/* zonelist where we enumerate the faces over each zone */  `int facecnts[NZONES] = {6,6};  `int lfacelist = 6*NZONES;  `9int facelist[6*NZONES] = {0,2,4,6,8,-9, 1,3,5,7,9,10}; ` S-`MExample of a polyhedral zonelist representation for two hexahedral elements. HHˆ 2.HHˆ-3// ld 233l HHˆ ;1HHˆhU43g4UTUThDBGetPHZonelist UT1Read a polyhedral-zonelist from a Silo database. 2UT`  B`?DBphzonelist *DBGetPHZonelist (DBfile *dbfile, char *phzlname) 2\`  s`None 2[`  [`dbfile Database file pointer.  ` phzlname !Name of the polyhedral-zonelist. 2ʪ` ~`^DBGetPHZonelist returns a pointer to a DBphzonelist structure on success and NULL on failure. 2OUH` OUH _The DBGetPHZonelist function allocates a DBphzonelist data structure, reads a polyhedral-zonelaist from the Silo database, and returns a pointer to that structure. If an error occurs, NULL is ž@ returned. 2@`  ` dFor the details of the data structured returned by this function, see the Silo library header file, Pd@1silo.h, also attached to the end of this manual. HHˆ 21HHˆ0622  ld 266m HHˆ ;4HHˆYU116h! UTUThDBPutFacelist "UT*Write a facelist object into a Silo file. #2UT` $ B t`types ?tNArray of length nfaces containing information about each face. This r@Oargument is ignored if ntypes is zero, or if this parameter is NULL. @ p` typelist ApYArray of length ntypes containing the identifiers for each type. This argument n@Fis ignored if ntypes is zero, or if this parameter is NULL. B 'l`ntypes C'l?Number of types, or zero if type information was not provided. D2>j` SEŪ`8DBPutFacelist returns zero on success or -1 on failure. HHˆ 24HHˆ3955 ld 299n HHˆ ;7HHˆq9iF2UTUT` GUR dThe DBPutFacelist function writes a facelist object into a Silo file. The name given to this object UP@Acan in turn be used as a parameter to the DBPutUcdmesh function. H2BUN` I[`YSee the write-up of DBPutUcdmesh for a full description of the facelist data structures. QJnUJ` HHˆ 27HHˆ6<88  ld 2<int DBPutUcdvar (DBfile *dbfile, char *name, char *meshname, O/int nvars, char *varnames[], void *vars[], int qUL#nels, void *mixvars[], int mixlen, 0qULint datatype, int centering, @DBoptlist *optlist) O2` P `None Q2U@` R iU8`dbfile SժDatabase file pointer. T 窔`name U窔Name of the variable. V ` meshname WLName of the mesh associated with this variable (written with DBPutUcdmesh). X `nvars Y RNumber of sub-variables which comprise this variable. For a scalar array, this is Oone. If writing a vector quantity, however, this would be two for a 2-D vector C|@and three for a 3-D vector. Z 7` varnames [7VArray of length nvars containing pointers to character strings defining the D@(names associated with each subvariable. \ V`vars ]VRArray of length nvars containing pointers to arrays defining the values c@"associated with each subvariable. ^ u`nels _u%Number of elements in this variable. ` `mixvars aVArray of length nvars containing pointers to arrays defining the mixed-data ~Nvalues associated with each subvariable. If no mixed values are present, this |@should be NULL. b z`mixlen cz7Length of mixed data arrays (i.e., mixvars). d Ūx` datatype eŪxBDatatype of sub-variables. One of the predefined Silo data types. f תv` centering gתvMCentering of the sub-variables on the associated mesh. One of the predefined t.types: DB_NODECENT, DB_EDGECENT, DB_FACECENT, d2;DB_ZONECENT or DB_BLOCKCENT. See below for a discussion of @@centering issues. h n`optlist inLPointer to an option list structure containing additional information to be lTincluded in the variable object written into the Silo file. See the table below for ֫*Pthe valid options for this function. If no options are to be provided, use NULL VR@for this argument. j2Nf` Sk*T&`7DBPutUcdvar returns zero on success and -1 on failure. HHˆ 2:HHˆ9?;; ld 2??p HHˆ !;=HHˆ— Uh?k imquy} l2UTUT` mUR ^The DBPutUcdvar function writes a variable associated with an UCD mesh into a Silo file. Note UP@Tthat variables can be node-centered, zone-centered, edge-centered or face-centered. n@UN lFor node- (or zone-) centered data, the question of which value in the vars array goes with which MULanode (or zone) is determined implicitly by a one-to-one correspondence with the list of nodes in Bfthe DBPutUcdmesh call (or zones in the DBPutZonelist or DBPutZonelist2 call). For 0Biexample, the 237th value in a zone-centered vars array passed here goes with the 237th zone in @Wthe zonelist passed in the DBPutZonelist2 (or DBPutZonelist) call. oUD _Edge- and face-centered data require a little more explanation. Unlike node- and zone-centered UBcdata, there does not exist in Silo an explicit list of edges or faces. As an aside, the DBPutoFacelist call is really for writing the 2external faces of a mesh so that a downstream visualiza`tion tool need not have to compute them when it displays the mesh. Now, requiring the caller to 0fcreate explicit lists of edges and/or faces in order to handle edge- or face-centered data results in gunnecessary additional data being written to a Silo file. This increases file size as well as the time @eto write and read the file. To avoid this, we rely upon  implicit lists of edges and faces. pU6 oWe define implicit lists of edges and faces in terms of a 2traversal of the zonelist structure of the U4qassociated mesh. The position of an edge (or face) in its list is determined by the order of its 2first UBeoccurrence in this traversal. The traversal algorithm is to visit each zone in the zonelist and, for v reach zone, visit its edges (or faces) in local order. See Figure 0-2 on page 96. Because this traversal nwill wind up visiting edges multiple times, the 2first time an edge (or face) is encountered is what @Gdetermines its position in the 2implicit edge (or face) list. qBU* dIf the zonelist contains arbitrary polyhedra or the zonelist is a polyhedral zonelist (written with OU(aDBPutPHZonelist), then the traversal algorithm involves visiting each zone, then each face for a $Uv@'zone and finally each edge for a face. rqU$ hNote that DBPutUcdvar() can also be used to define a 2block-centered variable on a multi-block ~U"Umesh by specifying a multi-block mesh name for the meshname and DB_BLOCKCENT for the U@Rcentering. This is useful in defining, for example, multi-block variable extents. sU fOther information can also be included. This function is useful for writing vector and tensor fields, U@Xwhereas the companion function, DBPutUcdvar1, is appropriate for writing scalar fields. t2U` Su2SBhJThe following table describes the options accepted by this function: HHˆ 2=HHˆ>  ld 2BBq HHˆ %;@HHˆ i Bl imquy} HHˆ 2@HHˆ?EAA ld 5PEEr HHˆ );CHHˆfU..Emv UTUThDBPutUcdvar1 wUT5Write a scalar UCD variable object into a Silo file. x2UT` y B >int DBPutUcdvar1 (DBfile *dbfile, char *name, char *meshname, O#void *var, int nels, void *mixvar, qUL)int mixlen, int datatype, int centering, qUL@DBoptlist *optlist) z2` {  Binteger function dbputuv1(dbid, name, lname, meshname, lmeshname, %var, nels, mixvar, mixlen, datatype, l@centering, optlist_id, staus) |2˪` } e`dbfile ~⪔Database file pointer.  `name Name of the variable.  ` meshname DName of the mesh associated with this variable (written with either @DBPutUcdmesh).  %`var %TArray of length nels containing the values associated with this variable.  7`nels 7%Number of elements in this variable.  I`mixvar IWArray of length mixlen containing the mixed-data values associated with this V@>variable. If mixlen is zero, this value is ignored.  h`mixlen  h;Length of mixvar array. If zero, no mixed data is present.  z` datatype  z=Datatype of variable. One of the predefined Silo data types.  ` centering MCentering of the sub-variables on the associated mesh. One of the predefined ~0types: DB_NODECENT, DB_EDGECENT, DB_FACECENT or j@ DB_ZONECENT.  z`optlist zLPointer to an option list structure containing additional information to be ŪxTincluded in the variable object written into the Silo file. See the table below for UPthe valid options for this function. If no options are to be provided, use NULL @for this argument. 2r` w`8DBPutUcdvar1 returns zero on success and -1 on failure. 2T~` T aDBPutUcdvar1 writes a variable associated with an UCD mesh into a Silo file. Note that variables Hjawill be either node-centered or zone-centered. Other information can also be included. This func䖬ction is useful for writing scalar fields, whereas the companion function, DBPutUcdvar, is appropriPح@*ate for writing vector and tensor fields. HHˆ 5SCHHˆBHDD  ld 5THHs HHˆ -;FHHˆ integer function dbputcsgm(dbid, name, lname, ndims, nbounds, .typeflags, bndids, coeffs, lcoeffs, datatype, ]UD.extents, zonel_name, lzonel_name, optlist_id, ֪@status) 32` 4 P`dbfile 5 Database file pointer 6 `name 77Name to associate with this DBcsgmesh object 8 -`ndims 9-DNumber of spatial and topological dimensions of the CSG mesh object : ?`nbounds ;?2Number of boundaries in the CSG mesh description. < Q` typeflags =QYInteger array of length nbounds of type information for each boundary. This is ^Pused to encode various information about the type of each boundary such as, for X\Lexample, plane, sphere, cone, general quadric, etc as well as the number of TRcoefficients in the representation of the boundary. For more information, see the Ɓ@description, below. > |`bndids ?|ROptional integer array of length nbounds which are the explicit integer zTidentifiers for each boundary. It is these identifiers that are used in expressions Zdefining a region of the CSG mesh. If the caller passes NULL for this argument, ,Na natural numbering of boundaries is assumed. That is, the boundary occurring 4]at position i, starting from zero, in the list of boundaries here is identified by d@the integer i. @ p`coeffs ApUArray of length lcoeffs of coefficients used in the representation of each nLboundary or, if the boundary is a transformed copy of another boundary, the million (2^24) boundaries that can be referenced in this way. B Jb`lcoeffs CJb&Length of the coeffs array. D \`` datatype E\`9The data type of the data in the coeffs array. F n^` zonel_name Gn^@Name of CSG zonelist to be associated with this CSG mesh object H €\`extents SI€\QArray of length 2*ndims of spatial extents, xy(z)-minimums followed by HHˆ 5_LHHˆKQMM ld 5`QQv HHˆ 9;OHHˆŒ% k{m Qq  #&IUTUT@xy(z)-maximums. J UR`optlist KURLPointer to an option list structure containing additional information to be UPNincluded in the CSG mesh object written into the Silo file. Use NULL if there @are no options. L2JUL` M`8DBPutCsgMesh returns zero on success and -1 on failure. N2UP` OUP \The word mesh in this function name is probably somewhat misleading because it suggests a UDadiscretization of a domain into a mesh. In fact, a CSG (Constructive Solid Geometry) mesh in \Silo is a continuous, analytic representation of the geometry of some computational domain. _Nonetheless, most of Silos concepts for meshes, variables, materials, species and multi-block U@dobjects apply equally well in the case of a CSG mesh and so that is what it is called, here. Pres0U@hently, Silo does not have functions to discretize this kind of mesh. It has only the functions for storcing and retrieving it. Nonetheless, a future version of Silo may include functions to discretize a @ CSG mesh. PU6 bA CSG mesh is constructed by starting with a list of analytic boundaries, that is curves in 2D or  U4csurfaces in 3D, such as planes, spheres and cones or general quadrics. Each boundary is defined by 18xan analytic expression (an equation) of the form  f(x,y,z)=0 (or, in 2D,  f(x,y)=0) in which the high @west exponent for 2x, y or 2z is 2. That is, all the boundaries are quadratic (or quadric) at most. Q;U. gThe table below describes how to use the typeflags argument to define various kinds of boundPHU,BHaries in 3 dimensions. HHˆ 5cOHHˆNTPP  ld 5dTTw HHˆ =;RHHˆvʶ } OTr  #&RUTUTBhgThe table below defines an analogous set of typeflags for creating boundaries in two dimensions.. SL  fBy replacing the = in the equation for a boundary with either a < or a >, whole regions in 2 or Y c3D space can be defined using these boundaries. These regions represent the set of all points that bsatisfy the inequality. In addition, regions can be combined to form new regions by unions, interP@Jsections and differences as well other operations (See DBPutCSGZonelist). HHˆ 5gRHHˆQWSS ld 5hWWx HHˆ A;UHHˆ PWs TUTUT fIn this call, only the analytic boundaries used in the expressions to define the regions are written. UR^The expressions defining the regions themselves are written in a separate call, DBPutCSG@Zonelist. UUN eIf you compare this call to write a CSG mesh to a Silo file with a similar call to write a UCD mesh, CULgyou will notice that the boundary list here plays a role similar to that of the nodal coordinates of a ]UCD mesh. For the UCD mesh, the basic geometric primitives are points (nodes) and a separate ULhcall, DBPutZonelist, is used to write out the information that defines how points (nodes) are UL@(combined to form the zones of the mesh. VUD \Similarly, here the basic geometric primitives are analytic boundaries and a separate call, UB`DBPutCSGZonelist, is used to write out the information that defines how the boundaries are @&combined to form regions of the mesh. WU> cThe following table describes the options accepted by this function. See the section titled Using PU<BHbthe Silo Option Parameter for details on the use of the DBoptlist construct. HHˆ 5kUHHˆTZVV  ld 6ZZy HHˆ E;XHHˆZt HHˆ 6XHHˆW]YY ld 6]]z HHˆ I;[HHˆ U<]uX UTUThDBGetCsgmesh YUT'Get a CSG mesh object from a Silo file Z2UT` [ B`>DBcsgmesh *DBGetCsgmesh(DBfile *dbfile, const char *meshname) \2\` ] s`None ^2[` _ [`dbfile `Database file pointer a ` meshname b$Name of the CSG mesh object to read c2ʪ` d~`CA pointer to a DBcsgmesh structure on success and NULL on failure. e2OUH` fOUH dFor the details of the data structured returned by this function, see the Silo library header file, P@1silo.h, also attached to the end of this manual. HHˆ 6[HHˆZ`\\  ld 6``{ HHˆ M;^HHˆ€U00`vg UTUThDBPutCSGZonelist hUT*Put a CSG zonelist object in a Silo file. i2UT` j B`Bint DBPutCSGZonelist(DBfile *dbfile, const char *name, int nregs, kO`+ const int *typeflags, lqUL`> const int *leftids, const int *rightids, mqUL`D const void *xforms, int lxforms, int datatype, n`6 int nzones, const int *zonelist, o`* DBoptlist *optlist); p2` q  Ainteger function dbputcsgzl(dbid, name, lname, nregs, typeflags, .leftids, rightids, xforms, lxforms, datatype, ]UD@&nzones, zonelist, optlist_id, status) r2媒` s U2`dbfile tDatabase file pointer u `name v:Name to associate with the DBcsgzonelist object w `nregs x )The number of regions in the regionlist. y 2` typeflags z2XInteger array of length nregs of type information for each region. Each entry ?lin this array is one of either DB_INNER, DB_OUTER, DB_ON, DB_XFORM, DRDB_SWEEP, DB_UNION, DB_INTERSECT, and DB_DIFF. S 0S pThe symbols, DB_INNER, DB_OUTER, DB_ON, DB_XFORM and DB_SWEEP Nrepresent unary operators applied to the referenced region (or boundary). The [symbols DB_UNION, DB_INTERSECT, and DB_DIFF represent binary -operators applied to two referenced regions.  PFor the unary operators, DB_INNER forms a region from a boundary (See MDBPutCsgmesh) by replacing the = in the equation representing the boundary Swith <. Likewise, DB_OUTER forms a region from a boundary by replacing Uthe = in the equation representing the boundary with >. Finally, DB_ON Pforms a region (of topological dimension one less than the mesh) by leaving the H= in the equation representing the boundary as an =. In the case of hDB_INNER, DB_OUTER and DB_ON, the corresponding entry in the leftids "Larray is a reference to a boundary in the boundary list (See DBPutCsgmesh).  ]For the unary operator, DB_XFORM, the corresponding entry in the leftids Qarray is a reference to a region to be transformed while the corresponding entry ^in the rightids array is the index into the xform array of the row-by-row &coefficients of the affine transform.  @>The unary operator DB_SWEEP is not yet implemented. { oZ`leftids |oZ\Integer array of length nregs of references to other regions in the regionlist or P|XKboundaries in the boundary list (See DBPutCsgmesh). Each referenced region HHˆ 6^HHˆ]c__ ld 6cc| HHˆ Q;aHHˆ–'cw #&),/|UTUTXin the leftids array forms the left operand of a binary expression (or single UR@Loperand of a unary expression) involving the referenced region or boundary. } UP` rightids ~UPZInteger array of length nregs of references to other regions in the regionlist. UNTEach referenced region in the rightids array forms the right operand of a LQbinary expression involving the region or, for regions which are copies of other 0LZregions with a transformation applied, the starting index into the xforms array Qof the row-by-row, affine transform coefficients. If for a given region no right @Treference is appropriate, put a value of -1 into this array for the given region.  yUD`xforms yUDXArray of length lxforms of row-by-row affine transform coefficients for those UBRregions that are copies of other regions except with a transformation applied. In ZZthis case, the entry in the leftids array indicates the region being copied and UTZtransformed and the entry in the rightids array is the starting index into this UT@Mxforms array for the transform coefficients. This argument may be NULL.  U:`lxforms U:gLength of the xforms array. This argument may be zero if xforms is NULL.  U8` datatype U8jThe data type of the values in the xforms array. Ignored if xforms is NULL.  U6`nzones U6HThe number of zones in the CSG mesh. A zone is really just a completely U4@defined region.  U2` zonelist U2XInteger array of length nzones of the regions in the regionlist that form the U0@actual zones of the CSG mesh.  !U.`optlist  !U.LPointer to an option list structure containing additional information to be .U,Sincluded in this object when it is written to the Silo file. Use NULL if there are F@ no options.  2RU(`  E`ADBPutCSGZonelist returns zero on success and -1 on failure.  2U`  ^A CSG mesh is a list of curves in 2D or surfaces in 3D. These are analytic expressions of the U @fboundaries of objects that can be expressed by quadratic equations in 2x, y and 2z. U mThe zonelist for a CSG mesh is constructed by first defining 2regions from the mesh boundaries. For UVexample, given the boundary for a sphere, we can create a region by taking the inside Ets(DB_INNER) of that boundary or by taking the outside (DB_OUTER). In addition, regions can also lbbe created by boolean operations (union, intersect, diff) on other regions. The table below summaP&BHLrizes how to construct regions using the typeflags argument.  HHˆ 6aHHˆ`fbb  ld 6ff} HHˆ U;dHHˆ=fx #&),/UTUT ]However, not all regions in a CSG zonelist form the actual zones of a CSG mesh. Some regions UReexist only to facilitate the construction of other regions. Only certain regions, those that are com_pletely constructed, form the actual zones. Consequently, the zonelist for a CSG mesh involves 0hboth a list of regions (as well as the definition of those regions) and then a list of zones (which are @)really just completely defined regions). JUJ cThe following table describes the options accepted by this function. See the section titled Using PWUHBHbthe Silo Option Parameter for details on the use of the DBoptlist construct.  HHˆ 6dHHˆciee ld 7ii~ HHˆ Y;gHHˆX! >YiyUTUT"h   5 fA relatively simple object to represent as a CSG mesh. It models an A/C vent outlet for a 1994 Toyota 5vTercel. It consists of two zones. One is a partially-spherical shaped ring housing (darker area). The other is a lens-@2shaped fin used to direct airflow (lighter area). UT/މBhdThe table below describes the contents of the boundary list (written in the DBPutCsgmesh call)  އ`3The code below writes this CSG mesh to a silo file <3`@int *typeflags={DBCSG_SPHERE_PR, DBCSG_PLANE_X, DBCSG_PLANE_X, 3`G DBCSG_CYLINDER_PPR, DBCSG_SPHERE_PR, DBCSG_SPHERE_PR};  UTރ`:float *coeffs = {0.0, 0.0, 0.0, 5.0, 1.0, 0.0, 0.0, -2.5, ށ`> 1.0, 0.0, 0.0, 2.5, 1.0, 0.0, 0.0, 0.0, 3.0, `? 0.0, 0.0, 49.5, 50.0, 0.0. 0.0, -49.5, 50.0}; ` `4DBPutCsgmesh(dbfile, csgmesh, 3, typeflags, NULL, `3 coeffs, 25, DB_FLOAT, csgzl, NULL); A` HHˆ 7gHHˆflhh  ld 7ll HHˆ ];jHHˆZlzUTUTBheThe table below describes the contents of the regionlist, written in the DBPutCSGZonelist call.   DBCSG_INTERSECT, DBCSG_INTERSECT, DBCSG_DIFF, +DBCSG_INNER, DBCSG_INNER, DBCSG_INTERSECT, @DBCSG_INTERSECT}; $`&int *leftids={0,1,2,3,0,4,5,4,5,7,9}; %`-int *rightids={-1,-1,-1,-1,1,2,3,-1,-1,8,0}; & UTUC`int nzones = 2; 'UA`int *zonelist = {6, 10}; (샪` )4`4DBPutCSGZonelist(dbfile, csgzl, nregs, typeflags, *: `5 leftids, rightids, NULL, 0, DB_INT, +: `* nzones, zonelist, NULL); C,` HHˆ 7jHHˆiokk ld 7oo HHˆ a;mHHˆ-U:o{- UTUThDBGetCSGZonelist .UT*Read a CSG mesh zonelist from a Silo file /2UT` 0 B`0DBcsgzonelist *DBGetCSGZonelist(DBfile *dbfile, 1O`4 const char *zlname) 22i` 3 `None 42UH` 5 UH`dbfile 6Database file pointer 7 `zlname 8-Name of the CSG mesh zonelist object to read 92ת` :.`GA pointer to a DBcsgzonelist structure on success and NULL on failure. ;2k` <k dFor the details of the data structured returned by this function, see the Silo library header file, P)@1silo.h, also attached to the end of this manual. HHˆ 7mHHˆlrnn  ld 7rr HHˆ e;pHHˆ@U,,r|= UTUThDBPutCsgvar >UT)Write a CSG mesh variable to a Silo file ?2UT` @ B`3int DBPutCsgvar(DBfile *dbfile, const char *vname, AO`/ const char *meshname, int nvars, BqUL`: const char *varnames[], const void *vars[], CqUL`6 int nvals, int datatype, int centering, D`# DBoptlist *optlist); E2` F  :integer function dbputcsgv(dbid, vname, lvname, meshname, ,lmeshname, nvars, var_ids, nvals, datatype, d@centering, optlist_id, status) G`@integer* var_ids (array of pointer ids created using dbmkptr) H2媒` I `dbfile JDatabase file pointer K `vname L>The name to be associated with this DBcsgvar object M ` meshname N :The name of the CSG mesh this variable is associated with O 2`nvars P28The number of subvariables comprising this CSG variable Q D` varnames RDIArray of length nvars containing the names of the subvariables S V`vars TV#Array of pointers to variable data U h`nvals Vh6Number of values in each of the vars arrays W z` datatype Xz]The type of data in the vars arrays (e.g. DB_FLOAT, DB_DOUBLE) Y ` centering ZRThe centering of the CSG variable (DB_ZONECENT or DB_BNDCENT) [ ~`optlist \~LPointer to an option list structure containing additional information to be |Sincluded in this object when it is written to the Silo file. Use NULL if there are ăN@ no options ]2Ϫx` ^C bThe DBPutCsgvar function writes a variable associated with a CSG mesh into a Silo file. Note that t@=variables will be either zone-centered or boundary-centered. _r ~Just as UCD variables can be  zone-centered or  node-centered, CSG variables can be  zone-centered pyor  boundary-centered. For a zone-centered variable, the value(s) at index i in the vars array(s) are Ipassociated with the ith region (zone) in the DBcsgzonelist object associated with the mesh. HT$gFor a boundary-centered variable, the value(s) at index i in the vars array(s) are associated with the RѭT@Aith boundary in the DBcsgbnd list associated with the mesh. HHˆ 7pHHˆouqq ld 7uu HHˆ i;sHHˆHEu}W`UTUTBh=Other information can also be included via the optlist: HHˆ 7sHHˆrxtt  ld 8xx HHˆ m;vHHˆ U<x~a UTUThDBGetCsgvar bUT*Read a CSG mesh variable from a Silo file c2UT` d B`;DBcsgvar *DBGetCsgvar(DBfile *dbfile, const char *varname) e2\` f s`None g2[` h [`dbfile iDatabase file pointer j `varname k$Name of CSG variable object to read l2ʪ` m~`BA pointer to a DBcsgvar structure on success and NULL on failure. n2OUH` oOUH dFor the details of the data structured returned by this function, see the Silo library header file, P@1silo.h, also attached to the end of this manual. HHˆ 8vHHˆu{ww ld 9{{ HHˆ q;yHHˆ†U66{p UTUThDBPutMaterial qUT/Write a material data object into a Silo file. r2UT` s B @int DBPutMaterial (DBfile *dbfile, char *name, char *meshname, O(int nmat, int matnos[], int matlist[], qUL'int dims[], int ndims, int mix_next[], 0qUL-int mix_mat[], int mix_zone[], void *mix_vf, @.int mixlen, int datatype, DBoptlist *optlist) t2` u  Binteger function dbputmat(dbid, name, lname, meshname, lmeshname, .nmat, matnos, matlist, dims, ndims, mix_next, d.mix_mat, mix_zone, mix_vf, mixlien, datatype, @optlist_id, status) v` void* mix_vf w2` x oU(`dbfile y Database file pointer. z `name {"Name of the material data object. | -` meshname }-3Name of the mesh associated with this information. ~ ?`nmat ?Number of materials.  Q`matnos Q 0, this argument ?@ is optional.  *j`mix_vf *jUArray of length mixlen of volume fractions for the mixed zones. Note, this 7hKcan actually be either single- or double-precision. Specify actual type in 2@ datatype.  Vd`mixlen VdYLength of mixed data arrays (or zero if no mixed data is present). If mixlen > cbJ0, then the mix_ arguments describing the mixed data arrays must be non-7@NULL.  ‚^` datatype S‚^BVolume fraction data type. One of the predefined Silo data types. HHˆ 9yHHˆx~zz  ld :~~ HHˆ u;|HHˆ Fi~jn UTUT`optlist UTLPointer to an option list structure containing additional information to be URTincluded in the material object written into the Silo file. See the table below for Pthe valid options for this function. If no options are to be provided, use NULL @for this argument. 2EUL` UP`9DBPutMaterial returns zero on success and -1 on failure. 2` ; \Note that material functionality, even mixing materials, can now be handled, often more conUDZveniently and efficiently, via a Mesh Region Grouping (MRG) tree. Users are encouraged to U, aconsider an MRG tree as an alternative to DBPutMaterial(). See ;DBMakeMrgtree; on U4Lpage183. U> bThe DBPutMaterial function writes a material data object into the current open Silo file. The minU<dimum required information for a material data object is supplied via the standard arguments to this 7Tbfunction. The optlist argument must be used for supplying any information not requested T@ through the standard arguments. 2U6`  U cThe following table describes the options accepted by this function. See the section titled Using P(U2BHJthe Silo Option Parameter for details on the use of this construct. HHˆ :|HHˆ{}} ld : HHˆ y;HHˆejqjnUTUR``The model used for storing material data is the most efficient for VisIt, and works as follows: UP gOne zonal array, matlist, contains the material number for a clean zone or an index into the UNXmixed data arrays if the zone is mixed. Mixed zones are marked with negative entries in >omatlist, so you must take ABS(matlist[i]) to get the actual 1-origin mixed data index.  All  >@Windices are 1-origin to allow matlist  to use zero as a material number. UH cThe mixed data arrays are essentially a linked list of information about the mixed elements within UFva zone. Each mixed data array is of length mixlen. For a given index  i, the following information mU@@+is known about the  ith element:  UB` mix_zone[i] !UBOThe index of the zone which contains this element. The origin is determined by U@@DBOPT_ORIGIN. " 1U>` mix_mat[i] #1U>$The material number of this element $ CU<` mix_vf[i] %CU<%The volume fraction of this element & UU:` mix_next[i] 'UU:SThe 1-origin index of the next material entry for this zone, else 0 if this is the PbU8@ last entry. HHˆ :HHˆ~  ld : HHˆ };HHˆly66(UTUT"h. W)iyhKExample using mixed data arrays for representing material information HHˆ :HHˆ ld : HHˆ ;HHˆ[U6* UTUThDBGetMaterial +UT)Read material data from a Silo database. ,2UT` - B`;DBmaterial *DBGetMaterial (DBfile *dbfile, char *mat_name) .2\` / s`None 02[` 1 [`dbfile 2Database file pointer. 3 ` mat_name 4'Name of the material variable to read. 52ʪ` 6~`ZDBGetMaterial returns a pointer to a DBmaterial structure on success and NULL on failure. 72OUH` 8OUH _The DBGetMaterial function allocates a DBmaterial data structure, reads material data from the @^Silo database, and returns a pointer to that structure. If an error occurs, NULL is returned. 923` :Ȫ dFor the details of the data structured returned by this function, see the Silo library header file, PW@1silo.h, also attached to the end of this manual. HHˆ :HHˆ   ld B @int DBPutMatspecies (DBfile *dbfile, char *name, char *matname, O*int nmat, int nmatspec[], int speclist[], qUL(int dims[], int ndims, int nspecies_mf, 0qUL"void *species_mf, int mix_spec[], @.int mixlen, int datatype, DBoptlist *optlist) ?2` @  @integer function dbputmsp(dbid, name, lname, matname, lmatname, 'nmat, nmatspec, speclist, dims, ndims, d*species_mf, species_mf, mix_spec, mixlen, @datatype, optlist_id, status) A`void *species_mf B2` C oU(`dbfile D Database file pointer. E `name F*Name of the material species data object. G -`matname H-FName of the material object with which the material species object is :@ associated. I L`nmat JLLNumber of materials in the material object referenced by matname. K ^` nmatspec L^UArray of length nmat containing the number of species associated with each k@ material. M }` speclist N}UArray of dimension defined by ndims= and dims of indices into the ~Qspecies_mf array. Each entry corresponds to one zone. If the zone is clean, ċQthe entry in this array must be positive or zero. A positive value is a 1-origin H4Vindex into the species_mf array. A zero can be used if the material in this $Tzone contains only one species. If the zone is mixed, this value is negative and is 0$_used to index into the mix_spec array in a manner analogous to the mix_mat @#array of the DBPutMaterial() call. O ݪr`dims PݪrXArray of length ndims that defines the shape of the speclist array. Q p`ndims Rp6Number of dimensions in the speclist array. S n` nspecies_mf Tn+Length of the species_mf array. U l` species_mf VlPArray of length nspecies_mf containing mass fractions of the material  jTspecies. Note, this can actually be either single or double precision. Specify type B@in datatype argument. W ?f` mix_spec X?fZ Array of length mixlen containing indices into the species_mf array. LdPThese are used for mixed zones. For every index j in this array, %\Nmix_list[j] corresponds to the DBmaterial structures material 0wR@0mix_mat[j] and zone mix_zone[j]. Y x^`mixlen SZx^(Length of the mix_spec array. HHˆ  _Finally, when zones contain mixing materials the speclist array needs to specify the U<aspecies_mf entries for each of the materials in the zone. In this case, negative values are URlassigned to the speclist entries for these zones and the linked-list like structure of the associ|ated material (e.g. mix_next, mix_mat, mix_vf, mix_zone args of the DBPutMaterial() @ call) is used to traverse them. l2U4` SmijTBhOThe following table describes the options accepted by this function: HHˆ <^HHˆ  ld <_ HHˆ ;HHˆhU4n UTUThDBGetMatspecies oUT1Read material species data from a Silo database. p2UT` q B`>DBmatspecies *DBGetMatspecies (DBfile *dbfile, char *ms_name) r2\` s s`None t2[` u [`dbfile vDatabase file pointer. w `ms_name x+Name of the material species data to read. y2ʪ` z~`^DBGetMatspecies returns a pointer to a DBmatspecies structure on success and NULL on failure. {2OUH` |OUH ]The DBGetMatspecies function allocates a DBmatspecies data structure, reads material species bdata from the Silo database, and returns a pointer to that structure. If an error occurs, NULL is ž@ returned. }2@` ~` dFor the details of the data structured returned by this function, see the Silo library header file, Pd@1silo.h, also attached to the end of this manual. HHˆ int DBPutDefvars(DBfile *dbfile, const char *name, int ndefs, O`2 const char *names[], int *types, qUL`= const char *defns[], DBoptlist *optlist[]); 2v`   ?integer function dbputdefvars(dbid, name, lname, ndefs, names, *lnames, types, defns, ldefns, optlist_id, tUH@status) RlIcharacter*N names (See  dbset2dstrlen  on page268. ) RlIcharacter*N defns (!See  dbset2dstrlen  on page268.")  2ت`  `dbfile  朗Database file pointer.  `name  3Name of the derived variable definition(s) object.  `ndefs (number of derived variable definitions.  %`names %:Array of length ndefs of derived variable names  7`types 7BArray of length ndefs of derived variable types such as D&DB_VARTYPE_SCALAR, DB_VARTYPE_VECTOR, 1U)DB_VARTYPE_TENSOR, DB_VARTYPE_SYMTENSOR, T'DB_VARTYPE_ARRAY, DB_VARTYPE_MATERIAL, =@%DB_VARTYPE_SPECIES, DB_VARTYPE_LABEL  }`defns }AArray of length ndefs of derived variable definitions.  ~`optlist ~YArray of length ndefs pointers to option list structures containing additional |Qinformation to be included with each derived variable. The options available are BP@:the same as those available for the respective variables. 2x` Й`8DBPutDefvars returns zero on success and -1 on failure. 2Ԋ,` Ֆ dThe DBPutDefvars function is used to put definitions of derived variables in the Silo file. That is phvariables that are derived from other variables in the Silo file or other derived variable definitions. YpOne or more variable definitions can be written with this function. Note that only the 2definitions of E[<fthe derived variables are written to the file with this call. The variables themselves are not in any ,@way computed by Silo. Nh kIf variable references within the defns strings do not have a leading slash (/) (indicating an [feabsolute name), they are interpreted relative to the directory into which the Defvars object is write rten. For the defns string, in cases where a variables name includes special characters (such as / Rj@u. { } [ ] + - = ), the entire variable reference should be bracketed by < and > characters. HHˆ ) for the variable references due to the fact @Ethat these variable references have a slash character (/) in them.  FU> dThe third entry (2) defines a derived vector variable named vel from three scalar variables named SU<cVx, Vy, and Vz while the fourth entry (3) defines a scalar variable, speed to be the magniftude of the vector variable named vel. The last entry (4) defines a deviatoric stress tensor. These  @dlast two cases demonstrate that derived variable definitions may reference other derived variables. !U6 mThe last few examples demonstrate the use of two operators, {}, and magnitude(). We call U4gthese 2expression operators. In VisIt, there are numerous expression operators to help define UZVderived variables including such things as sqrt(), round(), abs(), cos(), sin(), *Uf]dot(), cross() as well as comparison operators, gt(), ge(), lt(), le(), eq(), ֪land the conditional if(). Furthermore, the list of expression operators in VisIt grows regularly. p֪dOnly a few examples are illustrated here. For a more complete list of the available expression oper@fators and their syntax, the reader is referred to the Expressions portion of the VisIt users manual. HHˆ <HHˆ  ld < HHˆ ;HHˆ[U6 " UTUTh$DBGetDefvars #UTW HHˆ ;HHˆLU6 34UTUTh%DBInqMeshname 45UT2Inquire the mesh name associated with a variable. 52UT` 6 B`Bint DBInqMeshname (DBfile *dbfile, char *varname, char *meshname) 72\` 8 s`None 92[` : [`dbfile ;Database file pointer. < `varname =Variable name. > Ū` meshname ?ŪNReturned mesh name. The caller must allocate space for the returned name. The Ҫ@Emaximum space used is 256 characters, including the NULL terminator. @2骖` AD`9DBInqMeshname returns zero on success and -1 on failure. B2s` Cs ]The DBInqMeshname function returns the name of a mesh associated with a mesh variable. Given ;bthe name of a variable to access, one must call this function to find the name of the mesh before P@'calling DBGetQuadmesh or DBGetUcdmesh. HHˆ >ZHHˆ"  ld >["" HHˆ ; HHˆU;$Xe" D UTUTh&DBInqMeshtype EUT!Inquire the mesh type of a mesh. F2UT` G B`3int DBInqMeshtype (DBfile *dbfile, char *meshname) H2\` I s`None J2[` K [`dbfile LDatabase file pointer. M ` meshname N Mesh name. O2ʪ` P~`BDBInqMeshtype returns the mesh type on success and -1 on failure. Q2OUH` ROUH _The DBInqMeshtype function returns the type of the given mesh. The value returned is described PBHin the following table:' HHˆ >^ HHˆ%!! ld >_%% HHˆ ;#HHˆ}D))% S (*(Multi-Block Objects, Parallelism and "@Poor-Mans Parallel I/O TUTIUT YIndividual pieces of mesh created with a number of DBPutXxxmesh() calls can be assembled VURktogether into larger, 2multi-block objects. Likewise for variables and materials defined on these E@meshes. UxUN fIn Silo, multi-block objects are really just lists of all the individual pieces of a larger, coherent ULeobject. For example, a multi-mesh object is really just a long list of object names, each name being O@Uthe string passed as the name argument to a DBPutXxxmesh() call. VUH fA key feature of multi-block object is that references to the individual pieces include the option of UFaspecifying the name of the Silo file in which a piece is stored. This option is invoked when the kcolon operator (:) appears in the name of an individual piece. All characters 2before the colon sspecify the name of a Silo file. All characters after a colon specify the directory path 2within the file @where the object lives. WU> fThe fact that multi-block objects can reference individual pieces that reside in different Silo files U<emeans that Silo, a serial I/O library, can be used very effectively and scalably in parallel without fresorting to writing a file per processor. The technique used to affect parallel I/O in this manner @Nwith Silo is affectionately called 2Poor Mans Parallel I/O (PMPIO). X,U6 _A separate convenience interface, PMPIO, is provided for this purpose. The PMPIO interface pro9U4dvides almost all of the functionality necessary to use Silo in a Poor Mans Parallel way. The appliUrbcation is required to implement a few callback functions. The PMPIO interface is described at the G@end of this section. YhU.`AThe functions described in this section of the manual include... Z}`DBPutMultimesh148 [h)DBGetMultimesh153 \Tnh*DBPutMultimeshadj154 ]޴h+DBGetMultimeshadj157 ^h,DBPutMultivar158 _h-DBGetMultivar162 `h.DBPutMultimat163 ah/DBGetMultimat166 bh#0DBPutMultimatspeciTes167 ch1DBGetMultimatspecies170 dh2PMPIO_Init171 eh"3PMPIO_CreateFileCallBack174 fh 4PMPIO_OpenFileCallBack175 gh!5PMPIO_CloseFileCallBack176 hh6PMPIO_WaitForBaton177 ih7PMPIO_HandOffBaton178 jh8PMPIO_Finish179 zh<PMPIO_GroupRank180 A{h=PMPIO_RankInGroup181 HHˆ >b#HHˆ"($$  ld >c(( HHˆ ;&HHˆoU++(mUTUTh#9 :;DBPutMultimesh nUT2Write a multi-block mesh object into a Silo file. o2UT` p B ;int DBPutMultimesh (DBfile *dbfile, char *name, int nmesh, O$char *meshnames[],int meshtypes[], qUL@DBoptlist *optlist) q2v` r  Ainteger function dbputmmesh(dbid, name, lname, nmesh, meshnames, @+lmeshnames, meshtypes, optlist_id, status) stUHlMcharacter*N meshnames (>See  dbset2dstrlen  on page268.?) t2` u /U<`dbfile vժDatabase file pointer. w 窔`name x窔%Name of the multi-block mesh object. y `nmesh z=Number of meshes pieces (blocks) in this multi-block object. { ` meshnames | UArray of length nmesh containing pointers to the names of each of the mesh Jblocks written with a DBPutmesh() call. See below for %Tdescription of how to populate meshnames when the pieces are in different ‘Zfiles as well as DBOPT_MB_FILE/BLOCK_NS options to use a printf-style 2‘@Xnamescheme for large nmesh in lieu of explicitly enumerating them here. } Q` meshtypes ~QOArray of length nmesh containing the type of each mesh block such as ^]DB_QUAD_RECT, DB_QUAD_CURV, DB_UCDMESH, DB_POINTMESH, and oUr8DB_CSGMESH. Be sure to see description, below, for UNDBOPT_MB_BLOCK_TYPE option to use single, constant value when all pieces cU@are the same type.  |`optlist |LPointer to an option list structure containing additional information to be zNincluded in the object written into the Silo file. Use a NULL if there are no ѧ@ options. 2Ȫv` `:DBPutMultimesh returns zero on success and -1 on failure. 2T` 8Ҍ cThe DBPutMultimesh function writes a multi-block mesh object into a Silo file. It accepts as input n@Jthe names of the various sub-meshes (blocks) which are part of this mesh. /l eThe meshe blocks may be stored in different sub-directories within a Silo file and, optionally, even :] Rkd@ HHˆ >f&HHˆ%+'' ld >g++ HHˆ ;)HHˆ~D$$;;+UTUT dThe existence of a colon (:) anywhere in meshnames[i] indicates that the ith mesh block URcname is specified using both the Silo filename and the path in the file. All characters before the acolon are the Silo file pathname within the filesystem on which the file(s) reside. Use whatever vslash character (\ for Windows or / for Unix)  is appropriate for the underlying filesystem  in this  lpart of the string only. Silo will automatically handle changes in the slash character in this part of "gthe string if this data is ever read on a different filesystem. All characters after the colon are the @]path of the object within the Silo file  and must use only the / slash character. jUF [Use the keyword EMPTY for any block for which the associated mesh object does not exist. wUDbThis convention is often convenient in cases where there are many related multi-block objects and/PUJ@Sor that evolve in time in such a way that some blocks do not exist for some times.  U@ [The individual mesh names referenced here CANNOT be the names of other multi-block meshes. U>@[In other words, it is not valid to create a multi-mesh that references other multi-meshes.  U< `For example, in the case where the are 6 blocks to be assembled into a larger mesh named multi-U:"Hcmesh in the file foo.silo and the blocks are stored in three files as in the figure below,@  Kh&AStrings for multi-block objects.  UT_UG ithe array of strings to be passed as the meshnames argument of DBPutMultimesh are illustrated. lUEcNote that the two pieces of mesh that are in the same file as the multi-mesh object itself, multi-T`mesh, do NOT require the colon and filename option. Only those pieces of the multi-mesh object —hthat are in different files from the one the multi-block object itself resides in require the colon and —@filename option.  U= iYou may pass NULL for the meshnames argument and instead use the namescheme options, U;`DBOPT_MB_FILE_NS and DBOPT_MB_BLOCK_NS described in the table of options, below. 'mThis is particularly important for meshes consisting of O(10?5) or more blocks because it saves sub lstantial memory and I/O time. See documentation on BDBMakeNamescheme on page2-196C for ƐDhow to specify nameschemes. U3 mNote, however, that with the DBOPT_MB_FILE/BLOCK_NS options, you are specifying only the U1estring that a reader will later use in a call to DBMakeNamescheme() to create a namescheme Ϙ@Sobject suitable for generating the meshnames and not the namescheme object itself.  U- YFor convenience, two namescheme options are supported. One namescheme maps block numbers -U+ato filenames. The other maps block numbers to object names. A reader is required to then combine M `both to generate the complete block name for each mesh block. Optionally and where appropriate, &]U[one can specify a block namescheme only. External array references may be used in the name+H ]schemes. Any such array names found in the namescheme are assumed to be the names of simple, +Uk1D, integer arrays written with a DBWrite() call and existing in the same directory as the multi-p+U`block object . Finally, keep in mind that in the nameschemes, blocks are numbered starting from @zero. HHˆ >j)HHˆ(.**  ld >.. HHˆ ;,HHˆ 7g.hlptx| OUTUT bIf you are using the namescheme options and have EMPTY blocks, since the meshnames arguURsment is NULL, you can use the DBOPT_MB_EMPTY_COUNT/LIST options to explicitly enumer@Rate any empty blocks instead of having to incroporate them into your nameschemes. UN fSimilarly, when the mesh consists of blocks of all the same type, you may pass NULL for the CULemeshtypes argumnt and instead use the DBOPT_MB_BLOCK_TYPE option to specify a single, econstant block type for all blocks. This option can result in important savings for large numbers of UL@blocks. rUF cFinally, note that what is described here for the mulitmesh object in the way of name for the indiUD@Xvidual blocks applies to all multi-block objects (e.g. DBPutMulti). 2UB` S@U:BhOThe following table describes the options accepted by this function:>D HHˆ >,HHˆ+1-- ld >11 HHˆ ;/HHˆ€h1hlptx| OHHˆ >/HHˆ.400  ld >44 HHˆ ;2HHˆ|OO4OUTUD ^There is a class of options for DBMulti- objects that is VERY IMPORTANT in helping to accelerUBaate performance in down-stream post-processing tools. We call these 2Down-stream Performance 2jOptions. In order of utility, these options are DBOPT_EXTENTS, DBOPT_MIXLENS and ^DBOPT_MATLISTS and DBOPT_ZONECOUNTS. Although these options are creating redun"cdant data in the Silo database, the data is stored in a manner that is far more convenient to down-astream applications that read Silo databases. Therefore, the user is strongly encouraged to make @use of these options. U6 cRegarding the DBOPT_EXTENTS option, see the notes for DBPutMultivar. Note, however, that U4@6here the extents are for the coordinates of the mesh. U2 cRegarding the DBOPT_ZONECOUNTS option, this option will help down-stream post-processing U0@Ltools to select an appropriate static load balance of blocks to processors. U. `Regarding the DBOPT_HAS_EXTERNAL_ZONES option, this option will help down-stream post-U,]processing tools accelerate computation of external boundaries. When a block is known not to Udcontain any external zones, it can be quickly skipped in the computation. Note that while false posj4`itives can negatively effect only performance during downstream external boundary calculations, j4@/false negatives will result in serious errors. U$ hIn other words, it is ok for a block that does not have external zones to be flagged as though it does. #U"`In this case, all that will happen in down-stream post-processing tools is that work to compute 0Vcexternal faces that could have been avoided will be wasted. However, it is not ok for a block that W bhas external zones to be flagged as though it does not. In this case, down-stream post-processing ֫@Htools will skip boundary computation when it should have been computed. _U RThree options, DBOPT_GROUPINGS_SIZE, DBOPT_GROUPINGS are deprecated. Instead, use lU]MRG trees to handle grouping. Also, see notes regarding _visit_domain_groups variable convenPq[@tion. HHˆ >2HHˆ1733 ld >77 HHˆ ;5HHˆ[U67 UTUThEDBGetMultimesh UT.Read a multi-block mesh from a Silo database. 2UT`  B`=DBmultimesh *DBGetMultimesh (DBfile *dbfile, char *meshname) 2\`  s`None !2[` " [`dbfile #Database file pointer. $ ` meshname %Name of the multi-block mesh. &2ʪ` '~`\DBGetMultimesh returns a pointer to a DBmultimesh structure on success and NULL on failure. (2OUH` )OUH ]The DBGetMultimesh function allocates a DBmultimesh data structure, reads a multi-block mesh @gfrom the Silo database, and returns a pointer to that structure. If an error occurs, NULL is returned. *23` +Ȫ dFor the details of the data structured returned by this function, see the Silo library header file, PW@1silo.h, also attached to the end of this manual. HHˆ >5HHˆ4:66  ld ? :: HHˆ ;8HHˆvU11:, UTUThFDBPutMultimeshadj -UT?Write some or all of a multi-mesh adjacency object into a Silo UT@file. .2UT` / P`8int DBPutMultimeshadj(DBfile *dbfile, const char *name, 0]`A int nmesh, const int *mesh_types, const int *nneighbors, 1^`/ const int *neighbors, const int *back, 2^`3 const int *nnodes, const int *nodelists[], 3`3 const int *nzones, const int *zonelists[], 4` DBoptlist *optlist) 52` 6 ª`None 72` 8 `dbfile 9Database file pointer. : `name ;)Name of the multi-mesh adjacency object. < `nmesh =MThe number of mesh pieces in the corresponding multi-mesh object. This value !@:must be identical in repeated calls to DBPutMultimeshadj. > 3` mesh_types ?3PInteger array of length nmesh indicating the type of each mesh in the @Ocorresponding multi-mesh object. This array must be identical to that which is p;passed in the DBPutMultimesh call and in repeated calls to ^`@DBPutMultimeshadj. @ l` nneighbors AlTInteger array of length nmesh indicating the number of neighbors for each y>mesh piece. This array must be identical in repeated calls to DBPutMultimeshadj.  x"f`nnodes G>f"LArray of O integers indicating for each mesh piece, the number of nodes Kd"]that it  shares with each of its neighbors. Entries from index P to index Q u]Gindicate the number of nodes that mesh piece k shares with each of its 6=neighbors. This array must be identical in repeated calls to Pv@.DBPutMultimeshadj. This argument may be NULL. HHˆ ?8HHˆ7=99 ld ?== HHˆ ;;HHˆ|00)=H UTUT` nodelists IUT"QArray of R pointers to arrays of integers. Entries from index S to index UR"NT enumerate the nodes that mesh piece k  shares with each of its Lneighbors. The contents of a specific nodelist array depend on the types of 0Mmeshes that are neighboring each other (See description below). nodelists[m] Jmay be NULL even if nnodes[m] is non-zero. See below for a description of Jrepeated calls to DBPutMultimeshadj. This argument must be NULL if nnodes @ is NULL. J gUF`nzones KgUF"LArray of U integers indicating for each mesh piece, the number of zones tUD"Zthat are  adjacent with each of its neighbors. Entries from index V to index ZUJ"WW indicate the number of zones that mesh piece k has  adjacent to each of Aits neighbors. This array must be identical in repeated calls to @.DBPutMultimeshadj. This argument may be NULL. L U<` zonelists MU<"QArray of X pointers to arrays of integers. Entries from index Y to index U:"TZ enumerate the zones that mesh piece k has  adjacent with each of its hULneighbors. The contents of a specific zonelist array depend on the types of U8Mmeshes that are neighboring each other (See description below). zonelists[m] Jmay be NULL even if nzones[m] is non-zero. See below for a description of 0Jrepeated calls to DBPutMultimeshadj. This argument must be NULL if nzones @ is NULL. N U.`optlist O U.LPointer to an option list structure containing additional information to be U,Nincluded in the object written into the Silo file. Use a NULL if there are no fU@ options. P2>U(` Q;S ^Note that the functionality this object provides is now more efficiently and conveniently hanbU$Xdled via a Mesh Region Grouping (MRG) tree. Users are encouraged to use MRG trees as an nX LYalternative to DBPutMultimeshadj(). [See ;DBMakeMrgtree; on page183.\ RU ,nDBPutMultimeshadj is another 2Down-stream Performance Option (See ]DBPutMultimesh on  page2-148^). It is an alternative to including  ghost-zones (See _DBPutMultimesh on page2-148`) E^in the mesh and can therefore help to reduce file size, particularly for unstructured meshes. SU [A multi-mesh adjacency object informs down-stream, post-processing tools such as VisIt how U_nodes and/or zones, should be shared between neighboring mesh pieces to eliminate post-processűading discontinuity artifacts along the boundaries between the pieces. If neither this information is g\dprovided nor ghost zones are stored in the file, post-processing tools must then infer this informa`tion from global node or zone ids (if they exist) or, worse, by matching coordinates which is a d@time-consuming process. T U ]DBPutMultimeshadj is used to indicate how various mesh pieces in a multi-mesh object abut by U mspecifying for each mesh piece, the nodes it  shares with other mesh pieces and/or the zones is has  Տiadjacent to other mesh pieces. Note the important distinction in how nodes and zones are classified z{lhere. Nodes are  shared between mesh pieces while zones are merely  adjacent between mesh +ubpieces. In a call to DBPutMultimeshadj, a caller may write information for either shared nodes or 08@adjacent zones, or both. U_U aIn practice, applications tend to use the same mesh type for every mesh piece. Thus, for ucd and lUfpoint meshes, the nodelist (or zonelist) arrays will consists of pairs of integers where the first of P#6cthe pair identifies a node (or zone) in the given mesh while the second identifies the shared node HHˆ ?;HHˆ:@<<  ld ?@@ HHˆ ;>HHˆ(M\@UUTUTd(or adjacent zone) in a neighbor. Likewise, for quad meshes, the nodelist (or zonelist) arrays will URcconsists of 15 integers the first 6 of which identify a slab of nodes (or zones) in the given quad cmesh. The second set of 6 integers identify the slab of shared nodes (or zones) in a neighbor quad fmesh and the last 3 integers indicate the orientation of the neighbor quad mesh relative to the given dquad mesh. For example the entries (1,2,3) for these 3 integers mean that all axes are aligned. The gentries (-2,1,3) mean that the -J axis of the neighbor mesh piece aligns with the +I axis of the given 0dmesh piece, the +I axis of the neighbor mesh piece aligns with the +J axis of the given mesh piece, @)and the +K axes both align the same way. VwUD _The specific contents of a given nodelist array depend on the types of meshes between which it UBlenumerates shared nodes. The table below describes the contents of nodelist array m given the difUBH?ferent mesh types that it may enumerate shared nodes for.a WU> eThis function is designed so that it may be called multiple times, each time writing a different porU<etion of multi-mesh adjacency information to the object. On the first call, space is allocated in the AaSilo file for the entire object. The required space is determined by the contents of all but the UCRenodelists (and/or zonelists) arrays. The contents of the nodelists (and/or zonelists) arrays are the Paonly arguments that are permitted to vary from call to call and then they may vary only in which PXentries are NULL and non-NULL. Whenever an entry is NULL and the corresponding entry in >Oannodes (or nzones) array is non-zero, the assumption is that the information is provided in some PM@!other call to DBPutMultimeshadj. HHˆ ?>HHˆ=C?? ld ?CC HHˆ ;AHHˆU$CX UTUThbDBGetMultimeshadj YUT7Get some or all of a multi-mesh nodal adjacency object Z2UT` [ B`2DBmultimeshadj *DBGetMultimeshadj(DBfile *dbfile, \O`% const char *name, ]qUL`6 int nmesh, const int *mesh_pieces) ^2v` _ `None `2` a ⪘`dbfile bDatabase file pointer c ͪ`name dͪ.Name of the multi-mesh nodal adjacency object e ߪ`nmesh fߪENumber of mesh pieces for which nodal adjacency information is being 쪔Oobtained. Pass zero if you want to obtain all nodal adjacency information in a @ single call. g ` mesh_pieces h KInteger array of length nmesh indicating which mesh pieces nodal adjacency @integer function dbputmvar(dbid, name, lname, nvar, varnames, @)lvarnames, vartypes, optlist_id, status) utUHlLcharacter*N varnames (dSee  dbset2dstrlen  on page268.e) v2` w /U<`dbfile xժDatabase file pointer. y 窔`name z窔"Name of the multi-block variable. { `nvar |>Number of variables associated with the multi-block variable. } ` varnames ~ YArray of length nvar containing pointers to the names of the variables written  awith DBPutvar() call. See fDBPutMultimesh on page2-148g Wfor description of how to populate varnames when the pieces are in different %Zfiles as well as DBOPT_MB_BLOCK/FILE_NS options to use a printf-style 23UDVnamescheme for large nvar in lieu of explicitly enumerating them here.  Q` vartypes QMArray of length nvar containing the types of the variables such as ^ hDB_POINTVAR, DB_QUADVAR, or DB_UCDVAR. See hDBPutMultimesh on  Xpage2-148i, for DBOPT_MB_BLOCK_TYPE option to use single, constant value oUrD#when all pieces are the same type.  ~`optlist ~LPointer to an option list structure containing additional information to be |Nincluded in the object written into the Silo file. Use a NULL if there are no ͞@ options. 2x` Ѭ`9DBPutMultivar returns zero on success and -1 on failure. 2HB` hWThe DBPutMultivar function writes a multi-block variable object into a Silo file.j 2` S@)BhOThe following table describes the options accepted by this function:>k HHˆ ?DHHˆCIEE ld @II HHˆ ;GHHˆ” nI nrvz  #'+/3~HHˆ @GHHˆFLHH  ld @LL HHˆ ;JHHˆf  ~L #'+/3~ UTUB cRegarding the DBOPT_EXTENTS option, an extent tuple is a tuple of the variables minimum U@dvalue(s) followed by the variables maximum value(s). If the variable is a single, scalar variable, eeach extent tuple will be 2 values of the form {min,max}. Thus, DBOPT_EXTENTS_SIZE will be 0t2. If the variable consists of nvars subvariables (e.g. the nvars argument in any of DBPutPointivar, DBPutQuadvar, DBPutUcdvar is greater than 1), then each extent tuple is 2*nvars values of ]each subvariables minimum value followed by each subvariables maximum value. In this case, @3DBOPT_EXTENTS_SIZE will be 2*nvars.  'U4 UFor example, if we have a multi-var object of a 3D velocity vector on 2 blocks, then 4U2jDBOPT_EXTENTS_SIZE will be 2*3=6 and the DBOPT_EXTENTS array will be an array of U@)2*6 doubles organized as follows...  VU. ={Vx_min_0, Vy_min_0, Vz_min_0, Vx_max_0, Vy_max_0, Vz_max_0, PcU,@integer function dbputmmat(dbid, name, lname, nmat, matnames, @lmatnames, optlist_id, status) $2` % UD`dbfile &Database file pointer. ' ͪ`name (ͪ#Name of the multi-material object. ) ߪ`nmat *ߪ$Number of material blocks provided. + ` matnames ,VArray of length nmat containing pointers to the names of the material block  ^objects, written with DBPutMaterial(). See nDBPutMultimesh on page2-148o Wfor description of how to populate matnames when the pieces are in different {Zfiles as well as DBOPT_MB_BLOCK/FILE_NS options to use a printf-style 2U&DVnamescheme for large nmat in lieu of explicitly enumerating them here. - 7`optlist .7LPointer to an option list structure containing additional information to be DNincluded in the object written into the Silo file. Use a NULL if there are no UV@options /2h` 08T`7DBPutMultimat returns zero on success and -1 on error. 12` 280`LThe DBPutMultimat function writes a multi-material object into a Silo file. 320` C4@BhOThe following table describes the options accepted by this function:>p HHˆ @CSHHˆRXTT  ld @]XX# HHˆ ;VHHˆ¯  [`dbfile ?Database file pointer @ `name A(Name of the multi-block material object B2ʪ` C~`ZDBGetMultimat returns a pointer to a DBmultimat structure on success and NULL on failure. D2OUH` EOUH _The DBGetMultimat function allocates a DBmultimat data structure, reads a multi-block material @gfrom the Silo database, and returns a pointer to that structure. If an error occurs, NULL is returned. F23` GȪ dFor the details of the data structured returned by this function, see the Silo library header file, PW@1silo.h, also attached to the end of this manual. HHˆ @|\HHˆ[a]] ld @ab& HHˆ ;_HHˆ›U" a!!%)-159=AEIH UTUThrDBPutMultimatspeciAes IBUT5Write a multi-block species object into a Silo file. J2UT` KCB Aint DBPutMultimatspecies (DBfile *dbfile, char *name, int nspec, O@'char *specnames[], DBoptlist *optlist) L2i` M `None N2UH` OCUH`dbfile P@Database file pointer. QC`name R@+Name of the multi-block species structure. SCҪ`nspec T@Ҫ$Number of species objects provided. UC䪖` specnames V@䪖YArray of length Dnspec@ containing pointers to the names of each of the species.  ZSee sDBPutMultimesh on page2-148t for description of how to populate Aspecnames when the pieces are in different files as well as b]DBOPT_MB_BLOCK/FILE_NS options to use a printf-style 2namescheme for Ӫ|DClarge nspec in lieu of explicitly enumerating them here. WC*`optlist X@*LPointer to an option list structure containing additional information to be 7Nincluded in the object written into the Silo file. Use a NULL if there are no @ options. Y2[` Z@{6`@DBPutMultimatspecies returns zero on success and -1 on failure. [2\` \@\ dThe DBPutMultimatspecies function writes a multi-block material species object into a Silo file. It ~@_accepts as input descriptions of the various sub-species (blocks) which are part of this mesh. ]2Ī|` S^@ BBhOThe following table describes the options accepted by this function:>u HHˆ @_bHHˆ^e``  l i}O [_ai}Od @ee' HHˆ ;cHHˆ–  Ae" !%)-159=AEIHHˆ @cHHˆahdd ld @hh( HHˆ ;fHHˆR ELh#EIHHˆ @fHHˆekgg  ld @kk) HHˆ ;iHHˆuU2k$_ UTUThvDBGetMultimatspecies `UT1Read a multi-block species from a Silo database. a2UT` b B`?DBmultimesh *DBGetMultimatspecies (DBfile *dbfile, char *name) c2\` d s`None e2[` f [`dbfile gDatabase file pointer. h `name i*Name of the multi-block material species. j2ʪ` k~ \DBGetMultimatspecies returns a pointer to a DBmultimatspecies structure on success and NULL @ on failure. l2` m` ^The DBGetMultimatspecies function allocates a DBmultimatspecies data structure, reads a multi-)dblock material species from the Silo database, and returns a pointer to that structure. If an error —@occurs, NULL is returned. n2M` o dFor the details of the data structured returned by this function, see the Silo library header file, Pq@1silo.h, also attached to the end of this manual. HHˆ @iHHˆhnjj ld Abnn* HHˆ ;lHHˆ|U00n%p UTUThwxPMPIO_Init qUTGInitialize a Poor Mans Parallel I/O interaction with the Silo library r2UT` s B`?PMPIO_baton_t *PMPIO_Init(int numFiles, PMPIO_iomode_t ioMode, tO`MPI_Comm mpiComm, int mpiTag, uqUL`$PMPIO_CreateFileCallBack createCb, vqUL` PMPIO_OpenFileCallBack openCb, w`"PMPIO_CloseFileCallBack closeCB, x`void *userData) y2` z `None {2%` | ` numFiles }⪔MThe number of individual Silo files to generate. Note, this is the number of 朗Rparallel I/O streams that will be running simultaneously during I/O. A value of 1 "Jcause PMPIO to behave serially. A value equal to the number of processors Ncauses PMPIO to create a file-per-processor. Both values are unwise. For most qUD@Aparallel HPC platforms, values between 8 and 64 are appropriate. ~ (`ioMode (ZChoose one of either PMPIO_READ or PMPIO_WRITE. Note, you can not use 5@=PMPIO to handle both read and write in the same interaction.  G`mpiComm GGThe MPI communicator you would like PMPIO to use when passing the tiny 2TTbaton messages it needs to coordinate access to the underlying Silo files. See R@=documentation on MPI for a description of MPI communicators.  s`mpiTag sLThe MPI message tag you would like PMPIO to use when passing the tiny baton ~@Emessages it needs to coordinate access to the underlying Silo files.  |` createCb |KThe file creation callback function. This is a function you implement that zZPMPIO will call when the 2first processor in each group needs to create the Silo ܪWfile for the group. It is needed only for PMPIO_WRITE operations. If default h0@Abehavior is acceptable, pass PMPIO_DefaultCreate here.  ˪t`openCb ˪tMThe file open callback function. This is a function you implement that PMPIO تrOwill call when the second and subsequent processors in each group need to open Z^a Silo file. It is needed for both PMPIO_READ and PMPIO_WRITE operations. @JIf default behavior is acceptable, pass PMPIO_DefaultOpen here.  l`closeCb  lNThe file close callback function. This is a function you implement that PMPIO jMwill call when a processor in a group needs to close a Silo file. If default Tħ@@behavior is acceptable, pass PMPIO_DefaultClose here.  0f` userData  0fK[OPT] Arbitrary user data that will be passed back to the various callback =d@/functions. Pass NULL(0) if this is not needed.  2Tb`   ]A pointer to a PMPIO_baton_t object to be used in subsequent PMPIO calls on success. NULL on Px^@ failure. HHˆ AelHHˆkqmm  ld Afqq+ HHˆ ;oHHˆn++q&2UTUT` :UR [The PMPIO interface was designed to be separate from the Silo library. To use it, you must UPdinclude the PMPIO header file, pmpio.h, Eafter: the MPI header file, mpi.h, in your applicaation. This interface was designed to work with any serial library and not Silo specifically. For @Sexample, these same routines can be used with raw HDF5 or PDB files if so desired. ZUJ `The PMPIO interface decomposes a set of P processors into N groups and then provides access, in gUH@]parallel, to a separate Silo file per group. This is the essence of Poor Mans Parallel I/O. |UF YFor PMPIO_WRITE operations, each processor in a group creates its own Silo sub-directory UDawithin the Silo file to write its data to. At any one moment, only one processor from each group WUDphas a file open for writing. Hence, the I/O is serial 2within a group. However, because a processor in Qkeach of the N groups is writing to its own Silo file, simultaneously, the I/O is parallel 2across Q@groups. U< aThe number of files, N, can be chosen wholly independently of the total number of processors perU:emitting the application to tune N to the underlying filesystem. If N is set to 1, the result will be U@lserial I/O to a single file. If N is set to P, the result is one file per processor. Both of these are poor UUH@ choices. U4 `Typically, one chooses N based on the number of available I/O channels. For example, a parallel U2aapplication running on 2,000 processors and writing to a filesystem that supports 8 parallel I/O UH\channels could select N=8 and achieve nearly optimum I/O performance and create only 8 Silo %UD@files. =U,`[On 2every processor, the sequence of PMPIO operations takes the following form...  ʁT`&PMPIO_baton_t *bat = PMPIO_Init(...); _U(`2dbFile = (DBfile *) PMPIO_WaitForBaton(bat, ...); U` U`2i` ? `None @2UH` A UH`fname B#The name of the Silo file to open. C `dname DEThe name of the directory 2within the Silo file to work in. E Ҫ`iomode FҪSThe iomode of this PMPIO interaction. This is the value passed as ioMode ߪ@$argument to PMPIO_Init(). G `udate HIA pointer to any additional user data. This is the pointer passed as the @2userData argument to PMPIO_Init(). I2` Jl`3A void pointer to the opened file handle that was. K2` L`+This defines the PMPIO open file callback. Mo`YYour implementation of this open file callback should minimally do the following things. Nm ~For PMPIO_WRITE operations, it should DBOpen() the Silo file named fname, DBMkDir() a @Wdirectory named dname and DBSetDir() to directory dname. O oFor PMPIO_READ operations, it should DBOpen() the Silo file named fname and then @8DBSetDir() to the directory named dname. PȪ~ eThe PMPIO_DefaultOpen function does only the minimal work, returning a void pointer to the Pժ|@opened DBfile Silo handle. HHˆ BxHHˆw}yy  ld B}}/ HHˆ ;{HHˆWU6}*Q UTUTh{PMPIO_CloseFileCallBack RUTThe PMPIO file close callback S2UT` T B`Ctypedef void (*PMPIO_CloseFileCallBack)(void *file, void *udata); U2\` V s`None W2[` X [`file Y2void pointer to the file handle (DBfile pointer). Z `udata [IA pointer to any additional user data. This is the pointer passed as the @2userData argument to PMPIO_Init(). \2ת` ]D`None ^2s` _s`6This defines the PMPIO close file callback interface. `1 bYour implementation of this callback function should simply close the file. It us up to the imple>@amentation to know the correct time of the file handle passed as the void pointer file. QaS`GThe PMPIO_DefaultClose function simply closes the Silo file. HHˆ B{HHˆz|| ld B0 HHˆ ";~HHˆ U!!+b UTUTh|PMPIO_WaitForBaton cUT)Wait for exclusive access to a Silo file d2UT` e B`-void *PMPIO_WaitForBaton(PMPIO_baton_t *bat, fO`,const char *filename, const char *dirname) g2i` h `None i2UH` j UH`bat kFThe PMPIO baton handle obtained via a call to PMPIO_Init(). l ` filename m>The name of the Silo file this processor will create or open. n Ҫ`dirname oҪLThe name of the directory within the Silo file this processor will work in. p2骖` qR \NULL (0) on failure. Otherwise, for PMPIO_WRITE operations the return value is whatever the  ^create or open file callback functions return. For PMPIO_READ operations, the return value is _@2whatever the open file callback function returns. r21` s±j jAll processors should call this function as the 2next PMPIO function to call following a call to U@PMPIO_Init(). tj rFor all processors that are the 2first processors in their groups, this function will return immediately wmafter having called the file creation callback specified in PMPIO_Init(). Typically, this callback dwill have created a file with the name filename and a directory in the file with the name 8@Wdirname as well as having set the current working directory to dirname. u uFor all processors that are 2not the first in their groups, this call will block, waiting for the processor ~opreceding it to finish its work on the Silo file for the group and 2pass the baton to the next procesN@sor. vժz cA typical naming convention for filename is something like my_file_%03d.silo where the x x%03d is replaced with the 2group rank (}See PMPIO_GroupRank on page180.~) of the proces1]sor. Likewise, a typical naming convention for dirname is something like domain_%03d where 0W> zthe %03d is replaced with the 2rank-in-group (See PMPIO_RankInGroup on page181.) of the P2D processor. HHˆ B~HHˆ}  ld B1 HHˆ &;HHˆ:U8,w UTUThPMPIO_HandOffBaton xUT"Give up all access to a Silo file y2UT` z B`>void PMPIO_HandOffBaton(const PMPIO_baton_t *bat, void *file) {O` |2i` } `None ~2UH`  UH`bat - UTUThPMPIO_Finish UTCFinish a Poor Mans Parallel I/O interaction with the Silo library  2UT`  B`$void PMPIO_Finish(PMPIO_baton *bat)  2\`  s`None  2[`  [`bat  int PMPIO_GroupRank(const PMPIO_baton_t *bat, int rankInComm) 2\`  s`None 2[`  [`bat Rank of the calling processor in the MPI communicator used in @PMPIO_Init(). /2ת` 0D`DThe rank of the calling processor 2within its PMPIO group. 12s` 2s bThis is a convenience function for applications to determine which processor a given processor is P)@within its PMPIO group. HHˆ B HHˆ   ld B5 HHˆ 6; HHˆz))03  &Part Assemblies, AMR, Slide Surfaces, "@*Nodesets and Other Arbitrary Mesh Subsets 4UTIUT \This section of the API manual describes Mesh Region Grouping (MRG) trees and Groupel Maps. VURbMRG trees describe the decomposition of a mesh into various regions such as parts in an assembly, E_materials (even mixing materials), element blocks, processor pieces, nodesets, slide surfaces, 0E]boundary conditions, etc. Groupel maps describe the, problem sized, details of the subsetted `regions. MRG trees and groupel maps work hand-in-hand in efficiently (and scalably) characteriz@#ing the various subsets of a mesh. 5UH YMRG trees are associated with (e.g. 2bound to) the mesh they describe using the UFRDBOPT_MRGTREE_NAME optlist option in the DBPutXxxmesh() calls. MRG trees are used `both to describe a multi-mesh object and then again, to describe individual pieces of the multi-UH@mesh. 6U@ _In addition, once an MRG tree has been defined for a mesh, variables to be associated with the U>amesh can be defined on only specific subsets of the mesh using the DBOPT_REGION_PNAMES UP@+optlist option in the DBPutXxxvar() calls. 7 U: bBecause MRG trees can be used to represent a wide variety of subsetting functionality and because U8`applications have still to gain experience using MRG trees to describe their subsetting applicalU^otions, the methods defined here are design to be as 2free-form as possible with few or no limitations : `on, for example, naming conventions of the various types of subsets. It is simply impossible to ^know a priori all the different ways in which applications may wish to apply MRG trees to con@struct subsetting information. 8`U. bFor this reason, where a specific application of MRG trees is desired (to represent materials for mU,gexample), we document the 2naming convention an application must use to affect the representaU@tion. 9U(`AThe functions described in this section of the API manual are... dh/DBMakeMrgtree183 <hDBAddRegion187 k&ShDBAddRegionArray189 l/hDBSetCwr191 :2vhDBGetCwr192 ;1hDBPutMrgtree193 <1hDBGetMrgtree194 =hDBFreeMrgtree195 >hDBMakeNamescheme196 ?hDBGetName198 @hDBPutMrgvar199 AhDBGetMrgvar201 BhDBPutGroupelmap202 ChDBGetGroupelmap204 DhDBFreeGroupelmap205 AEhDBOPT_REGION_PNAMES206 HHˆ B HHˆ  ld B6 HHˆ :;HHˆ‡)1J UTUThDBMakeMrgtree KUT9Create and initialize an empty mesh region grouping tree L2UT` M B`7DBmrgtree *DBMakeMrgtree(int mesh_type, int info_bits, NO`$int max_children, DBoptlist *opts) O2i` P  Ainteger function dbmkmrgtree(mesh_type, info_bits, max_children, @optlist_id, tree_id) Q{`1returns handle to newly created tree in tree_id. R2` S ` mesh_type TȪIThe type of mesh object the MRG tree will be associated with. An example ժ@0would be DB_MULTIMESH, DB_QUADMESH, DB_UCDMESH. U 窔` info_bits V窔UNUSED W ` max_children X2Maximum number of immediate children of the root. Y `opts Z Additional options [2"` \`CA pointer to a new DBmrgtree object on success and NULL on failure ]2U@` ^U@ kThis function creates a 2Mesh Region Grouping Tree (MRG) tree used to define different regions in t@a mesh. _ aAn MRG tree is used to describe how a mesh is composed of regions such as materials, parts in an eassembly, levels in an adaptive refinement hierarchy, nodesets, slide surfaces, boundary conditions, ¿U"Lfas well as many other kinds of regions. An example is shown in Figure 0-8 on page 183. W`„)hExample of MRGTree HHˆ BHHˆ  ld B7 HHˆ >;HHˆKII2aUTUT bIn a multi-mesh setting, an MRG tree describing all of the subsets of the mesh is associated with URcthe top-level multimesh object. In addition, separate MRG trees representing the relevant portions @?of the top-level MRG tree are also associated with each block. bUN `MRG trees can be used to describe a wide variety of subsets of a mesh. In the paragraphs below, CUL^we outline the use of MRG trees to describe a variety of common subsetting scenarios. In some @Zcases, a specific naming convention is required to fully specify the subsetting scenario. ceUH ]The paragraphs below describe how to utilize an MRG tree to describe various common kinds of rUF@decompositions and subsets. d:UD KMulti-Block Grouping (obsoletes DBOPT_GROUPING options for DBPutMultimesh, UB@"_visit_domain_groups convention) eU@ fA 2multi-block grouping is the assignment of the blocks of a multi-block mesh (e.g. the mesh U>]objects created with DBPutXxxmesh() calls and enumerated by name in a DBPutMultimesh() call) }bto one of several groups. Each group in the grouping represents several blocks of the multi-block nemesh. Historically, support for such a grouping in Silo has been limited in a couple of ways. First, 0nbonly a single grouping could be defined for a multi-block mesh. Second, the grouping could not be ]hierarchically defined. MRG trees, however, support both multiple groupings and hierarchical @ groupings. f U2 cIn the MRG tree, define a child node of the root named groupings. All desired groupings shall be U0@$placed under this node in the tree. g.U. [For each desired grouping, define a groupel map where the number of segments of the map is ;U,nequal to the number of desired groups. Map segment i will be of groupel type DB_BLOCKCENT UJiand will enumerate the blocks to be assigned to group i. Next, add regions (either an array of UTaregions or one at a time) to the MRG tree, one region for each group and specify the groupel map "HHname and other map parameters to be associated with these regions. h]O`9Examples of MRG trees for single and multiple groupings. iUTq4 cIn the diagram above, for the multiple grouping case, two groupel map objects are defined; one for P~4aeach grouping. For the A grouping, the groupel map consists of 4 segments (all of which are of HHˆ BHHˆ ld B8 HHˆ B;HHˆt++3iUTUT^groupel type DB_BLOCKCENT) one for each grouping in side, top, bottom and front. Each URfsegment identifies the blocks of the multi-mesh (at the root of the MRG tree) that are in each of the U4 groups. For the B grouping, the groupel map consists of 2 segments (both of type 0^DB_BLOCKCENT), for each grouping in skinny and fat. Each segment identifies the blocks of @'the multi-mesh that are in each group. jPUJ cIf, in addition to defining which blocks are in which groups, an application wishes to specify spe]UH`cific nodes and/or zones of the group that comprise each block, additional groupel maps of type DeDB_NODECENT or DB_ZONECENT are required. However, because such groupel maps are speciUbfied in terms of nodes and/or zones, these groupel maps need to be defined on an MRG tree that is U@bassociated with an individual mesh block. Nonetheless, the manner of representation is analogous. k:U@`AMulti-Block Neighbor Connectivity (obsoletes DBPutMultimeshadj): l6 aMulti-block neighbor connectivity information describes the details of how different blocks of a U<^multi-block mesh abut with shared nodes and/or adjacent zones. For a given block, multi-block bneighbor connectivity information lists the blocks that share nodes (or have adjacent zones) with Uhdthe given block and then, for each neighboring block, also lists the specific shared nodes (or adjaUd@ cent zones). mU4 ^If the underlying mesh type is structured (e.g. DBPutQuadmesh() calls were used to create the U2]individual mesh blocks), multi-block neighbor connectivity information can be scalably reprer(csented entirely at the multi-block level in an MRG tree. Otherwise, it cannot and it must be repreasented at the individual block level in the MRG tree. This section will describe both scenarios. V$^Note that these scenarios were previously handled with the now deprecated DBPutMultimeshadj() 5V @^call. That call, however, did not have favorable scalaing behavior for the unstructured case. nMU( bThe first step in defining multi-block connectivity information is to define a top-level MRG tree ZU&_node named neighbors. Underneath this point in the MRG tree, all the information identifying F@(multi-block connectivity will be added. o|U" iNext, create a groupel map with number of segments equal to the number of blocks. Segment i of U othe map will by of type DB_BLOCKCENT and will enumerate the neighboring blocks of block i. K]Next, in the MRG tree define a child node of the root named neighborhoods. Underneath this \^node, define an array of regions, one for each block of the multiblock mesh and associate the  @(groupel map with this array of regions. pU _For the structured grid case, define a second groupel map with number of segments equal to the UZnumber of blocks. Segment i of the map will be of type DB_NODECENT and will enumerate the Hbslabs of nodes block i shares with each of its neighbors in the same order as those neighbors are $4blisted in the previous groupel map. Thus, segment i of the map will be of length equal to the numd#dber of neighbors of block i times 6 (2 ijk tuples specifying the lower and upper bounds of the slab z|@of shared nodes). qU  ]For the unstructured case, it is necessary to store groupel maps that enumerate shared nodes (U ^between shared blocks on MRG trees that are associated with the individual blocks and NOT the d0~@Emulti-block mesh itself. However, the process is otherwise the same. rJU bIn the MRG tree to be associated with a given mesh block, create a child of the root named neighWUXbors. For each neighboring block of the given mesh block, define a groupel map of type R[DB_NODECENT, enumerating the nodes in the current block that are shared with another block PH](or of type DB_ZONECENT enumerating the nodes in the current block that abut another block). HHˆ BHHˆ  ld C9 HHˆ F;HHˆj4rUTUTaUnderneath this node in the MRG tree, create a region representing each neighboring block of the UR@Mgiven mesh block and associate the appropriate groupel map with each region. s:UP`2Multi-Block, Structured Adaptive Mesh Refinement: t YIn a structured AMR setting, each AMR block (typically called a patch by the AMR commuKULjnity), is written by a DBPutQuadmesh() call. A DBPutMultimesh() call groups all these N@ablocks together, defining all the individual blocks of mesh that comprise the complete AMR mesh. umUH aAn MRG tree, or portion thereof, is used to define which blocks of the multi-block mesh comprise zUF@owhich 2levels in the AMR hierarchy as well as which blocks are 2refinements of other blocks. vUD fFirst, the grouping of blocks into levels is identical to multi-block grouping, described previously. UB_For the specific purpose of grouping blocks into levels, a different top-level node in the MRG bneeds to be defined named amr-levels. Below this node in the MRG tree, there should be a set of Uregions, each region representing a separate refinement level. A groupel map of type 0WDB_BLOCKCENT with number of segments equal to number of levels needs to be defined and bassociated with each of the regions defined under the amr-levels region. The ith segment of the `map will enumerate those blocks that belong to the region representing level i. In addition, an aMRG variable defining the refinement ratios for each level named amr-ratios must be defined on @1the regions defining the levels of the AMR mesh. w U2 bFor the specific purpose of identifying which blocks of the multi-block mesh are refinements of a U0^given block, another top-level region node is added to the MRG tree called amr-refinements. \Below the amr-refinements region node, an array of regions representing each block in the 䪜`multi-block mesh should be defined. In addition, define a groupel map with a number of segments toequal to the number of blocks. Map segment i will be of groupel type DB_BLOCKCENT and will ptmdefine all those blocks which are immediate refinements of block i. Since some blocks, with finest \resolution do not have any refinements, the map segments defining the refinements for these @blocks will be of zero length. HHˆ CHHˆ ld CH: HHˆ J;HHˆfU..5x UTUThDBAddRegion yUTAdd a region to an MRG tree z2UT` { B`7int DBAddRegion(DBmrgtree *tree, const char *reg_name, |O`9int info_bits, int max_children, const char *maps_name, }qUL`9int nsegs, int *seg_ids, int *seg_lens, int *seg_types, ~qUL`DBoptlist *opts) 2`   :integer function dbaddregion(tree_id, reg_name, lregname, $info_bits, max_children, maps_name, l&lmaps_name, nsegs, seg_ids, seg_lens, UL@seg_types, optlist_id, status) 2ت`  `tree 朗(The MRG tree object to add a region to.  ` reg_name The name of the new region.  ` info_bits UNUSED  %` max_children  % dBecause MRG trees are a new feature in Silo, their use in applications is not fully defined and the U<nimplementation here is designed to be as 2free-form as possible, to permit the widest flexibility in arepresenting regions of a mesh. At the same time, in order to convey the semantic meaning of cerɪBHjtain kinds of information in an MRG tree, a set of pre-defined region names is described below.> U5 bWhen a region is being defined in an MRG tree to be associated with a multi-block mesh, often the PU3@Ngroupel type of the maps associated with the region are of type DB_BLOCKCENT. HHˆ COHHˆ$ ld CP$$< HHˆ R;"HHˆrU22$7 UTUThDBAddRegionArray  UT;Efficiently add multiple, like-kind regions to an MRG tree !2UT` " B`1int DBAddRegionArray(DBmrgtree *tree, int nregn, #O`)const char **regn_names, int info_bits, $qUL`1const char *maps_name, int nsegs, int *seg_ids, %qUL`1int *seg_lens, int *seg_types, DBoptlist *opts) &2` ' `:integer function dbaddregiona(tree_id, nregn, regn_names, (`6lregn_names, info_bits, maps_name, lmaps_name, nsegs )l`3seg_ids, seg_lens, seg_types, optlist_id, status) *2˪` + e`tree ,⪔+The MRG tree object to add the regions to. - `nregn .The number of regions to add. / ` regn_names 0MThis is either an array of nregn pointers to character string names for each Vregion or it is an array of 1 pointer to a character string specifying a printf-style azPnaming scheme for the regions. The existence of a percent character (%) (used Qto introduce conversion specifications) anywhere in regn_names[0] will 0Qindicate the latter mode.The latter mode is almost always preferable, especially Xif nergn is large (say more than 100). See below for the format of the printf-@style naming string. 1 f` info_bits 2fUNUSED 3 x` maps_name 4xK[OPT] Name of the groupel maps object to be associated with these regions. ~@Pass NULL (0) if none. 5 |`nsegs 6|L[OPT] The number of groupel map segments to be associated with each region. z@n^1[OPT] Additional options. Pass NULL (0) if none. HHˆ CS"HHˆ!'##  ld CT''= HHˆ V;%HHˆL'8?2UTUT` @UR`,A positive number on success; -1 on failure A2` B ^Use this function instead of DBAddRegion() when you have a large number of similarly purposed YUL_regions to add to an MRG tree AND you can deal with the limitations of the groupel maps associeUH@ated with these regions. C{UH _The key limitation of the groupel map associated with a region created with DBAddRegionArray() UFaarray and a groupel map associated with a region created with DBAddRegion() is that every region U@]in the region array must reference nseg map segments (some of which can of course be of zero @ length). DU@ _Adding a region array is a substantially more efficient way to add regions to an MRG tree than U>badding them one at a time especially when a printf-style naming convention is used to specify the U0@region names. EU: cThe existence of a percent character (%) anywhere in regn_names[0] indicates that a printf-style U8]namescheme is to be used. The format of a printf-style namescheme to specify region names is U _described in the documentation of DBMakeNamescheme() (See DBMakeNamescheme on Lpage196.) F"U2 ]Note that the names of regions within an MRG tree are not required to obey the same variable /U0 onaming conventions as ordinary Silo objects (See DBVariableNameValid on page14.) except T^that MRG region names can in no circumstance contain either a semi-colon character (;) or a P:v@new-line character (\n). HHˆ CW%HHˆ$*&& ld D**> HHˆ Z;(HHˆhU4*9G UTUThDBSetCwr HUT/Set the current working region for an MRG tree I2UT` J B`0int DBSetCwr(DBmrgtree *tree, const char *path) K2\` L s`-integer function dbsetcwr(tree, path, lpath) M2[` N [`tree OThe MRG tree object. P `path QThe path to set. R2ʪ` S~`4Positive, depth in tree, on success, -1 on failure. T2OUH` UOUH hSets the 2current working region of the MRG tree. The concept of the current working region is @Gcompletely analogous to the current working directory of a filesystem. V23` WȪ gCurrently, this method is limited to settings up or down the MRG tree just one level. That is, it will Wework only when the path is the name of a child of the current working region or is ... This limitaPQl@*tion will be relaxed in the next release. HHˆ D(HHˆ'-))  ld D--? HHˆ ^;+HHˆUD  -:X UTUThDBGetCwr YUT.Get the current working region of an MRG tree Z2UT` [ B`$const char *GetCwr(DBmrgtree *tree) \2` ] `tree ^pThe MRG tree. _2` ` cA pointer to a string representing the name of the current working region (not the full path name, @;just current region name) on success; NULL (0) on failure. Sa2ª` HHˆ D+HHˆ*0,, ld D00@ HHˆ b;.HHˆpU20;b UTUThDBPutMrgtree cUT1Write a completed MRG tree object to a Silo file d2UT` e B`1int DBPutMrgtree(DBfile *file, const char *name, fO`:const char *mesh_name, DBmrgtree *tree, DBoptlist *opts) g2i` h  ;int dbputmrgtree(dbid, name, lname, mesh_name, lmesh_name, @tree_id, optlist_id, status) i2` j UD`file kThe Silo file handle l ͪ`name mͪ-The name of the MRG tree object in the file. n ߪ` mesh_name oߪ=The name of the mesh the MRG tree object is associated with. p `tree qThe MRG tree object to write. r `opts s1[OPT] Additional options. Pass NULL (0) if none. t2` u`,Positive or zero on success, -1 on failure. v2ܪ` wܪ bAfter using DBPutMrgtree to write the MRG tree to a Silo file, the MRG tree object itself must be Pl@freed using DBFreeMrgtree(). HHˆ D.HHˆ-3//  ld D33A HHˆ f;1HHˆ7U:3<x UTUThDBGetMrgtree yUT)Read an MRG tree object from a Silo file z2UT` { B`8DBmrgtree *DBGetMrgtree(DBfile *file, const char *name) |2\` } s`None ~2[`  [`file The Silo database file handle  `name -The name of the MRG tree object in the file. 2ʪ` ~`AA pointer to a DBmrgtree object on success; NULL (0) on failure. 2OUH` OUH`  dFor the details of the data structured returned by this function, see the Silo library header file, P3@1silo.h, also attached to the end of this manual. HHˆ D1HHˆ0622 ld F66B HHˆ j;4HHˆU@  6= UTUThDBFreeMrgtree  UT1Free the memory associated by an MRG tree object  2UT`  B`$void DBFreeMrgtree(DBmrgtree *tree)  2\`  s`(integer function dbfreemrgtree(tree_id) 2[`  [`tree The MRG tree object to free. 2` Z`None. 2UL` SUL`2Frees all the memory associated with an MRG tree. HHˆ F4HHˆ3955  ld F99C HHˆ n;7HHˆgU&&9> UTUThDBMakeNamescheme UT2Create a DBnamescheme object for generating names 2UT`  B`5DBnamescheme *DBMakeNamescheme(const char *fmt, ...) 2\`  s`None 2[`  [`fmt 6Format string for the name scheme as described below.  `... ?[Optional] additional arguments for external array references.  Ū` !2ܪ` "D \A namescheme defines a mapping between the non-negative integers (e.g. the natural numbers) eand a sequence of strings such that each string to be associated with a given integer (n) can be genT^erated from printf-style formatting of simple expressions. Nameschemes are most often used to @*define names of regions in region arrays. #/ jThe format of a printf-style namescheme is as follows. The first character of fmt is treated as 2<idelimiter character definition. Wherever this delimiter character appears (except as the first charpacter), this will indicate the end of one substring within fmt and the beginning of a next substring. /]The delimiter character cannot be any of the characters used in the expression language (see h@Cbelow) for defining expressions to generate names of a namescheme. $x oThe first substring of fmt (that is the characters from position 1 to the first delimiter character) cwill contain the complete printf-style format string. The remaining substrings will contain simple 2hexpressions, one for each conversion specifier found in the format substring, which when evaluated bwill be used as the corresponding argument in an sprintf call to generate the actual region name, ?U@when and if needed, on demand. %z kThe expression 2language for building up the arguments to be used along with the printf-style forΪx@mat string is pretty simple. &v gIt supports the +, -, *, /, % (modulo), |, &, ^ integer operators and a variant of the t@Rquestion-mark-colon operator, ? : : which requires an extra, terminating colon. 'r`1It supports grouping via ( and ) characters. (%mR gIt supports grouping of characters into arbitrary strings via the string (single quote) characters 'nband . Any characters appearing between enclosing single quotes are treated as a literal string y@dsuitable for an argument to be associated with a %s-type conversion specifier in the format string. )Ij cIt supports references to external, integer valued arrays introduced via a # character appearing Vhcbefore an arrays name and external, string valued arrays introduced via a $ character appearing Pt@before an arrays name. HHˆ F7HHˆ6<88 ld M\<> ld MBBF HHˆ z;@HHˆgU //BA: UTUThDBPutMrgvar ;UTHWrite variable data to be associated with (some) regions in an MRG tree <2UT` = B`0int DBPutMrgvar(DBfile *file, const char *name, >O`const char *mrgt_name, ?qUL`%int ncomps, const char **compnames, @qUL`&int nregns, const char **reg_pnames, A`-int datatype, void **data, DBoptlist *opts) B2` C  9integer function dbputmrgv(dbid, name, lname, mrgt_name, +lmrgt_name, ncomps, compnames, lcompnames, d)nregns, reg_names, lreg_names, datatype, @data_ids, optlist_id, status) DlMcharacter*N compnames (See  dbset2dstrlen  on page268.) ElMcharacter*N reg_names (See  dbset2dstrlen  on page268.) F`7int* data_ids (use dbmkptr to get id for each pointer) G2 ` H Bp`file I#Silo database file handle. J 5`name K5Name of this mrgvar object. L G`tname MG7name of the mrg tree this variable is associated with. N Y`ncomps OY9An integer specifying the number of variable components. P k` compnames QkX[OPT] Array of ncomps pointers to character strings representing the names of xRthe individual components. Pass NULL(0) if no component names are to be "@@ specified. R |`nregns S|:The number of regions this variable is being written for. T z` reg_pnames UzXArray of nregns pointers to strings representing the pathnames of the regions xCfor which the variable is being written. If nregns>1 and Nreg_pnames[1]==NULL, it is assumed that reg_pnames[i]=NULL for UTall i>0 and reg_pnames[0] contains either a printf-style naming +UVconvention for all the regions to be named or, if reg_pnames[0] is found to 0+UTcontain no printf-style conversion specifications, it is treated as the pathname of Pa single region in the MRG tree that is the parent of all the regions for which @attributes are being written. V j`data WjaArray of ncomps pointers to variable data. The pointer, data[i] points to an #h@=array of nregns values of type datatype. X 5f`opts Y5fAdditional options. Z2Ld` S[n` Zero on success; -1 on failure. HHˆ M@HHˆ?EAA  ld MEEG HHˆ ~;CHHˆ/qxEB\2UTUT` ]UR dSometimes, it is necessary to associate variable data with regions in an MRG tree. This call allows UPgan application to associate variable data with a bunch of different regions in one of several ways all @Nof which are determined by the contents of the reg_pnames argument. ^MUL bVariable data can be associated with all of the immediate children of a given region. This is the ZUJ]most common case. In this case, reg_pnames[0] is the name of the parent region and @Creg_pnames[i] is set to NULL for all i>0. _|UF `Alternatively, variable data can be associated with a bunch of regions whose names conform to a UDacommon, printf-style naming scheme. This is typical of regions created with the DBPutRegion^Array() call. In this case, reg_pnames[0] is the name of the parent region and {reg_pnames[i] is set to NULL for all i>0 and, in addition, reg_pnames[0] is a specially 2 tformatted, printf-style string, for naming the regions. See DBAddRegionArray on page189. for D:a discussion of the regn_names argument format. `U: bFinally, variable data can be associated with a bunch of arbitrarily named regions. In this case, U8@Seach regions name must be explicitly specified in the reg_pnames array. aU6 dBecause MRG trees are a new feature in Silo, their use in applications is not fully defined and the U4nimplementation here is designed to be as 2free-form as possible, to permit the widest flexibility in Larepresenting regions of a mesh. At the same time, in order to convey the semantic meaning of cerBHktain kinds of information in an MRG tree, a set of pre-defined MRG variables is descirbed below.> bU- aDont forget to associate the resulting region variable object(s) with the MRG tree by using the R,U+@eDBOPT_MRGV_ONAMES and DBOPT_MRGV_RNAMES options in the DBPutMrgtree() call. HHˆ MCHHˆBHDD ld MHHH HHˆ ;FHHˆ U<HCc UTUThDBGetMrgvar dUT1Retrieve an MRG variable object from a silo file e2UT` f B`6DBmrgvar *DBGetMrgvar(DBfile *file, const char *name) g2\` h s`None i2[` j [`file kSilo database file handle. l `name m4The name of the region variable object to retrieve. n2ʪ` o~`@A pointer to a DBmrgvar object on success; NULL (0) on failure. p2OUH` qOUH dFor the details of the data structured returned by this function, see the Silo library header file, P@1silo.h, also attached to the end of this manual. HHˆ MFHHˆEKGG  ld MKKI HHˆ ;IHHˆ_U//KDr UTUThDBPutGroupelmap sUT*Write a groupel map object to a Silo file t2UT` u B`Bint DBPutGroupelmap(DBfile *file, const char *name, int num_segs, vO`>int *seg_types, int *seg_lens, int *seg_ids, int **seg_data, wqUL`4void **seg_fracs, int fracs_type, DBoptlist *opts) x2v` y  ;integer function dbputgrplmap(dbid, name, lname, num_segs, ,seg_types, seg_lens, seg_ids, seg_data_ids, tUH@/seg_fracs_ids, fracs_type, optlist_id, status) zR`?integer* seg_data_ids (use dbmkptr to get id for each pointer) {R`@integer* seg_fracs_ids (use dbmkptr to get id for each pointer) |2ت` } `file ~朗The Silo database file handle.  `name 0The name of the groupel map object in the file.  `nsegs #The number of segments in the map.  %` seg_types %YInteger array of length nsegs indicating the groupel type associated with each 2;segment of the map; one of DB_BLOCKCENT, DB_NODECENT,  U@,DB_ZONECENT, DB_EDGECENT, DB_FACECENT.  Q` seg_lens QNInteger array of length nsegs indicating the length of each segment  c`seg_ids cZ[OPT] Integer array of length nsegs indicating the identifier to associate with pIeach segment. By default, segment identifiers are 0...negs-1. If default UfTidentifiers are sufficient, pass NULL (0) here. Otherwise, pass an explicit list of  @integer identifiers.  |` seg_data  |YThe groupel map data, itself. An array of nsegs pointers to arrays of integers z@Fwhere array seg_data[i] is of length seg_lens[i].  x` seg_fracs  xW[OPT] Array of nsegs pointers to floating point values indicating fractional ȪvRinclusion for the associated groupels. Pass NULL (0) if fractional inclusions are H&Rnot required. If, however, fractional inclusions are required but on only some of |z[the segments, pass an array of pointers such that if segment i has no fractional VRinclusions, seg_fracs[i]=NULL(0). Fractional inclusions are useful for, V@Famong other things, defining groupel maps involving mixing materials.  l` fracs_type lX[OPT] data type of the fractional parts of the segments. Ignored if seg_fracs j@ is NULL (0).  -h`opts -hAdditional options 2Df` S͚` Zero on success; -1 on failure. HHˆ MIHHˆHNJJ ld NNNJ HHˆ ;LHHˆCaaNE2UTUT` UR dBy itself, an MRG tree is not sufficient to fully characterize the decomposition of a mesh into varUPjious regions. The MRG tree serves only to identify the regions and their relationships in 2gross @Pterms. This frees MRG trees from growing linearly (or worse) with problem size. MUL `All regions in an MRG tree are ultimately defined, in detail, by enumerating a primitive set of 2ZUJgGrouping Elements (groupels) that comprise the regions. A groupel map is the object used for this ]purpose. The problem-sized information needed to fully characterize the regions of a mesh is UH@stored in groupel maps. UD fThe grouping elements or 2groupels are the individual pieces of mesh which, when enumerated, UB@define specific regions. U@ `For a multi-mesh object, the groupels are whole blocks of the mesh. For Silos other mesh types U>_such as ucd or quad mesh objects, the groupels can be nodes (0d), zones (2d or 3d depending on U@@0the mesh dimension), edges (1d) and faces (2d). U: cThe groupel map concept is best illustrated by example. Here, we will define a groupel map for the U8"LDmaterial case illustrated in Figure 0-6 on page 136. `5Example of using groupel map for (mixing) materials. UT&U6 cIn the example in the above figure, the groupel map has the behavior of representing the clean and 3U4amixed parts of the material decomposition by enumerating in alternating segments of the map, the P_@4clean and mixed parts for each successive material. HHˆ NLHHˆKQMM  ld O$QQK HHˆ ;OHHˆ U<QF UTUThDBGetGroupelmap UT+Read a groupel map object from a Silo file 2UT`  B`>DBgroupelmap *DBGetGroupelmap(DBfile *file, const char *name) 2\`  s`None !2[` " [`file #The Silo database file handle. $ `name %,The name of the groupel map object to read. &2ʪ` '~`DA pointer to a DBgroupelmap object on success. NULL (0) on failure. (2OUH` )OUH dFor the details of the data structured returned by this function, see the Silo library header file, P@1silo.h, also attached to the end of this manual. HHˆ O'OHHˆNTPP ld PTTL HHˆ ;RHHˆUB  TG* UTUThDBFreeGroupelmap +UT1Free memory associated with a groupel map object ,2UT` - B`)void DBFreeGroupelmap(DBgroupelmap *map) .2\` / s`None 02[` 1 [`map 2#Pointer to a DBgroupel map object. 32` 4Z`None S52UL` HHˆ PRHHˆQWSS  ld PWWM HHˆ ;UHHˆƒU""y|WH6 UTUThDBOPT_REGION_PNAMES 7UT