New configure-based build system. Still work in progress, but much improved
authorSam Lantinga <slouken@libsdl.org>
Thu, 16 Feb 2006 10:11:48 +0000
changeset 136119418e4422cb
parent 1360 70a9cfb4cf1b
child 1362 88ddeb76c9c1
New configure-based build system. Still work in progress, but much improved
Makefile.am
SDL.spec.in
TODO
acinclude.m4
autogen.sh
build-scripts/config.guess
build-scripts/config.sub
build-scripts/install-sh
build-scripts/ltmain.sh
build-scripts/makedep.sh
build-scripts/mkinstalldirs
build-scripts/strip_fPIC.sh
config.guess
config.sub
configure.in
include/SDL_config.h
include/SDL_config.h.in
include/SDL_error.h
include/SDL_stdinc.h
include/SDL_syswm.h
ltmain.sh
sdl-config.in
src/Makefile.am
src/SDL.c
src/SDL_error.c
src/SDL_loadso.c
src/audio/Makefile.am
src/audio/SDL_audio.c
src/audio/SDL_audiomem.c
src/audio/SDL_audiomem.h
src/audio/SDL_sysaudio.h
src/audio/SDL_wave.c
src/audio/alsa/Makefile.am
src/audio/alsa/SDL_alsa_audio.c
src/audio/alsa/SDL_alsa_audio.h
src/audio/amigaos/Makefile.am
src/audio/amigaos/SDL_ahiaudio.c
src/audio/amigaos/SDL_ahiaudio.h
src/audio/arts/Makefile.am
src/audio/arts/SDL_artsaudio.c
src/audio/arts/SDL_artsaudio.h
src/audio/baudio/Makefile.am
src/audio/baudio/SDL_beaudio.cc
src/audio/baudio/SDL_beaudio.h
src/audio/dart/SDL_dart.c
src/audio/dart/SDL_dart.h
src/audio/dc/Makefile.am
src/audio/dc/SDL_dcaudio.c
src/audio/dc/SDL_dcaudio.h
src/audio/disk/Makefile.am
src/audio/disk/SDL_diskaudio.c
src/audio/disk/SDL_diskaudio.h
src/audio/dma/Makefile.am
src/audio/dma/SDL_dmaaudio.c
src/audio/dma/SDL_dmaaudio.h
src/audio/dmedia/Makefile.am
src/audio/dmedia/SDL_irixaudio.c
src/audio/dmedia/SDL_irixaudio.h
src/audio/dsp/Makefile.am
src/audio/dsp/SDL_dspaudio.c
src/audio/dsp/SDL_dspaudio.h
src/audio/esd/Makefile.am
src/audio/esd/SDL_esdaudio.c
src/audio/esd/SDL_esdaudio.h
src/audio/macosx/Makefile.am
src/audio/macosx/SDL_coreaudio.c
src/audio/macosx/SDL_coreaudio.h
src/audio/macrom/Makefile.am
src/audio/macrom/SDL_romaudio.c
src/audio/macrom/SDL_romaudio.h
src/audio/mint/Makefile.am
src/audio/mint/SDL_mintaudio.h
src/audio/mint/SDL_mintaudio_dma8.c
src/audio/mint/SDL_mintaudio_gsxb.c
src/audio/mint/SDL_mintaudio_mcsn.c
src/audio/mint/SDL_mintaudio_stfa.c
src/audio/mint/SDL_mintaudio_xbios.c
src/audio/mme/Makefile.am
src/audio/mme/SDL_mmeaudio.c
src/audio/mme/SDL_mmeaudio.h
src/audio/nas/Makefile.am
src/audio/nas/SDL_nasaudio.c
src/audio/nas/SDL_nasaudio.h
src/audio/nto/Makefile.am
src/audio/nto/SDL_nto_audio.c
src/audio/nto/SDL_nto_audio.h
src/audio/openbsd/Makefile.am
src/audio/openbsd/SDL_openbsdaudio.c
src/audio/openbsd/SDL_openbsdaudio.h
src/audio/paudio/Makefile.am
src/audio/paudio/SDL_paudio.c
src/audio/paudio/SDL_paudio.h
src/audio/sun/Makefile.am
src/audio/sun/SDL_sunaudio.c
src/audio/sun/SDL_sunaudio.h
src/audio/ums/Makefile.am
src/audio/ums/SDL_umsaudio.c
src/audio/ums/SDL_umsaudio.h
src/audio/windib/Makefile.am
src/audio/windib/SDL_dibaudio.c
src/audio/windib/SDL_dibaudio.h
src/audio/windx5/Makefile.am
src/audio/windx5/SDL_dx5audio.c
src/audio/windx5/SDL_dx5audio.h
src/cdrom/Makefile.am
src/cdrom/aix/Makefile.am
src/cdrom/aix/SDL_syscdrom.c
src/cdrom/beos/Makefile.am
src/cdrom/beos/SDL_syscdrom.cc
src/cdrom/bsdi/Makefile.am
src/cdrom/bsdi/SDL_syscdrom.c
src/cdrom/dc/Makefile.am
src/cdrom/dc/SDL_syscdrom.c
src/cdrom/dummy/Makefile.am
src/cdrom/dummy/SDL_syscdrom.c
src/cdrom/freebsd/Makefile.am
src/cdrom/freebsd/SDL_syscdrom.c
src/cdrom/linux/Makefile.am
src/cdrom/linux/SDL_syscdrom.c
src/cdrom/macos/Makefile.am
src/cdrom/macos/SDL_syscdrom.c
src/cdrom/macosx/Makefile.am
src/cdrom/macosx/SDL_syscdrom_c.h
src/cdrom/mint/Makefile.am
src/cdrom/mint/SDL_syscdrom.c
src/cdrom/openbsd/Makefile.am
src/cdrom/openbsd/SDL_syscdrom.c
src/cdrom/os2/SDL_syscdrom.c
src/cdrom/osf/Makefile.am
src/cdrom/osf/SDL_syscdrom.c
src/cdrom/qnx/Makefile.am
src/cdrom/qnx/SDL_syscdrom.c
src/cdrom/win32/Makefile.am
src/cdrom/win32/SDL_syscdrom.c
src/cpuinfo/Makefile.am
src/cpuinfo/SDL_cpuinfo.c
src/events/Makefile.am
src/events/SDL_events.c
src/events/SDL_mouse.c
src/events/SDL_resize.c
src/events/SDL_sysevents.h
src/file/Makefile.am
src/hermes/Makefile.am
src/joystick/Makefile.am
src/joystick/SDL_joystick.c
src/joystick/amigaos/Makefile.am
src/joystick/amigaos/SDL_sysjoystick.c
src/joystick/beos/Makefile.am
src/joystick/beos/SDL_bejoystick.cc
src/joystick/bsd/Makefile.am
src/joystick/bsd/SDL_sysjoystick.c
src/joystick/darwin/Makefile.am
src/joystick/darwin/SDL_sysjoystick.c
src/joystick/dc/Makefile.am
src/joystick/dc/SDL_sysjoystick.c
src/joystick/dummy/Makefile.am
src/joystick/dummy/SDL_sysjoystick.c
src/joystick/linux/Makefile.am
src/joystick/linux/SDL_sysjoystick.c
src/joystick/macos/Makefile.am
src/joystick/macos/SDL_sysjoystick.c
src/joystick/mint/Makefile.am
src/joystick/mint/SDL_sysjoystick.c
src/joystick/os2/SDL_sysjoystick.c
src/joystick/riscos/Makefile.am
src/joystick/riscos/SDL_sysjoystick.c
src/joystick/win32/Makefile.am
src/joystick/win32/SDL_mmjoystick.c
src/loadso/beos/SDL_loadso.c
src/loadso/beos/SDL_sysloadso.c
src/loadso/dlopen/SDL_loadso.c
src/loadso/dlopen/SDL_sysloadso.c
src/loadso/dummy/SDL_loadso.c
src/loadso/dummy/SDL_sysloadso.c
src/loadso/macos/SDL_loadso.c
src/loadso/macos/SDL_sysloadso.c
src/loadso/macosx/SDL_loadso.c
src/loadso/macosx/SDL_sysloadso.c
src/loadso/mint/SDL_loadso.c
src/loadso/mint/SDL_sysloadso.c
src/loadso/os2/SDL_loadso.c
src/loadso/os2/SDL_sysloadso.c
src/loadso/win32/SDL_sysloadso.c
src/loadso/windows/SDL_loadso.c
src/main/Makefile.am
src/main/win32/SDL_win32_main.c
src/stdlib/Makefile.am
src/thread/Makefile.am
src/thread/SDL_systhread.h
src/thread/SDL_thread_c.h
src/thread/amigaos/SDL_syssem.c
src/thread/amigaos/SDL_systhread.c
src/thread/amigaos/SDL_thread.c
src/thread/beos/SDL_systhread.c
src/thread/bsdi/SDL_syssem.c
src/thread/dc/SDL_sysmutex.c
src/thread/dc/SDL_syssem.c
src/thread/dc/SDL_systhread.c
src/thread/dc/SDL_systhread_c.h
src/thread/epoc/SDL_systhread.cpp
src/thread/generic/SDL_syscond_c.h
src/thread/generic/SDL_sysmutex.c
src/thread/generic/SDL_syssem.c
src/thread/generic/SDL_syssem_c.h
src/thread/generic/SDL_systhread.c
src/thread/generic/SDL_systhread_c.h
src/thread/irix/SDL_syssem.c
src/thread/irix/SDL_systhread.c
src/thread/linux/SDL_syscond.c
src/thread/linux/SDL_sysmutex.c
src/thread/linux/SDL_sysmutex_c.h
src/thread/linux/SDL_syssem.c
src/thread/linux/SDL_systhread.c
src/thread/linux/SDL_systhread_c.h
src/thread/linux/clone.S
src/thread/os2/SDL_systhread.c
src/thread/pth/SDL_syscond.c
src/thread/pth/SDL_syscond_c.h
src/thread/pth/SDL_systhread.c
src/thread/pthread/SDL_syscond.c
src/thread/pthread/SDL_sysmutex.c
src/thread/pthread/SDL_sysmutex_c.h
src/thread/pthread/SDL_syssem.c
src/thread/pthread/SDL_systhread.c
src/thread/pthread/SDL_systhread_c.h
src/thread/riscos/SDL_syscond.c
src/thread/riscos/SDL_sysmutex.c
src/thread/riscos/SDL_sysmutex_c.h
src/thread/riscos/SDL_syssem.c
src/thread/riscos/SDL_systhread.c
src/thread/riscos/SDL_systhread_c.h
src/thread/win32/SDL_systhread.c
src/timer/Makefile.am
src/timer/amigaos/SDL_systimer.c
src/timer/beos/SDL_systimer.c
src/timer/dc/SDL_systimer.c
src/timer/dummy/SDL_systimer.c
src/timer/epoc/SDL_systimer.cpp
src/timer/linux/SDL_systimer.c
src/timer/macos/SDL_MPWtimer.c
src/timer/macos/SDL_systimer.c
src/timer/mint/SDL_systimer.c
src/timer/os2/SDL_systimer.c
src/timer/riscos/SDL_systimer.c
src/timer/unix/SDL_systimer.c
src/timer/win32/SDL_systimer.c
src/timer/wince/SDL_systimer.c
src/video/Makefile.am
src/video/SDL_RLEaccel.c
src/video/SDL_blit.c
src/video/SDL_blit_A.c
src/video/SDL_blit_N.c
src/video/SDL_bmp.c
src/video/SDL_cursor.c
src/video/SDL_stretch.c
src/video/SDL_sysvideo.h
src/video/SDL_video.c
src/video/SDL_yuv_mmx.c
src/video/SDL_yuv_sw.c
src/video/Xext/Makefile.am
src/video/Xext/XME/Makefile.am
src/video/Xext/XME/xme.c
src/video/Xext/Xinerama/Makefile.am
src/video/Xext/Xinerama/Xinerama.c
src/video/Xext/Xv/Makefile.am
src/video/Xext/Xv/Xv.c
src/video/Xext/Xv/Xvlibint.h
src/video/Xext/Xxf86dga/Makefile.am
src/video/Xext/Xxf86dga/XF86DGA.c
src/video/Xext/Xxf86dga/XF86DGA2.c
src/video/Xext/Xxf86vm/Makefile.am
src/video/Xext/Xxf86vm/XF86VMode.c
src/video/Xext/extensions/Makefile.am
src/video/Xext/extensions/Xvlib.h
src/video/Xext/extensions/xf86dga.h
src/video/Xext/extensions/xf86dgastr.h
src/video/Xext/extensions/xf86vmstr.h
src/video/aalib/Makefile.am
src/video/aalib/SDL_aaevents.c
src/video/aalib/SDL_aamouse.c
src/video/aalib/SDL_aavideo.c
src/video/aalib/SDL_aavideo.h
src/video/ataricommon/Makefile.am
src/video/ataricommon/SDL_atarievents.c
src/video/ataricommon/SDL_atarievents_c.h
src/video/ataricommon/SDL_atarigl.c
src/video/ataricommon/SDL_atarigl_c.h
src/video/ataricommon/SDL_biosevents.c
src/video/ataricommon/SDL_biosevents_c.h
src/video/ataricommon/SDL_gemdosevents.c
src/video/ataricommon/SDL_gemdosevents_c.h
src/video/ataricommon/SDL_ikbdevents.c
src/video/ataricommon/SDL_ikbdevents_c.h
src/video/ataricommon/SDL_xbiosevents.c
src/video/ataricommon/SDL_xbiosevents_c.h
src/video/bwindow/Makefile.am
src/video/bwindow/SDL_BView.h
src/video/bwindow/SDL_BWin.h
src/video/bwindow/SDL_lowvideo.h
src/video/bwindow/SDL_sysevents.cc
src/video/bwindow/SDL_sysvideo.cc
src/video/bwindow/SDL_sysyuv.cc
src/video/cybergfx/Makefile.am
src/video/cybergfx/SDL_amigaevents.c
src/video/cybergfx/SDL_amigamouse.c
src/video/cybergfx/SDL_cgxaccel.c
src/video/cybergfx/SDL_cgxgl.c
src/video/cybergfx/SDL_cgxgl_c.h
src/video/cybergfx/SDL_cgxmodes.c
src/video/cybergfx/SDL_cgxvideo.c
src/video/cybergfx/SDL_cgxvideo.h
src/video/cybergfx/SDL_cgxwm.c
src/video/cybergfx/SDL_cgxyuv.c
src/video/cybergfx/SDL_cgxyuv_c.h
src/video/dc/Makefile.am
src/video/dc/SDL_dcevents.c
src/video/dc/SDL_dcmouse.c
src/video/dc/SDL_dcvideo.c
src/video/dc/SDL_dcvideo.h
src/video/dga/Makefile.am
src/video/dga/SDL_dgaevents.c
src/video/dga/SDL_dgamouse.c
src/video/dga/SDL_dgavideo.c
src/video/dga/SDL_dgavideo.h
src/video/directfb/Makefile.am
src/video/directfb/SDL_DirectFB_events.c
src/video/directfb/SDL_DirectFB_video.c
src/video/directfb/SDL_DirectFB_video.h
src/video/directfb/SDL_DirectFB_yuv.c
src/video/dummy/Makefile.am
src/video/dummy/SDL_nullevents.c
src/video/dummy/SDL_nullmouse.c
src/video/dummy/SDL_nullvideo.c
src/video/dummy/SDL_nullvideo.h
src/video/epoc/Makefile.am
src/video/epoc/SDL_epocevents.cpp
src/video/epoc/SDL_epocevents_c.h
src/video/epoc/SDL_epocvideo.cpp
src/video/epoc/SDL_epocvideo.h
src/video/fbcon/Makefile.am
src/video/fbcon/SDL_fb3dfx.c
src/video/fbcon/SDL_fbevents.c
src/video/fbcon/SDL_fbmatrox.c
src/video/fbcon/SDL_fbmouse.c
src/video/fbcon/SDL_fbriva.c
src/video/fbcon/SDL_fbvideo.c
src/video/fbcon/SDL_fbvideo.h
src/video/gapi/Makefile.am
src/video/gapi/SDL_gapivideo.c
src/video/gapi/SDL_gapivideo.h
src/video/gem/Makefile.am
src/video/gem/SDL_gemevents.c
src/video/gem/SDL_gemmouse.c
src/video/gem/SDL_gemvideo.c
src/video/gem/SDL_gemvideo.h
src/video/ggi/Makefile.am
src/video/ggi/SDL_ggievents.c
src/video/ggi/SDL_ggimouse.c
src/video/ggi/SDL_ggivideo.c
src/video/ggi/SDL_ggivideo.h
src/video/ipod/Makefile.am
src/video/ipod/SDL_ipodvideo.c
src/video/maccommon/Makefile.am
src/video/maccommon/SDL_lowvideo.h
src/video/maccommon/SDL_macevents.c
src/video/maccommon/SDL_macgl.c
src/video/maccommon/SDL_macgl_c.h
src/video/macdsp/Makefile.am
src/video/macdsp/SDL_dspvideo.c
src/video/macrom/Makefile.am
src/video/macrom/SDL_romvideo.c
src/video/math_private.h
src/video/nanox/Makefile.am
src/video/nanox/SDL_nxevents.c
src/video/nanox/SDL_nxmouse.c
src/video/nanox/SDL_nxvideo.c
src/video/nanox/SDL_nxvideo.h
src/video/nanox/SDL_nxwm.c
src/video/os2fslib/Makefile.am
src/video/os2fslib/SDL_os2fslib.c
src/video/photon/Makefile.am
src/video/photon/SDL_ph_events.c
src/video/photon/SDL_ph_gl.c
src/video/photon/SDL_ph_gl.h
src/video/photon/SDL_ph_image.c
src/video/photon/SDL_ph_image_c.h
src/video/photon/SDL_ph_modes.c
src/video/photon/SDL_ph_mouse.c
src/video/photon/SDL_ph_video.c
src/video/photon/SDL_ph_video.h
src/video/photon/SDL_ph_wm.c
src/video/photon/SDL_phyuv.c
src/video/picogui/Makefile.am
src/video/picogui/SDL_pgevents.c
src/video/picogui/SDL_pgvideo.c
src/video/picogui/SDL_pgvideo.h
src/video/ps2gs/Makefile.am
src/video/ps2gs/SDL_gsevents.c
src/video/ps2gs/SDL_gsmouse.c
src/video/ps2gs/SDL_gsvideo.c
src/video/ps2gs/SDL_gsvideo.h
src/video/ps2gs/SDL_gsyuv.c
src/video/qtopia/Makefile.am
src/video/qtopia/SDL_QWin.h
src/video/qtopia/SDL_lowvideo.h
src/video/qtopia/SDL_sysevents.cc
src/video/qtopia/SDL_sysvideo.cc
src/video/quartz/Makefile.am
src/video/quartz/SDL_QuartzVideo.h
src/video/quartz/SDL_QuartzYUV.m
src/video/riscos/Makefile.am
src/video/riscos/SDL_riscosFullScreenVideo.c
src/video/riscos/SDL_riscosevents.c
src/video/riscos/SDL_riscosmouse.c
src/video/riscos/SDL_riscostask.c
src/video/riscos/SDL_riscosvideo.c
src/video/riscos/SDL_riscosvideo.h
src/video/riscos/SDL_wimppoll.c
src/video/riscos/SDL_wimpvideo.c
src/video/svga/Makefile.am
src/video/svga/SDL_svgaevents.c
src/video/svga/SDL_svgamouse.c
src/video/svga/SDL_svgavideo.c
src/video/svga/SDL_svgavideo.h
src/video/vgl/Makefile.am
src/video/vgl/SDL_vglevents.c
src/video/vgl/SDL_vglmouse.c
src/video/vgl/SDL_vglvideo.c
src/video/vgl/SDL_vglvideo.h
src/video/wincommon/Makefile.am
src/video/wincommon/SDL_lowvideo.h
src/video/wincommon/SDL_sysevents.c
src/video/wincommon/SDL_sysmouse.c
src/video/wincommon/SDL_syswm.c
src/video/wincommon/SDL_wingl.c
src/video/wincommon/SDL_wingl_c.h
src/video/windib/Makefile.am
src/video/windib/SDL_dibevents.c
src/video/windib/SDL_dibevents_c.h
src/video/windib/SDL_dibvideo.c
src/video/windx5/Makefile.am
src/video/windx5/SDL_dx5events.c
src/video/windx5/SDL_dx5events_c.h
src/video/windx5/SDL_dx5video.c
src/video/windx5/SDL_dx5yuv.c
src/video/windx5/SDL_dx5yuv_c.h
src/video/wscons/Makefile.am
src/video/wscons/SDL_wsconsevents.c
src/video/wscons/SDL_wsconsmouse.c
src/video/wscons/SDL_wsconsvideo.c
src/video/wscons/SDL_wsconsvideo.h
src/video/x11/Makefile.am
src/video/x11/SDL_x11dga.c
src/video/x11/SDL_x11dyn.c
src/video/x11/SDL_x11dyn.h
src/video/x11/SDL_x11events.c
src/video/x11/SDL_x11gamma.c
src/video/x11/SDL_x11gl.c
src/video/x11/SDL_x11gl_c.h
src/video/x11/SDL_x11image.c
src/video/x11/SDL_x11modes.c
src/video/x11/SDL_x11mouse.c
src/video/x11/SDL_x11video.c
src/video/x11/SDL_x11video.h
src/video/x11/SDL_x11wm.c
src/video/x11/SDL_x11yuv.c
src/video/x11/SDL_x11yuv_c.h
src/video/xbios/Makefile.am
src/video/xbios/SDL_xbios.c
src/video/xbios/SDL_xbios.h
strip_fPIC.sh
     1.1 --- a/Makefile.am	Fri Feb 10 07:29:08 2006 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,114 +0,0 @@
     1.4 -# The top-level input Makefile for SDL
     1.5 -
     1.6 -# require automake 1.4
     1.7 -AUTOMAKE_OPTIONS = 1.4
     1.8 -
     1.9 -## Any directories that you want built and installed should go here.
    1.10 -SUBDIRS = src include docs
    1.11 -
    1.12 -## Any directories you want a part of the distribution should be listed
    1.13 -## here, as well as have a Makefile generated at the end of configure.in
    1.14 -##
    1.15 -## This only works for subdirectories one level deep.
    1.16 -DIST_SUBDIRS = $(SUBDIRS)
    1.17 -
    1.18 -# SDL runtime configuration script
    1.19 -bin_SCRIPTS = sdl-config
    1.20 -
    1.21 -# All the rest of the distributed files
    1.22 -EXTRA_DIST =		\
    1.23 -	BUGS		\
    1.24 -	TODO		\
    1.25 -	COPYING		\
    1.26 -	CREDITS		\
    1.27 -	INSTALL		\
    1.28 -	README		\
    1.29 -	README.AmigaOS	\
    1.30 -	README.CVS	\
    1.31 -	README.DC	\
    1.32 -	README.Epoc	\
    1.33 -	README.MacOS	\
    1.34 -	README.MacOSX	\
    1.35 -	README.MiNT	\
    1.36 -	README.NanoX	\
    1.37 -	README.PicoGUI	\
    1.38 -	README.QNX	\
    1.39 -	README.Qtopia	\
    1.40 -	README.WinCE	\
    1.41 -	README-SDL.txt	\
    1.42 -	Borland.html	\
    1.43 -	Borland.zip	\
    1.44 -	VisualC.html	\
    1.45 -	VisualC.zip	\
    1.46 -	VisualCE.zip	\
    1.47 -	Makefile.dc	\
    1.48 -	MPWmake.sea.bin	\
    1.49 -	CWprojects.sea.bin \
    1.50 -	PBProjects.tar.gz \
    1.51 -	EpocBuildFiles.zip \
    1.52 -	Xcode.tar.gz	\
    1.53 -	Xcode21.tar.gz	\
    1.54 -	XcodeUniversal.tar.gz	\
    1.55 -	WhatsNew	\
    1.56 -	docs.html	\
    1.57 -	sdl.m4		\
    1.58 -	SDL.spec	\
    1.59 -	autogen.sh	\
    1.60 -	strip_fPIC.sh
    1.61 -
    1.62 -# M4 macro file for inclusion with autoconf
    1.63 -m4datadir = $(datadir)/aclocal
    1.64 -m4data_DATA = sdl.m4
    1.65 -
    1.66 -# Rule to build tar-gzipped distribution package
    1.67 -$(PACKAGE)-$(VERSION).tar.gz: dist
    1.68 -
    1.69 -# Rule to build RPM distribution package
    1.70 -rpm: $(PACKAGE)-$(VERSION).tar.gz
    1.71 -	rpm -ta $(PACKAGE)-$(VERSION).tar.gz
    1.72 -
    1.73 -# Rule to rebuild the export lists for BeOS, MacOS and Win32.
    1.74 -exports:
    1.75 -	(cd src/main/beos/exports; $(MAKE))
    1.76 -	(cd src/main/macos/exports; $(MAKE))
    1.77 -	(cd src/main/macosx/exports; $(MAKE))
    1.78 -	(cd src/main/win32/exports; $(MAKE))
    1.79 -
    1.80 -# Rule to build the Project Builder archive in MacOS X
    1.81 -PBProjects.tar.gz:
    1.82 -	rm -f `find . -name .DS_Store`
    1.83 -	if [ -d PBProjects ]; then \
    1.84 -	    tar zcvf $@ PBProjects; \
    1.85 -	fi
    1.86 -
    1.87 -# Rule to install the libraries only - prevent rebuilding apps
    1.88 -install-lib:
    1.89 -	cd src && $(MAKE) install-libLTLIBRARIES
    1.90 -
    1.91 -# Run ldconfig after installing the library:
    1.92 -install-hook:
    1.93 -	-ldconfig
    1.94 -
    1.95 -# Grab the test programs for the distribution:
    1.96 -dist-hook:
    1.97 -	if test -f test/Makefile; then (cd test; make distclean); fi
    1.98 -	rm -rf $(srcdir)/test/autom4te*
    1.99 -	cp -rp $(srcdir)/test $(distdir)
   1.100 -	rm -rf `find $(distdir) -type d -name CVS -print`
   1.101 -
   1.102 -# Create a CVS snapshot that people can run update -d on
   1.103 -CVSROOT = :pserver:guest@libsdl.org:/home/sdlweb/libsdl.org/cvs
   1.104 -snapshot:
   1.105 -	cvs -d $(CVSROOT) login
   1.106 -	cvs -d $(CVSROOT) checkout SDL12
   1.107 -	(cd SDL12 && ./autogen.sh && rm -rf autom4te.cache)
   1.108 -	mv SDL12 SDL-1.2
   1.109 -	tar zcvf $(HOME)/SDL-1.2.tar.gz SDL-1.2
   1.110 -	rm -rf SDL-1.2
   1.111 -snapshot13:
   1.112 -	cvs -d $(CVSROOT) login
   1.113 -	cvs -d $(CVSROOT) checkout -r branch_1_3_x SDL12
   1.114 -	(cd SDL12 && ./autogen.sh && rm -rf autom4te.cache)
   1.115 -	mv SDL12 SDL-1.3
   1.116 -	tar zcvf $(HOME)/SDL-1.3.tar.gz SDL-1.3
   1.117 -	rm -rf SDL-1.3
     2.1 --- a/SDL.spec.in	Fri Feb 10 07:29:08 2006 +0000
     2.2 +++ b/SDL.spec.in	Thu Feb 16 10:11:48 2006 +0000
     2.3 @@ -1,6 +1,6 @@
     2.4  Summary: Simple DirectMedia Layer
     2.5 -Name: @PACKAGE@
     2.6 -Version: @VERSION@
     2.7 +Name: SDL
     2.8 +Version: @SDL_VERSION@
     2.9  Release: 1
    2.10  Source: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
    2.11  URL: http://www.libsdl.org/
    2.12 @@ -45,7 +45,12 @@
    2.13  %install
    2.14  rm -rf $RPM_BUILD_ROOT
    2.15  %ifos linux
    2.16 -make install prefix=$RPM_BUILD_ROOT/%{prefix}
    2.17 +make install prefix=$RPM_BUILD_ROOT/%{prefix} \
    2.18 +             bindir=$RPM_BUILD_ROOT/%{_bindir} \
    2.19 +             libdir=$RPM_BUILD_ROOT/%{_libdir} \
    2.20 +             includedir=$RPM_BUILD_ROOT/%{_includedir} \
    2.21 +             datadir=$RPM_BUILD_ROOT/%{_datadir} \
    2.22 +             mandir=$RPM_BUILD_ROOT/%{_mandir}
    2.23  ln -s libSDL-1.2.so.0 $RPM_BUILD_ROOT/%{prefix}/lib/libSDL-1.1.so.0
    2.24  %else
    2.25  %makeinstall
    2.26 @@ -81,8 +86,8 @@
    2.27  %{_libdir}/lib*.%{__soext}
    2.28  %dir %{_includedir}/SDL
    2.29  %{_includedir}/SDL/*.h
    2.30 +%{_datadir}/aclocal/*
    2.31  %{_mandir}/man3/*
    2.32 -%{_datadir}/aclocal/*
    2.33  
    2.34  %changelog
    2.35  * Mon Jan 03 2004 Anders Bjorklund <afb@algonet.se>
     3.1 --- a/TODO	Fri Feb 10 07:29:08 2006 +0000
     3.2 +++ b/TODO	Thu Feb 16 10:11:48 2006 +0000
     3.3 @@ -1,3 +1,8 @@
     3.4 +
     3.5 +Update project files
     3.6 +Create general SDL_config.h
     3.7 +Create stubs for all the disabled subsystems
     3.8 +Test all the platforms and drivers
     3.9  
    3.10  Wish list for the 1.3 development branch:
    3.11  
     4.1 --- a/acinclude.m4	Fri Feb 10 07:29:08 2006 +0000
     4.2 +++ b/acinclude.m4	Thu Feb 16 10:11:48 2006 +0000
     4.3 @@ -1,24 +1,3 @@
     4.4 -# Local macros for the SDL configure.in script
     4.5 -
     4.6 -dnl Function to link an architecture specific file
     4.7 -dnl LINK_ARCH_SRC(source_dir, arch, source_file)
     4.8 -AC_DEFUN([COPY_ARCH_SRC],
     4.9 -[
    4.10 -  old="$srcdir/$1/$2/$3"
    4.11 -  new="$1/$3"
    4.12 -  if test ! -d $1; then
    4.13 -    echo "Creating directory $1"
    4.14 -    mkdir -p $1
    4.15 -  fi
    4.16 -  echo "Copying $old -> $new"
    4.17 -  cat >$new <<__EOF__
    4.18 -/* WARNING:  This file was automatically generated!
    4.19 - * Original: $old
    4.20 - */
    4.21 -__EOF__
    4.22 -  cat >>$new <$old
    4.23 -])
    4.24 -
    4.25  ##############################################################################
    4.26  dnl Configure Paths for Alsa
    4.27  dnl Some modifications by Richard Boulton <richard-alsa@tartarus.org>
    4.28 @@ -1010,6 +989,12 @@
    4.29      lt_cv_sys_max_cmd_len=8192;
    4.30      ;;
    4.31  
    4.32 +  beos*)
    4.33 +    # On BeOS, this test takes a really really long time.
    4.34 +    # So we just punt and use a minimum line length of 8192.
    4.35 +    lt_cv_sys_max_cmd_len=8192;
    4.36 +    ;;
    4.37 +
    4.38    amigaos*)
    4.39      # On AmigaOS with pdksh, this test takes hours, literally.
    4.40      # So we just punt and use a minimum line length of 8192.
     5.1 --- a/autogen.sh	Fri Feb 10 07:29:08 2006 +0000
     5.2 +++ b/autogen.sh	Thu Feb 16 10:11:48 2006 +0000
     5.3 @@ -1,19 +1,11 @@
     5.4  #!/bin/sh
     5.5  #
     5.6 -echo "Generating build information using aclocal, automake and autoconf"
     5.7 +echo "Generating build information using aclocal and autoconf"
     5.8  echo "This may take a while ..."
     5.9  
    5.10 -# Touch the timestamps on all the files since CVS messes them up
    5.11 -directory=`dirname $0`
    5.12 -touch $directory/configure.in
    5.13 -touch $directory/include/SDL_config.h.in
    5.14 -
    5.15  # Regenerate configuration files
    5.16 -aclocal || exit 1
    5.17 -automake --foreign --include-deps --add-missing --copy || exit 1
    5.18 -autoconf || exit 1
    5.19 -(cd test; aclocal; automake --foreign --include-deps --add-missing --copy; autoconf)
    5.20 +(aclocal && autoconf) || exit $?
    5.21 +(cd test; aclocal; autoconf)
    5.22  
    5.23  # Run configure for this platform
    5.24 -#./configure $*
    5.25  echo "Now you are ready to run ./configure"
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/build-scripts/config.guess	Thu Feb 16 10:11:48 2006 +0000
     6.3 @@ -0,0 +1,1479 @@
     6.4 +#! /bin/sh
     6.5 +# Attempt to guess a canonical system name.
     6.6 +#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     6.7 +#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
     6.8 +
     6.9 +timestamp='2006-01-02'
    6.10 +
    6.11 +# This file is free software; you can redistribute it and/or modify it
    6.12 +# under the terms of the GNU General Public License as published by
    6.13 +# the Free Software Foundation; either version 2 of the License, or
    6.14 +# (at your option) any later version.
    6.15 +#
    6.16 +# This program is distributed in the hope that it will be useful, but
    6.17 +# WITHOUT ANY WARRANTY; without even the implied warranty of
    6.18 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    6.19 +# General Public License for more details.
    6.20 +#
    6.21 +# You should have received a copy of the GNU General Public License
    6.22 +# along with this program; if not, write to the Free Software
    6.23 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    6.24 +# 02110-1301, USA.
    6.25 +#
    6.26 +# As a special exception to the GNU General Public License, if you
    6.27 +# distribute this file as part of a program that contains a
    6.28 +# configuration script generated by Autoconf, you may include it under
    6.29 +# the same distribution terms that you use for the rest of that program.
    6.30 +
    6.31 +
    6.32 +# Originally written by Per Bothner <per@bothner.com>.
    6.33 +# Please send patches to <config-patches@gnu.org>.  Submit a context
    6.34 +# diff and a properly formatted ChangeLog entry.
    6.35 +#
    6.36 +# This script attempts to guess a canonical system name similar to
    6.37 +# config.sub.  If it succeeds, it prints the system name on stdout, and
    6.38 +# exits with 0.  Otherwise, it exits with 1.
    6.39 +#
    6.40 +# The plan is that this can be called by configure scripts if you
    6.41 +# don't specify an explicit build system type.
    6.42 +
    6.43 +me=`echo "$0" | sed -e 's,.*/,,'`
    6.44 +
    6.45 +usage="\
    6.46 +Usage: $0 [OPTION]
    6.47 +
    6.48 +Output the configuration name of the system \`$me' is run on.
    6.49 +
    6.50 +Operation modes:
    6.51 +  -h, --help         print this help, then exit
    6.52 +  -t, --time-stamp   print date of last modification, then exit
    6.53 +  -v, --version      print version number, then exit
    6.54 +
    6.55 +Report bugs and patches to <config-patches@gnu.org>."
    6.56 +
    6.57 +version="\
    6.58 +GNU config.guess ($timestamp)
    6.59 +
    6.60 +Originally written by Per Bothner.
    6.61 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    6.62 +Free Software Foundation, Inc.
    6.63 +
    6.64 +This is free software; see the source for copying conditions.  There is NO
    6.65 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    6.66 +
    6.67 +help="
    6.68 +Try \`$me --help' for more information."
    6.69 +
    6.70 +# Parse command line
    6.71 +while test $# -gt 0 ; do
    6.72 +  case $1 in
    6.73 +    --time-stamp | --time* | -t )
    6.74 +       echo "$timestamp" ; exit ;;
    6.75 +    --version | -v )
    6.76 +       echo "$version" ; exit ;;
    6.77 +    --help | --h* | -h )
    6.78 +       echo "$usage"; exit ;;
    6.79 +    -- )     # Stop option processing
    6.80 +       shift; break ;;
    6.81 +    - )	# Use stdin as input.
    6.82 +       break ;;
    6.83 +    -* )
    6.84 +       echo "$me: invalid option $1$help" >&2
    6.85 +       exit 1 ;;
    6.86 +    * )
    6.87 +       break ;;
    6.88 +  esac
    6.89 +done
    6.90 +
    6.91 +if test $# != 0; then
    6.92 +  echo "$me: too many arguments$help" >&2
    6.93 +  exit 1
    6.94 +fi
    6.95 +
    6.96 +trap 'exit 1' 1 2 15
    6.97 +
    6.98 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
    6.99 +# compiler to aid in system detection is discouraged as it requires
   6.100 +# temporary files to be created and, as you can see below, it is a
   6.101 +# headache to deal with in a portable fashion.
   6.102 +
   6.103 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
   6.104 +# use `HOST_CC' if defined, but it is deprecated.
   6.105 +
   6.106 +# Portable tmp directory creation inspired by the Autoconf team.
   6.107 +
   6.108 +set_cc_for_build='
   6.109 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
   6.110 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
   6.111 +: ${TMPDIR=/tmp} ;
   6.112 + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
   6.113 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
   6.114 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
   6.115 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
   6.116 +dummy=$tmp/dummy ;
   6.117 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
   6.118 +case $CC_FOR_BUILD,$HOST_CC,$CC in
   6.119 + ,,)    echo "int x;" > $dummy.c ;
   6.120 +	for c in cc gcc c89 c99 ; do
   6.121 +	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
   6.122 +	     CC_FOR_BUILD="$c"; break ;
   6.123 +	  fi ;
   6.124 +	done ;
   6.125 +	if test x"$CC_FOR_BUILD" = x ; then
   6.126 +	  CC_FOR_BUILD=no_compiler_found ;
   6.127 +	fi
   6.128 +	;;
   6.129 + ,,*)   CC_FOR_BUILD=$CC ;;
   6.130 + ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
   6.131 +esac ; set_cc_for_build= ;'
   6.132 +
   6.133 +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
   6.134 +# (ghazi@noc.rutgers.edu 1994-08-24)
   6.135 +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
   6.136 +	PATH=$PATH:/.attbin ; export PATH
   6.137 +fi
   6.138 +
   6.139 +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
   6.140 +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
   6.141 +UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
   6.142 +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
   6.143 +
   6.144 +# Note: order is significant - the case branches are not exclusive.
   6.145 +
   6.146 +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
   6.147 +    *:NetBSD:*:*)
   6.148 +	# NetBSD (nbsd) targets should (where applicable) match one or
   6.149 +	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
   6.150 +	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
   6.151 +	# switched to ELF, *-*-netbsd* would select the old
   6.152 +	# object file format.  This provides both forward
   6.153 +	# compatibility and a consistent mechanism for selecting the
   6.154 +	# object file format.
   6.155 +	#
   6.156 +	# Note: NetBSD doesn't particularly care about the vendor
   6.157 +	# portion of the name.  We always set it to "unknown".
   6.158 +	sysctl="sysctl -n hw.machine_arch"
   6.159 +	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
   6.160 +	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
   6.161 +	case "${UNAME_MACHINE_ARCH}" in
   6.162 +	    armeb) machine=armeb-unknown ;;
   6.163 +	    arm*) machine=arm-unknown ;;
   6.164 +	    sh3el) machine=shl-unknown ;;
   6.165 +	    sh3eb) machine=sh-unknown ;;
   6.166 +	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
   6.167 +	esac
   6.168 +	# The Operating System including object format, if it has switched
   6.169 +	# to ELF recently, or will in the future.
   6.170 +	case "${UNAME_MACHINE_ARCH}" in
   6.171 +	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
   6.172 +		eval $set_cc_for_build
   6.173 +		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
   6.174 +			| grep __ELF__ >/dev/null
   6.175 +		then
   6.176 +		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
   6.177 +		    # Return netbsd for either.  FIX?
   6.178 +		    os=netbsd
   6.179 +		else
   6.180 +		    os=netbsdelf
   6.181 +		fi
   6.182 +		;;
   6.183 +	    *)
   6.184 +	        os=netbsd
   6.185 +		;;
   6.186 +	esac
   6.187 +	# The OS release
   6.188 +	# Debian GNU/NetBSD machines have a different userland, and
   6.189 +	# thus, need a distinct triplet. However, they do not need
   6.190 +	# kernel version information, so it can be replaced with a
   6.191 +	# suitable tag, in the style of linux-gnu.
   6.192 +	case "${UNAME_VERSION}" in
   6.193 +	    Debian*)
   6.194 +		release='-gnu'
   6.195 +		;;
   6.196 +	    *)
   6.197 +		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
   6.198 +		;;
   6.199 +	esac
   6.200 +	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
   6.201 +	# contains redundant information, the shorter form:
   6.202 +	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
   6.203 +	echo "${machine}-${os}${release}"
   6.204 +	exit ;;
   6.205 +    *:OpenBSD:*:*)
   6.206 +	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
   6.207 +	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
   6.208 +	exit ;;
   6.209 +    *:ekkoBSD:*:*)
   6.210 +	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
   6.211 +	exit ;;
   6.212 +    *:SolidBSD:*:*)
   6.213 +	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
   6.214 +	exit ;;
   6.215 +    macppc:MirBSD:*:*)
   6.216 +	echo powerppc-unknown-mirbsd${UNAME_RELEASE}
   6.217 +	exit ;;
   6.218 +    *:MirBSD:*:*)
   6.219 +	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
   6.220 +	exit ;;
   6.221 +    alpha:OSF1:*:*)
   6.222 +	case $UNAME_RELEASE in
   6.223 +	*4.0)
   6.224 +		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
   6.225 +		;;
   6.226 +	*5.*)
   6.227 +	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
   6.228 +		;;
   6.229 +	esac
   6.230 +	# According to Compaq, /usr/sbin/psrinfo has been available on
   6.231 +	# OSF/1 and Tru64 systems produced since 1995.  I hope that
   6.232 +	# covers most systems running today.  This code pipes the CPU
   6.233 +	# types through head -n 1, so we only detect the type of CPU 0.
   6.234 +	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
   6.235 +	case "$ALPHA_CPU_TYPE" in
   6.236 +	    "EV4 (21064)")
   6.237 +		UNAME_MACHINE="alpha" ;;
   6.238 +	    "EV4.5 (21064)")
   6.239 +		UNAME_MACHINE="alpha" ;;
   6.240 +	    "LCA4 (21066/21068)")
   6.241 +		UNAME_MACHINE="alpha" ;;
   6.242 +	    "EV5 (21164)")
   6.243 +		UNAME_MACHINE="alphaev5" ;;
   6.244 +	    "EV5.6 (21164A)")
   6.245 +		UNAME_MACHINE="alphaev56" ;;
   6.246 +	    "EV5.6 (21164PC)")
   6.247 +		UNAME_MACHINE="alphapca56" ;;
   6.248 +	    "EV5.7 (21164PC)")
   6.249 +		UNAME_MACHINE="alphapca57" ;;
   6.250 +	    "EV6 (21264)")
   6.251 +		UNAME_MACHINE="alphaev6" ;;
   6.252 +	    "EV6.7 (21264A)")
   6.253 +		UNAME_MACHINE="alphaev67" ;;
   6.254 +	    "EV6.8CB (21264C)")
   6.255 +		UNAME_MACHINE="alphaev68" ;;
   6.256 +	    "EV6.8AL (21264B)")
   6.257 +		UNAME_MACHINE="alphaev68" ;;
   6.258 +	    "EV6.8CX (21264D)")
   6.259 +		UNAME_MACHINE="alphaev68" ;;
   6.260 +	    "EV6.9A (21264/EV69A)")
   6.261 +		UNAME_MACHINE="alphaev69" ;;
   6.262 +	    "EV7 (21364)")
   6.263 +		UNAME_MACHINE="alphaev7" ;;
   6.264 +	    "EV7.9 (21364A)")
   6.265 +		UNAME_MACHINE="alphaev79" ;;
   6.266 +	esac
   6.267 +	# A Pn.n version is a patched version.
   6.268 +	# A Vn.n version is a released version.
   6.269 +	# A Tn.n version is a released field test version.
   6.270 +	# A Xn.n version is an unreleased experimental baselevel.
   6.271 +	# 1.2 uses "1.2" for uname -r.
   6.272 +	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
   6.273 +	exit ;;
   6.274 +    Alpha\ *:Windows_NT*:*)
   6.275 +	# How do we know it's Interix rather than the generic POSIX subsystem?
   6.276 +	# Should we change UNAME_MACHINE based on the output of uname instead
   6.277 +	# of the specific Alpha model?
   6.278 +	echo alpha-pc-interix
   6.279 +	exit ;;
   6.280 +    21064:Windows_NT:50:3)
   6.281 +	echo alpha-dec-winnt3.5
   6.282 +	exit ;;
   6.283 +    Amiga*:UNIX_System_V:4.0:*)
   6.284 +	echo m68k-unknown-sysv4
   6.285 +	exit ;;
   6.286 +    *:[Aa]miga[Oo][Ss]:*:*)
   6.287 +	echo ${UNAME_MACHINE}-unknown-amigaos
   6.288 +	exit ;;
   6.289 +    *:[Mm]orph[Oo][Ss]:*:*)
   6.290 +	echo ${UNAME_MACHINE}-unknown-morphos
   6.291 +	exit ;;
   6.292 +    *:OS/390:*:*)
   6.293 +	echo i370-ibm-openedition
   6.294 +	exit ;;
   6.295 +    *:z/VM:*:*)
   6.296 +	echo s390-ibm-zvmoe
   6.297 +	exit ;;
   6.298 +    *:OS400:*:*)
   6.299 +        echo powerpc-ibm-os400
   6.300 +	exit ;;
   6.301 +    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
   6.302 +	echo arm-acorn-riscix${UNAME_RELEASE}
   6.303 +	exit ;;
   6.304 +    arm:riscos:*:*|arm:RISCOS:*:*)
   6.305 +	echo arm-unknown-riscos
   6.306 +	exit ;;
   6.307 +    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
   6.308 +	echo hppa1.1-hitachi-hiuxmpp
   6.309 +	exit ;;
   6.310 +    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
   6.311 +	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
   6.312 +	if test "`(/bin/universe) 2>/dev/null`" = att ; then
   6.313 +		echo pyramid-pyramid-sysv3
   6.314 +	else
   6.315 +		echo pyramid-pyramid-bsd
   6.316 +	fi
   6.317 +	exit ;;
   6.318 +    NILE*:*:*:dcosx)
   6.319 +	echo pyramid-pyramid-svr4
   6.320 +	exit ;;
   6.321 +    DRS?6000:unix:4.0:6*)
   6.322 +	echo sparc-icl-nx6
   6.323 +	exit ;;
   6.324 +    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
   6.325 +	case `/usr/bin/uname -p` in
   6.326 +	    sparc) echo sparc-icl-nx7; exit ;;
   6.327 +	esac ;;
   6.328 +    sun4H:SunOS:5.*:*)
   6.329 +	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   6.330 +	exit ;;
   6.331 +    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
   6.332 +	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   6.333 +	exit ;;
   6.334 +    i86pc:SunOS:5.*:*)
   6.335 +	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   6.336 +	exit ;;
   6.337 +    sun4*:SunOS:6*:*)
   6.338 +	# According to config.sub, this is the proper way to canonicalize
   6.339 +	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
   6.340 +	# it's likely to be more like Solaris than SunOS4.
   6.341 +	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   6.342 +	exit ;;
   6.343 +    sun4*:SunOS:*:*)
   6.344 +	case "`/usr/bin/arch -k`" in
   6.345 +	    Series*|S4*)
   6.346 +		UNAME_RELEASE=`uname -v`
   6.347 +		;;
   6.348 +	esac
   6.349 +	# Japanese Language versions have a version number like `4.1.3-JL'.
   6.350 +	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
   6.351 +	exit ;;
   6.352 +    sun3*:SunOS:*:*)
   6.353 +	echo m68k-sun-sunos${UNAME_RELEASE}
   6.354 +	exit ;;
   6.355 +    sun*:*:4.2BSD:*)
   6.356 +	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
   6.357 +	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
   6.358 +	case "`/bin/arch`" in
   6.359 +	    sun3)
   6.360 +		echo m68k-sun-sunos${UNAME_RELEASE}
   6.361 +		;;
   6.362 +	    sun4)
   6.363 +		echo sparc-sun-sunos${UNAME_RELEASE}
   6.364 +		;;
   6.365 +	esac
   6.366 +	exit ;;
   6.367 +    aushp:SunOS:*:*)
   6.368 +	echo sparc-auspex-sunos${UNAME_RELEASE}
   6.369 +	exit ;;
   6.370 +    # The situation for MiNT is a little confusing.  The machine name
   6.371 +    # can be virtually everything (everything which is not
   6.372 +    # "atarist" or "atariste" at least should have a processor
   6.373 +    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
   6.374 +    # to the lowercase version "mint" (or "freemint").  Finally
   6.375 +    # the system name "TOS" denotes a system which is actually not
   6.376 +    # MiNT.  But MiNT is downward compatible to TOS, so this should
   6.377 +    # be no problem.
   6.378 +    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
   6.379 +        echo m68k-atari-mint${UNAME_RELEASE}
   6.380 +	exit ;;
   6.381 +    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
   6.382 +	echo m68k-atari-mint${UNAME_RELEASE}
   6.383 +        exit ;;
   6.384 +    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
   6.385 +        echo m68k-atari-mint${UNAME_RELEASE}
   6.386 +	exit ;;
   6.387 +    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
   6.388 +        echo m68k-milan-mint${UNAME_RELEASE}
   6.389 +        exit ;;
   6.390 +    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
   6.391 +        echo m68k-hades-mint${UNAME_RELEASE}
   6.392 +        exit ;;
   6.393 +    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
   6.394 +        echo m68k-unknown-mint${UNAME_RELEASE}
   6.395 +        exit ;;
   6.396 +    m68k:machten:*:*)
   6.397 +	echo m68k-apple-machten${UNAME_RELEASE}
   6.398 +	exit ;;
   6.399 +    powerpc:machten:*:*)
   6.400 +	echo powerpc-apple-machten${UNAME_RELEASE}
   6.401 +	exit ;;
   6.402 +    RISC*:Mach:*:*)
   6.403 +	echo mips-dec-mach_bsd4.3
   6.404 +	exit ;;
   6.405 +    RISC*:ULTRIX:*:*)
   6.406 +	echo mips-dec-ultrix${UNAME_RELEASE}
   6.407 +	exit ;;
   6.408 +    VAX*:ULTRIX*:*:*)
   6.409 +	echo vax-dec-ultrix${UNAME_RELEASE}
   6.410 +	exit ;;
   6.411 +    2020:CLIX:*:* | 2430:CLIX:*:*)
   6.412 +	echo clipper-intergraph-clix${UNAME_RELEASE}
   6.413 +	exit ;;
   6.414 +    mips:*:*:UMIPS | mips:*:*:RISCos)
   6.415 +	eval $set_cc_for_build
   6.416 +	sed 's/^	//' << EOF >$dummy.c
   6.417 +#ifdef __cplusplus
   6.418 +#include <stdio.h>  /* for printf() prototype */
   6.419 +	int main (int argc, char *argv[]) {
   6.420 +#else
   6.421 +	int main (argc, argv) int argc; char *argv[]; {
   6.422 +#endif
   6.423 +	#if defined (host_mips) && defined (MIPSEB)
   6.424 +	#if defined (SYSTYPE_SYSV)
   6.425 +	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
   6.426 +	#endif
   6.427 +	#if defined (SYSTYPE_SVR4)
   6.428 +	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
   6.429 +	#endif
   6.430 +	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
   6.431 +	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
   6.432 +	#endif
   6.433 +	#endif
   6.434 +	  exit (-1);
   6.435 +	}
   6.436 +EOF
   6.437 +	$CC_FOR_BUILD -o $dummy $dummy.c &&
   6.438 +	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
   6.439 +	  SYSTEM_NAME=`$dummy $dummyarg` &&
   6.440 +	    { echo "$SYSTEM_NAME"; exit; }
   6.441 +	echo mips-mips-riscos${UNAME_RELEASE}
   6.442 +	exit ;;
   6.443 +    Motorola:PowerMAX_OS:*:*)
   6.444 +	echo powerpc-motorola-powermax
   6.445 +	exit ;;
   6.446 +    Motorola:*:4.3:PL8-*)
   6.447 +	echo powerpc-harris-powermax
   6.448 +	exit ;;
   6.449 +    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
   6.450 +	echo powerpc-harris-powermax
   6.451 +	exit ;;
   6.452 +    Night_Hawk:Power_UNIX:*:*)
   6.453 +	echo powerpc-harris-powerunix
   6.454 +	exit ;;
   6.455 +    m88k:CX/UX:7*:*)
   6.456 +	echo m88k-harris-cxux7
   6.457 +	exit ;;
   6.458 +    m88k:*:4*:R4*)
   6.459 +	echo m88k-motorola-sysv4
   6.460 +	exit ;;
   6.461 +    m88k:*:3*:R3*)
   6.462 +	echo m88k-motorola-sysv3
   6.463 +	exit ;;
   6.464 +    AViiON:dgux:*:*)
   6.465 +        # DG/UX returns AViiON for all architectures
   6.466 +        UNAME_PROCESSOR=`/usr/bin/uname -p`
   6.467 +	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
   6.468 +	then
   6.469 +	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
   6.470 +	       [ ${TARGET_BINARY_INTERFACE}x = x ]
   6.471 +	    then
   6.472 +		echo m88k-dg-dgux${UNAME_RELEASE}
   6.473 +	    else
   6.474 +		echo m88k-dg-dguxbcs${UNAME_RELEASE}
   6.475 +	    fi
   6.476 +	else
   6.477 +	    echo i586-dg-dgux${UNAME_RELEASE}
   6.478 +	fi
   6.479 + 	exit ;;
   6.480 +    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
   6.481 +	echo m88k-dolphin-sysv3
   6.482 +	exit ;;
   6.483 +    M88*:*:R3*:*)
   6.484 +	# Delta 88k system running SVR3
   6.485 +	echo m88k-motorola-sysv3
   6.486 +	exit ;;
   6.487 +    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
   6.488 +	echo m88k-tektronix-sysv3
   6.489 +	exit ;;
   6.490 +    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
   6.491 +	echo m68k-tektronix-bsd
   6.492 +	exit ;;
   6.493 +    *:IRIX*:*:*)
   6.494 +	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
   6.495 +	exit ;;
   6.496 +    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
   6.497 +	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
   6.498 +	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
   6.499 +    i*86:AIX:*:*)
   6.500 +	echo i386-ibm-aix
   6.501 +	exit ;;
   6.502 +    ia64:AIX:*:*)
   6.503 +	if [ -x /usr/bin/oslevel ] ; then
   6.504 +		IBM_REV=`/usr/bin/oslevel`
   6.505 +	else
   6.506 +		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
   6.507 +	fi
   6.508 +	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
   6.509 +	exit ;;
   6.510 +    *:AIX:2:3)
   6.511 +	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
   6.512 +		eval $set_cc_for_build
   6.513 +		sed 's/^		//' << EOF >$dummy.c
   6.514 +		#include <sys/systemcfg.h>
   6.515 +
   6.516 +		main()
   6.517 +			{
   6.518 +			if (!__power_pc())
   6.519 +				exit(1);
   6.520 +			puts("powerpc-ibm-aix3.2.5");
   6.521 +			exit(0);
   6.522 +			}
   6.523 +EOF
   6.524 +		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
   6.525 +		then
   6.526 +			echo "$SYSTEM_NAME"
   6.527 +		else
   6.528 +			echo rs6000-ibm-aix3.2.5
   6.529 +		fi
   6.530 +	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
   6.531 +		echo rs6000-ibm-aix3.2.4
   6.532 +	else
   6.533 +		echo rs6000-ibm-aix3.2
   6.534 +	fi
   6.535 +	exit ;;
   6.536 +    *:AIX:*:[45])
   6.537 +	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
   6.538 +	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
   6.539 +		IBM_ARCH=rs6000
   6.540 +	else
   6.541 +		IBM_ARCH=powerpc
   6.542 +	fi
   6.543 +	if [ -x /usr/bin/oslevel ] ; then
   6.544 +		IBM_REV=`/usr/bin/oslevel`
   6.545 +	else
   6.546 +		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
   6.547 +	fi
   6.548 +	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
   6.549 +	exit ;;
   6.550 +    *:AIX:*:*)
   6.551 +	echo rs6000-ibm-aix
   6.552 +	exit ;;
   6.553 +    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
   6.554 +	echo romp-ibm-bsd4.4
   6.555 +	exit ;;
   6.556 +    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
   6.557 +	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
   6.558 +	exit ;;                             # report: romp-ibm BSD 4.3
   6.559 +    *:BOSX:*:*)
   6.560 +	echo rs6000-bull-bosx
   6.561 +	exit ;;
   6.562 +    DPX/2?00:B.O.S.:*:*)
   6.563 +	echo m68k-bull-sysv3
   6.564 +	exit ;;
   6.565 +    9000/[34]??:4.3bsd:1.*:*)
   6.566 +	echo m68k-hp-bsd
   6.567 +	exit ;;
   6.568 +    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
   6.569 +	echo m68k-hp-bsd4.4
   6.570 +	exit ;;
   6.571 +    9000/[34678]??:HP-UX:*:*)
   6.572 +	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
   6.573 +	case "${UNAME_MACHINE}" in
   6.574 +	    9000/31? )            HP_ARCH=m68000 ;;
   6.575 +	    9000/[34]?? )         HP_ARCH=m68k ;;
   6.576 +	    9000/[678][0-9][0-9])
   6.577 +		if [ -x /usr/bin/getconf ]; then
   6.578 +		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
   6.579 +                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
   6.580 +                    case "${sc_cpu_version}" in
   6.581 +                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
   6.582 +                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
   6.583 +                      532)                      # CPU_PA_RISC2_0
   6.584 +                        case "${sc_kernel_bits}" in
   6.585 +                          32) HP_ARCH="hppa2.0n" ;;
   6.586 +                          64) HP_ARCH="hppa2.0w" ;;
   6.587 +			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
   6.588 +                        esac ;;
   6.589 +                    esac
   6.590 +		fi
   6.591 +		if [ "${HP_ARCH}" = "" ]; then
   6.592 +		    eval $set_cc_for_build
   6.593 +		    sed 's/^              //' << EOF >$dummy.c
   6.594 +
   6.595 +              #define _HPUX_SOURCE
   6.596 +              #include <stdlib.h>
   6.597 +              #include <unistd.h>
   6.598 +
   6.599 +              int main ()
   6.600 +              {
   6.601 +              #if defined(_SC_KERNEL_BITS)
   6.602 +                  long bits = sysconf(_SC_KERNEL_BITS);
   6.603 +              #endif
   6.604 +                  long cpu  = sysconf (_SC_CPU_VERSION);
   6.605 +
   6.606 +                  switch (cpu)
   6.607 +              	{
   6.608 +              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
   6.609 +              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
   6.610 +              	case CPU_PA_RISC2_0:
   6.611 +              #if defined(_SC_KERNEL_BITS)
   6.612 +              	    switch (bits)
   6.613 +              		{
   6.614 +              		case 64: puts ("hppa2.0w"); break;
   6.615 +              		case 32: puts ("hppa2.0n"); break;
   6.616 +              		default: puts ("hppa2.0"); break;
   6.617 +              		} break;
   6.618 +              #else  /* !defined(_SC_KERNEL_BITS) */
   6.619 +              	    puts ("hppa2.0"); break;
   6.620 +              #endif
   6.621 +              	default: puts ("hppa1.0"); break;
   6.622 +              	}
   6.623 +                  exit (0);
   6.624 +              }
   6.625 +EOF
   6.626 +		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
   6.627 +		    test -z "$HP_ARCH" && HP_ARCH=hppa
   6.628 +		fi ;;
   6.629 +	esac
   6.630 +	if [ ${HP_ARCH} = "hppa2.0w" ]
   6.631 +	then
   6.632 +	    eval $set_cc_for_build
   6.633 +
   6.634 +	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
   6.635 +	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
   6.636 +	    # generating 64-bit code.  GNU and HP use different nomenclature:
   6.637 +	    #
   6.638 +	    # $ CC_FOR_BUILD=cc ./config.guess
   6.639 +	    # => hppa2.0w-hp-hpux11.23
   6.640 +	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
   6.641 +	    # => hppa64-hp-hpux11.23
   6.642 +
   6.643 +	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
   6.644 +		grep __LP64__ >/dev/null
   6.645 +	    then
   6.646 +		HP_ARCH="hppa2.0w"
   6.647 +	    else
   6.648 +		HP_ARCH="hppa64"
   6.649 +	    fi
   6.650 +	fi
   6.651 +	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
   6.652 +	exit ;;
   6.653 +    ia64:HP-UX:*:*)
   6.654 +	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
   6.655 +	echo ia64-hp-hpux${HPUX_REV}
   6.656 +	exit ;;
   6.657 +    3050*:HI-UX:*:*)
   6.658 +	eval $set_cc_for_build
   6.659 +	sed 's/^	//' << EOF >$dummy.c
   6.660 +	#include <unistd.h>
   6.661 +	int
   6.662 +	main ()
   6.663 +	{
   6.664 +	  long cpu = sysconf (_SC_CPU_VERSION);
   6.665 +	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
   6.666 +	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
   6.667 +	     results, however.  */
   6.668 +	  if (CPU_IS_PA_RISC (cpu))
   6.669 +	    {
   6.670 +	      switch (cpu)
   6.671 +		{
   6.672 +		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
   6.673 +		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
   6.674 +		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
   6.675 +		  default: puts ("hppa-hitachi-hiuxwe2"); break;
   6.676 +		}
   6.677 +	    }
   6.678 +	  else if (CPU_IS_HP_MC68K (cpu))
   6.679 +	    puts ("m68k-hitachi-hiuxwe2");
   6.680 +	  else puts ("unknown-hitachi-hiuxwe2");
   6.681 +	  exit (0);
   6.682 +	}
   6.683 +EOF
   6.684 +	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
   6.685 +		{ echo "$SYSTEM_NAME"; exit; }
   6.686 +	echo unknown-hitachi-hiuxwe2
   6.687 +	exit ;;
   6.688 +    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
   6.689 +	echo hppa1.1-hp-bsd
   6.690 +	exit ;;
   6.691 +    9000/8??:4.3bsd:*:*)
   6.692 +	echo hppa1.0-hp-bsd
   6.693 +	exit ;;
   6.694 +    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
   6.695 +	echo hppa1.0-hp-mpeix
   6.696 +	exit ;;
   6.697 +    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
   6.698 +	echo hppa1.1-hp-osf
   6.699 +	exit ;;
   6.700 +    hp8??:OSF1:*:*)
   6.701 +	echo hppa1.0-hp-osf
   6.702 +	exit ;;
   6.703 +    i*86:OSF1:*:*)
   6.704 +	if [ -x /usr/sbin/sysversion ] ; then
   6.705 +	    echo ${UNAME_MACHINE}-unknown-osf1mk
   6.706 +	else
   6.707 +	    echo ${UNAME_MACHINE}-unknown-osf1
   6.708 +	fi
   6.709 +	exit ;;
   6.710 +    parisc*:Lites*:*:*)
   6.711 +	echo hppa1.1-hp-lites
   6.712 +	exit ;;
   6.713 +    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
   6.714 +	echo c1-convex-bsd
   6.715 +        exit ;;
   6.716 +    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
   6.717 +	if getsysinfo -f scalar_acc
   6.718 +	then echo c32-convex-bsd
   6.719 +	else echo c2-convex-bsd
   6.720 +	fi
   6.721 +        exit ;;
   6.722 +    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
   6.723 +	echo c34-convex-bsd
   6.724 +        exit ;;
   6.725 +    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
   6.726 +	echo c38-convex-bsd
   6.727 +        exit ;;
   6.728 +    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
   6.729 +	echo c4-convex-bsd
   6.730 +        exit ;;
   6.731 +    CRAY*Y-MP:*:*:*)
   6.732 +	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   6.733 +	exit ;;
   6.734 +    CRAY*[A-Z]90:*:*:*)
   6.735 +	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
   6.736 +	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
   6.737 +	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
   6.738 +	      -e 's/\.[^.]*$/.X/'
   6.739 +	exit ;;
   6.740 +    CRAY*TS:*:*:*)
   6.741 +	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   6.742 +	exit ;;
   6.743 +    CRAY*T3E:*:*:*)
   6.744 +	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   6.745 +	exit ;;
   6.746 +    CRAY*SV1:*:*:*)
   6.747 +	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   6.748 +	exit ;;
   6.749 +    *:UNICOS/mp:*:*)
   6.750 +	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
   6.751 +	exit ;;
   6.752 +    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
   6.753 +	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
   6.754 +        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
   6.755 +        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
   6.756 +        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   6.757 +        exit ;;
   6.758 +    5000:UNIX_System_V:4.*:*)
   6.759 +        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
   6.760 +        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
   6.761 +        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   6.762 +	exit ;;
   6.763 +    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
   6.764 +	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
   6.765 +	exit ;;
   6.766 +    sparc*:BSD/OS:*:*)
   6.767 +	echo sparc-unknown-bsdi${UNAME_RELEASE}
   6.768 +	exit ;;
   6.769 +    *:BSD/OS:*:*)
   6.770 +	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
   6.771 +	exit ;;
   6.772 +    *:FreeBSD:*:*)
   6.773 +	case ${UNAME_MACHINE} in
   6.774 +	    pc98)
   6.775 +		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
   6.776 +	    *)
   6.777 +		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
   6.778 +	esac
   6.779 +	exit ;;
   6.780 +    i*:CYGWIN*:*)
   6.781 +	echo ${UNAME_MACHINE}-pc-cygwin
   6.782 +	exit ;;
   6.783 +    i*:MINGW*:*)
   6.784 +	echo ${UNAME_MACHINE}-pc-mingw32
   6.785 +	exit ;;
   6.786 +    i*:windows32*:*)
   6.787 +    	# uname -m includes "-pc" on this system.
   6.788 +    	echo ${UNAME_MACHINE}-mingw32
   6.789 +	exit ;;
   6.790 +    i*:PW*:*)
   6.791 +	echo ${UNAME_MACHINE}-pc-pw32
   6.792 +	exit ;;
   6.793 +    x86:Interix*:[345]*)
   6.794 +	echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
   6.795 +	exit ;;
   6.796 +    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
   6.797 +	echo i${UNAME_MACHINE}-pc-mks
   6.798 +	exit ;;
   6.799 +    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
   6.800 +	# How do we know it's Interix rather than the generic POSIX subsystem?
   6.801 +	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
   6.802 +	# UNAME_MACHINE based on the output of uname instead of i386?
   6.803 +	echo i586-pc-interix
   6.804 +	exit ;;
   6.805 +    i*:UWIN*:*)
   6.806 +	echo ${UNAME_MACHINE}-pc-uwin
   6.807 +	exit ;;
   6.808 +    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
   6.809 +	echo x86_64-unknown-cygwin
   6.810 +	exit ;;
   6.811 +    p*:CYGWIN*:*)
   6.812 +	echo powerpcle-unknown-cygwin
   6.813 +	exit ;;
   6.814 +    prep*:SunOS:5.*:*)
   6.815 +	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   6.816 +	exit ;;
   6.817 +    *:GNU:*:*)
   6.818 +	# the GNU system
   6.819 +	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
   6.820 +	exit ;;
   6.821 +    *:GNU/*:*:*)
   6.822 +	# other systems with GNU libc and userland
   6.823 +	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
   6.824 +	exit ;;
   6.825 +    i*86:Minix:*:*)
   6.826 +	echo ${UNAME_MACHINE}-pc-minix
   6.827 +	exit ;;
   6.828 +    arm*:Linux:*:*)
   6.829 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.830 +	exit ;;
   6.831 +    cris:Linux:*:*)
   6.832 +	echo cris-axis-linux-gnu
   6.833 +	exit ;;
   6.834 +    crisv32:Linux:*:*)
   6.835 +	echo crisv32-axis-linux-gnu
   6.836 +	exit ;;
   6.837 +    frv:Linux:*:*)
   6.838 +    	echo frv-unknown-linux-gnu
   6.839 +	exit ;;
   6.840 +    ia64:Linux:*:*)
   6.841 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.842 +	exit ;;
   6.843 +    m32r*:Linux:*:*)
   6.844 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.845 +	exit ;;
   6.846 +    m68*:Linux:*:*)
   6.847 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.848 +	exit ;;
   6.849 +    mips:Linux:*:*)
   6.850 +	eval $set_cc_for_build
   6.851 +	sed 's/^	//' << EOF >$dummy.c
   6.852 +	#undef CPU
   6.853 +	#undef mips
   6.854 +	#undef mipsel
   6.855 +	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
   6.856 +	CPU=mipsel
   6.857 +	#else
   6.858 +	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
   6.859 +	CPU=mips
   6.860 +	#else
   6.861 +	CPU=
   6.862 +	#endif
   6.863 +	#endif
   6.864 +EOF
   6.865 +	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
   6.866 +	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
   6.867 +	;;
   6.868 +    mips64:Linux:*:*)
   6.869 +	eval $set_cc_for_build
   6.870 +	sed 's/^	//' << EOF >$dummy.c
   6.871 +	#undef CPU
   6.872 +	#undef mips64
   6.873 +	#undef mips64el
   6.874 +	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
   6.875 +	CPU=mips64el
   6.876 +	#else
   6.877 +	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
   6.878 +	CPU=mips64
   6.879 +	#else
   6.880 +	CPU=
   6.881 +	#endif
   6.882 +	#endif
   6.883 +EOF
   6.884 +	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
   6.885 +	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
   6.886 +	;;
   6.887 +    or32:Linux:*:*)
   6.888 +	echo or32-unknown-linux-gnu
   6.889 +	exit ;;
   6.890 +    ppc:Linux:*:*)
   6.891 +	echo powerpc-unknown-linux-gnu
   6.892 +	exit ;;
   6.893 +    ppc64:Linux:*:*)
   6.894 +	echo powerpc64-unknown-linux-gnu
   6.895 +	exit ;;
   6.896 +    alpha:Linux:*:*)
   6.897 +	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
   6.898 +	  EV5)   UNAME_MACHINE=alphaev5 ;;
   6.899 +	  EV56)  UNAME_MACHINE=alphaev56 ;;
   6.900 +	  PCA56) UNAME_MACHINE=alphapca56 ;;
   6.901 +	  PCA57) UNAME_MACHINE=alphapca56 ;;
   6.902 +	  EV6)   UNAME_MACHINE=alphaev6 ;;
   6.903 +	  EV67)  UNAME_MACHINE=alphaev67 ;;
   6.904 +	  EV68*) UNAME_MACHINE=alphaev68 ;;
   6.905 +        esac
   6.906 +	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
   6.907 +	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
   6.908 +	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
   6.909 +	exit ;;
   6.910 +    parisc:Linux:*:* | hppa:Linux:*:*)
   6.911 +	# Look for CPU level
   6.912 +	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
   6.913 +	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
   6.914 +	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
   6.915 +	  *)    echo hppa-unknown-linux-gnu ;;
   6.916 +	esac
   6.917 +	exit ;;
   6.918 +    parisc64:Linux:*:* | hppa64:Linux:*:*)
   6.919 +	echo hppa64-unknown-linux-gnu
   6.920 +	exit ;;
   6.921 +    s390:Linux:*:* | s390x:Linux:*:*)
   6.922 +	echo ${UNAME_MACHINE}-ibm-linux
   6.923 +	exit ;;
   6.924 +    sh64*:Linux:*:*)
   6.925 +    	echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.926 +	exit ;;
   6.927 +    sh*:Linux:*:*)
   6.928 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.929 +	exit ;;
   6.930 +    sparc:Linux:*:* | sparc64:Linux:*:*)
   6.931 +	echo ${UNAME_MACHINE}-unknown-linux-gnu
   6.932 +	exit ;;
   6.933 +    vax:Linux:*:*)
   6.934 +	echo ${UNAME_MACHINE}-dec-linux-gnu
   6.935 +	exit ;;
   6.936 +    x86_64:Linux:*:*)
   6.937 +	echo x86_64-unknown-linux-gnu
   6.938 +	exit ;;
   6.939 +    i*86:Linux:*:*)
   6.940 +	# The BFD linker knows what the default object file format is, so
   6.941 +	# first see if it will tell us. cd to the root directory to prevent
   6.942 +	# problems with other programs or directories called `ld' in the path.
   6.943 +	# Set LC_ALL=C to ensure ld outputs messages in English.
   6.944 +	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
   6.945 +			 | sed -ne '/supported targets:/!d
   6.946 +				    s/[ 	][ 	]*/ /g
   6.947 +				    s/.*supported targets: *//
   6.948 +				    s/ .*//
   6.949 +				    p'`
   6.950 +        case "$ld_supported_targets" in
   6.951 +	  elf32-i386)
   6.952 +		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
   6.953 +		;;
   6.954 +	  a.out-i386-linux)
   6.955 +		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
   6.956 +		exit ;;
   6.957 +	  coff-i386)
   6.958 +		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
   6.959 +		exit ;;
   6.960 +	  "")
   6.961 +		# Either a pre-BFD a.out linker (linux-gnuoldld) or
   6.962 +		# one that does not give us useful --help.
   6.963 +		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
   6.964 +		exit ;;
   6.965 +	esac
   6.966 +	# Determine whether the default compiler is a.out or elf
   6.967 +	eval $set_cc_for_build
   6.968 +	sed 's/^	//' << EOF >$dummy.c
   6.969 +	#include <features.h>
   6.970 +	#ifdef __ELF__
   6.971 +	# ifdef __GLIBC__
   6.972 +	#  if __GLIBC__ >= 2
   6.973 +	LIBC=gnu
   6.974 +	#  else
   6.975 +	LIBC=gnulibc1
   6.976 +	#  endif
   6.977 +	# else
   6.978 +	LIBC=gnulibc1
   6.979 +	# endif
   6.980 +	#else
   6.981 +	#if defined(__INTEL_COMPILER) || defined(__PGI)
   6.982 +	LIBC=gnu
   6.983 +	#else
   6.984 +	LIBC=gnuaout
   6.985 +	#endif
   6.986 +	#endif
   6.987 +	#ifdef __dietlibc__
   6.988 +	LIBC=dietlibc
   6.989 +	#endif
   6.990 +EOF
   6.991 +	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`"
   6.992 +	test x"${LIBC}" != x && {
   6.993 +		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
   6.994 +		exit
   6.995 +	}
   6.996 +	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
   6.997 +	;;
   6.998 +    i*86:DYNIX/ptx:4*:*)
   6.999 +	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  6.1000 +	# earlier versions are messed up and put the nodename in both
  6.1001 +	# sysname and nodename.
  6.1002 +	echo i386-sequent-sysv4
  6.1003 +	exit ;;
  6.1004 +    i*86:UNIX_SV:4.2MP:2.*)
  6.1005 +        # Unixware is an offshoot of SVR4, but it has its own version
  6.1006 +        # number series starting with 2...
  6.1007 +        # I am not positive that other SVR4 systems won't match this,
  6.1008 +	# I just have to hope.  -- rms.
  6.1009 +        # Use sysv4.2uw... so that sysv4* matches it.
  6.1010 +	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  6.1011 +	exit ;;
  6.1012 +    i*86:OS/2:*:*)
  6.1013 +	# If we were able to find `uname', then EMX Unix compatibility
  6.1014 +	# is probably installed.
  6.1015 +	echo ${UNAME_MACHINE}-pc-os2-emx
  6.1016 +	exit ;;
  6.1017 +    i*86:XTS-300:*:STOP)
  6.1018 +	echo ${UNAME_MACHINE}-unknown-stop
  6.1019 +	exit ;;
  6.1020 +    i*86:atheos:*:*)
  6.1021 +	echo ${UNAME_MACHINE}-unknown-atheos
  6.1022 +	exit ;;
  6.1023 +    i*86:syllable:*:*)
  6.1024 +	echo ${UNAME_MACHINE}-pc-syllable
  6.1025 +	exit ;;
  6.1026 +    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  6.1027 +	echo i386-unknown-lynxos${UNAME_RELEASE}
  6.1028 +	exit ;;
  6.1029 +    i*86:*DOS:*:*)
  6.1030 +	echo ${UNAME_MACHINE}-pc-msdosdjgpp
  6.1031 +	exit ;;
  6.1032 +    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  6.1033 +	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  6.1034 +	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  6.1035 +		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
  6.1036 +	else
  6.1037 +		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  6.1038 +	fi
  6.1039 +	exit ;;
  6.1040 +    i*86:*:5:[678]*)
  6.1041 +    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
  6.1042 +	case `/bin/uname -X | grep "^Machine"` in
  6.1043 +	    *486*)	     UNAME_MACHINE=i486 ;;
  6.1044 +	    *Pentium)	     UNAME_MACHINE=i586 ;;
  6.1045 +	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  6.1046 +	esac
  6.1047 +	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  6.1048 +	exit ;;
  6.1049 +    i*86:*:3.2:*)
  6.1050 +	if test -f /usr/options/cb.name; then
  6.1051 +		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  6.1052 +		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  6.1053 +	elif /bin/uname -X 2>/dev/null >/dev/null ; then
  6.1054 +		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
  6.1055 +		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
  6.1056 +		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
  6.1057 +			&& UNAME_MACHINE=i586
  6.1058 +		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
  6.1059 +			&& UNAME_MACHINE=i686
  6.1060 +		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
  6.1061 +			&& UNAME_MACHINE=i686
  6.1062 +		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  6.1063 +	else
  6.1064 +		echo ${UNAME_MACHINE}-pc-sysv32
  6.1065 +	fi
  6.1066 +	exit ;;
  6.1067 +    pc:*:*:*)
  6.1068 +	# Left here for compatibility:
  6.1069 +        # uname -m prints for DJGPP always 'pc', but it prints nothing about
  6.1070 +        # the processor, so we play safe by assuming i386.
  6.1071 +	echo i386-pc-msdosdjgpp
  6.1072 +        exit ;;
  6.1073 +    Intel:Mach:3*:*)
  6.1074 +	echo i386-pc-mach3
  6.1075 +	exit ;;
  6.1076 +    paragon:*:*:*)
  6.1077 +	echo i860-intel-osf1
  6.1078 +	exit ;;
  6.1079 +    i860:*:4.*:*) # i860-SVR4
  6.1080 +	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  6.1081 +	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  6.1082 +	else # Add other i860-SVR4 vendors below as they are discovered.
  6.1083 +	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
  6.1084 +	fi
  6.1085 +	exit ;;
  6.1086 +    mini*:CTIX:SYS*5:*)
  6.1087 +	# "miniframe"
  6.1088 +	echo m68010-convergent-sysv
  6.1089 +	exit ;;
  6.1090 +    mc68k:UNIX:SYSTEM5:3.51m)
  6.1091 +	echo m68k-convergent-sysv
  6.1092 +	exit ;;
  6.1093 +    M680?0:D-NIX:5.3:*)
  6.1094 +	echo m68k-diab-dnix
  6.1095 +	exit ;;
  6.1096 +    M68*:*:R3V[5678]*:*)
  6.1097 +	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  6.1098 +    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)
  6.1099 +	OS_REL=''
  6.1100 +	test -r /etc/.relid \
  6.1101 +	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  6.1102 +	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  6.1103 +	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  6.1104 +	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  6.1105 +	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  6.1106 +    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  6.1107 +        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  6.1108 +          && { echo i486-ncr-sysv4; exit; } ;;
  6.1109 +    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  6.1110 +	echo m68k-unknown-lynxos${UNAME_RELEASE}
  6.1111 +	exit ;;
  6.1112 +    mc68030:UNIX_System_V:4.*:*)
  6.1113 +	echo m68k-atari-sysv4
  6.1114 +	exit ;;
  6.1115 +    TSUNAMI:LynxOS:2.*:*)
  6.1116 +	echo sparc-unknown-lynxos${UNAME_RELEASE}
  6.1117 +	exit ;;
  6.1118 +    rs6000:LynxOS:2.*:*)
  6.1119 +	echo rs6000-unknown-lynxos${UNAME_RELEASE}
  6.1120 +	exit ;;
  6.1121 +    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  6.1122 +	echo powerpc-unknown-lynxos${UNAME_RELEASE}
  6.1123 +	exit ;;
  6.1124 +    SM[BE]S:UNIX_SV:*:*)
  6.1125 +	echo mips-dde-sysv${UNAME_RELEASE}
  6.1126 +	exit ;;
  6.1127 +    RM*:ReliantUNIX-*:*:*)
  6.1128 +	echo mips-sni-sysv4
  6.1129 +	exit ;;
  6.1130 +    RM*:SINIX-*:*:*)
  6.1131 +	echo mips-sni-sysv4
  6.1132 +	exit ;;
  6.1133 +    *:SINIX-*:*:*)
  6.1134 +	if uname -p 2>/dev/null >/dev/null ; then
  6.1135 +		UNAME_MACHINE=`(uname -p) 2>/dev/null`
  6.1136 +		echo ${UNAME_MACHINE}-sni-sysv4
  6.1137 +	else
  6.1138 +		echo ns32k-sni-sysv
  6.1139 +	fi
  6.1140 +	exit ;;
  6.1141 +    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  6.1142 +                      # says <Richard.M.Bartel@ccMail.Census.GOV>
  6.1143 +        echo i586-unisys-sysv4
  6.1144 +        exit ;;
  6.1145 +    *:UNIX_System_V:4*:FTX*)
  6.1146 +	# From Gerald Hewes <hewes@openmarket.com>.
  6.1147 +	# How about differentiating between stratus architectures? -djm
  6.1148 +	echo hppa1.1-stratus-sysv4
  6.1149 +	exit ;;
  6.1150 +    *:*:*:FTX*)
  6.1151 +	# From seanf@swdc.stratus.com.
  6.1152 +	echo i860-stratus-sysv4
  6.1153 +	exit ;;
  6.1154 +    i*86:VOS:*:*)
  6.1155 +	# From Paul.Green@stratus.com.
  6.1156 +	echo ${UNAME_MACHINE}-stratus-vos
  6.1157 +	exit ;;
  6.1158 +    *:VOS:*:*)
  6.1159 +	# From Paul.Green@stratus.com.
  6.1160 +	echo hppa1.1-stratus-vos
  6.1161 +	exit ;;
  6.1162 +    mc68*:A/UX:*:*)
  6.1163 +	echo m68k-apple-aux${UNAME_RELEASE}
  6.1164 +	exit ;;
  6.1165 +    news*:NEWS-OS:6*:*)
  6.1166 +	echo mips-sony-newsos6
  6.1167 +	exit ;;
  6.1168 +    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  6.1169 +	if [ -d /usr/nec ]; then
  6.1170 +	        echo mips-nec-sysv${UNAME_RELEASE}
  6.1171 +	else
  6.1172 +	        echo mips-unknown-sysv${UNAME_RELEASE}
  6.1173 +	fi
  6.1174 +        exit ;;
  6.1175 +    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
  6.1176 +	echo powerpc-be-beos
  6.1177 +	exit ;;
  6.1178 +    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
  6.1179 +	echo powerpc-apple-beos
  6.1180 +	exit ;;
  6.1181 +    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
  6.1182 +	echo i586-pc-beos
  6.1183 +	exit ;;
  6.1184 +    SX-4:SUPER-UX:*:*)
  6.1185 +	echo sx4-nec-superux${UNAME_RELEASE}
  6.1186 +	exit ;;
  6.1187 +    SX-5:SUPER-UX:*:*)
  6.1188 +	echo sx5-nec-superux${UNAME_RELEASE}
  6.1189 +	exit ;;
  6.1190 +    SX-6:SUPER-UX:*:*)
  6.1191 +	echo sx6-nec-superux${UNAME_RELEASE}
  6.1192 +	exit ;;
  6.1193 +    Power*:Rhapsody:*:*)
  6.1194 +	echo powerpc-apple-rhapsody${UNAME_RELEASE}
  6.1195 +	exit ;;
  6.1196 +    *:Rhapsody:*:*)
  6.1197 +	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  6.1198 +	exit ;;
  6.1199 +    *:Darwin:*:*)
  6.1200 +	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  6.1201 +	case $UNAME_PROCESSOR in
  6.1202 +	    unknown) UNAME_PROCESSOR=powerpc ;;
  6.1203 +	esac
  6.1204 +	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  6.1205 +	exit ;;
  6.1206 +    *:procnto*:*:* | *:QNX:[0123456789]*:*)
  6.1207 +	UNAME_PROCESSOR=`uname -p`
  6.1208 +	if test "$UNAME_PROCESSOR" = "x86"; then
  6.1209 +		UNAME_PROCESSOR=i386
  6.1210 +		UNAME_MACHINE=pc
  6.1211 +	fi
  6.1212 +	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  6.1213 +	exit ;;
  6.1214 +    *:QNX:*:4*)
  6.1215 +	echo i386-pc-qnx
  6.1216 +	exit ;;
  6.1217 +    NSE-?:NONSTOP_KERNEL:*:*)
  6.1218 +	echo nse-tandem-nsk${UNAME_RELEASE}
  6.1219 +	exit ;;
  6.1220 +    NSR-?:NONSTOP_KERNEL:*:*)
  6.1221 +	echo nsr-tandem-nsk${UNAME_RELEASE}
  6.1222 +	exit ;;
  6.1223 +    *:NonStop-UX:*:*)
  6.1224 +	echo mips-compaq-nonstopux
  6.1225 +	exit ;;
  6.1226 +    BS2000:POSIX*:*:*)
  6.1227 +	echo bs2000-siemens-sysv
  6.1228 +	exit ;;
  6.1229 +    DS/*:UNIX_System_V:*:*)
  6.1230 +	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  6.1231 +	exit ;;
  6.1232 +    *:Plan9:*:*)
  6.1233 +	# "uname -m" is not consistent, so use $cputype instead. 386
  6.1234 +	# is converted to i386 for consistency with other x86
  6.1235 +	# operating systems.
  6.1236 +	if test "$cputype" = "386"; then
  6.1237 +	    UNAME_MACHINE=i386
  6.1238 +	else
  6.1239 +	    UNAME_MACHINE="$cputype"
  6.1240 +	fi
  6.1241 +	echo ${UNAME_MACHINE}-unknown-plan9
  6.1242 +	exit ;;
  6.1243 +    *:TOPS-10:*:*)
  6.1244 +	echo pdp10-unknown-tops10
  6.1245 +	exit ;;
  6.1246 +    *:TENEX:*:*)
  6.1247 +	echo pdp10-unknown-tenex
  6.1248 +	exit ;;
  6.1249 +    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  6.1250 +	echo pdp10-dec-tops20
  6.1251 +	exit ;;
  6.1252 +    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  6.1253 +	echo pdp10-xkl-tops20
  6.1254 +	exit ;;
  6.1255 +    *:TOPS-20:*:*)
  6.1256 +	echo pdp10-unknown-tops20
  6.1257 +	exit ;;
  6.1258 +    *:ITS:*:*)
  6.1259 +	echo pdp10-unknown-its
  6.1260 +	exit ;;
  6.1261 +    SEI:*:*:SEIUX)
  6.1262 +        echo mips-sei-seiux${UNAME_RELEASE}
  6.1263 +	exit ;;
  6.1264 +    *:DragonFly:*:*)
  6.1265 +	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  6.1266 +	exit ;;
  6.1267 +    *:*VMS:*:*)
  6.1268 +    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
  6.1269 +	case "${UNAME_MACHINE}" in
  6.1270 +	    A*) echo alpha-dec-vms ; exit ;;
  6.1271 +	    I*) echo ia64-dec-vms ; exit ;;
  6.1272 +	    V*) echo vax-dec-vms ; exit ;;
  6.1273 +	esac ;;
  6.1274 +    *:XENIX:*:SysV)
  6.1275 +	echo i386-pc-xenix
  6.1276 +	exit ;;
  6.1277 +    i*86:skyos:*:*)
  6.1278 +	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  6.1279 +	exit ;;
  6.1280 +    i*86:rdos:*:*)
  6.1281 +	echo ${UNAME_MACHINE}-pc-rdos
  6.1282 +	exit ;;
  6.1283 +esac
  6.1284 +
  6.1285 +#echo '(No uname command or uname output not recognized.)' 1>&2
  6.1286 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  6.1287 +
  6.1288 +eval $set_cc_for_build
  6.1289 +cat >$dummy.c <<EOF
  6.1290 +#ifdef _SEQUENT_
  6.1291 +# include <sys/types.h>
  6.1292 +# include <sys/utsname.h>
  6.1293 +#endif
  6.1294 +main ()
  6.1295 +{
  6.1296 +#if defined (sony)
  6.1297 +#if defined (MIPSEB)
  6.1298 +  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
  6.1299 +     I don't know....  */
  6.1300 +  printf ("mips-sony-bsd\n"); exit (0);
  6.1301 +#else
  6.1302 +#include <sys/param.h>
  6.1303 +  printf ("m68k-sony-newsos%s\n",
  6.1304 +#ifdef NEWSOS4
  6.1305 +          "4"
  6.1306 +#else
  6.1307 +	  ""
  6.1308 +#endif
  6.1309 +         ); exit (0);
  6.1310 +#endif
  6.1311 +#endif
  6.1312 +
  6.1313 +#if defined (__arm) && defined (__acorn) && defined (__unix)
  6.1314 +  printf ("arm-acorn-riscix\n"); exit (0);
  6.1315 +#endif
  6.1316 +
  6.1317 +#if defined (hp300) && !defined (hpux)
  6.1318 +  printf ("m68k-hp-bsd\n"); exit (0);
  6.1319 +#endif
  6.1320 +
  6.1321 +#if defined (NeXT)
  6.1322 +#if !defined (__ARCHITECTURE__)
  6.1323 +#define __ARCHITECTURE__ "m68k"
  6.1324 +#endif
  6.1325 +  int version;
  6.1326 +  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  6.1327 +  if (version < 4)
  6.1328 +    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  6.1329 +  else
  6.1330 +    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  6.1331 +  exit (0);
  6.1332 +#endif
  6.1333 +
  6.1334 +#if defined (MULTIMAX) || defined (n16)
  6.1335 +#if defined (UMAXV)
  6.1336 +  printf ("ns32k-encore-sysv\n"); exit (0);
  6.1337 +#else
  6.1338 +#if defined (CMU)
  6.1339 +  printf ("ns32k-encore-mach\n"); exit (0);
  6.1340 +#else
  6.1341 +  printf ("ns32k-encore-bsd\n"); exit (0);
  6.1342 +#endif
  6.1343 +#endif
  6.1344 +#endif
  6.1345 +
  6.1346 +#if defined (__386BSD__)
  6.1347 +  printf ("i386-pc-bsd\n"); exit (0);
  6.1348 +#endif
  6.1349 +
  6.1350 +#if defined (sequent)
  6.1351 +#if defined (i386)
  6.1352 +  printf ("i386-sequent-dynix\n"); exit (0);
  6.1353 +#endif
  6.1354 +#if defined (ns32000)
  6.1355 +  printf ("ns32k-sequent-dynix\n"); exit (0);
  6.1356 +#endif
  6.1357 +#endif
  6.1358 +
  6.1359 +#if defined (_SEQUENT_)
  6.1360 +    struct utsname un;
  6.1361 +
  6.1362 +    uname(&un);
  6.1363 +
  6.1364 +    if (strncmp(un.version, "V2", 2) == 0) {
  6.1365 +	printf ("i386-sequent-ptx2\n"); exit (0);
  6.1366 +    }
  6.1367 +    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  6.1368 +	printf ("i386-sequent-ptx1\n"); exit (0);
  6.1369 +    }
  6.1370 +    printf ("i386-sequent-ptx\n"); exit (0);
  6.1371 +
  6.1372 +#endif
  6.1373 +
  6.1374 +#if defined (vax)
  6.1375 +# if !defined (ultrix)
  6.1376 +#  include <sys/param.h>
  6.1377 +#  if defined (BSD)
  6.1378 +#   if BSD == 43
  6.1379 +      printf ("vax-dec-bsd4.3\n"); exit (0);
  6.1380 +#   else
  6.1381 +#    if BSD == 199006
  6.1382 +      printf ("vax-dec-bsd4.3reno\n"); exit (0);
  6.1383 +#    else
  6.1384 +      printf ("vax-dec-bsd\n"); exit (0);
  6.1385 +#    endif
  6.1386 +#   endif
  6.1387 +#  else
  6.1388 +    printf ("vax-dec-bsd\n"); exit (0);
  6.1389 +#  endif
  6.1390 +# else
  6.1391 +    printf ("vax-dec-ultrix\n"); exit (0);
  6.1392 +# endif
  6.1393 +#endif
  6.1394 +
  6.1395 +#if defined (alliant) && defined (i860)
  6.1396 +  printf ("i860-alliant-bsd\n"); exit (0);
  6.1397 +#endif
  6.1398 +
  6.1399 +  exit (1);
  6.1400 +}
  6.1401 +EOF
  6.1402 +
  6.1403 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  6.1404 +	{ echo "$SYSTEM_NAME"; exit; }
  6.1405 +
  6.1406 +# Apollos put the system type in the environment.
  6.1407 +
  6.1408 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  6.1409 +
  6.1410 +# Convex versions that predate uname can use getsysinfo(1)
  6.1411 +
  6.1412 +if [ -x /usr/convex/getsysinfo ]
  6.1413 +then
  6.1414 +    case `getsysinfo -f cpu_type` in
  6.1415 +    c1*)
  6.1416 +	echo c1-convex-bsd
  6.1417 +	exit ;;
  6.1418 +    c2*)
  6.1419 +	if getsysinfo -f scalar_acc
  6.1420 +	then echo c32-convex-bsd
  6.1421 +	else echo c2-convex-bsd
  6.1422 +	fi
  6.1423 +	exit ;;
  6.1424 +    c34*)
  6.1425 +	echo c34-convex-bsd
  6.1426 +	exit ;;
  6.1427 +    c38*)
  6.1428 +	echo c38-convex-bsd
  6.1429 +	exit ;;
  6.1430 +    c4*)
  6.1431 +	echo c4-convex-bsd
  6.1432 +	exit ;;
  6.1433 +    esac
  6.1434 +fi
  6.1435 +
  6.1436 +cat >&2 <<EOF
  6.1437 +$0: unable to guess system type
  6.1438 +
  6.1439 +This script, last modified $timestamp, has failed to recognize
  6.1440 +the operating system you are using. It is advised that you
  6.1441 +download the most up to date version of the config scripts from
  6.1442 +
  6.1443 +  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
  6.1444 +and
  6.1445 +  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
  6.1446 +
  6.1447 +If the version you run ($0) is already up to date, please
  6.1448 +send the following data and any information you think might be
  6.1449 +pertinent to <config-patches@gnu.org> in order to provide the needed
  6.1450 +information to handle your system.
  6.1451 +
  6.1452 +config.guess timestamp = $timestamp
  6.1453 +
  6.1454 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  6.1455 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  6.1456 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  6.1457 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  6.1458 +
  6.1459 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
  6.1460 +/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
  6.1461 +
  6.1462 +hostinfo               = `(hostinfo) 2>/dev/null`
  6.1463 +/bin/universe          = `(/bin/universe) 2>/dev/null`
  6.1464 +/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
  6.1465 +/bin/arch              = `(/bin/arch) 2>/dev/null`
  6.1466 +/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
  6.1467 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
  6.1468 +
  6.1469 +UNAME_MACHINE = ${UNAME_MACHINE}
  6.1470 +UNAME_RELEASE = ${UNAME_RELEASE}
  6.1471 +UNAME_SYSTEM  = ${UNAME_SYSTEM}
  6.1472 +UNAME_VERSION = ${UNAME_VERSION}
  6.1473 +EOF
  6.1474 +
  6.1475 +exit 1
  6.1476 +
  6.1477 +# Local variables:
  6.1478 +# eval: (add-hook 'write-file-hooks 'time-stamp)
  6.1479 +# time-stamp-start: "timestamp='"
  6.1480 +# time-stamp-format: "%:y-%02m-%02d"
  6.1481 +# time-stamp-end: "'"
  6.1482 +# End:
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/build-scripts/config.sub	Thu Feb 16 10:11:48 2006 +0000
     7.3 @@ -0,0 +1,1606 @@
     7.4 +#! /bin/sh
     7.5 +# Configuration validation subroutine script.
     7.6 +#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     7.7 +#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
     7.8 +
     7.9 +timestamp='2006-01-02'
    7.10 +
    7.11 +# This file is (in principle) common to ALL GNU software.
    7.12 +# The presence of a machine in this file suggests that SOME GNU software
    7.13 +# can handle that machine.  It does not imply ALL GNU software can.
    7.14 +#
    7.15 +# This file is free software; you can redistribute it and/or modify
    7.16 +# it under the terms of the GNU General Public License as published by
    7.17 +# the Free Software Foundation; either version 2 of the License, or
    7.18 +# (at your option) any later version.
    7.19 +#
    7.20 +# This program is distributed in the hope that it will be useful,
    7.21 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
    7.22 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    7.23 +# GNU General Public License for more details.
    7.24 +#
    7.25 +# You should have received a copy of the GNU General Public License
    7.26 +# along with this program; if not, write to the Free Software
    7.27 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    7.28 +# 02110-1301, USA.
    7.29 +#
    7.30 +# As a special exception to the GNU General Public License, if you
    7.31 +# distribute this file as part of a program that contains a
    7.32 +# configuration script generated by Autoconf, you may include it under
    7.33 +# the same distribution terms that you use for the rest of that program.
    7.34 +
    7.35 +
    7.36 +# Please send patches to <config-patches@gnu.org>.  Submit a context
    7.37 +# diff and a properly formatted ChangeLog entry.
    7.38 +#
    7.39 +# Configuration subroutine to validate and canonicalize a configuration type.
    7.40 +# Supply the specified configuration type as an argument.
    7.41 +# If it is invalid, we print an error message on stderr and exit with code 1.
    7.42 +# Otherwise, we print the canonical config type on stdout and succeed.
    7.43 +
    7.44 +# This file is supposed to be the same for all GNU packages
    7.45 +# and recognize all the CPU types, system types and aliases
    7.46 +# that are meaningful with *any* GNU software.
    7.47 +# Each package is responsible for reporting which valid configurations
    7.48 +# it does not support.  The user should be able to distinguish
    7.49 +# a failure to support a valid configuration from a meaningless
    7.50 +# configuration.
    7.51 +
    7.52 +# The goal of this file is to map all the various variations of a given
    7.53 +# machine specification into a single specification in the form:
    7.54 +#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
    7.55 +# or in some cases, the newer four-part form:
    7.56 +#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
    7.57 +# It is wrong to echo any other type of specification.
    7.58 +
    7.59 +me=`echo "$0" | sed -e 's,.*/,,'`
    7.60 +
    7.61 +usage="\
    7.62 +Usage: $0 [OPTION] CPU-MFR-OPSYS
    7.63 +       $0 [OPTION] ALIAS
    7.64 +
    7.65 +Canonicalize a configuration name.
    7.66 +
    7.67 +Operation modes:
    7.68 +  -h, --help         print this help, then exit
    7.69 +  -t, --time-stamp   print date of last modification, then exit
    7.70 +  -v, --version      print version number, then exit
    7.71 +
    7.72 +Report bugs and patches to <config-patches@gnu.org>."
    7.73 +
    7.74 +version="\
    7.75 +GNU config.sub ($timestamp)
    7.76 +
    7.77 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    7.78 +Free Software Foundation, Inc.
    7.79 +
    7.80 +This is free software; see the source for copying conditions.  There is NO
    7.81 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    7.82 +
    7.83 +help="
    7.84 +Try \`$me --help' for more information."
    7.85 +
    7.86 +# Parse command line
    7.87 +while test $# -gt 0 ; do
    7.88 +  case $1 in
    7.89 +    --time-stamp | --time* | -t )
    7.90 +       echo "$timestamp" ; exit ;;
    7.91 +    --version | -v )
    7.92 +       echo "$version" ; exit ;;
    7.93 +    --help | --h* | -h )
    7.94 +       echo "$usage"; exit ;;
    7.95 +    -- )     # Stop option processing
    7.96 +       shift; break ;;
    7.97 +    - )	# Use stdin as input.
    7.98 +       break ;;
    7.99 +    -* )
   7.100 +       echo "$me: invalid option $1$help"
   7.101 +       exit 1 ;;
   7.102 +
   7.103 +    *local*)
   7.104 +       # First pass through any local machine types.
   7.105 +       echo $1
   7.106 +       exit ;;
   7.107 +
   7.108 +    * )
   7.109 +       break ;;
   7.110 +  esac
   7.111 +done
   7.112 +
   7.113 +case $# in
   7.114 + 0) echo "$me: missing argument$help" >&2
   7.115 +    exit 1;;
   7.116 + 1) ;;
   7.117 + *) echo "$me: too many arguments$help" >&2
   7.118 +    exit 1;;
   7.119 +esac
   7.120 +
   7.121 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
   7.122 +# Here we must recognize all the valid KERNEL-OS combinations.
   7.123 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
   7.124 +case $maybe_os in
   7.125 +  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
   7.126 +  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
   7.127 +  storm-chaos* | os2-emx* | rtmk-nova*)
   7.128 +    os=-$maybe_os
   7.129 +    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
   7.130 +    ;;
   7.131 +  *)
   7.132 +    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
   7.133 +    if [ $basic_machine != $1 ]
   7.134 +    then os=`echo $1 | sed 's/.*-/-/'`
   7.135 +    else os=; fi
   7.136 +    ;;
   7.137 +esac
   7.138 +
   7.139 +### Let's recognize common machines as not being operating systems so
   7.140 +### that things like config.sub decstation-3100 work.  We also
   7.141 +### recognize some manufacturers as not being operating systems, so we
   7.142 +### can provide default operating systems below.
   7.143 +case $os in
   7.144 +	-sun*os*)
   7.145 +		# Prevent following clause from handling this invalid input.
   7.146 +		;;
   7.147 +	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
   7.148 +	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
   7.149 +	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
   7.150 +	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
   7.151 +	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
   7.152 +	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
   7.153 +	-apple | -axis | -knuth | -cray)
   7.154 +		os=
   7.155 +		basic_machine=$1
   7.156 +		;;
   7.157 +	-sim | -cisco | -oki | -wec | -winbond)
   7.158 +		os=
   7.159 +		basic_machine=$1
   7.160 +		;;
   7.161 +	-scout)
   7.162 +		;;
   7.163 +	-wrs)
   7.164 +		os=-vxworks
   7.165 +		basic_machine=$1
   7.166 +		;;
   7.167 +	-chorusos*)
   7.168 +		os=-chorusos
   7.169 +		basic_machine=$1
   7.170 +		;;
   7.171 + 	-chorusrdb)
   7.172 + 		os=-chorusrdb
   7.173 +		basic_machine=$1
   7.174 + 		;;
   7.175 +	-hiux*)
   7.176 +		os=-hiuxwe2
   7.177 +		;;
   7.178 +	-sco6)
   7.179 +		os=-sco5v6
   7.180 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   7.181 +		;;
   7.182 +	-sco5)
   7.183 +		os=-sco3.2v5
   7.184 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   7.185 +		;;
   7.186 +	-sco4)
   7.187 +		os=-sco3.2v4
   7.188 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   7.189 +		;;
   7.190 +	-sco3.2.[4-9]*)
   7.191 +		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
   7.192 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   7.193 +		;;
   7.194 +	-sco3.2v[4-9]*)
   7.195 +		# Don't forget version if it is 3.2v4 or newer.
   7.196 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   7.197 +		;;
   7.198 +	-sco5v6*)
   7.199 +		# Don't forget version if it is 3.2v4 or newer.
   7.200 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   7.201 +		;;
   7.202 +	-sco*)
   7.203 +		os=-sco3.2v2
   7.204 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   7.205 +		;;
   7.206 +	-udk*)
   7.207 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   7.208 +		;;
   7.209 +	-isc)
   7.210 +		os=-isc2.2
   7.211 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   7.212 +		;;
   7.213 +	-clix*)
   7.214 +		basic_machine=clipper-intergraph
   7.215 +		;;
   7.216 +	-isc*)
   7.217 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   7.218 +		;;
   7.219 +	-lynx*)
   7.220 +		os=-lynxos
   7.221 +		;;
   7.222 +	-ptx*)
   7.223 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
   7.224 +		;;
   7.225 +	-windowsnt*)
   7.226 +		os=`echo $os | sed -e 's/windowsnt/winnt/'`
   7.227 +		;;
   7.228 +	-psos*)
   7.229 +		os=-psos
   7.230 +		;;
   7.231 +	-mint | -mint[0-9]*)
   7.232 +		basic_machine=m68k-atari
   7.233 +		os=-mint
   7.234 +		;;
   7.235 +esac
   7.236 +
   7.237 +# Decode aliases for certain CPU-COMPANY combinations.
   7.238 +case $basic_machine in
   7.239 +	# Recognize the basic CPU types without company name.
   7.240 +	# Some are omitted here because they have special meanings below.
   7.241 +	1750a | 580 \
   7.242 +	| a29k \
   7.243 +	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
   7.244 +	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
   7.245 +	| am33_2.0 \
   7.246 +	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
   7.247 +	| bfin \
   7.248 +	| c4x | clipper \
   7.249 +	| d10v | d30v | dlx | dsp16xx \
   7.250 +	| fr30 | frv \
   7.251 +	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
   7.252 +	| i370 | i860 | i960 | ia64 \
   7.253 +	| ip2k | iq2000 \
   7.254 +	| m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \
   7.255 +	| mips | mipsbe | mipseb | mipsel | mipsle \
   7.256 +	| mips16 \
   7.257 +	| mips64 | mips64el \
   7.258 +	| mips64vr | mips64vrel \
   7.259 +	| mips64orion | mips64orionel \
   7.260 +	| mips64vr4100 | mips64vr4100el \
   7.261 +	| mips64vr4300 | mips64vr4300el \
   7.262 +	| mips64vr5000 | mips64vr5000el \
   7.263 +	| mips64vr5900 | mips64vr5900el \
   7.264 +	| mipsisa32 | mipsisa32el \
   7.265 +	| mipsisa32r2 | mipsisa32r2el \
   7.266 +	| mipsisa64 | mipsisa64el \
   7.267 +	| mipsisa64r2 | mipsisa64r2el \
   7.268 +	| mipsisa64sb1 | mipsisa64sb1el \
   7.269 +	| mipsisa64sr71k | mipsisa64sr71kel \
   7.270 +	| mipstx39 | mipstx39el \
   7.271 +	| mn10200 | mn10300 \
   7.272 +	| mt \
   7.273 +	| msp430 \
   7.274 +	| ns16k | ns32k \
   7.275 +	| or32 \
   7.276 +	| pdp10 | pdp11 | pj | pjl \
   7.277 +	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
   7.278 +	| pyramid \
   7.279 +	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
   7.280 +	| sh64 | sh64le \
   7.281 +	| sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
   7.282 +	| sparcv8 | sparcv9 | sparcv9b \
   7.283 +	| strongarm \
   7.284 +	| tahoe | thumb | tic4x | tic80 | tron \
   7.285 +	| v850 | v850e \
   7.286 +	| we32k \
   7.287 +	| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
   7.288 +	| z8k)
   7.289 +		basic_machine=$basic_machine-unknown
   7.290 +		;;
   7.291 +	m32c)
   7.292 +		basic_machine=$basic_machine-unknown
   7.293 +		;;
   7.294 +	m6811 | m68hc11 | m6812 | m68hc12)
   7.295 +		# Motorola 68HC11/12.
   7.296 +		basic_machine=$basic_machine-unknown
   7.297 +		os=-none
   7.298 +		;;
   7.299 +	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
   7.300 +		;;
   7.301 +	ms1)
   7.302 +		basic_machine=mt-unknown
   7.303 +		;;
   7.304 +
   7.305 +	# We use `pc' rather than `unknown'
   7.306 +	# because (1) that's what they normally are, and
   7.307 +	# (2) the word "unknown" tends to confuse beginning users.
   7.308 +	i*86 | x86_64)
   7.309 +	  basic_machine=$basic_machine-pc
   7.310 +	  ;;
   7.311 +	# Object if more than one company name word.
   7.312 +	*-*-*)
   7.313 +		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
   7.314 +		exit 1
   7.315 +		;;
   7.316 +	# Recognize the basic CPU types with company name.
   7.317 +	580-* \
   7.318 +	| a29k-* \
   7.319 +	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
   7.320 +	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
   7.321 +	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
   7.322 +	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
   7.323 +	| avr-* \
   7.324 +	| bfin-* | bs2000-* \
   7.325 +	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
   7.326 +	| clipper-* | craynv-* | cydra-* \
   7.327 +	| d10v-* | d30v-* | dlx-* \
   7.328 +	| elxsi-* \
   7.329 +	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
   7.330 +	| h8300-* | h8500-* \
   7.331 +	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
   7.332 +	| i*86-* | i860-* | i960-* | ia64-* \
   7.333 +	| ip2k-* | iq2000-* \
   7.334 +	| m32r-* | m32rle-* \
   7.335 +	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
   7.336 +	| m88110-* | m88k-* | maxq-* | mcore-* \
   7.337 +	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
   7.338 +	| mips16-* \
   7.339 +	| mips64-* | mips64el-* \
   7.340 +	| mips64vr-* | mips64vrel-* \
   7.341 +	| mips64orion-* | mips64orionel-* \
   7.342 +	| mips64vr4100-* | mips64vr4100el-* \
   7.343 +	| mips64vr4300-* | mips64vr4300el-* \
   7.344 +	| mips64vr5000-* | mips64vr5000el-* \
   7.345 +	| mips64vr5900-* | mips64vr5900el-* \
   7.346 +	| mipsisa32-* | mipsisa32el-* \
   7.347 +	| mipsisa32r2-* | mipsisa32r2el-* \
   7.348 +	| mipsisa64-* | mipsisa64el-* \
   7.349 +	| mipsisa64r2-* | mipsisa64r2el-* \
   7.350 +	| mipsisa64sb1-* | mipsisa64sb1el-* \
   7.351 +	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
   7.352 +	| mipstx39-* | mipstx39el-* \
   7.353 +	| mmix-* \
   7.354 +	| mt-* \
   7.355 +	| msp430-* \
   7.356 +	| none-* | np1-* | ns16k-* | ns32k-* \
   7.357 +	| orion-* \
   7.358 +	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
   7.359 +	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
   7.360 +	| pyramid-* \
   7.361 +	| romp-* | rs6000-* \
   7.362 +	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
   7.363 +	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
   7.364 +	| sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
   7.365 +	| sparclite-* \
   7.366 +	| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
   7.367 +	| tahoe-* | thumb-* \
   7.368 +	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
   7.369 +	| tron-* \
   7.370 +	| v850-* | v850e-* | vax-* \
   7.371 +	| we32k-* \
   7.372 +	| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
   7.373 +	| xstormy16-* | xtensa-* \
   7.374 +	| ymp-* \
   7.375 +	| z8k-*)
   7.376 +		;;
   7.377 +	m32c-*)
   7.378 +		;;
   7.379 +	# Recognize the various machine names and aliases which stand
   7.380 +	# for a CPU type and a company and sometimes even an OS.
   7.381 +	386bsd)
   7.382 +		basic_machine=i386-unknown
   7.383 +		os=-bsd
   7.384 +		;;
   7.385 +	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
   7.386 +		basic_machine=m68000-att
   7.387 +		;;
   7.388 +	3b*)
   7.389 +		basic_machine=we32k-att
   7.390 +		;;
   7.391 +	a29khif)
   7.392 +		basic_machine=a29k-amd
   7.393 +		os=-udi
   7.394 +		;;
   7.395 +    	abacus)
   7.396 +		basic_machine=abacus-unknown
   7.397 +		;;
   7.398 +	adobe68k)
   7.399 +		basic_machine=m68010-adobe
   7.400 +		os=-scout
   7.401 +		;;
   7.402 +	alliant | fx80)
   7.403 +		basic_machine=fx80-alliant
   7.404 +		;;
   7.405 +	altos | altos3068)
   7.406 +		basic_machine=m68k-altos
   7.407 +		;;
   7.408 +	am29k)
   7.409 +		basic_machine=a29k-none
   7.410 +		os=-bsd
   7.411 +		;;
   7.412 +	amd64)
   7.413 +		basic_machine=x86_64-pc
   7.414 +		;;
   7.415 +	amd64-*)
   7.416 +		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
   7.417 +		;;
   7.418 +	amdahl)
   7.419 +		basic_machine=580-amdahl
   7.420 +		os=-sysv
   7.421 +		;;
   7.422 +	amiga | amiga-*)
   7.423 +		basic_machine=m68k-unknown
   7.424 +		;;
   7.425 +	amigaos | amigados)
   7.426 +		basic_machine=m68k-unknown
   7.427 +		os=-amigaos
   7.428 +		;;
   7.429 +	amigaunix | amix)
   7.430 +		basic_machine=m68k-unknown
   7.431 +		os=-sysv4
   7.432 +		;;
   7.433 +	apollo68)
   7.434 +		basic_machine=m68k-apollo
   7.435 +		os=-sysv
   7.436 +		;;
   7.437 +	apollo68bsd)
   7.438 +		basic_machine=m68k-apollo
   7.439 +		os=-bsd
   7.440 +		;;
   7.441 +	aux)
   7.442 +		basic_machine=m68k-apple
   7.443 +		os=-aux
   7.444 +		;;
   7.445 +	balance)
   7.446 +		basic_machine=ns32k-sequent
   7.447 +		os=-dynix
   7.448 +		;;
   7.449 +	c90)
   7.450 +		basic_machine=c90-cray
   7.451 +		os=-unicos
   7.452 +		;;
   7.453 +	convex-c1)
   7.454 +		basic_machine=c1-convex
   7.455 +		os=-bsd
   7.456 +		;;
   7.457 +	convex-c2)
   7.458 +		basic_machine=c2-convex
   7.459 +		os=-bsd
   7.460 +		;;
   7.461 +	convex-c32)
   7.462 +		basic_machine=c32-convex
   7.463 +		os=-bsd
   7.464 +		;;
   7.465 +	convex-c34)
   7.466 +		basic_machine=c34-convex
   7.467 +		os=-bsd
   7.468 +		;;
   7.469 +	convex-c38)
   7.470 +		basic_machine=c38-convex
   7.471 +		os=-bsd
   7.472 +		;;
   7.473 +	cray | j90)
   7.474 +		basic_machine=j90-cray
   7.475 +		os=-unicos
   7.476 +		;;
   7.477 +	craynv)
   7.478 +		basic_machine=craynv-cray
   7.479 +		os=-unicosmp
   7.480 +		;;
   7.481 +	cr16c)
   7.482 +		basic_machine=cr16c-unknown
   7.483 +		os=-elf
   7.484 +		;;
   7.485 +	crds | unos)
   7.486 +		basic_machine=m68k-crds
   7.487 +		;;
   7.488 +	crisv32 | crisv32-* | etraxfs*)
   7.489 +		basic_machine=crisv32-axis
   7.490 +		;;
   7.491 +	cris | cris-* | etrax*)
   7.492 +		basic_machine=cris-axis
   7.493 +		;;
   7.494 +	crx)
   7.495 +		basic_machine=crx-unknown
   7.496 +		os=-elf
   7.497 +		;;
   7.498 +	da30 | da30-*)
   7.499 +		basic_machine=m68k-da30
   7.500 +		;;
   7.501 +	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
   7.502 +		basic_machine=mips-dec
   7.503 +		;;
   7.504 +	decsystem10* | dec10*)
   7.505 +		basic_machine=pdp10-dec
   7.506 +		os=-tops10
   7.507 +		;;
   7.508 +	decsystem20* | dec20*)
   7.509 +		basic_machine=pdp10-dec
   7.510 +		os=-tops20
   7.511 +		;;
   7.512 +	delta | 3300 | motorola-3300 | motorola-delta \
   7.513 +	      | 3300-motorola | delta-motorola)
   7.514 +		basic_machine=m68k-motorola
   7.515 +		;;
   7.516 +	delta88)
   7.517 +		basic_machine=m88k-motorola
   7.518 +		os=-sysv3
   7.519 +		;;
   7.520 +	djgpp)
   7.521 +		basic_machine=i586-pc
   7.522 +		os=-msdosdjgpp
   7.523 +		;;
   7.524 +	dpx20 | dpx20-*)
   7.525 +		basic_machine=rs6000-bull
   7.526 +		os=-bosx
   7.527 +		;;
   7.528 +	dpx2* | dpx2*-bull)
   7.529 +		basic_machine=m68k-bull
   7.530 +		os=-sysv3
   7.531 +		;;
   7.532 +	ebmon29k)
   7.533 +		basic_machine=a29k-amd
   7.534 +		os=-ebmon
   7.535 +		;;
   7.536 +	elxsi)
   7.537 +		basic_machine=elxsi-elxsi
   7.538 +		os=-bsd
   7.539 +		;;
   7.540 +	encore | umax | mmax)
   7.541 +		basic_machine=ns32k-encore
   7.542 +		;;
   7.543 +	es1800 | OSE68k | ose68k | ose | OSE)
   7.544 +		basic_machine=m68k-ericsson
   7.545 +		os=-ose
   7.546 +		;;
   7.547 +	fx2800)
   7.548 +		basic_machine=i860-alliant
   7.549 +		;;
   7.550 +	genix)
   7.551 +		basic_machine=ns32k-ns
   7.552 +		;;
   7.553 +	gmicro)
   7.554 +		basic_machine=tron-gmicro
   7.555 +		os=-sysv
   7.556 +		;;
   7.557 +	go32)
   7.558 +		basic_machine=i386-pc
   7.559 +		os=-go32
   7.560 +		;;
   7.561 +	h3050r* | hiux*)
   7.562 +		basic_machine=hppa1.1-hitachi
   7.563 +		os=-hiuxwe2
   7.564 +		;;
   7.565 +	h8300hms)
   7.566 +		basic_machine=h8300-hitachi
   7.567 +		os=-hms
   7.568 +		;;
   7.569 +	h8300xray)
   7.570 +		basic_machine=h8300-hitachi
   7.571 +		os=-xray
   7.572 +		;;
   7.573 +	h8500hms)
   7.574 +		basic_machine=h8500-hitachi
   7.575 +		os=-hms
   7.576 +		;;
   7.577 +	harris)
   7.578 +		basic_machine=m88k-harris
   7.579 +		os=-sysv3
   7.580 +		;;
   7.581 +	hp300-*)
   7.582 +		basic_machine=m68k-hp
   7.583 +		;;
   7.584 +	hp300bsd)
   7.585 +		basic_machine=m68k-hp
   7.586 +		os=-bsd
   7.587 +		;;
   7.588 +	hp300hpux)
   7.589 +		basic_machine=m68k-hp
   7.590 +		os=-hpux
   7.591 +		;;
   7.592 +	hp3k9[0-9][0-9] | hp9[0-9][0-9])
   7.593 +		basic_machine=hppa1.0-hp
   7.594 +		;;
   7.595 +	hp9k2[0-9][0-9] | hp9k31[0-9])
   7.596 +		basic_machine=m68000-hp
   7.597 +		;;
   7.598 +	hp9k3[2-9][0-9])
   7.599 +		basic_machine=m68k-hp
   7.600 +		;;
   7.601 +	hp9k6[0-9][0-9] | hp6[0-9][0-9])
   7.602 +		basic_machine=hppa1.0-hp
   7.603 +		;;
   7.604 +	hp9k7[0-79][0-9] | hp7[0-79][0-9])
   7.605 +		basic_machine=hppa1.1-hp
   7.606 +		;;
   7.607 +	hp9k78[0-9] | hp78[0-9])
   7.608 +		# FIXME: really hppa2.0-hp
   7.609 +		basic_machine=hppa1.1-hp
   7.610 +		;;
   7.611 +	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
   7.612 +		# FIXME: really hppa2.0-hp
   7.613 +		basic_machine=hppa1.1-hp
   7.614 +		;;
   7.615 +	hp9k8[0-9][13679] | hp8[0-9][13679])
   7.616 +		basic_machine=hppa1.1-hp
   7.617 +		;;
   7.618 +	hp9k8[0-9][0-9] | hp8[0-9][0-9])
   7.619 +		basic_machine=hppa1.0-hp
   7.620 +		;;
   7.621 +	hppa-next)
   7.622 +		os=-nextstep3
   7.623 +		;;
   7.624 +	hppaosf)
   7.625 +		basic_machine=hppa1.1-hp
   7.626 +		os=-osf
   7.627 +		;;
   7.628 +	hppro)
   7.629 +		basic_machine=hppa1.1-hp
   7.630 +		os=-proelf
   7.631 +		;;
   7.632 +	i370-ibm* | ibm*)
   7.633 +		basic_machine=i370-ibm
   7.634 +		;;
   7.635 +# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
   7.636 +	i*86v32)
   7.637 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   7.638 +		os=-sysv32
   7.639 +		;;
   7.640 +	i*86v4*)
   7.641 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   7.642 +		os=-sysv4
   7.643 +		;;
   7.644 +	i*86v)
   7.645 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   7.646 +		os=-sysv
   7.647 +		;;
   7.648 +	i*86sol2)
   7.649 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   7.650 +		os=-solaris2
   7.651 +		;;
   7.652 +	i386mach)
   7.653 +		basic_machine=i386-mach
   7.654 +		os=-mach
   7.655 +		;;
   7.656 +	i386-vsta | vsta)
   7.657 +		basic_machine=i386-unknown
   7.658 +		os=-vsta
   7.659 +		;;
   7.660 +	iris | iris4d)
   7.661 +		basic_machine=mips-sgi
   7.662 +		case $os in
   7.663 +		    -irix*)
   7.664 +			;;
   7.665 +		    *)
   7.666 +			os=-irix4
   7.667 +			;;
   7.668 +		esac
   7.669 +		;;
   7.670 +	isi68 | isi)
   7.671 +		basic_machine=m68k-isi
   7.672 +		os=-sysv
   7.673 +		;;
   7.674 +	m88k-omron*)
   7.675 +		basic_machine=m88k-omron
   7.676 +		;;
   7.677 +	magnum | m3230)
   7.678 +		basic_machine=mips-mips
   7.679 +		os=-sysv
   7.680 +		;;
   7.681 +	merlin)
   7.682 +		basic_machine=ns32k-utek
   7.683 +		os=-sysv
   7.684 +		;;
   7.685 +	mingw32)
   7.686 +		basic_machine=i386-pc
   7.687 +		os=-mingw32
   7.688 +		;;
   7.689 +	miniframe)
   7.690 +		basic_machine=m68000-convergent
   7.691 +		;;
   7.692 +	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
   7.693 +		basic_machine=m68k-atari
   7.694 +		os=-mint
   7.695 +		;;
   7.696 +	mips3*-*)
   7.697 +		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
   7.698 +		;;
   7.699 +	mips3*)
   7.700 +		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
   7.701 +		;;
   7.702 +	monitor)
   7.703 +		basic_machine=m68k-rom68k
   7.704 +		os=-coff
   7.705 +		;;
   7.706 +	morphos)
   7.707 +		basic_machine=powerpc-unknown
   7.708 +		os=-morphos
   7.709 +		;;
   7.710 +	msdos)
   7.711 +		basic_machine=i386-pc
   7.712 +		os=-msdos
   7.713 +		;;
   7.714 +	ms1-*)
   7.715 +		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
   7.716 +		;;
   7.717 +	mvs)
   7.718 +		basic_machine=i370-ibm
   7.719 +		os=-mvs
   7.720 +		;;
   7.721 +	ncr3000)
   7.722 +		basic_machine=i486-ncr
   7.723 +		os=-sysv4
   7.724 +		;;
   7.725 +	netbsd386)
   7.726 +		basic_machine=i386-unknown
   7.727 +		os=-netbsd
   7.728 +		;;
   7.729 +	netwinder)
   7.730 +		basic_machine=armv4l-rebel
   7.731 +		os=-linux
   7.732 +		;;
   7.733 +	news | news700 | news800 | news900)
   7.734 +		basic_machine=m68k-sony
   7.735 +		os=-newsos
   7.736 +		;;
   7.737 +	news1000)
   7.738 +		basic_machine=m68030-sony
   7.739 +		os=-newsos
   7.740 +		;;
   7.741 +	news-3600 | risc-news)
   7.742 +		basic_machine=mips-sony
   7.743 +		os=-newsos
   7.744 +		;;
   7.745 +	necv70)
   7.746 +		basic_machine=v70-nec
   7.747 +		os=-sysv
   7.748 +		;;
   7.749 +	next | m*-next )
   7.750 +		basic_machine=m68k-next
   7.751 +		case $os in
   7.752 +		    -nextstep* )
   7.753 +			;;
   7.754 +		    -ns2*)
   7.755 +		      os=-nextstep2
   7.756 +			;;
   7.757 +		    *)
   7.758 +		      os=-nextstep3
   7.759 +			;;
   7.760 +		esac
   7.761 +		;;
   7.762 +	nh3000)
   7.763 +		basic_machine=m68k-harris
   7.764 +		os=-cxux
   7.765 +		;;
   7.766 +	nh[45]000)
   7.767 +		basic_machine=m88k-harris
   7.768 +		os=-cxux
   7.769 +		;;
   7.770 +	nindy960)
   7.771 +		basic_machine=i960-intel
   7.772 +		os=-nindy
   7.773 +		;;
   7.774 +	mon960)
   7.775 +		basic_machine=i960-intel
   7.776 +		os=-mon960
   7.777 +		;;
   7.778 +	nonstopux)
   7.779 +		basic_machine=mips-compaq
   7.780 +		os=-nonstopux
   7.781 +		;;
   7.782 +	np1)
   7.783 +		basic_machine=np1-gould
   7.784 +		;;
   7.785 +	nsr-tandem)
   7.786 +		basic_machine=nsr-tandem
   7.787 +		;;
   7.788 +	op50n-* | op60c-*)
   7.789 +		basic_machine=hppa1.1-oki
   7.790 +		os=-proelf
   7.791 +		;;
   7.792 +	openrisc | openrisc-*)
   7.793 +		basic_machine=or32-unknown
   7.794 +		;;
   7.795 +	os400)
   7.796 +		basic_machine=powerpc-ibm
   7.797 +		os=-os400
   7.798 +		;;
   7.799 +	OSE68000 | ose68000)
   7.800 +		basic_machine=m68000-ericsson
   7.801 +		os=-ose
   7.802 +		;;
   7.803 +	os68k)
   7.804 +		basic_machine=m68k-none
   7.805 +		os=-os68k
   7.806 +		;;
   7.807 +	pa-hitachi)
   7.808 +		basic_machine=hppa1.1-hitachi
   7.809 +		os=-hiuxwe2
   7.810 +		;;
   7.811 +	paragon)
   7.812 +		basic_machine=i860-intel
   7.813 +		os=-osf
   7.814 +		;;
   7.815 +	pbd)
   7.816 +		basic_machine=sparc-tti
   7.817 +		;;
   7.818 +	pbb)
   7.819 +		basic_machine=m68k-tti
   7.820 +		;;
   7.821 +	pc532 | pc532-*)
   7.822 +		basic_machine=ns32k-pc532
   7.823 +		;;
   7.824 +	pc98)
   7.825 +		basic_machine=i386-pc
   7.826 +		;;
   7.827 +	pc98-*)
   7.828 +		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
   7.829 +		;;
   7.830 +	pentium | p5 | k5 | k6 | nexgen | viac3)
   7.831 +		basic_machine=i586-pc
   7.832 +		;;
   7.833 +	pentiumpro | p6 | 6x86 | athlon | athlon_*)
   7.834 +		basic_machine=i686-pc
   7.835 +		;;
   7.836 +	pentiumii | pentium2 | pentiumiii | pentium3)
   7.837 +		basic_machine=i686-pc
   7.838 +		;;
   7.839 +	pentium4)
   7.840 +		basic_machine=i786-pc
   7.841 +		;;
   7.842 +	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
   7.843 +		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
   7.844 +		;;
   7.845 +	pentiumpro-* | p6-* | 6x86-* | athlon-*)
   7.846 +		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   7.847 +		;;
   7.848 +	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
   7.849 +		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   7.850 +		;;
   7.851 +	pentium4-*)
   7.852 +		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
   7.853 +		;;
   7.854 +	pn)
   7.855 +		basic_machine=pn-gould
   7.856 +		;;
   7.857 +	power)	basic_machine=power-ibm
   7.858 +		;;
   7.859 +	ppc)	basic_machine=powerpc-unknown
   7.860 +		;;
   7.861 +	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
   7.862 +		;;
   7.863 +	ppcle | powerpclittle | ppc-le | powerpc-little)
   7.864 +		basic_machine=powerpcle-unknown
   7.865 +		;;
   7.866 +	ppcle-* | powerpclittle-*)
   7.867 +		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
   7.868 +		;;
   7.869 +	ppc64)	basic_machine=powerpc64-unknown
   7.870 +		;;
   7.871 +	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
   7.872 +		;;
   7.873 +	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
   7.874 +		basic_machine=powerpc64le-unknown
   7.875 +		;;
   7.876 +	ppc64le-* | powerpc64little-*)
   7.877 +		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
   7.878 +		;;
   7.879 +	ps2)
   7.880 +		basic_machine=i386-ibm
   7.881 +		;;
   7.882 +	pw32)
   7.883 +		basic_machine=i586-unknown
   7.884 +		os=-pw32
   7.885 +		;;
   7.886 +	rdos)
   7.887 +		basic_machine=i386-pc
   7.888 +		os=-rdos
   7.889 +		;;
   7.890 +	rom68k)
   7.891 +		basic_machine=m68k-rom68k
   7.892 +		os=-coff
   7.893 +		;;
   7.894 +	rm[46]00)
   7.895 +		basic_machine=mips-siemens
   7.896 +		;;
   7.897 +	rtpc | rtpc-*)
   7.898 +		basic_machine=romp-ibm
   7.899 +		;;
   7.900 +	s390 | s390-*)
   7.901 +		basic_machine=s390-ibm
   7.902 +		;;
   7.903 +	s390x | s390x-*)
   7.904 +		basic_machine=s390x-ibm
   7.905 +		;;
   7.906 +	sa29200)
   7.907 +		basic_machine=a29k-amd
   7.908 +		os=-udi
   7.909 +		;;
   7.910 +	sb1)
   7.911 +		basic_machine=mipsisa64sb1-unknown
   7.912 +		;;
   7.913 +	sb1el)
   7.914 +		basic_machine=mipsisa64sb1el-unknown
   7.915 +		;;
   7.916 +	sei)
   7.917 +		basic_machine=mips-sei
   7.918 +		os=-seiux
   7.919 +		;;
   7.920 +	sequent)
   7.921 +		basic_machine=i386-sequent
   7.922 +		;;
   7.923 +	sh)
   7.924 +		basic_machine=sh-hitachi
   7.925 +		os=-hms
   7.926 +		;;
   7.927 +	sh64)
   7.928 +		basic_machine=sh64-unknown
   7.929 +		;;
   7.930 +	sparclite-wrs | simso-wrs)
   7.931 +		basic_machine=sparclite-wrs
   7.932 +		os=-vxworks
   7.933 +		;;
   7.934 +	sps7)
   7.935 +		basic_machine=m68k-bull
   7.936 +		os=-sysv2
   7.937 +		;;
   7.938 +	spur)
   7.939 +		basic_machine=spur-unknown
   7.940 +		;;
   7.941 +	st2000)
   7.942 +		basic_machine=m68k-tandem
   7.943 +		;;
   7.944 +	stratus)
   7.945 +		basic_machine=i860-stratus
   7.946 +		os=-sysv4
   7.947 +		;;
   7.948 +	sun2)
   7.949 +		basic_machine=m68000-sun
   7.950 +		;;
   7.951 +	sun2os3)
   7.952 +		basic_machine=m68000-sun
   7.953 +		os=-sunos3
   7.954 +		;;
   7.955 +	sun2os4)
   7.956 +		basic_machine=m68000-sun
   7.957 +		os=-sunos4
   7.958 +		;;
   7.959 +	sun3os3)
   7.960 +		basic_machine=m68k-sun
   7.961 +		os=-sunos3
   7.962 +		;;
   7.963 +	sun3os4)
   7.964 +		basic_machine=m68k-sun
   7.965 +		os=-sunos4
   7.966 +		;;
   7.967 +	sun4os3)
   7.968 +		basic_machine=sparc-sun
   7.969 +		os=-sunos3
   7.970 +		;;
   7.971 +	sun4os4)
   7.972 +		basic_machine=sparc-sun
   7.973 +		os=-sunos4
   7.974 +		;;
   7.975 +	sun4sol2)
   7.976 +		basic_machine=sparc-sun
   7.977 +		os=-solaris2
   7.978 +		;;
   7.979 +	sun3 | sun3-*)
   7.980 +		basic_machine=m68k-sun
   7.981 +		;;
   7.982 +	sun4)
   7.983 +		basic_machine=sparc-sun
   7.984 +		;;
   7.985 +	sun386 | sun386i | roadrunner)
   7.986 +		basic_machine=i386-sun
   7.987 +		;;
   7.988 +	sv1)
   7.989 +		basic_machine=sv1-cray
   7.990 +		os=-unicos
   7.991 +		;;
   7.992 +	symmetry)
   7.993 +		basic_machine=i386-sequent
   7.994 +		os=-dynix
   7.995 +		;;
   7.996 +	t3e)
   7.997 +		basic_machine=alphaev5-cray
   7.998 +		os=-unicos
   7.999 +		;;
  7.1000 +	t90)
  7.1001 +		basic_machine=t90-cray
  7.1002 +		os=-unicos
  7.1003 +		;;
  7.1004 +	tic54x | c54x*)
  7.1005 +		basic_machine=tic54x-unknown
  7.1006 +		os=-coff
  7.1007 +		;;
  7.1008 +	tic55x | c55x*)
  7.1009 +		basic_machine=tic55x-unknown
  7.1010 +		os=-coff
  7.1011 +		;;
  7.1012 +	tic6x | c6x*)
  7.1013 +		basic_machine=tic6x-unknown
  7.1014 +		os=-coff
  7.1015 +		;;
  7.1016 +	tx39)
  7.1017 +		basic_machine=mipstx39-unknown
  7.1018 +		;;
  7.1019 +	tx39el)
  7.1020 +		basic_machine=mipstx39el-unknown
  7.1021 +		;;
  7.1022 +	toad1)
  7.1023 +		basic_machine=pdp10-xkl
  7.1024 +		os=-tops20
  7.1025 +		;;
  7.1026 +	tower | tower-32)
  7.1027 +		basic_machine=m68k-ncr
  7.1028 +		;;
  7.1029 +	tpf)
  7.1030 +		basic_machine=s390x-ibm
  7.1031 +		os=-tpf
  7.1032 +		;;
  7.1033 +	udi29k)
  7.1034 +		basic_machine=a29k-amd
  7.1035 +		os=-udi
  7.1036 +		;;
  7.1037 +	ultra3)
  7.1038 +		basic_machine=a29k-nyu
  7.1039 +		os=-sym1
  7.1040 +		;;
  7.1041 +	v810 | necv810)
  7.1042 +		basic_machine=v810-nec
  7.1043 +		os=-none
  7.1044 +		;;
  7.1045 +	vaxv)
  7.1046 +		basic_machine=vax-dec
  7.1047 +		os=-sysv
  7.1048 +		;;
  7.1049 +	vms)
  7.1050 +		basic_machine=vax-dec
  7.1051 +		os=-vms
  7.1052 +		;;
  7.1053 +	vpp*|vx|vx-*)
  7.1054 +		basic_machine=f301-fujitsu
  7.1055 +		;;
  7.1056 +	vxworks960)
  7.1057 +		basic_machine=i960-wrs
  7.1058 +		os=-vxworks
  7.1059 +		;;
  7.1060 +	vxworks68)
  7.1061 +		basic_machine=m68k-wrs
  7.1062 +		os=-vxworks
  7.1063 +		;;
  7.1064 +	vxworks29k)
  7.1065 +		basic_machine=a29k-wrs
  7.1066 +		os=-vxworks
  7.1067 +		;;
  7.1068 +	w65*)
  7.1069 +		basic_machine=w65-wdc
  7.1070 +		os=-none
  7.1071 +		;;
  7.1072 +	w89k-*)
  7.1073 +		basic_machine=hppa1.1-winbond
  7.1074 +		os=-proelf
  7.1075 +		;;
  7.1076 +	xbox)
  7.1077 +		basic_machine=i686-pc
  7.1078 +		os=-mingw32
  7.1079 +		;;
  7.1080 +	xps | xps100)
  7.1081 +		basic_machine=xps100-honeywell
  7.1082 +		;;
  7.1083 +	ymp)
  7.1084 +		basic_machine=ymp-cray
  7.1085 +		os=-unicos
  7.1086 +		;;
  7.1087 +	z8k-*-coff)
  7.1088 +		basic_machine=z8k-unknown
  7.1089 +		os=-sim
  7.1090 +		;;
  7.1091 +	none)
  7.1092 +		basic_machine=none-none
  7.1093 +		os=-none
  7.1094 +		;;
  7.1095 +
  7.1096 +# Here we handle the default manufacturer of certain CPU types.  It is in
  7.1097 +# some cases the only manufacturer, in others, it is the most popular.
  7.1098 +	w89k)
  7.1099 +		basic_machine=hppa1.1-winbond
  7.1100 +		;;
  7.1101 +	op50n)
  7.1102 +		basic_machine=hppa1.1-oki
  7.1103 +		;;
  7.1104 +	op60c)
  7.1105 +		basic_machine=hppa1.1-oki
  7.1106 +		;;
  7.1107 +	romp)
  7.1108 +		basic_machine=romp-ibm
  7.1109 +		;;
  7.1110 +	mmix)
  7.1111 +		basic_machine=mmix-knuth
  7.1112 +		;;
  7.1113 +	rs6000)
  7.1114 +		basic_machine=rs6000-ibm
  7.1115 +		;;
  7.1116 +	vax)
  7.1117 +		basic_machine=vax-dec
  7.1118 +		;;
  7.1119 +	pdp10)
  7.1120 +		# there are many clones, so DEC is not a safe bet
  7.1121 +		basic_machine=pdp10-unknown
  7.1122 +		;;
  7.1123 +	pdp11)
  7.1124 +		basic_machine=pdp11-dec
  7.1125 +		;;
  7.1126 +	we32k)
  7.1127 +		basic_machine=we32k-att
  7.1128 +		;;
  7.1129 +	sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  7.1130 +		basic_machine=sh-unknown
  7.1131 +		;;
  7.1132 +	sparc | sparcv8 | sparcv9 | sparcv9b)
  7.1133 +		basic_machine=sparc-sun
  7.1134 +		;;
  7.1135 +	cydra)
  7.1136 +		basic_machine=cydra-cydrome
  7.1137 +		;;
  7.1138 +	orion)
  7.1139 +		basic_machine=orion-highlevel
  7.1140 +		;;
  7.1141 +	orion105)
  7.1142 +		basic_machine=clipper-highlevel
  7.1143 +		;;
  7.1144 +	mac | mpw | mac-mpw)
  7.1145 +		basic_machine=m68k-apple
  7.1146 +		;;
  7.1147 +	pmac | pmac-mpw)
  7.1148 +		basic_machine=powerpc-apple
  7.1149 +		;;
  7.1150 +	*-unknown)
  7.1151 +		# Make sure to match an already-canonicalized machine name.
  7.1152 +		;;
  7.1153 +	*)
  7.1154 +		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  7.1155 +		exit 1
  7.1156 +		;;
  7.1157 +esac
  7.1158 +
  7.1159 +# Here we canonicalize certain aliases for manufacturers.
  7.1160 +case $basic_machine in
  7.1161 +	*-digital*)
  7.1162 +		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
  7.1163 +		;;
  7.1164 +	*-commodore*)
  7.1165 +		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
  7.1166 +		;;
  7.1167 +	*)
  7.1168 +		;;
  7.1169 +esac
  7.1170 +
  7.1171 +# Decode manufacturer-specific aliases for certain operating systems.
  7.1172 +
  7.1173 +if [ x"$os" != x"" ]
  7.1174 +then
  7.1175 +case $os in
  7.1176 +        # First match some system type aliases
  7.1177 +        # that might get confused with valid system types.
  7.1178 +	# -solaris* is a basic system type, with this one exception.
  7.1179 +	-solaris1 | -solaris1.*)
  7.1180 +		os=`echo $os | sed -e 's|solaris1|sunos4|'`
  7.1181 +		;;
  7.1182 +	-solaris)
  7.1183 +		os=-solaris2
  7.1184 +		;;
  7.1185 +	-svr4*)
  7.1186 +		os=-sysv4
  7.1187 +		;;
  7.1188 +	-unixware*)
  7.1189 +		os=-sysv4.2uw
  7.1190 +		;;
  7.1191 +	-gnu/linux*)
  7.1192 +		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
  7.1193 +		;;
  7.1194 +	# First accept the basic system types.
  7.1195 +	# The portable systems comes first.
  7.1196 +	# Each alternative MUST END IN A *, to match a version number.
  7.1197 +	# -sysv* is not here because it comes later, after sysvr4.
  7.1198 +	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  7.1199 +	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  7.1200 +	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  7.1201 +	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  7.1202 +	      | -aos* \
  7.1203 +	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  7.1204 +	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  7.1205 +	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  7.1206 +	      | -openbsd* | -solidbsd* \
  7.1207 +	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  7.1208 +	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  7.1209 +	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  7.1210 +	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  7.1211 +	      | -chorusos* | -chorusrdb* \
  7.1212 +	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  7.1213 +	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  7.1214 +	      | -uxpv* | -beos* | -mpeix* | -udk* \
  7.1215 +	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  7.1216 +	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  7.1217 +	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  7.1218 +	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  7.1219 +	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  7.1220 +	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  7.1221 +	      | -skyos* | -haiku* | -rdos*)
  7.1222 +	# Remember, each alternative MUST END IN *, to match a version number.
  7.1223 +		;;
  7.1224 +	-qnx*)
  7.1225 +		case $basic_machine in
  7.1226 +		    x86-* | i*86-*)
  7.1227 +			;;
  7.1228 +		    *)
  7.1229 +			os=-nto$os
  7.1230 +			;;
  7.1231 +		esac
  7.1232 +		;;
  7.1233 +	-nto-qnx*)
  7.1234 +		;;
  7.1235 +	-nto*)
  7.1236 +		os=`echo $os | sed -e 's|nto|nto-qnx|'`
  7.1237 +		;;
  7.1238 +	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  7.1239 +	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
  7.1240 +	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  7.1241 +		;;
  7.1242 +	-mac*)
  7.1243 +		os=`echo $os | sed -e 's|mac|macos|'`
  7.1244 +		;;
  7.1245 +	-linux-dietlibc)
  7.1246 +		os=-linux-dietlibc
  7.1247 +		;;
  7.1248 +	-linux*)
  7.1249 +		os=`echo $os | sed -e 's|linux|linux-gnu|'`
  7.1250 +		;;
  7.1251 +	-sunos5*)
  7.1252 +		os=`echo $os | sed -e 's|sunos5|solaris2|'`
  7.1253 +		;;
  7.1254 +	-sunos6*)
  7.1255 +		os=`echo $os | sed -e 's|sunos6|solaris3|'`
  7.1256 +		;;
  7.1257 +	-opened*)
  7.1258 +		os=-openedition
  7.1259 +		;;
  7.1260 +        -os400*)
  7.1261 +		os=-os400
  7.1262 +		;;
  7.1263 +	-wince*)
  7.1264 +		os=-wince
  7.1265 +		;;
  7.1266 +	-osfrose*)
  7.1267 +		os=-osfrose
  7.1268 +		;;
  7.1269 +	-osf*)
  7.1270 +		os=-osf
  7.1271 +		;;
  7.1272 +	-utek*)
  7.1273 +		os=-bsd
  7.1274 +		;;
  7.1275 +	-dynix*)
  7.1276 +		os=-bsd
  7.1277 +		;;
  7.1278 +	-acis*)
  7.1279 +		os=-aos
  7.1280 +		;;
  7.1281 +	-atheos*)
  7.1282 +		os=-atheos
  7.1283 +		;;
  7.1284 +	-syllable*)
  7.1285 +		os=-syllable
  7.1286 +		;;
  7.1287 +	-386bsd)
  7.1288 +		os=-bsd
  7.1289 +		;;
  7.1290 +	-ctix* | -uts*)
  7.1291 +		os=-sysv
  7.1292 +		;;
  7.1293 +	-nova*)
  7.1294 +		os=-rtmk-nova
  7.1295 +		;;
  7.1296 +	-ns2 )
  7.1297 +		os=-nextstep2
  7.1298 +		;;
  7.1299 +	-nsk*)
  7.1300 +		os=-nsk
  7.1301 +		;;
  7.1302 +	# Preserve the version number of sinix5.
  7.1303 +	-sinix5.*)
  7.1304 +		os=`echo $os | sed -e 's|sinix|sysv|'`
  7.1305 +		;;
  7.1306 +	-sinix*)
  7.1307 +		os=-sysv4
  7.1308 +		;;
  7.1309 +        -tpf*)
  7.1310 +		os=-tpf
  7.1311 +		;;
  7.1312 +	-triton*)
  7.1313 +		os=-sysv3
  7.1314 +		;;
  7.1315 +	-oss*)
  7.1316 +		os=-sysv3
  7.1317 +		;;
  7.1318 +	-svr4)
  7.1319 +		os=-sysv4
  7.1320 +		;;
  7.1321 +	-svr3)
  7.1322 +		os=-sysv3
  7.1323 +		;;
  7.1324 +	-sysvr4)
  7.1325 +		os=-sysv4
  7.1326 +		;;
  7.1327 +	# This must come after -sysvr4.
  7.1328 +	-sysv*)
  7.1329 +		;;
  7.1330 +	-ose*)
  7.1331 +		os=-ose
  7.1332 +		;;
  7.1333 +	-es1800*)
  7.1334 +		os=-ose
  7.1335 +		;;
  7.1336 +	-xenix)
  7.1337 +		os=-xenix
  7.1338 +		;;
  7.1339 +	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  7.1340 +		os=-mint
  7.1341 +		;;
  7.1342 +	-aros*)
  7.1343 +		os=-aros
  7.1344 +		;;
  7.1345 +	-kaos*)
  7.1346 +		os=-kaos
  7.1347 +		;;
  7.1348 +	-zvmoe)
  7.1349 +		os=-zvmoe
  7.1350 +		;;
  7.1351 +	-none)
  7.1352 +		;;
  7.1353 +	*)
  7.1354 +		# Get rid of the `-' at the beginning of $os.
  7.1355 +		os=`echo $os | sed 's/[^-]*-//'`
  7.1356 +		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
  7.1357 +		exit 1
  7.1358 +		;;
  7.1359 +esac
  7.1360 +else
  7.1361 +
  7.1362 +# Here we handle the default operating systems that come with various machines.
  7.1363 +# The value should be what the vendor currently ships out the door with their
  7.1364 +# machine or put another way, the most popular os provided with the machine.
  7.1365 +
  7.1366 +# Note that if you're going to try to match "-MANUFACTURER" here (say,
  7.1367 +# "-sun"), then you have to tell the case statement up towards the top
  7.1368 +# that MANUFACTURER isn't an operating system.  Otherwise, code above
  7.1369 +# will signal an error saying that MANUFACTURER isn't an operating
  7.1370 +# system, and we'll never get to this point.
  7.1371 +
  7.1372 +case $basic_machine in
  7.1373 +	*-acorn)
  7.1374 +		os=-riscix1.2
  7.1375 +		;;
  7.1376 +	arm*-rebel)
  7.1377 +		os=-linux
  7.1378 +		;;
  7.1379 +	arm*-semi)
  7.1380 +		os=-aout
  7.1381 +		;;
  7.1382 +    c4x-* | tic4x-*)
  7.1383 +        os=-coff
  7.1384 +        ;;
  7.1385 +	# This must come before the *-dec entry.
  7.1386 +	pdp10-*)
  7.1387 +		os=-tops20
  7.1388 +		;;
  7.1389 +	pdp11-*)
  7.1390 +		os=-none
  7.1391 +		;;
  7.1392 +	*-dec | vax-*)
  7.1393 +		os=-ultrix4.2
  7.1394 +		;;
  7.1395 +	m68*-apollo)
  7.1396 +		os=-domain
  7.1397 +		;;
  7.1398 +	i386-sun)
  7.1399 +		os=-sunos4.0.2
  7.1400 +		;;
  7.1401 +	m68000-sun)
  7.1402 +		os=-sunos3
  7.1403 +		# This also exists in the configure program, but was not the
  7.1404 +		# default.
  7.1405 +		# os=-sunos4
  7.1406 +		;;
  7.1407 +	m68*-cisco)
  7.1408 +		os=-aout
  7.1409 +		;;
  7.1410 +	mips*-cisco)
  7.1411 +		os=-elf
  7.1412 +		;;
  7.1413 +	mips*-*)
  7.1414 +		os=-elf
  7.1415 +		;;
  7.1416 +	or32-*)
  7.1417 +		os=-coff
  7.1418 +		;;
  7.1419 +	*-tti)	# must be before sparc entry or we get the wrong os.
  7.1420 +		os=-sysv3
  7.1421 +		;;
  7.1422 +	sparc-* | *-sun)
  7.1423 +		os=-sunos4.1.1
  7.1424 +		;;
  7.1425 +	*-be)
  7.1426 +		os=-beos
  7.1427 +		;;
  7.1428 +	*-haiku)
  7.1429 +		os=-haiku
  7.1430 +		;;
  7.1431 +	*-ibm)
  7.1432 +		os=-aix
  7.1433 +		;;
  7.1434 +    	*-knuth)
  7.1435 +		os=-mmixware
  7.1436 +		;;
  7.1437 +	*-wec)
  7.1438 +		os=-proelf
  7.1439 +		;;
  7.1440 +	*-winbond)
  7.1441 +		os=-proelf
  7.1442 +		;;
  7.1443 +	*-oki)
  7.1444 +		os=-proelf
  7.1445 +		;;
  7.1446 +	*-hp)
  7.1447 +		os=-hpux
  7.1448 +		;;
  7.1449 +	*-hitachi)
  7.1450 +		os=-hiux
  7.1451 +		;;
  7.1452 +	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
  7.1453 +		os=-sysv
  7.1454 +		;;
  7.1455 +	*-cbm)
  7.1456 +		os=-amigaos
  7.1457 +		;;
  7.1458 +	*-dg)
  7.1459 +		os=-dgux
  7.1460 +		;;
  7.1461 +	*-dolphin)
  7.1462 +		os=-sysv3
  7.1463 +		;;
  7.1464 +	m68k-ccur)
  7.1465 +		os=-rtu
  7.1466 +		;;
  7.1467 +	m88k-omron*)
  7.1468 +		os=-luna
  7.1469 +		;;
  7.1470 +	*-next )
  7.1471 +		os=-nextstep
  7.1472 +		;;
  7.1473 +	*-sequent)
  7.1474 +		os=-ptx
  7.1475 +		;;
  7.1476 +	*-crds)
  7.1477 +		os=-unos
  7.1478 +		;;
  7.1479 +	*-ns)
  7.1480 +		os=-genix
  7.1481 +		;;
  7.1482 +	i370-*)
  7.1483 +		os=-mvs
  7.1484 +		;;
  7.1485 +	*-next)
  7.1486 +		os=-nextstep3
  7.1487 +		;;
  7.1488 +	*-gould)
  7.1489 +		os=-sysv
  7.1490 +		;;
  7.1491 +	*-highlevel)
  7.1492 +		os=-bsd
  7.1493 +		;;
  7.1494 +	*-encore)
  7.1495 +		os=-bsd
  7.1496 +		;;
  7.1497 +	*-sgi)
  7.1498 +		os=-irix
  7.1499 +		;;
  7.1500 +	*-siemens)
  7.1501 +		os=-sysv4
  7.1502 +		;;
  7.1503 +	*-masscomp)
  7.1504 +		os=-rtu
  7.1505 +		;;
  7.1506 +	f30[01]-fujitsu | f700-fujitsu)
  7.1507 +		os=-uxpv
  7.1508 +		;;
  7.1509 +	*-rom68k)
  7.1510 +		os=-coff
  7.1511 +		;;
  7.1512 +	*-*bug)
  7.1513 +		os=-coff
  7.1514 +		;;
  7.1515 +	*-apple)
  7.1516 +		os=-macos
  7.1517 +		;;
  7.1518 +	*-atari*)
  7.1519 +		os=-mint
  7.1520 +		;;
  7.1521 +	*)
  7.1522 +		os=-none
  7.1523 +		;;
  7.1524 +esac
  7.1525 +fi
  7.1526 +
  7.1527 +# Here we handle the case where we know the os, and the CPU type, but not the
  7.1528 +# manufacturer.  We pick the logical manufacturer.
  7.1529 +vendor=unknown
  7.1530 +case $basic_machine in
  7.1531 +	*-unknown)
  7.1532 +		case $os in
  7.1533 +			-riscix*)
  7.1534 +				vendor=acorn
  7.1535 +				;;
  7.1536 +			-sunos*)
  7.1537 +				vendor=sun
  7.1538 +				;;
  7.1539 +			-aix*)
  7.1540 +				vendor=ibm
  7.1541 +				;;
  7.1542 +			-beos*)
  7.1543 +				vendor=be
  7.1544 +				;;
  7.1545 +			-hpux*)
  7.1546 +				vendor=hp
  7.1547 +				;;
  7.1548 +			-mpeix*)
  7.1549 +				vendor=hp
  7.1550 +				;;
  7.1551 +			-hiux*)
  7.1552 +				vendor=hitachi
  7.1553 +				;;
  7.1554 +			-unos*)
  7.1555 +				vendor=crds
  7.1556 +				;;
  7.1557 +			-dgux*)
  7.1558 +				vendor=dg
  7.1559 +				;;
  7.1560 +			-luna*)
  7.1561 +				vendor=omron
  7.1562 +				;;
  7.1563 +			-genix*)
  7.1564 +				vendor=ns
  7.1565 +				;;
  7.1566 +			-mvs* | -opened*)
  7.1567 +				vendor=ibm
  7.1568 +				;;
  7.1569 +			-os400*)
  7.1570 +				vendor=ibm
  7.1571 +				;;
  7.1572 +			-ptx*)
  7.1573 +				vendor=sequent
  7.1574 +				;;
  7.1575 +			-tpf*)
  7.1576 +				vendor=ibm
  7.1577 +				;;
  7.1578 +			-vxsim* | -vxworks* | -windiss*)
  7.1579 +				vendor=wrs
  7.1580 +				;;
  7.1581 +			-aux*)
  7.1582 +				vendor=apple
  7.1583 +				;;
  7.1584 +			-hms*)
  7.1585 +				vendor=hitachi
  7.1586 +				;;
  7.1587 +			-mpw* | -macos*)
  7.1588 +				vendor=apple
  7.1589 +				;;
  7.1590 +			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  7.1591 +				vendor=atari
  7.1592 +				;;
  7.1593 +			-vos*)
  7.1594 +				vendor=stratus
  7.1595 +				;;
  7.1596 +		esac
  7.1597 +		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  7.1598 +		;;
  7.1599 +esac
  7.1600 +
  7.1601 +echo $basic_machine$os
  7.1602 +exit
  7.1603 +
  7.1604 +# Local variables:
  7.1605 +# eval: (add-hook 'write-file-hooks 'time-stamp)
  7.1606 +# time-stamp-start: "timestamp='"
  7.1607 +# time-stamp-format: "%:y-%02m-%02d"
  7.1608 +# time-stamp-end: "'"
  7.1609 +# End:
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/build-scripts/install-sh	Thu Feb 16 10:11:48 2006 +0000
     8.3 @@ -0,0 +1,323 @@
     8.4 +#!/bin/sh
     8.5 +# install - install a program, script, or datafile
     8.6 +
     8.7 +scriptversion=2005-02-02.21
     8.8 +
     8.9 +# This originates from X11R5 (mit/util/scripts/install.sh), which was
    8.10 +# later released in X11R6 (xc/config/util/install.sh) with the
    8.11 +# following copyright and license.
    8.12 +#
    8.13 +# Copyright (C) 1994 X Consortium
    8.14 +#
    8.15 +# Permission is hereby granted, free of charge, to any person obtaining a copy
    8.16 +# of this software and associated documentation files (the "Software"), to
    8.17 +# deal in the Software without restriction, including without limitation the
    8.18 +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
    8.19 +# sell copies of the Software, and to permit persons to whom the Software is
    8.20 +# furnished to do so, subject to the following conditions:
    8.21 +#
    8.22 +# The above copyright notice and this permission notice shall be included in
    8.23 +# all copies or substantial portions of the Software.
    8.24 +#
    8.25 +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    8.26 +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    8.27 +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
    8.28 +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
    8.29 +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
    8.30 +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    8.31 +#
    8.32 +# Except as contained in this notice, the name of the X Consortium shall not
    8.33 +# be used in advertising or otherwise to promote the sale, use or other deal-
    8.34 +# ings in this Software without prior written authorization from the X Consor-
    8.35 +# tium.
    8.36 +#
    8.37 +#
    8.38 +# FSF changes to this file are in the public domain.
    8.39 +#
    8.40 +# Calling this script install-sh is preferred over install.sh, to prevent
    8.41 +# `make' implicit rules from creating a file called install from it
    8.42 +# when there is no Makefile.
    8.43 +#
    8.44 +# This script is compatible with the BSD install script, but was written
    8.45 +# from scratch.  It can only install one file at a time, a restriction
    8.46 +# shared with many OS's install programs.
    8.47 +
    8.48 +# set DOITPROG to echo to test this script
    8.49 +
    8.50 +# Don't use :- since 4.3BSD and earlier shells don't like it.
    8.51 +doit="${DOITPROG-}"
    8.52 +
    8.53 +# put in absolute paths if you don't have them in your path; or use env. vars.
    8.54 +
    8.55 +mvprog="${MVPROG-mv}"
    8.56 +cpprog="${CPPROG-cp}"
    8.57 +chmodprog="${CHMODPROG-chmod}"
    8.58 +chownprog="${CHOWNPROG-chown}"
    8.59 +chgrpprog="${CHGRPPROG-chgrp}"
    8.60 +stripprog="${STRIPPROG-strip}"
    8.61 +rmprog="${RMPROG-rm}"
    8.62 +mkdirprog="${MKDIRPROG-mkdir}"
    8.63 +
    8.64 +chmodcmd="$chmodprog 0755"
    8.65 +chowncmd=
    8.66 +chgrpcmd=
    8.67 +stripcmd=
    8.68 +rmcmd="$rmprog -f"
    8.69 +mvcmd="$mvprog"
    8.70 +src=
    8.71 +dst=
    8.72 +dir_arg=
    8.73 +dstarg=
    8.74 +no_target_directory=
    8.75 +
    8.76 +usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
    8.77 +   or: $0 [OPTION]... SRCFILES... DIRECTORY
    8.78 +   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
    8.79 +   or: $0 [OPTION]... -d DIRECTORIES...
    8.80 +
    8.81 +In the 1st form, copy SRCFILE to DSTFILE.
    8.82 +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
    8.83 +In the 4th, create DIRECTORIES.
    8.84 +
    8.85 +Options:
    8.86 +-c         (ignored)
    8.87 +-d         create directories instead of installing files.
    8.88 +-g GROUP   $chgrpprog installed files to GROUP.
    8.89 +-m MODE    $chmodprog installed files to MODE.
    8.90 +-o USER    $chownprog installed files to USER.
    8.91 +-s         $stripprog installed files.
    8.92 +-t DIRECTORY  install into DIRECTORY.
    8.93 +-T         report an error if DSTFILE is a directory.
    8.94 +--help     display this help and exit.
    8.95 +--version  display version info and exit.
    8.96 +
    8.97 +Environment variables override the default commands:
    8.98 +  CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
    8.99 +"
   8.100 +
   8.101 +while test -n "$1"; do
   8.102 +  case $1 in
   8.103 +    -c) shift
   8.104 +        continue;;
   8.105 +
   8.106 +    -d) dir_arg=true
   8.107 +        shift
   8.108 +        continue;;
   8.109 +
   8.110 +    -g) chgrpcmd="$chgrpprog $2"
   8.111 +        shift
   8.112 +        shift
   8.113 +        continue;;
   8.114 +
   8.115 +    --help) echo "$usage"; exit $?;;
   8.116 +
   8.117 +    -m) chmodcmd="$chmodprog $2"
   8.118 +        shift
   8.119 +        shift
   8.120 +        continue;;
   8.121 +
   8.122 +    -o) chowncmd="$chownprog $2"
   8.123 +        shift
   8.124 +        shift
   8.125 +        continue;;
   8.126 +
   8.127 +    -s) stripcmd=$stripprog
   8.128 +        shift
   8.129 +        continue;;
   8.130 +
   8.131 +    -t) dstarg=$2
   8.132 +	shift
   8.133 +	shift
   8.134 +	continue;;
   8.135 +
   8.136 +    -T) no_target_directory=true
   8.137 +	shift
   8.138 +	continue;;
   8.139 +
   8.140 +    --version) echo "$0 $scriptversion"; exit $?;;
   8.141 +
   8.142 +    *)  # When -d is used, all remaining arguments are directories to create.
   8.143 +	# When -t is used, the destination is already specified.
   8.144 +	test -n "$dir_arg$dstarg" && break
   8.145 +        # Otherwise, the last argument is the destination.  Remove it from $@.
   8.146 +	for arg
   8.147 +	do
   8.148 +          if test -n "$dstarg"; then
   8.149 +	    # $@ is not empty: it contains at least $arg.
   8.150 +	    set fnord "$@" "$dstarg"
   8.151 +	    shift # fnord
   8.152 +	  fi
   8.153 +	  shift # arg
   8.154 +	  dstarg=$arg
   8.155 +	done
   8.156 +	break;;
   8.157 +  esac
   8.158 +done
   8.159 +
   8.160 +if test -z "$1"; then
   8.161 +  if test -z "$dir_arg"; then
   8.162 +    echo "$0: no input file specified." >&2
   8.163 +    exit 1
   8.164 +  fi
   8.165 +  # It's OK to call `install-sh -d' without argument.
   8.166 +  # This can happen when creating conditional directories.
   8.167 +  exit 0
   8.168 +fi
   8.169 +
   8.170 +for src
   8.171 +do
   8.172 +  # Protect names starting with `-'.
   8.173 +  case $src in
   8.174 +    -*) src=./$src ;;
   8.175 +  esac
   8.176 +
   8.177 +  if test -n "$dir_arg"; then
   8.178 +    dst=$src
   8.179 +    src=
   8.180 +
   8.181 +    if test -d "$dst"; then
   8.182 +      mkdircmd=:
   8.183 +      chmodcmd=
   8.184 +    else
   8.185 +      mkdircmd=$mkdirprog
   8.186 +    fi
   8.187 +  else
   8.188 +    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
   8.189 +    # might cause directories to be created, which would be especially bad
   8.190 +    # if $src (and thus $dsttmp) contains '*'.
   8.191 +    if test ! -f "$src" && test ! -d "$src"; then
   8.192 +      echo "$0: $src does not exist." >&2
   8.193 +      exit 1
   8.194 +    fi
   8.195 +
   8.196 +    if test -z "$dstarg"; then
   8.197 +      echo "$0: no destination specified." >&2
   8.198 +      exit 1
   8.199 +    fi
   8.200 +
   8.201 +    dst=$dstarg
   8.202 +    # Protect names starting with `-'.
   8.203 +    case $dst in
   8.204 +      -*) dst=./$dst ;;
   8.205 +    esac
   8.206 +
   8.207 +    # If destination is a directory, append the input filename; won't work
   8.208 +    # if double slashes aren't ignored.
   8.209 +    if test -d "$dst"; then
   8.210 +      if test -n "$no_target_directory"; then
   8.211 +	echo "$0: $dstarg: Is a directory" >&2
   8.212 +	exit 1
   8.213 +      fi
   8.214 +      dst=$dst/`basename "$src"`
   8.215 +    fi
   8.216 +  fi
   8.217 +
   8.218 +  # This sed command emulates the dirname command.
   8.219 +  dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
   8.220 +
   8.221 +  # Make sure that the destination directory exists.
   8.222 +
   8.223 +  # Skip lots of stat calls in the usual case.
   8.224 +  if test ! -d "$dstdir"; then
   8.225 +    defaultIFS='
   8.226 +	 '
   8.227 +    IFS="${IFS-$defaultIFS}"
   8.228 +
   8.229 +    oIFS=$IFS
   8.230 +    # Some sh's can't handle IFS=/ for some reason.
   8.231 +    IFS='%'
   8.232 +    set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
   8.233 +    shift
   8.234 +    IFS=$oIFS
   8.235 +
   8.236 +    pathcomp=
   8.237 +
   8.238 +    while test $# -ne 0 ; do
   8.239 +      pathcomp=$pathcomp$1
   8.240 +      shift
   8.241 +      if test ! -d "$pathcomp"; then
   8.242 +        $mkdirprog "$pathcomp"
   8.243 +	# mkdir can fail with a `File exist' error in case several
   8.244 +	# install-sh are creating the directory concurrently.  This
   8.245 +	# is OK.
   8.246 +	test -d "$pathcomp" || exit
   8.247 +      fi
   8.248 +      pathcomp=$pathcomp/
   8.249 +    done
   8.250 +  fi
   8.251 +
   8.252 +  if test -n "$dir_arg"; then
   8.253 +    $doit $mkdircmd "$dst" \
   8.254 +      && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
   8.255 +      && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
   8.256 +      && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
   8.257 +      && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
   8.258 +
   8.259 +  else
   8.260 +    dstfile=`basename "$dst"`
   8.261 +
   8.262 +    # Make a couple of temp file names in the proper directory.
   8.263 +    dsttmp=$dstdir/_inst.$$_
   8.264 +    rmtmp=$dstdir/_rm.$$_
   8.265 +
   8.266 +    # Trap to clean up those temp files at exit.
   8.267 +    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
   8.268 +    trap '(exit $?); exit' 1 2 13 15
   8.269 +
   8.270 +    # Copy the file name to the temp name.
   8.271 +    $doit $cpprog "$src" "$dsttmp" &&
   8.272 +
   8.273 +    # and set any options; do chmod last to preserve setuid bits.
   8.274 +    #
   8.275 +    # If any of these fail, we abort the whole thing.  If we want to
   8.276 +    # ignore errors from any of these, just make sure not to ignore
   8.277 +    # errors from the above "$doit $cpprog $src $dsttmp" command.
   8.278 +    #
   8.279 +    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
   8.280 +      && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
   8.281 +      && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
   8.282 +      && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
   8.283 +
   8.284 +    # Now rename the file to the real destination.
   8.285 +    { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
   8.286 +      || {
   8.287 +	   # The rename failed, perhaps because mv can't rename something else
   8.288 +	   # to itself, or perhaps because mv is so ancient that it does not
   8.289 +	   # support -f.
   8.290 +
   8.291 +	   # Now remove or move aside any old file at destination location.
   8.292 +	   # We try this two ways since rm can't unlink itself on some
   8.293 +	   # systems and the destination file might be busy for other
   8.294 +	   # reasons.  In this case, the final cleanup might fail but the new
   8.295 +	   # file should still install successfully.
   8.296 +	   {
   8.297 +	     if test -f "$dstdir/$dstfile"; then
   8.298 +	       $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
   8.299 +	       || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
   8.300 +	       || {
   8.301 +		 echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
   8.302 +		 (exit 1); exit 1
   8.303 +	       }
   8.304 +	     else
   8.305 +	       :
   8.306 +	     fi
   8.307 +	   } &&
   8.308 +
   8.309 +	   # Now rename the file to the real destination.
   8.310 +	   $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
   8.311 +	 }
   8.312 +    }
   8.313 +  fi || { (exit 1); exit 1; }
   8.314 +done
   8.315 +
   8.316 +# The final little trick to "correctly" pass the exit status to the exit trap.
   8.317 +{
   8.318 +  (exit 0); exit 0
   8.319 +}
   8.320 +
   8.321 +# Local variables:
   8.322 +# eval: (add-hook 'write-file-hooks 'time-stamp)
   8.323 +# time-stamp-start: "scriptversion="
   8.324 +# time-stamp-format: "%:y-%02m-%02d.%02H"
   8.325 +# time-stamp-end: "$"
   8.326 +# End:
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/build-scripts/ltmain.sh	Thu Feb 16 10:11:48 2006 +0000
     9.3 @@ -0,0 +1,6457 @@
     9.4 +# Based on libtool-1.5.8
     9.5 +# ltmain.sh - Provide generalized library-building support services.
     9.6 +# NOTE: Changing this file will not affect anything until you rerun configure.
     9.7 +#
     9.8 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
     9.9 +# Free Software Foundation, Inc.
    9.10 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    9.11 +#
    9.12 +# This program is free software; you can redistribute it and/or modify
    9.13 +# it under the terms of the GNU General Public License as published by
    9.14 +# the Free Software Foundation; either version 2 of the License, or
    9.15 +# (at your option) any later version.
    9.16 +#
    9.17 +# This program is distributed in the hope that it will be useful, but
    9.18 +# WITHOUT ANY WARRANTY; without even the implied warranty of
    9.19 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    9.20 +# General Public License for more details.
    9.21 +#
    9.22 +# You should have received a copy of the GNU General Public License
    9.23 +# along with this program; if not, write to the Free Software
    9.24 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    9.25 +#
    9.26 +# As a special exception to the GNU General Public License, if you
    9.27 +# distribute this file as part of a program that contains a
    9.28 +# configuration script generated by Autoconf, you may include it under
    9.29 +# the same distribution terms that you use for the rest of that program.
    9.30 +
    9.31 +basename="s,^.*/,,g"
    9.32 +
    9.33 +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
    9.34 +# is ksh but when the shell is invoked as "sh" and the current value of
    9.35 +# the _XPG environment variable is not equal to 1 (one), the special
    9.36 +# positional parameter $0, within a function call, is the name of the
    9.37 +# function.
    9.38 +progpath="$0"
    9.39 +
    9.40 +# The name of this program:
    9.41 +progname=`echo "$progpath" | $SED $basename`
    9.42 +modename="$progname"
    9.43 +
    9.44 +# Global variables:
    9.45 +EXIT_SUCCESS=0
    9.46 +EXIT_FAILURE=1
    9.47 +
    9.48 +PROGRAM=ltmain.sh
    9.49 +PACKAGE=libtool
    9.50 +VERSION=1.5.8
    9.51 +TIMESTAMP=" (1.1220.2.117 2004/08/04 14:12:05)"
    9.52 +
    9.53 +# See if we are running on zsh, and set the options which allow our
    9.54 +# commands through without removal of \ escapes.
    9.55 +if test -n "${ZSH_VERSION+set}" ; then
    9.56 +  setopt NO_GLOB_SUBST
    9.57 +fi
    9.58 +
    9.59 +# Check that we have a working $echo.
    9.60 +if test "X$1" = X--no-reexec; then
    9.61 +  # Discard the --no-reexec flag, and continue.
    9.62 +  shift
    9.63 +elif test "X$1" = X--fallback-echo; then
    9.64 +  # Avoid inline document here, it may be left over
    9.65 +  :
    9.66 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
    9.67 +  # Yippee, $echo works!
    9.68 +  :
    9.69 +else
    9.70 +  # Restart under the correct shell, and then maybe $echo will work.
    9.71 +  exec $SHELL "$progpath" --no-reexec ${1+"$@"}
    9.72 +fi
    9.73 +
    9.74 +if test "X$1" = X--fallback-echo; then
    9.75 +  # used as fallback echo
    9.76 +  shift
    9.77 +  cat <<EOF
    9.78 +$*
    9.79 +EOF
    9.80 +  exit $EXIT_SUCCESS
    9.81 +fi
    9.82 +
    9.83 +default_mode=
    9.84 +help="Try \`$progname --help' for more information."
    9.85 +magic="%%%MAGIC variable%%%"
    9.86 +mkdir="mkdir"
    9.87 +mv="mv -f"
    9.88 +rm="rm -f"
    9.89 +
    9.90 +# Sed substitution that helps us do robust quoting.  It backslashifies
    9.91 +# metacharacters that are still active within double-quoted strings.
    9.92 +Xsed="${SED}"' -e 1s/^X//'
    9.93 +sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
    9.94 +# test EBCDIC or ASCII
    9.95 +case `echo A|tr A '\301'` in
    9.96 + A) # EBCDIC based system
    9.97 +  SP2NL="tr '\100' '\n'"
    9.98 +  NL2SP="tr '\r\n' '\100\100'"
    9.99 +  ;;
   9.100 + *) # Assume ASCII based system
   9.101 +  SP2NL="tr '\040' '\012'"
   9.102 +  NL2SP="tr '\015\012' '\040\040'"
   9.103 +  ;;
   9.104 +esac
   9.105 +
   9.106 +# NLS nuisances.
   9.107 +# Only set LANG and LC_ALL to C if already set.
   9.108 +# These must not be set unconditionally because not all systems understand
   9.109 +# e.g. LANG=C (notably SCO).
   9.110 +# We save the old values to restore during execute mode.
   9.111 +if test "${LC_ALL+set}" = set; then
   9.112 +  save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
   9.113 +fi
   9.114 +if test "${LANG+set}" = set; then
   9.115 +  save_LANG="$LANG"; LANG=C; export LANG
   9.116 +fi
   9.117 +
   9.118 +# Make sure IFS has a sensible default
   9.119 +: ${IFS=" 	
   9.120 +"}
   9.121 +
   9.122 +if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
   9.123 +  $echo "$modename: not configured to build any kind of library" 1>&2
   9.124 +  $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
   9.125 +  exit $EXIT_FAILURE
   9.126 +fi
   9.127 +
   9.128 +# Global variables.
   9.129 +mode=$default_mode
   9.130 +nonopt=
   9.131 +prev=
   9.132 +prevopt=
   9.133 +run=
   9.134 +show="$echo"
   9.135 +show_help=
   9.136 +execute_dlfiles=
   9.137 +lo2o="s/\\.lo\$/.${objext}/"
   9.138 +o2lo="s/\\.${objext}\$/.lo/"
   9.139 +
   9.140 +#####################################
   9.141 +# Shell function definitions:
   9.142 +# This seems to be the best place for them
   9.143 +
   9.144 +# func_win32_libid arg
   9.145 +# return the library type of file 'arg'
   9.146 +#
   9.147 +# Need a lot of goo to handle *both* DLLs and import libs
   9.148 +# Has to be a shell function in order to 'eat' the argument
   9.149 +# that is supplied when $file_magic_command is called.
   9.150 +func_win32_libid () {
   9.151 +  win32_libid_type="unknown"
   9.152 +  win32_fileres=`file -L $1 2>/dev/null`
   9.153 +  case $win32_fileres in
   9.154 +  *ar\ archive\ import\ library*) # definitely import
   9.155 +    win32_libid_type="x86 archive import"
   9.156 +    ;;
   9.157 +  *ar\ archive*) # could be an import, or static
   9.158 +    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
   9.159 +      $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
   9.160 +      win32_nmres=`eval $NM -f posix -A $1 | \
   9.161 +	sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
   9.162 +      if test "X$win32_nmres" = "Ximport" ; then
   9.163 +        win32_libid_type="x86 archive import"
   9.164 +      else
   9.165 +        win32_libid_type="x86 archive static"
   9.166 +      fi
   9.167 +    fi
   9.168 +    ;;
   9.169 +  *DLL*)
   9.170 +    win32_libid_type="x86 DLL"
   9.171 +    ;;
   9.172 +  *executable*) # but shell scripts are "executable" too...
   9.173 +    case $win32_fileres in
   9.174 +    *MS\ Windows\ PE\ Intel*)
   9.175 +      win32_libid_type="x86 DLL"
   9.176 +      ;;
   9.177 +    esac
   9.178 +    ;;
   9.179 +  esac
   9.180 +  $echo $win32_libid_type
   9.181 +}
   9.182 +
   9.183 +
   9.184 +# func_infer_tag arg
   9.185 +# Infer tagged configuration to use if any are available and
   9.186 +# if one wasn't chosen via the "--tag" command line option.
   9.187 +# Only attempt this if the compiler in the base compile
   9.188 +# command doesn't match the default compiler.
   9.189 +# arg is usually of the form 'gcc ...'
   9.190 +func_infer_tag () {
   9.191 +    if test -n "$available_tags" && test -z "$tagname"; then
   9.192 +      CC_quoted=
   9.193 +      for arg in $CC; do
   9.194 +	case $arg in
   9.195 +	  *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
   9.196 +	  arg="\"$arg\""
   9.197 +	  ;;
   9.198 +	esac
   9.199 +	CC_quoted="$CC_quoted $arg"
   9.200 +      done
   9.201 +      case $@ in
   9.202 +      # Blanks in the command may have been stripped by the calling shell,
   9.203 +      # but not from the CC environment variable when configure was run.
   9.204 +      " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
   9.205 +      # Blanks at the start of $base_compile will cause this to fail
   9.206 +      # if we don't check for them as well.
   9.207 +      *)
   9.208 +	for z in $available_tags; do
   9.209 +	  if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
   9.210 +	    # Evaluate the configuration.
   9.211 +	    eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
   9.212 +	    CC_quoted=
   9.213 +	    for arg in $CC; do
   9.214 +	    # Double-quote args containing other shell metacharacters.
   9.215 +	    case $arg in
   9.216 +	      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
   9.217 +	      arg="\"$arg\""
   9.218 +	      ;;
   9.219 +	    esac
   9.220 +	    CC_quoted="$CC_quoted $arg"
   9.221 +	  done
   9.222 +	    case "$@ " in
   9.223 +	      " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
   9.224 +	      # The compiler in the base compile command matches
   9.225 +	      # the one in the tagged configuration.
   9.226 +	      # Assume this is the tagged configuration we want.
   9.227 +	      tagname=$z
   9.228 +	      break
   9.229 +	      ;;
   9.230 +	    esac
   9.231 +	  fi
   9.232 +	done
   9.233 +	# If $tagname still isn't set, then no tagged configuration
   9.234 +	# was found and let the user know that the "--tag" command
   9.235 +	# line option must be used.
   9.236 +	if test -z "$tagname"; then
   9.237 +	  $echo "$modename: unable to infer tagged configuration"
   9.238 +	  $echo "$modename: specify a tag with \`--tag'" 1>&2
   9.239 +	  exit $EXIT_FAILURE
   9.240 +#        else
   9.241 +#          $echo "$modename: using $tagname tagged configuration"
   9.242 +	fi
   9.243 +	;;
   9.244 +      esac
   9.245 +    fi
   9.246 +}
   9.247 +
   9.248 +
   9.249 +# func_extract_archives gentop oldlib ...
   9.250 +func_extract_archives () {
   9.251 +    my_gentop="$1"; shift
   9.252 +    my_oldlibs=${1+"$@"}
   9.253 +    my_oldobjs=""
   9.254 +    my_xlib=""
   9.255 +    my_xabs=""
   9.256 +    my_xdir=""
   9.257 +    my_status=""
   9.258 +
   9.259 +    $show "${rm}r $my_gentop"
   9.260 +    $run ${rm}r "$my_gentop"
   9.261 +    $show "$mkdir $my_gentop"
   9.262 +    $run $mkdir "$my_gentop"
   9.263 +    my_status=$?
   9.264 +    if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
   9.265 +      exit $my_status
   9.266 +    fi
   9.267 +
   9.268 +    for my_xlib in $my_oldlibs; do
   9.269 +      # Extract the objects.
   9.270 +      case $my_xlib in
   9.271 +	[\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
   9.272 +	*) my_xabs=`pwd`"/$my_xlib" ;;
   9.273 +      esac
   9.274 +      my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
   9.275 +      my_xdir="$my_gentop/$my_xlib"
   9.276 +
   9.277 +      $show "${rm}r $my_xdir"
   9.278 +      $run ${rm}r "$my_xdir"
   9.279 +      $show "$mkdir $my_xdir"
   9.280 +      $run $mkdir "$my_xdir"
   9.281 +      status=$?
   9.282 +      if test "$status" -ne 0 && test ! -d "$my_xdir"; then
   9.283 +	exit $status
   9.284 +      fi
   9.285 +      case $host in
   9.286 +      *-darwin*)
   9.287 +	$show "Extracting $my_xabs"
   9.288 +	# Do not bother doing anything if just a dry run
   9.289 +	if test -z "$run"; then
   9.290 +	  darwin_orig_dir=`pwd`
   9.291 +	  cd $my_xdir || exit $?
   9.292 +	  darwin_archive=$my_xabs
   9.293 +	  darwin_curdir=`pwd`
   9.294 +	  darwin_base_archive=`basename $darwin_archive`
   9.295 +	  darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
   9.296 +	  if test -n "$darwin_arches"; then 
   9.297 +	    darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
   9.298 +	    darwin_arch=
   9.299 +	    $show "$darwin_base_archive has multiple architectures $darwin_arches"
   9.300 +	    for darwin_arch in  $darwin_arches ; do
   9.301 +	      mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
   9.302 +	      lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
   9.303 +	      # Remove the table of contents from the thin files.
   9.304 +	      $AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF 2>/dev/null || true
   9.305 +	      $AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF\ SORTED 2>/dev/null || true
   9.306 +	      cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
   9.307 +	      $AR -xo "${darwin_base_archive}"
   9.308 +	      rm "${darwin_base_archive}"
   9.309 +	      cd "$darwin_curdir"
   9.310 +	    done # $darwin_arches
   9.311 +      ## Okay now we have a bunch of thin objects, gotta fatten them up :)
   9.312 +	    darwin_filelist=`find unfat-$$ -type f | xargs basename | sort -u | $NL2SP`
   9.313 +	    darwin_file=
   9.314 +	    darwin_files=
   9.315 +	    for darwin_file in $darwin_filelist; do
   9.316 +	      darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
   9.317 +	      lipo -create -output "$darwin_file" $darwin_files
   9.318 +	    done # $darwin_filelist
   9.319 +	    rm -rf unfat-$$
   9.320 +	    cd "$darwin_orig_dir"
   9.321 +	  else
   9.322 +	    cd $darwin_orig_dir
   9.323 +	    (cd $my_xdir && $AR x $my_xabs) || exit $?
   9.324 +	  fi # $darwin_arches
   9.325 +	fi # $run
   9.326 +      ;;
   9.327 +      *)
   9.328 +	# We will extract separately just the conflicting names and we will
   9.329 +	# no longer touch any unique names. It is faster to leave these
   9.330 +	# extract automatically by $AR in one run.
   9.331 +	$show "(cd $my_xdir && $AR x $my_xabs)"
   9.332 +	$run eval "(cd \$my_xdir && $AR x \$my_xabs)" || exit $?
   9.333 +	if ($AR t "$my_xabs" | sort | sort -uc >/dev/null 2>&1); then
   9.334 +	  :
   9.335 +	else
   9.336 +	  $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
   9.337 +	  $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
   9.338 +	  $AR t "$my_xabs" | sort | uniq -cd | while read -r count name
   9.339 +	  do
   9.340 +	    i=1
   9.341 +	    while test "$i" -le "$count"
   9.342 +	    do
   9.343 +	      # Put our $i before any first dot (extension)
   9.344 +	      # Never overwrite any file
   9.345 +	      name_to="$name"
   9.346 +	      while test "X$name_to" = "X$name" || test -f "$my_xdir/$name_to"
   9.347 +	      do
   9.348 +		name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
   9.349 +	      done
   9.350 +	      $show "(cd $my_xdir && $AR xN $i $my_xabs '$name' && $mv '$name' '$name_to')"
   9.351 +	      $run eval "(cd \$my_xdir && $AR xN $i \$my_xabs '$name' && $mv '$name' '$name_to')" || exit $?
   9.352 +	      i=`expr $i + 1`
   9.353 +	    done
   9.354 +	  done
   9.355 +	fi
   9.356 +	;;
   9.357 +      esac
   9.358 +      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
   9.359 +    done
   9.360 +
   9.361 +    func_extract_archives_result="$my_oldobjs"
   9.362 +}
   9.363 +# End of Shell function definitions
   9.364 +#####################################
   9.365 +
   9.366 +# Darwin sucks
   9.367 +eval std_shrext=\"$shrext_cmds\"
   9.368 +
   9.369 +# Parse our command line options once, thoroughly.
   9.370 +while test "$#" -gt 0
   9.371 +do
   9.372 +  arg="$1"
   9.373 +  shift
   9.374 +
   9.375 +  case $arg in
   9.376 +  -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
   9.377 +  *) optarg= ;;
   9.378 +  esac
   9.379 +
   9.380 +  # If the previous option needs an argument, assign it.
   9.381 +  if test -n "$prev"; then
   9.382 +    case $prev in
   9.383 +    execute_dlfiles)
   9.384 +      execute_dlfiles="$execute_dlfiles $arg"
   9.385 +      ;;
   9.386 +    tag)
   9.387 +      tagname="$arg"
   9.388 +      preserve_args="${preserve_args}=$arg"
   9.389 +
   9.390 +      # Check whether tagname contains only valid characters
   9.391 +      case $tagname in
   9.392 +      *[!-_A-Za-z0-9,/]*)
   9.393 +	$echo "$progname: invalid tag name: $tagname" 1>&2
   9.394 +	exit $EXIT_FAILURE
   9.395 +	;;
   9.396 +      esac
   9.397 +
   9.398 +      case $tagname in
   9.399 +      CC)
   9.400 +	# Don't test for the "default" C tag, as we know, it's there, but
   9.401 +	# not specially marked.
   9.402 +	;;
   9.403 +      *)
   9.404 +	if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
   9.405 +	  taglist="$taglist $tagname"
   9.406 +	  # Evaluate the configuration.
   9.407 +	  eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
   9.408 +	else
   9.409 +	  $echo "$progname: ignoring unknown tag $tagname" 1>&2
   9.410 +	fi
   9.411 +	;;
   9.412 +      esac
   9.413 +      ;;
   9.414 +    *)
   9.415 +      eval "$prev=\$arg"
   9.416 +      ;;
   9.417 +    esac
   9.418 +
   9.419 +    prev=
   9.420 +    prevopt=
   9.421 +    continue
   9.422 +  fi
   9.423 +
   9.424 +  # Have we seen a non-optional argument yet?
   9.425 +  case $arg in
   9.426 +  --help)
   9.427 +    show_help=yes
   9.428 +    ;;
   9.429 +
   9.430 +  --version)
   9.431 +    $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
   9.432 +    $echo
   9.433 +    $echo "Copyright (C) 2003  Free Software Foundation, Inc."
   9.434 +    $echo "This is free software; see the source for copying conditions.  There is NO"
   9.435 +    $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
   9.436 +    exit $EXIT_SUCCESS
   9.437 +    ;;
   9.438 +
   9.439 +  --config)
   9.440 +    ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
   9.441 +    # Now print the configurations for the tags.
   9.442 +    for tagname in $taglist; do
   9.443 +      ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
   9.444 +    done
   9.445 +    exit $EXIT_SUCCESS
   9.446 +    ;;
   9.447 +
   9.448 +  --debug)
   9.449 +    $echo "$progname: enabling shell trace mode"
   9.450 +    set -x
   9.451 +    preserve_args="$preserve_args $arg"
   9.452 +    ;;
   9.453 +
   9.454 +  --dry-run | -n)
   9.455 +    run=:
   9.456 +    ;;
   9.457 +
   9.458 +  --features)
   9.459 +    $echo "host: $host"
   9.460 +    if test "$build_libtool_libs" = yes; then
   9.461 +      $echo "enable shared libraries"
   9.462 +    else
   9.463 +      $echo "disable shared libraries"
   9.464 +    fi
   9.465 +    if test "$build_old_libs" = yes; then
   9.466 +      $echo "enable static libraries"
   9.467 +    else
   9.468 +      $echo "disable static libraries"
   9.469 +    fi
   9.470 +    exit $EXIT_SUCCESS
   9.471 +    ;;
   9.472 +
   9.473 +  --finish) mode="finish" ;;
   9.474 +
   9.475 +  --mode) prevopt="--mode" prev=mode ;;
   9.476 +  --mode=*) mode="$optarg" ;;
   9.477 +
   9.478 +  --preserve-dup-deps) duplicate_deps="yes" ;;
   9.479 +
   9.480 +  --quiet | --silent)
   9.481 +    show=:
   9.482 +    preserve_args="$preserve_args $arg"
   9.483 +    ;;
   9.484 +
   9.485 +  --tag) prevopt="--tag" prev=tag ;;
   9.486 +  --tag=*)
   9.487 +    set tag "$optarg" ${1+"$@"}
   9.488 +    shift
   9.489 +    prev=tag
   9.490 +    preserve_args="$preserve_args --tag"
   9.491 +    ;;
   9.492 +
   9.493 +  -dlopen)
   9.494 +    prevopt="-dlopen"
   9.495 +    prev=execute_dlfiles
   9.496 +    ;;
   9.497 +
   9.498 +  -*)
   9.499 +    $echo "$modename: unrecognized option \`$arg'" 1>&2
   9.500 +    $echo "$help" 1>&2
   9.501 +    exit $EXIT_FAILURE
   9.502 +    ;;
   9.503 +
   9.504 +  *)
   9.505 +    nonopt="$arg"
   9.506 +    break
   9.507 +    ;;
   9.508 +  esac
   9.509 +done
   9.510 +
   9.511 +if test -n "$prevopt"; then
   9.512 +  $echo "$modename: option \`$prevopt' requires an argument" 1>&2
   9.513 +  $echo "$help" 1>&2
   9.514 +  exit $EXIT_FAILURE
   9.515 +fi
   9.516 +
   9.517 +# If this variable is set in any of the actions, the command in it
   9.518 +# will be execed at the end.  This prevents here-documents from being
   9.519 +# left over by shells.
   9.520 +exec_cmd=
   9.521 +
   9.522 +if test -z "$show_help"; then
   9.523 +
   9.524 +  # Infer the operation mode.
   9.525 +  if test -z "$mode"; then
   9.526 +    $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
   9.527 +    $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
   9.528 +    case $nonopt in
   9.529 +    *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
   9.530 +      mode=link
   9.531 +      for arg
   9.532 +      do
   9.533 +	case $arg in
   9.534 +	-c)
   9.535 +	   mode=compile
   9.536 +	   break
   9.537 +	   ;;
   9.538 +	esac
   9.539 +      done
   9.540 +      ;;
   9.541 +    *db | *dbx | *strace | *truss)
   9.542 +      mode=execute
   9.543 +      ;;
   9.544 +    *install*|cp|mv)
   9.545 +      mode=install
   9.546 +      ;;
   9.547 +    *rm)
   9.548 +      mode=uninstall
   9.549 +      ;;
   9.550 +    *)
   9.551 +      # If we have no mode, but dlfiles were specified, then do execute mode.
   9.552 +      test -n "$execute_dlfiles" && mode=execute
   9.553 +
   9.554 +      # Just use the default operation mode.
   9.555 +      if test -z "$mode"; then
   9.556 +	if test -n "$nonopt"; then
   9.557 +	  $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
   9.558 +	else
   9.559 +	  $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
   9.560 +	fi
   9.561 +      fi
   9.562 +      ;;
   9.563 +    esac
   9.564 +  fi
   9.565 +
   9.566 +  # Only execute mode is allowed to have -dlopen flags.
   9.567 +  if test -n "$execute_dlfiles" && test "$mode" != execute; then
   9.568 +    $echo "$modename: unrecognized option \`-dlopen'" 1>&2
   9.569 +    $echo "$help" 1>&2
   9.570 +    exit $EXIT_FAILURE
   9.571 +  fi
   9.572 +
   9.573 +  # Change the help message to a mode-specific one.
   9.574 +  generic_help="$help"
   9.575 +  help="Try \`$modename --help --mode=$mode' for more information."
   9.576 +
   9.577 +  # These modes are in order of execution frequency so that they run quickly.
   9.578 +  case $mode in
   9.579 +  # libtool compile mode
   9.580 +  compile)
   9.581 +    modename="$modename: compile"
   9.582 +    # Get the compilation command and the source file.
   9.583 +    base_compile=
   9.584 +    srcfile="$nonopt"  #  always keep a non-empty value in "srcfile"
   9.585 +    suppress_opt=yes
   9.586 +    suppress_output=
   9.587 +    arg_mode=normal
   9.588 +    libobj=
   9.589 +    later=
   9.590 +
   9.591 +    for arg
   9.592 +    do
   9.593 +      case "$arg_mode" in
   9.594 +      arg  )
   9.595 +	# do not "continue".  Instead, add this to base_compile
   9.596 +	lastarg="$arg"
   9.597 +	arg_mode=normal
   9.598 +	;;
   9.599 +
   9.600 +      target )
   9.601 +	libobj="$arg"
   9.602 +	arg_mode=normal
   9.603 +	continue
   9.604 +	;;
   9.605 +
   9.606 +      normal )
   9.607 +	# Accept any command-line options.
   9.608 +	case $arg in
   9.609 +	-o)
   9.610 +	  if test -n "$libobj" ; then
   9.611 +	    $echo "$modename: you cannot specify \`-o' more than once" 1>&2
   9.612 +	    exit $EXIT_FAILURE
   9.613 +	  fi
   9.614 +	  arg_mode=target
   9.615 +	  continue
   9.616 +	  ;;
   9.617 +
   9.618 +	-static | -prefer-pic | -prefer-non-pic)
   9.619 +	  later="$later $arg"
   9.620 +	  continue
   9.621 +	  ;;
   9.622 +
   9.623 +	-no-suppress)
   9.624 +	  suppress_opt=no
   9.625 +	  continue
   9.626 +	  ;;
   9.627 +
   9.628 +	-Xcompiler)
   9.629 +	  arg_mode=arg  #  the next one goes into the "base_compile" arg list
   9.630 +	  continue      #  The current "srcfile" will either be retained or
   9.631 +	  ;;            #  replaced later.  I would guess that would be a bug.
   9.632 +
   9.633 +	-Wc,*)
   9.634 +	  args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
   9.635 +	  lastarg=
   9.636 +	  save_ifs="$IFS"; IFS=','
   9.637 + 	  for arg in $args; do
   9.638 +	    IFS="$save_ifs"
   9.639 +
   9.640 +	    # Double-quote args containing other shell metacharacters.
   9.641 +	    # Many Bourne shells cannot handle close brackets correctly
   9.642 +	    # in scan sets, so we specify it separately.
   9.643 +	    case $arg in
   9.644 +	      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
   9.645 +	      arg="\"$arg\""
   9.646 +	      ;;
   9.647 +	    esac
   9.648 +	    lastarg="$lastarg $arg"
   9.649 +	  done
   9.650 +	  IFS="$save_ifs"
   9.651 +	  lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
   9.652 +
   9.653 +	  # Add the arguments to base_compile.
   9.654 +	  base_compile="$base_compile $lastarg"
   9.655 +	  continue
   9.656 +	  ;;
   9.657 +
   9.658 +	* )
   9.659 +	  # Accept the current argument as the source file.
   9.660 +	  # The previous "srcfile" becomes the current argument.
   9.661 +	  #
   9.662 +	  lastarg="$srcfile"
   9.663 +	  srcfile="$arg"
   9.664 +	  ;;
   9.665 +	esac  #  case $arg
   9.666 +	;;
   9.667 +      esac    #  case $arg_mode
   9.668 +
   9.669 +      # Aesthetically quote the previous argument.
   9.670 +      lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
   9.671 +
   9.672 +      case $lastarg in
   9.673 +      # Double-quote args containing other shell metacharacters.
   9.674 +      # Many Bourne shells cannot handle close brackets correctly
   9.675 +      # in scan sets, so we specify it separately.
   9.676 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
   9.677 +	lastarg="\"$lastarg\""
   9.678 +	;;
   9.679 +      esac
   9.680 +
   9.681 +      base_compile="$base_compile $lastarg"
   9.682 +    done # for arg
   9.683 +
   9.684 +    case $arg_mode in
   9.685 +    arg)
   9.686 +      $echo "$modename: you must specify an argument for -Xcompile"
   9.687 +      exit $EXIT_FAILURE
   9.688 +      ;;
   9.689 +    target)
   9.690 +      $echo "$modename: you must specify a target with \`-o'" 1>&2
   9.691 +      exit $EXIT_FAILURE
   9.692 +      ;;
   9.693 +    *)
   9.694 +      # Get the name of the library object.
   9.695 +      [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
   9.696 +      ;;
   9.697 +    esac
   9.698 +
   9.699 +    # Recognize several different file suffixes.
   9.700 +    # If the user specifies -o file.o, it is replaced with file.lo
   9.701 +    xform='[cCFSifmso]'
   9.702 +    case $libobj in
   9.703 +    *.ada) xform=ada ;;
   9.704 +    *.adb) xform=adb ;;
   9.705 +    *.ads) xform=ads ;;
   9.706 +    *.asm) xform=asm ;;
   9.707 +    *.c++) xform=c++ ;;
   9.708 +    *.cc) xform=cc ;;
   9.709 +    *.ii) xform=ii ;;
   9.710 +    *.class) xform=class ;;
   9.711 +    *.cpp) xform=cpp ;;
   9.712 +    *.cxx) xform=cxx ;;
   9.713 +    *.f90) xform=f90 ;;
   9.714 +    *.for) xform=for ;;
   9.715 +    *.java) xform=java ;;
   9.716 +    esac
   9.717 +
   9.718 +    libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
   9.719 +
   9.720 +    case $libobj in
   9.721 +    *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
   9.722 +    *)
   9.723 +      $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
   9.724 +      exit $EXIT_FAILURE
   9.725 +      ;;
   9.726 +    esac
   9.727 +
   9.728 +    func_infer_tag $base_compile
   9.729 +
   9.730 +    for arg in $later; do
   9.731 +      case $arg in
   9.732 +      -static)
   9.733 +	build_old_libs=yes
   9.734 +	continue
   9.735 +	;;
   9.736 +
   9.737 +      -prefer-pic)
   9.738 +	pic_mode=yes
   9.739 +	continue
   9.740 +	;;
   9.741 +
   9.742 +      -prefer-non-pic)
   9.743 +	pic_mode=no
   9.744 +	continue
   9.745 +	;;
   9.746 +      esac
   9.747 +    done
   9.748 +
   9.749 +    objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
   9.750 +    xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
   9.751 +    if test "X$xdir" = "X$obj"; then
   9.752 +      xdir=
   9.753 +    else
   9.754 +      xdir=$xdir/
   9.755 +    fi
   9.756 +    lobj=${xdir}$objdir/$objname
   9.757 +
   9.758 +    if test -z "$base_compile"; then
   9.759 +      $echo "$modename: you must specify a compilation command" 1>&2
   9.760 +      $echo "$help" 1>&2
   9.761 +      exit $EXIT_FAILURE
   9.762 +    fi
   9.763 +
   9.764 +    # Delete any leftover library objects.
   9.765 +    if test "$build_old_libs" = yes; then
   9.766 +      removelist="$obj $lobj $libobj ${libobj}T"
   9.767 +    else
   9.768 +      removelist="$lobj $libobj ${libobj}T"
   9.769 +    fi
   9.770 +
   9.771 +    $run $rm $removelist
   9.772 +    trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
   9.773 +
   9.774 +    # On Cygwin there's no "real" PIC flag so we must build both object types
   9.775 +    case $host_os in
   9.776 +    cygwin* | mingw* | pw32* | os2*)
   9.777 +      pic_mode=default
   9.778 +      ;;
   9.779 +    esac
   9.780 +    if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
   9.781 +      # non-PIC code in shared libraries is not supported
   9.782 +      pic_mode=default
   9.783 +    fi
   9.784 +
   9.785 +    # Calculate the filename of the output object if compiler does
   9.786 +    # not support -o with -c
   9.787 +    if test "$compiler_c_o" = no; then
   9.788 +      output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
   9.789 +      lockfile="$output_obj.lock"
   9.790 +      removelist="$removelist $output_obj $lockfile"
   9.791 +      trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
   9.792 +    else
   9.793 +      output_obj=
   9.794 +      need_locks=no
   9.795 +      lockfile=
   9.796 +    fi
   9.797 +
   9.798 +    # Lock this critical section if it is needed
   9.799 +    # We use this script file to make the link, it avoids creating a new file
   9.800 +    if test "$need_locks" = yes; then
   9.801 +      until $run ln "$progpath" "$lockfile" 2>/dev/null; do
   9.802 +	$show "Waiting for $lockfile to be removed"
   9.803 +	sleep 2
   9.804 +      done
   9.805 +    elif test "$need_locks" = warn; then
   9.806 +      if test -f "$lockfile"; then
   9.807 +	$echo "\
   9.808 +*** ERROR, $lockfile exists and contains:
   9.809 +`cat $lockfile 2>/dev/null`
   9.810 +
   9.811 +This indicates that another process is trying to use the same
   9.812 +temporary object file, and libtool could not work around it because
   9.813 +your compiler does not support \`-c' and \`-o' together.  If you
   9.814 +repeat this compilation, it may succeed, by chance, but you had better
   9.815 +avoid parallel builds (make -j) in this platform, or get a better
   9.816 +compiler."
   9.817 +
   9.818 +	$run $rm $removelist
   9.819 +	exit $EXIT_FAILURE
   9.820 +      fi
   9.821 +      $echo $srcfile > "$lockfile"
   9.822 +    fi
   9.823 +
   9.824 +    if test -n "$fix_srcfile_path"; then
   9.825 +      eval srcfile=\"$fix_srcfile_path\"
   9.826 +    fi
   9.827 +
   9.828 +    $run $rm "$libobj" "${libobj}T"
   9.829 +
   9.830 +    # Create a libtool object file (analogous to a ".la" file),
   9.831 +    # but don't create it if we're doing a dry run.
   9.832 +    test -z "$run" && cat > ${libobj}T <<EOF
   9.833 +# $libobj - a libtool object file
   9.834 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
   9.835 +#
   9.836 +# Please DO NOT delete this file!
   9.837 +# It is necessary for linking the library.
   9.838 +
   9.839 +# Name of the PIC object.
   9.840 +EOF
   9.841 +
   9.842 +    # Only build a PIC object if we are building libtool libraries.
   9.843 +    if test "$build_libtool_libs" = yes; then
   9.844 +      # Without this assignment, base_compile gets emptied.
   9.845 +      fbsd_hideous_sh_bug=$base_compile
   9.846 +
   9.847 +      if test "$pic_mode" != no; then
   9.848 +	command="$base_compile $srcfile $pic_flag"
   9.849 +      else
   9.850 +	# Don't build PIC code
   9.851 +	command="$base_compile $srcfile"
   9.852 +      fi
   9.853 +
   9.854 +      if test ! -d "${xdir}$objdir"; then
   9.855 +	$show "$mkdir ${xdir}$objdir"
   9.856 +	$run $mkdir ${xdir}$objdir
   9.857 +	status=$?
   9.858 +	if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
   9.859 +	  exit $status
   9.860 +	fi
   9.861 +      fi
   9.862 +
   9.863 +      if test -z "$output_obj"; then
   9.864 +	# Place PIC objects in $objdir
   9.865 +	command="$command -o $lobj"
   9.866 +      fi
   9.867 +
   9.868 +      $run $rm "$lobj" "$output_obj"
   9.869 +
   9.870 +      $show "$command"
   9.871 +      if $run eval "$command"; then :
   9.872 +      else
   9.873 +	test -n "$output_obj" && $run $rm $removelist
   9.874 +	exit $EXIT_FAILURE
   9.875 +      fi
   9.876 +
   9.877 +      if test "$need_locks" = warn &&
   9.878 +	 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
   9.879 +	$echo "\
   9.880 +*** ERROR, $lockfile contains:
   9.881 +`cat $lockfile 2>/dev/null`
   9.882 +
   9.883 +but it should contain:
   9.884 +$srcfile
   9.885 +
   9.886 +This indicates that another process is trying to use the same
   9.887 +temporary object file, and libtool could not work around it because
   9.888 +your compiler does not support \`-c' and \`-o' together.  If you
   9.889 +repeat this compilation, it may succeed, by chance, but you had better
   9.890 +avoid parallel builds (make -j) in this platform, or get a better
   9.891 +compiler."
   9.892 +
   9.893 +	$run $rm $removelist
   9.894 +	exit $EXIT_FAILURE
   9.895 +      fi
   9.896 +
   9.897 +      # Just move the object if needed, then go on to compile the next one
   9.898 +      if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
   9.899 +	$show "$mv $output_obj $lobj"
   9.900 +	if $run $mv $output_obj $lobj; then :
   9.901 +	else
   9.902 +	  error=$?
   9.903 +	  $run $rm $removelist
   9.904 +	  exit $error
   9.905 +	fi
   9.906 +      fi
   9.907 +
   9.908 +      # Append the name of the PIC object to the libtool object file.
   9.909 +      test -z "$run" && cat >> ${libobj}T <<EOF
   9.910 +pic_object='$objdir/$objname'
   9.911 +
   9.912 +EOF
   9.913 +
   9.914 +      # Allow error messages only from the first compilation.
   9.915 +      if test "$suppress_opt" = yes; then
   9.916 +        suppress_output=' >/dev/null 2>&1'
   9.917 +      fi
   9.918 +    else
   9.919 +      # No PIC object so indicate it doesn't exist in the libtool
   9.920 +      # object file.
   9.921 +      test -z "$run" && cat >> ${libobj}T <<EOF
   9.922 +pic_object=none
   9.923 +
   9.924 +EOF
   9.925 +    fi
   9.926 +
   9.927 +    # Only build a position-dependent object if we build old libraries.
   9.928 +    if test "$build_old_libs" = yes; then
   9.929 +      if test "$pic_mode" != yes; then
   9.930 +	# Don't build PIC code
   9.931 +	command="$base_compile $srcfile"
   9.932 +      else
   9.933 +	command="$base_compile $srcfile $pic_flag"
   9.934 +      fi
   9.935 +      if test "$compiler_c_o" = yes; then
   9.936 +	command="$command -o $obj"
   9.937 +      fi
   9.938 +
   9.939 +      # Suppress compiler output if we already did a PIC compilation.
   9.940 +      command="$command$suppress_output"
   9.941 +      $run $rm "$obj" "$output_obj"
   9.942 +      $show "$command"
   9.943 +      if $run eval "$command"; then :
   9.944 +      else
   9.945 +	$run $rm $removelist
   9.946 +	exit $EXIT_FAILURE
   9.947 +      fi
   9.948 +
   9.949 +      if test "$need_locks" = warn &&
   9.950 +	 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
   9.951 +	$echo "\
   9.952 +*** ERROR, $lockfile contains:
   9.953 +`cat $lockfile 2>/dev/null`
   9.954 +
   9.955 +but it should contain:
   9.956 +$srcfile
   9.957 +
   9.958 +This indicates that another process is trying to use the same
   9.959 +temporary object file, and libtool could not work around it because
   9.960 +your compiler does not support \`-c' and \`-o' together.  If you
   9.961 +repeat this compilation, it may succeed, by chance, but you had better
   9.962 +avoid parallel builds (make -j) in this platform, or get a better
   9.963 +compiler."
   9.964 +
   9.965 +	$run $rm $removelist
   9.966 +	exit $EXIT_FAILURE
   9.967 +      fi
   9.968 +
   9.969 +      # Just move the object if needed
   9.970 +      if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
   9.971 +	$show "$mv $output_obj $obj"
   9.972 +	if $run $mv $output_obj $obj; then :
   9.973 +	else
   9.974 +	  error=$?
   9.975 +	  $run $rm $removelist
   9.976 +	  exit $error
   9.977 +	fi
   9.978 +      fi
   9.979 +
   9.980 +      # Append the name of the non-PIC object the libtool object file.
   9.981 +      # Only append if the libtool object file exists.
   9.982 +      test -z "$run" && cat >> ${libobj}T <<EOF
   9.983 +# Name of the non-PIC object.
   9.984 +non_pic_object='$objname'
   9.985 +
   9.986 +EOF
   9.987 +    else
   9.988 +      # Append the name of the non-PIC object the libtool object file.
   9.989 +      # Only append if the libtool object file exists.
   9.990 +      test -z "$run" && cat >> ${libobj}T <<EOF
   9.991 +# Name of the non-PIC object.
   9.992 +non_pic_object=none
   9.993 +
   9.994 +EOF
   9.995 +    fi
   9.996 +
   9.997 +    $run $mv "${libobj}T" "${libobj}"
   9.998 +
   9.999 +    # Unlock the critical section if it was locked
  9.1000 +    if test "$need_locks" != no; then
  9.1001 +      $run $rm "$lockfile"
  9.1002 +    fi
  9.1003 +
  9.1004 +    exit $EXIT_SUCCESS
  9.1005 +    ;;
  9.1006 +
  9.1007 +  # libtool link mode
  9.1008 +  link | relink)
  9.1009 +    modename="$modename: link"
  9.1010 +    case $host in
  9.1011 +    *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  9.1012 +      # It is impossible to link a dll without this setting, and
  9.1013 +      # we shouldn't force the makefile maintainer to figure out
  9.1014 +      # which system we are compiling for in order to pass an extra
  9.1015 +      # flag for every libtool invocation.
  9.1016 +      # allow_undefined=no
  9.1017 +
  9.1018 +      # FIXME: Unfortunately, there are problems with the above when trying
  9.1019 +      # to make a dll which has undefined symbols, in which case not
  9.1020 +      # even a static library is built.  For now, we need to specify
  9.1021 +      # -no-undefined on the libtool link line when we can be certain
  9.1022 +      # that all symbols are satisfied, otherwise we get a static library.
  9.1023 +      allow_undefined=yes
  9.1024 +      ;;
  9.1025 +    *)
  9.1026 +      allow_undefined=yes
  9.1027 +      ;;
  9.1028 +    esac
  9.1029 +    libtool_args="$nonopt"
  9.1030 +    base_compile="$nonopt $@"
  9.1031 +    compile_command="$nonopt"
  9.1032 +    finalize_command="$nonopt"
  9.1033 +
  9.1034 +    compile_rpath=
  9.1035 +    finalize_rpath=
  9.1036 +    compile_shlibpath=
  9.1037 +    finalize_shlibpath=
  9.1038 +    convenience=
  9.1039 +    old_convenience=
  9.1040 +    deplibs=
  9.1041 +    old_deplibs=
  9.1042 +    compiler_flags=
  9.1043 +    linker_flags=
  9.1044 +    dllsearchpath=
  9.1045 +    lib_search_path=`pwd`
  9.1046 +    inst_prefix_dir=
  9.1047 +
  9.1048 +    avoid_version=no
  9.1049 +    dlfiles=
  9.1050 +    dlprefiles=
  9.1051 +    dlself=no
  9.1052 +    export_dynamic=no
  9.1053 +    export_symbols=
  9.1054 +    export_symbols_regex=
  9.1055 +    generated=
  9.1056 +    libobjs=
  9.1057 +    ltlibs=
  9.1058 +    module=no
  9.1059 +    no_install=no
  9.1060 +    objs=
  9.1061 +    non_pic_objects=
  9.1062 +    precious_files_regex=
  9.1063 +    prefer_static_libs=no
  9.1064 +    preload=no
  9.1065 +    prev=
  9.1066 +    prevarg=
  9.1067 +    release=
  9.1068 +    rpath=
  9.1069 +    xrpath=
  9.1070 +    perm_rpath=
  9.1071 +    temp_rpath=
  9.1072 +    thread_safe=no
  9.1073 +    vinfo=
  9.1074 +    vinfo_number=no
  9.1075 +
  9.1076 +    func_infer_tag $base_compile
  9.1077 +
  9.1078 +    # We need to know -static, to get the right output filenames.
  9.1079 +    for arg
  9.1080 +    do
  9.1081 +      case $arg in
  9.1082 +      -all-static | -static)
  9.1083 +	if test "X$arg" = "X-all-static"; then
  9.1084 +	  if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  9.1085 +	    $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  9.1086 +	  fi
  9.1087 +	  if test -n "$link_static_flag"; then
  9.1088 +	    dlopen_self=$dlopen_self_static
  9.1089 +	  fi
  9.1090 +	else
  9.1091 +	  if test -z "$pic_flag" && test -n "$link_static_flag"; then
  9.1092 +	    dlopen_self=$dlopen_self_static
  9.1093 +	  fi
  9.1094 +	fi
  9.1095 +	build_libtool_libs=no
  9.1096 +	build_old_libs=yes
  9.1097 +	prefer_static_libs=yes
  9.1098 +	break
  9.1099 +	;;
  9.1100 +      esac
  9.1101 +    done
  9.1102 +
  9.1103 +    # See if our shared archives depend on static archives.
  9.1104 +    test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  9.1105 +
  9.1106 +    # Go through the arguments, transforming them on the way.
  9.1107 +    while test "$#" -gt 0; do
  9.1108 +      arg="$1"
  9.1109 +      shift
  9.1110 +      case $arg in
  9.1111 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
  9.1112 +	qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  9.1113 +	;;
  9.1114 +      *) qarg=$arg ;;
  9.1115 +      esac
  9.1116 +      libtool_args="$libtool_args $qarg"
  9.1117 +
  9.1118 +      # If the previous option needs an argument, assign it.
  9.1119 +      if test -n "$prev"; then
  9.1120 +	case $prev in
  9.1121 +	output)
  9.1122 +	  compile_command="$compile_command @OUTPUT@"
  9.1123 +	  finalize_command="$finalize_command @OUTPUT@"
  9.1124 +	  ;;
  9.1125 +	esac
  9.1126 +
  9.1127 +	case $prev in
  9.1128 +	dlfiles|dlprefiles)
  9.1129 +	  if test "$preload" = no; then
  9.1130 +	    # Add the symbol object into the linking commands.
  9.1131 +	    compile_command="$compile_command @SYMFILE@"
  9.1132 +	    finalize_command="$finalize_command @SYMFILE@"
  9.1133 +	    preload=yes
  9.1134 +	  fi
  9.1135 +	  case $arg in
  9.1136 +	  *.la | *.lo) ;;  # We handle these cases below.
  9.1137 +	  force)
  9.1138 +	    if test "$dlself" = no; then
  9.1139 +	      dlself=needless
  9.1140 +	      export_dynamic=yes
  9.1141 +	    fi
  9.1142 +	    prev=
  9.1143 +	    continue
  9.1144 +	    ;;
  9.1145 +	  self)
  9.1146 +	    if test "$prev" = dlprefiles; then
  9.1147 +	      dlself=yes
  9.1148 +	    elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  9.1149 +	      dlself=yes
  9.1150 +	    else
  9.1151 +	      dlself=needless
  9.1152 +	      export_dynamic=yes
  9.1153 +	    fi
  9.1154 +	    prev=
  9.1155 +	    continue
  9.1156 +	    ;;
  9.1157 +	  *)
  9.1158 +	    if test "$prev" = dlfiles; then
  9.1159 +	      dlfiles="$dlfiles $arg"
  9.1160 +	    else
  9.1161 +	      dlprefiles="$dlprefiles $arg"
  9.1162 +	    fi
  9.1163 +	    prev=
  9.1164 +	    continue
  9.1165 +	    ;;
  9.1166 +	  esac
  9.1167 +	  ;;
  9.1168 +	expsyms)
  9.1169 +	  export_symbols="$arg"
  9.1170 +	  if test ! -f "$arg"; then
  9.1171 +	    $echo "$modename: symbol file \`$arg' does not exist"
  9.1172 +	    exit $EXIT_FAILURE
  9.1173 +	  fi
  9.1174 +	  prev=
  9.1175 +	  continue
  9.1176 +	  ;;
  9.1177 +	expsyms_regex)
  9.1178 +	  export_symbols_regex="$arg"
  9.1179 +	  prev=
  9.1180 +	  continue
  9.1181 +	  ;;
  9.1182 +	inst_prefix)
  9.1183 +	  inst_prefix_dir="$arg"
  9.1184 +	  prev=
  9.1185 +	  continue
  9.1186 +	  ;;
  9.1187 +	precious_regex)
  9.1188 +	  precious_files_regex="$arg"
  9.1189 +	  prev=
  9.1190 +	  continue
  9.1191 +	  ;;
  9.1192 +	release)
  9.1193 +	  release="-$arg"
  9.1194 +	  prev=
  9.1195 +	  continue
  9.1196 +	  ;;
  9.1197 +	objectlist)
  9.1198 +	  if test -f "$arg"; then
  9.1199 +	    save_arg=$arg
  9.1200 +	    moreargs=
  9.1201 +	    for fil in `cat $save_arg`
  9.1202 +	    do
  9.1203 +#	      moreargs="$moreargs $fil"
  9.1204 +	      arg=$fil
  9.1205 +	      # A libtool-controlled object.
  9.1206 +
  9.1207 +	      # Check to see that this really is a libtool object.
  9.1208 +	      if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  9.1209 +		pic_object=
  9.1210 +		non_pic_object=
  9.1211 +
  9.1212 +		# Read the .lo file
  9.1213 +		# If there is no directory component, then add one.
  9.1214 +		case $arg in
  9.1215 +		*/* | *\\*) . $arg ;;
  9.1216 +		*) . ./$arg ;;
  9.1217 +		esac
  9.1218 +
  9.1219 +		if test -z "$pic_object" || \
  9.1220 +		   test -z "$non_pic_object" ||
  9.1221 +		   test "$pic_object" = none && \
  9.1222 +		   test "$non_pic_object" = none; then
  9.1223 +		  $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  9.1224 +		  exit $EXIT_FAILURE
  9.1225 +		fi
  9.1226 +
  9.1227 +		# Extract subdirectory from the argument.
  9.1228 +		xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  9.1229 +		if test "X$xdir" = "X$arg"; then
  9.1230 +		  xdir=
  9.1231 +		else
  9.1232 +		  xdir="$xdir/"
  9.1233 +		fi
  9.1234 +
  9.1235 +		if test "$pic_object" != none; then
  9.1236 +		  # Prepend the subdirectory the object is found in.
  9.1237 +		  pic_object="$xdir$pic_object"
  9.1238 +
  9.1239 +		  if test "$prev" = dlfiles; then
  9.1240 +		    if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  9.1241 +		      dlfiles="$dlfiles $pic_object"
  9.1242 +		      prev=
  9.1243 +		      continue
  9.1244 +		    else
  9.1245 +		      # If libtool objects are unsupported, then we need to preload.
  9.1246 +		      prev=dlprefiles
  9.1247 +		    fi
  9.1248 +		  fi
  9.1249 +
  9.1250 +		  # CHECK ME:  I think I busted this.  -Ossama
  9.1251 +		  if test "$prev" = dlprefiles; then
  9.1252 +		    # Preload the old-style object.
  9.1253 +		    dlprefiles="$dlprefiles $pic_object"
  9.1254 +		    prev=
  9.1255 +		  fi
  9.1256 +
  9.1257 +		  # A PIC object.
  9.1258 +		  libobjs="$libobjs $pic_object"
  9.1259 +		  arg="$pic_object"
  9.1260 +		fi
  9.1261 +
  9.1262 +		# Non-PIC object.
  9.1263 +		if test "$non_pic_object" != none; then
  9.1264 +		  # Prepend the subdirectory the object is found in.
  9.1265 +		  non_pic_object="$xdir$non_pic_object"
  9.1266 +
  9.1267 +		  # A standard non-PIC object
  9.1268 +		  non_pic_objects="$non_pic_objects $non_pic_object"
  9.1269 +		  if test -z "$pic_object" || test "$pic_object" = none ; then
  9.1270 +		    arg="$non_pic_object"
  9.1271 +		  fi
  9.1272 +		fi
  9.1273 +	      else
  9.1274 +		# Only an error if not doing a dry-run.
  9.1275 +		if test -z "$run"; then
  9.1276 +		  $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  9.1277 +		  exit $EXIT_FAILURE
  9.1278 +		else
  9.1279 +		  # Dry-run case.
  9.1280 +
  9.1281 +		  # Extract subdirectory from the argument.
  9.1282 +		  xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  9.1283 +		  if test "X$xdir" = "X$arg"; then
  9.1284 +		    xdir=
  9.1285 +		  else
  9.1286 +		    xdir="$xdir/"
  9.1287 +		  fi
  9.1288 +
  9.1289 +		  pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  9.1290 +		  non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  9.1291 +		  libobjs="$libobjs $pic_object"
  9.1292 +		  non_pic_objects="$non_pic_objects $non_pic_object"
  9.1293 +		fi
  9.1294 +	      fi
  9.1295 +	    done
  9.1296 +	  else
  9.1297 +	    $echo "$modename: link input file \`$save_arg' does not exist"
  9.1298 +	    exit $EXIT_FAILURE
  9.1299 +	  fi
  9.1300 +	  arg=$save_arg
  9.1301 +	  prev=
  9.1302 +	  continue
  9.1303 +	  ;;
  9.1304 +	rpath | xrpath)
  9.1305 +	  # We need an absolute path.
  9.1306 +	  case $arg in
  9.1307 +	  [\\/]* | [A-Za-z]:[\\/]*) ;;
  9.1308 +	  *)
  9.1309 +	    $echo "$modename: only absolute run-paths are allowed" 1>&2
  9.1310 +	    exit $EXIT_FAILURE
  9.1311 +	    ;;
  9.1312 +	  esac
  9.1313 +	  if test "$prev" = rpath; then
  9.1314 +	    case "$rpath " in
  9.1315 +	    *" $arg "*) ;;
  9.1316 +	    *) rpath="$rpath $arg" ;;
  9.1317 +	    esac
  9.1318 +	  else
  9.1319 +	    case "$xrpath " in
  9.1320 +	    *" $arg "*) ;;
  9.1321 +	    *) xrpath="$xrpath $arg" ;;
  9.1322 +	    esac
  9.1323 +	  fi
  9.1324 +	  prev=
  9.1325 +	  continue
  9.1326 +	  ;;
  9.1327 +	xcompiler)
  9.1328 +	  compiler_flags="$compiler_flags $qarg"
  9.1329 +	  prev=
  9.1330 +	  compile_command="$compile_command $qarg"
  9.1331 +	  finalize_command="$finalize_command $qarg"
  9.1332 +	  continue
  9.1333 +	  ;;
  9.1334 +	xlinker)
  9.1335 +	  linker_flags="$linker_flags $qarg"
  9.1336 +	  compiler_flags="$compiler_flags $wl$qarg"
  9.1337 +	  prev=
  9.1338 +	  compile_command="$compile_command $wl$qarg"
  9.1339 +	  finalize_command="$finalize_command $wl$qarg"
  9.1340 +	  continue
  9.1341 +	  ;;
  9.1342 +	xcclinker)
  9.1343 +	  linker_flags="$linker_flags $qarg"
  9.1344 +	  compiler_flags="$compiler_flags $qarg"
  9.1345 +	  prev=
  9.1346 +	  compile_command="$compile_command $qarg"
  9.1347 +	  finalize_command="$finalize_command $qarg"
  9.1348 +	  continue
  9.1349 +	  ;;
  9.1350 +	framework)
  9.1351 +	  case $host in
  9.1352 +	    *-*-darwin*)
  9.1353 +	      case "$deplibs " in
  9.1354 +	        *" $qarg.framework "*) ;;
  9.1355 +		*) deplibs="$deplibs $qarg.framework" # this is fixed later
  9.1356 +		   ;;
  9.1357 +              esac
  9.1358 +              ;;
  9.1359 +   	  esac
  9.1360 + 	  prev=
  9.1361 + 	  continue
  9.1362 + 	  ;;
  9.1363 +	shrext)
  9.1364 +  	  shrext_cmds="$arg"
  9.1365 +	  prev=
  9.1366 +	  continue
  9.1367 +	  ;;
  9.1368 +	*)
  9.1369 +	  eval "$prev=\"\$arg\""
  9.1370 +	  prev=
  9.1371 +	  continue
  9.1372 +	  ;;
  9.1373 +	esac
  9.1374 +      fi # test -n "$prev"
  9.1375 +
  9.1376 +      prevarg="$arg"
  9.1377 +
  9.1378 +      case $arg in
  9.1379 +      -all-static)
  9.1380 +	if test -n "$link_static_flag"; then
  9.1381 +	  compile_command="$compile_command $link_static_flag"
  9.1382 +	  finalize_command="$finalize_command $link_static_flag"
  9.1383 +	fi
  9.1384 +	continue
  9.1385 +	;;
  9.1386 +
  9.1387 +      -allow-undefined)
  9.1388 +	# FIXME: remove this flag sometime in the future.
  9.1389 +	$echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  9.1390 +	continue
  9.1391 +	;;
  9.1392 +
  9.1393 +      -avoid-version)
  9.1394 +	avoid_version=yes
  9.1395 +	continue
  9.1396 +	;;
  9.1397 +
  9.1398 +      -dlopen)
  9.1399 +	prev=dlfiles
  9.1400 +	continue
  9.1401 +	;;
  9.1402 +
  9.1403 +      -dlpreopen)
  9.1404 +	prev=dlprefiles
  9.1405 +	continue
  9.1406 +	;;
  9.1407 +
  9.1408 +      -export-dynamic)
  9.1409 +	export_dynamic=yes
  9.1410 +	continue
  9.1411 +	;;
  9.1412 +
  9.1413 +      -export-symbols | -export-symbols-regex)
  9.1414 +	if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  9.1415 +	  $echo "$modename: more than one -exported-symbols argument is not allowed"
  9.1416 +	  exit $EXIT_FAILURE
  9.1417 +	fi
  9.1418 +	if test "X$arg" = "X-export-symbols"; then
  9.1419 +	  prev=expsyms
  9.1420 +	else
  9.1421 +	  prev=expsyms_regex
  9.1422 +	fi
  9.1423 +	continue
  9.1424 +	;;
  9.1425 +
  9.1426 +      -inst-prefix-dir)
  9.1427 +	prev=inst_prefix
  9.1428 +	continue
  9.1429 +	;;
  9.1430 +
  9.1431 +      # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  9.1432 +      # so, if we see these flags be careful not to treat them like -L
  9.1433 +      -L[A-Z][A-Z]*:*)
  9.1434 +	case $with_gcc/$host in
  9.1435 +	no/*-*-irix* | /*-*-irix*)
  9.1436 +	  compile_command="$compile_command $arg"
  9.1437 +	  finalize_command="$finalize_command $arg"
  9.1438 +	  ;;
  9.1439 +	esac
  9.1440 +	continue
  9.1441 +	;;
  9.1442 +
  9.1443 +      -L*)
  9.1444 +	dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  9.1445 +	# We need an absolute path.
  9.1446 +	case $dir in
  9.1447 +	[\\/]* | [A-Za-z]:[\\/]*) ;;
  9.1448 +	*)
  9.1449 +	  absdir=`cd "$dir" && pwd`
  9.1450 +	  if test -z "$absdir"; then
  9.1451 +	    $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  9.1452 +	    exit $EXIT_FAILURE
  9.1453 +	  fi
  9.1454 +	  dir="$absdir"
  9.1455 +	  ;;
  9.1456 +	esac
  9.1457 +	case "$deplibs " in
  9.1458 +	*" -L$dir "*) ;;
  9.1459 +	*)
  9.1460 +	  deplibs="$deplibs -L$dir"
  9.1461 +	  lib_search_path="$lib_search_path $dir"
  9.1462 +	  ;;
  9.1463 +	esac
  9.1464 +	case $host in
  9.1465 +	*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  9.1466 +	  case :$dllsearchpath: in
  9.1467 +	  *":$dir:"*) ;;
  9.1468 +	  *) dllsearchpath="$dllsearchpath:$dir";;
  9.1469 +	  esac
  9.1470 +	  ;;
  9.1471 +	esac
  9.1472 +	continue
  9.1473 +	;;
  9.1474 +
  9.1475 +      -l*)
  9.1476 +	if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  9.1477 +	  case $host in
  9.1478 +	  *-*-cygwin* | *-*-pw32* | *-*-beos*)
  9.1479 +	    # These systems don't actually have a C or math library (as such)
  9.1480 +	    continue
  9.1481 +	    ;;
  9.1482 +	  *-*-mingw* | *-*-os2*)
  9.1483 +	    # These systems don't actually have a C library (as such)
  9.1484 +	    test "X$arg" = "X-lc" && continue
  9.1485 +	    ;;
  9.1486 +	  *-*-openbsd* | *-*-freebsd*)
  9.1487 +	    # Do not include libc due to us having libc/libc_r.
  9.1488 +	    test "X$arg" = "X-lc" && continue
  9.1489 +	    ;;
  9.1490 +	  *-*-rhapsody* | *-*-darwin1.[012])
  9.1491 +	    # Rhapsody C and math libraries are in the System framework
  9.1492 +	    deplibs="$deplibs -framework System"
  9.1493 +	    continue
  9.1494 +	  esac
  9.1495 +	elif test "X$arg" = "X-lc_r"; then
  9.1496 +	 case $host in
  9.1497 +	 *-*-openbsd* | *-*-freebsd*)
  9.1498 +	   # Do not include libc_r directly, use -pthread flag.
  9.1499 +	   continue
  9.1500 +	   ;;
  9.1501 +	 esac
  9.1502 +	fi
  9.1503 +	deplibs="$deplibs $arg"
  9.1504 +	continue
  9.1505 +	;;
  9.1506 +
  9.1507 +     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  9.1508 +	deplibs="$deplibs $arg"
  9.1509 +	continue
  9.1510 +	;;
  9.1511 +
  9.1512 +      -module)
  9.1513 +	module=yes
  9.1514 +	continue
  9.1515 +	;;
  9.1516 +
  9.1517 +      # gcc -m* arguments should be passed to the linker via $compiler_flags
  9.1518 +      # in order to pass architecture information to the linker
  9.1519 +      # (e.g. 32 vs 64-bit).  This may also be accomplished via -Wl,-mfoo
  9.1520 +      # but this is not reliable with gcc because gcc may use -mfoo to
  9.1521 +      # select a different linker, different libraries, etc, while
  9.1522 +      # -Wl,-mfoo simply passes -mfoo to the linker.
  9.1523 +      -m*)
  9.1524 +	# Unknown arguments in both finalize_command and compile_command need
  9.1525 +	# to be aesthetically quoted because they are evaled later.
  9.1526 +	arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  9.1527 +	case $arg in
  9.1528 +	*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
  9.1529 +	  arg="\"$arg\""
  9.1530 +	  ;;
  9.1531 +	esac
  9.1532 +        compile_command="$compile_command $arg"
  9.1533 +        finalize_command="$finalize_command $arg"
  9.1534 +        if test "$with_gcc" = "yes" ; then
  9.1535 +          compiler_flags="$compiler_flags $arg"
  9.1536 +        fi
  9.1537 +        continue
  9.1538 +        ;;
  9.1539 +
  9.1540 +      -shrext)
  9.1541 +	prev=shrext
  9.1542 +	continue
  9.1543 +	;;
  9.1544 +
  9.1545 +      -no-fast-install)
  9.1546 +	fast_install=no
  9.1547 +	continue
  9.1548 +	;;
  9.1549 +
  9.1550 +      -no-install)
  9.1551 +	case $host in
  9.1552 +	*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  9.1553 +	  # The PATH hackery in wrapper scripts is required on Windows
  9.1554 +	  # in order for the loader to find any dlls it needs.
  9.1555 +	  $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  9.1556 +	  $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  9.1557 +	  fast_install=no
  9.1558 +	  ;;
  9.1559 +	*) no_install=yes ;;
  9.1560 +	esac
  9.1561 +	continue
  9.1562 +	;;
  9.1563 +
  9.1564 +      -no-undefined)
  9.1565 +	allow_undefined=no
  9.1566 +	continue
  9.1567 +	;;
  9.1568 +
  9.1569 +      -objectlist)
  9.1570 +	prev=objectlist
  9.1571 +	continue
  9.1572 +	;;
  9.1573 +
  9.1574 +      -o) prev=output ;;
  9.1575 +
  9.1576 +      -precious-files-regex)
  9.1577 +	prev=precious_regex
  9.1578 +	continue
  9.1579 +	;;
  9.1580 +
  9.1581 +      -release)
  9.1582 +	prev=release
  9.1583 +	continue
  9.1584 +	;;
  9.1585 +
  9.1586 +      -rpath)
  9.1587 +	prev=rpath
  9.1588 +	continue
  9.1589 +	;;
  9.1590 +
  9.1591 +      -R)
  9.1592 +	prev=xrpath
  9.1593 +	continue
  9.1594 +	;;
  9.1595 +
  9.1596 +      -R*)
  9.1597 +	dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  9.1598 +	# We need an absolute path.
  9.1599 +	case $dir in
  9.1600 +	[\\/]* | [A-Za-z]:[\\/]*) ;;
  9.1601 +	*)
  9.1602 +	  $echo "$modename: only absolute run-paths are allowed" 1>&2
  9.1603 +	  exit $EXIT_FAILURE
  9.1604 +	  ;;
  9.1605 +	esac
  9.1606 +	case "$xrpath " in
  9.1607 +	*" $dir "*) ;;
  9.1608 +	*) xrpath="$xrpath $dir" ;;
  9.1609 +	esac
  9.1610 +	continue
  9.1611 +	;;
  9.1612 +
  9.1613 +      -static)
  9.1614 +	# The effects of -static are defined in a previous loop.
  9.1615 +	# We used to do the same as -all-static on platforms that
  9.1616 +	# didn't have a PIC flag, but the assumption that the effects
  9.1617 +	# would be equivalent was wrong.  It would break on at least
  9.1618 +	# Digital Unix and AIX.
  9.1619 +	continue
  9.1620 +	;;
  9.1621 +
  9.1622 +      -thread-safe)
  9.1623 +	thread_safe=yes
  9.1624 +	continue
  9.1625 +	;;
  9.1626 +
  9.1627 +      -version-info)
  9.1628 +	prev=vinfo
  9.1629 +	continue
  9.1630 +	;;
  9.1631 +      -version-number)
  9.1632 +	prev=vinfo
  9.1633 +	vinfo_number=yes
  9.1634 +	continue
  9.1635 +	;;
  9.1636 +
  9.1637 +      -Wc,*)
  9.1638 +	args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  9.1639 +	arg=
  9.1640 +	save_ifs="$IFS"; IFS=','
  9.1641 +	for flag in $args; do
  9.1642 +	  IFS="$save_ifs"
  9.1643 +	  case $flag in
  9.1644 +	    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
  9.1645 +	    flag="\"$flag\""
  9.1646 +	    ;;
  9.1647 +	  esac
  9.1648 +	  arg="$arg $wl$flag"
  9.1649 +	  compiler_flags="$compiler_flags $flag"
  9.1650 +	done
  9.1651 +	IFS="$save_ifs"
  9.1652 +	arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  9.1653 +	;;
  9.1654 +
  9.1655 +      -Wl,*)
  9.1656 +	args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  9.1657 +	arg=
  9.1658 +	save_ifs="$IFS"; IFS=','
  9.1659 +	for flag in $args; do
  9.1660 +	  IFS="$save_ifs"
  9.1661 +	  case $flag in
  9.1662 +	    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
  9.1663 +	    flag="\"$flag\""
  9.1664 +	    ;;
  9.1665 +	  esac
  9.1666 +	  arg="$arg $wl$flag"
  9.1667 +	  compiler_flags="$compiler_flags $wl$flag"
  9.1668 +	  linker_flags="$linker_flags $flag"
  9.1669 +	done
  9.1670 +	IFS="$save_ifs"
  9.1671 +	arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  9.1672 +	;;
  9.1673 +
  9.1674 +      -Xcompiler)
  9.1675 +	prev=xcompiler
  9.1676 +	continue
  9.1677 +	;;
  9.1678 +
  9.1679 +      -Xlinker)
  9.1680 +	prev=xlinker
  9.1681 +	continue
  9.1682 +	;;
  9.1683 +
  9.1684 +      -XCClinker)
  9.1685 +	prev=xcclinker
  9.1686 +	continue
  9.1687 +	;;
  9.1688 +
  9.1689 +      -framework)
  9.1690 +        prev=framework
  9.1691 +	continue
  9.1692 +	;;
  9.1693 +
  9.1694 +      # Some other compiler flag.
  9.1695 +      -* | +*)
  9.1696 +	# Unknown arguments in both finalize_command and compile_command need
  9.1697 +	# to be aesthetically quoted because they are evaled later.
  9.1698 +	arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  9.1699 +	case $arg in
  9.1700 +	*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
  9.1701 +	  arg="\"$arg\""
  9.1702 +	  ;;
  9.1703 +	esac
  9.1704 +	;;
  9.1705 +
  9.1706 +      *.$objext)
  9.1707 +	# A standard object.
  9.1708 +	objs="$objs $arg"
  9.1709 +	;;
  9.1710 +
  9.1711 +      *.lo)
  9.1712 +	# A libtool-controlled object.
  9.1713 +
  9.1714 +	# Check to see that this really is a libtool object.
  9.1715 +	if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  9.1716 +	  pic_object=
  9.1717 +	  non_pic_object=
  9.1718 +
  9.1719 +	  # Read the .lo file
  9.1720 +	  # If there is no directory component, then add one.
  9.1721 +	  case $arg in
  9.1722 +	  */* | *\\*) . $arg ;;
  9.1723 +	  *) . ./$arg ;;
  9.1724 +	  esac
  9.1725 +
  9.1726 +	  if test -z "$pic_object" || \
  9.1727 +	     test -z "$non_pic_object" ||
  9.1728 +	     test "$pic_object" = none && \
  9.1729 +	     test "$non_pic_object" = none; then
  9.1730 +	    $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  9.1731 +	    exit $EXIT_FAILURE
  9.1732 +	  fi
  9.1733 +
  9.1734 +	  # Extract subdirectory from the argument.
  9.1735 +	  xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  9.1736 +	  if test "X$xdir" = "X$arg"; then
  9.1737 +	    xdir=
  9.1738 + 	  else
  9.1739 +	    xdir="$xdir/"
  9.1740 +	  fi
  9.1741 +
  9.1742 +	  if test "$pic_object" != none; then
  9.1743 +	    # Prepend the subdirectory the object is found in.
  9.1744 +	    pic_object="$xdir$pic_object"
  9.1745 +
  9.1746 +	    if test "$prev" = dlfiles; then
  9.1747 +	      if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  9.1748 +		dlfiles="$dlfiles $pic_object"
  9.1749 +		prev=
  9.1750 +		continue
  9.1751 +	      else
  9.1752 +		# If libtool objects are unsupported, then we need to preload.
  9.1753 +		prev=dlprefiles
  9.1754 +	      fi
  9.1755 +	    fi
  9.1756 +
  9.1757 +	    # CHECK ME:  I think I busted this.  -Ossama
  9.1758 +	    if test "$prev" = dlprefiles; then
  9.1759 +	      # Preload the old-style object.
  9.1760 +	      dlprefiles="$dlprefiles $pic_object"
  9.1761 +	      prev=
  9.1762 +	    fi
  9.1763 +
  9.1764 +	    # A PIC object.
  9.1765 +	    libobjs="$libobjs $pic_object"
  9.1766 +	    arg="$pic_object"
  9.1767 +	  fi
  9.1768 +
  9.1769 +	  # Non-PIC object.
  9.1770 +	  if test "$non_pic_object" != none; then
  9.1771 +	    # Prepend the subdirectory the object is found in.
  9.1772 +	    non_pic_object="$xdir$non_pic_object"
  9.1773 +
  9.1774 +	    # A standard non-PIC object
  9.1775 +	    non_pic_objects="$non_pic_objects $non_pic_object"
  9.1776 +	    if test -z "$pic_object" || test "$pic_object" = none ; then
  9.1777 +	      arg="$non_pic_object"
  9.1778 +	    fi
  9.1779 +	  fi
  9.1780 +	else
  9.1781 +	  # Only an error if not doing a dry-run.
  9.1782 +	  if test -z "$run"; then
  9.1783 +	    $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  9.1784 +	    exit $EXIT_FAILURE
  9.1785 +	  else
  9.1786 +	    # Dry-run case.
  9.1787 +
  9.1788 +	    # Extract subdirectory from the argument.
  9.1789 +	    xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  9.1790 +	    if test "X$xdir" = "X$arg"; then
  9.1791 +	      xdir=
  9.1792 +	    else
  9.1793 +	      xdir="$xdir/"
  9.1794 +	    fi
  9.1795 +
  9.1796 +	    pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  9.1797 +	    non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  9.1798 +	    libobjs="$libobjs $pic_object"
  9.1799 +	    non_pic_objects="$non_pic_objects $non_pic_object"
  9.1800 +	  fi
  9.1801 +	fi
  9.1802 +	;;
  9.1803 +
  9.1804 +      *.$libext)
  9.1805 +	# An archive.
  9.1806 +	deplibs="$deplibs $arg"
  9.1807 +	old_deplibs="$old_deplibs $arg"
  9.1808 +	continue
  9.1809 +	;;
  9.1810 +
  9.1811 +      *.la)
  9.1812 +	# A libtool-controlled library.
  9.1813 +
  9.1814 +	if test "$prev" = dlfiles; then
  9.1815 +	  # This library was specified with -dlopen.
  9.1816 +	  dlfiles="$dlfiles $arg"
  9.1817 +	  prev=
  9.1818 +	elif test "$prev" = dlprefiles; then
  9.1819 +	  # The library was specified with -dlpreopen.
  9.1820 +	  dlprefiles="$dlprefiles $arg"
  9.1821 +	  prev=
  9.1822 +	else
  9.1823 +	  deplibs="$deplibs $arg"
  9.1824 +	fi
  9.1825 +	continue
  9.1826 +	;;
  9.1827 +
  9.1828 +      # Some other compiler argument.
  9.1829 +      *)
  9.1830 +	# Unknown arguments in both finalize_command and compile_command need
  9.1831 +	# to be aesthetically quoted because they are evaled later.
  9.1832 +	arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  9.1833 +	case $arg in
  9.1834 +	*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*|"")
  9.1835 +	  arg="\"$arg\""
  9.1836 +	  ;;
  9.1837 +	esac
  9.1838 +	;;
  9.1839 +      esac # arg
  9.1840 +
  9.1841 +      # Now actually substitute the argument into the commands.
  9.1842 +      if test -n "$arg"; then
  9.1843 +	compile_command="$compile_command $arg"
  9.1844 +	finalize_command="$finalize_command $arg"
  9.1845 +      fi
  9.1846 +    done # argument parsing loop
  9.1847 +
  9.1848 +    if test -n "$prev"; then
  9.1849 +      $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  9.1850 +      $echo "$help" 1>&2
  9.1851 +      exit $EXIT_FAILURE
  9.1852 +    fi
  9.1853 +
  9.1854 +    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  9.1855 +      eval arg=\"$export_dynamic_flag_spec\"
  9.1856 +      compile_command="$compile_command $arg"
  9.1857 +      finalize_command="$finalize_command $arg"
  9.1858 +    fi
  9.1859 +
  9.1860 +    oldlibs=
  9.1861 +    # calculate the name of the file, without its directory
  9.1862 +    outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  9.1863 +    libobjs_save="$libobjs"
  9.1864 +
  9.1865 +    if test -n "$shlibpath_var"; then
  9.1866 +      # get the directories listed in $shlibpath_var
  9.1867 +      eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  9.1868 +    else
  9.1869 +      shlib_search_path=
  9.1870 +    fi
  9.1871 +    eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  9.1872 +    eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  9.1873 +
  9.1874 +    output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  9.1875 +    if test "X$output_objdir" = "X$output"; then
  9.1876 +      output_objdir="$objdir"
  9.1877 +    else
  9.1878 +      output_objdir="$output_objdir/$objdir"
  9.1879 +    fi
  9.1880 +    # Create the object directory.
  9.1881 +    if test ! -d "$output_objdir"; then
  9.1882 +      $show "$mkdir $output_objdir"
  9.1883 +      $run $mkdir $output_objdir
  9.1884 +      status=$?
  9.1885 +      if test "$status" -ne 0 && test ! -d "$output_objdir"; then
  9.1886 +	exit $status
  9.1887 +      fi
  9.1888 +    fi
  9.1889 +
  9.1890 +    # Determine the type of output
  9.1891 +    case $output in
  9.1892 +    "")
  9.1893 +      $echo "$modename: you must specify an output file" 1>&2
  9.1894 +      $echo "$help" 1>&2
  9.1895 +      exit $EXIT_FAILURE
  9.1896 +      ;;
  9.1897 +    *.$libext) linkmode=oldlib ;;
  9.1898 +    *.lo | *.$objext) linkmode=obj ;;
  9.1899 +    *.la) linkmode=lib ;;
  9.1900 +    *) linkmode=prog ;; # Anything else should be a program.
  9.1901 +    esac
  9.1902 +
  9.1903 +    case $host in
  9.1904 +    *cygwin* | *mingw* | *pw32*)
  9.1905 +      # don't eliminate duplications in $postdeps and $predeps
  9.1906 +      duplicate_compiler_generated_deps=yes
  9.1907 +      ;;
  9.1908 +    *)
  9.1909 +      duplicate_compiler_generated_deps=$duplicate_deps
  9.1910 +      ;;
  9.1911 +    esac
  9.1912 +    specialdeplibs=
  9.1913 +
  9.1914 +    libs=
  9.1915 +    # Find all interdependent deplibs by searching for libraries
  9.1916 +    # that are linked more than once (e.g. -la -lb -la)
  9.1917 +    for deplib in $deplibs; do
  9.1918 +      if test "X$duplicate_deps" = "Xyes" ; then
  9.1919 +	case "$libs " in
  9.1920 +	*" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  9.1921 +	esac
  9.1922 +      fi
  9.1923 +      libs="$libs $deplib"
  9.1924 +    done
  9.1925 +
  9.1926 +    if test "$linkmode" = lib; then
  9.1927 +      libs="$predeps $libs $compiler_lib_search_path $postdeps"
  9.1928 +
  9.1929 +      # Compute libraries that are listed more than once in $predeps
  9.1930 +      # $postdeps and mark them as special (i.e., whose duplicates are
  9.1931 +      # not to be eliminated).
  9.1932 +      pre_post_deps=
  9.1933 +      if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  9.1934 +	for pre_post_dep in $predeps $postdeps; do
  9.1935 +	  case "$pre_post_deps " in
  9.1936 +	  *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  9.1937 +	  esac
  9.1938 +	  pre_post_deps="$pre_post_deps $pre_post_dep"
  9.1939 +	done
  9.1940 +      fi
  9.1941 +      pre_post_deps=
  9.1942 +    fi
  9.1943 +
  9.1944 +    deplibs=
  9.1945 +    newdependency_libs=
  9.1946 +    newlib_search_path=
  9.1947 +    need_relink=no # whether we're linking any uninstalled libtool libraries
  9.1948 +    notinst_deplibs= # not-installed libtool libraries
  9.1949 +    notinst_path= # paths that contain not-installed libtool libraries
  9.1950 +    case $linkmode in
  9.1951 +    lib)
  9.1952 +	passes="conv link"
  9.1953 +	for file in $dlfiles $dlprefiles; do
  9.1954 +	  case $file in
  9.1955 +	  *.la) ;;
  9.1956 +	  *)
  9.1957 +	    $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  9.1958 +	    exit $EXIT_FAILURE
  9.1959 +	    ;;
  9.1960 +	  esac
  9.1961 +	done
  9.1962 +	;;
  9.1963 +    prog)
  9.1964 +	compile_deplibs=
  9.1965 +	finalize_deplibs=
  9.1966 +	alldeplibs=no
  9.1967 +	newdlfiles=
  9.1968 +	newdlprefiles=
  9.1969 +	passes="conv scan dlopen dlpreopen link"
  9.1970 +	;;
  9.1971 +    *)  passes="conv"
  9.1972 +	;;
  9.1973 +    esac
  9.1974 +    for pass in $passes; do
  9.1975 +      if test "$linkmode,$pass" = "lib,link" ||
  9.1976 +	 test "$linkmode,$pass" = "prog,scan"; then
  9.1977 +	libs="$deplibs"
  9.1978 +	deplibs=
  9.1979 +      fi
  9.1980 +      if test "$linkmode" = prog; then
  9.1981 +	case $pass in
  9.1982 +	dlopen) libs="$dlfiles" ;;
  9.1983 +	dlpreopen) libs="$dlprefiles" ;;
  9.1984 +	link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  9.1985 +	esac
  9.1986 +      fi
  9.1987 +      if test "$pass" = dlopen; then
  9.1988 +	# Collect dlpreopened libraries
  9.1989 +	save_deplibs="$deplibs"
  9.1990 +	deplibs=
  9.1991 +      fi
  9.1992 +      for deplib in $libs; do
  9.1993 +	lib=
  9.1994 +	found=no
  9.1995 +	case $deplib in
  9.1996 +	-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  9.1997 +	  if test "$linkmode,$pass" = "prog,link"; then
  9.1998 +	    compile_deplibs="$deplib $compile_deplibs"
  9.1999 +	    finalize_deplibs="$deplib $finalize_deplibs"
  9.2000 +	  else
  9.2001 +	    deplibs="$deplib $deplibs"
  9.2002 +	  fi
  9.2003 +	  continue
  9.2004 +	  ;;
  9.2005 +	-l*)
  9.2006 +	  if test "$linkmode" != lib && test "$linkmode" != prog; then
  9.2007 +	    $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  9.2008 +	    continue
  9.2009 +	  fi
  9.2010 +	  if test "$pass" = conv; then
  9.2011 +	    deplibs="$deplib $deplibs"
  9.2012 +	    continue
  9.2013 +	  fi
  9.2014 +	  name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  9.2015 +	  for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  9.2016 +	    for search_ext in .la $std_shrext .so .a; do
  9.2017 +	      # Search the libtool library
  9.2018 +	      lib="$searchdir/lib${name}${search_ext}"
  9.2019 +	      if test -f "$lib"; then
  9.2020 +		if test "$search_ext" = ".la"; then
  9.2021 +		  found=yes
  9.2022 +		else
  9.2023 +		  found=no
  9.2024 +		fi
  9.2025 +		break 2
  9.2026 +	      fi
  9.2027 +	    done
  9.2028 +	  done
  9.2029 +	  if test "$found" != yes; then
  9.2030 +	    # deplib doesn't seem to be a libtool library
  9.2031 +	    if test "$linkmode,$pass" = "prog,link"; then
  9.2032 +	      compile_deplibs="$deplib $compile_deplibs"
  9.2033 +	      finalize_deplibs="$deplib $finalize_deplibs"
  9.2034 +	    else
  9.2035 +	      deplibs="$deplib $deplibs"
  9.2036 +	      test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  9.2037 +	    fi
  9.2038 +	    continue
  9.2039 +	  else # deplib is a libtool library
  9.2040 +	    # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  9.2041 +	    # We need to do some special things here, and not later.
  9.2042 +	    if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  9.2043 +	      case " $predeps $postdeps " in
  9.2044 +	      *" $deplib "*)
  9.2045 +		if (${SED} -e '2q' $lib |
  9.2046 +                    grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  9.2047 +		  library_names=
  9.2048 +		  old_library=
  9.2049 +		  case $lib in
  9.2050 +		  */* | *\\*) . $lib ;;
  9.2051 +		  *) . ./$lib ;;
  9.2052 +		  esac
  9.2053 +		  for l in $old_library $library_names; do
  9.2054 +		    ll="$l"
  9.2055 +		  done
  9.2056 +		  if test "X$ll" = "X$old_library" ; then # only static version available
  9.2057 +		    found=no
  9.2058 +		    ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  9.2059 +		    test "X$ladir" = "X$lib" && ladir="."
  9.2060 +		    lib=$ladir/$old_library
  9.2061 +		    if test "$linkmode,$pass" = "prog,link"; then
  9.2062 +		      compile_deplibs="$deplib $compile_deplibs"
  9.2063 +		      finalize_deplibs="$deplib $finalize_deplibs"
  9.2064 +		    else
  9.2065 +		      deplibs="$deplib $deplibs"
  9.2066 +		      test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  9.2067 +		    fi
  9.2068 +		    continue
  9.2069 +		  fi
  9.2070 +		fi
  9.2071 +	        ;;
  9.2072 +	      *) ;;
  9.2073 +	      esac
  9.2074 +	    fi
  9.2075 +	  fi
  9.2076 +	  ;; # -l
  9.2077 +	*.framework)
  9.2078 +	  if test "$linkmode,$pass" = "prog,link"; then
  9.2079 +	    compile_deplibs="$deplib $compile_deplibs"
  9.2080 +	    finalize_deplibs="$deplib $finalize_deplibs"
  9.2081 +	  else
  9.2082 +	    deplibs="$deplib $deplibs"
  9.2083 +	    if test "$linkmode" = lib ; then
  9.2084 +	      newdependency_libs="$deplib $newdependency_libs"
  9.2085 +	    fi
  9.2086 +	  fi
  9.2087 +	  continue
  9.2088 +	  ;;
  9.2089 +	-L*)
  9.2090 +	  case $linkmode in
  9.2091 +	  lib)
  9.2092 +	    deplibs="$deplib $deplibs"
  9.2093 +	    test "$pass" = conv && continue
  9.2094 +	    newdependency_libs="$deplib $newdependency_libs"
  9.2095 +	    newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  9.2096 +	    ;;
  9.2097 +	  prog)
  9.2098 +	    if test "$pass" = conv; then
  9.2099 +	      deplibs="$deplib $deplibs"
  9.2100 +	      continue
  9.2101 +	    fi
  9.2102 +	    if test "$pass" = scan; then
  9.2103 +	      deplibs="$deplib $deplibs"
  9.2104 +	    else
  9.2105 +	      compile_deplibs="$deplib $compile_deplibs"
  9.2106 +	      finalize_deplibs="$deplib $finalize_deplibs"
  9.2107 +	    fi
  9.2108 +	    newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  9.2109 +	    ;;
  9.2110 +	  *)
  9.2111 +	    $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  9.2112 +	    ;;
  9.2113 +	  esac # linkmode
  9.2114 +	  continue
  9.2115 +	  ;; # -L
  9.2116 +	-R*)
  9.2117 +	  if test "$pass" = link; then
  9.2118 +	    dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  9.2119 +	    # Make sure the xrpath contains only unique directories.
  9.2120 +	    case "$xrpath " in
  9.2121 +	    *" $dir "*) ;;
  9.2122 +	    *) xrpath="$xrpath $dir" ;;
  9.2123 +	    esac
  9.2124 +	  fi
  9.2125 +	  deplibs="$deplib $deplibs"
  9.2126 +	  continue
  9.2127 +	  ;;
  9.2128 +	*.la) lib="$deplib" ;;
  9.2129 +	*.$libext)
  9.2130 +	  if test "$pass" = conv; then
  9.2131 +	    deplibs="$deplib $deplibs"
  9.2132 +	    continue
  9.2133 +	  fi
  9.2134 +	  case $linkmode in
  9.2135 +	  lib)
  9.2136 +	    valid_a_lib=no
  9.2137 +	    case $deplibs_check_method in
  9.2138 +	      match_pattern*)
  9.2139 +		set dummy $deplibs_check_method
  9.2140 +	        match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  9.2141 +		if eval $echo \"$deplib\" 2>/dev/null \
  9.2142 +		    | $SED 10q \
  9.2143 +		    | $EGREP "$match_pattern_regex" > /dev/null; then
  9.2144 +		  valid_a_lib=yes
  9.2145 +		fi
  9.2146 +		;;
  9.2147 +	      pass_all)
  9.2148 +		valid_a_lib=yes
  9.2149 +		;;
  9.2150 +            esac
  9.2151 +	    if test "$valid_a_lib" != yes; then
  9.2152 +	      $echo
  9.2153 +	      $echo "*** Warning: Trying to link with static lib archive $deplib."
  9.2154 +	      $echo "*** I have the capability to make that library automatically link in when"
  9.2155 +	      $echo "*** you link to this library.  But I can only do this if you have a"
  9.2156 +	      $echo "*** shared version of the library, which you do not appear to have"
  9.2157 +	      $echo "*** because the file extensions .$libext of this argument makes me believe"
  9.2158 +	      $echo "*** that it is just a static archive that I should not used here."
  9.2159 +	    else
  9.2160 +	      $echo
  9.2161 +	      $echo "*** Warning: Linking the shared library $output against the"
  9.2162 +	      $echo "*** static library $deplib is not portable!"
  9.2163 +	      deplibs="$deplib $deplibs"
  9.2164 +	    fi
  9.2165 +	    continue
  9.2166 +	    ;;
  9.2167 +	  prog)
  9.2168 +	    if test "$pass" != link; then
  9.2169 +	      deplibs="$deplib $deplibs"
  9.2170 +	    else
  9.2171 +	      compile_deplibs="$deplib $compile_deplibs"
  9.2172 +	      finalize_deplibs="$deplib $finalize_deplibs"
  9.2173 +	    fi
  9.2174 +	    continue
  9.2175 +	    ;;
  9.2176 +	  esac # linkmode
  9.2177 +	  ;; # *.$libext
  9.2178 +	*.lo | *.$objext)
  9.2179 +	  if test "$pass" = conv; then
  9.2180 +	    deplibs="$deplib $deplibs"
  9.2181 +	  elif test "$linkmode" = prog; then
  9.2182 +	    if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  9.2183 +	      # If there is no dlopen support or we're linking statically,
  9.2184 +	      # we need to preload.
  9.2185 +	      newdlprefiles="$newdlprefiles $deplib"
  9.2186 +	      compile_deplibs="$deplib $compile_deplibs"
  9.2187 +	      finalize_deplibs="$deplib $finalize_deplibs"
  9.2188 +	    else
  9.2189 +	      newdlfiles="$newdlfiles $deplib"
  9.2190 +	    fi
  9.2191 +	  fi
  9.2192 +	  continue
  9.2193 +	  ;;
  9.2194 +	%DEPLIBS%)
  9.2195 +	  alldeplibs=yes
  9.2196 +	  continue
  9.2197 +	  ;;
  9.2198 +	esac # case $deplib
  9.2199 +	if test "$found" = yes || test -f "$lib"; then :
  9.2200 +	else
  9.2201 +	  $echo "$modename: cannot find the library \`$lib'" 1>&2
  9.2202 +	  exit $EXIT_FAILURE
  9.2203 +	fi
  9.2204 +
  9.2205 +	# Check to see that this really is a libtool archive.
  9.2206 +	if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  9.2207 +	else
  9.2208 +	  $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  9.2209 +	  exit $EXIT_FAILURE
  9.2210 +	fi
  9.2211 +
  9.2212 +	ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  9.2213 +	test "X$ladir" = "X$lib" && ladir="."
  9.2214 +
  9.2215 +	dlname=
  9.2216 +	dlopen=
  9.2217 +	dlpreopen=
  9.2218 +	libdir=
  9.2219 +	library_names=
  9.2220 +	old_library=
  9.2221 +	# If the library was installed with an old release of libtool,
  9.2222 +	# it will not redefine variables installed, or shouldnotlink
  9.2223 +	installed=yes
  9.2224 +	shouldnotlink=no
  9.2225 +
  9.2226 +	# Read the .la file
  9.2227 +	case $lib in
  9.2228 +	*/* | *\\*) . $lib ;;
  9.2229 +	*) . ./$lib ;;
  9.2230 +	esac
  9.2231 +
  9.2232 +	case $host in
  9.2233 +	*-*-darwin*)
  9.2234 +	  # Convert "-framework foo" to "foo.framework" in dependency_libs
  9.2235 +	  test -n "$dependency_libs" && dependency_libs=`$echo "X$dependency_libs" | $Xsed -e 's/-framework \([^ $]*\)/\1.framework/g'`
  9.2236 +	  ;;
  9.2237 +	esac
  9.2238 +
  9.2239 +	if test "$linkmode,$pass" = "lib,link" ||
  9.2240 +	   test "$linkmode,$pass" = "prog,scan" ||
  9.2241 +	   { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  9.2242 +	  test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  9.2243 +	  test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  9.2244 +	fi
  9.2245 +
  9.2246 +	if test "$pass" = conv; then
  9.2247 +	  # Only check for convenience libraries
  9.2248 +	  deplibs="$lib $deplibs"
  9.2249 +	  if test -z "$libdir"; then
  9.2250 +	    if test -z "$old_library"; then
  9.2251 +	      $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  9.2252 +	      exit $EXIT_FAILURE
  9.2253 +	    fi
  9.2254 +	    # It is a libtool convenience library, so add in its objects.
  9.2255 +	    convenience="$convenience $ladir/$objdir/$old_library"
  9.2256 +	    old_convenience="$old_convenience $ladir/$objdir/$old_library"
  9.2257 +	    tmp_libs=
  9.2258 +	    for deplib in $dependency_libs; do
  9.2259 +	      deplibs="$deplib $deplibs"
  9.2260 +              if test "X$duplicate_deps" = "Xyes" ; then
  9.2261 +	        case "$tmp_libs " in
  9.2262 +	        *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  9.2263 +	        esac
  9.2264 +              fi
  9.2265 +	      tmp_libs="$tmp_libs $deplib"
  9.2266 +	    done
  9.2267 +	  elif test "$linkmode" != prog && test "$linkmode" != lib; then
  9.2268 +	    $echo "$modename: \`$lib' is not a convenience library" 1>&2
  9.2269 +	    exit $EXIT_FAILURE
  9.2270 +	  fi
  9.2271 +	  continue
  9.2272 +	fi # $pass = conv
  9.2273 +
  9.2274 +
  9.2275 +	# Get the name of the library we link against.
  9.2276 +	linklib=
  9.2277 +	for l in $old_library $library_names; do
  9.2278 +	  linklib="$l"
  9.2279 +	done
  9.2280 +	if test -z "$linklib"; then
  9.2281 +	  $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  9.2282 +	  exit $EXIT_FAILURE
  9.2283 +	fi
  9.2284 +
  9.2285 +	# This library was specified with -dlopen.
  9.2286 +	if test "$pass" = dlopen; then
  9.2287 +	  if test -z "$libdir"; then
  9.2288 +	    $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  9.2289 +	    exit $EXIT_FAILURE
  9.2290 +	  fi
  9.2291 +	  if test -z "$dlname" ||
  9.2292 +	     test "$dlopen_support" != yes ||
  9.2293 +	     test "$build_libtool_libs" = no; then
  9.2294 +	    # If there is no dlname, no dlopen support or we're linking
  9.2295 +	    # statically, we need to preload.  We also need to preload any
  9.2296 +	    # dependent libraries so libltdl's deplib preloader doesn't
  9.2297 +	    # bomb out in the load deplibs phase.
  9.2298 +	    dlprefiles="$dlprefiles $lib $dependency_libs"
  9.2299 +	  else
  9.2300 +	    newdlfiles="$newdlfiles $lib"
  9.2301 +	  fi
  9.2302 +	  continue
  9.2303 +	fi # $pass = dlopen
  9.2304 +
  9.2305 +	# We need an absolute path.
  9.2306 +	case $ladir in
  9.2307 +	[\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  9.2308 +	*)
  9.2309 +	  abs_ladir=`cd "$ladir" && pwd`
  9.2310 +	  if test -z "$abs_ladir"; then
  9.2311 +	    $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  9.2312 +	    $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  9.2313 +	    abs_ladir="$ladir"
  9.2314 +	  fi
  9.2315 +	  ;;
  9.2316 +	esac
  9.2317 +	laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  9.2318 +
  9.2319 +	# Find the relevant object directory and library name.
  9.2320 +	if test "X$installed" = Xyes; then
  9.2321 +	  if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  9.2322 +	    $echo "$modename: warning: library \`$lib' was moved." 1>&2
  9.2323 +	    dir="$ladir"
  9.2324 +	    absdir="$abs_ladir"
  9.2325 +	    libdir="$abs_ladir"
  9.2326 +	  else
  9.2327 +	    dir="$libdir"
  9.2328 +	    absdir="$libdir"
  9.2329 +	  fi
  9.2330 +	else
  9.2331 +	  if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  9.2332 +	    dir="$ladir"
  9.2333 +	    absdir="$abs_ladir"
  9.2334 +	    # Remove this search path later
  9.2335 +	    notinst_path="$notinst_path $abs_ladir"
  9.2336 +	  else
  9.2337 +	    dir="$ladir/$objdir"
  9.2338 +	    absdir="$abs_ladir/$objdir"
  9.2339 +	    # Remove this search path later
  9.2340 +	    notinst_path="$notinst_path $abs_ladir"
  9.2341 +	  fi
  9.2342 +	fi # $installed = yes
  9.2343 +	name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  9.2344 +
  9.2345 +	# This library was specified with -dlpreopen.
  9.2346 +	if test "$pass" = dlpreopen; then
  9.2347 +	  if test -z "$libdir"; then
  9.2348 +	    $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  9.2349 +	    exit $EXIT_FAILURE
  9.2350 +	  fi
  9.2351 +	  # Prefer using a static library (so that no silly _DYNAMIC symbols
  9.2352 +	  # are required to link).
  9.2353 +	  if test -n "$old_library"; then
  9.2354 +	    newdlprefiles="$newdlprefiles $dir/$old_library"
  9.2355 +	  # Otherwise, use the dlname, so that lt_dlopen finds it.
  9.2356 +	  elif test -n "$dlname"; then
  9.2357 +	    newdlprefiles="$newdlprefiles $dir/$dlname"
  9.2358 +	  else
  9.2359 +	    newdlprefiles="$newdlprefiles $dir/$linklib"
  9.2360 +	  fi
  9.2361 +	fi # $pass = dlpreopen
  9.2362 +
  9.2363 +	if test -z "$libdir"; then
  9.2364 +	  # Link the convenience library
  9.2365 +	  if test "$linkmode" = lib; then
  9.2366 +	    deplibs="$dir/$old_library $deplibs"
  9.2367 +	  elif test "$linkmode,$pass" = "prog,link"; then
  9.2368 +	    compile_deplibs="$dir/$old_library $compile_deplibs"
  9.2369 +	    finalize_deplibs="$dir/$old_library $finalize_deplibs"
  9.2370 +	  else
  9.2371 +	    deplibs="$lib $deplibs" # used for prog,scan pass
  9.2372 +	  fi
  9.2373 +	  continue
  9.2374 +	fi
  9.2375 +
  9.2376 +
  9.2377 +	if test "$linkmode" = prog && test "$pass" != link; then
  9.2378 +	  newlib_search_path="$newlib_search_path $ladir"
  9.2379 +	  deplibs="$lib $deplibs"
  9.2380 +
  9.2381 +	  linkalldeplibs=no
  9.2382 +	  if test "$link_all_deplibs" != no || test -z "$library_names" ||
  9.2383 +	     test "$build_libtool_libs" = no; then
  9.2384 +	    linkalldeplibs=yes
  9.2385 +	  fi
  9.2386 +
  9.2387 +	  tmp_libs=
  9.2388 +	  for deplib in $dependency_libs; do
  9.2389 +	    case $deplib in
  9.2390 +	    -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  9.2391 +	    esac
  9.2392 +	    # Need to link against all dependency_libs?
  9.2393 +	    if test "$linkalldeplibs" = yes; then
  9.2394 +	      deplibs="$deplib $deplibs"
  9.2395 +	    else
  9.2396 +	      # Need to hardcode shared library paths
  9.2397 +	      # or/and link against static libraries
  9.2398 +	      newdependency_libs="$deplib $newdependency_libs"
  9.2399 +	    fi
  9.2400 +	    if test "X$duplicate_deps" = "Xyes" ; then
  9.2401 +	      case "$tmp_libs " in
  9.2402 +	      *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  9.2403 +	      esac
  9.2404 +	    fi
  9.2405 +	    tmp_libs="$tmp_libs $deplib"
  9.2406 +	  done # for deplib
  9.2407 +	  continue
  9.2408 +	fi # $linkmode = prog...
  9.2409 +
  9.2410 +	if test "$linkmode,$pass" = "prog,link"; then
  9.2411 +	  if test -n "$library_names" &&
  9.2412 +	     { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  9.2413 +	    # We need to hardcode the library path
  9.2414 +	    if test -n "$shlibpath_var"; then
  9.2415 +	      # Make sure the rpath contains only unique directories.
  9.2416 +	      case "$temp_rpath " in
  9.2417 +	      *" $dir "*) ;;
  9.2418 +	      *" $absdir "*) ;;
  9.2419 +	      *) temp_rpath="$temp_rpath $dir" ;;
  9.2420 +	      esac
  9.2421 +	    fi
  9.2422 +
  9.2423 +	    # Hardcode the library path.
  9.2424 +	    # Skip directories that are in the system default run-time
  9.2425 +	    # search path.
  9.2426 +	    case " $sys_lib_dlsearch_path " in
  9.2427 +	    *" $absdir "*) ;;
  9.2428 +	    *)
  9.2429 +	      case "$compile_rpath " in
  9.2430 +	      *" $absdir "*) ;;
  9.2431 +	      *) compile_rpath="$compile_rpath $absdir"
  9.2432 +	      esac
  9.2433 +	      ;;
  9.2434 +	    esac
  9.2435 +	    case " $sys_lib_dlsearch_path " in
  9.2436 +	    *" $libdir "*) ;;
  9.2437 +	    *)
  9.2438 +	      case "$finalize_rpath " in
  9.2439 +	      *" $libdir "*) ;;
  9.2440 +	      *) finalize_rpath="$finalize_rpath $libdir"
  9.2441 +	      esac
  9.2442 +	      ;;
  9.2443 +	    esac
  9.2444 +	  fi # $linkmode,$pass = prog,link...
  9.2445 +
  9.2446 +	  if test "$alldeplibs" = yes &&
  9.2447 +	     { test "$deplibs_check_method" = pass_all ||
  9.2448 +	       { test "$build_libtool_libs" = yes &&
  9.2449 +		 test -n "$library_names"; }; }; then
  9.2450 +	    # We only need to search for static libraries
  9.2451 +	    continue
  9.2452 +	  fi
  9.2453 +	fi
  9.2454 +
  9.2455 +	link_static=no # Whether the deplib will be linked statically
  9.2456 +	if test -n "$library_names" &&
  9.2457 +	   { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  9.2458 +	  if test "$installed" = no; then
  9.2459 +	    notinst_deplibs="$notinst_deplibs $lib"
  9.2460 +	    need_relink=yes
  9.2461 +	  fi
  9.2462 +	  # This is a shared library
  9.2463 +
  9.2464 +	  # Warn about portability, can't link against -module's on
  9.2465 +	  # some systems (darwin)
  9.2466 +	  if test "$shouldnotlink" = yes && test "$pass" = link ; then
  9.2467 +	    $echo
  9.2468 +	    if test "$linkmode" = prog; then
  9.2469 +	      $echo "*** Warning: Linking the executable $output against the loadable module"
  9.2470 +	    else
  9.2471 +	      $echo "*** Warning: Linking the shared library $output against the loadable module"
  9.2472 +	    fi
  9.2473 +	    $echo "*** $linklib is not portable!"
  9.2474 +	  fi
  9.2475 +	  if test "$linkmode" = lib &&
  9.2476 +	     test "$hardcode_into_libs" = yes; then
  9.2477 +	    # Hardcode the library path.
  9.2478 +	    # Skip directories that are in the system default run-time
  9.2479 +	    # search path.
  9.2480 +	    case " $sys_lib_dlsearch_path " in
  9.2481 +	    *" $absdir "*) ;;
  9.2482 +	    *)
  9.2483 +	      case "$compile_rpath " in
  9.2484 +	      *" $absdir "*) ;;
  9.2485 +	      *) compile_rpath="$compile_rpath $absdir"
  9.2486 +	      esac
  9.2487 +	      ;;
  9.2488 +	    esac
  9.2489 +	    case " $sys_lib_dlsearch_path " in
  9.2490 +	    *" $libdir "*) ;;
  9.2491 +	    *)
  9.2492 +	      case "$finalize_rpath " in
  9.2493 +	      *" $libdir "*) ;;
  9.2494 +	      *) finalize_rpath="$finalize_rpath $libdir"
  9.2495 +	      esac
  9.2496 +	      ;;
  9.2497 +	    esac
  9.2498 +	  fi
  9.2499 +
  9.2500 +	  if test -n "$old_archive_from_expsyms_cmds"; then
  9.2501 +	    # figure out the soname
  9.2502 +	    set dummy $library_names
  9.2503 +	    realname="$2"
  9.2504 +	    shift; shift
  9.2505 +	    libname=`eval \\$echo \"$libname_spec\"`
  9.2506 +	    # use dlname if we got it. it's perfectly good, no?
  9.2507 +	    if test -n "$dlname"; then
  9.2508 +	      soname="$dlname"
  9.2509 +	    elif test -n "$soname_spec"; then
  9.2510 +	      # bleh windows
  9.2511 +	      case $host in
  9.2512 +	      *cygwin* | mingw*)
  9.2513 +		major=`expr $current - $age`
  9.2514 +		versuffix="-$major"
  9.2515 +		;;
  9.2516 +	      esac
  9.2517 +	      eval soname=\"$soname_spec\"
  9.2518 +	    else
  9.2519 +	      soname="$realname"
  9.2520 +	    fi
  9.2521 +
  9.2522 +	    # Make a new name for the extract_expsyms_cmds to use
  9.2523 +	    soroot="$soname"
  9.2524 +	    soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  9.2525 +	    newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  9.2526 +
  9.2527 +	    # If the library has no export list, then create one now
  9.2528 +	    if test -f "$output_objdir/$soname-def"; then :
  9.2529 +	    else
  9.2530 +	      $show "extracting exported symbol list from \`$soname'"
  9.2531 +	      save_ifs="$IFS"; IFS='~'
  9.2532 +	      cmds=$extract_expsyms_cmds
  9.2533 +	      for cmd in $cmds; do
  9.2534 +		IFS="$save_ifs"
  9.2535 +		eval cmd=\"$cmd\"
  9.2536 +		$show "$cmd"
  9.2537 +		$run eval "$cmd" || exit $?
  9.2538 +	      done
  9.2539 +	      IFS="$save_ifs"
  9.2540 +	    fi
  9.2541 +
  9.2542 +	    # Create $newlib
  9.2543 +	    if test -f "$output_objdir/$newlib"; then :; else
  9.2544 +	      $show "generating import library for \`$soname'"
  9.2545 +	      save_ifs="$IFS"; IFS='~'
  9.2546 +	      cmds=$old_archive_from_expsyms_cmds
  9.2547 +	      for cmd in $cmds; do
  9.2548 +		IFS="$save_ifs"
  9.2549 +		eval cmd=\"$cmd\"
  9.2550 +		$show "$cmd"
  9.2551 +		$run eval "$cmd" || exit $?
  9.2552 +	      done
  9.2553 +	      IFS="$save_ifs"
  9.2554 +	    fi
  9.2555 +	    # make sure the library variables are pointing to the new library
  9.2556 +	    dir=$output_objdir
  9.2557 +	    linklib=$newlib
  9.2558 +	  fi # test -n "$old_archive_from_expsyms_cmds"
  9.2559 +
  9.2560 +	  if test "$linkmode" = prog || test "$mode" != relink; then
  9.2561 +	    add_shlibpath=
  9.2562 +	    add_dir=
  9.2563 +	    add=
  9.2564 +	    lib_linked=yes
  9.2565 +	    case $hardcode_action in
  9.2566 +	    immediate | unsupported)
  9.2567 +	      if test "$hardcode_direct" = no; then
  9.2568 +		add="$dir/$linklib"
  9.2569 +		case $host in
  9.2570 +		  *-*-sco3.2v5* ) add_dir="-L$dir" ;;
  9.2571 +		  *-*-darwin* )
  9.2572 +		    # if the lib is a module then we can not link against
  9.2573 +		    # it, someone is ignoring the new warnings I added
  9.2574 +		    if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
  9.2575 +		      $echo "** Warning, lib $linklib is a module, not a shared library"
  9.2576 +		      if test -z "$old_library" ; then
  9.2577 +		        $echo
  9.2578 +		        $echo "** And there doesn't seem to be a static archive available"
  9.2579 +		        $echo "** The link will probably fail, sorry"
  9.2580 +		      else
  9.2581 +		        add="$dir/$old_library"
  9.2582 +		      fi
  9.2583 +		    fi
  9.2584 +		esac
  9.2585 +	      elif test "$hardcode_minus_L" = no; then
  9.2586 +		case $host in
  9.2587 +		*-*-sunos*) add_shlibpath="$dir" ;;
  9.2588 +		esac
  9.2589 +		add_dir="-L$dir"
  9.2590 +		add="-l$name"
  9.2591 +	      elif test "$hardcode_shlibpath_var" = no; then
  9.2592 +		add_shlibpath="$dir"
  9.2593 +		add="-l$name"
  9.2594 +	      else
  9.2595 +		lib_linked=no
  9.2596 +	      fi
  9.2597 +	      ;;
  9.2598 +	    relink)
  9.2599 +	      if test "$hardcode_direct" = yes; then
  9.2600 +		add="$dir/$linklib"
  9.2601 +	      elif test "$hardcode_minus_L" = yes; then
  9.2602 +		add_dir="-L$dir"
  9.2603 +		# Try looking first in the location we're being installed to.
  9.2604 +		if test -n "$inst_prefix_dir"; then
  9.2605 +		  case "$libdir" in
  9.2606 +		    [\\/]*)
  9.2607 +		      add_dir="$add_dir -L$inst_prefix_dir$libdir"
  9.2608 +		      ;;
  9.2609 +		  esac
  9.2610 +		fi
  9.2611 +		add="-l$name"
  9.2612 +	      elif test "$hardcode_shlibpath_var" = yes; then
  9.2613 +		add_shlibpath="$dir"
  9.2614 +		add="-l$name"
  9.2615 +	      else
  9.2616 +		lib_linked=no
  9.2617 +	      fi
  9.2618 +	      ;;
  9.2619 +	    *) lib_linked=no ;;
  9.2620 +	    esac
  9.2621 +
  9.2622 +	    if test "$lib_linked" != yes; then
  9.2623 +	      $echo "$modename: configuration error: unsupported hardcode properties"
  9.2624 +	      exit $EXIT_FAILURE
  9.2625 +	    fi
  9.2626 +
  9.2627 +	    if test -n "$add_shlibpath"; then
  9.2628 +	      case :$compile_shlibpath: in
  9.2629 +	      *":$add_shlibpath:"*) ;;
  9.2630 +	      *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  9.2631 +	      esac
  9.2632 +	    fi
  9.2633 +	    if test "$linkmode" = prog; then
  9.2634 +	      test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  9.2635 +	      test -n "$add" && compile_deplibs="$add $compile_deplibs"
  9.2636 +	    else
  9.2637 +	      test -n "$add_dir" && deplibs="$add_dir $deplibs"
  9.2638 +	      test -n "$add" && deplibs="$add $deplibs"
  9.2639 +	      if test "$hardcode_direct" != yes && \
  9.2640 +		 test "$hardcode_minus_L" != yes && \
  9.2641 +		 test "$hardcode_shlibpath_var" = yes; then
  9.2642 +		case :$finalize_shlibpath: in
  9.2643 +		*":$libdir:"*) ;;
  9.2644 +		*) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  9.2645 +		esac
  9.2646 +	      fi
  9.2647 +	    fi
  9.2648 +	  fi
  9.2649 +
  9.2650 +	  if test "$linkmode" = prog || test "$mode" = relink; then
  9.2651 +	    add_shlibpath=
  9.2652 +	    add_dir=
  9.2653 +	    add=
  9.2654 +	    # Finalize command for both is simple: just hardcode it.
  9.2655 +	    if test "$hardcode_direct" = yes; then
  9.2656 +	      add="$libdir/$linklib"
  9.2657 +	    elif test "$hardcode_minus_L" = yes; then
  9.2658 +	      add_dir="-L$libdir"
  9.2659 +	      add="-l$name"
  9.2660 +	    elif test "$hardcode_shlibpath_var" = yes; then
  9.2661 +	      case :$finalize_shlibpath: in
  9.2662 +	      *":$libdir:"*) ;;
  9.2663 +	      *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  9.2664 +	      esac
  9.2665 +	      add="-l$name"
  9.2666 +	    elif test "$hardcode_automatic" = yes; then
  9.2667 +	      if test -n "$inst_prefix_dir" &&
  9.2668 +		 test -f "$inst_prefix_dir$libdir/$linklib" ; then
  9.2669 +	        add="$inst_prefix_dir$libdir/$linklib"
  9.2670 +	      else
  9.2671 +	        add="$libdir/$linklib"
  9.2672 +	      fi
  9.2673 +	    else
  9.2674 +	      # We cannot seem to hardcode it, guess we'll fake it.
  9.2675 +	      add_dir="-L$libdir"
  9.2676 +	      # Try looking first in the location we're being installed to.
  9.2677 +	      if test -n "$inst_prefix_dir"; then
  9.2678 +		case "$libdir" in
  9.2679 +		  [\\/]*)
  9.2680 +		    add_dir="$add_dir -L$inst_prefix_dir$libdir"
  9.2681 +		    ;;
  9.2682 +		esac
  9.2683 +	      fi
  9.2684 +	      add="-l$name"
  9.2685 +	    fi
  9.2686 +
  9.2687 +	    if test "$linkmode" = prog; then
  9.2688 +	      test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  9.2689 +	      test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  9.2690 +	    else
  9.2691 +	      test -n "$add_dir" && deplibs="$add_dir $deplibs"
  9.2692 +	      test -n "$add" && deplibs="$add $deplibs"
  9.2693 +	    fi
  9.2694 +	  fi
  9.2695 +	elif test "$linkmode" = prog; then
  9.2696 +	  # Here we assume that one of hardcode_direct or hardcode_minus_L
  9.2697 +	  # is not unsupported.  This is valid on all known static and
  9.2698 +	  # shared platforms.
  9.2699 +	  if test "$hardcode_direct" != unsupported; then
  9.2700 +	    test -n "$old_library" && linklib="$old_library"
  9.2701 +	    compile_deplibs="$dir/$linklib $compile_deplibs"
  9.2702 +	    finalize_deplibs="$dir/$linklib $finalize_deplibs"
  9.2703 +	  else
  9.2704 +	    compile_deplibs="-l$name -L$dir $compile_deplibs"
  9.2705 +	    finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  9.2706 +	  fi
  9.2707 +	elif test "$build_libtool_libs" = yes; then
  9.2708 +	  # Not a shared library
  9.2709 +	  if test "$deplibs_check_method" != pass_all; then
  9.2710 +	    # We're trying link a shared library against a static one
  9.2711 +	    # but the system doesn't support it.
  9.2712 +
  9.2713 +	    # Just print a warning and add the library to dependency_libs so
  9.2714 +	    # that the program can be linked against the static library.
  9.2715 +	    $echo
  9.2716 +	    $echo "*** Warning: This system can not link to static lib archive $lib."
  9.2717 +	    $echo "*** I have the capability to make that library automatically link in when"
  9.2718 +	    $echo "*** you link to this library.  But I can only do this if you have a"
  9.2719 +	    $echo "*** shared version of the library, which you do not appear to have."
  9.2720 +	    if test "$module" = yes; then
  9.2721 +	      $echo "*** But as you try to build a module library, libtool will still create "
  9.2722 +	      $echo "*** a static module, that should work as long as the dlopening application"
  9.2723 +	      $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  9.2724 +	      if test -z "$global_symbol_pipe"; then
  9.2725 +		$echo
  9.2726 +		$echo "*** However, this would only work if libtool was able to extract symbol"
  9.2727 +		$echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  9.2728 +		$echo "*** not find such a program.  So, this module is probably useless."
  9.2729 +		$echo "*** \`nm' from GNU binutils and a full rebuild may help."
  9.2730 +	      fi
  9.2731 +	      if test "$build_old_libs" = no; then
  9.2732 +		build_libtool_libs=module
  9.2733 +		build_old_libs=yes
  9.2734 +	      else
  9.2735 +		build_libtool_libs=no
  9.2736 +	      fi
  9.2737 +	    fi
  9.2738 +	  else
  9.2739 +	    convenience="$convenience $dir/$old_library"
  9.2740 +	    old_convenience="$old_convenience $dir/$old_library"
  9.2741 +	    deplibs="$dir/$old_library $deplibs"
  9.2742 +	    link_static=yes
  9.2743 +	  fi
  9.2744 +	fi # link shared/static library?
  9.2745 +
  9.2746 +	if test "$linkmode" = lib; then
  9.2747 +	  if test -n "$dependency_libs" &&
  9.2748 +	     { test "$hardcode_into_libs" != yes ||
  9.2749 +	       test "$build_old_libs" = yes ||
  9.2750 +	       test "$link_static" = yes; }; then