gnustep-make.spec
fixpath.sh
GNUsteprc
+GNUstep.conf
Announcement
************
-The GNUstep Makefile Package version 1.11.0 is now available.
+The GNUstep Makefile Package version 1.13.0 is now available.
What is the GNUstep makefile package?
=====================================
configuration, building, installation, and packaging. It also allows
the user to easily create cross-compiled binaries.
-Changes in version `1.11.0'
+Changes in version `1.13.0'
===========================
-NOTE: The libobjc library is now linked in with the base library and
-NOT with individual applications or tools (except on MingW). This
-requires that you do a complete rebuild of all libraries, tools and
-apps when switching to this new version.
+Debug libraries now have the same name as normal libraries (i.e. no "_d"
+suffix). This reduces the possiblity of multiple libraries being loaded
+into the same executable.
- * New rules for building and using DLLs were implemented. Now gcc
- and other tricks are used to properly export symbols, so no .def
- file should be needed.
-
- * The GNUsteprc file in $GNUSTEP_SYSTEM_ROOT is deprecated. See the
- new GNUstep.conf file (which is not installed by default).
-
- * Psuedo-framwork support was implemented on MingW. This essentially
- involves copying the framework to several places so it can be used
- without links, which Windows does not really support. There's no
- other clean way to do it.
-
- * Support for xxx_WINDRES_FILES on MinGW was implemented.
+ Added dragonfly OS to make targets.
+ Spaces and backslashes are no longer allowed in paths used by the
+make package (e.g. with Windows OS). The libraries can still use native
+paths.
Obtaining gnustep-make
======================
-You can get the gstep-make-1.11.0.tar.gz distribution file at
+You can get the gstep-make-1.13.0.tar.gz distribution file at
<ftp://ftp.gnustep.org/pub/gnustep/core>
Please log bug reports on the GNUstep project page
+2006-12-03 Helge Hess <helge.hess@opengroupware.org>
+
+ * bumped gnustep-make to 1.13.0 vendor branch. This most likely breaks
+ own additions but is required to make SOPE compile properly.
+ Conflicting files were: configure, rules.make, Instance/rules.make,
+ Instance/library.make. Conflicts got resolved by using the 1.13.0
+ versions of the files.
+ This also breaks specfiles. The major new change in 1.13.0 is that
+ the _d suffix for shared libraries got removed!
+
2006-03-31 Helge Hess <helge.hess@opengroupware.org>
* Instance/library.make: added a hack to redefine CC to gcj in case
* rules.make: added a rule to compile a precompiled header (.h header
to .gch), added a flag to ObjC file compilation to include a PCH
+2006-08-28 Adam Fedor <fedor@gnu.org>
+
+ * Version 1.13.0
+
+2006-08-24 Adam Fedor <fedor@gnu.org>
+
+ * common.make: Remove 'd' suffix for debug libraries.
+ * which_lib.c: Don't search for debug libraries in case there are
+ old ones still around.
+
+ * Documentation/news.texi: Update for new release.
+
+2006-08-21 Adam Fedor <fedor@gnu.org>
+
+ * target.make: Add dragonfly OS.
+ * Documentation/machine.texi: Updates.
+
+2006-07-29 10:51-EDT Gregory John Casamento <greg_casamento@yahoo.com>
+
+ * configure: Changed "cp -p" to "cp -rp" to correct breakage
+ when the file being linked is a directory.
+
+2006-07-06 Richard Frith-Macdonald <rfm@gnu.org>
+
+ * configure.ac: Prevent bad characters in paths
+ * configure: regenerate
+ * GNUstep.csh.in: remove use of obsolete substitutions
+ * GNUstep.sh.in: ditto
+ * GNUstep.conf.in: ditto
+ The use of backslash or space characters in a path/filename can
+ confuse make and shell scripts, so we check for them and prevent
+ them from being specified at configure time and/or built in to
+ scripts. Hopefully this will prevent much confusion on windows.
+
+2006-07-05 Richard Frith-Macdonald <rfm@gnu.org>
+
+ * GNUmakefile.in: install config.make in library combo specific
+ directory so that non-flattened builds can pick up the correct
+ config info for the library combo being used.
+ * common.make: pick up config.make from new location
+ * rules.make: know about new location for config.make
+
+2006-06-14 Richard Frith-Macdonald <rfm@gnu.org>
+
+ * common.make: determine host/target info before trying to load
+ host/target specific configuration.
+
+2006-05-01 Richard Frith-Macdonald <rfm@gnu.org>
+
+ * configure.ac: Change --with... options specifying paths so that if
+ someone oddly uses --without... we treat it as if they had specified
+ nothing.
+
+2006-04-26 Adam Fedor <fedor@gnu.org>
+
+ * Documentation/gnustep-howto.texi: Fix node link
+
+2006-04-26 Saso Kiselkov
+
+ * common.make: Add option to turn on native exceptions.
+
+2006-04-25 Adam Fedor <fedor@gnu.org>
+
+ * Documentation/gnustep-howto.texi: Update windowmaker address
+
+2006-04-07 Adam Fedor <fedor@gnu.org>
+
+ * Documentation/README.MinGW: Correct typo in xml instructions.
+
+2006-04-06 Adam Fedor <fedor@gnu.org>
+
+ * config.make.in: Set GNUSTEP_HOME to $(HOME). Fix if statements
+ with filter in them. Fixes bug #16010.
+
+2006-03-27 Adam Fedor <fedor@gnu.org>
+
+ * target.make (openbsd): Add additional link flags for bundle
+ loading. Patch #4989 from Andrew Sveikauskas.
+
+2006-03-27 Adam Fedor <fedor@gnu.org>
+
+ * Master/source-distribution.make (svn-tag): Add comment line
+ (svn-dist): Simplify checkout.
+ * Master/framework.make: Add build-headers rules
+ * GNUmakefile: Add special_prefix to GNUSTEP_MAKEFILES
+
+2006-03-17 Richard Frith-Macdonald <rfm@gnu.org>
+
+ * Documentation/README.MinGW: Attempt to clarify versions to be used.
+
+2006-03-13 Adam Fedor <fedor@gnu.org>
+
+ * Version 1.12.0
+
+2006-03-09 Adam Fedor <fedor@gnu.org>
+
+ * target.make (openbsd): Add specific EXTACT_CLASS_NAMES_COMMAND.
+ Patch #4957 from Andrew Sveikauskas.
+
+2006-03-07 Jeremy Bettis <jeremy@deadbeef.com>
+
+ * Instance/framework.make: Only copy headers if they changed.
+ Delete framework.dll if the compile fails.
+
+ * Instance/subproject.make: Only copy headers if they changed
+
+ * Master/framework.make: make
+ $(FRAMEWORK_NAME:=.all.framework.variables) depend on
+ $(FRAMEWORK_NAME:=.build-headers.framework.variables), sometimes
+ the copying of header files would happen too late.
+
+ * target.make: Added -Wl,--enable-auto-image-base to link command
+ for shared libs & bundles on mingw32.
+
+2006-02-23 Adam Fedor <fedor@gnu.org>
+
+ * Master/source-distribution.make: Add svn tag/dist rules
+
+ * Documentation/userfaq.texi: updates.
+
+2006-01-11 Richard Frith-Macdonald <rfm@gnu.org>
+
+ * Documentation/README.MinGW: Update with information on libxml2
+
+2006-01-05 Adam Fedor <fedor@gnu.org>
+
+ * Instance/bundle.make: Always link agains all libs when using
+ Apple's CC.
+
+2006-01-01 Richard Frith-Macdonald <rfm@gnu.org>
+
+ * openapp.in: Remove IFS setting and search again ... it prevented
+ windows paths from working (which was why it was removed in the first
+ place). Also removed insertion of '.' as a path to search ... since
+ this is generally considered a security flaw.
+ Removed some code to search in odd subdirectories.
+ Added code to search the directories specified in PATH as well as the
+ standard locations. Does this need a different path separator on
+ mingw? Can't remember and I don't currently have a windows system to
+ test on.
+
+2005-12-30 Adam Fedor <fedor@gnu.org>
+
+ * openapp.in: Re-add IFS setting and search in current dir
+ (Fixes Bug #15289).
+
+2005-12-21 Adam Fedor <fedor@gnu.org>
+
+ * Version 1.11.2
+
+2005-12-20 Adam Fedor <fedor@gnu.org>
+
+ * configure.ac: Check for objc-gnu in the GNUstep libraries dir.
+ * Instance/bundle.make: Always link againt all libs on darwin.
+
+2005-12-20 Adam Fedor <fedor@gnu.org>
+
+ * configure.ac: Don't strip -g from CFLAGS. Someone might want it
+ without using debug=yes.
+
+2005-12-06 Richard Frith-Macdonald <rfm@gnu.org>
+
+ * configure.ac: On mingw32, if we don't get the config file location
+ from an earlier installatioin or a command line option, use
+ /c/GNUstep/GNUstep.conf-dev ... assuming a development version
+ rather than a version for distribution.
+ * target.m: add -SystemStubs to bundle libraries on MacOS-X tiger ...
+ as linking of stdio functions seems to fail otherwise.
+
+2005-12-05 Richard Frith-Macdonald <rfm@gnu.org>
+
+ * Documentation/filesystem.texi: Initial attempt at adding
+ documentation on how the filesystem layout is controlled by
+ the GNUstep config file.
+
+2005-12-05 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * configure.ac: Display a message with the GNUSTEP_MAKEFILES that
+ is used. In psychological preparation for when it will actually
+ be configurable. ;-)
+ * configure: Regenerated.
+
+2005-12-05 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * Instance/library.make (internal-library-uninstall_): Fixed
+ uninstallation of dll on windows. (Suggested by Frode
+ <frode@bredband.net>).
+
+2005-12-02 Richard Frith-Macdonald <rfm@gnu.org>
+
+ * opentool.in:
+ * openapp.in:
+ * config.make.in:
+ Honor the GNUSTEP_CONFIG_FILE environment variable.
+
+2005-11-28 Richard Frith-Macdonald <rfm@gnu.org>
+
+ * GNUstep.conf.in: Use new variables for handling backslashes in
+ paths.
+ * GNUstep.csh.in: ditto
+ * GNUstep.sh.in: ditto
+ * GNUmakefile.in: Quote paths when we use them .. to avoid backslashes
+ being removed when they should be present in the path.
+ * configure.ac: Always make GNUSTEP_MAKEFILES the Library/Makefiles
+ subdirectory of the system root. Create new variables containing
+ escaped backslashes to handle being given a backslash in a path.
+ * configure: regenerate
+
+2005-11-21 Richard Frith-Macdonald <rfm@gnu.org>
+
+ * opentool.in:
+ * openapp.in:
+ Changed to use new GNUstep.conf configuration file to obtain the
+ directories to search.
+
+2005-10-28 Richard Frith-Macdonald <rfm@gnu.org>
+
+ * configure.ac: Set up a sensible default location for GNUstep.conf
+ on mingw32 systems (C:\GNUstep\GNUstep.conf).
+ * configure: ditto
+
+2005-10-27 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * configure.ac: Standardized the format of option help, and also
+ written fairly complete help on each and every option.
+ * configure: Regenerated.
+
+2005-10-26 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * common.make: Removed checks for GNUSTEP_*_ROOT variables
+ top-level, they are now automatically and always set by
+ config.make, no need to check for them here in the new system.
+
+2005-10-26 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * Master/rules.make: Rewritten code that determines if this the
+ top-level make invocation (in order to have the dependencies
+ install: check-install-permissions all, and distclean: clean
+ top-level), so that it also works when gnustep-make is invoked
+ from within a makefile itself (this fixes 'make distclean' in
+ gnustep-make's own Documentation/GNUmakefile).
+ * common.make: Updated similar checks.
+
+2005-10-26 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * Documentation/GNUmakefile: Updated commands to create temporary
+ gnustep-make installation. Also, do not source GNUstep.sh but rely
+ just on passing GNUSTEP_MAKEFILES on the make command line.
+
+2005-10-26 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * GNUmakefile.in (install): Fixed installing GNUstep.conf
+ when the build directory is different from the source directory.
+
+2005-10-23 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * configure.ac: Fixed error in the documentation of
+ --with-user-config-file option.
+ * configure: Regenerated.
+
+2005-10-23 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * config.make.in: Removed code to compute GNUSTEP_HOST,
+ GNUSTEP_HOST_CPU, etc, when in GNUSTEP_MULTI_PLATFORM mode -- this
+ is already done by names.make later.
+
+2005-10-23 Nicola Pero <n.pero@mi.flashnet.it>
+
+ This change is key to no longer having to source GNUstep.sh when
+ compiling stuff using gnustep-make. Please understand this is all
+ very experimental so don't upgrade yet if you need stability.
+ * config.make.in (GNUSTEP_CONFIG_FILE): Read configuration files
+ directly and get all required information from there; only
+ GNUSTEP_MAKEFILES is assumed to be set.
+ * common.make: Include config.make first because until we include
+ that one, we can no longer assume anything.
+
+2005-10-23 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * which_lib.c (search_for_lib_with_suffix_and_ext): Enhanced
+ changes to make the code simpler and easier to understand and
+ avoid duplicate checks for static libs. Needs testing.
+
+2005-10-23 Richard Frith-Macdonald <rfm@gnu.org>
+
+ * which_lib.c: Tidied a little on lines suggested by David Ayers
+ * configure.ac: Check for ctype.h
+ * configure: regenerate
+ * config.h.in: regenerate
+
+2005-10-23 Jeremy Bettis
+
+ * configure.ac:
+ * rules.make:
+ * target.make:
+ Use install -p so that doing a make install doesn't change the
+ timestamp on all the headers and cause everything to need rebuilt.
+ Don't create the obj dir (symlink) on mingw.
+ Add -Wl,--enable-auto-import to link commands to make the compiler be
+ quiet.
+ * which_lib.c: Fixes to support other library types on mingw.
+ Patches applied and edited to conform to GNUstep coding standard.
+
+2005-10-20 Adam Fedor <fedor@gnu.org>
+
+ * config.make.in (GNUSTEP_CONFIG_FILE): Correct capitaliztion
+ of substitution variable.
+
+2005-10-19 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * config.guess: Updated to latest version.
+ * config.sub: Idem.
+
+2005-10-18 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * configure.ac: Make sure that --prefix=xxx takes precedence over
+ paths read from GNUstep.conf or inherited from the environment.
+ * configure: Regenerated.
+
+2005-10-17 Adam Fedor <fedor@gnu.org>
+
+ * target.make (netbsd): Remove static libs version of netbsd
+ target and make (netbsdelf) work for all netbsd versions.
+ * clean_os.sh: Don't clean netbsd targets. Fixes Bug #14635.
+
+2005-10-14 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * GNUstep.sh.in: Export GNUSTEP_USER_ROOT after setting it (Bug
+ reported by Fred Kiefer <fredkiefer@gmx.de>).
+
+2005-10-13 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * GNUstep.sh.in: Read system, local, network, user paths from
+ configuration files and use the configuration files settings in
+ preference to the hardcoded ones.
+ * GNUstep.csh.in: Same changes, where we use sed to convert on the
+ fly the sh syntax of config files to csh syntax, then we eval the
+ result.
+ * GNUmakefile.in: Do not compile, install and clean user_home.
+ * user_home.c: Removed.
+ * GNUstep-reset.sh (GNUSTEP_USER_CONFIG_FILE, GNUSTEP_USER_DIR,
+ GNUSTEP_USER_DEFAULTS_DIR, GNUSTEP_CONFIG_FILE): Unset.
+
+2005-10-13 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * GNUmakefile.in (GNUSTEP_CONFIG_FILE): Fixed replacing this variable.
+
+2005-10-13 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * configure.ac: Added --with-user-config-file, --with-user-dir,
+ --with-user-defaults-dir options. Remove --with-user-root option.
+ Simplified implementation of --with-config-file option. Do not
+ generate GNUsteprc.
+ * configure: Regenerated.
+ * GNUstep.conf.in (GNUSTEP_USER_CONFIG_FILE): New variable.
+ (GNUSTEP_USER_DIR): New variable.
+ (GNUSTEP_USER_DEFAULTS_DIR): New variable.
+ * GNUsteprc.in: Removed.
+
+2005-10-13 Nicola Pero <n.pero@mi.flashnet.it>
+
+ Warning: --prefix=/usr/GNUstep/System no longer works. Please use
+ --prefix=/usr/GNUstep or --with-system-root=/usr/GNUstep/System.
+ * configure.ac: Simplified management of --prefix. Do not try
+ setting default prefix from an existing GNUSTEP_SYSTEM_ROOT as
+ that is read from the config file after the default prefix is set.
+ Do not set $prefix variable that it not used anywhere. Fixed bug
+ in setting GNUSTEP_SYSTEM_ROOT introduced in previous changes.
+ * configure: Regenerated.
+
+2005-10-12 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * .cvsignore: Ignore GNUstep.conf
+
+2005-10-12 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * configure.ac: Use the GNUSTEP_CONFIG_FILE environment variable
+ to choose the location of the config file, if no configure option
+ is given. Automatically import the settings from an existing
+ GNUstep config file if one exists, and use them for anything not
+ specified. Added --disable-importing-config-file option to
+ disable this behaviour.
+ * configure: Regenerated.
+
+2005-10-12 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * configure.ac: Added --with-system-root=xxx option.
+ * configure: Regenerated.
+
+2005-10-12 Nicola Pero <n.pero@mi.flashnet.it>
+
+ Removed obsolete public variable GNUSTEP_ROOT.
+ * configure.ac: Do not replace GNUSTEP_ROOT in generate files.
+ * configure: Regenerated.
+ * GNUstep.csh.in: Do not define GNUSTEP_ROOT.
+ * GNUstep.sh.in: Do not define GNUSTEP_ROOT.
+
+2005-10-12 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * configure.ac: Define GNUSTEP_SYSTEM_ROOT from prefix. Export
+ and reference it instead of exporting and referencing 'prefix' to
+ clarify what is happening. Reordered some configure stages to
+ prepare it for further changes.
+ * configure: Regenerated.
+ * GNUmakefile.in: Use GNUSTEP_SYSTEM_ROOT instead of prefix.
+ * GNUstep.csh.in: Same change.
+ * GNUstep.sh.in: Same change.
+ * GNUstep.conf.in: Same change.
+
+2005-10-12 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * configure.ac (MAKEFILE_SUFFIX): Variable removed.
+ (GNUSTEP_MAKEFILES): New variable (that is more standard and more
+ suited to make it a configure option in the future). Replace it
+ in generated files.
+ * configure: Regenerated.
+ * debugapp.in: Use everywhere GNUSTEP_MAKEFILES, not
+ MAKEFILE_SUFFIX.
+ * opentool.in: Same change.
+ * GNUmakefile.in: Same change.
+ * executable.template.in: Same change.
+ * GNUstep.sh.in: Same change.
+ * GNUstep.csh.in: Same change.
+ * gnustep-make.spec.in: Removed MAKEFILE_SUFFIX, use Library/Makefiles
+ directly.
+
+2005-10-12 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * configure.ac: Removed obsolete --without-system-root option.
+ * configure: Regenerated.
+
+2005-10-12 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * configure.ac (root_prefix): Variable removed. Wasn't used or
+ replaced anywhere.
+ * configure: Regenerated.
+
+2005-10-12 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * configure.ac: Use /usr/pkg/etc/GNUstep.conf instead of
+ /usr/pkg/etc as GNUstep config file on NetBSD (Suggestion by David
+ Ayers).
+ * configure: Regenerated.
+
+2005-10-12 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * configure.ac: Generate GNUstep.conf from GNUstep.conf.in
+ so that GNUstep.conf gets properly setup with the paths that
+ are configured into gnustep-make
+ * GNUstep.conf.in: New file.
+ * GNUstep.conf: Removed.
+ * configure: Regenerated.
+ * GNUmakefile.in (install): Install the GNUstep.conf file
+ in the chosen location for the GNUstep config file.
+
+2005-10-12 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * configure.ac: Added --with-config-file=xxx (code partially taken
+ from gnustep-base) option.
+ * config.make.ac: Added GNUSTEP_CONFIG_FILE variable holding the
+ configured location of the config file for this installation.
+ * configure: Regenerated.
+
+2005-10-06 Tom MacSween <macsweent@sympatico.ca>
+
+ * Fixes for cygwin.
+ * Instance/rules.make: Add Windows resource files for cygwin
+ * config.make.in: Cygwin does not have ln-s
+ * rules.make: Add Windows resource rules for cygwin
+ * target.make (cygwin): Fix shared link cmd.
+
+2005-10-06 Nicola Pero <n.pero@mi.flashnet.it>
+
+ * rules.make (ALL_OBJCCFLAGS, $(GNUSTEP_OBJ_DIR)/%${OEXT}): When
+ compiling ObjC++ files, don't use the additional ObjC flags but
+ only the internal/system ones, to make it easier/possible for end
+ users to add different flags to ObjC and ObjC++ compilations.
+
+2005-10-06 Nicola Pero <n.pero@mi.flashnet.it>
+
+ Added support for ObjC++. You should list the ObjC++ .mm files in
+ the xxx_OBJCC_FILES variable, and put extra ObjC++ flags in
+ xxx_OBJCCFLAGS or ADDITIONAL_OBJCCFLAGS.
+ * rules.make (.SUFFIXES): Added .mm for ObjC++.
+ ($(GNUSTEP_OBJ_DIR)/%${OEXT}): Added rule to compile .mm files
+ into .o files.
+ (ALL_OBJCCFLAGS): New variable, set from ADDITIONAL_OBJCCFLAGS and
+ AUXILIARY_OBJCCFLAGS.
+ * Instance/rules.make (OBJCC_OBJS, OBJCC_OBJ_FILES): New variables
+ set from xxx_OBJCC_FILES.
+ (OBJ_FILES_TO_LINK): Added the new OBJCC_OBJ_FILES to the list of things
+ to link.
+ (ADDITIONAL_OBJCCFLAGS): New variable set from xxx_ADDITIONAL_OBJCCFLAGS.
+
+2005-09-28 Adam Fedor <fedor@gnu.org>
+
+ * target.make (cygwin/SHARED_LIB_LINK_CMD): Correct lib file name
+ (Fix from Tom MacSween).
+ * Instance/framework.make: Add extension to NSExecutable.
+
+2005-09-22 Adam Fedor <fedor@gnu.org>
+
+ * Add runtime flags everywhere for Mac OS/gcc dual runtimes
+ * rules.make (CC_LDFLAGS): New variable for extra ld flags
+ * target.make (darwin/SHARED_LD_PREFLAGS): Use it.
+ * Instance/application.make (APP_FILE),
+ Instance/gswapp.make (GSWAPP_FILE), Instance/objc.make,
+ Instance/service.make (SERVICE_FILE), Instance/tool.make: Idem.
+
+2005-09-18 Adam Fedor <fedor@gnu.org>
+
+ * Version 1.11.1
+
+ * target.make (darwin): Add RUNTIME_FLAGS to shared lib link with
+ GNU compiler (i.e. -fgnu-runtime).
+ * Documentation/README.MinGW: Update.
+
+2005-09-17 Adam Fedor <fedor@gnu.org>
+
+ * Changes to fix compilation on cygwin.
+ * target.make: Add generic BUNDLE_LINK_CMD.
+ (cygwin): Modify it for cygwin. New SHARED_LIB_LINK_CMD and
+ other support variables.
+ * Instance/application.make: Remove OLD_DLL_SUPPORT
+ * Instance/bundle.make: Idem. Use BUNDLE_LINK_CMD.
+ * Instance/library.make: Remove OLD_DLL_SUPPORT
+ * Instance/palette.make: Idem.
+ * Instance/rules.make: Remove subproject def file rule.
+ * Instance/subprojects.make: Remove def file rules.
+ * Instance/framework.make: Add OBJ_EXT in Info file.
+ (Based on patch and suggestions by Tom MacSween).
+
+2005-08-08 Adam Fedor <fedor@gnu.org>
+
+ * Documentation/machines.texi: Update.
+
+2005-08-08 Adam Fedor <fedor@gnu.org>
+
+ * Instance/application.make, Instance/gswapp.make,
+ Instance/service.make, Instance/tool.make: Revert change from
+ 2005-06-06.
+
2005-07-21 Adam Fedor <fedor@gnu.org>
* Version 1.11.0
# To help lazy cows who want to type 'make' and have all work
# automatically without installating gnustep-make first, if we don't
# have a gnustep-make installation to use, we create a temporary one
-# in the subdirectory ./tmp-installation, execute GNUstep.sh in that
-# directory, then run make again.
+# in the subdirectory ./tmp-installation, the run make again passing
+# GNUSTEP_MAKEFILES set to point to the new makefile installation
# To execute all, or clean, or install, we first depend on a local
# temporary installation of gnustep-make; when we have it, we source
# GNUstep.sh, then we run the make command again. Please note that
# "make install" will install into our temporary gnustep-make
# directory, which is usually not particularly useful, but anyway.
-all clean install: ./tmp-installation/System/Library/Makefiles/GNUstep.sh
+all clean install: ./tmp-installation/System/Library/Makefiles
@echo "** Running 'make $@' using the local/temporary gnustep-make installation **"
- (. ./tmp-installation/System/Library/Makefiles/GNUstep.sh; \
- $(MAKE) $@)
+ $(MAKE) $@ GNUSTEP_MAKEFILES="$(CURRENT_DIR)/tmp-installation/System/Library/Makefiles"
CURRENT_DIR = $(shell pwd)
# This creates a local temporary installation of GNUstep-make
-./tmp-installation/System/Library/Makefiles/GNUstep.sh:
+./tmp-installation/System/Library/Makefiles:
@echo "** No gnustep-make installation found, attempting to create a local/temporary one. **"
(mkdir tmp-build; \
cd tmp-build; \
- ../../configure --prefix="$(CURRENT_DIR)/tmp-installation"; \
+ ../../configure --prefix="$(CURRENT_DIR)/tmp-installation" \
+ --with-config-file="$(CURRENT_DIR)/tmp-installation/GNUstep.conf"; \
make; \
make install)
distclean:
- -(if [ -f ./tmp-installation/System/Library/Makefiles/GNUstep.sh ]; then \
- . ./tmp-installation/System/Library/Makefiles/GNUstep.sh; \
- $(MAKE) $@; \
+ -(if [ -f ./tmp-installation/System/Library/Makefiles/common.make ]; then \
+ $(MAKE) $@ GNUSTEP_MAKEFILES="$(CURRENT_DIR)/tmp-installation/System/Library/Makefiles"; \
fi)
rm -Rf tmp-installation tmp-build
-Date: 31-May-2005 (tested under Windows XP)
+Date: 11-Jan-2006 (tested under Windows XP)
Author: Nicola Pero <n.pero@mi.flashnet.it>,
after Richard Frith-Macdonald <rfm@gnu.org> and others
-------------
One way to vastly simplify installing GNUstep, is to use the Windows-based
-GNUstep installer. Currently, this installer only installs the non-gui
-portion of GNUstep. Get it from
+GNUstep installer. Get it from
http://www.gnustep.org/resources/sources.html#windows
-If you have already installed this, you can skip to the section
-'Additional gui libraries '. Although you may want to read the rest of
+If you have already installed this, you can skip to the end and just
+start compiling applications! Although you may want to read the rest of
the instructions for other helpful information.
1. Install MinGW
================
-Download MinGW-4.1.0 or later from
+Download MinGW-4.1.0 from
http://sourceforge.net/projects/mingw Install it into
C:/xxx/msys/1.0/mingw
2. Install msys
===============
-Download MSYS-1.0.10 or later from the same site. Install it into
+Download MSYS-1.0.10 from the same site. Install it into
C:/xxx/msys/1.0
The postinstall script should ask you for the mingw location, then
3. Install msys developer toolkit
=================================
-Download msysDTK-1.0.1 or later from the same site. Install it into
+Download msysDTK-1.0.1 from the same site. Install it into
C:/xxx/msys/1.0
The main GNUstep project pages tell you how to get hold of this. You can get
the latest release of the following libraries. However, since MinGW support
is currently evolving, we recommend that you get the latest snapshot
-or code from CVS.
-
-export CVS_RSH=ssh
-cvs -z3 -d:ext:anoncvs@savannah.gnu.org:/cvsroot/gnustep co core
+or code from SVN.
+svn co http://svn.gna.org/svn/gnustep/modules/core
6. Installing gnustep-make
==========================
8. Installing gnustep-objc
==========================
-Download gnustep-objc, and compile it:
+Download gnustep-libobjc, (find it at http://www.gnustep.org/resources/downloads.php) and compile it:
make
make install
libintl-0.11.5-2.lib.zip
(important: libintl-0.14.4 is untested, use 0.11.5 to be safe)
- libiconv-1.8.1-bin.zip
- libiconv-1.8.1-lib.zip
+ libiconv-1.8-1-bin.zip
+ libiconv-1.8-1-lib.zip
zlib-1.2.2-bin.zip
zlib-1.2.2-lib.zip
12. XML support
===============
-Not working yet.
+You need to get the source code for libxml2 and build it yourself ...
+but first you must fix the symbol information in libiconv so you can link to it.
+
+cd /mingw/lib
+mkdir backup-libiconv
+mv libiconv.la backup-libiconv
+mv libiconv.lib backup-libiconv
+dlltool -D libiconv-2.dll -C -l libiconv.lib --export-all-symbols -A ../bin/libiconv-2.dll
+
+Then you can remove the backup-libiconv directory and its
+contents if all has worked.
+
+Now download the libxml2 source from http://www.xmlsoft.org
+I used libxml2-2.6.23.tar.gz
+Unpack the source, change into the directory and run the configure script
+Then do 'make'
+Then do 'make install'
+
+You should now have libxml2 installed on your system.
13. Installing gnustep-base
===========================
Go in gnustep-base, and type
-./configure --disable-xml
+./configure
make
make install
If you pass any include (-Ixxx) paths to GCC, make sure they do *not*
end with a slash. The current GCC/MinGW releases have a bug where
such paths would be ignored.
+
+Where we specify specific versions of packages to be used, we have tested
+with those versions ... later or earlier versions may work, but may well not.
+Generally earlier versions should be assumed not to work.
+
@itemize @bullet
@item Use #ifndef GNUSTEP for Apple only code.
@item Do not use CoreFoundation
-@item Do not use Objective-C++
+@item Do not use Objective-C++ (except with gcc 4.1 or later)
@item Do not use Quicktime or other proprietary extension
@item You need to convert .nib files (see next question @pxref{Tools for porting})
@end itemize
different machines because of endiness issues, although GNUstep doesn't
have this problem.
-Your best bet is to implement your own archiving format that would work
-both with GNUstep and Cocoa. Fortunately, you don't have to start from
-scratch, since this has been essentially done for you in the nib2gmodel
-tool, which has an archiver that works both on GNUstep and Cocoa. It
-might be nice to split this off into a separate project to make it
-easier for other people to do the same thing.
+The new keyed archiving using XML file formats is much more portable,
+and GNUstep is trying to maintain compatibility with Apple with this
+type of archiving.
@node Does distributed objects work between GNUstep and Cocoa?, Is there an Interface Builder for GNUstep?, Can I transfer archived data from GNUstep to Cocoa?, Compatibility
@subsection Does distributed objects work between GNUstep and Cocoa?
tool called nib2gmodel that can be compiled under OPENSTEP to convert
nib files to GNUstep gmodel files.
+Newer nib files use XML format keyed archiving and may possibly be
+transportable, although differences in class and ivar layout may still
+make this difficult.
+
@node Can one use the hybrid "Objective-C++", Is there a plan to support Java/YellowBox Bindings?, Can I use my original NIB files?, Compatibility
@subsection Can one use the hybrid "Objective-C++"
No. at present the GNU compiler (gcc) does not support
-"Objective-C++". Apple is interested in adding back their implementation
-to gcc and is slowly adding parts of it to the mainline gcc implementation.
+"Objective-C++". Soon to br released gcc 4.1 will have this support, but
+it is still unclear how robust it will be.
@node Is there a plan to support Java/YellowBox Bindings?, What if I compile GNUstep under OPENSTEP/MacOS X?, Can one use the hybrid "Objective-C++", Compatibility
@subsection Is there a plan to support the Java/YellowBox Bindings?
backend library to provide the interface, nobody has bothered to
date.
-You should, however, be able to use a GNUstep program with an X11 server
+You can, however, use a GNUstep program with an X11 server
running on MacOSX.
@node Is the Objective C API for GTK related?, How about implementing parts of the Application Kit with GTK?, What if I compile GNUstep under OPENSTEP/MacOS X?, Compatibility
You can write testcases - where the libraries fail tests, you
could either fix the problem, or add it to the task list.
-To write testcases, you need to use anonymous CVS to install the
-latest GNUstep snapshots you can find. Then checkout the 'tests'
-module from CVS. In the 'tests' directory, you will find a
-regression testing framework.
-In order to use this you will also need a recent (v 1.3.2 or later) copy of
-Guile (you can get this from a GNU ftp site) and will need to check-out,
-built, and installed the 'guile' package from the GNUstep CVS repository.
+To write testcases, you need to use svn to install the latest
+GNUstep sourcecode you can find. Then checkout the
+'gnustep/tools/testsuite' module from svn.
@node How do I start writing applications?, How can I help with the GNUstep website?, How do I start writing tests?, Compiling and Developing
@subsection How do I start writing applications?
If you want to update the FAQ or documentation - grab
the latest snapshot of the GNUstep core you can find, update it
-from the CVS repository, and work with the contents of the appropriate
+from the svn repository, and work with the contents of the appropriate
documentation directory.
If you want to work on other parts of the website, you can grab a copy
@menu
* What is the Objective C Runtime?::
-* Does it allow a mixture of Objective C and C++::
-* Where can I find more information?::
@end menu
-@node What is the Objective C Runtime?, Does it allow a mixture of Objective C and C++, GNU Objective C Compiler and Runtime, GNU Objective C Compiler and Runtime
+@node What is the Objective C Runtime?, , GNU Objective C Compiler and Runtime, GNU Objective C Compiler and Runtime
@subsection What is the Objective C Runtime?
The Objective C Runtime Library provides C functions and data structures
Foundation methods/functions instead of the basic
runtime functions so that you code can run with either system.
-@end itemize
-
-@node Does it allow a mixture of Objective C and C++, Where can I find more information?, What is the Objective C Runtime?, GNU Objective C Compiler and Runtime
-@subsection Does it allow a mixture of Objective C and C++?
+Apple has recently added new functionality to their runtime, including
+built-in exception handling, etc. Hopefully these will be ported to the
+GNU runtime in the future.
-No.
-See @pxref{Can one use the hybrid "Objective-C++"}
-
-@node Where can I find more information?, , Does it allow a mixture of Objective C and C++, GNU Objective C Compiler and Runtime
-@subsection Where can I find more information?
-
-The FAQ associated with the newsgroup @samp{comp.lang.objective-c}
-contains more information about GNU Objective C.
+@end itemize
@c ------------- GNU Compiler and Objective C Runtime Library -------
are not available.
[ NOTE: The GNU distributed object facilities have the same ease-of-use
-as NeXT's; be warned, however, that they are not compatible with each
+as Apple's; be warned, however, that they are not compatible with each
other. They have different class hierarchies, different instance
variables, different method names, different implementation strategies
and different network message formats. You cannot communicate with a
-NeXT NSConnection using a GNU NSConnection.
+Apple NSConnection using a GNU NSConnection.
-Here are some differences between GNU distributed objects and NeXT's
-distributed objects: NeXT NSDistantObject asks it's remote
+Here are some differences between GNU distributed objects and Apple's
+distributed objects: Apple NSDistantObject asks it's remote
target for the method encoding types and caches the results; GNU
NSDistantObject gets the types directly from the local GNU "typed selector"
mechanism if the information is known locally and only queries the remote
@table @samp
@item xlib
-This is the standard backend that runs on X11 and uses standard xlib
+This backend runs on X11 and uses standard xlib
calls for implementing drawing. It works well, but is limited in many
areas due to the limitations of xlib drawing.
@item art
This is a very good backend that draws using the libart package and
-freetype with near PostScript quality and functionality. At some point
-it will become the standard.
+freetype with near PostScript quality and functionality. It is currently
+the standard backend (as long as the required libraries are installed).
@item w32
-This backend works on Windows and is currently beta quality.
+This backend works on Windows and uses basic Windows drawing
+@item cairo
+An up-and-coming backend. It still relies on unpublished functions in
+the cairo library so using it is not for the beginner.
@end table
@c ------------------------- GNUstep GUI Library -----------------------
was not completed, Aladdin agreed to waive approximately $10,000 in
promised fees for the work that was actually done and delivered.) DGS
works fairly well with a single context. Alpha channel and compositing
-currently doesn't work.
+doesn't work.
@node What is the relationship between the Display Ghostscript Server and X Windows?, , What is DGSs current state of development?, GNUstep DisplayGhostScript Server
@subsection What is the relationship between the Display Ghostscript Server and X Windows?
@page
@vskip 0pt plus 1filll
-Authors: Tim Harrison, Martin Brecher, Adam Fedor, Nicola Pero
+Authors: Tim Harrison, Martin Brecher, Adam Fedor, Nicola Pero,
+Richard Frith-Macdonald
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1 or
* The Users Domain::
* Hierarchy::
* Description::
+* Configuration::
@end menu
On GNUstep, there are four separate places where files related to GNUstep
@end multitable
-@node Description, , Hierarchy, Top
+@node Description, Configuration, Hierarchy, Top
@section Description
@menu
This directory contains sound files.
+@node Configuration, , Description, Top
+@section Configuration
+
+The locations of the various domains within the filesystem hierarchy on your
+machine are determined by the GNUstep configuration file (or if that is not
+present, by default values built into the GNUstep make and base packages
+when they were configured and built).
+
+The location of the GNUstep configuration file is built in to the make and
+base packages when they are configured using the --with-config-file option
+to the configure script. The path specified must be an absolute one for
+the make package, but may also be a path relative to the location of the
+base library itsself (as dynamically linked into applications) for the
+base package.
+
+However, the location of the configuration file may also be specified
+using the GNUSTEP_CONFIG_FILE environment variable, overriding the value
+built in to the package, at any time when using the make package to build
+or install software. Support for the environment variable may also
+be enabled for the make package when its configure script is run.
+
+Please do
+@example
+configure --help
+@end example
+to get all the options of how the package configuration scripts can be
+told to set up the default path to and values in the configuration file.
+
+@menu
+* File Format::
+* Windows (MINGW)::
+* File Values::
+@end menu
+
+@node File Format, Windows (MINGW), Configuration, Configuration
+@subsection File Format
+
+By default, the configuration file is called GNUstep.conf and exists in
+/etc/GNUstep on a Unix-like system or C:\GNUstep on an ms-windows system.
+In either case this file is in a format suitable for being 'sourced' by
+the standard unix (Bourne) shell, consisting of lines of the form key=value,
+comments (everything on a line from the first hash (#) onwards), or blank lines.
+
+This is very convenient on unix-like systems, but needs care for windows users.
+If a value contains whitespace or backslash characters (or the hash which
+would start a comment) it needs to be quoted by enclosing the whole value
+in single or double quotes. An alternative for values containing backslashes
+(the norm for a windows path) is to double up each backslash in an unquoted
+value.
+
+@node Windows (MINGW), File Values, File Format, Configuration
+@subsection Windows (MINGW)
+
+On ms-windows, for software development, you are likely to want to have an
+extra configuration file. This is because of the limitations of the
+make program (used to build and install software).
+
+Basically the issue is that the make package doesn't really like
+the colons and backslashes in windows paths (using them is error prone)
+and can't tolerate whitespace in file names ... so you need to set up
+a config file which uses unix-style paths as used by MSYS
+(ie of the form '/c/...' rather than 'C:\...') for
+building and installing software.
+
+On the other hand, the base library (and all applications since they are
+built using it) wants to work with native windows paths so that applications
+behave naturally as far as the end users are concerned, and therefore needs a
+configuration file containing windows-style paths rather than unix-like
+ones.
+
+The simplest way to achieve this is to use different values for the
+--with-config-file= option when configuring the make and base packages.
+
+For example, configure the make package like this -
+@example
+./configure --with-config-file=/c/GNUstep/GNUstep.conf-dev
+@end example
+and the base library like this -
+@example
+./configure --with-config-file=C:\\GNUstep\\GNUstep.conf
+@end example
+
+Then you need to edit the two config files to make sure they contain
+values of the correct format.
+
+@node File Values, , Windows (MINGW), Configuration
+@subsection File Values
+
+The key=value pairs permitted in the configuration file are limited
+to the keys described here.
+
+@menu
+* GNUSTEP_SYSTEM_ROOT::
+* GNUSTEP_LOCAL_ROOT::
+* GNUSTEP_NETWORK_ROOT::
+* GNUSTEP_USER_CONFIG_FILE::
+* GNUSTEP_USER_DIR::
+* GNUSTEP_USER_DEFAULTS_DIR::
+@end menu
+
+@node GNUSTEP_SYSTEM_ROOT, GNUSTEP_LOCAL_ROOT, File Values, File Values
+@subsubsection GNUSTEP_SYSTEM_ROOT
+
+The value for this key is the path for the System domain.
+
+It must be either an absolute path or a path beginning './' in which case the
+leading './' is replaced by the path to the directory in which the
+configuration file is located.
+
+This is normally -
+@example
+GNUSTEP_SYSTEM_ROOT=/usr/GNUstep/System
+@end example
+
+@node GNUSTEP_LOCAL_ROOT, GNUSTEP_NETWORK_ROOT, GNUSTEP_SYSTEM_ROOT, File Values
+@subsubsection GNUSTEP_LOCAL_ROOT
+
+The value for this key is the path for the Local domain.
+
+It must be either an absolute path or a path beginning './' in which case the
+leading './' is replaced by the path to the directory in which the
+configuration file is located.
+
+This is normally -
+@example
+GNUSTEP_LOCAL_ROOT=/usr/GNUstep/Local
+@end example
+
+@node GNUSTEP_NETWORK_ROOT, GNUSTEP_USER_CONFIG_FILE, GNUSTEP_LOCAL_ROOT, File Values
+@subsubsection GNUSTEP_NETWORK_ROOT
+
+The value for this key is the path for the Network domain.
+
+It must be either an absolute path or a path beginning './' in which case the
+leading './' is replaced by the path to the directory in which the
+configuration file is located.
+
+This is normally the same as the value configured for GNUSTEP_LOCAL_ROOT -
+@example
+GNUSTEP_NETWORK_ROOT=/usr/GNUstep/Local
+@end example
+
+@node GNUSTEP_USER_CONFIG_FILE, GNUSTEP_USER_DIR, GNUSTEP_NETWORK_ROOT, File Values
+@subsubsection GNUSTEP_USER_CONFIG_FILE
+
+This is the name of the user specific configuration file (a path relative to
+the home directory of the user). This configuration file is loaded after the
+main GNUstep configuration file, and the key=value pairs in this file will
+override those in the main file (all except the GNUSTEP_USER_CONFIG_FILE
+obviously).
+
+The default (unless otherwise configured) is
+@example
+GNUSTEP_USER_CONFIG_FILE=.GNUstep.conf
+@end example
+
+If the value of this key is set to an empty styring, the system will not
+attempt to load a user specific configuration file, thus ensuring that the
+individual user cannot override the values specified by the system
+administrator.
+
+@node GNUSTEP_USER_DIR, GNUSTEP_USER_DEFAULTS_DIR, GNUSTEP_USER_CONFIG_FILE, File Values
+@subsubsection GNUSTEP_USER_DIR
+
+This is used to define the User domain ... it is a path relative to the home
+directory of the user in which the User domain and hence all resources in
+the User domain are to be found.
+
+The default (unless otherwise configured) is:
+@example
+GNUSTEP_USER_DIR=GNUstep
+@end example
+
+but setting an empty string for this value
+will cause the User domain to be the home directory of the user.
+
+@node GNUSTEP_USER_DEFAULTS_DIR, , GNUSTEP_USER_DIR, File Values
+@subsubsection GNUSTEP_USER_DEFAULTS_DIR
+
+This is used to define the location of the defaults database for the user ...
+it is a path relative to the home directory of the user.
+
+The default (unless otherwise configured) is:
+@example
+GNUSTEP_USER_DEFAULTS_DIR=GNUstep/Defaults
+@end example
+
@bye
\bye
Copyright (C) 1996 - 2002 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
- under the terms of the GNU Free Documentation License, Version 1.1 or
+ under the terms of the GNU Public License, Version 1.0 or
any later version published by the Free Software Foundation.
@end format
* Additional Installation::
* Tools and Applications::
* Machine Specific::
-* Anonymous CVS::
+* Source via SVN::
@end menu
@node Introduction, Preliminaries, Top, Top
The GUI library uses this for playing sound files.
@item portaudio (OPTIONAL)
-The GUI library uses this for the sound server
+The GUI library uses this for the sound server. Use v19, which has
+several API changes since the previous version. v19 hasn't actually been
+formally released, but several distributions (SuSE, etc) use it anyway.
@item freetype2 (RECOMMENDED, REQUIRED for art backend)
-This is used for font information
+This is used for font information. Freetype2 cache API is in flux.
+GNUstep tries to account for
+this, but if you get errors about undefined FTC_ symbols, you might be
+using an unsupported version of freetype.
@item libart_lgpl2 (REQUIRED for art backend only)
Drawing library for the art backend.
GNUstep and WindowMaker work together to provide a consistant interface.
Although it is not required, GNUstep will work much better if you use it
with the WindowMaker window manager.
-Get WindowMaker from @url{http://www.windowmaker.org}.
+Get WindowMaker from @url{http://www.windowmaker.info}.
@item gnustep-objc package (for gcc version < 3.0 ONLY or MINGW/Cygwin) (RECOMMENDED)
Note: Do not install this library unless you are sure you need it.
Good Luck!
-@node Machine Specific, Anonymous CVS, Tools and Applications, Top
+@node Machine Specific, Source via SVN, Tools and Applications, Top
@chapter Machine Specific Instructions
@include machines.texi
-@node Anonymous CVS, , Machine Specific, Top
-@chapter Getting Libraries via Anonymous CVS
+@node Source via SVN, , Machine Specific, Top
+@chapter Getting Libraries via SVN
If you didn't get one of the snapshots, or if you want to be sure to
-stay on the bleading edge, then you should get the libraries via CVS. Go
-to @url{http://savannah.gnu.org/cvs/?group_id=99} for information on how
-to get anonymous CVS access.
+stay on the bleading edge, then you should get the libraries via SVN. Go
+to @url{http://www.gnustep.org/resources/sources.html} for information on how
+to get the sourcecode.
If you haven't already done so, change to the directory, where you
want the source to reside. To get a list of potential modules to check out,
* Compilers::
* Darwin/ix86::
* Darwin/PowerPC::
-* Debian/DEC-Alpha::
+* Debian/Alpha::
* Debian/i386::
* Debian/PowerPC::
* Debian/SPARC::
* FreeBSD 4.x::
* FreeBSD 3.x::
* FreeBSD 2.x::
+* Gentoo/i686::
+* Gentoo/PPC::
+* Gentoo/amd64::
+* Gentoo/alpha::
+* Gentoo/sparc::
* Irix 6.5/MIPS::
* MacOSX/PowerPC::
* MkLinux/PowerPC::
following information before choosing the compiler you use.
@table @var
@item egcs or gcc < 2.95
-Might work, but few people use these now.
+Most likely will not work and is not supported.
@item gcc 2.95.x
-Probably the oldest compiler that GNUstep is regularly tested with.
+Support for this compiler is deprecated as of Aug 2006. Mostly likely
+it will work in the near future and bug fixes will be accepted, but any
+bugs are considered non-critical.
@item gcc 2.96
Not an official gcc release. Some versions (Redhat, Mandrake) have problems
that prevent GNUstep from being compiled correctly and cause
-mysterious errors.
+mysterious errors. Not supported.
@item gcc 3.0.x
A fairly good compiler. Recommended.
@item gcc 3.1
@item gcc 3.4.x
Recommended. The #import directive is no longer deprecated as of this
version of the compiler.
+@item gcc 4.0
+Probably OK. Did start triggering compiler errors on parts of base, but
+there has been a workaround in base for that. Does not work on MacOSX.
+@item gcc 4.0.1
+Probably OK. This version should work on MacOSX.
@end table
If your having mysterious trouble with a machine, try compiling GNUstep
and installing gcc and make. If you had GNUstep previously installed, make sure
you completely remove all of it, including installed init scripts.
+Support Notes:
+@table @var
+@item Supported
+Regularly used and tested by developers
+@item Release
+Tested before a release
+@item Unsupported
+Not regularly used or tested
+@item Unstable
+Has problems either building or running GNUstep or requires special
+setp procedures to run correctly.
+@end table
+
@c -----------------------------------------
@node Darwin/ix86, Darwin/PowerPC, Compilers, Machine Specific
-@section Darwin/ix86
+@section Darwin/ix86 (@emph{Unsupported})
Currently tested on Darwin 7.x
@end table
@c -----------------------------------------
-@node Darwin/PowerPC, Debian/DEC-Alpha, Darwin/ix86, Machine Specific
-@section Darwin/PowerPC
+@node Darwin/PowerPC, Debian/Alpha, Darwin/ix86, Machine Specific
+@section Darwin/PowerPC (@emph{Supported})
This section is for building the complete GNUstep system.
This system will not interact at all with Mac OS X/Cocoa. It uses different
See also the MacOSX/PowerPC section
@c -----------------------------------------
-@node Debian/DEC-Alpha, Debian/i386, Darwin/PowerPC, Machine Specific
-@section Debian/DEC-Alpha
-
-@table @var
-@item Recommended compiler
-Standard
-
-@item Extra libs needed
-Unknown
-
-@item Special Instructions
-None
-@end table
+@node Debian/Alpha, Debian/i386, Darwin/PowerPC, Machine Specific
+@section Debian/Alpha (@emph{Unsupported})
@c -----------------------------------------
-@node Debian/i386, Debian/PowerPC, Debian/DEC-Alpha, Machine Specific
-@section Debian/i386
+@node Debian/i386, Debian/PowerPC, Debian/Alpha, Machine Specific
+@section Debian/i386 (@emph{Supported})
Tested on sid.
-@table @var
-@item Recommended compiler
-Standard
-
-@item Extra libs needed
-Unknown
-
-@item Special Instructions
-None
-@end table
@c -----------------------------------------
@node Debian/PowerPC, Debian/SPARC, Debian/i386, Machine Specific
-@section Debian/PowerPC
+@section Debian/PowerPC (@emph{Supported})
Tested on sid.
-@table @var
-@item Recommended compiler
-Standard
-
-@item Extra libs needed
-Unknown
-
-@item Special Instructions
-None
-@end table
@c -----------------------------------------
@node Debian/SPARC, FreeBSD 5.x, Debian/PowerPC, Machine Specific
-@section Debian/SPARC
+@section Debian/SPARC (@emph{Release})
Tested on sid.
-@table @var
-@item Recommended compiler
-Standard
-
-@item Extra libs needed
-
-@item Special Instructions
-None
-@end table
@c -----------------------------------------
@node FreeBSD 5.x, FreeBSD 4.x, Debian/SPARC, Machine Specific
-@section FreeBSD 5.x
+@section FreeBSD 5.x (@emph{Supported})
Tested on 5.0, 5.1, 5.3
@table @var
-@item Recommended compiler
-
-@item Extra libs needed
-None.
-
@item Special Instructions
Can install via /usr/ports/devel/gnustep, but not all required dependancies
are installed. See the GNUstep-HOWTO for list of libraries.
For 5.3, there is a bug in libkvm that requires that /proc be mounted. Use
'mount_procfs proc /proc' or see the procfs man page.
-
@end table
-
@c -----------------------------------------
@node FreeBSD 4.x, FreeBSD 3.x, FreeBSD 5.x, Machine Specific
-@section FreeBSD 4.x
+@section FreeBSD 4.x (@emph{Unsupported})
@table @var
-@item Recommended compiler
-
-@item Extra libs needed
-Unknown
-
@item Special Instructions
For gcc 3.0.4, make WANT_THREADS_SUPPORT=YES
Compiles "out of the box" on FreeBSD 3.4.
@table @var
-@item Recommended compiler
-gcc 2.95.2
-
-@item Extra libs needed
-Unknown
-
@item Special Instructions
-
You need to use gmake not make to compile the GNUstep packages. A special
port of gdb can be used with the Objective-C patches from
@url{ftp://ftp.pcnet.com/users/eischen/FreeBSD/gdb-4.17-port.tar.gz}
@end table
@c -----------------------------------------
-@node FreeBSD 2.x, Irix 6.5/MIPS, FreeBSD 3.x, Machine Specific
+@node FreeBSD 2.x, Gentoo/i686, FreeBSD 3.x, Machine Specific
@section FreeBSD 2.x (@emph{Obsolete,Unstable})
@table @var
-@item Recommended compiler
-gcc 2.8.x
-
-@item Extra libs needed
-Unknown
-
@item Special Instructions
Only static libraries work on this system.
Use /stand/sysinstall to install these packages if you have not
@end table
@c -----------------------------------------
-@node Irix 6.5/MIPS, MacOSX/PowerPC, FreeBSD 2.x, Machine Specific
-@section Irix 6.5/MIPS (@emph{Needs a maintainer})
+@node Gentoo/i686, Gentoo/PPC, FreeBSD 2.x, Machine Specific
+@section Gentoo/i686 (@emph{Supported})
+
+@table @var
+@item Special Instructions
+libffi sometimes causes odd problems. Try to use ffcall.
+@end table
+
+@c -----------------------------------------
+@node Gentoo/PPC, Gentoo/amd64, Gentoo/i686, Machine Specific
+@section Gentoo/PPC (@emph{Supported})
+
+@c -----------------------------------------
+@node Gentoo/amd64, Gentoo/alpha, Gentoo/PPC, Machine Specific
+@section Gentoo/amd64 (@emph{Unsupported})
+
+32-bit mode only?
+
+@c -----------------------------------------
+@node Gentoo/alpha, Gentoo/sparc, Gentoo/amd64, Machine Specific
+@section Gentoo/alpha (@emph{Unsupported})
+
+@c -----------------------------------------
+@node Gentoo/sparc, Irix 6.5/MIPS, Gentoo/alpha, Machine Specific
+@section Gentoo/sparc (@emph{Unsupported})
+
+@c -----------------------------------------
+@node Irix 6.5/MIPS, MacOSX/PowerPC, Gentoo/sparc, Machine Specific
+@section Irix 6.5/MIPS (@emph{Unsupported})
@table @var
@item Recommended compiler
@c -----------------------------------------
@node MacOSX/PowerPC, MkLinux/PowerPC, Irix 6.5/MIPS, Machine Specific
-@section MacOSX/PowerPC
+@section MacOSX/PowerPC (@emph{Release})
This section is for building the GNUstep extensions only.
Use this if, for instance, if you want to build something based
@c -----------------------------------------
@node MkLinux/PowerPC, NetBSD/i386, MacOSX/PowerPC, Machine Specific
-@section MkLinux/PowerPC
+@section MkLinux/PowerPC (@emph{Unsupported})
Tested with R2 RC2 (2004/03/04).
-@table @var
-@item Recommended compiler
-gcc 3.x allthough earlier ones should work if you also install gnustep-objc
-
-@item Extra libs needed
-None.
-
-@item Special Instructions
-Unknown.
-
-@end table
-
@c -----------------------------------------
@node NetBSD/i386, NetBSD/Sparc64, MkLinux/PowerPC, Machine Specific
-@section NetBSD/i386
+@section NetBSD/i386 (@emph{Release})
Tested on NetBSD 2.0.2 (2005/04/15)
@c -----------------------------------------
@node OpenBSD 3.x, OSF/Alpha, Netwinder, Machine Specific
-@section OpenBSD 3.x (@emph{Needs Testing})
+@section OpenBSD 3.9 (@emph{Unsupported})
-@table @var
-@item Recommended compiler
-Unknown
-
-@item Extra libs needed
-Unknown
+Information for version 3.9 (2006/08/13)
-@item Special Instructions
-Try reading the @url{README.NetBSD} which might work the same on OpenBSD.
-@end table
+Ports at
+@url{http://mail.rochester.edu/~asveikau/gnustep-openbsd/}
@c -----------------------------------------
@node OSF/Alpha, RedHat/Intel, OpenBSD 3.x, Machine Specific
-@section OSF Alpha (@emph{Unstable})
+@section OSF/Alpha (@emph{Needs Testing, Unstable})
@c Contact: suzukis@file.phys.tohoku.ac.jp
Information is for Version 3.2C
@table @var
@item Recommended compiler
-egcs-1.1.1/1.1.2, gcc-2.95
+Unknown
@item Extra libs needed
Unknown
@c -----------------------------------------
@node RedHat/Intel, Slackware/Intel, OSF/Alpha, Machine Specific
-@section RedHat/Intel
-
-@table @var
-@item Recommended compiler
-Standard
-
-@item Extra libs needed
-Standard (ffcall or libffi)
-
-@item Special Instructions
-None
-@end table
+@section RedHat/Intel (@emph{Unsupported})
@c -----------------------------------------
@node Slackware/Intel, Slackware/Sparc, RedHat/Intel, Machine Specific
-@section Slackware/Intel
-
-@table @var
-@item Recommended compiler
-Unknown.
-
-@item Extra libs needed
-Unknown.
-
-@item Special Instructions
-Unknown.
-
-@end table
+@section Slackware/Intel (@emph{Unsupported})
@c -----------------------------------------
@node Slackware/Sparc, Solaris 2.5.1/Sparc, Slackware/Intel, Machine Specific
-@section Slackware/Sparc (Splack)
+@section Slackware/Sparc (Splack) (@emph{Unsupported})
-Tested with Spalck 8.0
+Tested with Spalck 8.0 (2005/03/01)
@table @var
@item Recommended compiler
@c -----------------------------------------
@node Solaris/Sparc, Solaris 2.7/Intel, Solaris 2.5.1/Sparc, Machine Specific
-@section Solaris 2.[678]/Sparc
+@section Solaris 2.[678]/Sparc (@emph{Supported})
Tested on Solaris version 6, 7, and 8
@table @var
@item Recommended compiler
gcc 3.2.1 or greater
-gcc 2.95.3. Version 2.95.2 has several bugs that GNUstep tickles.
gcc 3.04. Not 3.1 - does not compile parts of GNUstep.
@item Extra libs needed
@c -----------------------------------------
@node Solaris 2.7/Intel, Suse 6.x/Intel, Solaris/Sparc, Machine Specific
-@section Solaris 2.7/Intel
+@section Solaris 2.7/Intel (@emph{Unsupported})
@c Contact?: Sebastian Niesen <sniesen@niesen.net>
@table @var
@c -----------------------------------------
@node Suse 6.x/Intel, Suse/Intel, Solaris 2.7/Intel, Machine Specific
-@section Suse 6.x/Intel
+@section Suse 6.x/Intel (@emph{Obsolete})
GNUstep has been tested on version 6.2-6.4 of Suse
@c -----------------------------------------
@node Suse/Intel, Suse 7.x/PPC, Suse 6.x/Intel, Machine Specific
-@section Suse/Intel
+@section Suse/Intel (@emph{Supported})
-GNUstep has been tested on version 7.0, 8.0, 8.1, 8.2, 9.0, 9.1, and 9.3 of Suse
+GNUstep has been tested on version 7.0, 8.0, 8.1, 8.2, 9.0, 9.1, 9.3, and
+10.1 of Suse
@table @var
@item Recommended compiler
None
@item Special Instructions
-None.
+Suse 10.1 does not work with the x11 backend.
@end table
@c -----------------------------------------
@node Suse 7.x/PPC, Unixware-2.1.3/Intel, Suse/Intel, Machine Specific
-@section Suse 7.x/PPC
+@section Suse 7.x/PPC (@emph{Unsupported})
GNUstep has been tested on version 7.0 of Suse/PPC
@c -----------------------------------------
@node Unixware-2.1.3/Intel, Windows with CYGWIN, Suse 7.x/PPC, Machine Specific
-@section Unixware-2.1.3/Intel
+@section Unixware-2.1.3/Intel (@emph{Unsupported})
@c Contact?: Richard Frith-Macdonald <richard@brainstorm.co.uk>
@table @var
@c -----------------------------------------
@node Windows with CYGWIN, Windows with MinGW, Unixware-2.1.3/Intel, Machine Specific
-@section Windows with CYGWIN (@emph{Needs a maintainer})
+@section Windows with CYGWIN (@emph{Unsupported})
@table @var
@item Recommended compiler
@c -----------------------------------------
@node Windows with MinGW, Yellowdog/PowerPC, Windows with CYGWIN, Machine Specific
-@section Windows with MinGW
+@section Windows with MinGW (@emph{Supported})
@table @var
@item Recommended compiler
@c -----------------------------------------
@node Yellowdog/PowerPC, , Windows with MinGW, Machine Specific
-@section Yellowdog/PowerPC
-
-@table @var
-@item Recommended compiler
-Standard
-
-@item Extra libs needed
-Standard (ffcall or libffi)
-
-@item Special Instructions
-
-@end table
+@section Yellowdog/PowerPC (@emph{Unsupported})
@ifclear HOWTO
@include end.texi
The currently released version is @samp{@value{GNUSTEP-MAKE-VERSION}}.
@end ifclear
+@section Changes in version @samp{1.13.0}
+
+Debug libraries now have the same name as normal libraries (i.e. no "_d"
+suffix). This reduces the possiblity of multiple libraries being loaded
+into the same executable.
+
+Added dragonfly OS to make targets.
+
+Spaces and backslashes are no longer allowed in paths used by the make
+package (e.g. with Windows OS). The libraries can still use native paths.
+
+@ifclear ANNOUNCE-ONLY
+
+@section Changes in version @samp{1.12.0}
+
+Minor fixes.
+
+@section Changes in version @samp{1.11.2}
+
+The @file{GNUstep.conf} file is now viewed as the essential
+determination of the install location for GNUstep libraries, tools and
+other files. During configuration, this file is read, if it exists, to
+determine this information. This can still be overriden with
+environment and command line options, however. See the filesystem
+documentation in the GNUstep Make Documentation directory for more
+information.
+
+You no longer need to source GNUstep.sh in order to compile GNUstep
+programs. All that is needed is the definition of
+GNUSTEP_MAKEFILES. You should also have the GNUstep system tools
+directory in your path.
+
+All netbsd systems are assumed to use ELF libraries. Support for the old
+static libs version of netbsd was removed.
+
+Serveral new options were added to configure to change the location of
+basic dir locations and basic configuration files. Also, the help was
+greatly improved. Note that --prefix=/usr/GNUstep/System no longer
+works. Please use --prefix=/usr/GNUstep or
+--with-system-root=/usr/GNUstep/System.
+
+A few more fixes for cygwin are included as well as Windows resource rules.
+
+Support for ObjC++ has been added. You should list the ObjC++ .mm
+files in the xxx_OBJCC_FILES variable, and put extra ObjC++ flags in
+xxx_OBJCCFLAGS or ADDITIONAL_OBJCCFLAGS.
+
+@section Changes in version @samp{1.11.1}
+
+Part of the previous change was reversed. Now libobjc is still linked
+with individual applications (as well as the base library), since some
+operating systems require this to resolve external symbols. However,
+there is no need to recompile all applications again.
+
+Compilation of GNUstep on cygwin was revampled and fixed due to a lot of
+work by Tom MacSween.
+
@section Changes in version @samp{1.11.0}
NOTE: The libobjc library is now linked in with the base library and NOT with
@end itemize
-@ifclear ANNOUNCE-ONLY
-
@section Changes in version @samp{1.10.0}
@itemize @bullet
@subsection What is GNUstep?
GNUstep is the Free Software Foundation's effort to implement NeXT
-Software, Inc.'s (now Apple Computer, Inc.) OpenStep Standard. The project is
-not finished, so some parts are not as polished as they could be.
+Software, Inc.'s (now Apple Computer, Inc.) OpenStep Standard. Also we
+are building developer and user applications based on this standard which
+may someday be used to form a complete desktop experience.
@node What is the OpenStep standard?, What platforms does GNUstep run on?, What is GNUstep?, GNUstep General Information
@subsection What is the OpenStep standard?
applications using the Objective-C language. It was published by NeXT
Computer, Inc. in 1994.
-OpenStep consists of three parts: the @samp{Foundation Kit}, a library of
-non-graphical objects; the @samp{Application Kit}, a library of objects useful
-in creating graphical applications; and the @samp{Display PostScript System}, an
-interface for drawing to the screen using the PostScript graphics
-language.
+OpenStep consists of three parts: the @samp{Foundation Kit}, a library
+of non-graphical objects; the @samp{Application Kit}, a library of
+objects useful in creating graphical applications; and the @samp{Display
+PostScript System} (DPS), an interface for drawing to the screen using
+the PostScript graphics language. DPS support is not being persued at
+this time however.
You can obtain a copy of the OpenStep standard from the GNUstep web site
@url{http://www.gnustep.org} or it's mirror sites.
@subsection What platforms does GNUstep run on?
See the list of supported platforms at
-@url{http://www.gnustep.org/information/machines_toc.html} for
+@url{machines_toc.html} for
information on what machines GNUstep builds on and what the status of
the ports is. Probably a few days porting to any other UNIX system where
current gcc compilers and gdb debugger work.
That being said, the base library should run on Windows NT, 98, 2000, and XP
with the Cygwin UNIX system-emulation environment from Cygnus
(@url{http://www.cygwin.com/}), or the MinGW environment
-(@url{http://www.mingw.org}). At present there are a few problems with
-networking (distributed objects) support, but the library is believed to work.
+(@url{http://www.mingw.org}).
The GUI library uses the win32 backend library to work under
Windows. The backend library is a thin layer that converts the
GNUstep methods to handle drawing of GUI elements to calls to the
Windows API. This project is currently in beta.
-The application-wrapper used for GNUstep already allows for multiple
-binaries to be stored for different systems, so you should be able
-to write once, deploy anywhere.
-
-
@node What is GNUstep's position towards KDE and the GNOME project?, How can I get GNUstep?, Does GNUstep run on Windows?, GNUstep General Information
@subsection What is GNUstep's position towards KDE and the GNOME project?
@node How can I get GNUstep?, How do you run GNUstep?, What is GNUstep's position towards KDE and the GNOME project?, GNUstep General Information
@subsection How can I get GNUstep?
-Get the HOWTO from
-@url{http://www.gnustep.org/resources/documentation/GNUstep-HOWTO}
-Get the latest release from @url{ftp://ftp.gnustep.org}. If you're
-really adventurous, get the latest snapshot by anonymous ftp from
-@url{ftp://ftp.gnustep.org/pub/daily-snapshots}
-
-Use anonymous CVS to keep up to date - instructions are in the
-HOWTO.
+Many distributions include packaged versions of GNUstep (Debian,
+etc). To compile from sratch, download the GNUstep Startup package or
+get the HOWTO from @url{gnustep-howto_toc.html}. Get the latest releases
+from @url{ftp://ftp.gnustep.org/pub/gnustep/core}.
@node How do you run GNUstep?, Is there a web site?, How can I get GNUstep?, GNUstep General Information
@subsection How do you run GNUstep?
@node What is usable?, , When is GNUstep intended to be available?, GNUstep General Information
@subsection What is usable?
-@itemize @bullet
-@item gnustep-make does pretty much what the makefiles in NEXTSTEP do.
-@item gnustep-base (Foundation) works well and is used in production evironments.
-@item gnustep-gdl2 works well and is used in production evironments.
-@item gnustep-gui (Application Kit) has a lot working but there is still stuff missing.
-@end itemize
+Most of GNUstep is quite usable and there are many complex applications
+that work well. However, GNUstep does not completely track the latest
+changes that Apple makes to their interface and there are still some
+parts that need some work).
What does this mean for users? Many applications will run quite well.
Applications that require very complex text handling and some unusual
* Is GNUstep following changes to OpenStep and Mac OS X?::
* Do we have to have the NEXTSTEP look and feel?::
* What's up with the directory structure?::
-* Why not use framework bundles?::
+* Why not use framework bundles?::
@end menu
@node Can I run NeXT OPENSTEP or Mac OS X programs on GNUstep?, Is GNUstep following changes to OpenStep and Mac OS X?, Compatibility and Layout, Compatibility and Layout
ease of use comes from this feel. The look of GNUstep is something
different --- buttons and other widgets can look different but still act
the same way. We hope to implement themes which will allow
-this. Actually we're hoping someone will volunteer to do it.
+this.
@node What's up with the directory structure?, Why not use framework bundles?, Do we have to have the NEXTSTEP look and feel?, Compatibility and Layout
@subsection What's up with the directory structure?
* Problems with Alt key::
* Problems with gcc3::
* Problems with fonts::
+* No characters displayed::
* No Makefile::
@end menu
Don't forget you need to update binutils and libc also.
-@node Problems with fonts, No Makefile, Problems with gcc3, Troubleshooting
+@node Problems with fonts, No characters displayed, Problems with gcc3, Troubleshooting
@subsection Problems with fonts
Why do the characters get changed to asterisks ('*')?
./configure --enable-graphics=art
@end example
-@node No Makefile, , Problems with fonts, Troubleshooting
+@node No characters displayed, No Makefile, Problems with fonts, Troubleshooting
+@subsection No characters displayed.
+
+When using the xlib backend, no characters are displayed in any GNUstep
+applications.
+
+The xlib backend has font anti-aliasing turned on by default. It's possible
+that GNUstep can't find any fonts on your system that can be properly anti-
+aliased. Try
+
+@example
+defaults write NSGlobalDomain GSFontAntiAlias NO
+@end example
+
+to turn off font anti-aliasing.
+
+@node No Makefile, , No characters displayed, Troubleshooting
@subsection No Makefile
I tried to compile something and I get:
GNUstep Frequently Asked Questions with Answers
***********************************************
-Last updated 21 July 2005. Please send corrections to
+Last updated 28 August 2006. Please send corrections to
<gnustep-maintainer@gnu.org>. Also look at the user FAQ for more user
oriented questions.
* Do not use CoreFoundation
- * Do not use Objective-C++
+ * Do not use Objective-C++ (except with gcc 4.1 or later)
* Do not use Quicktime or other proprietary extension
different machines because of endiness issues, although GNUstep doesn't
have this problem.
- Your best bet is to implement your own archiving format that would
-work both with GNUstep and Cocoa. Fortunately, you don't have to start
-from scratch, since this has been essentially done for you in the
-nib2gmodel tool, which has an archiver that works both on GNUstep and
-Cocoa. It might be nice to split this off into a separate project to
-make it easier for other people to do the same thing.
+ The new keyed archiving using XML file formats is much more portable,
+and GNUstep is trying to maintain compatibility with Apple with this
+type of archiving.
Does distributed objects work between GNUstep and Cocoa?
--------------------------------------------------------
tool called nib2gmodel that can be compiled under OPENSTEP to convert
nib files to GNUstep gmodel files.
+ Newer nib files use XML format keyed archiving and may possibly be
+transportable, although differences in class and ivar layout may still
+make this difficult.
+
Can one use the hybrid "Objective-C++"
--------------------------------------
No. at present the GNU compiler (gcc) does not support "Objective-C++".
-Apple is interested in adding back their implementation to gcc and is
-slowly adding parts of it to the mainline gcc implementation.
+Soon to br released gcc 4.1 will have this support, but it is still
+unclear how robust it will be.
Is there a plan to support the Java/YellowBox Bindings?
-------------------------------------------------------
windows server. While someone could write a backend library to provide
the interface, nobody has bothered to date.
- You should, however, be able to use a GNUstep program with an X11
-server running on MacOSX.
+ You can, however, use a GNUstep program with an X11 server running
+on MacOSX.
Is the Objective C API for GTK related?
---------------------------------------
You can write testcases - where the libraries fail tests, you could
either fix the problem, or add it to the task list.
- To write testcases, you need to use anonymous CVS to install the
-latest GNUstep snapshots you can find. Then checkout the 'tests' module
-from CVS. In the 'tests' directory, you will find a regression testing
-framework. In order to use this you will also need a recent (v 1.3.2
-or later) copy of Guile (you can get this from a GNU ftp site) and will
-need to check-out, built, and installed the 'guile' package from the
-GNUstep CVS repository.
+ To write testcases, you need to use svn to install the latest
+GNUstep sourcecode you can find. Then checkout the
+'gnustep/tools/testsuite' module from svn.
How do I start writing applications?
------------------------------------
in the individual GNUstep packages.
If you want to update the FAQ or documentation - grab the latest
-snapshot of the GNUstep core you can find, update it from the CVS
+snapshot of the GNUstep core you can find, update it from the svn
repository, and work with the contents of the appropriate documentation
directory.
instead of the basic runtime functions so that you code can run
with either system.
+ Apple has recently added new functionality to their runtime,
+ including built-in exception handling, etc. Hopefully these will
+ be ported to the GNU runtime in the future.
-Does it allow a mixture of Objective C and C++?
------------------------------------------------
-
-No. See *note Can one use the hybrid "Objective-C++"::
-
-Where can I find more information?
-----------------------------------
-
-The FAQ associated with the newsgroup `comp.lang.objective-c' contains
-more information about GNU Objective C.
GNUstep Base Library
====================
are not available.
[ NOTE: The GNU distributed object facilities have the same
-ease-of-use as NeXT's; be warned, however, that they are not compatible
-with each other. They have different class hierarchies, different
-instance variables, different method names, different implementation
-strategies and different network message formats. You cannot
-communicate with a NeXT NSConnection using a GNU NSConnection.
-
- Here are some differences between GNU distributed objects and NeXT's
-distributed objects: NeXT NSDistantObject asks it's remote target for
+ease-of-use as Apple's; be warned, however, that they are not
+compatible with each other. They have different class hierarchies,
+different instance variables, different method names, different
+implementation strategies and different network message formats. You
+cannot communicate with a Apple NSConnection using a GNU NSConnection.
+
+ Here are some differences between GNU distributed objects and Apple's
+distributed objects: Apple NSDistantObject asks it's remote target for
the method encoding types and caches the results; GNU NSDistantObject
gets the types directly from the local GNU "typed selector" mechanism
if the information is known locally and only queries the remote target
There are several backends currently available:
`xlib'
- This is the standard backend that runs on X11 and uses standard
- xlib calls for implementing drawing. It works well, but is limited
- in many areas due to the limitations of xlib drawing.
+ This backend runs on X11 and uses standard xlib calls for
+ implementing drawing. It works well, but is limited in many areas
+ due to the limitations of xlib drawing.
`art'
This is a very good backend that draws using the libart package and
- freetype with near PostScript quality and functionality. At some
- point it will become the standard.
+ freetype with near PostScript quality and functionality. It is
+ currently the standard backend (as long as the required libraries
+ are installed).
`w32'
- This backend works on Windows and is currently beta quality.
+ This backend works on Windows and uses basic Windows drawing
+
+`cairo'
+ An up-and-coming backend. It still relies on unpublished functions
+ in the cairo library so using it is not for the beginner.
GNUstep DisplayGhostScript Server
=================================
was not completed, Aladdin agreed to waive approximately $10,000 in
promised fees for the work that was actually done and delivered.) DGS
works fairly well with a single context. Alpha channel and compositing
-currently doesn't work.
+doesn't work.
What is the relationship between the Display Ghostscript Server and X Windows?
------------------------------------------------------------------------------
# but there is nothing to made, and the files get installed
# in a special directory, so it was simpler this way.
#
-
include config.make
+
# To install everything inside a temporary directory (say as part of
# building a binary package - deb or rpm), use something like `make
# install special_prefix=/var/tmp/gnustep-make'
special_prefix =
-GNUSTEP_SYSTEM_ROOT = $(special_prefix)@prefix@
+GNUSTEP_CONFIG_FILE = $(special_prefix)@GNUSTEP_CONFIG_FILE@
+GNUSTEP_CONFIG_FILE_DIR = $(dir $(GNUSTEP_CONFIG_FILE))
+GNUSTEP_SYSTEM_ROOT = $(special_prefix)@GNUSTEP_SYSTEM_ROOT@
GNUSTEP_LOCAL_ROOT = $(special_prefix)@GNUSTEP_LOCAL_ROOT@
GNUSTEP_NETWORK_ROOT = $(special_prefix)@GNUSTEP_NETWORK_ROOT@
+makedir = $(special_prefix)@GNUSTEP_MAKEFILES@
srcdir = @srcdir@
VPATH = @srcdir@
export GNUSTEP_TARGET_LDIR
export MAYBE_LIBRARY_COMBO
-makedir = $(GNUSTEP_SYSTEM_ROOT)/@MAKEFILES_SUFFIX@
tooldir = $(GNUSTEP_SYSTEM_ROOT)/Tools
INSTALL = @INSTALL@
VERTAG = $(subst .,_,$(GNUSTEP_MAKE_VERSION))
+SVNPREFIX=svn+ssh://svn.gna.org/svn/gnustep/tools/make
+
MAKE_FILES = aggregate.make application.make bundle.make service.make \
common.make library-combo.make java.make jni.make library.make \
messages.make rules.make target.make names.make resource-set.make \
INSTANCE_DOC_MAKE_FILES = autogsdoc.make gsdoc.make install_files.make \
javadoc.make latex.make texi.make
-all: generated-files which_lib$(EXEEXT) user_home$(EXEEXT)
+all: generated-files which_lib$(EXEEXT)
# Please note that you should use a bit of care in the following rule,
# because it must work in a directory which is not the source
which_lib$(EXEEXT): which_lib.c config.h
$(CC) @CFLAGS@ -Wall -I. -o $@ $<
-user_home$(EXEEXT): user_home.c config.h
- $(CC) @CFLAGS@ -DGNUSTEP_SYSTEM_ROOT=$(GNUSTEP_SYSTEM_ROOT) \
- -Wall -I. -o $@ $<
-
ifeq ($(messages),yes)
EC =
else
move_obsolete:
$(EC)(echo "Moving paths from old heirarchy: "; \
- $(srcdir)/move_obsolete_paths.sh $(GNUSTEP_SYSTEM_ROOT) $(GNUSTEP_LOCAL_ROOT) $(GNUSTEP_USER_ROOT))
+ $(srcdir)/move_obsolete_paths.sh "$(GNUSTEP_SYSTEM_ROOT)" "$(GNUSTEP_LOCAL_ROOT)" "$(GNUSTEP_USER_ROOT)")
install: all @GNUSTEP_MOVE_OBSOLETE@
$(EC)(echo "Creating system domain: $(GNUSTEP_SYSTEM_ROOT)"; \
- $(srcdir)/create_domain_dir_tree.sh $(GNUSTEP_SYSTEM_ROOT); \
+ $(srcdir)/create_domain_dir_tree.sh "$(GNUSTEP_SYSTEM_ROOT)"; \
echo "Creating local and network dirs: $(GNUSTEP_LOCAL_ROOT), $(GNUSTEP_NETWORK_ROOT)"; \
- $(srcdir)/mkinstalldirs $(GNUSTEP_LOCAL_ROOT) $(GNUSTEP_NETWORK_ROOT);\
+ $(srcdir)/mkinstalldirs "$(GNUSTEP_LOCAL_ROOT)" "$(GNUSTEP_NETWORK_ROOT)";\
echo "Creating makefile directories in: $(makedir)"; \
$(srcdir)/mkinstalldirs \
$(makedir) \
$(makedir)/$(GNUSTEP_TARGET_CPU) \
$(makedir)/$(GNUSTEP_TARGET_DIR) \
+ $(makedir)/$(GNUSTEP_TARGET_LDIR) \
$(makedir)/Additional \
$(makedir)/Auxiliary \
$(makedir)/Master \
$(makedir)/Instance \
$(makedir)/Instance/Shared \
$(makedir)/Instance/Documentation)
- -$(EC) rm -f $(GNUSTEP_SYSTEM_ROOT)/Makefiles
+ $(EC)(echo "Installing GNUstep configuration file in $(GNUSTEP_CONFIG_FILE)"; \
+ $(srcdir)/mkinstalldirs "$(GNUSTEP_CONFIG_FILE_DIR)"; \
+ $(INSTALL_DATA) GNUstep.conf "$(GNUSTEP_CONFIG_FILE)")
+ -$(EC) rm -f "$(GNUSTEP_SYSTEM_ROOT)/Makefiles"
$(EC)(echo "Installing gnustep-make support software"; \
$(INSTALL_PROGRAM) -m 755 which_lib$(EXEEXT) \
- $(makedir)/$(GNUSTEP_TARGET_DIR); \
- $(INSTALL_PROGRAM) -m 755 user_home$(EXEEXT) \
$(makedir)/$(GNUSTEP_TARGET_DIR))
$(EC)(for f in config.guess config.sub install-sh mkinstalldirs \
clean_cpu.sh clean_os.sh \
ld_lib_path.csh relative_path.sh strip_makefiles.sh; do \
$(INSTALL_PROGRAM) -m 755 $(srcdir)/$$f $(makedir); \
done)
- $(EC)($(INSTALL_PROGRAM) -m 755 GNUstep.sh $(makedir); \
+ $(EC)($(INSTALL_PROGRAM) -m 755 GNUstep.sh $(makedir); \
$(INSTALL_PROGRAM) -m 755 GNUstep.csh $(makedir); \
$(INSTALL_PROGRAM) -m 755 fixpath.sh $(makedir); \
$(INSTALL_PROGRAM) -m 755 openapp $(tooldir); \
$(makedir)/Instance/Documentation; \
done; \
$(INSTALL_DATA) executable.template $(makedir); \
- $(INSTALL_DATA) config.make $(makedir)/$(GNUSTEP_TARGET_DIR))
+ $(INSTALL_DATA) config.make $(makedir)/$(GNUSTEP_TARGET_LDIR))
$(EC)($(srcdir)/mkinstalldirs $(GNUSTEP_SYSTEM_ROOT)/share; \
$(INSTALL_DATA) $(srcdir)/config.site $(GNUSTEP_SYSTEM_ROOT)/share)
$(EC)(if [ "@GNUSTEP_STRIP_MAKEFILES@" = "strip" ]; then \
uninstall:
rm -f $(makedir)/$(GNUSTEP_TARGET_DIR)/which_lib$(EXEEXT)
- rm -f $(makedir)/$(GNUSTEP_TARGET_DIR)/user_home$(EXEEXT)
for f in config.guess config.sub install-sh mkinstalldirs \
clean_cpu.sh clean_os.sh \
clean_vendor.sh cpu.sh ld_lib_path.sh os.sh \
done
rm -f $(makedir)/executable.template
rm -f $(GNUSTEP_SYSTEM_ROOT)/share/config.site
- rm -f $(makedir)/$(GNUSTEP_TARGET_DIR)/config.make
+ rm -f $(makedir)/$(GNUSTEP_TARGET_LDIR)/config.make
-for f in $(makedir)/$(GNUSTEP_TARGET_CPU) \
$(makedir)/$(GNUSTEP_TARGET_DIR) \
$(makedir)/Additional \
# To really uninstall all of GNUstep, a 'rm -Rf ${GNUSTEP_ROOT}' should do.
clean:
- rm -f *~ which_lib$(EXEEXT) user_home$(EXEEXT) \
+ rm -f *~ which_lib$(EXEEXT) \
Master/*~ Instance/*~ Instance/Shared/*~
distclean: clean
rm -f gnustep-make.spec
rm -f GNUsteprc
+svn-tag:
+ svn copy $(SVNPREFIX)/trunk $(SVNPREFIX)/tags/make-$(VERTAG) \
+ -m "Tag version $(VERTAG)"
+
+svn-dist:
+ svn export $(SVNPREFIX)/tags/make-$(VERTAG) \
+ gnustep-make-$(GNUSTEP_MAKE_VERSION)
+ tar --gzip -cf gnustep-make-$(GNUSTEP_MAKE_VERSION).tar.gz gnustep-make-$(GNUSTEP_MAKE_VERSION)
+ rm -rf gnustep-make-$(GNUSTEP_MAKE_VERSION)
+
cvs-tag:
cvs -z3 rtag make-$(VERTAG) make
GNUstep HOWTO
*************
- Last Update: 21 July 2005
+ Last Update: 28 August 2006
This document explains how to build the different components of the
GNUstep core libraries and GNUstep Launchpad.
Copyright (C) 1996 - 2002 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
- under the terms of the GNU Free Documentation License, Version 1.1 or
+ under the terms of the GNU Public License, Version 1.0 or
any later version published by the Free Software Foundation.
Introduction
The GUI library uses this for playing sound files.
`portaudio (OPTIONAL)'
- The GUI library uses this for the sound server
+ The GUI library uses this for the sound server. Use v19, which has
+ several API changes since the previous version. v19 hasn't
+ actually been formally released, but several distributions (SuSE,
+ etc) use it anyway.
`freetype2 (RECOMMENDED, REQUIRED for art backend)'
- This is used for font information
+ This is used for font information. Freetype2 cache API is in flux.
+ GNUstep tries to account for this, but if you get errors about
+ undefined FTC_ symbols, you might be using an unsupported version
+ of freetype.
`libart_lgpl2 (REQUIRED for art backend only)'
Drawing library for the art backend.
GNUstep and WindowMaker work together to provide a consistant
interface. Although it is not required, GNUstep will work much
better if you use it with the WindowMaker window manager. Get
- WindowMaker from <http://www.windowmaker.org>.
+ WindowMaker from <http://www.windowmaker.info>.
`gnustep-objc package (for gcc version < 3.0 ONLY or MINGW/Cygwin) (RECOMMENDED)'
Note: Do not install this library unless you are sure you need it.
Compiler notes: If a recommended compiler is not listed, take note
of the following information before choosing the compiler you use.
EGCS OR GCC < 2.95
- Might work, but few people use these now.
+ Most likely will not work and is not supported.
GCC 2.95.X
- Probably the oldest compiler that GNUstep is regularly tested with.
+ Support for this compiler is deprecated as of Aug 2006. Mostly
+ likely it will work in the near future and bug fixes will be
+ accepted, but any bugs are considered non-critical.
GCC 2.96
Not an official gcc release. Some versions (Redhat, Mandrake) have
problems that prevent GNUstep from being compiled correctly and
- cause mysterious errors.
+ cause mysterious errors. Not supported.
GCC 3.0.X
A fairly good compiler. Recommended.
Recommended. The #import directive is no longer deprecated as of
this version of the compiler.
+GCC 4.0
+ Probably OK. Did start triggering compiler errors on parts of
+ base, but there has been a workaround in base for that. Does not
+ work on MacOSX.
+
+GCC 4.0.1
+ Probably OK. This version should work on MacOSX.
+
If your having mysterious trouble with a machine, try compiling
GNUstep without optimization. Particularly in the newer GCC compilers,
optimization can break some code. The easiest way to do this is when
installed, make sure you completely remove all of it, including
installed init scripts.
-Darwin/ix86
-===========
+ Support Notes:
+SUPPORTED
+ Regularly used and tested by developers
+
+RELEASE
+ Tested before a release
+
+UNSUPPORTED
+ Not regularly used or tested
+
+UNSTABLE
+ Has problems either building or running GNUstep or requires special
+ setp procedures to run correctly.
+
+Darwin/ix86 (_Unsupported_)
+===========================
Currently tested on Darwin 7.x
directory for complete instructions.
-Darwin/PowerPC
-==============
+Darwin/PowerPC (_Supported_)
+============================
This section is for building the complete GNUstep system. This system
will not interact at all with Mac OS X/Cocoa. It uses different
See also the MacOSX/PowerPC section
-Debian/DEC-Alpha
-================
-
-RECOMMENDED COMPILER
- Standard
-
-EXTRA LIBS NEEDED
- Unknown
-
-SPECIAL INSTRUCTIONS
- None
+Debian/Alpha (_Unsupported_)
+============================
-Debian/i386
-===========
+Debian/i386 (_Supported_)
+=========================
Tested on sid.
-RECOMMENDED COMPILER
- Standard
-
-EXTRA LIBS NEEDED
- Unknown
-SPECIAL INSTRUCTIONS
- None
-
-Debian/PowerPC
-==============
+Debian/PowerPC (_Supported_)
+============================
Tested on sid.
-RECOMMENDED COMPILER
- Standard
-
-EXTRA LIBS NEEDED
- Unknown
-SPECIAL INSTRUCTIONS
- None
-
-Debian/SPARC
-============
+Debian/SPARC (_Release_)
+========================
Tested on sid.
-RECOMMENDED COMPILER
- Standard
-
-EXTRA LIBS NEEDED
-SPECIAL INSTRUCTIONS
- None
-
-FreeBSD 5.x
-===========
+FreeBSD 5.x (_Supported_)
+=========================
Tested on 5.0, 5.1, 5.3
-RECOMMENDED COMPILER
-
-EXTRA LIBS NEEDED
- None.
-
SPECIAL INSTRUCTIONS
Can install via /usr/ports/devel/gnustep, but not all required
dependancies are installed. See the GNUstep-HOWTO for list of
For 5.3, there is a bug in libkvm that requires that /proc be
mounted. Use 'mount_procfs proc /proc' or see the procfs man page.
-
-FreeBSD 4.x
-===========
-
-RECOMMENDED COMPILER
-
-EXTRA LIBS NEEDED
- Unknown
+FreeBSD 4.x (_Unsupported_)
+===========================
SPECIAL INSTRUCTIONS
For gcc 3.0.4, make WANT_THREADS_SUPPORT=YES
Compiles "out of the box" on FreeBSD 3.4.
-RECOMMENDED COMPILER
- gcc 2.95.2
-
-EXTRA LIBS NEEDED
- Unknown
-
SPECIAL INSTRUCTIONS
You need to use gmake not make to compile the GNUstep packages. A
special port of gdb can be used with the Objective-C patches from
FreeBSD 2.x (_Obsolete,Unstable_)
=================================
-RECOMMENDED COMPILER
- gcc 2.8.x
-
-EXTRA LIBS NEEDED
- Unknown
-
SPECIAL INSTRUCTIONS
Only static libraries work on this system. Use /stand/sysinstall
to install these packages if you have not already done so:
GNUstep packages.
-Irix 6.5/MIPS (_Needs a maintainer_)
-====================================
+Gentoo/i686 (_Supported_)
+=========================
+
+SPECIAL INSTRUCTIONS
+ libffi sometimes causes odd problems. Try to use ffcall.
+
+Gentoo/PPC (_Supported_)
+========================
+
+Gentoo/amd64 (_Unsupported_)
+============================
+
+32-bit mode only?
+
+Gentoo/alpha (_Unsupported_)
+============================
+
+Gentoo/sparc (_Unsupported_)
+============================
+
+Irix 6.5/MIPS (_Unsupported_)
+=============================
RECOMMENDED COMPILER
gcc 3.2.1
link the library by hand. No libffi-support: Use ffcall
-MacOSX/PowerPC
-==============
+MacOSX/PowerPC (_Release_)
+==========================
This section is for building the GNUstep extensions only. Use this if,
for instance, if you want to build something based on GNUstep, such as
See also the Darwin/PowerPC section.
-MkLinux/PowerPC
-===============
+MkLinux/PowerPC (_Unsupported_)
+===============================
Tested with R2 RC2 (2004/03/04).
-RECOMMENDED COMPILER
- gcc 3.x allthough earlier ones should work if you also install
- gnustep-objc
-
-EXTRA LIBS NEEDED
- None.
-
-SPECIAL INSTRUCTIONS
- Unknown.
-
-
-NetBSD/i386
-===========
+NetBSD/i386 (_Release_)
+=======================
Tested on NetBSD 2.0.2 (2005/04/15)
SPECIAL INSTRUCTIONS
See <http://www.netwinder.org/~patrix>
-OpenBSD 3.x (_Needs Testing_)
-==============================
+OpenBSD 3.9 (_Unsupported_)
+============================
-RECOMMENDED COMPILER
- Unknown
+Information for version 3.9 (2006/08/13)
-EXTRA LIBS NEEDED
- Unknown
+ Ports at <http://mail.rochester.edu/~asveikau/gnustep-openbsd/>
-SPECIAL INSTRUCTIONS
- Try reading the <README.NetBSD> which might work the same on
- OpenBSD.
-
-OSF Alpha (_Unstable_)
-=======================
+OSF/Alpha (_Needs Testing, Unstable_)
+======================================
Information is for Version 3.2C
RECOMMENDED COMPILER
- egcs-1.1.1/1.1.2, gcc-2.95
+ Unknown
EXTRA LIBS NEEDED
Unknown
GNUmakefile(.preamble).
-RedHat/Intel
-============
-
-RECOMMENDED COMPILER
- Standard
-
-EXTRA LIBS NEEDED
- Standard (ffcall or libffi)
-
-SPECIAL INSTRUCTIONS
- None
-
-Slackware/Intel
-===============
-
-RECOMMENDED COMPILER
- Unknown.
-
-EXTRA LIBS NEEDED
- Unknown.
-
-SPECIAL INSTRUCTIONS
- Unknown.
+RedHat/Intel (_Unsupported_)
+============================
+Slackware/Intel (_Unsupported_)
+===============================
-Slackware/Sparc (Splack)
-========================
+Slackware/Sparc (Splack) (_Unsupported_)
+========================================
-Tested with Spalck 8.0
+Tested with Spalck 8.0 (2005/03/01)
RECOMMENDED COMPILER
gcc 3.2, no extra options.
SPECIAL INSTRUCTIONS
See the Solaris 2.6 section for more instructions.
-Solaris 2.[678]/Sparc
-=====================
+Solaris 2.[678]/Sparc (_Supported_)
+===================================
Tested on Solaris version 6, 7, and 8
RECOMMENDED COMPILER
- gcc 3.2.1 or greater gcc 2.95.3. Version 2.95.2 has several bugs
- that GNUstep tickles. gcc 3.04. Not 3.1 - does not compile parts
- of GNUstep.
+ gcc 3.2.1 or greater gcc 3.04. Not 3.1 - does not compile parts of
+ GNUstep.
EXTRA LIBS NEEDED
tiff, Don't use the one in /usr/openwin
Or use the gnustep-objc package. Also make sure THREADS is set to
'posix' not 'solaris'.
-Solaris 2.7/Intel
-=================
+Solaris 2.7/Intel (_Unsupported_)
+=================================
RECOMMENDED COMPILER
Unknown.
instructions above for more information.
-Suse 6.x/Intel
-==============
+Suse 6.x/Intel (_Obsolete_)
+===========================
GNUstep has been tested on version 6.2-6.4 of Suse
working.
-Suse/Intel
-==========
+Suse/Intel (_Supported_)
+========================
-GNUstep has been tested on version 7.0, 8.0, 8.1, 8.2, 9.0, 9.1, and
-9.3 of Suse
+GNUstep has been tested on version 7.0, 8.0, 8.1, 8.2, 9.0, 9.1, 9.3,
+and 10.1 of Suse
RECOMMENDED COMPILER
The default compiler that comes with Susu is fine. Also gcc2.95.x,
None
SPECIAL INSTRUCTIONS
- None.
+ Suse 10.1 does not work with the x11 backend.
-Suse 7.x/PPC
-============
+Suse 7.x/PPC (_Unsupported_)
+============================
GNUstep has been tested on version 7.0 of Suse/PPC
SPECIAL INSTRUCTIONS
-Unixware-2.1.3/Intel
-====================
+Unixware-2.1.3/Intel (_Unsupported_)
+====================================
RECOMMENDED COMPILER
Unknown
If you don't set gdomap up correctly, Distributed Objects will not
work.
-Windows with CYGWIN (_Needs a maintainer_)
-==========================================
+Windows with CYGWIN (_Unsupported_)
+===================================
RECOMMENDED COMPILER
gcc 3.3.1 or later (with libobjc and libjava (if using libffi))
problems. See <README.Cygwin> for information on compiling.
-Windows with MinGW
-==================
+Windows with MinGW (_Supported_)
+================================
RECOMMENDED COMPILER
See below.
Win98 machines and earlier are very buggy and are not supported.
Native GUI backend is alpha version.
-Yellowdog/PowerPC
-=================
-
-RECOMMENDED COMPILER
- Standard
-
-EXTRA LIBS NEEDED
- Standard (ffcall or libffi)
-
-SPECIAL INSTRUCTIONS
+Yellowdog/PowerPC (_Unsupported_)
+=================================
-Getting Libraries via Anonymous CVS
-***********************************
+Getting Libraries via SVN
+*************************
If you didn't get one of the snapshots, or if you want to be sure to
-stay on the bleading edge, then you should get the libraries via CVS. Go
-to <http://savannah.gnu.org/cvs/?group_id=99> for information on how to
-get anonymous CVS access.
+stay on the bleading edge, then you should get the libraries via SVN. Go
+to <http://www.gnustep.org/resources/sources.html> for information on
+how to get the sourcecode.
If you haven't already done so, change to the directory, where you
want the source to reside. To get a list of potential modules to check
unset GNUSTEP_SYSTEM_ROOT
unset GNUSTEP_ROOT
unset LIBRARY_COMBO
+
+unset GNUSTEP_CONFIG_FILE
+unset GNUSTEP_USER_CONFIG_FILE
+unset GNUSTEP_USER_DIR
+unset GNUSTEP_USER_DEFAULTS_DIR
--- /dev/null
+##
+## This is the GNUstep configuration file.
+##
+
+## Any line starting with a '#' is a comment.
+## Empty lines are ignored.
+## Every other line in this file must be of the form
+## XXX=YYY
+## where there should be no spaces around the '=' (this is because we
+## include this file in shell scripts and makefiles, and sh syntax
+## requires no spaces around the '=').
+##
+## Standard sh quotes can be used in YYY but only at runtime; they can
+## not be used while building.
+##
+
+GNUSTEP_SYSTEM_ROOT=@GNUSTEP_SYSTEM_ROOT@
+GNUSTEP_LOCAL_ROOT=@GNUSTEP_LOCAL_ROOT@
+GNUSTEP_NETWORK_ROOT=@GNUSTEP_NETWORK_ROOT@
+
+GNUSTEP_USER_CONFIG_FILE=@GNUSTEP_USER_CONFIG_FILE@
+GNUSTEP_USER_DIR=@GNUSTEP_USER_DIR@
+GNUSTEP_USER_DEFAULTS_DIR=@GNUSTEP_USER_DEFAULTS_DIR@
#
# Shell initialization for the GNUstep environment.
#
-# Copyright (C) 1998-2002 Free Software Foundation, Inc.
+# Copyright (C) 1998-2005 Free Software Foundation, Inc.
#
# Author: Scott Christley <scottc@net-community.com>
# Author: Adam Fedor <fedor@gnu.org>
#
# Set the GNUstep system root and local root
#
-setenv GNUSTEP_ROOT "@GNUSTEP_ROOT@"
-setenv GNUSTEP_SYSTEM_ROOT "@prefix@"
+
+#
+# Read our configuration files
+#
+
+# Determine the location of the system configuration file
+if ( ! ${?GNUSTEP_CONFIG_FILE} ) then
+ setenv GNUSTEP_CONFIG_FILE "@GNUSTEP_CONFIG_FILE@"
+endif
+
+# Determine the location of the user configuration file
+if ( ! ${?GNUSTEP_USER_CONFIG_FILE} ) then
+ setenv GNUSTEP_USER_CONFIG_FILE "@GNUSTEP_USER_CONFIG_FILE@"
+endif
+
+# Read the system configuration file
+if ( -e "${GNUSTEP_CONFIG_FILE}" ) then
+ #
+ # Convert the config file from sh syntax to csh syntax, and execute it.
+ #
+ # We want to convert every line of the type ^xxx=yyy$ into setenv xxx yyy;
+ # and ignore any other line.
+ #
+ # This sed expression will first delete all lines that don't match
+ # the pattern ^[^#=][^#=]*=.*$ -- which means "start of line (^),
+ # followed by a character that is not # and not = ([^#=]), followed
+ # by 0 or more characters that are not # and not = ([^#=]*),
+ # followed by a = (=), followed by some characters until end of the
+ # line (.*$). It will then replace each occurrence of the same
+ # pattern (where the first and second relevant parts are now tagged
+ # -- that's what the additional \(...\) do) with 'setenv \1 \2'.
+ #
+ # The result of all this is ... something that we want to execute!
+ # We use eval to execute the results of `...`.
+ #
+ # Please note that ! must always be escaped in csh, which is why we
+ # write \\!
+ #
+ # Also note that we add a ';' at the end of each setenv command so
+ # that we can pipe all the commands through a single eval.
+ #
+ eval `sed -e '/^[^#=][^#=]*=.*$/\\!d' -e 's/^\([^#=][^#=]*\)=\(.*\)$/setenv \1 \2;/' "${GNUSTEP_CONFIG_FILE}"`
+endif
+
+# FIXME: determining GNUSTEP_HOME
+set GNUSTEP_HOME = ~
+
+# Read the user configuration file ... unless it is disabled (ie, set
+# to an empty string)
+if ( ${?GNUSTEP_USER_CONFIG_FILE} ) then
+ switch ("${GNUSTEP_USER_CONFIG_FILE}")
+ case /*: # An absolute path
+ if ( -e "${GNUSTEP_USER_CONFIG_FILE}" ) then
+ # See above for an explanation of the sed expression
+ eval `sed -e '/^[^#=][^#=]*=.*$/\\!d' -e 's/^\([^#=][^#=]*\)=\(.*\)$/setenv \1 \2;/' "${GNUSTEP_USER_CONFIG_FILE}"``
+ endif
+ breaksw
+ default: # Something else
+ if ( -e "${GNUSTEP_HOME}/${GNUSTEP_USER_CONFIG_FILE}" ) then
+ eval `sed -e '/^[^#=][^#=]*=.*$/\\!d' -e 's/^\([^#=][^#=]*\)=\(.*\)$/setenv \1 \2;/' "${GNUSTEP_HOME}/${GNUSTEP_USER_CONFIG_FILE}"`
+ endif
+ breaksw
+ endsw
+endif
+
+# Now, set any essential variable (that is not already set) to the
+# built-in values.
+if ( ! ${?GNUSTEP_SYSTEM_ROOT} ) then
+ setenv GNUSTEP_SYSTEM_ROOT "@GNUSTEP_SYSTEM_ROOT@"
+endif
+
+if ( ! ${?GNUSTEP_LOCAL_ROOT} ) then
+ setenv GNUSTEP_LOCAL_ROOT "@GNUSTEP_LOCAL_ROOT@"
+endif
+
+if ( ! ${?GNUSTEP_NETWORK_ROOT} ) then
+ setenv GNUSTEP_NETWORK_ROOT "@GNUSTEP_NETWORK_ROOT@"
+endif
+
+
setenv GNUSTEP_FLATTENED "@GNUSTEP_FLATTENED@"
if ( ! ${?LIBRARY_COMBO} ) then
setenv LIBRARY_COMBO "@ac_cv_library_combo@"
endif
-setenv GNUSTEP_LOCAL_ROOT "@GNUSTEP_LOCAL_ROOT@"
-setenv GNUSTEP_NETWORK_ROOT "@GNUSTEP_NETWORK_ROOT@"
+if ( ! ${?GNUSTEP_MAKEFILES} ) then
+ setenv GNUSTEP_MAKEFILES "${GNUSTEP_SYSTEM_ROOT}/Library/Makefiles"
+endif
-setenv GNUSTEP_MAKEFILES "${GNUSTEP_SYSTEM_ROOT}/@MAKEFILES_SUFFIX@"
+if ( ! ${?GNUSTEP_USER_DIR} ) then
+ setenv GNUSTEP_USER_DIR "@GNUSTEP_USER_DIR@"
+endif
+
+#
+# Set GNUSTEP_USER_ROOT which is the variable used in practice
+#
+switch ("${GNUSTEP_USER_DIR}")
+ case /*: # An absolute path
+ setenv GNUSTEP_USER_ROOT "${GNUSTEP_USER_DIR}"
+ breaksw
+ default: # Something else
+ setenv GNUSTEP_USER_ROOT "${GNUSTEP_HOME}/${GNUSTEP_USER_DIR}"
+ breaksw
+endsw
+
+# No longer needed
+unset GNUSTEP_HOME
if ( "@GNUSTEP_MULTI_PLATFORM@" == "" ) then
setenv GNUSTEP_HOST "@target@"
setenv GNUSTEP_HOST_OS `${GNUSTEP_MAKEFILES}/clean_os.sh ${GNUSTEP_HOST_OS}`
endif
-if ( "${GNUSTEP_FLATTENED}" == "" ) then
- setenv GNUSTEP_USER_ROOT `${GNUSTEP_MAKEFILES}/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}/user_home user`
-else
- setenv GNUSTEP_USER_ROOT `${GNUSTEP_MAKEFILES}/user_home user`
-endif
-
#
# Add the GNUstep tools directories to the path
#
#
# Shell initialization for the GNUstep environment.
#
-# Copyright (C) 1997-2002 Free Software Foundation, Inc.
+# Copyright (C) 1997-2005 Free Software Foundation, Inc.
#
# Author: Scott Christley <scottc@net-community.com>
# Author: Adam Fedor <fedor@gnu.org>
#
# Set the GNUstep system root and local root
#
-GNUSTEP_ROOT=@GNUSTEP_ROOT@
-GNUSTEP_SYSTEM_ROOT=@prefix@
+
+#
+# Read our configuration files
+#
+
+# Determine the location of the system configuration file
+if [ -z "$GNUSTEP_CONFIG_FILE" ]; then
+ GNUSTEP_CONFIG_FILE=@GNUSTEP_CONFIG_FILE@
+fi
+
+# Determine the location of the user configuration file
+if [ -z "$GNUSTEP_USER_CONFIG_FILE" ]; then
+ GNUSTEP_USER_CONFIG_FILE=@GNUSTEP_USER_CONFIG_FILE@
+fi
+
+# Read the system configuration file
+if [ -f "$GNUSTEP_CONFIG_FILE" ]; then
+ . "$GNUSTEP_CONFIG_FILE"
+fi
+
+# FIXME: determining GNUSTEP_HOME
+GNUSTEP_HOME=~
+
+# Read the user configuration file ... unless it is disabled (ie, set
+# to an empty string)
+if [ -n "$GNUSTEP_USER_CONFIG_FILE" ]; then
+ case "$GNUSTEP_USER_CONFIG_FILE" in
+ /*) # An absolute path
+ if [ -f "$GNUSTEP_USER_CONFIG_FILE" ]; then
+ . "$GNUSTEP_USER_CONFIG_FILE"
+ fi;;
+ *) # Something else
+ if [ -f "$GNUSTEP_HOME/$GNUSTEP_USER_CONFIG_FILE" ]; then
+ . "$GNUSTEP_HOME/$GNUSTEP_USER_CONFIG_FILE"
+ fi;;
+ esac
+fi
+
+# Now, set any essential variable (that is not already set) to the
+# built-in values.
+if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
+ GNUSTEP_SYSTEM_ROOT=@GNUSTEP_SYSTEM_ROOT@
+fi
+
+if [ -z "$GNUSTEP_LOCAL_ROOT" ]; then
+ GNUSTEP_LOCAL_ROOT=@GNUSTEP_LOCAL_ROOT@
+fi
+
+if [ -z "$GNUSTEP_NETWORK_ROOT" ]; then
+ GNUSTEP_NETWORK_ROOT=@GNUSTEP_NETWORK_ROOT@
+fi
+
+export GNUSTEP_SYSTEM_ROOT GNUSTEP_LOCAL_ROOT GNUSTEP_NETWORK_ROOT
+
GNUSTEP_FLATTENED=@GNUSTEP_FLATTENED@
if [ -z "$LIBRARY_COMBO" ]; then
LIBRARY_COMBO=@ac_cv_library_combo@
fi
-export GNUSTEP_ROOT GNUSTEP_SYSTEM_ROOT GNUSTEP_FLATTENED LIBRARY_COMBO
+export GNUSTEP_FLATTENED LIBRARY_COMBO
-GNUSTEP_MAKEFILES=$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@
+if [ -z "$GNUSTEP_MAKEFILES" ]; then
+ GNUSTEP_MAKEFILES=$GNUSTEP_SYSTEM_ROOT/Library/Makefiles
+fi
export GNUSTEP_MAKEFILES
-GNUSTEP_LOCAL_ROOT=@GNUSTEP_LOCAL_ROOT@
-GNUSTEP_NETWORK_ROOT=@GNUSTEP_NETWORK_ROOT@
-export GNUSTEP_LOCAL_ROOT GNUSTEP_NETWORK_ROOT
+if [ -z "$GNUSTEP_USER_DIR" ]; then
+ GNUSTEP_USER_DIR=@GNUSTEP_USER_DIR@
+fi
+
+#
+# Set GNUSTEP_USER_ROOT which is the variable used in practice
+#
+case "$GNUSTEP_USER_DIR" in
+ /*) # An absolute path
+ GNUSTEP_USER_ROOT="$GNUSTEP_USER_DIR";;
+ *) # Something else
+ GNUSTEP_USER_ROOT="$GNUSTEP_HOME/$GNUSTEP_USER_DIR";;
+esac
+
+export GNUSTEP_USER_ROOT
+
+# No longer needed
+unset GNUSTEP_HOME
# If multi-platform support is disabled, just use the hardcoded cpu,
# vendor and os determined when gnustep-make was configured. The
export GNUSTEP_HOST GNUSTEP_HOST_CPU GNUSTEP_HOST_VENDOR GNUSTEP_HOST_OS
-#
-# Ask the user_home tool for the root path.
-#
-if [ -z "$GNUSTEP_FLATTENED" ]; then
- GNUSTEP_USER_ROOT=`$GNUSTEP_MAKEFILES/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/user_home user`
-else
- GNUSTEP_USER_ROOT=`$GNUSTEP_MAKEFILES/user_home user`
-fi
-
-export GNUSTEP_USER_ROOT
-
#
# GNUSTEP_PATHLIST is like an abstract path-like shell
# variable, which can be used to search the gnustep directories - and
APP_INSTALL_DIR = $(GNUSTEP_APPS)
endif
-# On windows, this is unfortunately required.
-ifeq ($(BUILD_DLL), yes)
- DUP_OBJC_LIBS = $(AUXILIARY_OBJC_LIBS) $(OBJC_LIBS)
-endif
-
ALL_GUI_LIBS = \
$(shell $(WHICH_LIB_SCRIPT) \
$(ALL_LIB_DIRS) \
$(ADDITIONAL_GUI_LIBS) $(AUXILIARY_GUI_LIBS) $(GUI_LIBS) \
$(BACKEND_LIBS) $(ADDITIONAL_TOOL_LIBS) $(AUXILIARY_TOOL_LIBS) \
- $(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(DUP_OBJC_LIBS) $(SYSTEM_LIBS) \
+ $(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(AUXILIARY_OBJC_LIBS) $(OBJC_LIBS) \
+ $(SYSTEM_LIBS) $(TARGET_SYSTEM_LIBS) \
debug=$(debug) profile=$(profile) shared=$(shared) \
libext=$(LIBEXT) shared_libext=$(SHARED_LIBEXT))
# Gorm.app/Gorm.exe.a to the list of objects you link and you get it
# working. TODO: Move this into target.make
ifeq ($(BUILD_DLL), yes)
-ifneq ($(OLD_DLL_SUPPORT),yes)
ALL_LDFLAGS += -Wl,--export-all-symbols -Wl,--out-implib,$(GNUSTEP_BUILD_DIR)/$(APP_DIR_NAME)/$(GNUSTEP_TARGET_LDIR)/$(GNUSTEP_INSTANCE).exe$(LIBEXT)
endif
-endif
$(APP_FILE): $(OBJ_FILES_TO_LINK)
- $(ECHO_LINKING)$(LD) $(ALL_LDFLAGS) -o $(LDOUT)$@ $(OBJ_FILES_TO_LINK)\
- $(ALL_GUI_LIBS)$(END_ECHO)
+ $(ECHO_LINKING)$(LD) $(ALL_LDFLAGS) $(CC_LDFLAGS) -o $(LDOUT)$@ \
+ $(OBJ_FILES_TO_LINK) $(ALL_GUI_LIBS)$(END_ECHO)
ifneq ($(FOUNDATION_LIB), apple)
$(ECHO_NOTHING)$(TRANSFORM_PATHS_SCRIPT) $(subst -L,,$(ALL_LIB_DIRS)) \
>$(APP_DIR)/$(GNUSTEP_TARGET_LDIR)/library_paths.openapp$(END_ECHO)
LINK_BUNDLE_AGAINST_ALL_LIBS = yes
endif
-# On Apple, two-level namespaces require all symbols in bundles
+# Apple CC two-level namespaces requires all symbols in bundles
# to be resolved at link time.
-ifeq ($(FOUNDATION_LIB), apple)
+ifeq ($(CC_BUNDLE), yes)
LINK_BUNDLE_AGAINST_ALL_LIBS = yes
endif
$(BUNDLE_DIR)/$(GNUSTEP_TARGET_LDIR):
$(ECHO_CREATING)$(MKDIRS) $@$(END_ECHO)
-# OLD_DLL_SUPPORT should really be deprecated and dropped.
-ifeq ($(OLD_DLL_SUPPORT),yes)
-
-$(BUNDLE_FILE): $(OBJ_FILES_TO_LINK)
- $(ECHO_LINKING)$(DLLWRAP) --driver-name $(CC) \
- -o $(LDOUT)$(BUNDLE_FILE) \
- $(OBJ_FILES_TO_LINK) \
- $(ALL_LDFLAGS) \
- $(ALL_BUNDLE_LIBS)$(END_ECHO)
-
-else # Standard bundle build using the rules for this target
-
$(BUNDLE_FILE): $(OBJ_FILES_TO_LINK)
- $(ECHO_LINKING)$(BUNDLE_LD) $(BUNDLE_LDFLAGS) $(ALL_LDFLAGS) \
- -o $(LDOUT)$(BUNDLE_FILE) \
- $(OBJ_FILES_TO_LINK) \
- $(ALL_BUNDLE_LIBS)$(END_ECHO)
-
-endif # OLD_DLL_SUPPORT
+ $(ECHO_LINKING)$(BUNDLE_LINK_CMD)$(END_ECHO)
PRINCIPAL_CLASS = $(strip $($(GNUSTEP_INSTANCE)_PRINCIPAL_CLASS))
# LIB_LINK_DLL_FILE is the DLL library, Renaissance.dll
LIB_LINK_DLL_FILE = $(GNUSTEP_INSTANCE)$(DLL_LIBEXT)
+FRAMEWORK_OBJ_EXT = $(DLL_LIBEXT)
endif # BUILD_DLL
FRAMEWORK_FILE_NAME := $(FRAMEWORK_LIBRARY_DIR_NAME)/$(VERSION_FRAMEWORK_LIBRARY_FILE)
$(FRAMEWORK_VERSION_DIR)/Headers:
$(ECHO_CREATING)$(MKDIRS) $@$(END_ECHO)
-$(DERIVED_SOURCES_DIR):
- $(ECHO_CREATING)$(MKDIRS) $@$(END_ECHO)
+$(DERIVED_SOURCES_DIR): $(DERIVED_SOURCES_DIR)/.stamp
+$(DERIVED_SOURCES_DIR)/.stamp:
+ $(ECHO_CREATING)$(MKDIRS) $(DERIVED_SOURCES_DIR); \
+ touch $@$(END_ECHO)
# Need to share this code with the headers code ... but how.
-$(FRAMEWORK_HEADER_FILES): $(addprefix $(HEADER_FILES_DIR)/,$(HEADER_FILES)) \
- $(FRAMEWORK_VERSION_DIR)/Headers
-ifneq ($(HEADER_FILES),)
- $(ECHO_NOTHING)for file in $(HEADER_FILES) __done; do \
- if [ $$file != __done ]; then \
- $(INSTALL_DATA) $(HEADER_FILES_DIR)/$$file \
- $(FRAMEWORK_VERSION_DIR)/Headers/$$file ; \
- fi; \
- done$(END_ECHO)
-endif
+$(FRAMEWORK_VERSION_DIR)/Headers/%.h: $(HEADER_FILES_DIR)/%.h $(FRAMEWORK_VERSION_DIR)/Headers
+ $(ECHO_NOTHING)$(INSTALL_DATA) $< $@$(END_ECHO)
+
OBJC_OBJ_FILES_TO_INSPECT = $(OBJC_OBJ_FILES) $(SUBPROJECT_OBJ_FILES)
# The following rule will also build the DUMMY_FRAMEWORK_CLASS_LIST
# file. This file is always created/deleted at the same time as the
# DUMMY_FRAMEWORK_FILE.
-$(DUMMY_FRAMEWORK_FILE): $(DERIVED_SOURCES_DIR) $(OBJ_FILES_TO_LINK) GNUmakefile
+$(DUMMY_FRAMEWORK_FILE): $(DERIVED_SOURCES_DIR)/.stamp $(OBJ_FILES_TO_LINK) GNUmakefile
$(ECHO_CREATING) classes=""; \
for object_file in $(OBJC_OBJ_FILES_TO_INSPECT) __dummy__; do \
if [ "$$object_file" != "__dummy__" ]; then \
$(FRAMEWORK_FILE): $(DUMMY_FRAMEWORK_OBJ_FILE) $(OBJ_FILES_TO_LINK)
$(ECHO_LINKING) \
- $(LIB_LINK_CMD); \
+ $(LIB_LINK_CMD) || $(RM) $(FRAMEWORK_FILE) ; \
(cd $(LIB_LINK_OBJ_DIR); \
$(RM_LN_S) $(GNUSTEP_INSTANCE); \
$(LN_S) $(LIB_LINK_FRAMEWORK_FILE) $(GNUSTEP_INSTANCE)) \
# GNUstep frameworks
$(FRAMEWORK_VERSION_DIR)/Resources/Info-gnustep.plist: $(FRAMEWORK_VERSION_DIR)/Resources $(DUMMY_FRAMEWORK_FILE)
$(ECHO_CREATING)(echo "{"; echo ' NOTE = "Automatically generated, do not edit!";'; \
- echo " NSExecutable = \"$(GNUSTEP_INSTANCE)\";"; \
+ echo " NSExecutable = \"$(GNUSTEP_INSTANCE)$(FRAMEWORK_OBJ_EXT)\";"; \
echo " NSMainNibFile = \"$(MAIN_MODEL_FILE)\";"; \
echo " NSPrincipalClass = \"$(PRINCIPAL_CLASS)\";"; \
echo " Classes = "; \
GSWAPP_INSTALL_DIR = $(GNUSTEP_GSWAPPS)
endif
-# On windows, this is unfortunately required.
-ifeq ($(BUILD_DLL), yes)
- DUP_OBJC_LIBS = $(AUXILIARY_OBJC_LIBS) $(OBJC_LIBS)
-endif
-
# Libraries that go before the WO libraries
ALL_GSW_LIBS = \
$(shell $(WHICH_LIB_SCRIPT) \
$(ALL_LIB_DIRS) \
$(ADDITIONAL_GSW_LIBS) $(AUXILIARY_GSW_LIBS) $(GSW_LIBS) \
$(ADDITIONAL_TOOL_LIBS) $(AUXILIARY_TOOL_LIBS) \
- $(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(DUP_OBJC_LIBS) $(SYSTEM_LIBS) \
+ $(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(AUXILIARY_OBJC_LIBS) \
+ $(OBJC_LIBS) $(SYSTEM_LIBS) $(TARGET_SYSTEM_LIBS) \
debug=$(debug) profile=$(profile) shared=$(shared) \
libext=$(LIBEXT) shared_libext=$(SHARED_LIBEXT))
#
$(GSWAPP_FILE): $(OBJ_FILES_TO_LINK)
- $(ECHO_LINKING)$(LD) $(ALL_LDFLAGS) -o $(LDOUT)$@ $(OBJ_FILES_TO_LINK)\
- $(ALL_GSW_LIBS)$(END_ECHO)
+ $(ECHO_LINKING)$(LD) $(ALL_LDFLAGS) $(CC_LDFLAGS) -o $(LDOUT)$@ \
+ $(OBJ_FILES_TO_LINK) $(ALL_GSW_LIBS)$(END_ECHO)
ifneq ($(FOUNDATION_LIB), apple)
$(ECHO_NOTHING)$(TRANSFORM_PATHS_SCRIPT) $(subst -L,,$(ALL_LIB_DIRS)) \
>$(GSWAPP_DIR)/$(GNUSTEP_TARGET_LDIR)/library_paths.openapp$(END_ECHO)
endif
include $(GNUSTEP_MAKEFILES)/Instance/Shared/headers.make
-include $(GNUSTEP_MAKEFILES)/Instance/Shared/pch.make
#
# The name of the library (including the 'lib' prefix) is
debug=$(debug) profile=$(profile) shared=$(shared) \
libext=$(LIBEXT) shared_libext=$(SHARED_LIBEXT))
-
-#
-# This is a hack to properly compile GCJ libraries. Part of the problem is
-# that target.make often uses $(CC) instead of $(LD) to define the
-# SHARED_LIB_LINK_CMD command.
-#
-# Well, and Java libraries apparently need to be compiled with 'gcj', otherwise
-# the result doesn't work (gives runtime class linking errors).
-#
-# Note that GCJ seems to link regular libraries just fine, so this doesn't
-# seem to conflict with C_FILES, OBJC_FILES etc.
-#
-ifneq ($($(GNUSTEP_INSTANCE)_AOT_JAVA_FILES),)
-CC:=gcj # force gstep-make to use GCJ to link the shared library
-endif
-
-
ifeq ($(shared), yes)
ifneq ($(BUILD_DLL),yes)
CLEAN_library_NAME = $(subst -,_,$(LIBRARY_NAME_WITH_LIB))
SHARED_CFLAGS += -DBUILD_$(CLEAN_library_NAME)_DLL=1
-# OLD_DLL_SUPPORT should really be deprecated and dropped.
-ifeq ($(OLD_DLL_SUPPORT),yes)
-LIBRARY_FILE = $(LIBRARY_NAME_WITH_LIB)$(LIBRARY_NAME_SUFFIX)$(DLL_LIBEXT)
-DLL_NAME = $(shell echo $(LIBRARY_FILE)|cut -b 4-)
-DLL_EXP_LIB = $(LIBRARY_NAME_WITH_LIB)$(LIBRARY_NAME_SUFFIX)$(SHARED_LIBEXT)
-DLL_EXP_DEF = $(LIBRARY_NAME_WITH_LIB)$(LIBRARY_NAME_SUFFIX).def
-
-else
-# BUILD_DLL, but new DLL support.
-
# LIBRARY_FILE is the import library, libgnustep-base.dll.a
LIBRARY_FILE = $(LIBRARY_NAME_WITH_LIB)$(LIBRARY_NAME_SUFFIX)$(DLL_LIBEXT)$(LIBEXT)
VERSION_LIBRARY_FILE = $(LIBRARY_FILE)
# LIB_LINK_DLL_FILE is the DLL library, gnustep-base.dll
LIB_LINK_DLL_FILE = $(LIBRARY_NAME_WITHOUT_LIB)$(LIBRARY_NAME_SUFFIX)$(DLL_LIBEXT)
-
-endif # OLD_DLL_SUPPORT
endif # BUILD_DLL
else # following code for static libs
#
# Compilation targets
#
-
-# TODO: this action is not called? (done in Master/library.make?)
-internal-library-clean::
- $(ECHO_NOTHING)rm -rf $(DERIVED_SOURCES_DIR)$(END_ECHO)
-
-ifeq ($(OLD_DLL_SUPPORT),yes)
-
-DLL_DEF = $($(GNUSTEP_INSTANCE)_DLL_DEF)
-DLL_DEF_FILES = $(SUBPROJECT_DEF_FILES) $(DLL_DEF)
-
-ifneq ($(strip $(DLL_DEF_FILES)),)
-DLL_DEF_INP = $(DERIVED_SOURCES_DIR)/$(LIBRARY_NAME_WITH_LIB).inp
-
-$(DLL_DEF_INP): $(DLL_DEF_FILES)
- cat $(DLL_DEF_FILES) > $@
-
-DLL_DEF_FLAG = --input-def $(DLL_DEF_INP)
-endif
-
-internal-library-all_:: \
- $(GNUSTEP_OBJ_DIR) \
- $(DERIVED_SOURCES_DIR) \
- $(DLL_DEF_INP) \
- $(DERIVED_SOURCES_DIR)/$(LIBRARY_NAME_WITH_LIB).def \
- $(GNUSTEP_OBJ_DIR)/$(DLL_NAME) \
- $(GNUSTEP_OBJ_DIR)/$(DLL_EXP_LIB)
-
-$(DERIVED_SOURCES_DIR):
- $(ECHO_CREATING)$(MKDIRS) $@$(END_ECHO)
-
-$(DERIVED_SOURCES_DIR)/$(LIBRARY_NAME_WITH_LIB).def: $(OBJ_FILES_TO_LINK) $(DLL_DEF_INP)
- $(ECHO_NOTHING)$(DLLTOOL) $(DLL_DEF_FLAG) --output-def $@ $(OBJ_FILES_TO_LINK)$(END_ECHO)
-
-$(GNUSTEP_OBJ_DIR)/$(DLL_EXP_LIB): $(DERIVED_SOURCES_DIR)/$(LIBRARY_NAME_WITH_LIB).def
- $(ECHO_NOTHING)$(DLLTOOL) --dllname $(DLL_NAME) --def $< --output-lib $@$(END_ECHO)
-
-$(GNUSTEP_OBJ_DIR)/$(DLL_NAME): $(OBJ_FILES_TO_LINK) \
- $(DERIVED_SOURCES_DIR)/$(LIBRARY_NAME_WITH_LIB).def
- $(ECHO_LINKING)$(DLLWRAP) --driver-name $(CC) \
- $(SHARED_LD_PREFLAGS) \
- --def $(DERIVED_SOURCES_DIR)/$(LIBRARY_NAME_WITH_LIB).def \
- -o $@ $(OBJ_FILES_TO_LINK) \
- $(ALL_LDFLAGS) \
- $(INTERNAL_LIBRARIES_DEPEND_UPON) $(TARGET_SYSTEM_LIBS) \
- $(SHARED_LD_POSTFLAGS)$(END_ECHO)
-
-else # following code for anything but OLD_DLL_SUPPORT
-
internal-library-all_:: $(GNUSTEP_OBJ_DIR) \
- shared-instance-pch-all \
- $(GNUSTEP_OBJ_DIR)/$(VERSION_LIBRARY_FILE)
+ $(GNUSTEP_OBJ_DIR)/$(VERSION_LIBRARY_FILE)
$(GNUSTEP_OBJ_DIR)/$(VERSION_LIBRARY_FILE): $(OBJ_FILES_TO_LINK)
$(ECHO_LINKING)$(LIB_LINK_CMD)$(END_ECHO)
-endif # BUILD_DLL
-
-
#
# Install and uninstall targets
#
$(DLL_INSTALLATION_DIR):
$(ECHO_CREATING)$(MKINSTALLDIRS) $@$(END_ECHO)
-ifeq ($(OLD_DLL_SUPPORT),yes)
-
-internal-install-lib::
- $(ECHO_INSTALLING)if [ -f $(GNUSTEP_OBJ_DIR)/$(DLL_NAME) ]; then \
- $(INSTALL_PROGRAM) $(GNUSTEP_OBJ_DIR)/$(DLL_NAME) \
- $(DLL_INSTALLATION_DIR) ; \
- fi; \
- if [ -f $(GNUSTEP_OBJ_DIR)/$(DLL_EXP_LIB) ]; then \
- $(INSTALL_PROGRAM) $(GNUSTEP_OBJ_DIR)/$(DLL_EXP_LIB) \
- $(FINAL_LIBRARY_INSTALL_DIR) ; \
- fi$(END_ECHO)
-
-else
-
internal-install-lib::
$(ECHO_INSTALLING)if [ -f $(GNUSTEP_OBJ_DIR)/$(VERSION_LIBRARY_FILE) ]; then \
$(INSTALL_PROGRAM) $(GNUSTEP_OBJ_DIR)/$(VERSION_LIBRARY_FILE) \
fi$(END_ECHO)
ifeq ($(BUILD_DLL),yes)
-# For new-style DLLs, also install the DLL file.
+# For DLLs, also install the DLL file.
internal-install-lib::
$(ECHO_INSTALLING)if [ -f $(GNUSTEP_OBJ_DIR)/$(LIB_LINK_DLL_FILE) ]; then \
$(INSTALL_PROGRAM) $(GNUSTEP_OBJ_DIR)/$(LIB_LINK_DLL_FILE) \
$(DLL_INSTALLATION_DIR) ; \
fi$(END_ECHO)
endif
-endif
-
-ifeq ($(OLD_DLL_SUPPORT),yes)
-
-internal-library-uninstall_:: shared-instance-headers-uninstall
- $(ECHO_UNINSTALLING)rm -f $(DLL_INSTALLATION_DIR)/$(DLL_NAME) \
- $(FINAL_LIBRARY_INSTALL_DIR)/$(DLL_EXP_LIB)$(END_ECHO)
-
-else
internal-library-uninstall_:: shared-instance-headers-uninstall
$(ECHO_UNINSTALLING)rm -f $(FINAL_LIBRARY_INSTALL_DIR)/$(VERSION_LIBRARY_FILE) \
$(FINAL_LIBRARY_INSTALL_DIR)/$(SONAME_LIBRARY_FILE)$(END_ECHO)
ifeq ($(BUILD_DLL),yes)
-# For new-style DLLs, also remove the DLL file.
+# For DLLs, also remove the DLL file.
internal-library-uninstall_::
- $(ECHO_UNINSTALLING)rm -f $(DLL_INSTALLATION_DIR)/$(LINK_LIBRARY_DLL_FILE)$(END_ECHO)
-endif
+ $(ECHO_UNINSTALLING)rm -f $(DLL_INSTALLATION_DIR)/$(LIB_LINK_DLL_FILE)$(END_ECHO)
endif
#
$(GNUSTEP_OBJ_DIR)/$(GNUSTEP_INSTANCE)$(EXEEXT)
$(GNUSTEP_OBJ_DIR)/$(GNUSTEP_INSTANCE)$(EXEEXT): $(OBJ_FILES_TO_LINK)
- $(ECHO_LINKING)$(LD) $(ALL_LDFLAGS) -o $(LDOUT)$@ $(OBJ_FILES_TO_LINK)\
- $(ALL_OBJC_LIBS)$(END_ECHO)
+ $(ECHO_LINKING)$(LD) $(ALL_LDFLAGS) $(CC_LDFLAGS) -o $(LDOUT)$@ \
+ $(OBJ_FILES_TO_LINK) $(ALL_OBJC_LIBS)$(END_ECHO)
internal-objc_program-install_:: $(OBJC_PROGRAM_INSTALL_DIR)/$(GNUSTEP_TARGET_LDIR)
$(ECHO_INSTALLING)$(INSTALL_PROGRAM) -m 0755 \
$(PALETTE_DIR)/$(GNUSTEP_TARGET_LDIR):
$(ECHO_CREATING)$(MKDIRS) $(PALETTE_DIR)/$(GNUSTEP_TARGET_LDIR)$(END_ECHO)
-# OLD_DLL_SUPPORT should really be deprecated and dropped.
-ifeq ($(OLD_DLL_SUPPORT),yes)
-
+# Standard bundle build using the rules for this target
$(PALETTE_FILE) : $(OBJ_FILES_TO_LINK)
- $(ECHO_LINKING)$(DLLWRAP) --driver-name $(CC) \
- -o $(LDOUT)$(PALETTE_FILE) \
- $(OBJ_FILES_TO_LINK) \
- $(ALL_LDFLAGS) \
- $(ALL_PALETTE_LIBS)$(END_ECHO)
-
-else # Standard bundle build using the rules for this target
-
-$(PALETTE_FILE) : $(OBJ_FILES_TO_LINK)
- $(ECHO_LINKING)$(BUNDLE_LD) $(BUNDLE_LDFLAGS) $(ALL_LDFLAGS) \
+ $(ECHO_LINKING)$(BUNDLE_LD) $(BUNDLE_LDFLAGS) \
-o $(LDOUT)$(PALETTE_FILE) \
- $(OBJ_FILES_TO_LINK) \
- $(ALL_PALETTE_LIBS)$(END_ECHO)
-
-endif # OLD_DLL_SUPPORT
+ $(OBJ_FILES_TO_LINK) $(ALL_LDFLAGS) \
+ $(BUNDLE_LIBFLAGS) $(ALL_PALETTE_LIBS)$(END_ECHO)
PRINCIPAL_CLASS = $(strip $($(GNUSTEP_INSTANCE)_PRINCIPAL_CLASS))
# The list of C++ source files to be compiled
# are in the CC_FILES variable.
#
+# The list of Objective-C++ source files to be compiled
+# are in the OBJCC_FILES variable.
+#
# The list of PSWRAP source files to be compiled
# are in the PSWRAP_FILES variable.
#
# The list of JAVA source files from which to generate jni headers
# are in the JAVA_JNI_FILES variable.
#
-# The list of ahead-of-time JAVA source files to be compiled
-# are in the AOT_JAVA_FILES variable.
-#
# This list of WINDRES source files to be compiled
# are in the WINDRES_FILES variable.
#
$(addprefix $(GNUSTEP_BUILD_DIR)/$(d)/, $(GNUSTEP_OBJ_DIR_NAME)/$(SUBPROJECT_PRODUCT)))
endif
-ifneq ($($(GNUSTEP_INSTANCE)_SUBPROJECTS),)
-SUBPROJECT_DEF_FILES = $(foreach d, $($(GNUSTEP_INSTANCE)_SUBPROJECTS), \
- $(addprefix $(GNUSTEP_BUILD_DIR)/$(d)/, subproject.def))
-endif
-
OBJC_OBJS = $(patsubst %.m,%$(OEXT),$($(GNUSTEP_INSTANCE)_OBJC_FILES))
OBJC_OBJ_FILES = $(addprefix $(GNUSTEP_OBJ_DIR)/,$(OBJC_OBJS))
-AOT_JAVA_OBJS = $(patsubst %.java,%$(OEXT),$($(GNUSTEP_INSTANCE)_AOT_JAVA_FILES))
-AOT_JAVA_OBJ_FILES = $(addprefix $(GNUSTEP_OBJ_DIR)/,$(AOT_JAVA_OBJS))
+OBJCC_OBJS = $(patsubst %.mm,%$(OEXT),$($(GNUSTEP_INSTANCE)_OBJCC_FILES))
+OBJCC_OBJ_FILES = $(addprefix $(GNUSTEP_OBJ_DIR)/,$(OBJCC_OBJS))
JAVA_OBJS = $(patsubst %.java,%.class,$($(GNUSTEP_INSTANCE)_JAVA_FILES))
JAVA_OBJ_FILES = $(JAVA_OBJS)
ifeq ($(findstring mingw32, $(GNUSTEP_TARGET_OS)), mingw32)
WINDRES_OBJS = $(patsubst %.rc,%$(OEXT),$($(GNUSTEP_INSTANCE)_WINDRES_FILES))
WINDRES_OBJ_FILES = $(addprefix $(GNUSTEP_OBJ_DIR)/,$(WINDRES_OBJS))
+else
+ifeq ($(findstring cygwin, $(GNUSTEP_TARGET_OS)), cygwin)
+ WINDRES_OBJS = $(patsubst %.rc,%$(OEXT),$($(GNUSTEP_INSTANCE)_WINDRES_FILES))
+ WINDRES_OBJ_FILES = $(addprefix $(GNUSTEP_OBJ_DIR)/,$(WINDRES_OBJS))
else
WINDRES_OBJ_FILES =
endif
+endif
OBJ_FILES = $($(GNUSTEP_INSTANCE)_OBJ_FILES)
# OBJ_FILES_TO_LINK to '' we know if there is a link stage to be
# performed at all (useful for example in bundles which can contain an
# object file, or not).
-OBJ_FILES_TO_LINK = $(strip $(C_OBJ_FILES) $(OBJC_OBJ_FILES) $(CC_OBJ_FILES) $(AOT_JAVA_OBJ_FILES) $(WINDRES_OBJ_FILES) $(SUBPROJECT_OBJ_FILES) $(OBJ_FILES))
+OBJ_FILES_TO_LINK = $(strip $(C_OBJ_FILES) $(OBJC_OBJ_FILES) $(CC_OBJ_FILES) $(OBJCC_OBJ_FILES) $(WINDRES_OBJ_FILES) $(SUBPROJECT_OBJ_FILES) $(OBJ_FILES))
ifeq ($(AUTO_DEPENDENCIES),yes)
ifneq ($(strip $(OBJ_FILES_TO_LINK)),)
ADDITIONAL_OBJC_LIBS += $($(GNUSTEP_INSTANCE)_OBJC_LIBS)
-ADDITIONAL_AOT_JAVA_LIBS += $($(GNUSTEP_INSTANCE)_AOT_JAVA_LIBS)
-
ADDITIONAL_LIBRARY_LIBS += $($(GNUSTEP_INSTANCE)_LIBS) \
$($(GNUSTEP_INSTANCE)_LIBRARY_LIBS)
ADDITIONAL_OBJCFLAGS += $($(GNUSTEP_INSTANCE)_OBJCFLAGS)
-ADDITIONAL_AOT_JAVAFLAGS += $($(GNUSTEP_INSTANCE)_AOT_JAVAFLAGS)
-
ADDITIONAL_CCFLAGS += $($(GNUSTEP_INSTANCE)_CCFLAGS)
+ADDITIONAL_OBJCCFLAGS += $($(GNUSTEP_INSTANCE)_OBJCCFLAGS)
+
ADDITIONAL_LDFLAGS += $($(GNUSTEP_INSTANCE)_LDFLAGS)
ADDITIONAL_CLASSPATH += $($(GNUSTEP_INSTANCE)_CLASSPATH)
internal-service-copy_into_dir \
service-resource-files
-# On windows, this is unfortunately required.
-ifeq ($(BUILD_DLL), yes)
- DUP_OBJC_LIBS = $(AUXILIARY_OBJC_LIBS) $(OBJC_LIBS)
-endif
-
# Libraries that go before the GUI libraries
ALL_SERVICE_LIBS = \
$(shell $(WHICH_LIB_SCRIPT) \
$(ALL_LIB_DIRS) \
$(ADDITIONAL_GUI_LIBS) $(AUXILIARY_GUI_LIBS) \
$(GUI_LIBS) $(ADDITIONAL_TOOL_LIBS) $(AUXILIARY_TOOL_LIBS) \
- $(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(DUP_OBJC_LIBS) \
- $(SYSTEM_LIBS) \
+ $(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(AUXILIARY_OBJC_LIBS) \
+ $(OBJC_LIBS) $(SYSTEM_LIBS) $(TARGET_SYSTEM_LIBS) \
debug=$(debug) profile=$(profile) shared=$(shared) \
libext=$(LIBEXT) shared_libext=$(SHARED_LIBEXT))
shared-instance-bundle-all
$(SERVICE_FILE): $(OBJ_FILES_TO_LINK)
- $(ECHO_LINKING)$(LD) $(ALL_LDFLAGS) -o $(LDOUT)$@ $(OBJ_FILES_TO_LINK)\
- $(ALL_SERVICE_LIBS)$(END_ECHO)
+ $(ECHO_LINKING)$(LD) $(ALL_LDFLAGS) $(CC_LDFLAGS) -o $(LDOUT)$@ \
+ $(OBJ_FILES_TO_LINK) $(ALL_SERVICE_LIBS)$(END_ECHO)
$(SERVICE_DIR)/$(GNUSTEP_TARGET_LDIR):
$(ECHO_CREATING)$(MKDIRS) $(SERVICE_DIR)/$(GNUSTEP_TARGET_LDIR)$(END_ECHO)
shared-instance-pch-all \
$(GNUSTEP_OBJ_DIR)/$(SUBPROJECT_PRODUCT)
-ifeq ($(BUILD_DLL),yes)
-
-DLL_DEF = $($(GNUSTEP_INSTANCE)_DLL_DEF)
-DLL_DEF_FILES = $(SUBPROJECT_DEF_FILES) $(DLL_DEF)
-
-ifneq ($(strip $(DLL_DEF_FILES)),)
-DLL_DEF_INP = $(GNUSTEP_BUILD_DIR)/$(GNUSTEP_INSTANCE).inp
-
-$(DLL_DEF_INP): $(DLL_DEF_FILES)
- $(ECHO_CREATING)cat $(DLL_DEF_FILES) > $@$(END_ECHO)
-
-DLL_DEF_FLAG = --input-def $(DLL_DEF_INP)
-endif
-
-internal-subproject-clean::
- $(ECHO_NOTHING)rm -rf $(DLL_DEF_INP)$(END_ECHO)
-
-internal-subproject-all_:: $(GNUSTEP_BUILD_DIR)/subproject.def
-
-$(GNUSTEP_BUILD_DIR)/subproject.def: $(OBJ_FILES_TO_LINK) $(DLL_DEF) \
- $(DLL_DEF_INP)
- $(ECHO_NOTHING)$(DLLTOOL) $(DLL_DEF_FLAG) --output-def $@ $(OBJ_FILES_TO_LINK)$(END_ECHO)
-
-endif
-
# We need to depend on SUBPROJECT_OBJ_FILES to account for sub-subprojects.
$(GNUSTEP_OBJ_DIR)/$(SUBPROJECT_PRODUCT): $(OBJ_FILES_TO_LINK)
$(ECHO_LINKING)$(OBJ_MERGE_CMD)$(END_ECHO)
# We need to build the OWNING_PROJECT_HEADER_DIR directory here
# because this rule could be executed before the top-level framework
# has built his dirs
-$(OWNING_PROJECT_HEADER_FILES): $(HEADER_FILES) $(OWNING_PROJECT_HEADER_DIR)
-ifneq ($(HEADER_FILES),)
- $(ECHO_NOTHING)for file in $(HEADER_FILES) __done; do \
- if [ $$file != __done ]; then \
- $(INSTALL_DATA) ./$$file $(OWNING_PROJECT_HEADER_DIR)/$$file ; \
- fi; \
- done$(END_ECHO)
-endif # we got HEADER_FILES
+$(OWNING_PROJECT_HEADER_DIR)/%.h: %.h $(OWNING_PROJECT_HEADER_DIR)
+ $(ECHO_NOTHING)$(INSTALL_DATA) $< $@$(END_ECHO)
+
$(OWNING_PROJECT_HEADER_DIR):
$(ECHO_CREATING)$(MKDIRS) $@$(END_ECHO)
FINAL_TOOL_INSTALL_DIR = $(TOOL_INSTALL_DIR)/$(GNUSTEP_TARGET_LDIR)
endif
-# On windows, this is unfortunately required.
-ifeq ($(BUILD_DLL), yes)
- DUP_OBJC_LIBS = $(AUXILIARY_OBJC_LIBS) $(OBJC_LIBS)
-endif
-
ALL_TOOL_LIBS = \
$(shell $(WHICH_LIB_SCRIPT) \
$(ALL_LIB_DIRS) \
$(ADDITIONAL_TOOL_LIBS) $(AUXILIARY_TOOL_LIBS) $(FND_LIBS) \
- $(ADDITIONAL_OBJC_LIBS) $(DUP_OBJC_LIBS) \
+ $(ADDITIONAL_OBJC_LIBS) $(AUXILIARY_OBJC_LIBS) $(OBJC_LIBS) \
+ $(TARGET_SYSTEM_LIBS) \
debug=$(debug) profile=$(profile) shared=$(shared) \
libext=$(LIBEXT) shared_libext=$(SHARED_LIBEXT))
$(GNUSTEP_OBJ_DIR)/$(GNUSTEP_INSTANCE)$(EXEEXT)
$(GNUSTEP_OBJ_DIR)/$(GNUSTEP_INSTANCE)$(EXEEXT): $(OBJ_FILES_TO_LINK)
- $(ECHO_LINKING)$(LD) $(ALL_LDFLAGS) -o $(LDOUT)$@ \
+ $(ECHO_LINKING)$(LD) $(ALL_LDFLAGS) $(CC_LDFLAGS) -o $(LDOUT)$@ \
$(OBJ_FILES_TO_LINK) \
$(ALL_TOOL_LIBS)$(END_ECHO)
FRAMEWORK_NAME := $(strip $(FRAMEWORK_NAME))
-# A framework has a special task to do before-all, which is to build
+before-build-headers::
+
+after-build-headers::
+
+# A framework has a special task to do before all, which is to build
# the public framework headers.
-before-all:: $(FRAMEWORK_NAME:=.build-headers.framework.variables)
+build-headers:: before-build-headers $(FRAMEWORK_NAME:=.build-headers.framework.variables) after-build-headers
+
+before-all:: build-headers
internal-all:: $(FRAMEWORK_NAME:=.all.framework.variables)
+$(FRAMEWORK_NAME:=.all.framework.variables): $(FRAMEWORK_NAME:=.build-headers.framework.variables)
internal-install:: $(FRAMEWORK_NAME:=.install.framework.variables)
# internal-check-installation-permissions comes before everything so
# that we run any command if we aren't allowed to install
# install depends on all as per GNU/Unix habits, conventions and standards.
-ifeq ($(MAKELEVEL),0)
+
+# The very first top-most make invocation we want to have install
+# depend on internal-check-install-permissions and on all, and
+# distclean depend on clean. We used to check MAKELEVEL=0 here to
+# determine if this is the top-most invocation of make, but that does
+# not work if the top-most invocation of make is done from within a
+# (non-gnustep-make) makefile itself! So we use a marker variable.
+# _GNUSTEP_TOP_INVOCATION_DONE is not set the very first / top-most
+# make invocation , but we set it for all sub-invocations, so all
+# subinvocations will have it set and we can distinguish them.
+ifeq ($(_GNUSTEP_TOP_INVOCATION_DONE),)
+# Top-most invocation of make
install:: internal-check-install-permissions all \
before-install internal-install after-install internal-after-install
+
+distclean:: clean before-distclean internal-distclean after-distclean
+
+# Further make invocations will have this variable set
+export _GNUSTEP_TOP_INVOCATION_DONE = 1
else
+# Sub-invocation of make
install:: before-install internal-install after-install internal-after-install
+
+distclean:: before-distclean internal-distclean after-distclean
endif
+
uninstall:: before-uninstall internal-uninstall after-uninstall
clean:: before-clean internal-clean after-clean
-ifeq ($(MAKELEVEL),0)
-distclean:: clean before-distclean internal-distclean after-distclean
-else
-distclean:: before-distclean internal-distclean after-distclean
-endif
-
check:: before-check internal-check after-check
strings:: before-strings internal-strings after-strings
# PACKAGE_NAME = gnustep-base
# PACKAGE_VERSION = 1.0.0
#
+# For SVN exports, you may want to define something like:
+#
+# SVN_MODULE_NAME = base
+# SVN_BASE_URL = http://svn.gna.org/svn/gnustep/libs
+#
+# SVN_TAG_NAME is the same as SVN_MODULE_NAME if not set and is used to
+# tag and retreive a module version
+#
# For CVS exports, you may want to define something like:
#
# CVS_MODULE_NAME = base
CVS_FLAGS = -z3
endif
+ifeq ($(SVN_MODULE_NAME),)
+ SVN_MODULE_NAME = $(PACKAGE_NAME)
+endif
+ifeq ($(SVN_TAG_NAME),)
+ SVN_TAG_NAME = $(SVN_MODULE_NAME)
+endif
+
+
# Set the cvs command we use. Most of the times, this is 'cvs' and
# you need to do nothing. But you can override 'cvs' with something
# else. Useful for example when you need cvs to go through runsocks
ifeq ($(CVS),)
CVS = cvs
endif
+ifeq ($(SVN),)
+ SVN = svn
+endif
#
# You can set COMPRESSION_PROGRAM and COMPRESSION_EXT by hand if your
VERTAG = $(subst .,_,$(PACKAGE_VERSION))
-.PHONY: dist cvs-tag cvs-dist cvs-snapshot internal-cvs-export
+.PHONY: dist cvs-tag cvs-dist cvs-snapshot internal-cvs-export svn-tag svn-dist internal-svn-export svn-snapshot
#
# Build a .tar.gz with the whole directory tree
mv ../$(ARCHIVE_FILE) $(RELEASE_DIR)
endif
+#
+# Tag the SVN source with the $(SVN_TAG_NAME)-$(VERTAG) tag
+#
+svn-tag:
+ $(SVN) copy $(SVN_BASE_URL)/$(SVN_MODULE_NAME)/trunk $(SVN_BASE_URL)/$(SVN_MODULE_NAME)/tags/$(SVN_TAG_NAME)-$(VERTAG) -m "Tag version $(VERTAG)"
+
+#
+# Build a .tar.gz from the SVN sources using revision/tag
+# $(SVN_TAG_NAME)-$(VERTAG)
+#
+svn-dist: EXPORT_SVN_NAME = tags/$(SVN_TAG_NAME)-$(VERTAG)
+svn-dist: internal-svn-export
+
+#
+# Build a .tar.gz from the SVN source as they are now
+#
+svn-snapshot: EXPORT_SVN_NAME = trunk
+svn-snapshot: internal-svn-export
+
+internal-svn-export:
+ @echo "Exporting from module $(SVN_MODULE_NAME) on SVN..."; \
+ if [ -e $(SVN_MODULE_NAME) ]; then \
+ echo "*Error* cannot export: $(SVN_MODULE_NAME) already exists"; \
+ exit 1; \
+ fi; \
+ $(SVN) export $(SVN_BASE_URL)/$(SVN_MODULE_NAME)/$(EXPORT_SVN_NAME) $(VERSION_NAME); \
+ echo "Generating $(ARCHIVE_FILE)"; \
+ if [ -f $(ARCHIVE_FILE) ]; then \
+ echo "$(ARCHIVE_FILE) already exists:"; \
+ echo "Saving old version in $(ARCHIVE_FILE)~"; \
+ mv $(ARCHIVE_FILE) $(ARCHIVE_FILE)~; \
+ fi; \
+ if [ -f $(VERSION_NAME)/.dist-ignore ]; then \
+ tar cfX - $(VERSION_NAME)/.dist-ignore $(VERSION_NAME) \
+ | $(COMPRESSION_PROGRAM) > $(ARCHIVE_FILE); \
+ else \
+ tar cf - $(VERSION_NAME) \
+ | $(COMPRESSION_PROGRAM) > $(ARCHIVE_FILE); \
+ fi; \
+ rm -rf $(VERSION_NAME); \
+ if [ ! -f $(ARCHIVE_FILE) ]; then \
+ echo "*Error* creating .tar$(COMPRESSION_EXT) archive"; \
+ exit 1; \
+ fi;
+ifneq ($(RELEASE_DIR),)
+ @echo "Moving $(ARCHIVE_FILE) to $(RELEASE_DIR)..."; \
+ if [ ! -d $(RELEASE_DIR) ]; then \
+ $(MKDIRS) $(RELEASE_DIR); \
+ fi; \
+ if [ -f $(RELEASE_DIR)/$(ARCHIVE_FILE) ]; then \
+ echo "$(RELEASE_DIR)/$(ARCHIVE_FILE) already exists:"; \
+ echo "Saving old version in $(RELEASE_DIR)/$(ARCHIVE_FILE)~";\
+ mv $(RELEASE_DIR)/$(ARCHIVE_FILE) \
+ $(RELEASE_DIR)/$(ARCHIVE_FILE)~;\
+ fi; \
+ mv $(ARCHIVE_FILE) $(RELEASE_DIR)
+endif
+
#
# Tag the CVS source with the $(CVS_TAG_NAME)-$(VERTAG) tag
#
fi; \
mv $(ARCHIVE_FILE) $(RELEASE_DIR)
endif
+
+
NEWS
****
-The currently released version is `1.11.0'.
+The currently released version is `1.13.0'.
+
+Changes in version `1.13.0'
+===========================
+
+Debug libraries now have the same name as normal libraries (i.e. no "_d"
+suffix). This reduces the possiblity of multiple libraries being loaded
+into the same executable.
+
+ Added dragonfly OS to make targets.
+
+ Spaces and backslashes are no longer allowed in paths used by the
+make package (e.g. with Windows OS). The libraries can still use native
+paths.
+
+Changes in version `1.12.0'
+===========================
+
+Minor fixes.
+
+Changes in version `1.11.2'
+===========================
+
+The `GNUstep.conf' file is now viewed as the essential determination of
+the install location for GNUstep libraries, tools and other files.
+During configuration, this file is read, if it exists, to determine
+this information. This can still be overriden with environment and
+command line options, however. See the filesystem documentation in the
+GNUstep Make Documentation directory for more information.
+
+ You no longer need to source GNUstep.sh in order to compile GNUstep
+programs. All that is needed is the definition of GNUSTEP_MAKEFILES.
+You should also have the GNUstep system tools directory in your path.
+
+ All netbsd systems are assumed to use ELF libraries. Support for the
+old static libs version of netbsd was removed.
+
+ Serveral new options were added to configure to change the location
+of basic dir locations and basic configuration files. Also, the help was
+greatly improved. Note that -prefix=/usr/GNUstep/System no longer
+works. Please use -prefix=/usr/GNUstep or
+-with-system-root=/usr/GNUstep/System.
+
+ A few more fixes for cygwin are included as well as Windows resource
+rules.
+
+ Support for ObjC++ has been added. You should list the ObjC++ .mm
+files in the xxx_OBJCC_FILES variable, and put extra ObjC++ flags in
+xxx_OBJCCFLAGS or ADDITIONAL_OBJCCFLAGS.
+
+Changes in version `1.11.1'
+===========================
+
+Part of the previous change was reversed. Now libobjc is still linked
+with individual applications (as well as the base library), since some
+operating systems require this to resolve external symbols. However,
+there is no need to recompile all applications again.
+
+ Compilation of GNUstep on cygwin was revampled and fixed due to a
+lot of work by Tom MacSween.
Changes in version `1.11.0'
===========================
# The version number of this release.
GNUSTEP_MAKE_MAJOR_VERSION=1
-GNUSTEP_MAKE_MINOR_VERSION=11
+GNUSTEP_MAKE_MINOR_VERSION=13
GNUSTEP_MAKE_SUBMINOR_VERSION=0
GNUSTEP_MAKE_VERSION=${GNUSTEP_MAKE_MAJOR_VERSION}.${GNUSTEP_MAKE_MINOR_VERSION}.${GNUSTEP_MAKE_SUBMINOR_VERSION}
echo freebsd
exit 0
;;
- # Remove version number for NetBSD ELF targets
- netbsdelf* | netbsd1.6* | netbsd2*)
- echo netbsdelf
- exit 0
- ;;
# Remove version number for Darwin
darwin7*)
echo darwin7
SHELL = /bin/sh
+#
+# Determine the compilation host and target
+#
+include $(GNUSTEP_MAKEFILES)/names.make
+
+ifeq ($(GNUSTEP_FLATTENED),)
+ GNUSTEP_HOST_DIR = $(GNUSTEP_HOST_CPU)/$(GNUSTEP_HOST_OS)
+ GNUSTEP_TARGET_DIR = $(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)
+ GNUSTEP_HOST_LDIR = $(GNUSTEP_HOST_DIR)/$(LIBRARY_COMBO)
+ GNUSTEP_TARGET_LDIR = $(GNUSTEP_TARGET_DIR)/$(LIBRARY_COMBO)
+else
+ GNUSTEP_HOST_DIR = .
+ GNUSTEP_TARGET_DIR = .
+ GNUSTEP_HOST_LDIR = .
+ GNUSTEP_TARGET_LDIR = .
+endif
+
+#
+# Get the config information (host/target specific),
+# this includes GNUSTEP_SYSTEM_ROOT etc.
+#
+include $(GNUSTEP_MAKEFILES)/$(GNUSTEP_TARGET_LDIR)/config.make
+
# GNUSTEP_BASE_INSTALL by default is `' - this is correct
# GNUSTEP_BUILD_DIR is the directory in which anything generated
GNUSTEP_MAKEFILES = $(GNUSTEP_SYSTEM_ROOT)/Library/Makefiles
endif
-#
-# Determine the compilation host and target
-#
-include $(GNUSTEP_MAKEFILES)/names.make
-
-ifeq ($(GNUSTEP_FLATTENED),)
- GNUSTEP_HOST_DIR = $(GNUSTEP_HOST_CPU)/$(GNUSTEP_HOST_OS)
- GNUSTEP_TARGET_DIR = $(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS)
- GNUSTEP_HOST_LDIR = $(GNUSTEP_HOST_DIR)/$(LIBRARY_COMBO)
- GNUSTEP_TARGET_LDIR = $(GNUSTEP_TARGET_DIR)/$(LIBRARY_COMBO)
-else
- GNUSTEP_HOST_DIR = .
- GNUSTEP_TARGET_DIR = .
- GNUSTEP_HOST_LDIR = .
- GNUSTEP_TARGET_LDIR = .
-endif
-
-#
-# Get the config information
-#
-include $(GNUSTEP_MAKEFILES)/$(GNUSTEP_TARGET_DIR)/config.make
-
#
# Sanity checks - only performed at the first make invocation
#
-ifeq ($(MAKELEVEL),0)
-
-# Sanity check on GNUSTEP_*_ROOT. We want them all to be non-empty.
-GNUSTEP_ERROR =
-
-ifeq ($(GNUSTEP_USER_ROOT),)
- GNUSTEP_ERROR=GNUSTEP_USER_ROOT
-endif
-ifeq ($(GNUSTEP_LOCAL_ROOT),)
- GNUSTEP_ERROR=GNUSTEP_LOCAL_ROOT
-endif
-ifeq ($(GNUSTEP_NETWORK_ROOT),)
- GNUSTEP_ERROR=GNUSTEP_NETWORK_ROOT
-endif
-ifeq ($(GNUSTEP_SYSTEM_ROOT),)
- GNUSTEP_ERROR=GNUSTEP_SYSTEM_ROOT
-endif
+# FIXME - these checks should probably be removed and/or rewritten.
+#
-ifneq ($(GNUSTEP_ERROR),)
- $(warning ERROR: Your $(GNUSTEP_ERROR) environment variable is empty !)
- $(error Please try again after running ". $(GNUSTEP_MAKEFILES)/GNUstep.sh")
-endif
+# Please note that _GNUSTEP_TOP_INVOCATION_DONE is set by the first
+# time Master/rules.make is read, and propagated to sub-makes. So
+# this check will pass only the very first time we parse this file,
+# and if Master/rules.make have not yet been parsed.
+ifeq ($(_GNUSTEP_TOP_INVOCATION_DONE),)
# Sanity check on $PATH - NB: if PATH is wrong, we can't do certain things
# because we can't run the tools (not even using opentool as we can't even
# If the compiler supports native ObjC exceptions and the user wants us to
# use them, turn them on!
ifeq ($(USE_OBJC_EXCEPTIONS), yes)
- OBJCFLAGS += -fobjc-exceptions
+ OBJCFLAGS += -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS
endif
#
ADDITIONAL_FLAGS += -g -Wall -DDEBUG -fno-omit-frame-pointer
INTERNAL_JAVACFLAGS += -g -deprecation
OBJ_DIR_PREFIX += debug_
- LIBRARY_NAME_SUFFIX := d$(LIBRARY_NAME_SUFFIX)
else
INTERNAL_JAVACFLAGS += -O
endif
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002 Free Software Foundation, Inc.
+# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
-timestamp='2002-02-12'
+timestamp='2005-09-19'
# 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
#
# 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.
+# 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 <per@bothner.com>.
# Please send patches to <config-patches@gnu.org>. Submit a context
# diff and a properly formatted ChangeLog entry.
GNU config.guess ($timestamp)
Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+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
while test $# -gt 0 ; do
case $1 in
--time-stamp | --time* | -t )
- echo "$timestamp" ; exit 0 ;;
+ echo "$timestamp" ; exit ;;
--version | -v )
- echo "$version" ; exit 0 ;;
+ echo "$version" ; exit ;;
--help | --h* | -h )
- echo "$usage"; exit 0 ;;
+ echo "$usage"; exit ;;
-- ) # Stop option processing
shift; break ;;
- ) # Use stdin as input.
exit 1
fi
+trap 'exit 1' 1 2 15
-dummy=dummy-$$
-trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; 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.
-# CC_FOR_BUILD -- compiler used by this script.
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
# use `HOST_CC' if defined, but it is deprecated.
-set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
- ,,) echo "int dummy(){}" > $dummy.c ;
- for c in cc gcc c89 ; do
- ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
- if test $? = 0 ; then
+# 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 -q "$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 ;
- rm -f $dummy.c $dummy.o $dummy.rel ;
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'
+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)
#
# Note: NetBSD doesn't particularly care about the vendor
# portion of the name. We always set it to "unknown".
- UNAME_MACHINE_ARCH=`(uname -p) 2>/dev/null` || \
- UNAME_MACHINE_ARCH=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 ;;
;;
esac
# The OS release
- release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ # 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 0 ;;
- amiga:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- arc:OpenBSD:*:*)
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- hp300:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mac68k:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- macppc:OpenBSD:*:*)
- echo powerpc-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mvme68k:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mvme88k:OpenBSD:*:*)
- echo m88k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- mvmeppc:OpenBSD:*:*)
- echo powerpc-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- pmax:OpenBSD:*:*)
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- sgi:OpenBSD:*:*)
- echo mipseb-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- sun3:OpenBSD:*:*)
- echo m68k-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
- wgrisc:OpenBSD:*:*)
- echo mipsel-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:OpenBSD:*:*)
- echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
- exit 0 ;;
+ 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 ;;
+ macppc:MirBSD:*:*)
+ echo powerppc-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ *:MirBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
alpha:OSF1:*:*)
- if test $UNAME_RELEASE = "V4.0"; then
+ case $UNAME_RELEASE in
+ *4.0)
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
- fi
+ ;;
+ *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.
- cat <<EOF >$dummy.s
- .data
-\$Lformat:
- .byte 37,100,45,37,120,10,0 # "%d-%x\n"
-
- .text
- .globl main
- .align 4
- .ent main
-main:
- .frame \$30,16,\$26,0
- ldgp \$29,0(\$27)
- .prologue 1
- .long 0x47e03d80 # implver \$0
- lda \$2,-1
- .long 0x47e20c21 # amask \$2,\$1
- lda \$16,\$Lformat
- mov \$0,\$17
- not \$1,\$18
- jsr \$26,printf
- ldgp \$29,0(\$26)
- mov 0,\$16
- jsr \$26,exit
- .end main
-EOF
- eval $set_cc_for_build
- $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
- if test "$?" = 0 ; then
- case `./$dummy` in
- 0-0)
- UNAME_MACHINE="alpha"
- ;;
- 1-0)
- UNAME_MACHINE="alphaev5"
- ;;
- 1-1)
- UNAME_MACHINE="alphaev56"
- ;;
- 1-101)
- UNAME_MACHINE="alphapca56"
- ;;
- 2-303)
- UNAME_MACHINE="alphaev6"
- ;;
- 2-307)
- UNAME_MACHINE="alphaev67"
- ;;
- 2-1307)
- UNAME_MACHINE="alphaev68"
- ;;
- esac
- fi
- rm -f $dummy.s $dummy
- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- exit 0 ;;
+ 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 0 ;;
+ exit ;;
21064:Windows_NT:50:3)
echo alpha-dec-winnt3.5
- exit 0 ;;
+ exit ;;
Amiga*:UNIX_System_V:4.0:*)
echo m68k-unknown-sysv4
- exit 0;;
+ exit ;;
*:[Aa]miga[Oo][Ss]:*:*)
echo ${UNAME_MACHINE}-unknown-amigaos
- exit 0 ;;
+ exit ;;
*:[Mm]orph[Oo][Ss]:*:*)
echo ${UNAME_MACHINE}-unknown-morphos
- exit 0 ;;
+ exit ;;
*:OS/390:*:*)
echo i370-ibm-openedition
- exit 0 ;;
+ 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 0;;
+ 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 0;;
+ 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
else
echo pyramid-pyramid-bsd
fi
- exit 0 ;;
+ exit ;;
NILE*:*:*:dcosx)
echo pyramid-pyramid-svr4
- exit 0 ;;
+ 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 0 ;;
+ exit ;;
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
+ exit ;;
i86pc:SunOS:5.*:*)
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
+ 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 0 ;;
+ exit ;;
sun4*:SunOS:*:*)
case "`/usr/bin/arch -k`" in
Series*|S4*)
esac
# Japanese Language versions have a version number like `4.1.3-JL'.
echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
- exit 0 ;;
+ exit ;;
sun3*:SunOS:*:*)
echo m68k-sun-sunos${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
sun*:*:4.2BSD:*)
- UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
+ 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 sparc-sun-sunos${UNAME_RELEASE}
;;
esac
- exit 0 ;;
+ exit ;;
aushp:SunOS:*:*)
echo sparc-auspex-sunos${UNAME_RELEASE}
- exit 0 ;;
+ 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
# be no problem.
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
echo m68k-atari-mint${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
echo m68k-atari-mint${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
echo m68k-atari-mint${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
echo m68k-milan-mint${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
echo m68k-hades-mint${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
echo m68k-unknown-mint${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
+ m68k:machten:*:*)
+ echo m68k-apple-machten${UNAME_RELEASE}
+ exit ;;
powerpc:machten:*:*)
echo powerpc-apple-machten${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
RISC*:Mach:*:*)
echo mips-dec-mach_bsd4.3
- exit 0 ;;
+ exit ;;
RISC*:ULTRIX:*:*)
echo mips-dec-ultrix${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
VAX*:ULTRIX*:*:*)
echo vax-dec-ultrix${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
2020:CLIX:*:* | 2430:CLIX:*:*)
echo clipper-intergraph-clix${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
mips:*:*:UMIPS | mips:*:*:RISCos)
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
exit (-1);
}
EOF
- $CC_FOR_BUILD $dummy.c -o $dummy \
- && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
- && rm -f $dummy.c $dummy && exit 0
- rm -f $dummy.c $dummy
+ $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 0 ;;
+ exit ;;
Motorola:PowerMAX_OS:*:*)
echo powerpc-motorola-powermax
- exit 0 ;;
+ 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 0 ;;
+ exit ;;
m88k:CX/UX:7*:*)
echo m88k-harris-cxux7
- exit 0 ;;
+ exit ;;
m88k:*:4*:R4*)
echo m88k-motorola-sysv4
- exit 0 ;;
+ exit ;;
m88k:*:3*:R3*)
echo m88k-motorola-sysv3
- exit 0 ;;
+ exit ;;
AViiON:dgux:*:*)
# DG/UX returns AViiON for all architectures
UNAME_PROCESSOR=`/usr/bin/uname -p`
else
echo i586-dg-dgux${UNAME_RELEASE}
fi
- exit 0 ;;
+ exit ;;
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
echo m88k-dolphin-sysv3
- exit 0 ;;
+ exit ;;
M88*:*:R3*:*)
# Delta 88k system running SVR3
echo m88k-motorola-sysv3
- exit 0 ;;
+ exit ;;
XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
echo m88k-tektronix-sysv3
- exit 0 ;;
+ exit ;;
Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
echo m68k-tektronix-bsd
- exit 0 ;;
+ exit ;;
*:IRIX*:*:*)
echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
- exit 0 ;;
+ 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 0 ;; # Note that: echo "'`uname -s`'" gives '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 0 ;;
+ exit ;;
ia64:AIX:*:*)
if [ -x /usr/bin/oslevel ] ; then
IBM_REV=`/usr/bin/oslevel`
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
fi
echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
- exit 0 ;;
+ exit ;;
*:AIX:2:3)
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
eval $set_cc_for_build
exit(0);
}
EOF
- $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
- rm -f $dummy.c $dummy
- echo rs6000-ibm-aix3.2.5
+ 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 0 ;;
+ exit ;;
*:AIX:*:[45])
- IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
+ 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_REV=${UNAME_VERSION}.${UNAME_RELEASE}
fi
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
- exit 0 ;;
+ exit ;;
*:AIX:*:*)
echo rs6000-ibm-aix
- exit 0 ;;
+ exit ;;
ibmrt:4.4BSD:*|romp-ibm:BSD:*)
echo romp-ibm-bsd4.4
- exit 0 ;;
+ exit ;;
ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
- exit 0 ;; # report: romp-ibm BSD 4.3
+ exit ;; # report: romp-ibm BSD 4.3
*:BOSX:*:*)
echo rs6000-bull-bosx
- exit 0 ;;
+ exit ;;
DPX/2?00:B.O.S.:*:*)
echo m68k-bull-sysv3
- exit 0 ;;
+ exit ;;
9000/[34]??:4.3bsd:1.*:*)
echo m68k-hp-bsd
- exit 0 ;;
+ exit ;;
hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
echo m68k-hp-bsd4.4
- exit 0 ;;
+ exit ;;
9000/[34678]??:HP-UX:*:*)
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
case "${UNAME_MACHINE}" in
exit (0);
}
EOF
- (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy`
- if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
- rm -f $dummy.c $dummy
+ (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 0 ;;
+ exit ;;
ia64:HP-UX:*:*)
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
echo ia64-hp-hpux${HPUX_REV}
- exit 0 ;;
+ exit ;;
3050*:HI-UX:*:*)
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
exit (0);
}
EOF
- $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
- rm -f $dummy.c $dummy
+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
echo unknown-hitachi-hiuxwe2
- exit 0 ;;
+ exit ;;
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
echo hppa1.1-hp-bsd
- exit 0 ;;
+ exit ;;
9000/8??:4.3bsd:*:*)
echo hppa1.0-hp-bsd
- exit 0 ;;
+ exit ;;
*9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
echo hppa1.0-hp-mpeix
- exit 0 ;;
+ exit ;;
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
echo hppa1.1-hp-osf
- exit 0 ;;
+ exit ;;
hp8??:OSF1:*:*)
echo hppa1.0-hp-osf
- exit 0 ;;
+ exit ;;
i*86:OSF1:*:*)
if [ -x /usr/sbin/sysversion ] ; then
echo ${UNAME_MACHINE}-unknown-osf1mk
else
echo ${UNAME_MACHINE}-unknown-osf1
fi
- exit 0 ;;
+ exit ;;
parisc*:Lites*:*:*)
echo hppa1.1-hp-lites
- exit 0 ;;
+ exit ;;
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
echo c1-convex-bsd
- exit 0 ;;
+ exit ;;
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
if getsysinfo -f scalar_acc
then echo c32-convex-bsd
else echo c2-convex-bsd
fi
- exit 0 ;;
+ exit ;;
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
echo c34-convex-bsd
- exit 0 ;;
+ exit ;;
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
echo c38-convex-bsd
- exit 0 ;;
+ exit ;;
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
echo c4-convex-bsd
- exit 0 ;;
- CRAY*X-MP:*:*:*)
- echo xmp-cray-unicos
- exit 0 ;;
+ exit ;;
CRAY*Y-MP:*:*:*)
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
+ 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 0 ;;
+ exit ;;
CRAY*TS:*:*:*)
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- CRAY*T3D:*:*:*)
- echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
+ exit ;;
CRAY*T3E:*:*:*)
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
+ exit ;;
CRAY*SV1:*:*:*)
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
- exit 0 ;;
- CRAY-2:*:*:*)
- echo cray2-cray-unicos
- exit 0 ;;
+ 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 0 ;;
+ 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 0 ;;
+ exit ;;
sparc*:BSD/OS:*:*)
echo sparc-unknown-bsdi${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:BSD/OS:*:*)
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:FreeBSD:*:*)
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
- exit 0 ;;
+ exit ;;
i*:CYGWIN*:*)
echo ${UNAME_MACHINE}-pc-cygwin
- exit 0 ;;
+ exit ;;
i*:MINGW*:*)
echo ${UNAME_MACHINE}-pc-mingw32
- exit 0 ;;
+ exit ;;
+ i*:windows32*:*)
+ # uname -m includes "-pc" on this system.
+ echo ${UNAME_MACHINE}-mingw32
+ exit ;;
i*:PW*:*)
echo ${UNAME_MACHINE}-pc-pw32
- exit 0 ;;
- x86:Interix*:3*)
- echo i386-pc-interix3
- exit 0 ;;
+ exit ;;
+ x86:Interix*:[34]*)
+ echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
+ 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 i386-pc-interix
- exit 0 ;;
+ echo i586-pc-interix
+ exit ;;
i*:UWIN*:*)
echo ${UNAME_MACHINE}-pc-uwin
- exit 0 ;;
+ exit ;;
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
+ echo x86_64-unknown-cygwin
+ exit ;;
p*:CYGWIN*:*)
echo powerpcle-unknown-cygwin
- exit 0 ;;
+ exit ;;
prep*:SunOS:5.*:*)
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
- exit 0 ;;
+ exit ;;
*:GNU:*:*)
+ # the GNU system
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
- exit 0 ;;
+ 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 0 ;;
+ exit ;;
arm*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
+ 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
- exit 0 ;;
+ 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 0 ;;
+ 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
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=mipsel
#else
- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
CPU=mips
#else
CPU=
#endif
- #endif
+ #endif
+EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
+ 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 | grep ^CPU=`
- rm -f $dummy.c
- test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
+ 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 0 ;;
+ exit ;;
ppc64:Linux:*:*)
echo powerpc64-unknown-linux-gnu
- exit 0 ;;
+ exit ;;
alpha:Linux:*:*)
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
EV5) UNAME_MACHINE=alphaev5 ;;
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 0 ;;
+ exit ;;
parisc:Linux:*:* | hppa:Linux:*:*)
# Look for CPU level
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
PA8*) echo hppa2.0-unknown-linux-gnu ;;
*) echo hppa-unknown-linux-gnu ;;
esac
- exit 0 ;;
+ exit ;;
parisc64:Linux:*:* | hppa64:Linux:*:*)
echo hppa64-unknown-linux-gnu
- exit 0 ;;
+ exit ;;
s390:Linux:*:* | s390x:Linux:*:*)
echo ${UNAME_MACHINE}-ibm-linux
- exit 0 ;;
+ exit ;;
+ sh64*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
sh*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
+ exit ;;
sparc:Linux:*:* | sparc64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
- exit 0 ;;
+ exit ;;
x86_64:Linux:*:*)
echo x86_64-unknown-linux-gnu
- exit 0 ;;
+ 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
;;
a.out-i386-linux)
echo "${UNAME_MACHINE}-pc-linux-gnuaout"
- exit 0 ;;
+ exit ;;
coff-i386)
echo "${UNAME_MACHINE}-pc-linux-gnucoff"
- exit 0 ;;
+ 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 0 ;;
+ exit ;;
esac
# Determine whether the default compiler is a.out or elf
eval $set_cc_for_build
LIBC=gnuaout
#endif
#endif
+ #ifdef __dietlibc__
+ LIBC=dietlibc
+ #endif
EOF
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
- rm -f $dummy.c
- test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
- test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
+ 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 0 ;;
+ 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 just have to hope. -- rms.
# Use sysv4.2uw... so that sysv4* matches it.
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
- exit 0 ;;
+ 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
else
echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
fi
- exit 0 ;;
- i*86:*:5:[78]*)
+ 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 0 ;;
+ exit ;;
i*86:*:3.2:*)
if test -f /usr/options/cb.name; then
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
elif /bin/uname -X 2>/dev/null >/dev/null ; then
- UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
- (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
- (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
+ 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|egrep '^Machine.*Pent ?II' >/dev/null) \
+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
&& UNAME_MACHINE=i686
- (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
+ (/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 0 ;;
- i*86:*DOS:*:*)
- echo ${UNAME_MACHINE}-pc-msdosdjgpp
- exit 0 ;;
+ 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 0 ;;
+ exit ;;
Intel:Mach:3*:*)
echo i386-pc-mach3
- exit 0 ;;
+ exit ;;
paragon:*:*:*)
echo i860-intel-osf1
- exit 0 ;;
+ 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 0 ;;
+ exit ;;
mini*:CTIX:SYS*5:*)
# "miniframe"
echo m68010-convergent-sysv
- exit 0 ;;
- M68*:*:R3V[567]*:*)
- test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
- 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)
+ 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 0
+ && { 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 0 ;;
+ && { 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 0 ;;
+ && { echo i486-ncr-sysv4; exit; } ;;
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
echo m68k-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
mc68030:UNIX_System_V:4.*:*)
echo m68k-atari-sysv4
- exit 0 ;;
- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
- echo i386-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
TSUNAMI:LynxOS:2.*:*)
echo sparc-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
rs6000:LynxOS:2.*:*)
echo rs6000-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
echo powerpc-unknown-lynxos${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
SM[BE]S:UNIX_SV:*:*)
echo mips-dde-sysv${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
RM*:ReliantUNIX-*:*:*)
echo mips-sni-sysv4
- exit 0 ;;
+ exit ;;
RM*:SINIX-*:*:*)
echo mips-sni-sysv4
- exit 0 ;;
+ exit ;;
*:SINIX-*:*:*)
if uname -p 2>/dev/null >/dev/null ; then
UNAME_MACHINE=`(uname -p) 2>/dev/null`
else
echo ns32k-sni-sysv
fi
- exit 0 ;;
+ exit ;;
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
# says <Richard.M.Bartel@ccMail.Census.GOV>
echo i586-unisys-sysv4
- exit 0 ;;
+ exit ;;
*:UNIX_System_V:4*:FTX*)
# From Gerald Hewes <hewes@openmarket.com>.
# How about differentiating between stratus architectures? -djm
echo hppa1.1-stratus-sysv4
- exit 0 ;;
+ exit ;;
*:*:*:FTX*)
# From seanf@swdc.stratus.com.
echo i860-stratus-sysv4
- exit 0 ;;
+ 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 0 ;;
+ exit ;;
mc68*:A/UX:*:*)
echo m68k-apple-aux${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
news*:NEWS-OS:6*:*)
echo mips-sony-newsos6
- exit 0 ;;
+ 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 0 ;;
+ exit ;;
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
echo powerpc-be-beos
- exit 0 ;;
+ exit ;;
BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
echo powerpc-apple-beos
- exit 0 ;;
+ exit ;;
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
echo i586-pc-beos
- exit 0 ;;
+ exit ;;
SX-4:SUPER-UX:*:*)
echo sx4-nec-superux${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
SX-5:SUPER-UX:*:*)
echo sx5-nec-superux${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
+ SX-6:SUPER-UX:*:*)
+ echo sx6-nec-superux${UNAME_RELEASE}
+ exit ;;
Power*:Rhapsody:*:*)
echo powerpc-apple-rhapsody${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:Rhapsody:*:*)
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:Darwin:*:*)
- echo `uname -p`-apple-darwin${UNAME_RELEASE}
- exit 0 ;;
+ 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]*:*)
- if test "${UNAME_MACHINE}" = "x86pc"; then
+ UNAME_PROCESSOR=`uname -p`
+ if test "$UNAME_PROCESSOR" = "x86"; then
+ UNAME_PROCESSOR=i386
UNAME_MACHINE=pc
- echo i386-${UNAME_MACHINE}-nto-qnx
- else
- echo `uname -p`-${UNAME_MACHINE}-nto-qnx
fi
- exit 0 ;;
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
+ exit ;;
*:QNX:*:4*)
echo i386-pc-qnx
- exit 0 ;;
- NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*)
+ exit ;;
+ NSE-?:NONSTOP_KERNEL:*:*)
+ echo nse-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSR-?:NONSTOP_KERNEL:*:*)
echo nsr-tandem-nsk${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:NonStop-UX:*:*)
echo mips-compaq-nonstopux
- exit 0 ;;
+ exit ;;
BS2000:POSIX*:*:*)
echo bs2000-siemens-sysv
- exit 0 ;;
+ exit ;;
DS/*:UNIX_System_V:*:*)
echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
- exit 0 ;;
+ exit ;;
*:Plan9:*:*)
# "uname -m" is not consistent, so use $cputype instead. 386
# is converted to i386 for consistency with other x86
UNAME_MACHINE="$cputype"
fi
echo ${UNAME_MACHINE}-unknown-plan9
- exit 0 ;;
- 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 0 ;;
+ exit ;;
*:TOPS-10:*:*)
echo pdp10-unknown-tops10
- exit 0 ;;
+ exit ;;
*:TENEX:*:*)
echo pdp10-unknown-tenex
- exit 0 ;;
+ exit ;;
KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
echo pdp10-dec-tops20
- exit 0 ;;
+ exit ;;
XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
echo pdp10-xkl-tops20
- exit 0 ;;
+ exit ;;
*:TOPS-20:*:*)
echo pdp10-unknown-tops20
- exit 0 ;;
+ exit ;;
*:ITS:*:*)
echo pdp10-unknown-its
- exit 0 ;;
- i*86:XTS-300:*:STOP)
- echo ${UNAME_MACHINE}-unknown-stop
- exit 0 ;;
- i*86:atheos:*:*)
- echo ${UNAME_MACHINE}-unknown-atheos
- exit 0 ;;
+ 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 ;;
esac
#echo '(No uname command or uname output not recognized.)' 1>&2
#endif
#if defined (__arm) && defined (__acorn) && defined (__unix)
- printf ("arm-acorn-riscix"); exit (0);
+ printf ("arm-acorn-riscix\n"); exit (0);
#endif
#if defined (hp300) && !defined (hpux)
}
EOF
-$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
-rm -f $dummy.c $dummy
+$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 0; }
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
# Convex versions that predate uname can use getsysinfo(1)
case `getsysinfo -f cpu_type` in
c1*)
echo c1-convex-bsd
- exit 0 ;;
+ exit ;;
c2*)
if getsysinfo -f scalar_acc
then echo c32-convex-bsd
else echo c2-convex-bsd
fi
- exit 0 ;;
+ exit ;;
c34*)
echo c34-convex-bsd
- exit 0 ;;
+ exit ;;
c38*)
echo c38-convex-bsd
- exit 0 ;;
+ exit ;;
c4*)
echo c4-convex-bsd
- exit 0 ;;
+ exit ;;
esac
fi
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
- ftp://ftp.gnu.org/pub/gnu/config/
+ http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
+and
+ http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
If the version you run ($0) is already up to date, please
send the following data and any information you think might be
/* config.h.in. Generated from configure.ac by autoheader. */
+/* Define to 1 if you have the <ctype.h> header file. */
+#undef HAVE_CTYPE_H
+
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
*/
#undef HAVE_DIRENT_H
# All of the settings required by the makefile package
# that are determined by configure.
#
-# Copyright (C) 1997 Free Software Foundation, Inc.
+# Copyright (C) 1997-2005 Free Software Foundation, Inc.
#
# Author: Scott Christley <scottc@net-community.com>
# Author: Ovidiu Predescu <ovidiu@net-community.com>
+# Author: Nicola Pero <n.pero@mi.flashnet.it>
#
# This file is part of the GNUstep Makefile Package.
#
ifeq (@target_os@,mingw32)
HAS_LN_S = no
endif
+# Special case - on cygwin, autoconf sets LN_S to 'ln -s', but then
+# that does a recursive copy (ie, cp -r).
+ifeq (@target_os@,cygwin)
+ HAS_LN_S = no
+endif
+
+
# This is used to remove an existing symlink before creating a new
# one. We don't trust 'ln -s -f' as it's unportable so we remove
# @try/@catch/@finally/@throw.
#
USE_OBJC_EXCEPTIONS = @USE_OBJC_EXCEPTIONS@
+
+#
+# Location of GNUstep's config file for this installation
+#
+# Warning - the base library's configure.in will extract the GNUstep
+# config file location from the following line using grep/sed - so if
+# you change the following lines you *need* to update the base library
+# configure.in too.
+#
+# PS: At run-time, this can be overridden on the command-line, or
+# via an environment variable.
+ifeq ($(GNUSTEP_CONFIG_FILE),)
+GNUSTEP_CONFIG_FILE = @GNUSTEP_CONFIG_FILE@
+endif
+
+#
+# Now we set up the environment and everything by reading the GNUstep
+# configuration file(s).
+#
+
+# These are the defaults value ... they will be used only if they are
+# not set in the config files (or on the command-line or in
+# environment).
+GNUSTEP_SYSTEM_ROOT = @GNUSTEP_SYSTEM_ROOT@
+GNUSTEP_LOCAL_ROOT = @GNUSTEP_LOCAL_ROOT@
+GNUSTEP_NETWORK_ROOT = @GNUSTEP_NETWORK_ROOT@
+GNUSTEP_USER_DIR = @GNUSTEP_USER_DIR@
+
+# This includes the GNUstep configuration file, but only if it exists
+-include $(GNUSTEP_CONFIG_FILE)
+
+# FIXME: determining GNUSTEP_HOME
+GNUSTEP_HOME = $(HOME)
+
+# Read the user configuration file ... unless it is disabled (ie, set
+# to an empty string)
+ifneq ($(GNUSTEP_USER_CONFIG_FILE),)
+
+ # FIXME - Checking for relative vs. absolute paths!
+ ifneq ($(filter /%, $(GNUSTEP_USER_CONFIG_FILE)),)
+ # Path starts with '/', consider it absolute
+ -include $(GNUSTEP_USER_CONFIG_FILE)
+ else
+ # Path does no start with '/', try it as relative
+ -include $(GNUSTEP_HOME)/$(GNUSTEP_USER_CONFIG_FILE)
+ endif
+
+endif
+
+GNUSTEP_FLATTENED = @GNUSTEP_FLATTENED@
+
+#
+# Set GNUSTEP_USER_ROOT from GNUSTEP_USER_DIR; GNUSTEP_USER_ROOT is
+# the variable used in practice
+#
+ifneq ($(filter /%, $(GNUSTEP_USER_DIR)),)
+ # Path starts with '/', consider it absolute
+ GNUSTEP_USER_ROOT = $(GNUSTEP_USER_DIR)
+else
+ # Path does no start with '/', try it as relative
+ GNUSTEP_USER_ROOT = $(GNUSTEP_HOME)/$(GNUSTEP_USER_DIR)
+endif
+
+# If multi-platform support is disabled, just use the hardcoded cpu,
+# vendor and os determined when gnustep-make was configured. The
+# reason using the hardcoded ones might be better is that config.guess
+# and similar scripts might even require compiling test files to
+# determine the platform - which is horribly slow (that is done in
+# names.make if GNUSTEP_HOST is not yet set at that stage). To
+# prevent this problem, unless we were configured to determine the
+# platform at run time, by default we use the hardcoded values of
+# GNUSTEP_HOST*.
+
+ifeq ("@GNUSTEP_MULTI_PLATFORM@","")
+ GNUSTEP_HOST = @target@
+ GNUSTEP_HOST_CPU = @clean_target_cpu@
+ GNUSTEP_HOST_VENDOR = @clean_target_vendor@
+ GNUSTEP_HOST_OS = @clean_target_os@
+endif
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002 Free Software Foundation, Inc.
+# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
-timestamp='2002-02-12'
+timestamp='2005-07-08'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
#
# 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.
-
+# 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 <config-patches@gnu.org>. Submit a context
# diff and a properly formatted ChangeLog entry.
#
version="\
GNU config.sub ($timestamp)
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+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
while test $# -gt 0 ; do
case $1 in
--time-stamp | --time* | -t )
- echo "$timestamp" ; exit 0 ;;
+ echo "$timestamp" ; exit ;;
--version | -v )
- echo "$version" ; exit 0 ;;
+ echo "$version" ; exit ;;
--help | --h* | -h )
- echo "$usage"; exit 0 ;;
+ echo "$usage"; exit ;;
-- ) # Stop option processing
shift; break ;;
- ) # Use stdin as input.
*local*)
# First pass through any local machine types.
echo $1
- exit 0;;
+ exit ;;
* )
break ;;
# 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* | storm-chaos* | os2-emx* | windows32-*)
+ nto-qnx* | linux-gnu* | linux-dietlibc | 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/'`
;;
-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)
+ -apple | -axis | -knuth | -cray)
os=
basic_machine=$1
;;
| 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 \
+ | bfin \
| c4x | clipper \
- | d10v | d30v | dsp16xx \
- | fr30 \
+ | d10v | d30v | dlx | dsp16xx \
+ | fr30 | frv \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
| i370 | i860 | i960 | ia64 \
- | m32r | m68000 | m68k | m88k | mcore \
- | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
- | mips64vr4100 | mips64vr4100el | mips64vr4300 \
- | mips64vr4300el | mips64vr5000 | mips64vr5000el \
- | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
- | mipsisa32 \
+ | ip2k | iq2000 \
+ | m32r | m32rle | m68000 | m68k | 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 \
| mn10200 | mn10300 \
+ | ms1 \
+ | msp430 \
| ns16k | ns32k \
- | openrisc | or32 \
+ | or32 \
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
| pyramid \
- | sh | sh[34] | sh[34]eb | shbe | shle | sh64 \
- | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
+ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
+ | sh64 | sh64le \
+ | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
+ | sparcv8 | sparcv9 | sparcv9b \
| strongarm \
- | tahoe | thumb | tic80 | tron \
+ | tahoe | thumb | tic4x | tic80 | tron \
| v850 | v850e \
| we32k \
- | x86 | xscale | xstormy16 | xtensa \
+ | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
| z8k)
basic_machine=$basic_machine-unknown
;;
+ m32c)
+ basic_machine=$basic_machine-unknown
+ ;;
m6811 | m68hc11 | m6812 | m68hc12)
# Motorola 68HC11/12.
basic_machine=$basic_machine-unknown
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
- | arm-* | armbe-* | armle-* | armv*-* \
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
| avr-* \
- | bs2000-* \
- | c[123]* | c30-* | [cjt]90-* | c54x-* \
- | clipper-* | cray2-* | cydra-* \
- | d10v-* | d30v-* \
+ | bfin-* | bs2000-* \
+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
+ | clipper-* | craynv-* | cydra-* \
+ | d10v-* | d30v-* | dlx-* \
| elxsi-* \
- | f30[01]-* | f700-* | fr30-* | fx80-* \
+ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
| h8300-* | h8500-* \
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
| i*86-* | i860-* | i960-* | ia64-* \
- | m32r-* \
- | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
- | m88110-* | m88k-* | mcore-* \
- | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
- | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
- | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
- | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
+ | ip2k-* | iq2000-* \
+ | 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-* \
+ | ms1-* \
+ | msp430-* \
| none-* | np1-* | ns16k-* | ns32k-* \
| orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
| pyramid-* \
| romp-* | rs6000-* \
- | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* | sh64-* \
- | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
- | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
- | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+ | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
+ | sparclite-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
+ | tahoe-* | thumb-* \
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+ | tron-* \
| v850-* | v850e-* | vax-* \
| we32k-* \
- | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* | xstormy16-* \
- | xtensa-* \
+ | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
+ | xstormy16-* | xtensa-* \
| ymp-* \
| z8k-*)
;;
+ m32c-*)
+ ;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
386bsd)
basic_machine=a29k-amd
os=-udi
;;
+ abacus)
+ basic_machine=abacus-unknown
+ ;;
adobe68k)
basic_machine=m68010-adobe
os=-scout
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
basic_machine=ns32k-sequent
os=-dynix
;;
+ c90)
+ basic_machine=c90-cray
+ os=-unicos
+ ;;
convex-c1)
basic_machine=c1-convex
os=-bsd
basic_machine=c38-convex
os=-bsd
;;
- cray | ymp)
- basic_machine=ymp-cray
+ cray | j90)
+ basic_machine=j90-cray
os=-unicos
;;
- cray2)
- basic_machine=cray2-cray
- os=-unicos
+ craynv)
+ basic_machine=craynv-cray
+ os=-unicosmp
;;
- [cjt]90)
- basic_machine=${basic_machine}-cray
- os=-unicos
+ 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
;;
basic_machine=m88k-motorola
os=-sysv3
;;
+ djgpp)
+ basic_machine=i586-pc
+ os=-msdosdjgpp
+ ;;
dpx20 | dpx20-*)
basic_machine=rs6000-bull
os=-bosx
basic_machine=m68k-atari
os=-mint
;;
- mipsel*-linux*)
- basic_machine=mipsel-unknown
- os=-linux-gnu
- ;;
- mips*-linux*)
- basic_machine=mips-unknown
- os=-linux-gnu
- ;;
mips3*-*)
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
;;
mips3*)
basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
;;
- mmix*)
- basic_machine=mmix-knuth
- os=-mmixware
- ;;
monitor)
basic_machine=m68k-rom68k
os=-coff
basic_machine=hppa1.1-oki
os=-proelf
;;
- or32 | or32-*)
+ openrisc | openrisc-*)
basic_machine=or32-unknown
- os=-coff
+ ;;
+ os400)
+ basic_machine=powerpc-ibm
+ os=-os400
;;
OSE68000 | ose68000)
basic_machine=m68000-ericsson
pbb)
basic_machine=m68k-tti
;;
- pc532 | pc532-*)
+ pc532 | pc532-*)
basic_machine=ns32k-pc532
;;
pentium | p5 | k5 | k6 | nexgen | viac3)
basic_machine=i586-pc
;;
- pentiumpro | p6 | 6x86 | athlon)
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
basic_machine=i686-pc
;;
- pentiumii | pentium2)
+ 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-*)
+ 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/^[^-]*-//'`
;;
basic_machine=a29k-amd
os=-udi
;;
+ sb1)
+ basic_machine=mipsisa64sb1-unknown
+ ;;
+ sb1el)
+ basic_machine=mipsisa64sb1el-unknown
+ ;;
+ sei)
+ basic_machine=mips-sei
+ os=-seiux
+ ;;
sequent)
basic_machine=i386-sequent
;;
basic_machine=sh-hitachi
os=-hms
;;
+ sh64)
+ basic_machine=sh64-unknown
+ ;;
sparclite-wrs | simso-wrs)
basic_machine=sparclite-wrs
os=-vxworks
os=-dynix
;;
t3e)
- basic_machine=t3e-cray
+ 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
;;
tower | tower-32)
basic_machine=m68k-ncr
;;
+ tpf)
+ basic_machine=s390x-ibm
+ os=-tpf
+ ;;
udi29k)
basic_machine=a29k-amd
os=-udi
os=-vms
;;
vpp*|vx|vx-*)
- basic_machine=f301-fujitsu
- ;;
+ basic_machine=f301-fujitsu
+ ;;
vxworks960)
basic_machine=i960-wrs
os=-vxworks
basic_machine=hppa1.1-winbond
os=-proelf
;;
- windows32)
- basic_machine=i386-pc
- os=-windows32-msvcrt
- ;;
- xmp)
- basic_machine=xmp-cray
- os=-unicos
+ xbox)
+ basic_machine=i686-pc
+ os=-mingw32
;;
- xps | xps100)
+ xps | xps100)
basic_machine=xps100-honeywell
;;
+ ymp)
+ basic_machine=ymp-cray
+ os=-unicos
+ ;;
z8k-*-coff)
basic_machine=z8k-unknown
os=-sim
op60c)
basic_machine=hppa1.1-oki
;;
- mips)
- if [ x$os = x-linux-gnu ]; then
- basic_machine=mips-unknown
- else
- basic_machine=mips-mips
- fi
- ;;
romp)
basic_machine=romp-ibm
;;
+ mmix)
+ basic_machine=mmix-knuth
+ ;;
rs6000)
basic_machine=rs6000-ibm
;;
we32k)
basic_machine=we32k-att
;;
- sh3 | sh4 | sh3eb | sh4eb)
+ sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
basic_machine=sh-unknown
;;
- sh64)
- basic_machine=sh64-unknown
- ;;
- sparc | sparcv9 | sparcv9b)
+ sparc | sparcv8 | sparcv9 | sparcv9b)
basic_machine=sparc-sun
;;
- cydra)
+ cydra)
basic_machine=cydra-cydrome
;;
orion)
pmac | pmac-mpw)
basic_machine=powerpc-apple
;;
- c4x*)
- basic_machine=c4x-none
- os=-coff
- ;;
*-unknown)
# Make sure to match an already-canonicalized machine name.
;;
| -aos* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
- | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
+ | -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* | -uxpv* | -beos* | -mpeix* | -udk* \
- | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
+ | -mingw32* | -linux-gnu* | -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*)
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+ | -skyos* | -haiku*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
;;
esac
;;
+ -nto-qnx*)
+ ;;
-nto*)
- os=-nto-qnx
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
;;
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
- | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
+ | -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|'`
;;
-opened*)
os=-openedition
;;
+ -os400*)
+ os=-os400
+ ;;
-wince*)
os=-wince
;;
-atheos*)
os=-atheos
;;
+ -syllable*)
+ os=-syllable
+ ;;
-386bsd)
os=-bsd
;;
-ctix* | -uts*)
os=-sysv
;;
+ -nova*)
+ os=-rtmk-nova
+ ;;
-ns2 )
- os=-nextstep2
+ os=-nextstep2
;;
-nsk*)
os=-nsk
-sinix*)
os=-sysv4
;;
+ -tpf*)
+ os=-tpf
+ ;;
-triton*)
os=-sysv3
;;
-xenix)
os=-xenix
;;
- -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
- os=-mint
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ os=-mint
+ ;;
+ -aros*)
+ os=-aros
+ ;;
+ -kaos*)
+ os=-kaos
+ ;;
+ -zvmoe)
+ os=-zvmoe
;;
-none)
;;
arm*-semi)
os=-aout
;;
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
# This must come before the *-dec entry.
pdp10-*)
os=-tops20
;;
- pdp11-*)
+ pdp11-*)
os=-none
;;
*-dec | vax-*)
*-be)
os=-beos
;;
+ *-haiku)
+ os=-haiku
+ ;;
*-ibm)
os=-aix
;;
+ *-knuth)
+ os=-mmixware
+ ;;
*-wec)
os=-proelf
;;
*-next)
os=-nextstep3
;;
- *-gould)
+ *-gould)
os=-sysv
;;
- *-highlevel)
+ *-highlevel)
os=-bsd
;;
*-encore)
os=-bsd
;;
- *-sgi)
+ *-sgi)
os=-irix
;;
- *-siemens)
+ *-siemens)
os=-sysv4
;;
*-masscomp)
-mvs* | -opened*)
vendor=ibm
;;
+ -os400*)
+ vendor=ibm
+ ;;
-ptx*)
vendor=sequent
;;
- -vxsim* | -vxworks*)
+ -tpf*)
+ vendor=ibm
+ ;;
+ -vxsim* | -vxworks* | -windiss*)
vendor=wrs
;;
-aux*)
esac
echo $basic_machine$os
-exit 0
+exit
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59.
+# Generated by GNU Autoconf 2.59e.
#
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# 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.
## --------------------- ##
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
-elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
- set -o posix
+ 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
+
+# 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
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.
-$as_unset ENV MAIL MAILPATH
+for as_var in ENV MAIL MAILPATH
+do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+done
PS1='$ '
PS2='> '
PS4='+ '
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
+ ($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; then
+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
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
# Name of the executable.
-as_me=`$as_basename "$0" ||
+as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)$' \| \
- . : '\(.\)' 2>/dev/null ||
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
echo X/"$0" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
- /^X\/\(\/\/\)$/{ s//\1/; q; }
- /^X\/\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+# CDPATH.
+$as_unset CDPATH
-# PATH needs CR, and LINENO needs CR and PATH.
-# 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
+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
+}
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x$as_lineno_3" = "x$as_lineno_2" || {
- # Find who we are. Look in the path if we contain no path at all
- # relative or not.
- 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
+exitcode=0
+if as_func_success; then
+ :
+else
+ exitcode=1
+ echo as_func_success failed.
+fi
- ;;
- 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_me: error: cannot find myself; rerun with an absolute path" >&2
- { (exit 1); exit 1; }; }
- fi
- case $CONFIG_SHELL in
- '')
+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
+for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
- for as_base in sh bash ksh sh5; do
- case $as_dir in
+ case $as_dir in
/*)
- if ("$as_dir/$as_base" -c '
+ 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 which exist, to save several forks.
+ if test -f "$as_shell" &&
+ { ("$as_shell") 2> /dev/null <<\_ASEOF
+# Be 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
+
+:
+_ASEOF
+}; then
+ CONFIG_SHELL=$as_shell
+ as_have_required=yes
+ if { "$as_shell" 2> /dev/null <<\_ASEOF
+# Be 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
+
+:
+(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
- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
- $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
- $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
- CONFIG_SHELL=$as_dir/$as_base
- export CONFIG_SHELL
- exec "$CONFIG_SHELL" "$0" ${1+"$@"}
- fi;;
- esac
- done
-done
-;;
- esac
+ 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 before each line; the second 'sed' does the real
- # work. The second script uses 'N' to pair each line-number line
- # with the numbered line, and appends trailing '-' during
- # substitution so that $LINENO is not a special case at line end.
+ # 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
- # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
- sed '=' <$as_myself |
+ # 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
- s,$,-,
- : loop
- s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
t loop
- s,-$,,
- s,^['$as_cr_digits']*\n,,
+ s/-\n.*//
' >$as_me.lineno &&
- chmod +x $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 sensible to this).
- . ./$as_me.lineno
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
# Exit status is that of the last command.
exit
}
-case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
- *c*,-n*) ECHO_N= ECHO_C='
-' ECHO_T=' ' ;;
- *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
- *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
+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; then
+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
- # We could just check for DJGPP; but this test a) works b) is more generic
- # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
- if test -f conf$$.exe; then
- # Don't use ln at all; we don't have any links
- as_ln_s='cp -p'
- else
- as_ln_s='ln -s'
- fi
+ 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 -rp'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -rp'
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
- as_ln_s='cp -p'
+ as_ln_s='cp -rp'
fi
-rm -f conf$$ conf$$.exe conf$$.file
+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=:
as_mkdir_p=false
fi
-as_executable_p="test -f"
+# Find out whether ``test -x'' works. Don't use a zero-byte file, as
+# systems may use methods other than mode bits to determine executability.
+cat >conf$$.file <<_ASEOF
+#! /bin/sh
+exit 0
+_ASEOF
+chmod +x conf$$.file
+if test -x conf$$.file >/dev/null 2>&1; then
+ as_executable_p="test -x"
+else
+ as_executable_p=:
+fi
+rm -f conf$$.file
# 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'"
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-# IFS
-# We need space, tab and new line, in precisely that order.
-as_nl='
-'
-IFS=" $as_nl"
-
-# CDPATH.
-$as_unset CDPATH
+exec 7<&0 </dev/null 6>&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`
-exec 6>&1
-
#
# 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}
-# Maximum number of lines to put in a shell here document.
-# This variable seems obsolete. It should probably be removed, and
-# only ac_max_sed_lines should be used.
-: ${ac_max_here_lines=38}
-
# Identity of this package.
PACKAGE_NAME=
PACKAGE_TARNAME=
PACKAGE_BUGREPORT=
ac_unique_file="application.make"
-ac_default_prefix=`if test "x$GNUSTEP_SYSTEM_ROOT" = "x"; then
- if test -d C: ; then
+ac_default_prefix=`if test -d C: ; then
echo C:/GNUstep;
else
echo /usr/GNUstep ;
- fi
-else
- echo "$GNUSTEP_SYSTEM_ROOT" ;
-fi`
+ fi`
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
-#else
-# if HAVE_STDINT_H
-# include <stdint.h>
-# endif
+#endif
+#if HAVE_STDINT_H
+# include <stdint.h>
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#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 datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os ac_cv_library_combo cc_cppprecomp cc_bundle CYGWIN RANLIB AR DLLTOOL ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S TAR CHOWN GNUSTEP_ROOT root_prefix MAKEFILES_SUFFIX HOST_INSTALL GNUSTEP_LOCAL_ROOT GNUSTEP_NETWORK_ROOT GNUSTEP_USER_ROOT GNUSTEP_FLATTENED GNUSTEP_MULTI_PLATFORM BACKEND_BUNDLE EGREP objc_threaded ac_cv_objc_threaded USE_OBJC_EXCEPTIONS AUTO_DEPENDENCIES PRECOMPILED_HEADERS INCLUDES LIB_DIR OBJCFLAGS GNUSTEP_STRIP_MAKEFILES GNUSTEP_MOVE_OBSOLETE GNUSTEP_MAKE_VERSION GNUSTEP_MAKE_MAJOR_VERSION GNUSTEP_MAKE_MINOR_VERSION GNUSTEP_MAKE_SUBMINOR_VERSION clean_target_os clean_target_cpu clean_target_vendor LIBOBJS LTLIBOBJS'
+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
+CC
+CFLAGS
+LDFLAGS
+CPPFLAGS
+ac_ct_CC
+EXEEXT
+OBJEXT
+CPP
+build
+build_cpu
+build_vendor
+build_os
+host
+host_cpu
+host_vendor
+host_os
+target
+target_cpu
+target_vendor
+target_os
+ac_cv_library_combo
+cc_cppprecomp
+cc_bundle
+CYGWIN
+RANLIB
+AR
+DLLTOOL
+INSTALL_PROGRAM
+INSTALL_SCRIPT
+INSTALL_DATA
+LN_S
+TAR
+CHOWN
+GNUSTEP_CONFIG_FILE
+GNUSTEP_SYSTEM_ROOT
+GNUSTEP_LOCAL_ROOT
+GNUSTEP_NETWORK_ROOT
+GNUSTEP_USER_CONFIG_FILE
+GNUSTEP_USER_DIR
+GNUSTEP_USER_DEFAULTS_DIR
+GNUSTEP_MAKEFILES
+HOST_INSTALL
+GNUSTEP_FLATTENED
+GNUSTEP_MULTI_PLATFORM
+BACKEND_BUNDLE
+GREP
+EGREP
+objc_threaded
+ac_cv_objc_threaded
+USE_OBJC_EXCEPTIONS
+AUTO_DEPENDENCIES
+INCLUDES
+LIB_DIR
+OBJCFLAGS
+GNUSTEP_STRIP_MAKEFILES
+GNUSTEP_MOVE_OBSOLETE
+GNUSTEP_MAKE_VERSION
+GNUSTEP_MAKE_MAJOR_VERSION
+GNUSTEP_MAKE_MINOR_VERSION
+GNUSTEP_MAKE_SUBMINOR_VERSION
+clean_target_os
+clean_target_cpu
+clean_target_vendor
+LIBOBJS
+LTLIBOBJS'
ac_subst_files=''
+ ac_precious_vars='build_alias
+host_alias
+target_alias
+CC
+CFLAGS
+LDFLAGS
+CPPFLAGS
+CPP'
+
# Initialize some variables set by options.
ac_init_help=
# 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'
-datadir='${prefix}/share'
+datarootdir='${prefix}/share'
+datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
-libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
-infodir='${prefix}/info'
-mandir='${prefix}/man'
+docdir='${datarootdir}/doc/${PACKAGE}'
+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"
+ eval $ac_prev=\$ac_option
ac_prev=
continue
fi
- ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
+ 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_option in
+ case $ac_dashdash$ac_option in
+ --)
+ ac_dashdash=yes ;;
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
--config-cache | -C)
cache_file=config.cache ;;
- -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
+ -datadir | --datadir | --datadi | --datad)
ac_prev=datadir ;;
- -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
- | --da=*)
+ -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.
{ 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" ;;
+ 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-\([^=]*\)'`
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
{ (exit 1); exit 1; }; }
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
- case $ac_option in
- *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
- *) ac_optarg=yes ;;
- esac
- eval "enable_$ac_feature='$ac_optarg'" ;;
+ eval enable_$ac_feature=\$ac_optarg ;;
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
-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 ;;
| --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 | --local | --loca | --loc | --lo)
+ | --localstate | --localstat | --localsta | --localst | --locals)
ac_prev=localstatedir ;;
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
- | --localstate=* | --localstat=* | --localsta=* | --localst=* \
- | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
localstatedir=$ac_optarg ;;
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
| --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 ;;
{ echo "$as_me: error: invalid package name: $ac_package" >&2
{ (exit 1); exit 1; }; }
ac_package=`echo $ac_package| sed 's/-/_/g'`
- case $ac_option in
- *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
- *) ac_optarg=yes ;;
- esac
- eval "with_$ac_package='$ac_optarg'" ;;
+ eval with_$ac_package=\$ac_optarg ;;
-without-* | --without-*)
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
{ 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" ;;
+ eval with_$ac_package=no ;;
--x)
# Obsolete; use --with-x.
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
{ (exit 1); exit 1; }; }
- ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
- eval "$ac_envvar='$ac_optarg'"
+ eval $ac_envvar=\$ac_optarg
export $ac_envvar ;;
*)
{ (exit 1); exit 1; }; }
fi
-# Be sure to have absolute paths.
-for ac_var in exec_prefix prefix
-do
- eval ac_val=$`echo $ac_var`
- case $ac_val in
- [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
- *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
- { (exit 1); exit 1; }; };;
- esac
-done
-
-# Be sure to have absolute paths.
-for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
- localstatedir libdir includedir oldincludedir infodir mandir
+# 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=$`echo $ac_var`
+ eval ac_val=\$$ac_var
case $ac_val in
- [\\/$]* | ?:[\\/]* ) ;;
- *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
- { (exit 1); exit 1; }; };;
+ [\\/$]* | ?:[\\/]* ) 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'
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 its parent.
- ac_confdir=`(dirname "$0") 2>/dev/null ||
+ # 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 ||
+ 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'`
+ 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
+ if test ! -r "$srcdir/$ac_unique_file"; then
srcdir=..
fi
else
ac_srcdir_defaulted=no
fi
-if test ! -r $srcdir/$ac_unique_file; then
- if test "$ac_srcdir_defaulted" = yes; then
- { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
- { (exit 1); exit 1; }; }
- else
- { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
+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
fi
-(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
- { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
+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; }; }
-srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
-ac_env_build_alias_set=${build_alias+set}
-ac_env_build_alias_value=$build_alias
-ac_cv_env_build_alias_set=${build_alias+set}
-ac_cv_env_build_alias_value=$build_alias
-ac_env_host_alias_set=${host_alias+set}
-ac_env_host_alias_value=$host_alias
-ac_cv_env_host_alias_set=${host_alias+set}
-ac_cv_env_host_alias_value=$host_alias
-ac_env_target_alias_set=${target_alias+set}
-ac_env_target_alias_value=$target_alias
-ac_cv_env_target_alias_set=${target_alias+set}
-ac_cv_env_target_alias_value=$target_alias
-ac_env_CC_set=${CC+set}
-ac_env_CC_value=$CC
-ac_cv_env_CC_set=${CC+set}
-ac_cv_env_CC_value=$CC
-ac_env_CFLAGS_set=${CFLAGS+set}
-ac_env_CFLAGS_value=$CFLAGS
-ac_cv_env_CFLAGS_set=${CFLAGS+set}
-ac_cv_env_CFLAGS_value=$CFLAGS
-ac_env_LDFLAGS_set=${LDFLAGS+set}
-ac_env_LDFLAGS_value=$LDFLAGS
-ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
-ac_cv_env_LDFLAGS_value=$LDFLAGS
-ac_env_CPPFLAGS_set=${CPPFLAGS+set}
-ac_env_CPPFLAGS_value=$CPPFLAGS
-ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
-ac_cv_env_CPPFLAGS_value=$CPPFLAGS
-ac_env_CPP_set=${CPP+set}
-ac_env_CPP_value=$CPP
-ac_cv_env_CPP_set=${CPP+set}
-ac_cv_env_CPP_value=$CPP
+ 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.
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or \`..']
-_ACEOF
-
- cat <<_ACEOF
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[$ac_default_prefix]
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
- --datadir=DIR read-only architecture-independent data [PREFIX/share]
--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]
- --infodir=DIR info documentation [PREFIX/info]
- --mandir=DIR man documentation [PREFIX/man]
+ --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/PACKAGE]
+ --htmldir=DIR html documentation [DOCDIR]
+ --dvidir=DIR dvi documentation [DOCDIR]
+ --pdfdir=DIR pdf documentation [DOCDIR]
+ --psdir=DIR ps documentation [DOCDIR]
_ACEOF
cat <<\_ACEOF
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
---disable-flattened Disable flattened directory structure
---enable-multi-platform Use run time multi-platform support
---disable-backend-bundle Compile gui backend as a library
- --enable-native-objc-exceptions
- use native objective-c exceptions
---enable-strip-makefiles Enable stripping makefiles after installation
---disable-move-obsolete Disable moving obsolete dir structure
---enable-pch Enable precompiled headers
+--disable-importing-config-file
+ Disable importing the existing system GNUstep configuration file.
+ Use this option to prevent an existing configuration file from being
+ parsed and used when configure is being run.
+
+
+--disable-flattened
+ Disable flattened directory structure. Use this option if you want
+ to have support for multiple library combos and fat binaries. A
+ library combo specifies the Objective-C frameworks to use to compile
+ a program, so having multiple library combos is only useful if you
+ have (or plan to have) multiple OpenStep-like Objective-C frameworks
+ installed on your machine, for example both the Apple Cocoa Objective-C
+ frameworks and the GNUstep frameworks. Fat binaries allow you to
+ have multiple versions for different CPUs and Operating Systems.
+ Please note that using the fat directory structure will not blend
+ easily with native filesystems and so if you want the non-flattened
+ directory structure you probably want to install GNUstep using its
+ own default filesystem layout. To switch between different
+ library-combos, you also need to source GNUstep.sh after
+ setting the LIBRARY_COMBO environment variable. Please refer to
+ the documentation for more information on library-combos and fat
+ binaries.
+
+
+--enable-multi-platform
+ Enable run-time multi-platform support. If this option is enabled,
+ then every time GNUstep.sh is run it will determine/guess the type
+ of local host machine instead of using the hardcoded value. Use
+ this together with --disable-flattened if you have a single GNUstep
+ installation with fat binaries that is being shared over the network
+ by a variety of machines with different hardware and o/s.
+
+
+--disable-backend-bundle
+ Compile GUI backend as a library. Use this option if the default
+ compilation of the GUI backend as a bundle (loadable module) is
+ not supported / does not work on your machine.
+
+
+--enable-native-objc-exceptions
+ Use native Objective-C exceptions. Use this option if you want
+ to use the native Objective-C exception support (@try/@catch/@finally)
+ provided by newer GCC compilers.
+
+
+--enable-strip-makefiles
+ Enable stripping system makefiles after installation. This will
+ speed up gnustep-make by about 5% (average), but will remove all
+ comments from the installed makefiles. Those comments are quite
+ useful if you are trying to find some information on how gnustep-make
+ works (eg, if you're trying to locate a bug), and the performance
+ gain is quite small, so you probably don't want to strip makefiles.
+
+
+--disable-move-obsolete
+ Disable moving obsolete dir structure. This option will be
+ removed SOON as the dir structure was change more than 2 years ago! :-)
+
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
---with-library-combo Define the default library combination
+--with-library-combo
+ Define the default "library combo". The library combo is a string
+ of the form aaa-bbb-ccc where 'aaa' is the Objective-C runtime
+ library to use (examples are 'gnu' and 'apple'),
+ 'bbb' is the Foundation library to use (examples are 'gnu' for
+ gnustep-base, and 'apple' for Apple Cocoa FoundationKit),
+ and 'ccc' is the ApplicationKit to use (examples are 'gnu'
+ for gnustep-gui and 'apple' for Apple Cocoa AppKit). Use this
+ option if you want to force a different default library combo than
+ the one that would be used by default. For example, on Darwin GNUstep
+ will automatically use the Apple Objective-C frameworks by
+ default (library-combo=apple-apple-apple); if you are planning
+ on installing and using gnustep-base on there, you would need
+ to use --with-library-combo=gnu-gnu-gnu instead. Please notice
+ that if --disable-flattened is used, gnustep-make can have fat
+ binaries that support multiple library combos. In that case,
+ this flag will only configure the default one, but you can still
+ use other ones at run-time.
+
+
+--with-tar
+ Set the name of the tar program to use. Use this option if the
+ default choice does not work for you.
+
+
+--with-config-file=PATH
+ Set the path of the system GNUstep config file. Use this option
+ if you want to have the GNUstep config file in a non-standard place.
+ Example: --with-config-file=/usr/GNUstep/GNUstep.conf
+
+
+--with-system-root
+ Set the GNUSTEP_SYSTEM_ROOT directory. Use this option if you want
+ to have the GNUSTEP_SYSTEM_ROOT directory in a non-standard place.
+ Example: --with-system-root=/usr/GNUstep/System
+
---with-tar Set the name of the tar program to use
---without-system-root Don't use separate system root directory
--with-local-root
- Set the GNUSTEP_LOCAL_ROOT directory. Use this option if you want
-to have the GNUSTEP_LOCAL_ROOT directory in a non-standard place. Example:
---with-local-root=/usr/local/GNUstep/Local
+ Set the GNUSTEP_LOCAL_ROOT directory. Use this option if you want
+ to have the GNUSTEP_LOCAL_ROOT directory in a non-standard place.
+ Example: --with-local-root=/usr/local/GNUstep/Local
+
--with-network-root
- Set the GNUSTEP_NETWORK_ROOT directory. Use this option if you want
-to have the GNUSTEP_NETWORK_ROOT directory. Example:
---with-network-root=/usr/local/GNUstep/Network
+ Set the GNUSTEP_NETWORK_ROOT directory. Use this option if you
+ want to have the GNUSTEP_NETWORK_ROOT directory.
+ Example: --with-network-root=/usr/local/GNUstep/Network
+
---with-user-root
- Set the GNUSTEP_USER_ROOT directory for all users. '~' is allowed
- at the beginning to mean the user's home directory. Use this
- option if you want to have the GNUSTEP_USER_ROOT directory in a non
- default place for all users.
- Example: --with-user-root='~/gnustep'
+--with-user-config-file
+ Set the name of the user config file to use. This can be
+ relative to the user's home directory if it is a relative path,
+ or an absolute directory (the same for all users) if it is an
+ absolute path. Use '' if you want to disable user config files.
+ The default is .GNUstep.conf if not specified.
+ Example: --with-user-config-file=GNUstep/GNUstep.conf
+
+
+--with-user-dir
+ Set the GNUSTEP_USER_DIR directory for all users. This can be
+ relative to the user's home directory if it is a relative path,
+ or an absolute directory (the same for all users) if it is an
+ absolute path. Use this option if you want to have the
+ GNUSTEP_USER_DIR directory in a non default place for all users.
+ The default is 'GNUstep'.
+ Example: --with-user-dir='gnustep'
+
+
+--with-user-defaults-dir
+ Set the GNUstep user defaults directory for all users. This can be
+ relative to the user's home directory if it is a relative path,
+ or an absolute directory (the same for all users) if it is an
+ absolute path. Use this option if you want to have the
+ GNUSTEP_USER_DEFAULTS_DIR directory in a non default place for
+ all users. The default is 'GNUstep/Defaults'
+ Example: --with-user-defaults-dir='GNUstep/Library/Defaults'
+
+
+--with-thread-lib
+ Specify alternate thread library. Use this flag if configure can
+ not properly determine the thread library used by your libobjc.
---with-thread-lib Specify alternate thread library
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
- CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
- headers in a nonstandard directory <include dir>
+ CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
+ you have headers in a nonstandard directory <include dir>
CPP C preprocessor
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
_ACEOF
+ac_status=$?
fi
if test "$ac_init_help" = "recursive"; then
# If there are subdirs, report their specific --help.
- ac_popdir=`pwd`
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
- test -d $ac_dir || continue
+ test -d "$ac_dir" || continue
ac_builddir=.
-if test "$ac_dir" != .; then
+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=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
-else
- ac_dir_suffix= ac_top_builddir=
-fi
+ # 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
- .) # No --srcdir option. We are building in place.
+ .) # We are building in place.
ac_srcdir=.
- if test -z "$ac_top_builddir"; then
- ac_top_srcdir=.
- else
- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
- fi ;;
- [\\/]* | ?:[\\/]* ) # Absolute path.
+ 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 ;;
- *) # Relative path.
- ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_builddir$srcdir ;;
-esac
-
-# Do not use `cd foo && pwd` to compute absolute paths, because
-# the directories may not exist.
-case `pwd` in
-.) ac_abs_builddir="$ac_dir";;
-*)
- case "$ac_dir" in
- .) ac_abs_builddir=`pwd`;;
- [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
- *) ac_abs_builddir=`pwd`/"$ac_dir";;
- esac;;
-esac
-case $ac_abs_builddir in
-.) ac_abs_top_builddir=${ac_top_builddir}.;;
-*)
- case ${ac_top_builddir}. in
- .) ac_abs_top_builddir=$ac_abs_builddir;;
- [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
- *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
- esac;;
-esac
-case $ac_abs_builddir in
-.) ac_abs_srcdir=$ac_srcdir;;
-*)
- case $ac_srcdir in
- .) ac_abs_srcdir=$ac_abs_builddir;;
- [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
- *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
- esac;;
-esac
-case $ac_abs_builddir in
-.) ac_abs_top_srcdir=$ac_top_srcdir;;
-*)
- case $ac_top_srcdir in
- .) ac_abs_top_srcdir=$ac_abs_builddir;;
- [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
- *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
- esac;;
+ 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
-
- cd $ac_dir
- # Check for guested configure; otherwise get Cygnus style 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
- elif test -f $ac_srcdir/configure.ac ||
- test -f $ac_srcdir/configure.in; then
- echo
- $ac_configure --help
+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
- cd $ac_popdir
+ fi || ac_status=$?
+ cd "$ac_pwd" || { ac_status=$?; break; }
done
fi
-test -n "$ac_init_help" && exit 0
+test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
+configure
+generated by GNU Autoconf 2.59e
-Copyright (C) 2003 Free Software Foundation, Inc.
+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.
_ACEOF
- exit 0
+ exit
fi
-exec 5>config.log
-cat >&5 <<_ACEOF
+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 $as_me, which was
-generated by GNU Autoconf 2.59. Invocation command line was
+generated by GNU Autoconf 2.59e. Invocation command line was
$ $0 $@
_ACEOF
+exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
/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`
-hostinfo = `(hostinfo) 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`
test -z "$as_dir" && as_dir=.
echo "PATH: $as_dir"
done
+IFS=$as_save_IFS
} >&5
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
-ac_sep=
ac_must_keep_next=false
for ac_pass in 1 2
do
-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
-* ) ac_must_keep_next=true ;;
esac
fi
- ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
- # Get rid of the leading space.
- ac_sep=" "
+ ac_configure_args="$ac_configure_args '$ac_arg'"
;;
esac
done
# 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: Be sure not to use single quotes in there, as some shells,
-# such as our DU 5.0 friend, will then `close' the trap.
+# 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.
{
_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 `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
- *ac_space=\ *)
+ 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"
- ;;
+ "s/'\''/'\''\\\\'\'''\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
+ ;; #(
*)
- sed -n \
- "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
;;
- esac;
-}
+ esac |
+ sort
+)
echo
cat <<\_ASBOX
echo
for ac_var in $ac_subst_vars
do
- eval ac_val=$`echo $ac_var`
- echo "$ac_var='"'"'$ac_val'"'"'"
+ 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
-## ------------- ##
-## Output files. ##
-## ------------- ##
+## ------------------- ##
+## File substitutions. ##
+## ------------------- ##
_ASBOX
echo
for ac_var in $ac_subst_files
do
- eval ac_val=$`echo $ac_var`
- echo "$ac_var='"'"'$ac_val'"'"'"
+ 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
## ----------- ##
_ASBOX
echo
- sed "/^$/d" confdefs.h | sort
+ 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 &&
- rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
+ rm -f core *.core core.conftest.* &&
+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
exit $exit_status
- ' 0
+' 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 -rf conftest* confdefs.h
-# AIX cpp loses on an empty file, so make sure it contains at least a newline.
-echo >confdefs.h
+rm -f -r conftest* confdefs.h
# Predefined preprocessor variables.
# Let the site file select an alternate cache file if it wants to.
# Prefer explicitly selected file to automatically selected ones.
-if test -z "$CONFIG_SITE"; then
- if test "x$prefix" != xNONE; then
- CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
- else
- CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
- fi
+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
-for ac_site_file in $CONFIG_SITE; do
+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;}
{ 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;;
+ [\\/]* | ?:[\\/]* ) . "$cache_file";;
+ *) . "./$cache_file";;
esac
fi
else
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
-for ac_var in `(set) 2>&1 |
- sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
+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"
+ 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
# 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=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
*) ac_arg=$ac_var=$ac_new_val ;;
esac
case " $ac_configure_args " in
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_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_config_headers="$ac_config_headers config.h"
+ac_config_headers="$ac_config_headers config.h"
#--------------------------------------------------------------------
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
+{ 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
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$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
+ { 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
+ { 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
+{ 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
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$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
+ { 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
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
fi
- CC=$ac_ct_CC
+ 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.
+ 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
+{ 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
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$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
-if test -z "$ac_cv_prog_CC"; then
- ac_ct_CC=$CC
- # 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_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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_CC="cc"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-
-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
+ { 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
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
fi
- CC=$ac_ct_CC
-else
- CC="$ac_cv_prog_CC"
-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
+{ 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
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$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
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.
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
- echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6
+ { 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
+ { 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
+ 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
+{ 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
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$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
+ { 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
+ { 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
+ 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
+{ 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
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$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
+ { 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
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
fi
+
test -n "$ac_ct_CC" && break
done
- CC=$ac_ct_CC
+ 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
{ (exit 1); exit 1; }; }
# Provide some information about the compiler.
-echo "$as_me:$LINENO:" \
- "checking for C compiler version" >&5
+echo "$as_me:$LINENO: checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
-{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
- (eval $ac_compiler --version </dev/null >&5) 2>&5
+{ (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); }
-{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
- (eval $ac_compiler -v </dev/null >&5) 2>&5
+{ (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); }
-{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
- (eval $ac_compiler -V </dev/null >&5) 2>&5
+{ (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); }
# 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
+{ 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[^ ]*//'`
-if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
- (eval $ac_link_default) 2>&5
+#
+# 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
- # Find the output, starting from the most likely. This scheme is
-# not robust to junk in `.', hence go to wildcards (a.*) only as a last
-# resort.
-
-# Be careful to initialize this variable, since it used to be cached.
-# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
-ac_cv_exeext=
-# b.out is created by i960 compilers.
-for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
+ # 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 | *.o | *.obj )
- ;;
- conftest.$ac_ext )
- # This is the source file.
+ *.$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;;
*.* )
- ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- # FIXME: I believe we export ac_cv_exeext for Libtool,
- # but it would be cool to find out if it's true. Does anybody
- # maintain Libtool? --akim.
- export ac_cv_exeext
+ 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
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
ac_exeext=$ac_cv_exeext
-echo "$as_me:$LINENO: result: $ac_file" >&5
-echo "${ECHO_T}$ac_file" >&6
+{ echo "$as_me:$LINENO: result: $ac_file" >&5
+echo "${ECHO_T}$ac_file" >&6; }
-# Check the compiler produces executables we can run. If not, either
+# 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
+{ 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'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
fi
fi
fi
-echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
+{ 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 the compiler produces executables we can run. If not, either
+# 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 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+{ 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
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 | *.o | *.obj ) ;;
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- export ac_cv_exeext
break;;
* ) break;;
esac
fi
rm -f conftest$ac_cv_exeext
-echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
-echo "${ECHO_T}$ac_cv_exeext" >&6
+{ 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
+{ 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
}
_ACEOF
rm -f conftest.o conftest.obj
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
+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 `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
+ 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 ) ;;
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
break;;
esac
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
+{ 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
+{ 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
}
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
+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); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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); }; } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_compiler_gnu=no
+ ac_compiler_gnu=no
fi
+
rm -f 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
+{ 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
-CFLAGS="-g"
-echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
-echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
+{ 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
- cat >conftest.$ac_ext <<_ACEOF
+ 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); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (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_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); } &&
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (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: 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
}
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
+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); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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); }; } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_prog_cc_g=no
+
+fi
+
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
+
rm -f 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
+{ 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
CFLAGS=
fi
fi
-echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
-echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
-if test "${ac_cv_prog_cc_stdc+set}" = set; then
+{ 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_stdc=no
+ ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
/* 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 -std1 is added to get
+ 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 -std1. */
+ that's true only with -std. */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
int test (int i, double x);
return 0;
}
_ACEOF
-# Don't try gcc -ansi; that turns off useful extensions and
-# breaks some systems' header files.
-# AIX -qlanglvl=ansi
-# Ultrix and OSF/1 -std1
-# HP-UX 10.20 and later -Ae
-# HP-UX older versions -Aa -D_HPUX_SOURCE
-# SVR4 -Xc -D__EXTENSIONS__
-for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
+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); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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); }; } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_prog_cc_stdc=$ac_arg
-break
+ ac_cv_prog_cc_c89=$ac_arg
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
+
fi
+
rm -f conftest.err conftest.$ac_objext
+ test "x$ac_cv_prog_cc_c89" != "xno" && break
done
-rm -f conftest.$ac_ext conftest.$ac_objext
+rm -f conftest.$ac_ext
CC=$ac_save_CC
fi
-
-case "x$ac_cv_prog_cc_stdc" in
- x|xno)
- echo "$as_me:$LINENO: result: none needed" >&5
-echo "${ECHO_T}none needed" >&6 ;;
+# 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; } ;;
*)
- echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
-echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
- CC="$CC $ac_cv_prog_cc_stdc" ;;
+ 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
-# Some people use a C++ compiler to compile C. Since we use `exit',
-# in C++ we need to declare it. In case someone uses the same compiler
-# for both compiling C and C++ we need to have the C++ compiler decide
-# the declaration of exit, since it's the most demanding environment.
-cat >conftest.$ac_ext <<_ACEOF
-#ifndef __cplusplus
- choke me
-#endif
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- for ac_declaration in \
- '' \
- 'extern "C" void std::exit (int) throw (); using std::exit;' \
- 'extern "C" void std::exit (int); using std::exit;' \
- 'extern "C" void exit (int) throw ();' \
- 'extern "C" void exit (int);' \
- 'void exit (int);'
-do
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_declaration
-#include <stdlib.h>
-int
-main ()
-{
-exit (42);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-continue
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_declaration
-int
-main ()
-{
-exit (42);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- break
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-done
-rm -f conftest*
-if test -n "$ac_declaration"; then
- echo '#ifdef __cplusplus' >>confdefs.h
- echo $ac_declaration >>confdefs.h
- echo '#endif' >>confdefs.h
-fi
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
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
+{ 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=
#endif
Syntax error
_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+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
# Broken: fails on valid input.
continue
fi
+
rm -f conftest.err conftest.$ac_ext
- # OK, works on sane cases. Now check whether non-existent headers
+ # OK, works on sane cases. Now check whether nonexistent headers
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
/* end confdefs.h. */
#include <ac_nonexistent.h>
_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+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
ac_preproc_ok=:
break
fi
+
rm -f conftest.err conftest.$ac_ext
done
else
ac_cv_prog_CPP=$CPP
fi
-echo "$as_me:$LINENO: result: $CPP" >&5
-echo "${ECHO_T}$CPP" >&6
+{ 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
#endif
Syntax error
_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+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
# Broken: fails on valid input.
continue
fi
+
rm -f conftest.err conftest.$ac_ext
- # OK, works on sane cases. Now check whether non-existent headers
+ # OK, works on sane cases. Now check whether nonexistent headers
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
/* end confdefs.h. */
#include <ac_nonexistent.h>
_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+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
ac_preproc_ok=:
break
fi
+
rm -f conftest.err conftest.$ac_ext
done
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_aux_dir=
-for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
- if test -f $ac_dir/install-sh; then
+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; 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
+ 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
+ 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 $srcdir $srcdir/.. $srcdir/../.." >&5
-echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
+ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
+echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
{ (exit 1); exit 1; }; }
fi
-ac_config_guess="$SHELL $ac_aux_dir/config.guess"
-ac_config_sub="$SHELL $ac_aux_dir/config.sub"
-ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
+
+# 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.
+
# Make sure we can run config.sub.
-$ac_config_sub sun4 >/dev/null 2>&1 ||
- { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
-echo "$as_me: error: cannot run $ac_config_sub" >&2;}
+$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
+{ 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_cv_build_alias=$build_alias
-test -z "$ac_cv_build_alias" &&
- ac_cv_build_alias=`$ac_config_guess`
-test -z "$ac_cv_build_alias" &&
+ 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=`$ac_config_sub $ac_cv_build_alias` ||
- { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
-echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
+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
+{ 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
-build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-
-
-echo "$as_me:$LINENO: checking host system type" >&5
-echo $ECHO_N "checking host system type... $ECHO_C" >&6
+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
- ac_cv_host_alias=$host_alias
-test -z "$ac_cv_host_alias" &&
- ac_cv_host_alias=$ac_cv_build_alias
-ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
- { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
-echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
+ 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
+{ 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
-host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-
-
-echo "$as_me:$LINENO: checking target system type" >&5
-echo $ECHO_N "checking target system type... $ECHO_C" >&6
+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
+
+
+{ echo "$as_me:$LINENO: checking target system type" >&5
+echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
if test "${ac_cv_target+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- ac_cv_target_alias=$target_alias
-test "x$ac_cv_target_alias" = "x" &&
- ac_cv_target_alias=$ac_cv_host_alias
-ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
- { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
-echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
+ if test "x$target_alias" = x; then
+ ac_cv_target=$ac_cv_host
+else
+ ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
+ { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
+echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
{ (exit 1); exit 1; }; }
+fi
fi
-echo "$as_me:$LINENO: result: $ac_cv_target" >&5
-echo "${ECHO_T}$ac_cv_target" >&6
+{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
+echo "${ECHO_T}$ac_cv_target" >&6; }
+case $ac_cv_target in
+*-*-*) ;;
+*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
+echo "$as_me: error: invalid value of canonical target" >&2;}
+ { (exit 1); exit 1; }; };;
+esac
target=$ac_cv_target
-target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_target
+shift
+target_cpu=$1
+target_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+target_os=$*
+IFS=$ac_save_IFS
+case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
# The aliases save the names the user supplied, while $host etc.
NONENONEs,x,x, &&
program_prefix=${target_alias}-
-echo "$as_me:$LINENO: checking for library combo" >&5
-echo $ECHO_N "checking for library combo... $ECHO_C" >&6
+{ echo "$as_me:$LINENO: checking for library combo" >&5
+echo $ECHO_N "checking for library combo... $ECHO_C" >&6; }
-# Check whether --with-library-combo or --without-library-combo was given.
+# Check whether --with-library-combo was given.
if test "${with_library_combo+set}" = set; then
- withval="$with_library_combo"
- ac_cv_library_combo=$withval
+ withval=$with_library_combo; ac_cv_library_combo=$withval
else
ac_cv_library_combo=$ac_cv_library_combo
-fi;
+fi
+
-if test "$ac_cv_library_combo" = ""; then
+if test "$ac_cv_library_combo" = "" -o "$ac_cv_library_combo" = "no"; then
case "$host_os" in
darwin*) ac_cv_library_combo=apple-apple-apple ;;
nextstep4) ac_cv_library_combo=nx-nx-nx ;;
esac
-echo "$as_me:$LINENO: result: $ac_cv_library_combo" >&5
-echo "${ECHO_T}$ac_cv_library_combo" >&6
+{ echo "$as_me:$LINENO: result: $ac_cv_library_combo" >&5
+echo "${ECHO_T}$ac_cv_library_combo" >&6; }
OBJC_RUNTIME_LIB=`echo $ac_cv_library_combo | awk -F- '{print $1}'`
#--------------------------------------------------------------------
cc_cppprecomp=0
cc_byndle=0
-echo "$as_me:$LINENO: checking for apple compiler flags" >&5
-echo $ECHO_N "checking for apple compiler flags... $ECHO_C" >&6
+{ echo "$as_me:$LINENO: checking for apple compiler flags" >&5
+echo $ECHO_N "checking for apple compiler flags... $ECHO_C" >&6; }
cc_cppprecomp=`${CC} -no-cpp-precomp 2>&1 | grep -c "unrecognized"`
cc_bundle=`${CC} -bundle 2>&1 | grep -c "couldn"`
# 0 means we have the flag
else
cc_bundle=no
fi
-echo "$as_me:$LINENO: result: $cc_bundle" >&5
-echo "${ECHO_T}$cc_bundle" >&6
+{ echo "$as_me:$LINENO: result: $cc_bundle" >&5
+echo "${ECHO_T}$cc_bundle" >&6; }
# Determine the host, build, and target systems
#--------------------------------------------------------------------
case $host_os in
- *cygwin* ) CYGWIN=yes;;
- *mingw32* ) MINGW32=yes;;
- * ) MINGW32=no
- CYGWIN=no;;
+ *cygwin* )
+ MINGW32=no
+ CYGWIN=yes
+ MSWIND=yes;;
+ *mingw32* )
+ MINGW32=yes
+ CYGWIN=yes
+ MSWIND=yes;;
+ * )
+ MINGW32=no
+ CYGWIN=no
+ MSWIND=no;;
esac
if test "$MINGW32" = yes; then
echo "hosted on mingw32 .."
- export INSTALL=install
+ export INSTALL="install -p"
export SHELL=sh
export CC=${CC:-gcc}
export AR=${AR:-ar}
cross_compiling="yes"
# Extract the first word of ""${targetArgument}-gcc"", so it can be a program name with args.
set dummy "${targetArgument}-gcc"; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+{ 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
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_CC=" "${targetArgument}-gcc""
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_prog_CC" && ac_cv_prog_CC="gcc"
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
- echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6
+ { 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
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
fi
+
# Extract the first word of ""${targetArgument}-ranlib"", so it can be a program name with args.
set dummy "${targetArgument}-ranlib"; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+{ 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
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_RANLIB=" "${targetArgument}-ranlib""
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_prog_RANLIB" && ac_cv_prog_RANLIB="ranlib"
fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
- echo "$as_me:$LINENO: result: $RANLIB" >&5
-echo "${ECHO_T}$RANLIB" >&6
+ { 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
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
fi
+
# Extract the first word of ""${targetArgument}-ar"", so it can be a program name with args.
set dummy "${targetArgument}-ar"; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+{ 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
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_AR=" "${targetArgument}-ar""
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_prog_AR" && ac_cv_prog_AR="ar"
fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
- echo "$as_me:$LINENO: result: $AR" >&5
-echo "${ECHO_T}$AR" >&6
+ { 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
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
fi
+
# Extract the first word of ""${targetArgument}-dlltool"", so it can be a program name with args.
set dummy "${targetArgument}-dlltool"; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_DLLTOOL=" "${targetArgument}-dlltool""
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_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="dlltool"
fi
fi
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
- echo "$as_me:$LINENO: result: $DLLTOOL" >&5
-echo "${ECHO_T}$DLLTOOL" >&6
+ { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
+echo "${ECHO_T}$DLLTOOL" >&6; }
else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
fi
+
else
# 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
+{ 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
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_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
AR=$ac_cv_prog_AR
if test -n "$AR"; then
- echo "$as_me:$LINENO: result: $AR" >&5
-echo "${ECHO_T}$AR" >&6
+ { 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
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
fi
+
# Extract the first word of "dlltool", so it can be a program name with args.
set dummy dlltool; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_DLLTOOL="dlltool"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
+IFS=$as_save_IFS
fi
fi
DLLTOOL=$ac_cv_prog_DLLTOOL
if test -n "$DLLTOOL"; then
- echo "$as_me:$LINENO: result: $DLLTOOL" >&5
-echo "${ECHO_T}$DLLTOOL" >&6
+ { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
+echo "${ECHO_T}$DLLTOOL" >&6; }
else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
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
+{ 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
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$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
+ { 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
+ { 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
+{ 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
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$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
- test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
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
+ { 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
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
fi
- RANLIB=$ac_ct_RANLIB
+ 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
# 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
+{ 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
# by default.
for ac_prog in ginstall scoinst install; do
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$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.
;;
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. We don't cache a
- # path for INSTALL within a source directory, because that will
+ # 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 path is relative.
+ # 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
+{ 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_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-echo "$as_me:$LINENO: checking whether ln -s works" >&5
-echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
+{ 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
+ { 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
+ { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
+echo "${ECHO_T}no, using $LN_S" >&6; }
fi
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
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_TAR+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_TAR="$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
TAR=$ac_cv_prog_TAR
if test -n "$TAR"; then
- echo "$as_me:$LINENO: result: $TAR" >&5
-echo "${ECHO_T}$TAR" >&6
+ { echo "$as_me:$LINENO: result: $TAR" >&5
+echo "${ECHO_T}$TAR" >&6; }
else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
fi
+
test -n "$TAR" && break
done
test -n "$TAR" || TAR="tar"
-# Check whether --with-tar or --without-tar was given.
+# Check whether --with-tar was given.
if test "${with_tar+set}" = set; then
- withval="$with_tar"
- TAR="$withval"
-fi;
+ withval=$with_tar; TAR="$withval"
+fi
+
# Extract the first word of "chown", so it can be a program name with args.
set dummy chown; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_prog_CHOWN+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_CHOWN="chown"
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_prog_CHOWN" && ac_cv_prog_CHOWN="none"
fi
fi
CHOWN=$ac_cv_prog_CHOWN
if test -n "$CHOWN"; then
- echo "$as_me:$LINENO: result: $CHOWN" >&5
-echo "${ECHO_T}$CHOWN" >&6
+ { echo "$as_me:$LINENO: result: $CHOWN" >&5
+echo "${ECHO_T}$CHOWN" >&6; }
else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
fi
+
if test "$MINGW32" = no; then
if test "$CHOWN" = "none"; then
{ { echo "$as_me:$LINENO: error: \"Could not find chown.\"" >&5
# GNUstep specific options follow
#-------------------------------------------------------------------
-#--------------------------------------------------------------------
-# The GNUstep root directory.
-# The user should have the GNUSTEP_SYSTEM_ROOT environment variable
-# defined, but if not then we have a global default.
-# Also test for the C: directory, which means we're on Windows
-#--------------------------------------------------------------------
-echo "$as_me:$LINENO: checking for GNUSTEP_SYSTEM_ROOT to use" >&5
-echo $ECHO_N "checking for GNUSTEP_SYSTEM_ROOT to use... $ECHO_C" >&6
+#---------------------------------------------------------------------
+# Location of the GNUstep.conf config file (--with-config-file)
+#---------------------------------------------------------------------
+{ echo "$as_me:$LINENO: checking for GNUstep configuration file to use" >&5
+echo $ECHO_N "checking for GNUstep configuration file to use... $ECHO_C" >&6; }
-if test "x$prefix" = "xNONE"; then
- prefix="$ac_default_prefix" ;
+# Check whether --with-config-file was given.
+if test "${with_config_file+set}" = set; then
+ withval=$with_config_file; GNUSTEP_CONFIG_FILE="$withval"
fi
-# Check whether --with-system-root or --without-system-root was given.
-if test "${with_system_root+set}" = set; then
- withval="$with_system_root"
- ac_cv_system_root="$withval"
+if test "$GNUSTEP_CONFIG_FILE" = "" -o "$GNUSTEP_CONFIG_FILE" = "no"; then
+ case "$target_os" in
+ freebsd* | openbsd* ) GNUSTEP_CONFIG_FILE=/usr/etc/GNUstep.conf ;;
+ netbsd* ) GNUSTEP_CONFIG_FILE=/usr/pkg/etc/GNUstep.conf ;;
+ mingw32* ) GNUSTEP_CONFIG_FILE=/c/GNUstep/GNUstep.conf-dev ;;
+ *) GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf ;;
+ esac
+fi
+if echo "$GNUSTEP_CONFIG_FILE" | grep -q '[ \\]'
+then
+ echo "found a backslash or space (illegal) in '$GNUSTEP_CONFIG_FILE'"
+ echo "Please try again using --with-config-file= to specify a valid path."
+ if test "$MSWIND" = "yes"
+ then
+ echo "Please note that on windows you must use unix-style paths within"
+ echo "the make package even though gnustep programs built in the mingw32"
+ echo "environment use native paths throughout."
+ fi
+ exit 1
+fi
+{ echo "$as_me:$LINENO: result: $GNUSTEP_CONFIG_FILE" >&5
+echo "${ECHO_T}$GNUSTEP_CONFIG_FILE" >&6; }
+
+
+#---------------------------------------------------------------------
+# Now read/import the existing configuration file, if any
+#---------------------------------------------------------------------
+
+# Reading/importing the existing configuration file is good as a
+# default because it means that you don't have to type in your
+# GNUSTEP_SYSTEM_ROOT, GNUSTEP_LOCAL_ROOT, etc. settings every time
+# you configure gnustep-make. (please note we only read the
+# system-wide one, not the user one. Reason being that the settings
+# we read will be used to generate the new system-wide one, while the
+# user one will be left untouched).
+
+# It can be annoying in certain cases though; this option lets you
+# turn it off
+{ echo "$as_me:$LINENO: checking if we should import an existing configuration file" >&5
+echo $ECHO_N "checking if we should import an existing configuration file... $ECHO_C" >&6; }
+# Check whether --enable-importing-config-file was given.
+if test "${enable_importing_config_file+set}" = set; then
+ enableval=$enable_importing_config_file; ac_cv_importing_config_file=$enableval
else
- ac_cv_system_root=yes
-fi;
+ ac_cv_importing_config_file="yes"
+fi
-GNUSTEP_ROOT="$prefix"
-root_prefix='${prefix}'
-if test $ac_cv_system_root = yes; then
- if test "x`basename $prefix`" = xSystem; then
- GNUSTEP_ROOT=`dirname $prefix`
- else
- if test "x$prefix" = "x/"; then
- prefix=/System
- else
- prefix="$prefix/System"
- fi
- fi
- root_prefix='${prefix}/..'
+
+# If importing the file is disabled, don't import it.
+if test "$ac_cv_importing_config_file" = "no"; then
+ { echo "$as_me:$LINENO: result: no: disabled from the command-line" >&5
+echo "${ECHO_T}no: disabled from the command-line" >&6; }
+else
+
+ # Check that the file exists
+ if test ! -f "$GNUSTEP_CONFIG_FILE"; then
+ { echo "$as_me:$LINENO: result: no: file \"$GNUSTEP_CONFIG_FILE\" does not exist" >&5
+echo "${ECHO_T}no: file \"$GNUSTEP_CONFIG_FILE\" does not exist" >&6; }
+ else
+ { echo "$as_me:$LINENO: result: yes: trying to import \"$GNUSTEP_CONFIG_FILE\"" >&5
+echo "${ECHO_T}yes: trying to import \"$GNUSTEP_CONFIG_FILE\"" >&6; }
+ { echo "$as_me:$LINENO: If this fails, please run configure again with the --disable-importing-config-file option" >&5
+echo "$as_me: If this fails, please run configure again with the --disable-importing-config-file option" >&6;}
+ . "$GNUSTEP_CONFIG_FILE"
+ fi
fi
+#--------------------------------------------------------------------
+# Important - from now on, any variable that is set in the
+# configuration file (eg, GNUSTEP_SYSTEM_ROOT) could already have a
+# value that we have imported from the previous file. ./configure
+# command line options should override those values, but otherwise we
+# should keep them!
+#
+# Those could also be env variables, which is really a backwards
+# compatibility hack that won't necessarily be kept in the future!
+#--------------------------------------------------------------------
+
+
+#--------------------------------------------------------------------
+# Process --prefix
+#--------------------------------------------------------------------
-echo "$as_me:$LINENO: result: $prefix" >&5
-echo "${ECHO_T}$prefix" >&6
+#
+# In practice,
+#
+# ./configure --prefix=/usr/GNUstep
+#
+# is equivalent to:
+#
+# ./configure --with-system-root=/usr/GNUstep/System
+# --with-local-root=/usr/GNUstep/Local
+#
+# plus it has the side-effect that a config.site will be loaded by
+# ./configure from $prefix/share/config.site, if it exists. Our
+# config.site is in $prefix/System/share/config.site though, so it
+# won't be found. It doesn't really matter though, as the config.site
+# is irrelevant for us in this context.
+#
-# Makefiles directory location is in a bit of flux now. To keep the
-# Makefiles dir in the previous location, reset this variable to
-# 'Makefiles' and regenerate configure. Note this doesn't change all
-# occurances.
-MAKEFILES_SUFFIX=Library/Makefiles
+# Please note that AC_PREFIX_DEFAULT will not appear in this position
+# in the generated configure file; it will appear at the very
+# beginning. So we can't check for GNUSTEP_SYSTEM_ROOT or anything
+# similar in the implementation of AC_PREFIX_DEFAULT because we will
+# not have read GNUstep.conf yet ...
+# PS: This is the default GNUSTEP_ROOT that is used when installing
+# GNUstep with no other indication. Test for the C: directory, which
+# means we're on Windows
-# HOST_INSTALL is the name of the install program in config.make so set it up
-# to point to the install-sh script in the GNUstep tree if no system install is
-# found.
-if test "$INSTALL" = "$ac_install_sh"; then
- HOST_INSTALL="$prefix/$MAKEFILES_SUFFIX/$INSTALL"
+#
+# GNUSTEP_ROOT is only used to set default values for
+# GNUSTEP_SYSTEM_ROOT and GNUSTEP_LOCAL_ROOT if they are not set in
+# config file or as a command-line argument.
+#
+if test "x$prefix" = "xNONE"; then
+ GNUSTEP_ROOT="$ac_default_prefix" ;
else
- HOST_INSTALL="$INSTALL"
+ GNUSTEP_ROOT="$prefix";
+
+ # Set the values for all those variables ovverriding anything read
+ # from the configuration file or inherited from the environment.
+ # The --prefix=xxx option should overwrite those. Please notice
+ # that the --with-system-root=xxx (and similar) options are
+ # processed later as overwrite --prefix=xxx in their specific area.
+ GNUSTEP_SYSTEM_ROOT="$GNUSTEP_ROOT/System";
+ GNUSTEP_LOCAL_ROOT="$GNUSTEP_ROOT/Local";
+ GNUSTEP_NETWORK_ROOT="$GNUSTEP_LOCAL_ROOT";
+fi
+
+#--------------------------------------------------------------------
+# Process --with-system-root
+#--------------------------------------------------------------------
+{ echo "$as_me:$LINENO: checking for GNUSTEP_SYSTEM_ROOT to use" >&5
+echo $ECHO_N "checking for GNUSTEP_SYSTEM_ROOT to use... $ECHO_C" >&6; }
+
+# Check whether --with-system-root was given.
+if test "${with_system_root+set}" = set; then
+ withval=$with_system_root; GNUSTEP_SYSTEM_ROOT="$withval"
+fi
+
+if test "$GNUSTEP_SYSTEM_ROOT" = "" -o "$GNUSTEP_SYSTEM_ROOT" = "no"; then
+ GNUSTEP_SYSTEM_ROOT="$GNUSTEP_ROOT/System"
+fi
+if echo "$GNUSTEP_SYSTEM_ROOT" | grep -q '[ \\]'
+then
+ echo "found a backslash or space (illegal) in '$GNUSTEP_SYSTEM_ROOT'"
+ echo "Please try again using --with-system-root= to specify a valid path."
+ if test "$MSWIND" = "yes"
+ then
+ echo "Please note that on windows you must use unix-style paths within"
+ echo "the make package even though gnustep programs built in the mingw32"
+ echo "environment use native paths throughout."
+ fi
+ exit 1
fi
+{ echo "$as_me:$LINENO: result: $GNUSTEP_SYSTEM_ROOT" >&5
+echo "${ECHO_T}$GNUSTEP_SYSTEM_ROOT" >&6; }
+
#--------------------------------------------------------------------
-# Process --with-defaults-root, --with-user-root,
-# --with-local-root and --with-network-root
+# Process --with-local-root
#--------------------------------------------------------------------
-echo "$as_me:$LINENO: checking for GNUSTEP_LOCAL_ROOT to use" >&5
-echo $ECHO_N "checking for GNUSTEP_LOCAL_ROOT to use... $ECHO_C" >&6
+{ echo "$as_me:$LINENO: checking for GNUSTEP_LOCAL_ROOT to use" >&5
+echo $ECHO_N "checking for GNUSTEP_LOCAL_ROOT to use... $ECHO_C" >&6; }
-# Check whether --with-local-root or --without-local-root was given.
+# Check whether --with-local-root was given.
if test "${with_local_root+set}" = set; then
- withval="$with_local_root"
- GNUSTEP_LOCAL_ROOT="$withval"
-else
+ withval=$with_local_root; GNUSTEP_LOCAL_ROOT="$withval"
+fi
+
+# If GNUSTEP_LOCAL_ROOT is explicitly set to 'no', we effectively disable it
+# by setting it to be the same as GNUSTEP_SYSTEM_ROOT
+if test "$GNUSTEP_LOCAL_ROOT" = "no"; then
+ GNUSTEP_LOCAL_ROOT="$GNUSTEP_SYSTEM_ROOT"
+fi
+if test "$GNUSTEP_LOCAL_ROOT" = ""; then
GNUSTEP_LOCAL_ROOT="$GNUSTEP_ROOT/Local"
+fi
+if echo "$GNUSTEP_LOCAL_ROOT" | grep -q '[ \\]'
+then
+ echo "found a backslash or space (illegal) in '$GNUSTEP_LOCAL_ROOT'"
+ echo "Please try again using --with-local-root= to specify a valid path."
+ if test "$MSWIND" = "yes"
+ then
+ echo "Please note that on windows you must use unix-style paths within"
+ echo "the make package even though gnustep programs built in the mingw32"
+ echo "environment use native paths throughout."
+ fi
+ exit 1
+fi
+{ echo "$as_me:$LINENO: result: $GNUSTEP_LOCAL_ROOT" >&5
+echo "${ECHO_T}$GNUSTEP_LOCAL_ROOT" >&6; }
-fi;
-echo "$as_me:$LINENO: result: $GNUSTEP_LOCAL_ROOT" >&5
-echo "${ECHO_T}$GNUSTEP_LOCAL_ROOT" >&6
-echo "$as_me:$LINENO: checking for GNUSTEP_NETWORK_ROOT to use" >&5
-echo $ECHO_N "checking for GNUSTEP_NETWORK_ROOT to use... $ECHO_C" >&6
+#--------------------------------------------------------------------
+# Process --with-network-root
+#--------------------------------------------------------------------
+{ echo "$as_me:$LINENO: checking for GNUSTEP_NETWORK_ROOT to use" >&5
+echo $ECHO_N "checking for GNUSTEP_NETWORK_ROOT to use... $ECHO_C" >&6; }
-# Check whether --with-network-root or --without-network-root was given.
+# Check whether --with-network-root was given.
if test "${with_network_root+set}" = set; then
- withval="$with_network_root"
- GNUSTEP_NETWORK_ROOT="$withval"
-else
- # By default we disable network root, by setting GNUSTEP_NETWORK_ROOT
+ withval=$with_network_root; GNUSTEP_NETWORK_ROOT="$withval"
+fi
+
+# By default we disable network root, by setting GNUSTEP_NETWORK_ROOT
# to be the same as GNUSTEP_LOCAL_ROOT. GNUSTEP_NETWORK_ROOT is very
# rarely used, and most users prefer simpler systems with shorter
# paths and shorter command lines. To turn on GNUSTEP_NETWORK_ROOT
# again, you can use the --with-network-root=xxx option; pass
# something like --with-network-root=/usr/GNUstep/Network on the
# configure command line.
-GNUSTEP_NETWORK_ROOT="$GNUSTEP_LOCAL_ROOT"
+if test "$GNUSTEP_NETWORK_ROOT" = "" -o "$GNUSTEP_NETWORK_ROOT" = "no"; then
+ GNUSTEP_NETWORK_ROOT="$GNUSTEP_LOCAL_ROOT"
+fi
+if echo "$GNUSTEP_NETWORK_ROOT" | grep -q '[ \\]'
+then
+ echo "found a backslash or space (illegal) in '$GNUSTEP_NETWORK_ROOT'"
+ echo "Please try again using --with-network-root= to specify a valid path."
+ if test "$MSWIND" = "yes"
+ then
+ echo "Please note that on windows you must use unix-style paths within"
+ echo "the make package even though gnustep programs built in the mingw32"
+ echo "environment use native paths throughout."
+ fi
+ exit 1
+fi
+{ echo "$as_me:$LINENO: result: $GNUSTEP_NETWORK_ROOT" >&5
+echo "${ECHO_T}$GNUSTEP_NETWORK_ROOT" >&6; }
+
+
+#--------------------------------------------------------------------
+# Process --with-user-config-file
+#--------------------------------------------------------------------
+{ echo "$as_me:$LINENO: checking for user config file to use" >&5
+echo $ECHO_N "checking for user config file to use... $ECHO_C" >&6; }
+
+# Check whether --with-user-config-file was given.
+if test "${with_user_config_file+set}" = set; then
+ withval=$with_user_config_file; GNUSTEP_USER_CONFIG_FILE="$withval"
+fi
+
+if test "$GNUSTEP_USER_CONFIG_FILE" = "" -o "$GNUSTEP_USER_CONFIG_FILE" = "no"; then
+ GNUSTEP_USER_CONFIG_FILE=".GNUstep.conf"
+fi
+if echo "$GNUSTEP_USER_CONFIG_FILE" | grep -q '[ \\]'
+then
+ echo "found a backslash or space (illegal) in '$GNUSTEP_USER_CONFIG_FILE'"
+ echo "Please try again using --with-user-config-file= to specify a value."
+ if test "$MSWIND" = "yes"
+ then
+ echo "Please note that on windows you must use unix-style paths within"
+ echo "the make package even though gnustep programs built in the mingw32"
+ echo "environment use native paths throughout."
+ fi
+ exit 1
+fi
+{ echo "$as_me:$LINENO: result: $GNUSTEP_NETWORK_ROOT" >&5
+echo "${ECHO_T}$GNUSTEP_NETWORK_ROOT" >&6; }
+{ echo "$as_me:$LINENO: result: $GNUSTEP_USER_CONFIG_FILE" >&5
+echo "${ECHO_T}$GNUSTEP_USER_CONFIG_FILE" >&6; }
-fi;
-echo "$as_me:$LINENO: result: $GNUSTEP_NETWORK_ROOT" >&5
-echo "${ECHO_T}$GNUSTEP_NETWORK_ROOT" >&6
+#--------------------------------------------------------------------
+# Process --with-user-dir
+#--------------------------------------------------------------------
+{ echo "$as_me:$LINENO: checking for user dir to use" >&5
+echo $ECHO_N "checking for user dir to use... $ECHO_C" >&6; }
+
+# Check whether --with-user-dir was given.
+if test "${with_user_dir+set}" = set; then
+ withval=$with_user_dir; GNUSTEP_USER_DIR="$withval"
+fi
+
+if test "$GNUSTEP_USER_DIR" = "" -o "$GNUSTEP_USER_DIR" = "no"; then
+ GNUSTEP_USER_DIR="GNUstep"
+fi
+if echo "$GNUSTEP_USER_DIR" | grep -q '[ \\]'
+then
+ echo "found a backslash or space (illegal) in '$GNUSTEP_USER_DIR'"
+ echo "Please try again using --with-user-dir= to specify a value."
+ if test "$MSWIND" = "yes"
+ then
+ echo "Please note that on windows you must use unix-style paths within"
+ echo "the make package even though gnustep programs built in the mingw32"
+ echo "environment use native paths throughout."
+ fi
+ exit 1
+fi
+{ echo "$as_me:$LINENO: result: $GNUSTEP_USER_DIR" >&5
+echo "${ECHO_T}$GNUSTEP_USER_DIR" >&6; }
+
+
+#--------------------------------------------------------------------
+# Process --with-user-defaults-dir
+#--------------------------------------------------------------------
+{ echo "$as_me:$LINENO: checking for user defaults dir to use" >&5
+echo $ECHO_N "checking for user defaults dir to use... $ECHO_C" >&6; }
+
+# Check whether --with-user-defaults-dir was given.
+if test "${with_user_defaults_dir+set}" = set; then
+ withval=$with_user_defaults_dir; GNUSTEP_USER_DEFAULTS_DIR="$withval"
+fi
+
+if test "$GNUSTEP_USER_DEFAULTS_DIR" = "" -o "$GNUSTEP_USER_DEFAULTS_DIR" = "no"; then
+ GNUSTEP_USER_DEFAULTS_DIR="GNUstep/Defaults"
+fi
+if echo "$GNUSTEP_USER_DEFAULTS_DIR" | grep -q '[ \\]'
+then
+ echo "found a backslash or space (illegal) in '$GNUSTEP_USER_DEFAULTS_DIR'"
+ echo "Please try again using --with-user-defaults-dir= to specify a value."
+ if test "$MSWIND" = "yes"
+ then
+ echo "Please note that on windows you must use unix-style paths within"
+ echo "the make package even though gnustep programs built in the mingw32"
+ echo "environment use native paths throughout."
+ fi
+ exit 1
+fi
+{ echo "$as_me:$LINENO: result: $GNUSTEP_USER_DEFAULTS_DIR" >&5
+echo "${ECHO_T}$GNUSTEP_USER_DEFAULTS_DIR" >&6; }
+#--------------------------------------------------------------------
+# Setting up GNUSTEP_MAKEFILES
+#--------------------------------------------------------------------
+#
+# Please note that we do an explicit check in preparation for the (not
+# so far) future when this directory (like any other GNUstep
+# directory, eg, Applications or Tools or Libraries) will be
+# relocatable to anywhere you like.
+#
+{ echo "$as_me:$LINENO: checking for GNUSTEP_MAKEFILES to use" >&5
+echo $ECHO_N "checking for GNUSTEP_MAKEFILES to use... $ECHO_C" >&6; }
+GNUSTEP_MAKEFILES="$GNUSTEP_SYSTEM_ROOT/Library/Makefiles"
-echo "$as_me:$LINENO: checking for GNUSTEP_USER_ROOT to use" >&5
-echo $ECHO_N "checking for GNUSTEP_USER_ROOT to use... $ECHO_C" >&6
+{ echo "$as_me:$LINENO: result: $GNUSTEP_MAKEFILES" >&5
+echo "${ECHO_T}$GNUSTEP_MAKEFILES" >&6; }
-# Check whether --with-user-root or --without-user-root was given.
-if test "${with_user_root+set}" = set; then
- withval="$with_user_root"
- GNUSTEP_USER_ROOT="$withval"
-else
- # The default is to have user roots in ~/GNUstep
-GNUSTEP_USER_ROOT="~/GNUstep"
+#--------------------------------------------------------------------
+# Setting up the install-sh script
+#--------------------------------------------------------------------
-fi;
-echo "$as_me:$LINENO: result: $GNUSTEP_USER_ROOT" >&5
-echo "${ECHO_T}$GNUSTEP_USER_ROOT" >&6
+# HOST_INSTALL is the name of the install program in config.make so set it up
+# to point to the install-sh script in the GNUstep tree if no system install is
+# found.
+if test "$INSTALL" = "$ac_install_sh"; then
+ HOST_INSTALL="$GNUSTEP_MAKEFILES/$INSTALL"
+else
+ HOST_INSTALL="$INSTALL"
+fi
#--------------------------------------------------------------------
# Is the system flattened?
#--------------------------------------------------------------------
-echo "$as_me:$LINENO: checking for flattened directory structure" >&5
-echo $ECHO_N "checking for flattened directory structure... $ECHO_C" >&6
-# Check whether --enable-flattened or --disable-flattened was given.
+{ echo "$as_me:$LINENO: checking for flattened directory structure" >&5
+echo $ECHO_N "checking for flattened directory structure... $ECHO_C" >&6; }
+# Check whether --enable-flattened was given.
if test "${enable_flattened+set}" = set; then
- enableval="$enable_flattened"
- ac_cv_flattened=$enableval
+ enableval=$enable_flattened; ac_cv_flattened=$enableval
else
ac_cv_flattened="undefined"
-fi;
+fi
+
if test "$ac_cv_flattened" = "no"; then
GNUSTEP_FLATTENED=;
if test "$GNUSTEP_FLATTENED" = "yes"; then
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6;
+ { 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;
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; };
fi
# Unless you know what you are doing, stick with the default, which is
# also much faster when sourcing GNUstep.sh.
#
-# Check whether --enable-multi-platform or --disable-multi-platform was given.
+# Check whether --enable-multi-platform was given.
if test "${enable_multi_platform+set}" = set; then
- enableval="$enable_multi_platform"
- ac_cv_multi_platform=$enableval
+ enableval=$enable_multi_platform; ac_cv_multi_platform=$enableval
else
ac_cv_multi_platform="undefined"
-fi;
+fi
+
if test "$ac_cv_multi_platform" = "yes"; then
GNUSTEP_MULTI_PLATFORM=yes;
#--------------------------------------------------------------------
# Build backend bundles (on by default)
#--------------------------------------------------------------------
-# Check whether --enable-backend-bundle or --disable-backend-bundle was given.
+# Check whether --enable-backend-bundle was given.
if test "${enable_backend_bundle+set}" = set; then
- enableval="$enable_backend_bundle"
- ac_cv_backend=$enableval
+ enableval=$enable_backend_bundle; ac_cv_backend=$enableval
else
ac_cv_backend="yes"
-fi;
+fi
+
if test "$ac_cv_backend" = "yes"; then
BACKEND_BUNDLE=yes;
#--------------------------------------------------------------------
# Miscellaneous flags and setup
#--------------------------------------------------------------------
-# Strip '-g' off of CFLAGS, since debug=yes adds that anyway
-CFLAGS=`echo $CFLAGS | sed -e 's/-g //'`
# Set location of GNUstep dirs for later use
if test "$GNUSTEP_FLATTENED" = yes; then
- GNUSTEP_LDIR="$prefix/Library/Libraries"
- GNUSTEP_HDIR="$prefix/Library/Headers"
+ GNUSTEP_LDIR="$GNUSTEP_SYSTEM_ROOT/Library/Libraries"
+ GNUSTEP_HDIR="$GNUSTEP_SYSTEM_ROOT/Library/Headers"
else
clean_target_os=`$srcdir/clean_os.sh $target_os`
clean_target_cpu=`$srcdir/clean_cpu.sh $target_cpu`
obj_dir="$clean_target_cpu/$clean_target_os"
- GNUSTEP_LDIR="$prefix/Library/Libraries/$obj_dir"
- GNUSTEP_HDIR="$prefix/Library/Headers/${ac_cv_library_combo}"
+ GNUSTEP_LDIR="$GNUSTEP_SYSTEM_ROOT/Library/Libraries/$obj_dir"
+ GNUSTEP_HDIR="$GNUSTEP_SYSTEM_ROOT/Library/Headers/${ac_cv_library_combo}"
fi
# Check to see if the libobjc library is in our GNUSTEP_SYSTEM_ROOT.
# If so, there are probably other libraries that we want there also, so
# leave the proper includes in CPPFLAGS and LDFLAGS
-echo "$as_me:$LINENO: checking for custom shared objc library" >&5
-echo $ECHO_N "checking for custom shared objc library... $ECHO_C" >&6
+{ echo "$as_me:$LINENO: checking for custom shared objc library" >&5
+echo $ECHO_N "checking for custom shared objc library... $ECHO_C" >&6; }
if test "${gs_cv_objc_libdir+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
gs_cv_objc_libdir=NONE
if test -f "$GNUSTEP_HDIR/objc/objc.h"; then
- if test -f "$GNUSTEP_LDIR/libobjc.a" -o -f "$GNUSTEP_LDIR/libobjc.so" -o -f "$GNUSTEP_LDIR/libobjc.dll.a"; then
+ if test -f "$GNUSTEP_LDIR/libobjc.a" -o -f "$GNUSTEP_LDIR/libobjc.so" -o -f "$GNUSTEP_LDIR/libobjc.dll.a" -o -f "$GNUSTEP_LDIR/libobjc-gnu.dylib"; then
gs_cv_objc_libdir="$GNUSTEP_LDIR"
else
gs_cv_objc_libdir=NONE
fi
-echo "$as_me:$LINENO: result: $gs_cv_objc_libdir" >&5
-echo "${ECHO_T}$gs_cv_objc_libdir" >&6
+{ echo "$as_me:$LINENO: result: $gs_cv_objc_libdir" >&5
+echo "${ECHO_T}$gs_cv_objc_libdir" >&6; }
# The following are needed to compile the test programs
if test "$gs_cv_objc_libdir" = "$GNUSTEP_LDIR"; then
if test "$GNUSTEP_FLATTENED" = yes; then
- OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$prefix/Library/Headers"
+ OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$GNUSTEP_SYSTEM_ROOT/Library/Headers"
else
- OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$prefix/Library/Headers/${ac_cv_library_combo}"
+ OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$GNUSTEP_SYSTEM_ROOT/Library/Headers/${ac_cv_library_combo}"
fi
OBJC_LDFLAGS="$LDFLAGS $LIB_DIR -L$gs_cv_objc_libdir"
fi
ac_header_dirent=no
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
-echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
-echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
+{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
+echo $ECHO_N "checking for $ac_hdr that defines DIR... $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
}
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
+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); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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); }; } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-eval "$as_ac_Header=no"
+ eval "$as_ac_Header=no"
fi
+
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+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_hdr" | $as_tr_cpp` 1
done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
- echo "$as_me:$LINENO: checking for library containing opendir" >&5
-echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
+ { echo "$as_me:$LINENO: checking for library containing opendir" >&5
+echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
if test "${ac_cv_search_opendir+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_func_search_save_LIBS=$LIBS
-ac_cv_search_opendir=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-/* Override any gcc2 internal prototype to avoid an error. */
+/* 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
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
char opendir ();
int
main ()
{
-opendir ();
+return opendir ();
;
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>conftest.er1
+for ac_lib in '' dir; 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); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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); }; } &&
{ ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_search_opendir="none required"
+ ac_cv_search_opendir=$ac_res
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
+
fi
+
rm -f conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-if test "$ac_cv_search_opendir" = no; then
- for ac_lib in dir; do
- LIBS="-l$ac_lib $ac_func_search_save_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 gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char opendir ();
-int
-main ()
-{
-opendir ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_search_opendir="-l$ac_lib"
-break
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- done
-fi
-LIBS=$ac_func_search_save_LIBS
-fi
-echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
-echo "${ECHO_T}$ac_cv_search_opendir" >&6
-if test "$ac_cv_search_opendir" != no; then
- test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
+ conftest$ac_exeext
+ if test "${ac_cv_search_opendir+set}" = set; then
+ break
+fi
+done
+if test "${ac_cv_search_opendir+set}" = set; then
+ :
+else
+ ac_cv_search_opendir=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
+echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
+ac_res=$ac_cv_search_opendir
+if test "$ac_res" != no; then
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
fi
else
- echo "$as_me:$LINENO: checking for library containing opendir" >&5
-echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
+ { echo "$as_me:$LINENO: checking for library containing opendir" >&5
+echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
if test "${ac_cv_search_opendir+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_func_search_save_LIBS=$LIBS
-ac_cv_search_opendir=no
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-/* Override any gcc2 internal prototype to avoid an error. */
+/* 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
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
char opendir ();
int
main ()
{
-opendir ();
+return opendir ();
;
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>conftest.er1
+for ac_lib in '' x; 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); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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); }; } &&
{ ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_search_opendir="none required"
+ ac_cv_search_opendir=$ac_res
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
+
fi
-rm -f conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-if test "$ac_cv_search_opendir" = no; then
- for ac_lib in x; do
- LIBS="-l$ac_lib $ac_func_search_save_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 gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char opendir ();
-int
-main ()
-{
-opendir ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_search_opendir="-l$ac_lib"
-break
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if test "${ac_cv_search_opendir+set}" = set; then
+ break
+fi
+done
+if test "${ac_cv_search_opendir+set}" = set; then
+ :
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ ac_cv_search_opendir=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
+echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
+ac_res=$ac_cv_search_opendir
+if test "$ac_res" != no; then
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
fi
-rm -f conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
+
+fi
+
+
+{ 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_executable_p "$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
-LIBS=$ac_func_search_save_LIBS
+
+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
-echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
-echo "${ECHO_T}$ac_cv_search_opendir" >&6
-if test "$ac_cv_search_opendir" != no; then
- test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
+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_prog_egrep+set}" = set; then
+{ 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_prog_egrep='grep -E'
- else ac_cv_prog_egrep='egrep'
+ 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_executable_p "$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_prog_egrep" >&5
-echo "${ECHO_T}$ac_cv_prog_egrep" >&6
- EGREP=$ac_cv_prog_egrep
+{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
+echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
+ EGREP="$ac_cv_path_EGREP"
-echo "$as_me:$LINENO: checking for ANSI C header files" >&5
-echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
+{ 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
}
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
+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); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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); }; } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_header_stdc=no
+ ac_cv_header_stdc=no
fi
+
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
if test $ac_cv_header_stdc = yes; then
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <ctype.h>
+#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
|| toupper (i) != TOUPPER (i))
- exit(2);
- exit (0);
+ return 2;
+ return 0;
}
_ACEOF
rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+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'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
( exit $ac_status )
ac_cv_header_stdc=no
fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+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
+{ 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
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 eval "test \"\${$as_ac_Header+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
else
cat >conftest.$ac_ext <<_ACEOF
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
+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); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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); }; } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-eval "$as_ac_Header=no"
+ eval "$as_ac_Header=no"
fi
+
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+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
-for ac_header in sys/param.h sys/file.h dir.h string.h stdlib.h sys/types.h fcntl.h limits.h utime.h sys/stat.h pwd.h unistd.h
+
+for ac_header in sys/param.h sys/file.h dir.h string.h stdlib.h sys/types.h fcntl.h limits.h utime.h sys/stat.h pwd.h unistd.h ctype.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
+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
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+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
+{ 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
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
+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); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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); }; } &&
{ ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_header_compiler=no
+ ac_header_compiler=no
fi
+
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6
+{ 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
+{ 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
/* end confdefs.h. */
#include <$ac_header>
_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+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
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
+{ 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
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 the AC_PACKAGE_NAME lists. ##
-## ------------------------------------------ ##
-_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 eval "test \"\${$as_ac_Header+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
else
eval "$as_ac_Header=\$ac_header_preproc"
fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+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
for ac_func in getpwnam getpwuid geteuid getlogin strchr
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 eval "test \"\${$as_ac_var+set}\" = set"; then
+{ 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
#undef $ac_func
-/* Override any gcc2 internal prototype to avoid an error. */
+/* 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
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
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)
+#if defined __stub_$ac_func || defined __stub___$ac_func
choke me
-#else
-char (*f) () = $ac_func;
-#endif
-#ifdef __cplusplus
-}
#endif
int
main ()
{
-return f != $ac_func;
+return $ac_func ();
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>conftest.er1
+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); } &&
- { ac_try='test -z "$ac_c_werror_flag"
- || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
+ { (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); }; } &&
{ ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-eval "$as_ac_var=no"
+ eval "$as_ac_var=no"
fi
+
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+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
#--------------------------------------------------------------------
OBJC_THREAD=
-# Check whether --with-thread-lib or --without-thread-lib was given.
+# Check whether --with-thread-lib was given.
if test "${with_thread_lib+set}" = set; then
- withval="$with_thread_lib"
- OBJC_THREAD=$withval
+ withval=$with_thread_lib; OBJC_THREAD=$withval
else
OBJC_THREAD=
-fi;
+fi
+
+if test "$OBJC_THREAD" = no; then
+OBJC_THREAD=
+fi
-echo "$as_me:$LINENO: checking whether objc has thread support" >&5
-echo $ECHO_N "checking whether objc has thread support... $ECHO_C" >&6
+{ echo "$as_me:$LINENO: checking whether objc has thread support" >&5
+echo $ECHO_N "checking whether objc has thread support... $ECHO_C" >&6; }
saved_CFLAGS="$CFLAGS"
saved_LIBS="$LIBS"
CFLAGS="$CFLAGS -x objective-c -I$srcdir $OBJC_CPPFLAGS $OBJC_LDFLAGS"
#include "config_thread.m"
_ACEOF
rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+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'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
( exit $ac_status )
objc_threaded=""
fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
+
+
elif test "$host_os" = linux-gnu; then
LIBS="-lobjc -lpthread"
if test "$cross_compiling" = yes; then
#include "config_thread.m"
_ACEOF
rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+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'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
( exit $ac_status )
objc_threaded=""
fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
+
+
elif test "`echo $host_os|sed 's/[0-9].*//'|sed s/elf//`" = freebsd; then
LIBS="-pthread -lobjc"
if test "$cross_compiling" = yes; then
#include "config_thread.m"
_ACEOF
rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+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'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
( exit $ac_status )
objc_threaded=""
fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
+
+
if test x"$objc_threaded" = x""; then
LIBS="-lpthread -lobjc"
if test "$cross_compiling" = yes; then
#include "config_thread.m"
_ACEOF
rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+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'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
( exit $ac_status )
objc_threaded=""
fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
+
+
fi
if test x"$objc_threaded" = x""; then
LIBS="-lobjc -lpcthread"
#include "config_thread.m"
_ACEOF
rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+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'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
( exit $ac_status )
objc_threaded=""
fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
+
+
fi
elif test "$MINGW32" = yes; then
# Mingw doesn't need anything extra for threads
#include "config_thread.m"
_ACEOF
rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+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'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
( exit $ac_status )
objc_threaded=""
fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
+
+
else
LIBS="-lobjc $LIBS"
if test "$cross_compiling" = yes; then
#include "config_thread.m"
_ACEOF
rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+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'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
( exit $ac_status )
objc_threaded=""
fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
+
+
if test x"$objc_threaded" = x""; then
LIBS="-lobjc $saved_LIBS -lpthread "
if test "$cross_compiling" = yes; then
#include "config_thread.m"
_ACEOF
rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+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'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
( exit $ac_status )
objc_threaded=""
fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
+
+
fi
if test x"$objc_threaded" = x""; then
# Solaris, OpenBSD/sparc
#include "config_thread.m"
_ACEOF
rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+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'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
( exit $ac_status )
objc_threaded=""
fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
+
+
fi
if test x"$objc_threaded" = x""; then
LIBS="-lobjc $saved_LIBS -lthread "
#include "config_thread.m"
_ACEOF
rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+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'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
( exit $ac_status )
objc_threaded=""
fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
+
+
fi
fi
if test x"$objc_threaded" = x""; then
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
else
if test x"$objc_threaded" = x"works"; then
objc_threaded=""
fi
- echo "$as_me:$LINENO: result: yes: $objc_threaded" >&5
-echo "${ECHO_T}yes: $objc_threaded" >&6
+ { echo "$as_me:$LINENO: result: yes: $objc_threaded" >&5
+echo "${ECHO_T}yes: $objc_threaded" >&6; }
fi
ac_cv_objc_threaded="$objc_threaded"
# Check if GCC supports -fobjc-exceptions, and if so, turn it on!
#--------------------------------------------------------------------
-# Check whether --enable-native-objc-exceptions or --disable-native-objc-exceptions was given.
+# Check whether --enable-native-objc-exceptions was given.
if test "${enable_native_objc_exceptions+set}" = set; then
- enableval="$enable_native_objc_exceptions"
- USE_OBJC_EXCEPTIONS=$enableval
+ enableval=$enable_native_objc_exceptions; USE_OBJC_EXCEPTIONS=$enableval
else
USE_OBJC_EXCEPTIONS=no
-fi;
+fi
+
-echo "$as_me:$LINENO: checking whether we should use native ObjC exceptions" >&5
-echo $ECHO_N "checking whether we should use native ObjC exceptions... $ECHO_C" >&6
+{ echo "$as_me:$LINENO: checking whether we should use native ObjC exceptions" >&5
+echo $ECHO_N "checking whether we should use native ObjC exceptions... $ECHO_C" >&6; }
if test x"$USE_OBJC_EXCEPTIONS" = x"yes"; then
# What we want to do: set USE_OBJC_EXCEPTIONS to yes if we can compile
# something with @try/@catch/@finally in it.
if test ! ${GCC} = "yes" ; then
USE_OBJC_EXCEPTIONS=no
- echo "$as_me:$LINENO: result: no: compiler isn't gcc" >&5
-echo "${ECHO_T}no: compiler isn't gcc" >&6
+ { echo "$as_me:$LINENO: result: no: compiler isn't gcc" >&5
+echo "${ECHO_T}no: compiler isn't gcc" >&6; }
else
CFLAGS="$CFLAGS -fobjc-exceptions"
if test "$cross_compiling" = yes; then
_ACEOF
rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+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'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&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_try") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
( exit $ac_status )
USE_OBJC_EXCEPTIONS=no
fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
- echo "$as_me:$LINENO: result: $USE_OBJC_EXCEPTIONS" >&5
-echo "${ECHO_T}$USE_OBJC_EXCEPTIONS" >&6
+
+
+ { echo "$as_me:$LINENO: result: $USE_OBJC_EXCEPTIONS" >&5
+echo "${ECHO_T}$USE_OBJC_EXCEPTIONS" >&6; }
fi
if test x$USE_OBJC_EXCEPTIONS = xno; then
{ echo "$as_me:$LINENO: Native objective-c exceptions were requested, but the compiler" >&5
{ (exit 1); exit 1; }; }
fi
else
- echo "$as_me:$LINENO: result: not requested by user" >&5
-echo "${ECHO_T}not requested by user" >&6
+ { echo "$as_me:$LINENO: result: not requested by user" >&5
+echo "${ECHO_T}not requested by user" >&6; }
fi
# Check if compiler supports -MMD -MP to generate %.d files ...
#--------------------------------------------------------------------
-echo "$as_me:$LINENO: checking if the compiler supports autodependencies" >&5
-echo $ECHO_N "checking if the compiler supports autodependencies... $ECHO_C" >&6
+{ echo "$as_me:$LINENO: checking if the compiler supports autodependencies" >&5
+echo $ECHO_N "checking if the compiler supports autodependencies... $ECHO_C" >&6; }
# What we want to do: set AUTO_DEPENDENCIES to yes if gcc => 3.x
if test ! ${GCC} = "yes" ; then
AUTO_DEPENDENCIES=""
- PRECOMPILED_HEADERS=""
- echo "$as_me:$LINENO: result: no: it's not gcc" >&5
-echo "${ECHO_T}no: it's not gcc" >&6
+ { echo "$as_me:$LINENO: result: no: it's not gcc" >&5
+echo "${ECHO_T}no: it's not gcc" >&6; }
else
# Running gcc -dumpversion we get something like 2.95.4 or
# egcs-2.91.66 or 3.0.2 or 3.1 20011211
if test "${gs_cv_gcc_major_version}" -ge "3" ; then
AUTO_DEPENDENCIES=yes
- echo "$as_me:$LINENO: result: yes: gcc major version is ${gs_cv_gcc_major_version}" >&5
-echo "${ECHO_T}yes: gcc major version is ${gs_cv_gcc_major_version}" >&6
+ { echo "$as_me:$LINENO: result: yes: gcc major version is ${gs_cv_gcc_major_version}" >&5
+echo "${ECHO_T}yes: gcc major version is ${gs_cv_gcc_major_version}" >&6; }
else
AUTO_DEPENDENCIES=""
- PRECOMPILED_HEADERS=""
- echo "$as_me:$LINENO: result: no: gcc major version is ${gs_cv_gcc_major_version}" >&5
-echo "${ECHO_T}no: gcc major version is ${gs_cv_gcc_major_version}" >&6
+ { echo "$as_me:$LINENO: result: no: gcc major version is ${gs_cv_gcc_major_version}" >&5
+echo "${ECHO_T}no: gcc major version is ${gs_cv_gcc_major_version}" >&6; }
fi
fi
-
#--------------------------------------------------------------------
# Shall we strip makefiles upon installation ?
#--------------------------------------------------------------------
# resulting stripped makefiles execute around 5% faster on average.
# Too little for it to be worth for the common user who's more
# interested in the comments :-) so it's disabled by default.
-echo "$as_me:$LINENO: checking if we should strip makefiles after installation" >&5
-echo $ECHO_N "checking if we should strip makefiles after installation... $ECHO_C" >&6
-# Check whether --enable-strip-makefiles or --disable-strip-makefiles was given.
+{ echo "$as_me:$LINENO: checking if we should strip makefiles after installation" >&5
+echo $ECHO_N "checking if we should strip makefiles after installation... $ECHO_C" >&6; }
+# Check whether --enable-strip-makefiles was given.
if test "${enable_strip_makefiles+set}" = set; then
- enableval="$enable_strip_makefiles"
- ac_cv_strip_makefiles=$enableval
+ enableval=$enable_strip_makefiles; ac_cv_strip_makefiles=$enableval
else
ac_cv_strip_makefiles="undefined"
-fi;
+fi
+
if test "$ac_cv_strip_makefiles" = "yes"; then
GNUSTEP_STRIP_MAKEFILES=strip;
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6;
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; };
else
GNUSTEP_STRIP_MAKEFILES=;
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6;
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; };
fi
-
#--------------------------------------------------------------------
# Disable updating the obsolete directory structure
#--------------------------------------------------------------------
gs_move_obsolete=yes
-# Check whether --enable-move-obsolete or --disable-move-obsolete was given.
+# Check whether --enable-move-obsolete was given.
if test "${enable_move_obsolete+set}" = set; then
- enableval="$enable_move_obsolete"
- gs_move_obsolete=$enableval
+ enableval=$enable_move_obsolete; gs_move_obsolete=$enableval
else
gs_move_obsolete=yes
-fi;
+fi
+
if test "$gs_move_obsolete" = "yes"; then
GNUSTEP_MOVE_OBSOLETE=move_obsolete;
fi
-#--------------------------------------------------------------------
-# Enable/disable precompiled headers
-#--------------------------------------------------------------------
-# TODO: replace with / add a check whether PCH works with the
-# compiler
-gs_enable_pch=no
-echo "$as_me:$LINENO: checking if we should enable precompiled headers (pch)" >&5
-echo $ECHO_N "checking if we should enable precompiled headers (pch)... $ECHO_C" >&6
-# Check whether --enable-pch or --disable-pch was given.
-if test "${enable_pch+set}" = set; then
- enableval="$enable_pch"
- gs_enable_pch=$enableval
-else
- gs_enable_pch=no
-fi;
-
-if test "$gs_enable_pch" = "yes"; then
- PRECOMPILED_HEADERS=yes
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6;
-else
- PRECOMPILED_HEADERS=
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6;
-fi
-
-
#--------------------------------------------------------------------
# Record the version
#--------------------------------------------------------------------
-echo "$as_me:$LINENO: checking for the version of gnustep-make we are compiling" >&5
-echo $ECHO_N "checking for the version of gnustep-make we are compiling... $ECHO_C" >&6
+{ echo "$as_me:$LINENO: checking for the version of gnustep-make we are compiling" >&5
+echo $ECHO_N "checking for the version of gnustep-make we are compiling... $ECHO_C" >&6; }
. "$srcdir/Version"
-echo "$as_me:$LINENO: result: $GNUSTEP_MAKE_VERSION" >&5
-echo "${ECHO_T}$GNUSTEP_MAKE_VERSION" >&6
+{ echo "$as_me:$LINENO: result: $GNUSTEP_MAKE_VERSION" >&5
+echo "${ECHO_T}$GNUSTEP_MAKE_VERSION" >&6; }
#--------------------------------------------------------------------
# Produce the output files
#--------------------------------------------------------------------
- ac_config_files="$ac_config_files config.make openapp debugapp opentool executable.template GNUmakefile GNUstep.sh GNUstep.csh fixpath.sh gnustep-make.spec GNUsteprc"
+ac_config_files="$ac_config_files config.make openapp debugapp opentool executable.template GNUmakefile GNUstep.conf GNUstep.sh GNUstep.csh fixpath.sh gnustep-make.spec"
- ac_config_commands="$ac_config_commands default"
+ac_config_commands="$ac_config_commands default"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
-# So, don't put newlines in cache variables' values.
+# 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.
-{
- (set) 2>&1 |
- case `(ac_space=' '; set | grep ac_space) 2>&1` in
- *ac_space=\ *)
- # `set' does not quote correctly, so add quotes (double-quote
- # substitution turns \\\\ into \\, and sed turns \\ into \).
+(
+ 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 \
- "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
;;
- esac;
-} |
+ esac |
+ sort
+) |
sed '
+ /^ac_cv_env_/b end
t clear
- : clear
+ :clear
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
t end
- /^ac_cv_env/!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 "updating cache $cache_file"
+ 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 "not updating unwritable cache $cache_file"
+ { 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
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
-# 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
-
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_i=`echo "$ac_i" |
- sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
- # 2. Add them.
- ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
- ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
+ 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
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
-elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
- set -o posix
+ 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
+
+# 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
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.
-$as_unset ENV MAIL MAILPATH
+for as_var in ENV MAIL MAILPATH
+do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+done
PS1='$ '
PS2='> '
PS4='+ '
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
+ ($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; then
+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
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
# Name of the executable.
-as_me=`$as_basename "$0" ||
+as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)$' \| \
- . : '\(.\)' 2>/dev/null ||
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
echo X/"$0" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
- /^X\/\(\/\/\)$/{ s//\1/; q; }
- /^X\/\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
-
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
-# PATH needs CR, and LINENO needs CR and PATH.
-# 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
+# CDPATH.
+$as_unset CDPATH
-# 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
as_lineno_1=$LINENO
as_lineno_2=$LINENO
- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x$as_lineno_3" = "x$as_lineno_2" || {
- # Find who we are. Look in the path if we contain no path at all
- # relative or not.
- 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
-
- ;;
- 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_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
-echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
- { (exit 1); exit 1; }; }
- fi
- case $CONFIG_SHELL in
- '')
- 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=.
- for as_base in sh bash ksh sh5; do
- case $as_dir in
- /*)
- if ("$as_dir/$as_base" -c '
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
- $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
- $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
- CONFIG_SHELL=$as_dir/$as_base
- export CONFIG_SHELL
- exec "$CONFIG_SHELL" "$0" ${1+"$@"}
- fi;;
- esac
- done
-done
-;;
- esac
+ 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 before each line; the second 'sed' does the real
- # work. The second script uses 'N' to pair each line-number line
- # with the numbered line, and appends trailing '-' during
- # substitution so that $LINENO is not a special case at line end.
+ # 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
- # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
- sed '=' <$as_myself |
+ # 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
- s,$,-,
- : loop
- s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
t loop
- s,-$,,
- s,^['$as_cr_digits']*\n,,
+ s/-\n.*//
' >$as_me.lineno &&
- chmod +x $as_me.lineno ||
- { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
-echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
+ 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 sensible to this).
- . ./$as_me.lineno
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
# Exit status is that of the last command.
exit
}
-case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
- *c*,-n*) ECHO_N= ECHO_C='
-' ECHO_T=' ' ;;
- *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
- *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
+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; then
+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
- # We could just check for DJGPP; but this test a) works b) is more generic
- # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
- if test -f conf$$.exe; then
- # Don't use ln at all; we don't have any links
+ 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'
- else
- as_ln_s='ln -s'
- fi
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$$.file
+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=:
as_mkdir_p=false
fi
-as_executable_p="test -f"
+# Find out whether ``test -x'' works. Don't use a zero-byte file, as
+# systems may use methods other than mode bits to determine executability.
+cat >conf$$.file <<_ASEOF
+#! /bin/sh
+exit 0
+_ASEOF
+chmod +x conf$$.file
+if test -x conf$$.file >/dev/null 2>&1; then
+ as_executable_p="test -x"
+else
+ as_executable_p=:
+fi
+rm -f conf$$.file
# 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'"
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-# IFS
-# We need space, tab and new line, in precisely that order.
-as_nl='
-'
-IFS=" $as_nl"
-
-# CDPATH.
-$as_unset CDPATH
-
exec 6>&1
-# Open the log real soon, to keep \$[0] and so on meaningful, and to
+# 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. Logging --version etc. is OK.
-exec 5>>config.log
-{
- echo
- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
-## Running $as_me. ##
-_ASBOX
-} >&5
-cat >&5 <<_CSEOF
-
+# values after options handling.
+ac_log="
This file was extended by $as_me, which was
-generated by GNU Autoconf 2.59. Invocation command line was
+generated by GNU Autoconf 2.59e. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_COMMANDS = $CONFIG_COMMANDS
$ $0 $@
-_CSEOF
-echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
-echo >&5
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
# Files that config.status was made for.
-if test -n "$ac_config_files"; then
- echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
-fi
+config_files="$ac_config_files"
+config_headers="$ac_config_headers"
+config_commands="$ac_config_commands"
-if test -n "$ac_config_headers"; then
- echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
-fi
-
-if test -n "$ac_config_links"; then
- echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
-fi
-
-if test -n "$ac_config_commands"; then
- echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
-fi
+_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
-
ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.
$config_commands
Report bugs to <bug-autoconf@gnu.org>."
-_ACEOF
+_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
config.status
-configured by $0, generated by GNU Autoconf 2.59,
- with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
+configured by $0, generated by GNU Autoconf 2.59e,
+ with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
-Copyright (C) 2003 Free Software Foundation, Inc.
+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."
-srcdir=$srcdir
-INSTALL="$INSTALL"
+
+ac_pwd='$ac_pwd'
+srcdir='$srcdir'
+INSTALL='$INSTALL'
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
do
case $1 in
--*=*)
- ac_option=`expr "x$1" : 'x\([^=]*\)='`
- ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ac_shift=:
;;
- -*)
+ *)
ac_option=$1
ac_optarg=$2
ac_shift=shift
;;
- *) # This is not an option, so the user has probably given explicit
- # arguments.
- ac_option=$1
- ac_need_defaults=false;;
esac
case $ac_option in
# Handling of the options.
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
ac_cs_recheck=: ;;
- --version | --vers* | -V )
- echo "$ac_cs_version"; exit 0 ;;
- --he | --h)
- # Conflict between --help and --header
- { { echo "$as_me:$LINENO: error: ambiguous option: $1
-Try \`$0 --help' for more information." >&5
-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 0 ;;
- --debug | --d* | -d )
+ --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
$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:$LINENO: error: unrecognized option: $1
-Try \`$0 --help' for more information." >&5
-echo "$as_me: error: unrecognized option: $1
-Try \`$0 --help' for more information." >&2;}
+ -*) { 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_config_targets="$ac_config_targets $1"
+ ac_need_defaults=false ;;
esac
shift
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
if \$ac_cs_recheck; then
- echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
- exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+ 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 section.
+# INIT-COMMANDS
#
-
_ACEOF
-
-
cat >>$CONFIG_STATUS <<\_ACEOF
+
+# Handling of arguments.
for ac_config_target in $ac_config_targets
do
- case "$ac_config_target" in
- # Handling of arguments.
- "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;;
- "openapp" ) CONFIG_FILES="$CONFIG_FILES openapp" ;;
- "debugapp" ) CONFIG_FILES="$CONFIG_FILES debugapp" ;;
- "opentool" ) CONFIG_FILES="$CONFIG_FILES opentool" ;;
- "executable.template" ) CONFIG_FILES="$CONFIG_FILES executable.template" ;;
- "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
- "GNUstep.sh" ) CONFIG_FILES="$CONFIG_FILES GNUstep.sh" ;;
- "GNUstep.csh" ) CONFIG_FILES="$CONFIG_FILES GNUstep.csh" ;;
- "fixpath.sh" ) CONFIG_FILES="$CONFIG_FILES fixpath.sh" ;;
- "gnustep-make.spec" ) CONFIG_FILES="$CONFIG_FILES gnustep-make.spec" ;;
- "GNUsteprc" ) CONFIG_FILES="$CONFIG_FILES GNUsteprc" ;;
- "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
- "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+ case $ac_config_target in
+ "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+ "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
+ "openapp") CONFIG_FILES="$CONFIG_FILES openapp" ;;
+ "debugapp") CONFIG_FILES="$CONFIG_FILES debugapp" ;;
+ "opentool") CONFIG_FILES="$CONFIG_FILES opentool" ;;
+ "executable.template") CONFIG_FILES="$CONFIG_FILES executable.template" ;;
+ "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
+ "GNUstep.conf") CONFIG_FILES="$CONFIG_FILES GNUstep.conf" ;;
+ "GNUstep.sh") CONFIG_FILES="$CONFIG_FILES GNUstep.sh" ;;
+ "GNUstep.csh") CONFIG_FILES="$CONFIG_FILES GNUstep.csh" ;;
+ "fixpath.sh") CONFIG_FILES="$CONFIG_FILES fixpath.sh" ;;
+ "gnustep-make.spec") CONFIG_FILES="$CONFIG_FILES gnustep-make.spec" ;;
+ "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
+
*) { { 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
fi
# Have a temporary directory for convenience. Make it in the build tree
-# simply because there is no reason to put it here, and in addition,
+# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
-# Create a temporary directory, and hook for its removal unless debugging.
+# 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 ||
{
- trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
+ 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 -q "./confstatXXXXXX") 2>/dev/null` &&
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
test -n "$tmp" && test -d "$tmp"
} ||
{
- tmp=./confstat$$-$RANDOM
- (umask 077 && mkdir $tmp)
+ tmp=./conf$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
} ||
{
echo "$me: cannot create a temporary directory in ." >&2
{ (exit 1); exit 1; }
}
-_ACEOF
-
-cat >>$CONFIG_STATUS <<_ACEOF
-
#
-# CONFIG_FILES section.
+# 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
- # Protect against being on the right side of a sed subst in config.status.
- sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
- s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
-s,@SHELL@,$SHELL,;t t
-s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
-s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
-s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
-s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
-s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
-s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
-s,@exec_prefix@,$exec_prefix,;t t
-s,@prefix@,$prefix,;t t
-s,@program_transform_name@,$program_transform_name,;t t
-s,@bindir@,$bindir,;t t
-s,@sbindir@,$sbindir,;t t
-s,@libexecdir@,$libexecdir,;t t
-s,@datadir@,$datadir,;t t
-s,@sysconfdir@,$sysconfdir,;t t
-s,@sharedstatedir@,$sharedstatedir,;t t
-s,@localstatedir@,$localstatedir,;t t
-s,@libdir@,$libdir,;t t
-s,@includedir@,$includedir,;t t
-s,@oldincludedir@,$oldincludedir,;t t
-s,@infodir@,$infodir,;t t
-s,@mandir@,$mandir,;t t
-s,@build_alias@,$build_alias,;t t
-s,@host_alias@,$host_alias,;t t
-s,@target_alias@,$target_alias,;t t
-s,@DEFS@,$DEFS,;t t
-s,@ECHO_C@,$ECHO_C,;t t
-s,@ECHO_N@,$ECHO_N,;t t
-s,@ECHO_T@,$ECHO_T,;t t
-s,@LIBS@,$LIBS,;t t
-s,@CC@,$CC,;t t
-s,@CFLAGS@,$CFLAGS,;t t
-s,@LDFLAGS@,$LDFLAGS,;t t
-s,@CPPFLAGS@,$CPPFLAGS,;t t
-s,@ac_ct_CC@,$ac_ct_CC,;t t
-s,@EXEEXT@,$EXEEXT,;t t
-s,@OBJEXT@,$OBJEXT,;t t
-s,@CPP@,$CPP,;t t
-s,@build@,$build,;t t
-s,@build_cpu@,$build_cpu,;t t
-s,@build_vendor@,$build_vendor,;t t
-s,@build_os@,$build_os,;t t
-s,@host@,$host,;t t
-s,@host_cpu@,$host_cpu,;t t
-s,@host_vendor@,$host_vendor,;t t
-s,@host_os@,$host_os,;t t
-s,@target@,$target,;t t
-s,@target_cpu@,$target_cpu,;t t
-s,@target_vendor@,$target_vendor,;t t
-s,@target_os@,$target_os,;t t
-s,@ac_cv_library_combo@,$ac_cv_library_combo,;t t
-s,@cc_cppprecomp@,$cc_cppprecomp,;t t
-s,@cc_bundle@,$cc_bundle,;t t
-s,@CYGWIN@,$CYGWIN,;t t
-s,@RANLIB@,$RANLIB,;t t
-s,@AR@,$AR,;t t
-s,@DLLTOOL@,$DLLTOOL,;t t
-s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
-s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
-s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
-s,@INSTALL_DATA@,$INSTALL_DATA,;t t
-s,@LN_S@,$LN_S,;t t
-s,@TAR@,$TAR,;t t
-s,@CHOWN@,$CHOWN,;t t
-s,@GNUSTEP_ROOT@,$GNUSTEP_ROOT,;t t
-s,@root_prefix@,$root_prefix,;t t
-s,@MAKEFILES_SUFFIX@,$MAKEFILES_SUFFIX,;t t
-s,@HOST_INSTALL@,$HOST_INSTALL,;t t
-s,@GNUSTEP_LOCAL_ROOT@,$GNUSTEP_LOCAL_ROOT,;t t
-s,@GNUSTEP_NETWORK_ROOT@,$GNUSTEP_NETWORK_ROOT,;t t
-s,@GNUSTEP_USER_ROOT@,$GNUSTEP_USER_ROOT,;t t
-s,@GNUSTEP_FLATTENED@,$GNUSTEP_FLATTENED,;t t
-s,@GNUSTEP_MULTI_PLATFORM@,$GNUSTEP_MULTI_PLATFORM,;t t
-s,@BACKEND_BUNDLE@,$BACKEND_BUNDLE,;t t
-s,@EGREP@,$EGREP,;t t
-s,@objc_threaded@,$objc_threaded,;t t
-s,@ac_cv_objc_threaded@,$ac_cv_objc_threaded,;t t
-s,@USE_OBJC_EXCEPTIONS@,$USE_OBJC_EXCEPTIONS,;t t
-s,@AUTO_DEPENDENCIES@,$AUTO_DEPENDENCIES,;t t
-s,@PRECOMPILED_HEADERS@,$PRECOMPILED_HEADERS,;t t
-s,@INCLUDES@,$INCLUDES,;t t
-s,@LIB_DIR@,$LIB_DIR,;t t
-s,@OBJCFLAGS@,$OBJCFLAGS,;t t
-s,@GNUSTEP_STRIP_MAKEFILES@,$GNUSTEP_STRIP_MAKEFILES,;t t
-s,@GNUSTEP_MOVE_OBSOLETE@,$GNUSTEP_MOVE_OBSOLETE,;t t
-s,@GNUSTEP_MAKE_VERSION@,$GNUSTEP_MAKE_VERSION,;t t
-s,@GNUSTEP_MAKE_MAJOR_VERSION@,$GNUSTEP_MAKE_MAJOR_VERSION,;t t
-s,@GNUSTEP_MAKE_MINOR_VERSION@,$GNUSTEP_MAKE_MINOR_VERSION,;t t
-s,@GNUSTEP_MAKE_SUBMINOR_VERSION@,$GNUSTEP_MAKE_SUBMINOR_VERSION,;t t
-s,@clean_target_os@,$clean_target_os,;t t
-s,@clean_target_cpu@,$clean_target_cpu,;t t
-s,@clean_target_vendor@,$clean_target_vendor,;t t
-s,@LIBOBJS@,$LIBOBJS,;t t
-s,@LTLIBOBJS@,$LTLIBOBJS,;t t
-CEOF
+if test -n "$CONFIG_FILES"; then
_ACEOF
- cat >>$CONFIG_STATUS <<\_ACEOF
- # Split the substitutions into bite-sized pieces for seds with
- # small command number limits, like on Digital OSF/1 and HP-UX.
- ac_max_sed_lines=48
- ac_sed_frag=1 # Number of current file.
- ac_beg=1 # First line for current file.
- ac_end=$ac_max_sed_lines # Line after last line for current file.
- ac_more_lines=:
- ac_sed_cmds=
- while $ac_more_lines; do
- if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
- else
- sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
- fi
- if test ! -s $tmp/subs.frag; then
- ac_more_lines=false
- else
- # The purpose of the label and of the branching condition is to
- # speed up the sed processing (if there are no `@' at all, there
- # is no need to browse any of the substitutions).
- # These are the two extra sed commands mentioned above.
- (echo ':t
- /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
- else
- ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
- fi
- ac_sed_frag=`expr $ac_sed_frag + 1`
- ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_lines`
- fi
- done
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds=cat
+
+
+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
+CC!$CC$ac_delim
+CFLAGS!$CFLAGS$ac_delim
+LDFLAGS!$LDFLAGS$ac_delim
+CPPFLAGS!$CPPFLAGS$ac_delim
+ac_ct_CC!$ac_ct_CC$ac_delim
+EXEEXT!$EXEEXT$ac_delim
+OBJEXT!$OBJEXT$ac_delim
+CPP!$CPP$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
+target!$target$ac_delim
+target_cpu!$target_cpu$ac_delim
+target_vendor!$target_vendor$ac_delim
+target_os!$target_os$ac_delim
+ac_cv_library_combo!$ac_cv_library_combo$ac_delim
+cc_cppprecomp!$cc_cppprecomp$ac_delim
+cc_bundle!$cc_bundle$ac_delim
+CYGWIN!$CYGWIN$ac_delim
+RANLIB!$RANLIB$ac_delim
+AR!$AR$ac_delim
+DLLTOOL!$DLLTOOL$ac_delim
+INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
+INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
+INSTALL_DATA!$INSTALL_DATA$ac_delim
+LN_S!$LN_S$ac_delim
+TAR!$TAR$ac_delim
+CHOWN!$CHOWN$ac_delim
+GNUSTEP_CONFIG_FILE!$GNUSTEP_CONFIG_FILE$ac_delim
+GNUSTEP_SYSTEM_ROOT!$GNUSTEP_SYSTEM_ROOT$ac_delim
+GNUSTEP_LOCAL_ROOT!$GNUSTEP_LOCAL_ROOT$ac_delim
+GNUSTEP_NETWORK_ROOT!$GNUSTEP_NETWORK_ROOT$ac_delim
+GNUSTEP_USER_CONFIG_FILE!$GNUSTEP_USER_CONFIG_FILE$ac_delim
+GNUSTEP_USER_DIR!$GNUSTEP_USER_DIR$ac_delim
+GNUSTEP_USER_DEFAULTS_DIR!$GNUSTEP_USER_DEFAULTS_DIR$ac_delim
+GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
+HOST_INSTALL!$HOST_INSTALL$ac_delim
+GNUSTEP_FLATTENED!$GNUSTEP_FLATTENED$ac_delim
+GNUSTEP_MULTI_PLATFORM!$GNUSTEP_MULTI_PLATFORM$ac_delim
+BACKEND_BUNDLE!$BACKEND_BUNDLE$ac_delim
+GREP!$GREP$ac_delim
+EGREP!$EGREP$ac_delim
+objc_threaded!$objc_threaded$ac_delim
+ac_cv_objc_threaded!$ac_cv_objc_threaded$ac_delim
+USE_OBJC_EXCEPTIONS!$USE_OBJC_EXCEPTIONS$ac_delim
+AUTO_DEPENDENCIES!$AUTO_DEPENDENCIES$ac_delim
+INCLUDES!$INCLUDES$ac_delim
+LIB_DIR!$LIB_DIR$ac_delim
+OBJCFLAGS!$OBJCFLAGS$ac_delim
+GNUSTEP_STRIP_MAKEFILES!$GNUSTEP_STRIP_MAKEFILES$ac_delim
+GNUSTEP_MOVE_OBSOLETE!$GNUSTEP_MOVE_OBSOLETE$ac_delim
+GNUSTEP_MAKE_VERSION!$GNUSTEP_MAKE_VERSION$ac_delim
+GNUSTEP_MAKE_MAJOR_VERSION!$GNUSTEP_MAKE_MAJOR_VERSION$ac_delim
+GNUSTEP_MAKE_MINOR_VERSION!$GNUSTEP_MAKE_MINOR_VERSION$ac_delim
+GNUSTEP_MAKE_SUBMINOR_VERSION!$GNUSTEP_MAKE_SUBMINOR_VERSION$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
-fi # test -n "$CONFIG_FILES"
+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 <conf$$subs.sed
+rm -f conf$$subs.sed
+cat >>$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
+clean_target_os!$clean_target_os$ac_delim
+clean_target_cpu!$clean_target_cpu$ac_delim
+clean_target_vendor!$clean_target_vendor$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` = 5; 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 <conf$$subs.sed
+rm -f conf$$subs.sed
+cat >>$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
-for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case $ac_file in
- - | *:- | *:-:* ) # input from stdin
- cat >$tmp/stdin
- ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
- *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
- * ) ac_file_in=$ac_file.in ;;
+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
- # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
- ac_dir=`(dirname "$ac_file") 2>/dev/null ||
+ 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 ||
+ 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'`
- { if $as_mkdir_p; then
- mkdir -p "$ac_dir"
- else
- as_dir="$ac_dir"
+ 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 test ! -d "$as_dir"; do
- as_dirs="$as_dir $as_dirs"
- as_dir=`(dirname "$as_dir") 2>/dev/null ||
+ 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 ||
+ 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'`
+ 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 ! -n "$as_dirs" || mkdir $as_dirs
- fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
-echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+ 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=.
-if test "$ac_dir" != .; then
+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=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
-else
- ac_dir_suffix= ac_top_builddir=
-fi
+ # 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
- .) # No --srcdir option. We are building in place.
+ .) # We are building in place.
ac_srcdir=.
- if test -z "$ac_top_builddir"; then
- ac_top_srcdir=.
- else
- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
- fi ;;
- [\\/]* | ?:[\\/]* ) # Absolute path.
+ 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 ;;
- *) # Relative path.
- ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_builddir$srcdir ;;
+ 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
-# Do not use `cd foo && pwd` to compute absolute paths, because
-# the directories may not exist.
-case `pwd` in
-.) ac_abs_builddir="$ac_dir";;
-*)
- case "$ac_dir" in
- .) ac_abs_builddir=`pwd`;;
- [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
- *) ac_abs_builddir=`pwd`/"$ac_dir";;
- esac;;
-esac
-case $ac_abs_builddir in
-.) ac_abs_top_builddir=${ac_top_builddir}.;;
-*)
- case ${ac_top_builddir}. in
- .) ac_abs_top_builddir=$ac_abs_builddir;;
- [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
- *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
- esac;;
-esac
-case $ac_abs_builddir in
-.) ac_abs_srcdir=$ac_srcdir;;
-*)
- case $ac_srcdir in
- .) ac_abs_srcdir=$ac_abs_builddir;;
- [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
- *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
- esac;;
-esac
-case $ac_abs_builddir in
-.) ac_abs_top_srcdir=$ac_top_srcdir;;
-*)
- case $ac_top_srcdir in
- .) ac_abs_top_srcdir=$ac_abs_builddir;;
- [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
- *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
- esac;;
-esac
+ case $ac_mode in
+ :F)
+ #
+ # CONFIG_FILE
+ #
case $INSTALL in
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
- *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
esac
+_ACEOF
- if test x"$ac_file" != x-; then
- { echo "$as_me:$LINENO: creating $ac_file" >&5
-echo "$as_me: creating $ac_file" >&6;}
- rm -f "$ac_file"
- fi
- # 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. */
- if test x"$ac_file" = x-; then
- configure_input=
- else
- configure_input="$ac_file. "
- fi
- configure_input=$configure_input"Generated from `echo $ac_file_in |
- sed 's,.*/,,'` by configure."
-
- # First look for the input files in the build tree, otherwise in the
- # src tree.
- ac_file_inputs=`IFS=:
- for f in $ac_file_in; do
- case $f in
- -) echo $tmp/stdin ;;
- [\\/$]*)
- # Absolute (can't be DOS-style, as IFS=:)
- test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
-echo "$as_me: error: cannot find input file: $f" >&2;}
- { (exit 1); exit 1; }; }
- echo "$f";;
- *) # Relative
- if test -f "$f"; then
- # Build tree
- echo "$f"
- elif test -f "$srcdir/$f"; then
- # Source tree
- echo "$srcdir/$f"
- else
- # /dev/null tree
- { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
-echo "$as_me: error: cannot find input file: $f" >&2;}
- { (exit 1); exit 1; }; }
- fi;;
- esac
- done` || { (exit 1); exit 1; }
+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
cat >>$CONFIG_STATUS <<\_ACEOF
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
-s,@configure_input@,$configure_input,;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,@top_builddir@,$ac_top_builddir,;t t
-s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
-s,@INSTALL@,$ac_INSTALL,;t t
-" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
- rm -f $tmp/stdin
- if test x"$ac_file" != x-; then
- mv $tmp/out $ac_file
- else
- cat $tmp/out
- rm -f $tmp/out
- fi
-
-done
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
-
-#
-# CONFIG_HEADER section.
-#
-
-# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
-# NAME is the cpp macro being defined and VALUE is the value it is being given.
-#
-# ac_d sets the value in "#define NAME VALUE" lines.
-ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
-ac_dB='[ ].*$,\1#\2'
-ac_dC=' '
-ac_dD=',;t'
-# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
-ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
-ac_uB='$,\1#\2define\3'
-ac_uC=' '
-ac_uD=',;t'
-
-for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+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
+$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"; } &&
+ { 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
- - | *:- | *:-:* ) # input from stdin
- cat >$tmp/stdin
- ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
- *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
- * ) ac_file_in=$ac_file.in ;;
+ -) cat "$tmp/out"; rm -f "$tmp/out";;
+ *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
esac
-
- test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
-echo "$as_me: creating $ac_file" >&6;}
-
- # First look for the input files in the build tree, otherwise in the
- # src tree.
- ac_file_inputs=`IFS=:
- for f in $ac_file_in; do
- case $f in
- -) echo $tmp/stdin ;;
- [\\/$]*)
- # Absolute (can't be DOS-style, as IFS=:)
- test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
-echo "$as_me: error: cannot find input file: $f" >&2;}
- { (exit 1); exit 1; }; }
- # Do quote $f, to prevent DOS paths from being IFS'd.
- echo "$f";;
- *) # Relative
- if test -f "$f"; then
- # Build tree
- echo "$f"
- elif test -f "$srcdir/$f"; then
- # Source tree
- echo "$srcdir/$f"
- else
- # /dev/null tree
- { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
-echo "$as_me: error: cannot find input file: $f" >&2;}
- { (exit 1); exit 1; }; }
- fi;;
- esac
- done` || { (exit 1); exit 1; }
- # Remove the trailing spaces.
- sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
-
+ ;;
+ :H)
+ #
+ # CONFIG_HEADER
+ #
_ACEOF
-# Transform confdefs.h into two sed scripts, `conftest.defines' and
-# `conftest.undefs', that substitutes the proper values into
-# config.h.in to produce config.h. The first handles `#define'
-# templates, and the second `#undef' templates.
-# And first: Protect against being on the right side of a sed subst in
-# config.status. Protect against being in an unquoted here document
-# in config.status.
-rm -f conftest.defines conftest.undefs
-# Using a here document instead of a string reduces the quoting nightmare.
-# Putting comments in sed scripts is not portable.
-#
-# `end' is used to avoid that the second main sed command (meant for
-# 0-ary CPP macros) applies to n-ary macro definitions.
-# See the Autoconf documentation for `clear'.
-cat >confdef2sed.sed <<\_ACEOF
-s/[\\&,]/\\&/g
-s,[\\$`],\\&,g
-t clear
-: clear
-s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
-t end
-s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
-: end
-_ACEOF
-# If some macros were called several times there might be several times
-# the same #defines, which is useless. Nevertheless, we may not want to
-# sort them, since we want the *last* AC-DEFINE to be honored.
-uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
-sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
-rm -f confdef2sed.sed
-
-# This sed command replaces #undef with comments. This is necessary, for
+# 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.
-cat >>conftest.undefs <<\_ACEOF
-s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
-_ACEOF
-
-# Break up conftest.defines because some shells have a limit on the size
-# of here documents, and old seds have small limits too (100 cmds).
-echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
-echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
-echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
-echo ' :' >>$CONFIG_STATUS
-rm -f conftest.tail
-while grep . conftest.defines >/dev/null
+# (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 limited-size here document to $tmp/defines.sed.
- echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
- # Speed up: don't consider the non `#define' lines.
- echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
- # Work around the forget-to-reset-the-flag bug.
- echo 't clr' >>$CONFIG_STATUS
- echo ': clr' >>$CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
+ # 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 $tmp/in >$tmp/out
- rm -f $tmp/in
- mv $tmp/out $tmp/in
-' >>$CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
+ 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
-echo ' fi # grep' >>$CONFIG_STATUS
-echo >>$CONFIG_STATUS
-
-# Break up conftest.undefs because some shells have a limit on the size
-# of here documents, and old seds have small limits too (100 cmds).
-echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
-rm -f conftest.tail
-while grep . conftest.undefs >/dev/null
-do
- # Write a limited-size here document to $tmp/undefs.sed.
- echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
- # Speed up: don't consider the non `#undef'
- echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
- # Work around the forget-to-reset-the-flag bug.
- echo 't clr' >>$CONFIG_STATUS
- echo ': clr' >>$CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
- echo 'CEOF
- sed -f $tmp/undefs.sed $tmp/in >$tmp/out
- rm -f $tmp/in
- mv $tmp/out $tmp/in
-' >>$CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
- rm -f conftest.undefs
- mv conftest.tail conftest.undefs
-done
-rm -f conftest.undefs
+rm -f conftest.defines conftest.tail
+echo "ac_result=$ac_in" >>$CONFIG_STATUS
cat >>$CONFIG_STATUS <<\_ACEOF
- # 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. */
- if test x"$ac_file" = x-; then
- echo "/* Generated by configure. */" >$tmp/config.h
- else
- echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
- fi
- cat $tmp/in >>$tmp/config.h
- rm -f $tmp/in
if test x"$ac_file" != x-; then
- if diff $ac_file $tmp/config.h >/dev/null 2>&1; 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
- ac_dir=`(dirname "$ac_file") 2>/dev/null ||
-$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'`
- { if $as_mkdir_p; then
- mkdir -p "$ac_dir"
- else
- as_dir="$ac_dir"
- as_dirs=
- while test ! -d "$as_dir"; do
- as_dirs="$as_dir $as_dirs"
- as_dir=`(dirname "$as_dir") 2>/dev/null ||
-$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'`
- done
- test ! -n "$as_dirs" || mkdir $as_dirs
- fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
-echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
- { (exit 1); exit 1; }; }; }
-
rm -f $ac_file
- mv $tmp/config.h $ac_file
+ mv "$tmp/config.h" $ac_file
fi
else
- cat $tmp/config.h
- rm -f $tmp/config.h
+ echo "/* $configure_input */"
+ cat "$ac_result"
fi
-done
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
+ rm -f "$tmp/out12"
+ ;;
-#
-# CONFIG_COMMANDS section.
-#
-for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
- ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
- ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
-$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$ac_dest" : 'X\(//\)[^/]' \| \
- X"$ac_dest" : 'X\(//\)$' \| \
- X"$ac_dest" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
-echo X"$ac_dest" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
- /^X\(\/\/\)$/{ s//\1/; q; }
- /^X\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
- { if $as_mkdir_p; then
- mkdir -p "$ac_dir"
- else
- as_dir="$ac_dir"
- as_dirs=
- while test ! -d "$as_dir"; do
- as_dirs="$as_dir $as_dirs"
- as_dir=`(dirname "$as_dir") 2>/dev/null ||
-$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'`
- done
- test ! -n "$as_dirs" || mkdir $as_dirs
- fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
-echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
- { (exit 1); exit 1; }; }; }
-
- ac_builddir=.
-
-if test "$ac_dir" != .; then
- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
- # A "../" for each directory in $ac_dir_suffix.
- ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
-else
- ac_dir_suffix= ac_top_builddir=
-fi
-
-case $srcdir in
- .) # No --srcdir option. We are building in place.
- ac_srcdir=.
- if test -z "$ac_top_builddir"; then
- ac_top_srcdir=.
- else
- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
- fi ;;
- [\\/]* | ?:[\\/]* ) # Absolute path.
- ac_srcdir=$srcdir$ac_dir_suffix;
- ac_top_srcdir=$srcdir ;;
- *) # Relative path.
- ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_builddir$srcdir ;;
-esac
+ :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
+echo "$as_me: executing $ac_file commands" >&6;}
+ ;;
+ esac
-# Do not use `cd foo && pwd` to compute absolute paths, because
-# the directories may not exist.
-case `pwd` in
-.) ac_abs_builddir="$ac_dir";;
-*)
- case "$ac_dir" in
- .) ac_abs_builddir=`pwd`;;
- [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
- *) ac_abs_builddir=`pwd`/"$ac_dir";;
- esac;;
-esac
-case $ac_abs_builddir in
-.) ac_abs_top_builddir=${ac_top_builddir}.;;
-*)
- case ${ac_top_builddir}. in
- .) ac_abs_top_builddir=$ac_abs_builddir;;
- [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
- *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
- esac;;
-esac
-case $ac_abs_builddir in
-.) ac_abs_srcdir=$ac_srcdir;;
-*)
- case $ac_srcdir in
- .) ac_abs_srcdir=$ac_abs_builddir;;
- [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
- *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
- esac;;
-esac
-case $ac_abs_builddir in
-.) ac_abs_top_srcdir=$ac_top_srcdir;;
-*)
- case $ac_top_srcdir in
- .) ac_abs_top_srcdir=$ac_abs_builddir;;
- [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
- *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
- esac;;
-esac
+ case $ac_file$ac_mode in
+ "default":C) chmod a+x openapp debugapp opentool fixpath.sh executable.template ;;
- { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
-echo "$as_me: executing $ac_dest commands" >&6;}
- case $ac_dest in
- default ) chmod a+x openapp debugapp opentool fixpath.sh executable.template ;;
esac
-done
-_ACEOF
+done # for ac_tag
-cat >>$CONFIG_STATUS <<\_ACEOF
{ (exit 0); exit 0; }
_ACEOF
AC_MSG_CHECKING(for library combo)
AC_ARG_WITH(library-combo,[
---with-library-combo Define the default library combination
+--with-library-combo
+ Define the default "library combo". The library combo is a string
+ of the form aaa-bbb-ccc where 'aaa' is the Objective-C runtime
+ library to use (examples are 'gnu' and 'apple'),
+ 'bbb' is the Foundation library to use (examples are 'gnu' for
+ gnustep-base, and 'apple' for Apple Cocoa FoundationKit),
+ and 'ccc' is the ApplicationKit to use (examples are 'gnu'
+ for gnustep-gui and 'apple' for Apple Cocoa AppKit). Use this
+ option if you want to force a different default library combo than
+ the one that would be used by default. For example, on Darwin GNUstep
+ will automatically use the Apple Objective-C frameworks by
+ default (library-combo=apple-apple-apple); if you are planning
+ on installing and using gnustep-base on there, you would need
+ to use --with-library-combo=gnu-gnu-gnu instead. Please notice
+ that if --disable-flattened is used, gnustep-make can have fat
+ binaries that support multiple library combos. In that case,
+ this flag will only configure the default one, but you can still
+ use other ones at run-time.
],
ac_cv_library_combo=$withval,
ac_cv_library_combo=$ac_cv_library_combo
)
-if test "$ac_cv_library_combo" = ""; then
+if test "$ac_cv_library_combo" = "" -o "$ac_cv_library_combo" = "no"; then
case "$host_os" in
darwin*) ac_cv_library_combo=apple-apple-apple ;;
nextstep4) ac_cv_library_combo=nx-nx-nx ;;
# Determine the host, build, and target systems
#--------------------------------------------------------------------
case $host_os in
- *cygwin* ) CYGWIN=yes;;
- *mingw32* ) MINGW32=yes;;
- * ) MINGW32=no
- CYGWIN=no;;
+ *cygwin* )
+ MINGW32=no
+ CYGWIN=yes
+ MSWIND=yes;;
+ *mingw32* )
+ MINGW32=yes
+ CYGWIN=yes
+ MSWIND=yes;;
+ * )
+ MINGW32=no
+ CYGWIN=no
+ MSWIND=no;;
esac
AC_SUBST(CYGWIN)
AC_OBJEXT
if test "$MINGW32" = yes; then
echo "hosted on mingw32 .."
- export INSTALL=install
+ export INSTALL="install -p"
export SHELL=sh
export CC=${CC:-gcc}
export AR=${AR:-ar}
AC_PROG_LN_S([])
AC_CHECK_PROGS(TAR, gnutar gtar, tar)
-AC_ARG_WITH(tar,
-[--with-tar Set the name of the tar program to use],
+AC_ARG_WITH(tar,[
+--with-tar
+ Set the name of the tar program to use. Use this option if the
+ default choice does not work for you.
+],
TAR="$withval",)
AC_CHECK_PROG(CHOWN, chown, chown, none)
# GNUstep specific options follow
#-------------------------------------------------------------------
+#---------------------------------------------------------------------
+# Location of the GNUstep.conf config file (--with-config-file)
+#---------------------------------------------------------------------
+AC_MSG_CHECKING([for GNUstep configuration file to use])
+AC_ARG_WITH(config-file,[
+--with-config-file=PATH
+ Set the path of the system GNUstep config file. Use this option
+ if you want to have the GNUstep config file in a non-standard place.
+ Example: --with-config-file=/usr/GNUstep/GNUstep.conf
+],
+ GNUSTEP_CONFIG_FILE="$withval",)
+if test "$GNUSTEP_CONFIG_FILE" = "" -o "$GNUSTEP_CONFIG_FILE" = "no"; then
+ case "$target_os" in
+ freebsd* | openbsd* ) GNUSTEP_CONFIG_FILE=/usr/etc/GNUstep.conf ;;
+ netbsd* ) GNUSTEP_CONFIG_FILE=/usr/pkg/etc/GNUstep.conf ;;
+ mingw32* ) GNUSTEP_CONFIG_FILE=/c/GNUstep/GNUstep.conf-dev ;;
+ *) GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf ;;
+ esac
+fi
+if echo "$GNUSTEP_CONFIG_FILE" | grep -q '[[ \\]]'
+then
+ echo "found a backslash or space (illegal) in '$GNUSTEP_CONFIG_FILE'"
+ echo "Please try again using --with-config-file= to specify a valid path."
+ if test "$MSWIND" = "yes"
+ then
+ echo "Please note that on windows you must use unix-style paths within"
+ echo "the make package even though gnustep programs built in the mingw32"
+ echo "environment use native paths throughout."
+ fi
+ exit 1
+fi
+AC_MSG_RESULT($GNUSTEP_CONFIG_FILE)
+AC_SUBST(GNUSTEP_CONFIG_FILE)
+
+#---------------------------------------------------------------------
+# Now read/import the existing configuration file, if any
+#---------------------------------------------------------------------
+
+# Reading/importing the existing configuration file is good as a
+# default because it means that you don't have to type in your
+# GNUSTEP_SYSTEM_ROOT, GNUSTEP_LOCAL_ROOT, etc. settings every time
+# you configure gnustep-make. (please note we only read the
+# system-wide one, not the user one. Reason being that the settings
+# we read will be used to generate the new system-wide one, while the
+# user one will be left untouched).
+
+# It can be annoying in certain cases though; this option lets you
+# turn it off
+AC_MSG_CHECKING([if we should import an existing configuration file])
+AC_ARG_ENABLE(importing-config-file, [
+--disable-importing-config-file
+ Disable importing the existing system GNUstep configuration file.
+ Use this option to prevent an existing configuration file from being
+ parsed and used when configure is being run.
+],
+ ac_cv_importing_config_file=$enableval,
+ ac_cv_importing_config_file="yes")
+
+# If importing the file is disabled, don't import it.
+if test "$ac_cv_importing_config_file" = "no"; then
+ AC_MSG_RESULT([no: disabled from the command-line])
+else
+
+ # Check that the file exists
+ if test ! -f "$GNUSTEP_CONFIG_FILE"; then
+ AC_MSG_RESULT([no: file "$GNUSTEP_CONFIG_FILE" does not exist])
+ else
+ AC_MSG_RESULT([yes: trying to import "$GNUSTEP_CONFIG_FILE"])
+ AC_MSG_NOTICE([If this fails, please run configure again with the --disable-importing-config-file option])
+ . "$GNUSTEP_CONFIG_FILE"
+ fi
+fi
+
#--------------------------------------------------------------------
-# The GNUstep root directory.
-# The user should have the GNUSTEP_SYSTEM_ROOT environment variable
-# defined, but if not then we have a global default.
-# Also test for the C: directory, which means we're on Windows
+# Important - from now on, any variable that is set in the
+# configuration file (eg, GNUSTEP_SYSTEM_ROOT) could already have a
+# value that we have imported from the previous file. ./configure
+# command line options should override those values, but otherwise we
+# should keep them!
+#
+# Those could also be env variables, which is really a backwards
+# compatibility hack that won't necessarily be kept in the future!
#--------------------------------------------------------------------
-AC_MSG_CHECKING(for GNUSTEP_SYSTEM_ROOT to use)
-AC_PREFIX_DEFAULT(`if test "x$GNUSTEP_SYSTEM_ROOT" = "x"; then
- if test -d C: ; then
+
+
+#--------------------------------------------------------------------
+# Process --prefix
+#--------------------------------------------------------------------
+
+#
+# In practice,
+#
+# ./configure --prefix=/usr/GNUstep
+#
+# is equivalent to:
+#
+# ./configure --with-system-root=/usr/GNUstep/System
+# --with-local-root=/usr/GNUstep/Local
+#
+# plus it has the side-effect that a config.site will be loaded by
+# ./configure from $prefix/share/config.site, if it exists. Our
+# config.site is in $prefix/System/share/config.site though, so it
+# won't be found. It doesn't really matter though, as the config.site
+# is irrelevant for us in this context.
+#
+
+# Please note that AC_PREFIX_DEFAULT will not appear in this position
+# in the generated configure file; it will appear at the very
+# beginning. So we can't check for GNUSTEP_SYSTEM_ROOT or anything
+# similar in the implementation of AC_PREFIX_DEFAULT because we will
+# not have read GNUstep.conf yet ...
+
+# PS: This is the default GNUSTEP_ROOT that is used when installing
+# GNUstep with no other indication. Test for the C: directory, which
+# means we're on Windows
+AC_PREFIX_DEFAULT(`if test -d C: ; then
echo C:/GNUstep;
else
echo /usr/GNUstep ;
- fi
-else
- echo "$GNUSTEP_SYSTEM_ROOT" ;
-fi`)
+ fi`)
+
+#
+# GNUSTEP_ROOT is only used to set default values for
+# GNUSTEP_SYSTEM_ROOT and GNUSTEP_LOCAL_ROOT if they are not set in
+# config file or as a command-line argument.
+#
if test "x$prefix" = "xNONE"; then
- prefix="$ac_default_prefix" ;
-fi
-AC_ARG_WITH(system-root,
-[--without-system-root Don't use separate system root directory],
- ac_cv_system_root="$withval",
- ac_cv_system_root=yes)
-
-GNUSTEP_ROOT="$prefix"
-root_prefix='${prefix}'
-if test $ac_cv_system_root = yes; then
- if test "x`basename $prefix`" = xSystem; then
- GNUSTEP_ROOT=`dirname $prefix`
- else
- if test "x$prefix" = "x/"; then
- prefix=/System
- else
- prefix="$prefix/System"
- fi
- fi
- root_prefix='${prefix}/..'
+ GNUSTEP_ROOT="$ac_default_prefix" ;
+else
+ GNUSTEP_ROOT="$prefix";
+
+ # Set the values for all those variables ovverriding anything read
+ # from the configuration file or inherited from the environment.
+ # The --prefix=xxx option should overwrite those. Please notice
+ # that the --with-system-root=xxx (and similar) options are
+ # processed later as overwrite --prefix=xxx in their specific area.
+ GNUSTEP_SYSTEM_ROOT="$GNUSTEP_ROOT/System";
+ GNUSTEP_LOCAL_ROOT="$GNUSTEP_ROOT/Local";
+ GNUSTEP_NETWORK_ROOT="$GNUSTEP_LOCAL_ROOT";
fi
-AC_SUBST(GNUSTEP_ROOT)
-AC_SUBST(root_prefix)
-AC_MSG_RESULT($prefix)
-
-# Makefiles directory location is in a bit of flux now. To keep the
-# Makefiles dir in the previous location, reset this variable to
-# 'Makefiles' and regenerate configure. Note this doesn't change all
-# occurances.
-MAKEFILES_SUFFIX=Library/Makefiles
-AC_SUBST(MAKEFILES_SUFFIX)
-# HOST_INSTALL is the name of the install program in config.make so set it up
-# to point to the install-sh script in the GNUstep tree if no system install is
-# found.
-AC_SUBST(HOST_INSTALL)
-if test "$INSTALL" = "$ac_install_sh"; then
- HOST_INSTALL="$prefix/$MAKEFILES_SUFFIX/$INSTALL"
-else
- HOST_INSTALL="$INSTALL"
+#--------------------------------------------------------------------
+# Process --with-system-root
+#--------------------------------------------------------------------
+AC_MSG_CHECKING(for GNUSTEP_SYSTEM_ROOT to use)
+AC_ARG_WITH(system-root,[
+--with-system-root
+ Set the GNUSTEP_SYSTEM_ROOT directory. Use this option if you want
+ to have the GNUSTEP_SYSTEM_ROOT directory in a non-standard place.
+ Example: --with-system-root=/usr/GNUstep/System
+],
+GNUSTEP_SYSTEM_ROOT="$withval",)
+if test "$GNUSTEP_SYSTEM_ROOT" = "" -o "$GNUSTEP_SYSTEM_ROOT" = "no"; then
+ GNUSTEP_SYSTEM_ROOT="$GNUSTEP_ROOT/System"
+fi
+if echo "$GNUSTEP_SYSTEM_ROOT" | grep -q '[[ \\]]'
+then
+ echo "found a backslash or space (illegal) in '$GNUSTEP_SYSTEM_ROOT'"
+ echo "Please try again using --with-system-root= to specify a valid path."
+ if test "$MSWIND" = "yes"
+ then
+ echo "Please note that on windows you must use unix-style paths within"
+ echo "the make package even though gnustep programs built in the mingw32"
+ echo "environment use native paths throughout."
+ fi
+ exit 1
fi
+AC_MSG_RESULT($GNUSTEP_SYSTEM_ROOT)
+AC_SUBST(GNUSTEP_SYSTEM_ROOT)
#--------------------------------------------------------------------
-# Process --with-defaults-root, --with-user-root,
-# --with-local-root and --with-network-root
+# Process --with-local-root
#--------------------------------------------------------------------
AC_MSG_CHECKING(for GNUSTEP_LOCAL_ROOT to use)
-AC_ARG_WITH(local-root,
-[--with-local-root
- Set the GNUSTEP_LOCAL_ROOT directory. Use this option if you want
-to have the GNUSTEP_LOCAL_ROOT directory in a non-standard place. Example:
---with-local-root=/usr/local/GNUstep/Local
+AC_ARG_WITH(local-root,[
+--with-local-root
+ Set the GNUSTEP_LOCAL_ROOT directory. Use this option if you want
+ to have the GNUSTEP_LOCAL_ROOT directory in a non-standard place.
+ Example: --with-local-root=/usr/local/GNUstep/Local
],
-GNUSTEP_LOCAL_ROOT="$withval",
-GNUSTEP_LOCAL_ROOT="$GNUSTEP_ROOT/Local"
-)
+GNUSTEP_LOCAL_ROOT="$withval",)
+# If GNUSTEP_LOCAL_ROOT is explicitly set to 'no', we effectively disable it
+# by setting it to be the same as GNUSTEP_SYSTEM_ROOT
+if test "$GNUSTEP_LOCAL_ROOT" = "no"; then
+ GNUSTEP_LOCAL_ROOT="$GNUSTEP_SYSTEM_ROOT"
+fi
+if test "$GNUSTEP_LOCAL_ROOT" = ""; then
+ GNUSTEP_LOCAL_ROOT="$GNUSTEP_ROOT/Local"
+fi
+if echo "$GNUSTEP_LOCAL_ROOT" | grep -q '[[ \\]]'
+then
+ echo "found a backslash or space (illegal) in '$GNUSTEP_LOCAL_ROOT'"
+ echo "Please try again using --with-local-root= to specify a valid path."
+ if test "$MSWIND" = "yes"
+ then
+ echo "Please note that on windows you must use unix-style paths within"
+ echo "the make package even though gnustep programs built in the mingw32"
+ echo "environment use native paths throughout."
+ fi
+ exit 1
+fi
AC_MSG_RESULT($GNUSTEP_LOCAL_ROOT)
+AC_SUBST(GNUSTEP_LOCAL_ROOT)
+#--------------------------------------------------------------------
+# Process --with-network-root
+#--------------------------------------------------------------------
AC_MSG_CHECKING(for GNUSTEP_NETWORK_ROOT to use)
-AC_ARG_WITH(network-root,
-[--with-network-root
- Set the GNUSTEP_NETWORK_ROOT directory. Use this option if you want
-to have the GNUSTEP_NETWORK_ROOT directory. Example:
---with-network-root=/usr/local/GNUstep/Network
+AC_ARG_WITH(network-root,[
+--with-network-root
+ Set the GNUSTEP_NETWORK_ROOT directory. Use this option if you
+ want to have the GNUSTEP_NETWORK_ROOT directory.
+ Example: --with-network-root=/usr/local/GNUstep/Network
],
-GNUSTEP_NETWORK_ROOT="$withval",
+GNUSTEP_NETWORK_ROOT="$withval",)
# By default we disable network root, by setting GNUSTEP_NETWORK_ROOT
# to be the same as GNUSTEP_LOCAL_ROOT. GNUSTEP_NETWORK_ROOT is very
# rarely used, and most users prefer simpler systems with shorter
# again, you can use the --with-network-root=xxx option; pass
# something like --with-network-root=/usr/GNUstep/Network on the
# configure command line.
-GNUSTEP_NETWORK_ROOT="$GNUSTEP_LOCAL_ROOT"
-)
+if test "$GNUSTEP_NETWORK_ROOT" = "" -o "$GNUSTEP_NETWORK_ROOT" = "no"; then
+ GNUSTEP_NETWORK_ROOT="$GNUSTEP_LOCAL_ROOT"
+fi
+if echo "$GNUSTEP_NETWORK_ROOT" | grep -q '[[ \\]]'
+then
+ echo "found a backslash or space (illegal) in '$GNUSTEP_NETWORK_ROOT'"
+ echo "Please try again using --with-network-root= to specify a valid path."
+ if test "$MSWIND" = "yes"
+ then
+ echo "Please note that on windows you must use unix-style paths within"
+ echo "the make package even though gnustep programs built in the mingw32"
+ echo "environment use native paths throughout."
+ fi
+ exit 1
+fi
AC_MSG_RESULT($GNUSTEP_NETWORK_ROOT)
-
-AC_SUBST(GNUSTEP_LOCAL_ROOT)
AC_SUBST(GNUSTEP_NETWORK_ROOT)
-AC_MSG_CHECKING(for GNUSTEP_USER_ROOT to use)
-AC_ARG_WITH(user-root,
-[--with-user-root
- Set the GNUSTEP_USER_ROOT directory for all users. '~' is allowed
- at the beginning to mean the user's home directory. Use this
- option if you want to have the GNUSTEP_USER_ROOT directory in a non
- default place for all users.
- Example: --with-user-root='~/gnustep'
+#--------------------------------------------------------------------
+# Process --with-user-config-file
+#--------------------------------------------------------------------
+AC_MSG_CHECKING(for user config file to use)
+AC_ARG_WITH(user-config-file,[
+--with-user-config-file
+ Set the name of the user config file to use. This can be
+ relative to the user's home directory if it is a relative path,
+ or an absolute directory (the same for all users) if it is an
+ absolute path. Use '' if you want to disable user config files.
+ The default is .GNUstep.conf if not specified.
+ Example: --with-user-config-file=GNUstep/GNUstep.conf
],
-GNUSTEP_USER_ROOT="$withval",
-# The default is to have user roots in ~/GNUstep
-GNUSTEP_USER_ROOT="~/GNUstep"
-)
-AC_MSG_RESULT($GNUSTEP_USER_ROOT)
-AC_SUBST(GNUSTEP_USER_ROOT)
+GNUSTEP_USER_CONFIG_FILE="$withval",)
+if test "$GNUSTEP_USER_CONFIG_FILE" = "" -o "$GNUSTEP_USER_CONFIG_FILE" = "no"; then
+ GNUSTEP_USER_CONFIG_FILE=".GNUstep.conf"
+fi
+if echo "$GNUSTEP_USER_CONFIG_FILE" | grep -q '[[ \\]]'
+then
+ echo "found a backslash or space (illegal) in '$GNUSTEP_USER_CONFIG_FILE'"
+ echo "Please try again using --with-user-config-file= to specify a value."
+ if test "$MSWIND" = "yes"
+ then
+ echo "Please note that on windows you must use unix-style paths within"
+ echo "the make package even though gnustep programs built in the mingw32"
+ echo "environment use native paths throughout."
+ fi
+ exit 1
+fi
+AC_MSG_RESULT($GNUSTEP_NETWORK_ROOT)
+AC_MSG_RESULT($GNUSTEP_USER_CONFIG_FILE)
+AC_SUBST(GNUSTEP_USER_CONFIG_FILE)
+
+#--------------------------------------------------------------------
+# Process --with-user-dir
+#--------------------------------------------------------------------
+AC_MSG_CHECKING(for user dir to use)
+AC_ARG_WITH(user-dir,[
+--with-user-dir
+ Set the GNUSTEP_USER_DIR directory for all users. This can be
+ relative to the user's home directory if it is a relative path,
+ or an absolute directory (the same for all users) if it is an
+ absolute path. Use this option if you want to have the
+ GNUSTEP_USER_DIR directory in a non default place for all users.
+ The default is 'GNUstep'.
+ Example: --with-user-dir='gnustep'
+],
+GNUSTEP_USER_DIR="$withval",)
+if test "$GNUSTEP_USER_DIR" = "" -o "$GNUSTEP_USER_DIR" = "no"; then
+ GNUSTEP_USER_DIR="GNUstep"
+fi
+if echo "$GNUSTEP_USER_DIR" | grep -q '[[ \\]]'
+then
+ echo "found a backslash or space (illegal) in '$GNUSTEP_USER_DIR'"
+ echo "Please try again using --with-user-dir= to specify a value."
+ if test "$MSWIND" = "yes"
+ then
+ echo "Please note that on windows you must use unix-style paths within"
+ echo "the make package even though gnustep programs built in the mingw32"
+ echo "environment use native paths throughout."
+ fi
+ exit 1
+fi
+AC_MSG_RESULT($GNUSTEP_USER_DIR)
+AC_SUBST(GNUSTEP_USER_DIR)
+
+#--------------------------------------------------------------------
+# Process --with-user-defaults-dir
+#--------------------------------------------------------------------
+AC_MSG_CHECKING(for user defaults dir to use)
+AC_ARG_WITH(user-defaults-dir,[
+--with-user-defaults-dir
+ Set the GNUstep user defaults directory for all users. This can be
+ relative to the user's home directory if it is a relative path,
+ or an absolute directory (the same for all users) if it is an
+ absolute path. Use this option if you want to have the
+ GNUSTEP_USER_DEFAULTS_DIR directory in a non default place for
+ all users. The default is 'GNUstep/Defaults'
+ Example: --with-user-defaults-dir='GNUstep/Library/Defaults'
+],
+GNUSTEP_USER_DEFAULTS_DIR="$withval",)
+if test "$GNUSTEP_USER_DEFAULTS_DIR" = "" -o "$GNUSTEP_USER_DEFAULTS_DIR" = "no"; then
+ GNUSTEP_USER_DEFAULTS_DIR="GNUstep/Defaults"
+fi
+if echo "$GNUSTEP_USER_DEFAULTS_DIR" | grep -q '[[ \\]]'
+then
+ echo "found a backslash or space (illegal) in '$GNUSTEP_USER_DEFAULTS_DIR'"
+ echo "Please try again using --with-user-defaults-dir= to specify a value."
+ if test "$MSWIND" = "yes"
+ then
+ echo "Please note that on windows you must use unix-style paths within"
+ echo "the make package even though gnustep programs built in the mingw32"
+ echo "environment use native paths throughout."
+ fi
+ exit 1
+fi
+AC_MSG_RESULT($GNUSTEP_USER_DEFAULTS_DIR)
+AC_SUBST(GNUSTEP_USER_DEFAULTS_DIR)
+
+#--------------------------------------------------------------------
+# Setting up GNUSTEP_MAKEFILES
+#--------------------------------------------------------------------
+#
+# Please note that we do an explicit check in preparation for the (not
+# so far) future when this directory (like any other GNUstep
+# directory, eg, Applications or Tools or Libraries) will be
+# relocatable to anywhere you like.
+#
+AC_MSG_CHECKING(for GNUSTEP_MAKEFILES to use)
+GNUSTEP_MAKEFILES="$GNUSTEP_SYSTEM_ROOT/Library/Makefiles"
+AC_SUBST(GNUSTEP_MAKEFILES)
+AC_MSG_RESULT($GNUSTEP_MAKEFILES)
+
+#--------------------------------------------------------------------
+# Setting up the install-sh script
+#--------------------------------------------------------------------
+
+# HOST_INSTALL is the name of the install program in config.make so set it up
+# to point to the install-sh script in the GNUstep tree if no system install is
+# found.
+AC_SUBST(HOST_INSTALL)
+if test "$INSTALL" = "$ac_install_sh"; then
+ HOST_INSTALL="$GNUSTEP_MAKEFILES/$INSTALL"
+else
+ HOST_INSTALL="$INSTALL"
+fi
#--------------------------------------------------------------------
# Is the system flattened?
#--------------------------------------------------------------------
AC_MSG_CHECKING(for flattened directory structure)
-AC_ARG_ENABLE(flattened,
-[--disable-flattened Disable flattened directory structure],
+AC_ARG_ENABLE(flattened, [
+--disable-flattened
+ Disable flattened directory structure. Use this option if you want
+ to have support for multiple library combos and fat binaries. A
+ library combo specifies the Objective-C frameworks to use to compile
+ a program, so having multiple library combos is only useful if you
+ have (or plan to have) multiple OpenStep-like Objective-C frameworks
+ installed on your machine, for example both the Apple Cocoa Objective-C
+ frameworks and the GNUstep frameworks. Fat binaries allow you to
+ have multiple versions for different CPUs and Operating Systems.
+ Please note that using the fat directory structure will not blend
+ easily with native filesystems and so if you want the non-flattened
+ directory structure you probably want to install GNUstep using its
+ own default filesystem layout. To switch between different
+ library-combos, you also need to source GNUstep.sh after
+ setting the LIBRARY_COMBO environment variable. Please refer to
+ the documentation for more information on library-combos and fat
+ binaries.
+],
ac_cv_flattened=$enableval,
ac_cv_flattened="undefined")
# Unless you know what you are doing, stick with the default, which is
# also much faster when sourcing GNUstep.sh.
#
-AC_ARG_ENABLE(multi-platform,
-[--enable-multi-platform Use run time multi-platform support],
+AC_ARG_ENABLE(multi-platform, [
+--enable-multi-platform
+ Enable run-time multi-platform support. If this option is enabled,
+ then every time GNUstep.sh is run it will determine/guess the type
+ of local host machine instead of using the hardcoded value. Use
+ this together with --disable-flattened if you have a single GNUstep
+ installation with fat binaries that is being shared over the network
+ by a variety of machines with different hardware and o/s.
+],
ac_cv_multi_platform=$enableval,
ac_cv_multi_platform="undefined")
# Build backend bundles (on by default)
#--------------------------------------------------------------------
AC_ARG_ENABLE(backend-bundle, [
---disable-backend-bundle Compile gui backend as a library],
+--disable-backend-bundle
+ Compile GUI backend as a library. Use this option if the default
+ compilation of the GUI backend as a bundle (loadable module) is
+ not supported / does not work on your machine.
+],
ac_cv_backend=$enableval,
ac_cv_backend="yes")
#--------------------------------------------------------------------
# Miscellaneous flags and setup
#--------------------------------------------------------------------
-# Strip '-g' off of CFLAGS, since debug=yes adds that anyway
-CFLAGS=`echo $CFLAGS | sed -e 's/-g //'`
# Set location of GNUstep dirs for later use
if test "$GNUSTEP_FLATTENED" = yes; then
- GNUSTEP_LDIR="$prefix/Library/Libraries"
- GNUSTEP_HDIR="$prefix/Library/Headers"
+ GNUSTEP_LDIR="$GNUSTEP_SYSTEM_ROOT/Library/Libraries"
+ GNUSTEP_HDIR="$GNUSTEP_SYSTEM_ROOT/Library/Headers"
else
clean_target_os=`$srcdir/clean_os.sh $target_os`
clean_target_cpu=`$srcdir/clean_cpu.sh $target_cpu`
obj_dir="$clean_target_cpu/$clean_target_os"
- GNUSTEP_LDIR="$prefix/Library/Libraries/$obj_dir"
- GNUSTEP_HDIR="$prefix/Library/Headers/${ac_cv_library_combo}"
+ GNUSTEP_LDIR="$GNUSTEP_SYSTEM_ROOT/Library/Libraries/$obj_dir"
+ GNUSTEP_HDIR="$GNUSTEP_SYSTEM_ROOT/Library/Headers/${ac_cv_library_combo}"
fi
# Check to see if the libobjc library is in our GNUSTEP_SYSTEM_ROOT.
[dnl
gs_cv_objc_libdir=NONE
if test -f "$GNUSTEP_HDIR/objc/objc.h"; then
- if test -f "$GNUSTEP_LDIR/libobjc.a" -o -f "$GNUSTEP_LDIR/libobjc.so" -o -f "$GNUSTEP_LDIR/libobjc.dll.a"; then
+ if test -f "$GNUSTEP_LDIR/libobjc.a" -o -f "$GNUSTEP_LDIR/libobjc.so" -o -f "$GNUSTEP_LDIR/libobjc.dll.a" -o -f "$GNUSTEP_LDIR/libobjc-gnu.dylib"; then
gs_cv_objc_libdir="$GNUSTEP_LDIR"
else
gs_cv_objc_libdir=NONE
# The following are needed to compile the test programs
if test "$gs_cv_objc_libdir" = "$GNUSTEP_LDIR"; then
if test "$GNUSTEP_FLATTENED" = yes; then
- OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$prefix/Library/Headers"
+ OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$GNUSTEP_SYSTEM_ROOT/Library/Headers"
else
- OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$prefix/Library/Headers/${ac_cv_library_combo}"
+ OBJC_CPPFLAGS="$CPPFLAGS $INCLUDES -I$GNUSTEP_SYSTEM_ROOT/Library/Headers/${ac_cv_library_combo}"
fi
OBJC_LDFLAGS="$LDFLAGS $LIB_DIR -L$gs_cv_objc_libdir"
fi
#--------------------------------------------------------------------
AC_HEADER_DIRENT
AC_CHECK_HEADERS(sys/param.h sys/file.h dir.h string.h stdlib.h sys/types.h dnl
- fcntl.h limits.h utime.h sys/stat.h pwd.h unistd.h)
+ fcntl.h limits.h utime.h sys/stat.h pwd.h unistd.h ctype.h)
AC_CHECK_FUNCS(getpwnam getpwuid geteuid getlogin strchr)
#--------------------------------------------------------------------
# Check if libobjc was compiled with thread support.
#--------------------------------------------------------------------
OBJC_THREAD=
-AC_ARG_WITH(thread-lib,
-[--with-thread-lib Specify alternate thread library],
+AC_ARG_WITH(thread-lib,[
+--with-thread-lib
+ Specify alternate thread library. Use this flag if configure can
+ not properly determine the thread library used by your libobjc.
+],
OBJC_THREAD=$withval,
OBJC_THREAD=
)
+if test "$OBJC_THREAD" = no; then
+OBJC_THREAD=
+fi
AC_MSG_CHECKING(whether objc has thread support)
# Check if GCC supports -fobjc-exceptions, and if so, turn it on!
#--------------------------------------------------------------------
-AC_ARG_ENABLE(native-objc-exceptions,
- AC_HELP_STRING([--enable-native-objc-exceptions],
- [use native objective-c exceptions]),
- USE_OBJC_EXCEPTIONS=$enableval,
- USE_OBJC_EXCEPTIONS=no)
+AC_ARG_ENABLE(native-objc-exceptions, [
+--enable-native-objc-exceptions
+ Use native Objective-C exceptions. Use this option if you want
+ to use the native Objective-C exception support (@try/@catch/@finally)
+ provided by newer GCC compilers.
+],
+USE_OBJC_EXCEPTIONS=$enableval,
+USE_OBJC_EXCEPTIONS=no)
AC_MSG_CHECKING(whether we should use native ObjC exceptions)
if test x"$USE_OBJC_EXCEPTIONS" = x"yes"; then
# Too little for it to be worth for the common user who's more
# interested in the comments :-) so it's disabled by default.
AC_MSG_CHECKING(if we should strip makefiles after installation)
-AC_ARG_ENABLE(strip-makefiles,
-[--enable-strip-makefiles Enable stripping makefiles after installation],
+AC_ARG_ENABLE(strip-makefiles, [
+--enable-strip-makefiles
+ Enable stripping system makefiles after installation. This will
+ speed up gnustep-make by about 5% (average), but will remove all
+ comments from the installed makefiles. Those comments are quite
+ useful if you are trying to find some information on how gnustep-make
+ works (eg, if you're trying to locate a bug), and the performance
+ gain is quite small, so you probably don't want to strip makefiles.
+],
ac_cv_strip_makefiles=$enableval,
ac_cv_strip_makefiles="undefined")
fi
AC_SUBST(GNUSTEP_STRIP_MAKEFILES)
-
#--------------------------------------------------------------------
# Disable updating the obsolete directory structure
#--------------------------------------------------------------------
gs_move_obsolete=yes
-AC_ARG_ENABLE(move-obsolete,
-[--disable-move-obsolete Disable moving obsolete dir structure],
+AC_ARG_ENABLE(move-obsolete,[
+--disable-move-obsolete
+ Disable moving obsolete dir structure. This option will be
+ removed SOON as the dir structure was change more than 2 years ago! :-)
+],
gs_move_obsolete=$enableval,
gs_move_obsolete=yes)
# Produce the output files
#--------------------------------------------------------------------
AC_CONFIG_FILES([config.make openapp debugapp opentool
-executable.template GNUmakefile GNUstep.sh GNUstep.csh fixpath.sh
-gnustep-make.spec GNUsteprc])
+executable.template GNUmakefile GNUstep.conf GNUstep.sh GNUstep.csh fixpath.sh
+gnustep-make.spec])
AC_CONFIG_COMMANDS([default],
[[chmod a+x openapp debugapp opentool fixpath.sh executable.template]],
[[]])
exit 1
fi
+if [ -z "$GNUSTEP_MAKEFILES" ]; then
+ GNUSTEP_MAKEFILES = $GNUSTEP_SYSTEM_ROOT/Library/Makefiles
+fi
+
if [ -z "$GNUSTEP_FLATTENED" ]; then
#
# Determine the host information
#
if [ -z "$GNUSTEP_HOST" ]; then
- GNUSTEP_HOST=`$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/config.guess`
- GNUSTEP_HOST=`$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/config.sub $GNUSTEP_HOST`
+ GNUSTEP_HOST=`$GNUSTEP_MAKEFILES/config.guess`
+ GNUSTEP_HOST=`$GNUSTEP_MAKEFILES/config.sub $GNUSTEP_HOST`
export GNUSTEP_HOST
fi
if [ -z "$GNUSTEP_HOST_CPU" ]; then
- GNUSTEP_HOST_CPU=`$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/cpu.sh $GNUSTEP_HOST`
- GNUSTEP_HOST_CPU=`$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/clean_cpu.sh $GNUSTEP_HOST_CPU`
+ GNUSTEP_HOST_CPU=`$GNUSTEP_MAKEFILES/cpu.sh $GNUSTEP_HOST`
+ GNUSTEP_HOST_CPU=`$GNUSTEP_MAKEFILES/clean_cpu.sh $GNUSTEP_HOST_CPU`
export GNUSTEP_HOST_CPU
fi
if [ -z "$GNUSTEP_HOST_VENDOR" ]; then
- GNUSTEP_HOST_VENDOR=`$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/vendor.sh $GNUSTEP_HOST`
- GNUSTEP_HOST_VENDOR=`$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/clean_vendor.sh $GNUSTEP_HOST_VENDOR`
+ GNUSTEP_HOST_VENDOR=`$GNUSTEP_MAKEFILES/vendor.sh $GNUSTEP_HOST`
+ GNUSTEP_HOST_VENDOR=`$GNUSTEP_MAKEFILES/clean_vendor.sh $GNUSTEP_HOST_VENDOR`
export GNUSTEP_HOST_VENDOR
fi
if [ -z "$GNUSTEP_HOST_OS" ]; then
- GNUSTEP_HOST_OS=`$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/os.sh $GNUSTEP_HOST`
- GNUSTEP_HOST_OS=`$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/clean_os.sh $GNUSTEP_HOST_OS`
+ GNUSTEP_HOST_OS=`$GNUSTEP_MAKEFILES/os.sh $GNUSTEP_HOST`
+ GNUSTEP_HOST_OS=`$GNUSTEP_MAKEFILES/clean_os.sh $GNUSTEP_HOST_OS`
export GNUSTEP_HOST_OS
fi
appname="`echo \"$app\" | sed 's/\.[a-z]*$//'`"
appname="`basename \"$appname\"`"
appname="$appname$EXEEXT"
-. "$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/ld_lib_path.sh"
+. "$GNUSTEP_MAKEFILES/ld_lib_path.sh"
if [ "$LIBRARY_COMBO" = "apple-apple-apple" ]; then
exit 0
;;
--library-combo=*)
- tmp_root="$GNUSTEP_SYSTEM_ROOT"
- . "$tmp_root/@MAKEFILES_SUFFIX@/GNUstep-reset.sh"
- LIBRARY_COMBO=`echo "$1" | sed 's/--library-combo=//'`
- . "$tmp_root/@MAKEFILES_SUFFIX@/GNUstep.sh"
+ tmp_makefiles="$GNUSTEP_MAKEFILES"
+ if [ -z "$tmp_makefiles" ]; then
+ tmp_makefiles="$GNUSTEP_SYSTEM_ROOT/Library/Makefiles"
+ fi
+ . "$tmp_makefiles/GNUstep-reset.sh"
+ LIBRARY_COMBO=`echo "$1" | sed 's/--library-combo=//'`
+ . "$tmp_makefiles/GNUstep.sh"
shift
;;
--available-platforms)
#
# Determine the host information
#
+if [ -z "$GNUSTEP_MAKEFILES" ]; then
+ GNUSTEP_MAKEFILES = $GNUSTEP_SYSTEM_ROOT/Library/Makefiles
+fi
+
if [ -z "$GNUSTEP_HOST" ]; then
- GNUSTEP_HOST=`(cd /tmp; $GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/config.guess)`
- GNUSTEP_HOST=`(cd /tmp; $GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/config.sub $GNUSTEP_HOST)`
+ GNUSTEP_HOST=`(cd /tmp; $GNUSTEP_MAKEFILES/config.guess)`
+ GNUSTEP_HOST=`(cd /tmp; $GNUSTEP_MAKEFILES/config.sub $GNUSTEP_HOST)`
export GNUSTEP_HOST
fi
if [ -z "$GNUSTEP_HOST_CPU" ]; then
- GNUSTEP_HOST_CPU=`$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/cpu.sh $GNUSTEP_HOST`
- GNUSTEP_HOST_CPU=`$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/clean_cpu.sh $GNUSTEP_HOST_CPU`
+ GNUSTEP_HOST_CPU=`$GNUSTEP_MAKEFILES/cpu.sh $GNUSTEP_HOST`
+ GNUSTEP_HOST_CPU=`$GNUSTEP_MAKEFILES/clean_cpu.sh $GNUSTEP_HOST_CPU`
export GNUSTEP_HOST_CPU
fi
if [ -z "$GNUSTEP_HOST_VENDOR" ]; then
- GNUSTEP_HOST_VENDOR=`$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/vendor.sh $GNUSTEP_HOST`
- GNUSTEP_HOST_VENDOR=`$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/clean_vendor.sh $GNUSTEP_HOST_VENDOR`
+ GNUSTEP_HOST_VENDOR=`$GNUSTEP_MAKEFILES/vendor.sh $GNUSTEP_HOST`
+ GNUSTEP_HOST_VENDOR=`$GNUSTEP_MAKEFILES/clean_vendor.sh $GNUSTEP_HOST_VENDOR`
export GNUSTEP_HOST_VENDOR
fi
if [ -z "$GNUSTEP_HOST_OS" ]; then
- GNUSTEP_HOST_OS=`$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/os.sh $GNUSTEP_HOST`
- GNUSTEP_HOST_OS=`$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/clean_os.sh $GNUSTEP_HOST_OS`
+ GNUSTEP_HOST_OS=`$GNUSTEP_MAKEFILES/os.sh $GNUSTEP_HOST`
+ GNUSTEP_HOST_OS=`$GNUSTEP_MAKEFILES/clean_os.sh $GNUSTEP_HOST_OS`
export GNUSTEP_HOST_OS
fi
if [ "$lib_combo" != '*' ]; then
if [ -x "$lib_combo/$appname" ]; then
# Switch LIBRARY_COMBO on the fly
- tmp_root="$GNUSTEP_SYSTEM_ROOT"
- . "$tmp_root/@MAKEFILES_SUFFIX@/GNUstep-reset.sh"
+ tmp_makefiles="$GNUSTEP_MAKEFILES"
+ if [ -z "$tmp_makefiles" ]; then
+ tmp_makefiles="$GNUSTEP_SYSTEM_ROOT/Library/Makefiles"
+ fi
+ . "$tmp_makefiles/GNUstep-reset.sh"
LIBRARY_COMBO="$lib_combo"
- . "$tmp_root/@MAKEFILES_SUFFIX@/GNUstep.sh"
+ . "$tmp_makefiles/GNUstep.sh"
# Use the found executable
relative_path="$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/$LIBRARY_COMBO/$appname"
found=yes
fi
# Load up LD_LIBRARY_PATH
-. "$GNUSTEP_SYSTEM_ROOT/@MAKEFILES_SUFFIX@/ld_lib_path.sh"
+. "$GNUSTEP_MAKEFILES/ld_lib_path.sh"
exec "$full_appname/$relative_path" "$@"
# Create profile files
echo "#!/bin/sh" > mygnustep.sh
-echo ". %{gs_prefix}/System/@MAKEFILES_SUFFIX@/GNUstep.sh" >> mygnustep.sh
+echo ". %{gs_prefix}/System/Library/Makefiles/GNUstep.sh" >> mygnustep.sh
#echo "#!/bin/csh" > mygnustep.csh
-#echo "source %{gs_prefix}/System/@MAKEFILES_SUFFIX@/GNUstep.csh" >> mygnustep.csh
+#echo "source %{gs_prefix}/System/Library/Makefiles/GNUstep.csh" >> mygnustep.csh
chmod 755 mygnustep.*
mv mygnustep.sh $RPM_BUILD_ROOT/etc/profile.d/GNUstep.sh
#if [ $1 = 1]; then
#%ifos Linux
# if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
-# . %{gs_root}/@MAKEFILES_SUFFIX@/GNUstep.sh
+# . %{gs_root}/Library/Makefiles/GNUstep.sh
# fi
# grep -q '%{gs_prefix}/System/Library/Libraries/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/%{gs_libcombo}' /etc/ld.so.conf || echo "%{gs_prefix}/System/Library/Libraries/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/%{gs_libcombo}" >> /etc/ld.so.conf
#%endif
#if [ $1 = 0 ]; then
#%ifos Linux
# if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
-# . %{gs_root}/@MAKEFILES_SUFFIX@/GNUstep.sh
+# . %{gs_root}/Library/Makefiles/GNUstep.sh
# fi
# mv -f /etc/ld.so.conf /etc/ld.so.conf.orig
# grep -v "^%{gs_prefix}/System/Library/Libraries/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS/%{gs_libcombo}" /etc/ld.so.conf.orig > /etc/ld.so.conf
exit 1
fi
+if [ -z "$GNUSTEP_CONFIG_FILE" ]; then
+ GNUSTEP_CONFIG_FILE=@GNUSTEP_CONFIG_FILE@
+fi
+. $GNUSTEP_CONFIG_FILE
+
+. $GNUSTEP_SYSTEM_ROOT/Library/Makefiles/GNUstep.sh
+
if [ -z "$GNUSTEP_FLATTENED" ]; then
GNUSTEP_FLATTENED=@GNUSTEP_FLATTENED@
fi
# Remove leading slashes at the end of the application name
app="`echo \"$app\" | sed 's%/*$%%'`"
-# Now build the list of directory names we look for. If the user has
+# Now form the set of directory names we look for. If the user has
# given us a full application directory name (for example, Gorm.app)
# then we only search for the given directory name; if instead the
# user has given us the application name without the suffix (for
# Gorm.debug, then for Gorm.profile (in that order).
# If the appname is known, save it to avoid running a grep later to get it.
case "$app" in
- *.app) app_list="$app"; appname="";;
- *.debug) app_list="$app"; appname="";;
- *.profile) app_list="$app"; appname="";;
- *) app_list="$app.app:$app.debug:$app.profile"; appname="$app";
+ *.app) a1="$app"; a2=""; a3=""; appname="";;
+ *.debug) a1="$app"; a2=""; a3=""; appname="";;
+ *.profile) a1="$app"; a2=""; a3=""; appname="";;
+ *) a1="$app.app"; a2="$app.debug" a3="$app.profile"; appname="$app";
esac
-old_IFS="$IFS"
-IFS=:
case "$app" in
- /*) # An absolute path.
- for appdir in $app_list; do
- #echo "$appdir"
- if [ -d "$appdir" ]; then
+ /*) # An absolute path.
+ for appdir in "$a1" "$a2" "$a3"; do
+ if [ \( "" != "$appdir" \) -a \( -d "$appdir" \) ]; then
full_appname="$appdir"
break
fi
- done;;
+ done
+ ;;
*/*) # A relative path
- for appdir in $app_list; do
- #echo "$appdir"
- if [ -d "$appdir" ]; then
- full_appname="`(cd \"$appdir\"; pwd)`"
- break
- fi
- done;;
- *) # A path that should be searched into the GNUstep paths
- if [ -n "$GNUSTEP_PATHLIST" ]; then
- SPATH="$GNUSTEP_PATHLIST"
- else
- SPATH="$PATH"
- fi
- SPATH=".:$SPATH"
-
- for dir in $SPATH; do
- for appdir in $app_list; do
- # First, search in $dir/Applications/any_path_here/$appdir
- #echo "$dir/Applications/"'*'"/$appdir"
- for d in $dir/Applications/*/$appdir ; do
- # If nothing is found, * expands to '*'. Check that it's
- # not the case, and that we have a real match.
- if [ "$d" != "$dir/Applications/"'*'"/$appdir" ]; then
- #echo " $d"
- if [ -d "$d" ]; then
- full_appname="`(cd \"$d\"; pwd)`"
- break 3
- fi
- fi
- done
- # Now, in $dir/Applications/$appdir
- #echo "$dir/Applications/$appdir"
- if [ -d "$dir/Applications/$appdir" ]; then
+ for appdir in "$a1" "$a2" "$a3"; do
+ if [ \( "" != "$appdir" \) -a \( -d "$appdir" \) ]; then
+ full_appname="`(cd \"$appdir\"; pwd)`"
+ break
+ fi
+ done
+ ;;
+ *)
+ # We should first search the standard GNUstep locations.
+ for dir in "$GNUSTEP_USER_ROOT" "$GNUSTEP_LOCAL_ROOT" "$GNUSTEP_NETWORK_ROOT" "$GNUSTEP_SYSTEM_ROOT"; do
+ for appdir in "$a1" "$a2" "$a3"; do
+ # Standard locations ... in $dir/Applications/$appdir
+ if [ \( "" != "$appdir" \) -a \( -d "$dir/Applications/$appdir" \) ]; then
full_appname="`(cd \"$dir/Applications/$appdir\"; pwd)`"
break 2
fi
- # Finally, in $dir/$appdir
- #echo "$dir/$appdir"
- if [ -d "$dir/$appdir" ]; then
- full_appname="`(cd \"$dir/$appdir\"; pwd)`"
- break 2
- fi
done
- done;;
+ done
+ if [ -z "$full_appname" ]; then
+ # And now search the standard PATH (may include '.')
+ old_IFS="$IFS"
+ IFS=:
+ for dir in $PATH; do
+ for appdir in "$a1" "$a2" "$a3"; do
+ if [ \( "" != "$appdir" \) -a \( -d "$dir/$appdir" \) ]; then
+ full_appname="`(cd \"$dir/$appdir\"; pwd)`"
+ break 2
+ fi
+ done
+ done
+ IFS="$old_IFS"
+ fi
+ ;;
esac
-IFS="$old_IFS"
unset app_list
unset appdir
# is not specified. The arguments passed after the tool name are passed
# unmodified to the tool.
-if [ -z "$GNUSTEP_PATHLIST" ]; then
- echo "The GNUSTEP_PATHLIST environment variable is missing."
- echo "Did you forget to set up your environment using GNUstep.sh ?"
- exit 1
-fi
-
if [ -z "$1" ]; then
echo usage: `basename "$0"` [--library-combo=...] tool [arguments...]
echo `basename "$0"` --help for help
exit 1
fi
+if [ -z "$GNUSTEP_CONFIG_FILE" ]; then
+ GNUSTEP_CONFIG_FILE=@GNUSTEP_CONFIG_FILE@
+fi
+. $GNUSTEP_CONFIG_FILE
+
+. $GNUSTEP_SYSTEM_ROOT/Library/Makefiles/GNUstep.sh
+
if [ -z "$EXEEXT" ]; then
EXEEXT=@EXEEXT@
fi
do
case "$1" in
--library-combo=*)
- tmp_root="$GNUSTEP_SYSTEM_ROOT"
- . "$tmp_root/@MAKEFILES_SUFFIX@/GNUstep-reset.sh"
+ tmp_makefiles="$GNUSTEP_MAKEFILES"
+ if [ -z "$tmp_makefiles" ]; then
+ tmp_makefiles="$GNUSTEP_SYSTEM_ROOT/Library/Makefiles"
+ fi
+ . "$tmp_makefiles/GNUstep-reset.sh"
LIBRARY_COMBO=`echo "$1" | sed 's/--library-combo=//'`
- . "$tmp_root/@MAKEFILES_SUFFIX@/GNUstep.sh"
+ . "$tmp_makefiles/GNUstep.sh"
echo "Switched to library combo $LIBRARY_COMBO"
shift
;;
if [ -z "$full_toolname" ]; then
# Local tool not found - Search for an installed one
- # we search in GNUSTEP_PATHLIST, which means we
- # search in the order in:
+ # we search in the order in:
# GNUSTEP_USER_ROOT
# GNUSTEP_LOCAL_ROOT
# GNUSTEP_NETWORK_ROOT
# subdirectory, then the top-level directory.
# (For flattened systems we skip the first two options.
#
- if [ -n "$GNUSTEP_PATHLIST" ]; then
- SPATH="$GNUSTEP_PATHLIST"
- IFS=:
- for dir in $SPATH; do
- tmpdir="$dir/Tools"
- if [ -z "$GNUSTEP_FLATTENED" ]; then
- tmpgnudir="$dir/Tools/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS"
- tmplibdir="$tmpgnudir/$LIBRARY_COMBO"
- # echo "$tmplibdir/$tool";
- if [ -x "$tmplibdir/$tool" ]; then
- # echo "Found: $tmplibdir/$tool";
- full_toolname="$tmplibdir/$tool"
- break;
- fi
- if [ -x "$tmpgnudir/$tool" ]; then
- # echo "Found: $tmpgnudir/$tool";
- full_toolname="$tmpgnudir/$tool"
- break;
- fi
+ for dir in "$GNUSTEP_USER_ROOT" "$GNUSTEP_LOCAL_ROOT" "$GNUSTEP_NETWORK_ROOT" "$GNUSTEP_SYSTEM_ROOT" ; do
+ tmpdir="$dir/Tools"
+ if [ -z "$GNUSTEP_FLATTENED" ]; then
+ tmpgnudir="$dir/Tools/$GNUSTEP_HOST_CPU/$GNUSTEP_HOST_OS"
+ tmplibdir="$tmpgnudir/$LIBRARY_COMBO"
+ # echo "$tmplibdir/$tool";
+ if [ -x "$tmplibdir/$tool" ]; then
+ # echo "Found: $tmplibdir/$tool";
+ full_toolname="$tmplibdir/$tool"
+ break;
fi
- # echo "$tmpdir/$tool";
- if [ -x "$tmpdir/$tool" ]; then
- # echo "Found: $tmpdir/$tool";
- full_toolname="$tmpdir/$tool"
+ if [ -x "$tmpgnudir/$tool" ]; then
+ # echo "Found: $tmpgnudir/$tool";
+ full_toolname="$tmpgnudir/$tool"
break;
fi
+ fi
+ # echo "$tmpdir/$tool";
+ if [ -x "$tmpdir/$tool" ]; then
+ # echo "Found: $tmpdir/$tool";
+ full_toolname="$tmpdir/$tool"
+ break;
+ fi
done
unset tmpdir
unset tmpgnudir
unset tmplibdir
- IFS=" "
- fi
- fi
+ fi
;;
esac
exit 1
fi
-IFS=" "
-exec "$full_toolname" "$@"
+"$full_toolname" "$@"
+
$(GNUSTEP_HEADERS_FLAGS) \
$(GNUSTEP_FRAMEWORKS_FLAGS)
-ALL_AOT_JAVAFLAGS = $(INTERNAL_AOT_JAVAFLAGS) $(ADDITIONAL_AOT_JAVAFLAGS) \
- $(AUXILIARY_AOT_JAVAFLAGS) $(ADDITIONAL_INCLUDE_DIRS) \
+# if you need, you can define ADDITIONAL_CCFLAGS to add C++ specific flags
+ALL_CCFLAGS = $(ADDITIONAL_CCFLAGS) $(AUXILIARY_CCFLAGS)
+
+# If you need, you can define ADDITIONAL_OBJCCFLAGS to add ObjC++
+# specific flags. Please note that for maximum flexibility,
+# ADDITIONAL_OBJCFLAGS are *not* used to compile ObjC++. You can add
+# different additional flags to ObjC and to ObjC++ by specifying
+# different ADDITIONAL_OBJCFLAGS and ADDITIONAL_OBJCCFLAGS. The
+# internal ObjC flags instead are used in the same way for ObjC and
+# ObjC++. We have to use AUXILIARY_OBJCFLAGS though as gnustep-base
+# puts its NXConstantString flags in there. Presumably gnustep-base
+# could be changed to put them in AUXILIARY_OBJCCFLAGS too and then we
+# can remove AUXILIARY_OBJCCFLAGS from the following line, which would
+# be cleaner. :-)
+ALL_OBJCCFLAGS = $(INTERNAL_OBJCFLAGS) $(ADDITIONAL_OBJCCFLAGS) \
+ $(AUXILIARY_OBJCFLAGS) \
+ $(AUXILIARY_OBJCCFLAGS) $(ADDITIONAL_INCLUDE_DIRS) \
$(AUXILIARY_INCLUDE_DIRS) \
$(DERIVED_SOURCES_HEADERS_FLAG) \
-I. $(SYSTEM_INCLUDES) \
$(GNUSTEP_HEADERS_FLAGS) \
$(GNUSTEP_FRAMEWORKS_FLAGS)
-# if you need, you can define ADDITIONAL_CCFLAGS to add C++ specific flags
-ALL_CCFLAGS = $(ADDITIONAL_CCFLAGS) $(AUXILIARY_CCFLAGS)
-
INTERNAL_CLASSPATHFLAGS = -classpath ./$(subst ::,:,:$(strip $(ADDITIONAL_CLASSPATH)):)$(CLASSPATH)
ALL_JAVACFLAGS = $(INTERNAL_CLASSPATHFLAGS) $(INTERNAL_JAVACFLAGS) \
endif
ALL_LDFLAGS += $(ADDITIONAL_LDFLAGS) $(AUXILIARY_LDFLAGS) $(GUI_LDFLAGS) \
$(BACKEND_LDFLAGS) $(SYSTEM_LDFLAGS) $(INTERNAL_LDFLAGS)
+# In some cases, ld is used for linking instead of $(CC), so we can't use
+# this in ALL_LDFLAGS
+CC_LDFLAGS = $(RUNTIME_FLAG)
ALL_LIB_DIRS = $(ADDITIONAL_FRAMEWORK_DIRS) $(AUXILIARY_FRAMEWORK_DIRS) \
$(ADDITIONAL_LIB_DIRS) $(AUXILIARY_LIB_DIRS) \
.SUFFIXES:
# Then define our own.
-.SUFFIXES: .m .c .psw .java .h .cpp .cxx .C .cc .cp
+.SUFFIXES: .m .c .psw .java .h .cpp .cxx .C .cc .cp .mm
.PRECIOUS: %.c %.h $(GNUSTEP_OBJ_DIR)/%${OEXT}
$(ECHO_COMPILING)$(CC) $< -c \
$(filter-out $($<_FILE_FILTER_OUT_FLAGS),$(ALL_CPPFLAGS) \
$(ALL_OBJCFLAGS)) \
- $(PCH_INCLUDE_FLAG) \
- $($<_FILE_FLAGS) -o $@$(END_ECHO)
-
-$(GNUSTEP_OBJ_DIR)/%${OEXT} : %.java
- $(ECHO_COMPILING)$(CC) $< -c \
- $(filter-out -D%,$(ALL_CPPFLAGS) $(ALL_AOT_JAVAFLAGS)) \
- $(PCH_INCLUDE_FLAG) \
$($<_FILE_FLAGS) -o $@$(END_ECHO)
$(GNUSTEP_OBJ_DIR)/%${OEXT} : %.C
$(ALL_CCFLAGS)) \
$($<_FILE_FLAGS) -o $@$(END_ECHO)
-# precompiled header files
-# TODO: should go into GNUSTEP_OBJ_DIR?
-# TODO: we need to create the derived_src here because there is no rule yet
-# in the include path?
-GCH_SUFFIX=.h.gch
-$(DERIVED_SOURCES_DIR)/%$(GCH_SUFFIX): %.h
- $(ECHO_NOTHING)if ! test -d $(DERIVED_SOURCES_DIR); then \
- $(MKDIRS) $(DERIVED_SOURCES_DIR); \
- fi$(END_ECHO)
- $(ECHO_COMPILING)$(CC) -x objective-c-header $< -c \
+$(GNUSTEP_OBJ_DIR)/%${OEXT} : %.mm
+ $(ECHO_COMPILING)$(CC) $< -c \
$(filter-out $($<_FILE_FILTER_OUT_FLAGS),$(ALL_CPPFLAGS) \
- $(ALL_OBJCFLAGS)) \
+ $(ALL_OBJCCFLAGS)) \
$($<_FILE_FLAGS) -o $@$(END_ECHO)
%.class : %.java
$(ECHO_COMPILING)windres $< $@$(END_ECHO)
endif
+#
+# Special cygwin specific rules to compile Windows resource files (.rc files)
+# into object files. (this is the same rule as mingw32)
+#
+ifeq ($(findstring cygwin, $(GNUSTEP_TARGET_OS)), cygwin)
+# Add the .rc suffix on Windows.
+.SUFFIXES: .rc
+
+# A rule to generate a .o file from the .rc file.
+$(GNUSTEP_OBJ_DIR)/%${OEXT}: %.rc
+ $(ECHO_COMPILING)windres $< $@$(END_ECHO)
+endif
# The following dummy rules are needed for performance - we need to
# prevent make from spending time trying to compute how/if to rebuild
$(GNUSTEP_MAKEFILES)/*.make: ;
-$(GNUSTEP_MAKEFILES)/$(GNUSTEP_TARGET_DIR)/config.make: ;
+ifeq ($(GNUSTEP_FLATTENED)), )
+$(GNUSTEP_MAKEFILES)/$(GNUSTEP_TARGET_DIR)/$(LIBRARY_COMBO)/config.make: ;
+endif
$(GNUSTEP_MAKEFILES)/Additional/*.make: ;
# The rule to create the objects file directory.
$(GNUSTEP_OBJ_DIR):
+ifeq ($(HAS_LN_S),no)
+ $(ECHO_NOTHING)cd $(GNUSTEP_BUILD_DIR); \
+ $(MKDIRS) ./$(GNUSTEP_OBJ_DIR_NAME)$(END_ECHO)
+else
$(ECHO_NOTHING)cd $(GNUSTEP_BUILD_DIR); \
$(MKDIRS) ./$(GNUSTEP_OBJ_DIR_NAME); \
$(RM_LN_S) obj; \
$(LN_S) ./$(GNUSTEP_OBJ_DIR_NAME) obj$(END_ECHO)
+endif
endif
# rules.make loaded
(cd $(LIB_LINK_INSTALL_DIR); \
chown $(CHOWN_TO) $(LIB_LINK_FILE))
HAVE_BUNDLES = no
+BUNDLE_LINK_CMD = $(BUNDLE_LD) $(BUNDLE_LDFLAGS) $(ALL_LDFLAGS) \
+ -o $(LDOUT)$(BUNDLE_FILE) $(OBJ_FILES_TO_LINK) \
+ $(ALL_BUNDLE_LIBS)
####################################################
#
####################################################
#
-# MacOSX 10.[12], darwin[567]
+# MacOSX, darwin
#
ifeq ($(findstring darwin, $(GNUSTEP_TARGET_OS)), darwin)
ifeq ($(OBJC_RUNTIME_LIB), apple)
INTERNAL_LDFLAGS += -flat_namespace -undefined warning
-SHARED_LD_PREFLAGS += -Wl,-noall_load -read_only_relocs warning
+SHARED_LD_PREFLAGS += -Wl,-noall_load -read_only_relocs warning $(CC_LDFLAGS)
# Useful flag: -Wl,-single_module. This flag only
# works starting with 10.3. libs w/ffcall don't link on darwin/ix86 without it.
ifeq ($(findstring darwin7, $(GNUSTEP_TARGET_OS)), darwin7)
SHARED_LD_PREFLAGS += -single_module
endif
+ifeq ($(findstring darwin8, $(GNUSTEP_TARGET_OS)), darwin8)
+ SHARED_LD_PREFLAGS += -single_module
+ BUNDLE_LIBS += -lSystemStubs
+endif
SHARED_LIB_LINK_CMD = \
$(CC) \
$(SHARED_LD_PREFLAGS) \
endif
#
-# end MacOSX 10.2, darwin6
+# end MacOSX, darwin
#
####################################################
####################################################
#
-# NetBSD
+# NetBSD (ELF)
#
ifeq ($(findstring netbsd, $(GNUSTEP_TARGET_OS)), netbsd)
-# This is disabled temporarily, because I don't know exactly how
-# to link shared libs. Everything seems to link correctly now but
-# constructor functions in the shared lib failed to get called
-# when the lib is loaded in. I don't know why. ASF.
-HAVE_SHARED_LIBS = no
-SHARED_LD = ld
-SHARED_LIB_LINK_CMD = \
- $(SHARED_LD) -x -Bshareable -Bforcearchive \
- $(ALL_LDFLAGS) -o $(LIB_LINK_OBJ_DIR)/$(LIB_LINK_VERSION_FILE) $^ /usr/lib/c++rt0.o;\
- (cd $(LIB_LINK_OBJ_DIR); \
- $(RM_LN_S) $(LIB_LINK_FILE); \
- $(LN_S) $(LIB_LINK_VERSION_FILE) $(LIB_LINK_FILE))
+HAVE_SHARED_LIBS = yes
+SHARED_LD_POSTFLAGS = -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
+SHARED_LIB_LINK_CMD = \
+ $(CC) -shared -Wl,-soname,$(LIB_LINK_VERSION_FILE) \
+ $(ALL_LDFLAGS) -o $(LIB_LINK_OBJ_DIR)/$(LIB_LINK_VERSION_FILE) \
+ $^ $(INTERNAL_LIBRARIES_DEPEND_UPON) \
+ $(SHARED_LD_POSTFLAGS); \
+ (cd $(LIB_LINK_OBJ_DIR); \
+ $(RM_LN_S) $(LIB_LINK_FILE); \
+ $(LN_S) $(LIB_LINK_VERSION_FILE) $(LIB_LINK_FILE))
+OBJ_MERGE_CMD = \
+ $(CC) -nostdlib -r $(ALL_LDFLAGS) -o $(GNUSTEP_OBJ_DIR)/$(SUBPROJECT_PRODUCT) $^ ;
-SHARED_CFLAGS += -shared -fpic
-SHARED_LIBEXT = .so
+SHARED_CFLAGS += -fPIC
+SHARED_LIBEXT = .so
-HAVE_BUNDLES = yes
+HAVE_BUNDLES = yes
BUNDLE_LD = $(CC)
-BUNDLE_LDFLAGS += -shared -fpic
-#ADDITIONAL_LDFLAGS += -rdynamic
+BUNDLE_LDFLAGS += -shared
+ADDITIONAL_LDFLAGS += -rdynamic -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib
+ADDITIONAL_INCLUDE_DIRS += -I/usr/pkg/include
STATIC_LDFLAGS += -static
endif
#
####################################################
#
-# NetBSD ELF
+# DragonFly
#
-ifeq ($(findstring netbsdelf, $(GNUSTEP_TARGET_OS)), netbsdelf)
+ifeq ($(findstring dragonfly, $(GNUSTEP_TARGET_OS)), dragonfly)
HAVE_SHARED_LIBS = yes
SHARED_LD_POSTFLAGS = -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
SHARED_LIB_LINK_CMD = \
STATIC_LDFLAGS += -static
endif
#
-# end NetBSD
+# end DragonFly
#
####################################################
# OpenBSD 3.x (though set for 3.3)
#
ifeq ($(findstring openbsd, $(GNUSTEP_TARGET_OS)), openbsd)
-# This is disabled temporarily, because I don't know exactly how
-# to link shared libs. Everything seems to link correctly now but
-# constructor functions in the shared lib failed to get called
-# when the lib is loaded in. I don't know why. ASF.
HAVE_SHARED_LIBS = yes
SHARED_LIB_LINK_CMD = \
$(CC) -shared -Wl,-soname,$(LIB_LINK_SONAME_FILE) \
HAVE_BUNDLES = yes
BUNDLE_LD = $(CC)
BUNDLE_LDFLAGS += -shared -fPIC
-#ADDITIONAL_LDFLAGS += -rdynamic
+ADDITIONAL_LDFLAGS += -Wl,-E
STATIC_LDFLAGS += -static
+
+# nm on OpenBSD is rather like on Darwin
+EXTRACT_CLASS_NAMES_COMMAND = nm -g $$object_file | sed -n -e '/[^U] __objc_class_name_/ {s/[0-9a-f]* [^U] __objc_class_name_//p;}'
endif
#
# end OpenBSD 3.x
# symbols to export, creates the DLL (eg, obj/gnustep-base.dll) and
# the import library (eg, obj/libgnustep-base.dll.a).
SHARED_LIB_LINK_CMD = \
- $(CC) $(SHARED_LD_PREFLAGS) -shared -Wl,--out-implib,$(LIB_LINK_OBJ_DIR)/$(LIB_LINK_VERSION_FILE) \
+ $(CC) $(SHARED_LD_PREFLAGS) -shared \
+ -Wl,--enable-auto-image-base \
+ -Wl,--out-implib,$(LIB_LINK_OBJ_DIR)/$(LIB_LINK_VERSION_FILE) \
$(ALL_LDFLAGS) -o $(LIB_LINK_OBJ_DIR)/$(LIB_LINK_DLL_FILE) $^ \
$(INTERNAL_LIBRARIES_DEPEND_UPON) \
$(SHARED_LD_POSTFLAGS)
HAVE_BUNDLES = yes
BUNDLE_LD = $(CC)
-BUNDLE_LDFLAGS += -shared
+BUNDLE_LDFLAGS += -shared -Wl,--enable-auto-image-base
+ADDITIONAL_LDFLAGS += -Wl,--enable-auto-import
# On Mingw32, it looks like the class name symbols start with '___' rather
# than '__'
ifeq ($(findstring cygwin, $(GNUSTEP_TARGET_OS)), cygwin)
shared = yes
HAVE_SHARED_LIBS = yes
+# This command links the library, generates automatically the list of
+# symbols to export, creates the DLL (eg, obj/gnustep-base.dll) and
+# the import library
+SHARED_LIB_LINK_CMD = \
+ $(CC) $(SHARED_LD_PREFLAGS) -shared -o $(LIB_LINK_OBJ_DIR)/$(LIB_LINK_DLL_FILE) \
+ -Wl,--out-implib=$(LIB_LINK_OBJ_DIR)/$(LIB_LINK_VERSION_FILE) \
+ -Wl,--export-all-symbols \
+ -Wl,--enable-auto-import \
+ -Wl,--whole-archive $(OBJ_FILES_TO_LINK) $(ALL_LDFLAGS) \
+ -Wl,--no-whole-archive $(INTERNAL_LIBRARIES_DEPEND_UPON) $(TARGET_SYSTEM_LIBS)\
+ $(SHARED_LD_POSTFLAGS)
+
+AFTER_INSTALL_SHARED_LIB_CMD =
+AFTER_INSTALL_SHARED_LIB_CHOWN =
+SHARED_LIBEXT = .dll.a
+
BUILD_DLL = yes
-OLD_DLL_SUPPORT = yes
-SHARED_LIBEXT = .a
+CYGWIN_DLL_SUPPORT = yes
+#SHARED_LIBEXT = .a
DLL_LIBEXT = .dll
-DLLTOOL = dlltool
-DLLWRAP = dllwrap
+REBASE = rebase
+REBASE_FLAGS = -d -b 0x68000000 -o 0x10000
+CYGWIN_LD_FLAGS = -Wl,--export-all-symbols -Wl,--enable-auto-import
#SHARED_CFLAGS +=
OBJ_MERGE_CMD = \
- $(CC) -nostdlib -r $(ALL_LDFLAGS) -o $(GNUSTEP_OBJ_DIR)/$(SUBPROJECT_PRODUCT) $^ ;
+ $(CC) -nostdlib -r $(ALL_LDFLAGS) $(CYGWIN_LD_FLAGS) -o $(GNUSTEP_OBJ_DIR)/$(SUBPROJECT_PRODUCT) $^ ;
HAVE_BUNDLES = yes
BUNDLE_LD = $(CC)
-BUNDLE_LDFLAGS += -nodefaultlibs -Xlinker -r
+BUNDLE_LDFLAGS += -shared -Wl,--export-all-symbols \
+ -Wl,--enable-auto-import \
+ -Wl,--whole-archive
+BUNDLE_LIBFLAGS += -Wl,--no-whole-archiv
+BUNDLE_LINK_CMD = \
+ $(BUNDLE_LD) $(BUNDLE_LDFLAGS) $(ALL_LDFLAGS) \
+ -o $(LDOUT)$(BUNDLE_FILE) \
+ $(OBJ_FILES_TO_LINK) \
+ $(BUNDLE_LIBFLAGS) $(ALL_BUNDLE_LIBS); \
+ $(REBASE) $(REBASE_FLAGS) $(BUNDLE_FILE)
endif
# end Cygwin
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/*
-
+
Command line arguments are:
- * a list of library search paths in the GCC notation, as in
+ * a list of library search paths in the GCC notation, as in
-L/usr/lib/opt/hack/
-L/usr/GNUstep/Local/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/usr/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu
* a list of libraries in the GCC notation, as in
-lgnustep-base -lgnustep-gui -lobjc
- * flags specifying whether a debug, profile, static/shared library is
- to be preferred, as in
- debug=no profile=yes shared=yes
+ * flags specifying whether a profile, static/shared library is
+ to be preferred, as in profile=yes shared=yes
The tool outputs the same list of library search paths and the list
of libraries it received in input, with an important modification:
each library name is modified to match the available version of the
- library (by appending nothing for a normal library, _d for a debug
- version of the library, _p for a profile one, _s for a static one,
- and the various combinations, _dp, _ds, _ps, _dps) -- giving
- preference to libraries matching the specified debug, profile,
- shared library flags. For example, if a debug=yes profile=no
- shared=yes is specified, and libgnustep-base_d.so is in the library
+ library (by appending nothing for a normal or debug library,
+ _p for a profile one, _s for a static one, and _ps for both ) -- giving
+ preference to libraries matching the specified profile,
+ shared library flags. For example, if a profile=yes
+ shared=yes is specified, and libgnustep-base_p.so is in the library
search path, which_lib will replace -lgnustep-base with
- -lgnustep-base_d in the output.
+ -lgnustep-base_p in the output.
Here is exactly how the search is performed:
is performed on the list of directories, and uses the shared flags
as specified.
- If (debug=yes and profile=yes), the tool looks for a debug=yes
- profile=no, then a debug=no profile=yes.
-
- If (debug=yes and profile=no), the tool looks for a debug=no
- profile=no.
-
- If (debug=no and profile=yes), the tool looks for a debug=no
- profile=no.
-
- If (debug=no and profile=no), the tool looks for a debug=yes
- profile=no.
-
If none is still found and shared=yes, the tool looks for any
available shared library with that name (regardless of wheter it's
- debug/profile/nothing).
+ profile/nothing).
If none is still found, the tool looks for any available static
- library with that name (regardless of any debug/profile/shared
+ library with that name (regardless of any profile/shared
flag).
If still not found, the tool outputs the unmodified library name (as
# include <string.h>
#endif
+#if HAVE_CTYPE_H
+# include <ctype.h>
+#endif
+
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
/* Strips off carriage returns, newlines and spaces at the end of the
string. (this removes some \r\n issues on Windows) */
-static void stripstr (unsigned char *s)
+static void stripstr (char *s)
{
unsigned len;
-
+
if (s == NULL)
{
return;
}
-
+
len = strlen ((char *)s);
-
- while (len > 0)
+ while (len > 0)
{
len--;
- if (s[len] < 33)
+ if (isspace(s[len]))
{
s[len] = '\0';
}
int length = strlen (path);
char *normalized_path = NULL;
struct stat statbuf;
-
+
#ifdef __MINGW32__
if (path[0] == '/' && path[1] == '/')
{
/* Convert //server/path/to/ --> server/path/to/ */
normalized_path = malloc (length * sizeof (char));
strcpy (normalized_path, &(path[2]));
-
+
/* Convert server/path/to/ --> server:/path/to/ */
s = strchr (normalized_path, '/');
if (s)
normalized_path = malloc ((length + 1) * sizeof (char));
strcpy (normalized_path, path);
}
-
+
/* Now check that the path exists and is a directory. */
- if (stat (normalized_path, &statbuf) < 0)
+ if (stat (normalized_path, &statbuf) < 0)
/* Error occured or dir doesn't exist */
{
if (show_all)
free (normalized_path);
return NULL;
}
- else if ((statbuf.st_mode & S_IFMT) != S_IFDIR)
+ else if ((statbuf.st_mode & S_IFMT) != S_IFDIR)
/* Not a directory */
{
if (show_all)
extension ext.
library_name must not contain the suffix, so library_name should
- be something like 'gnustep-base'.
+ be something like 'gnustep-base'.
suffix is the wanted suffix (valid suffixes are "", _d, _p, _s,
_ds, _dp, _ps, _dps). Must not be NULL.
Return 1 if a library with the appropriate suffix/extension/type
matches in 'path' and print to stdout the name of the library. */
-static int search_for_lib_with_suffix_and_ext (const char *library_name,
- char **library_paths,
- int paths_no,
+static int search_for_lib_with_suffix_and_ext (const char *library_name,
+ char **library_paths,
+ int paths_no,
char *suffix,
char *ext)
{
{
char full_filename[PATH_MAX + 1];
struct stat statbuf;
-
+
+#ifdef __MINGW32__
+ if (strcmp (ext, ".dll.a") == 0)
+ {
+ /* Mingw can link against dlls directly, so if we're
+ * currently searching for libxxx.dll.a, make a try first at
+ * xxx.dll. The standard algorithm will search for
+ * libxxx.dll.a (and failing that libxxx.a) later.
+ */
+ strcpy (full_filename, library_paths[i]);
+ strcat (full_filename, "/");
+ strcat (full_filename, library_name);
+ strcat (full_filename, suffix);
+ strcat (full_filename, ".dll");
+ if (show_all)
+ {
+ fprintf (stderr, " %s\n", full_filename);
+ }
+
+ if (stat (full_filename, &statbuf) >= 0)
+ {
+ goto library_found;
+ }
+ }
+#endif
+
strcpy (full_filename, library_paths[i]);
strcat (full_filename, "/lib");
strcat (full_filename, library_name);
strcat (full_filename, suffix);
strcat (full_filename, ext);
-
+
if (show_all)
{
fprintf (stderr, " %s\n", full_filename);
}
-
+
if (stat (full_filename, &statbuf) < 0)
/* Error - likely that file doesn't exist. */
{
continue;
}
+
+#ifdef __MINGW32__
+ library_found:
+#endif
- if ((statbuf.st_mode & S_IFMT) == S_IFREG)
+ if ((statbuf.st_mode & S_IFMT) == S_IFREG)
/* Found it! */
- {
+ {
if (show_all)
{
fprintf (stderr, " Found!\n");
_d, _p, _s, _ds, _dp, _ps, _dps).
*/
-static int search_for_lib_with_ext (const char *library_name,
+static int search_for_lib_with_ext (const char *library_name,
int library_name_len,
- char **library_paths,
- int paths_no,
+ char **library_paths,
+ int paths_no,
char *ext)
{
/* Iterate over the library_paths, looking for the library. */
int i;
-
+
for (i = 0; i < paths_no; i++)
{
DIR* dir;
struct dirent* dirbuf;
int found = 0;
-
+
if (show_all)
{
fprintf (stderr, " %s/lib%s??%s\n", library_paths[i],
library_name, ext);
}
-
+
dir = opendir (library_paths[i]);
-
+
if (dir == NULL)
{
/* For some reasons, we can't read that path. Perhaps
someone removed the directory while we were running :-) */
continue;
}
-
- while ((dirbuf = readdir (dir)))
+
+ while ((dirbuf = readdir (dir)))
{
/* Skip if it doesn't begin with 'lib'. This implicitly
skips "." and ".." in case they are returned. */
{
continue;
}
-
+
/* Skip if it does not match the library name. */
if (strncmp (dirbuf->d_name + 3, library_name, library_name_len))
{
else
{
int filelen, extlen;
-
+
filelen = strlen (dirbuf->d_name);
extlen = strlen (ext);
-
+
if (filelen - extlen <= 0)
{
/* Quite worrying this case. */
continue;
}
-
+
if (show_all)
{
fprintf (stderr, " Considering %s\n", dirbuf->d_name);
}
-
+
/* First check if the extension matches */
if (strcmp (dirbuf->d_name + filelen - extlen, ext))
{
/* No luck, skip this file */
continue;
}
-
+
/* The extension matches. Check the last remaining bit
- that the remaining string we have not checked is
one of the allowed suffixes. The allowed suffixes
char f_suffix[5];
int j;
int suffix_len = filelen - (3 /* 'lib' */
-
- + library_name_len
+
+ + library_name_len
/* library_name */
-
+
+ extlen /* .so/.a */);
-
+
switch (suffix_len)
{
/* In the following cases, 'break' means found,
{
/* Must be one of _d, _p, _s */
char c;
-
+
if (dirbuf->d_name[3 + library_name_len] != '_')
{
continue;
}
-
+
c = dirbuf->d_name[3 + library_name_len + 1];
if (c != 'd' || c != 'p' || c != 's')
{
{
/* Must be one of _dp, _ds, _ps */
char c, d;
-
+
if (dirbuf->d_name[3 + library_name_len] != '_')
{
continue;
}
-
+
c = dirbuf->d_name[3 + library_name_len + 1];
d = dirbuf->d_name[3 + library_name_len + 2];
if ((c == 'd' && (d == 'p' || d == 's'))
continue;
}
}
-
+
/* If we're here, it's because it was found! */
if (show_all)
{
fprintf (stderr, " Found!\n");
}
-
+
for (j = 0; j < suffix_len; j++)
{
f_suffix[j] = dirbuf->d_name[library_name_len + 3 + j];
}
/* Search for the library everywhere, and returns the library name. */
-static void output_library_name (const char *library_name,
- char** library_paths, int paths_no,
- int debug, int profile, int shared,
+static void output_library_name (const char *library_name,
+ char** library_paths, int paths_no,
+ int profile, int shared,
char *libname_suffix)
{
char *extension = shared ? shared_libext : libext;
int library_name_len = strlen (library_name);
-
+
if (show_all)
{
fprintf (stderr, "\n>>Library %s:\n", library_name);
}
-
+
/* We first perform the search of a matching library in all dirs. */
if (show_all)
{
fprintf (stderr, "Scanning all paths for an exact match\n");
}
-
+
if (search_for_lib_with_suffix_and_ext (library_name,
- library_paths, paths_no,
+ library_paths, paths_no,
libname_suffix,
extension))
{
return;
}
-
-
+
+
/* The library was not found. Try various approximations first,
- slightly messing the original debug/profile requests, but still
+ slightly messing the original profile requests, but still
honouring the shared=yes|no requirement. */
if (show_all)
{
fprintf (stderr, "Scanning all paths for an approximate match\n");
}
-
- /* _dp case: try _d, then _p */
- if (debug && profile)
+
+ /* _p: try nothing. */
+ if (profile)
{
- if (search_for_lib_with_suffix_and_ext (library_name,
- library_paths, paths_no,
- shared ? "_d" : "_ds",
- extension))
- {
- return;
- }
-
- if (search_for_lib_with_suffix_and_ext (library_name,
- library_paths, paths_no,
- shared ? "_p" : "_ps",
+ if (search_for_lib_with_suffix_and_ext (library_name,
+ library_paths, paths_no,
+ shared ? "" : "_s",
extension))
{
return;
}
}
-
- /* _d or _p: try nothing. */
- if ((debug && !profile) || (!debug && profile))
- {
- if (search_for_lib_with_suffix_and_ext (library_name,
- library_paths, paths_no,
- shared ? "" : "_s",
- extension))
- {
- return;
- }
- }
-
- /* nothing: try _d. */
- if (!debug && !profile)
- {
- if (search_for_lib_with_suffix_and_ext (library_name,
- library_paths, paths_no,
- shared ? "_d" : "_ds",
- extension))
- {
- return;
- }
- }
/* The library was still not found. Try to get whatever library we
have there. */
-
+
/* If a shared library is needed try to find a shared one first.
Any shared library is all right. */
if (shared)
{
if (show_all)
{
- fprintf (stderr,
+ fprintf (stderr,
"Scanning all paths for any shared lib with that name\n");
}
- if (search_for_lib_with_ext (library_name, library_name_len,
+ if (search_for_lib_with_ext (library_name, library_name_len,
library_paths, paths_no, shared_libext))
{
return;
}
}
-
+
/* Last hope - return a static library with name 'library_name'.
Any static library is all right. */
if (show_all)
{
- fprintf (stderr,
+ fprintf (stderr,
"Scanning all paths for any static lib with that name\n");
}
- if (search_for_lib_with_ext (library_name, library_name_len,
+ if (search_for_lib_with_ext (library_name, library_name_len,
library_paths, paths_no, libext))
{
return;
}
-
+
/* We couldn't locate the library. Output the library name we were
given, without any modification. Possibly it's somewhere else on
the linker path, otherwise (more likely) a linker error will
int i;
/* Type of libraries we prefer. */
- int debug = 0;
int profile = 0;
int shared = 1;
- /* Suffix of the libraries we prefer - something like "" or "_d" or
- "_dp" or "_ps" */
+ /* Suffix of the libraries we prefer - something like "" or
+ "_p" or "_ps" */
char libname_suffix[5];
/* Array of strings that are the library paths passed on the command
/* The list of libraries */
int libraries_no = 0;
char** all_libraries = NULL;
-
+
/* Other flags which are printed to the output as they are. */
int other_flags_no = 0;
char** other_flags = NULL;
-
+
#ifdef __WIN32__
setmode(1, O_BINARY);
setmode(2, O_BINARY);
#endif
- if (argc == 1)
+ if (argc == 1)
{
- printf ("usage: %s [-Lpath ...] -llibrary shared=yes|no debug=yes|no "
+ printf ("usage: %s [-Lpath ...] -llibrary shared=yes|no "
"profile=yes|no libext=string shared_libext=string "
"[show_all=yes]\n", argv[0]);
exit (1);
}
- for (i = 1; i < argc; i++)
+ for (i = 1; i < argc; i++)
{
/* First switch basing on the first letter of each argument,
then compare. */
if (all_libraries)
{
all_libraries = realloc (all_libraries,
- (libraries_no + 1)
+ (libraries_no + 1)
* sizeof (char*));
}
else
{
- all_libraries = malloc ((libraries_no + 1)
+ all_libraries = malloc ((libraries_no + 1)
* sizeof (char*));
}
all_libraries[libraries_no] = malloc (strlen (argv[i]) - 1);
/* Always print out the library search path flag,
regardless. */
printf (" %s", argv[i]);
-
+
if (lib_path != NULL)
{
if (library_paths)
{
- library_paths = realloc (library_paths,
- (paths_no + 1)
+ library_paths = realloc (library_paths,
+ (paths_no + 1)
* sizeof (char*));
}
else
{
- library_paths = malloc ((paths_no + 1)
+ library_paths = malloc ((paths_no + 1)
* sizeof(char*));
}
library_paths[paths_no] = lib_path;
}
case 'd':
{
- if (!strncmp (argv[i], "debug=", 6))
+ if (!strncmp (argv[i], "debug=", 6))
{
- debug = !strncmp (argv[i] + 6, "yes", 3);
continue;
}
break;
}
case 'l':
{
- if (!strncmp (argv[i], "libext=", 7))
+ if (!strncmp (argv[i], "libext=", 7))
{
libext = malloc (strlen (argv[i] + 7) + 1);
strcpy (libext, argv[i] + 7);
}
case 'p':
{
- if (!strncmp (argv[i], "profile=", 8))
+ if (!strncmp (argv[i], "profile=", 8))
{
profile = !strncmp (argv[i] + 8, "yes", 3);
continue;
}
case 's':
{
- if (!strncmp (argv[i], "shared=", 7))
+ if (!strncmp (argv[i], "shared=", 7))
{
shared = !strncmp (argv[i] + 7, "yes", 3);
continue;
}
- else if (!strncmp (argv[i], "shared_libext=", 14))
+ else if (!strncmp (argv[i], "shared_libext=", 14))
{
shared_libext = malloc (strlen (argv[i] + 14) + 1);
strcpy (shared_libext, argv[i] + 14);
continue;
}
- else if (!strncmp (argv[i], "show_all=", 9))
+ else if (!strncmp (argv[i], "show_all=", 9))
{
show_all = !strncmp (argv[i] + 9, "yes", 3);
continue;
default:
break;
}
-
+
/* The flag is something different; keep it in the `other_flags' */
if (other_flags)
{
libname_suffix[4] = '\0';
i = 1;
-
- if (debug)
- {
- libname_suffix[i] = 'd';
- i++;
- }
if (profile)
{
libname_suffix[0] = '\0';
}
-
+
if (show_all)
{
fprintf (stderr, ">>Input:\n");
fprintf (stderr, "shared = %d\n", shared);
- fprintf (stderr, "debug = %d\n", debug);
fprintf (stderr, "profile = %d\n", profile);
fprintf (stderr, "libname_suffix = %s\n", libname_suffix);
fprintf (stderr, "libext = %s\n", libext);
{
fprintf (stderr, " %s\n", all_libraries[i]);
}
-
+
fprintf (stderr, "library paths:\n");
for (i = 0; i < paths_no; i++)
{
fprintf (stderr, " %s\n", library_paths[i]);
}
-
+
fprintf (stderr, "other flags:\n");
for (i = 0; i < other_flags_no; i++)
{
}
/* Now output the libraries. */
- for (i = 0; i < libraries_no; i++)
+ for (i = 0; i < libraries_no; i++)
{
/* Search for the library, and print (using -l%s) the library
name to standard output. */
- output_library_name (all_libraries[i], library_paths,
- paths_no, debug, profile, shared, libname_suffix);
+ output_library_name (all_libraries[i], library_paths,
+ paths_no, profile, shared, libname_suffix);
}
-
+
/* Output the other flags */
for (i = 0; i < other_flags_no; i++)
{