Renamed documentation files to .txt and converted them to DOS line endings so they would open properly on all systems.
authorSam Lantinga <slouken@libsdl.org>
Sun, 26 May 2013 11:06:17 -0700
changeset 72222435b221d77d
parent 7221 122c97a210bc
child 7223 76fa20889de8
Renamed documentation files to .txt and converted them to DOS line endings so they would open properly on all systems.
Updated Makefile.in so "make dist" includes everything necessary for release.
.DISABLED-hgeol
.indent.pro
BUGS
BUGS.txt
COPYING
COPYING.txt
CREDITS
CREDITS.txt
INSTALL
INSTALL.txt
Makefile.in
README
README-SDL.txt
README-android.txt
README-cmake.txt
README-directfb.txt
README-gesture.txt
README-hg.txt
README-ios.txt
README-macosx.txt
README-pandora.txt
README-platforms.txt
README-porting.txt
README-psp.txt
README-touch.txt
README-wince.txt
README.DirectFB
README.HG
README.MacOSX
README.Platforms
README.Porting
README.WinCE
README.android
README.cmake
README.gesture
README.iOS
README.pandora
README.psp
README.touch
README.txt
SDL2.spec.in
TODO
TODO.txt
aclocal.m4
autogen.sh
configure
configure.in
debian/docs
     1.1 --- a/.DISABLED-hgeol	Sun May 26 12:30:52 2013 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,57 +0,0 @@
     1.4 -[patterns]
     1.5 -.hgeol = native
     1.6 -.hgignore = native
     1.7 -BUGS = native
     1.8 -CREDITS = native
     1.9 -INSTALL = native
    1.10 -NOTES = native
    1.11 -TODO = native
    1.12 -WhatsNew = native
    1.13 -**COPYING = native
    1.14 -**README = native
    1.15 -**doxyfile = native
    1.16 -**Doxyfile = native
    1.17 -**install-sh = LF
    1.18 -**mkinstalldirs = LF
    1.19 -**Makefile = LF
    1.20 -**Makefile.* = LF
    1.21 -test/automated/rwops/read = LF
    1.22 -**README.* = native
    1.23 -**.S = native
    1.24 -**.bmp = BIN
    1.25 -**.c = native
    1.26 -**.cc = native
    1.27 -**.cpp = native
    1.28 -**.csh = LF
    1.29 -**.dat = BIN
    1.30 -**.gdbinit = LF
    1.31 -build-scripts/config.guess = LF
    1.32 -**.h = native
    1.33 -**.htm = native
    1.34 -**.html = native
    1.35 -**.icns = BIN
    1.36 -**.in = LF
    1.37 -**.java = native
    1.38 -**.m = native
    1.39 -**.m4 = native
    1.40 -**.mk = LF
    1.41 -**.nib = BIN
    1.42 -**.pch = BIN
    1.43 -**.pdf = BIN
    1.44 -**.pl = native
    1.45 -**.plist = native
    1.46 -**.png = BIN
    1.47 -.indent.pro = LF
    1.48 -**.rc = native
    1.49 -**.rtf = BIN
    1.50 -**.sh = LF
    1.51 -**.sln = native
    1.52 -**.txt = native
    1.53 -**.vcp = native
    1.54 -**.vcproj = native
    1.55 -**.vcw = native
    1.56 -**.vcxproj = native
    1.57 -**.wav = BIN
    1.58 -**.xbm = BIN
    1.59 -**.xml = native
    1.60 -**.zip = BIN
     2.1 --- a/.indent.pro	Sun May 26 12:30:52 2013 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,1 +0,0 @@
     2.4 --i4 -nut -nsc -br -ce -cdw -npcs
     3.1 --- a/BUGS	Sun May 26 12:30:52 2013 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,18 +0,0 @@
     3.4 -
     3.5 -Bugs are now managed in the SDL bug tracker, here:
     3.6 -
     3.7 -    http://bugzilla.libsdl.org/
     3.8 -
     3.9 -You may report bugs there, and search to see if a given issue has already
    3.10 - been reported, discussed, and maybe even fixed.
    3.11 -
    3.12 -
    3.13 -
    3.14 -You may also find help at the SDL mailing list. Subscription information:
    3.15 -
    3.16 -    http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
    3.17 -
    3.18 -Bug reports are welcome here, but we really appreciate if you use Bugzilla, as
    3.19 - bugs discussed on the mailing list may be forgotten or missed.
    3.20 -
    3.21 -
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/BUGS.txt	Sun May 26 11:06:17 2013 -0700
     4.3 @@ -0,0 +1,17 @@
     4.4 +
     4.5 +Bugs are now managed in the SDL bug tracker, here:
     4.6 +
     4.7 +    http://bugzilla.libsdl.org/
     4.8 +
     4.9 +You may report bugs there, and search to see if a given issue has already
    4.10 + been reported, discussed, and maybe even fixed.
    4.11 +
    4.12 +
    4.13 +
    4.14 +You may also find help at the SDL mailing list. Subscription information:
    4.15 +
    4.16 +    http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
    4.17 +
    4.18 +Bug reports are welcome here, but we really appreciate if you use Bugzilla, as
    4.19 + bugs discussed on the mailing list may be forgotten or missed.
    4.20 +
     5.1 --- a/COPYING	Sun May 26 12:30:52 2013 +0200
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,20 +0,0 @@
     5.4 -
     5.5 -Simple DirectMedia Layer
     5.6 -Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
     5.7 -  
     5.8 -This software is provided 'as-is', without any express or implied
     5.9 -warranty.  In no event will the authors be held liable for any damages
    5.10 -arising from the use of this software.
    5.11 -
    5.12 -Permission is granted to anyone to use this software for any purpose,
    5.13 -including commercial applications, and to alter it and redistribute it
    5.14 -freely, subject to the following restrictions:
    5.15 -  
    5.16 -1. The origin of this software must not be misrepresented; you must not
    5.17 -   claim that you wrote the original software. If you use this software
    5.18 -   in a product, an acknowledgment in the product documentation would be
    5.19 -   appreciated but is not required. 
    5.20 -2. Altered source versions must be plainly marked as such, and must not be
    5.21 -   misrepresented as being the original software.
    5.22 -3. This notice may not be removed or altered from any source distribution.
    5.23 -
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/COPYING.txt	Sun May 26 11:06:17 2013 -0700
     6.3 @@ -0,0 +1,20 @@
     6.4 +
     6.5 +Simple DirectMedia Layer
     6.6 +Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
     6.7 +  
     6.8 +This software is provided 'as-is', without any express or implied
     6.9 +warranty.  In no event will the authors be held liable for any damages
    6.10 +arising from the use of this software.
    6.11 +
    6.12 +Permission is granted to anyone to use this software for any purpose,
    6.13 +including commercial applications, and to alter it and redistribute it
    6.14 +freely, subject to the following restrictions:
    6.15 +  
    6.16 +1. The origin of this software must not be misrepresented; you must not
    6.17 +   claim that you wrote the original software. If you use this software
    6.18 +   in a product, an acknowledgment in the product documentation would be
    6.19 +   appreciated but is not required. 
    6.20 +2. Altered source versions must be plainly marked as such, and must not be
    6.21 +   misrepresented as being the original software.
    6.22 +3. This notice may not be removed or altered from any source distribution.
    6.23 +
     7.1 --- a/CREDITS	Sun May 26 12:30:52 2013 +0200
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,70 +0,0 @@
     7.4 -
     7.5 -Simple DirectMedia Layer CREDITS
     7.6 -Thanks to everyone who made this possible, including:
     7.7 -
     7.8 -* Cliff Matthews, for giving me a reason to start this project. :)
     7.9 - -- Executor rocks!  *grin*
    7.10 -
    7.11 -* The Linux Fund, C Magazine, Educational Technology Resources Inc.,
    7.12 -  Gareth Noyce, Jesse Pavel, Keith Kitchin, Jeremy Horvath, Thomas Nicholson,
    7.13 -  Hans-Peter Gygax, the Eternal Lands Development Team, Lars Brubaker,
    7.14 -  and Phoenix Kokido for financial contributions
    7.15 -
    7.16 -* Edgar "bobbens" Simo for his force feedback API development during the
    7.17 -  Google Summer of Code 2008
    7.18 -
    7.19 -* Aaron Wishnick for his work on audio resampling and pitch shifting during
    7.20 -  the Google Summer of Code 2008
    7.21 -
    7.22 -* Holmes Futrell for port of SDL to the iPhone and iPod Touch during the
    7.23 -  Google Summer of Code 2008
    7.24 -
    7.25 -* Szymon "Wilku" Wilczek for adding support for multiple mice and tablets
    7.26 -  during the Google Summer of Code 2008
    7.27 -
    7.28 -* Marty Leisner, Andrew, Will, Edgar Simo, Donny Viszneki, Andrea Mazzoleni,
    7.29 -  Dmytro Bogovych, and Couriersud for helping find SDL 1.3 bugs in the great
    7.30 -  SDL Bug Hunt of January 2009!
    7.31 -
    7.32 -* Donny Viszneki for helping fix SDL 1.3 bugs in the great SDL Bug Hunt of
    7.33 -  January 2009!
    7.34 -
    7.35 -* Luke Benstead for OpenGL 3.0 support
    7.36 -
    7.37 -* Gaëtan de Menten for writing the PHP and SQL behind the SDL website
    7.38 -
    7.39 -* Tim Jones for the new look of the SDL website
    7.40 -
    7.41 -* Ryan Gordon for helping everybody out and keeping the dream alive. :)
    7.42 -
    7.43 -* Mattias Engdegård, for help with the Solaris port and lots of other help
    7.44 -
    7.45 -* Eric Wing, Max Horn, and Darrell Walisser for unflagging work on the Mac OS X port
    7.46 -
    7.47 -* David Carré, for the Pandora port
    7.48 -
    7.49 -* Couriersud for the DirectFB driver
    7.50 -
    7.51 -* Jon Atkins for SDL_image, SDL_mixer and SDL_net documentation
    7.52 -
    7.53 -* Arne Claus, for the 2004 winning SDL logo,
    7.54 -  and Shandy Brown, Jac, Alex Lyman, Mikkel Gjoel, #Guy, Jonas Hartmann,
    7.55 -  Daniel Liljeberg,  Ronald Sowa, DocD, Pekka Jaervinen, Patrick Avella,
    7.56 -  Erkki Kontilla, Levon Gavalian, Hal Emerich, David Wiktorsson,
    7.57 -  S. Schury and F. Hufsky, Ciska de Ruyver, Shredweat, Tyler Montbriand,
    7.58 -  Martin Andersson, Merlyn Wysard, Fernando Ibanez, David Miller,
    7.59 -  Andre Bommele, lovesby.com, Francisco Camenforte Torres, and David Igreja
    7.60 -  for other logo entries.
    7.61 -
    7.62 -* Bob Pendleton and David Olofson for being long time contributors to
    7.63 -  the SDL mailing list.
    7.64 -
    7.65 -* Everybody at Loki Software, Inc. for their great contributions!
    7.66 -
    7.67 - And a big hand to everyone else who gave me appreciation, advice,
    7.68 - and suggestions, especially the good folks on the SDL mailing list.
    7.69 -
    7.70 -THANKS! :)
    7.71 -
    7.72 -  -- Sam Lantinga			<slouken@libsdl.org>
    7.73 -
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/CREDITS.txt	Sun May 26 11:06:17 2013 -0700
     8.3 @@ -0,0 +1,33 @@
     8.4 +
     8.5 +Simple DirectMedia Layer CREDITS
     8.6 +Thanks to everyone who made this possible, including:
     8.7 +
     8.8 +* Cliff Matthews, for giving me a reason to start this project. :)
     8.9 + -- Executor rocks!  *grin*
    8.10 +
    8.11 +* The Linux Fund, C Magazine, Educational Technology Resources Inc.,
    8.12 +  Gareth Noyce, Jesse Pavel, Keith Kitchin, Jeremy Horvath, Thomas Nicholson,
    8.13 +  Hans-Peter Gygax, the Eternal Lands Development Team, Lars Brubaker,
    8.14 +  and Phoenix Kokido for financial contributions
    8.15 +
    8.16 +* Edgar "bobbens" Simo for his force feedback API development during the
    8.17 +  Google Summer of Code 2008
    8.18 +
    8.19 +* Aaron Wishnick for his work on audio resampling and pitch shifting during
    8.20 +  the Google Summer of Code 2008
    8.21 +
    8.22 +* Holmes Futrell for port of SDL to the iPhone and iPod Touch during the
    8.23 +  Google Summer of Code 2008
    8.24 +
    8.25 +* Szymon "Wilku" Wilczek for adding support for multiple mice and tablets
    8.26 +  during the Google Summer of Code 2008
    8.27 +
    8.28 +* Marty Leisner, Andrew, Will, Edgar Simo, Donny Viszneki, Andrea Mazzoleni,
    8.29 +  Dmytro Bogovych, and Couriersud for helping find SDL 1.3 bugs in the great
    8.30 +  SDL Bug Hunt of January 2009!
    8.31 +
    8.32 +* Donny Viszneki for helping fix SDL 1.3 bugs in the great SDL Bug Hunt of
    8.33 +  January 2009!
    8.34 +
    8.35 +* Luke Benstead for OpenGL 3.0 support
    8.36 +
     9.1 --- a/INSTALL	Sun May 26 12:30:52 2013 +0200
     9.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.3 @@ -1,27 +0,0 @@
     9.4 -
     9.5 -To compile and install SDL:
     9.6 -
     9.7 -    0.  If you have downloaded this from the website, skip to the next step.
     9.8 -        If you have checked this out from subversion, you'll need to run
     9.9 -        ./autogen.sh to build the configure script. 
    9.10 -
    9.11 -    1.  Run './configure; make; make install'
    9.12 -
    9.13 -        If you are compiling for Windows using gcc, read the FAQ at:
    9.14 -        http://www.libsdl.org/faq.php?action=listentries&category=4#42
    9.15 -
    9.16 -        If you are compiling using Visual C++ on Win32, you should read
    9.17 -        the file VisualC.html
    9.18 -
    9.19 -    2.  Look at the example programs in ./test, and check out the online
    9.20 -        documentation at http://wiki.libsdl.org/
    9.21 -
    9.22 -    3.  Join the SDL developer mailing list by sending E-mail to
    9.23 -    	sdl-request@libsdl.org
    9.24 -        and put "subscribe" in the subject of the message.
    9.25 -
    9.26 -        Or alternatively you can use the web interface:
    9.27 -            http://www.libsdl.org/mailing-list.php
    9.28 -
    9.29 -That's it!
    9.30 -Sam Lantinga <slouken@libsdl.org>
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/INSTALL.txt	Sun May 26 11:06:17 2013 -0700
    10.3 @@ -0,0 +1,27 @@
    10.4 +
    10.5 +To compile and install SDL:
    10.6 +
    10.7 +    0.  If you have downloaded this from the website, skip to the next step.
    10.8 +        If you have checked this out from subversion, you'll need to run
    10.9 +        ./autogen.sh to build the configure script. 
   10.10 +
   10.11 +    1.  Run './configure; make; make install'
   10.12 +
   10.13 +        If you are compiling for Windows using gcc, read the FAQ at:
   10.14 +        http://www.libsdl.org/faq.php?action=listentries&category=4#42
   10.15 +
   10.16 +        If you are compiling using Visual C++ on Win32, you should read
   10.17 +        the file VisualC.html
   10.18 +
   10.19 +    2.  Look at the example programs in ./test, and check out the online
   10.20 +        documentation at http://wiki.libsdl.org/
   10.21 +
   10.22 +    3.  Join the SDL developer mailing list by sending E-mail to
   10.23 +    	sdl-request@libsdl.org
   10.24 +        and put "subscribe" in the subject of the message.
   10.25 +
   10.26 +        Or alternatively you can use the web interface:
   10.27 +            http://www.libsdl.org/mailing-list.php
   10.28 +
   10.29 +That's it!
   10.30 +Sam Lantinga <slouken@libsdl.org>
    11.1 --- a/Makefile.in	Sun May 26 12:30:52 2013 +0200
    11.2 +++ b/Makefile.in	Sun May 26 11:06:17 2013 -0700
    11.3 @@ -39,7 +39,7 @@
    11.4  SDLTEST_TARGET = libSDL2_test.a
    11.5  SDLTEST_OBJECTS = @SDLTEST_OBJECTS@
    11.6  
    11.7 -SRC_DIST = acinclude Android.mk autogen.sh BUGS build-scripts configure configure.in COPYING CREDITS debian include INSTALL Makefile.minimal Makefile.in README* sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in src test TODO VisualC.html VisualC WhatsNew Xcode Xcode-iOS
    11.8 +SRC_DIST = *.txt acinclude Android.mk autogen.sh android-project build-scripts cmake configure configure.in debian include Makefile.* sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in src test VisualC.html VisualC WhatsNew Xcode Xcode-iOS
    11.9  GEN_DIST = SDL2.spec
   11.10  
   11.11  HDRS = \
   11.12 @@ -47,7 +47,7 @@
   11.13  	SDL_assert.h \
   11.14  	SDL_atomic.h \
   11.15  	SDL_audio.h \
   11.16 -        SDL_bits.h \
   11.17 +    SDL_bits.h \
   11.18  	SDL_blendmode.h \
   11.19  	SDL_clipboard.h \
   11.20  	SDL_cpuinfo.h \
   11.21 @@ -216,26 +216,3 @@
   11.22  
   11.23  rpm: $(distfile)
   11.24  	rpmbuild -ta $?
   11.25 -
   11.26 -# Run indent on the source to standardize coding style
   11.27 -indent:
   11.28 -	@echo "Running indent... modified files:"
   11.29 -	@cd $(srcdir) && \
   11.30 -	find . \( \
   11.31 -	    -name '*.h' -o \
   11.32 -	    -name '*.c' -o \
   11.33 -	    -name '*.cc' \) \
   11.34 -	    -print | fgrep -v ./Xcode | \
   11.35 -	while read file; do \
   11.36 -	    indent "$$file" -o "$$file.indent"; \
   11.37 -	    if cmp "$$file" "$$file.indent" >/dev/null; then \
   11.38 -	        rm -f "$$file.indent"; \
   11.39 -	    else \
   11.40 -	        echo "$$file"; \
   11.41 -	        mv -f "$$file.indent" "$$file"; \
   11.42 -	    fi; \
   11.43 -	done
   11.44 -
   11.45 -# Run indent and then commit modified files
   11.46 -commit: indent
   11.47 -	hg commit
    12.1 --- a/README	Sun May 26 12:30:52 2013 +0200
    12.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.3 @@ -1,39 +0,0 @@
    12.4 -
    12.5 -                         Simple DirectMedia Layer
    12.6 -
    12.7 -                                  (SDL)
    12.8 -
    12.9 -                                Version 2.0
   12.10 -
   12.11 ----
   12.12 -http://www.libsdl.org/
   12.13 -
   12.14 -This is the Simple DirectMedia Layer, a general API that provides low
   12.15 -level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,
   12.16 -and 2D framebuffer across multiple platforms.
   12.17 -
   12.18 -The current version supports Windows, Mac OS X, Linux, FreeBSD,
   12.19 -NetBSD, OpenBSD, BSD/OS, Solaris, iOS, and Android. The code contains
   12.20 -support for other operating systems but those are not officially supported.
   12.21 -
   12.22 -SDL is written in C, but works with C++ natively, and has bindings to
   12.23 -several other languages, including Ada, C#, Eiffel, Erlang, Euphoria,
   12.24 -Go, Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP,
   12.25 -Pike, Pliant, Python, Ruby, and Smalltalk.
   12.26 -
   12.27 -This library is distributed under the zlib license, which can be found
   12.28 -in the file "COPYING".
   12.29 -
   12.30 -The best way to learn how to use SDL is to check out the header files in
   12.31 -the "include" subdirectory and the programs in the "test" subdirectory.
   12.32 -The header files and test programs are well commented and always up to date.
   12.33 -More documentation and FAQs are available online at:
   12.34 -	http://wiki.libsdl.org/
   12.35 -
   12.36 -If you need help with the library, or just want to discuss SDL related
   12.37 -issues, you can join the developers mailing list:
   12.38 -	http://www.libsdl.org/mailing-list.php
   12.39 -
   12.40 -Enjoy!
   12.41 -	Sam Lantinga				(slouken@libsdl.org)
   12.42 -
    13.1 --- a/README-SDL.txt	Sun May 26 12:30:52 2013 +0200
    13.2 +++ b/README-SDL.txt	Sun May 26 11:06:17 2013 -0700
    13.3 @@ -1,13 +1,13 @@
    13.4 -
    13.5 -Please distribute this file with the SDL runtime environment:
    13.6 -
    13.7 -The Simple DirectMedia Layer (SDL for short) is a cross-platform library
    13.8 -designed to make it easy to write multi-media software, such as games and
    13.9 -emulators.
   13.10 -
   13.11 -The Simple DirectMedia Layer library source code is available from:
   13.12 -http://www.libsdl.org/
   13.13 -
   13.14 -This library is distributed under the terms of the zlib license:
   13.15 -http://www.zlib.net/zlib_license.html
   13.16 -
   13.17 +
   13.18 +Please distribute this file with the SDL runtime environment:
   13.19 +
   13.20 +The Simple DirectMedia Layer (SDL for short) is a cross-platform library
   13.21 +designed to make it easy to write multi-media software, such as games and
   13.22 +emulators.
   13.23 +
   13.24 +The Simple DirectMedia Layer library source code is available from:
   13.25 +http://www.libsdl.org/
   13.26 +
   13.27 +This library is distributed under the terms of the zlib license:
   13.28 +http://www.zlib.net/zlib_license.html
   13.29 +
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/README-android.txt	Sun May 26 11:06:17 2013 -0700
    14.3 @@ -0,0 +1,384 @@
    14.4 +================================================================================
    14.5 +Simple DirectMedia Layer for Android
    14.6 +================================================================================
    14.7 +
    14.8 +Requirements:
    14.9 +
   14.10 +Android SDK (version 10 or later)
   14.11 +http://developer.android.com/sdk/index.html
   14.12 +
   14.13 +Android NDK r7 or later
   14.14 +http://developer.android.com/sdk/ndk/index.html
   14.15 +
   14.16 +inimum API level supported by SDL: 10 (Android 2.3.3)
   14.17 +
   14.18 +================================================================================
   14.19 + How the port works
   14.20 +================================================================================
   14.21 +
   14.22 +- Android applications are Java-based, optionally with parts written in C
   14.23 +- As SDL apps are C-based, we use a small Java shim that uses JNI to talk to 
   14.24 +the SDL library
   14.25 +- This means that your application C code must be placed inside an Android 
   14.26 +Java project, along with some C support code that communicates with Java
   14.27 +- This eventually produces a standard Android .apk package
   14.28 +
   14.29 +The Android Java code implements an "Activity" and can be found in:
   14.30 +android-project/src/org/libsdl/app/SDLActivity.java
   14.31 +
   14.32 +The Java code loads your game code, the SDL shared library, and
   14.33 +dispatches to native functions implemented in the SDL library:
   14.34 +src/SDL_android.cpp
   14.35 +
   14.36 +Your project must include some glue code that starts your main() routine:
   14.37 +src/main/android/SDL_android_main.cpp
   14.38 +
   14.39 +
   14.40 +================================================================================
   14.41 + Building an app
   14.42 +================================================================================
   14.43 +
   14.44 +Instructions:
   14.45 +1. Copy the android-project directory wherever you want to keep your projects
   14.46 +   and rename it to the name of your project.
   14.47 +2. Move or symlink this SDL directory into the <project>/jni directory
   14.48 +3. Edit <project>/jni/src/Android.mk to include your source files
   14.49 +4. Run 'ndk-build' (a script provided by the NDK). This compiles the C source
   14.50 +
   14.51 +If you want to use the Eclipse IDE, skip to the Eclipse section below.
   14.52 +
   14.53 +5. Create <project>/local.properties and use that to point to the Android SDK directory, by writing a line with the following form:
   14.54 +sdk.dir=PATH_TO_ANDROID_SDK
   14.55 +6. Run 'ant debug' in android/project. This compiles the .java and eventually 
   14.56 +   creates a .apk with the native code embedded
   14.57 +7. 'ant debug install' will push the apk to the device or emulator (if connected)
   14.58 +
   14.59 +Here's an explanation of the files in the Android project, so you can customize them:
   14.60 +
   14.61 +android-project/
   14.62 +	AndroidManifest.xml	- package manifest. Among others, it contains the class name
   14.63 +				  of the main Activity and the package name of the application.
   14.64 +	build.properties	- empty
   14.65 +	build.xml		- build description file, used by ant. The actual application name
   14.66 +				  is specified here.
   14.67 +	default.properties	- holds the target ABI for the application, android-10 and up
   14.68 +	project.properties	- holds the target ABI for the application, android-10 and up
   14.69 +	local.properties	- holds the SDK path, you should change this to the path to your SDK
   14.70 +	jni/			- directory holding native code
   14.71 +	jni/Android.mk		- Android makefile that can call recursively the Android.mk files
   14.72 +				  in all subdirectories
   14.73 +	jni/SDL/		- (symlink to) directory holding the SDL library files
   14.74 +	jni/SDL/Android.mk	- Android makefile for creating the SDL shared library
   14.75 +	jni/src/		- directory holding your C/C++ source
   14.76 +	jni/src/Android.mk	- Android makefile that you should customize to include your 
   14.77 +                                  source code and any library references
   14.78 +	res/			- directory holding resources for your application
   14.79 +	res/drawable-*		- directories holding icons for different phone hardware. Could be
   14.80 +				  one dir called "drawable".
   14.81 +	res/layout/main.xml	- Usually contains a file main.xml, which declares the screen layout.
   14.82 +				  We don't need it because we use the SDL video output.
   14.83 +	res/values/strings.xml	- strings used in your application, including the application name
   14.84 +				  shown on the phone.
   14.85 +	src/org/libsdl/app/SDLActivity.java - the Java class handling the initialization and binding
   14.86 +				  to SDL.  Be very careful changing this, as the SDL library relies
   14.87 +				  on this implementation.
   14.88 +
   14.89 +
   14.90 +================================================================================
   14.91 + Customizing your application name
   14.92 +================================================================================
   14.93 +
   14.94 +To customize your application name, edit AndroidManifest.xml and replace
   14.95 +"org.libsdl.app" with an identifier for your product package.
   14.96 +
   14.97 +Then create a Java class extending SDLActivity and place it in a directory
   14.98 +under src matching your package, e.g.
   14.99 +	src/com/gamemaker/game/MyGame.java
  14.100 +
  14.101 +Here's an example of a minimal class file:
  14.102 +--- MyGame.java --------------------------
  14.103 +package com.gamemaker.game;
  14.104 +
  14.105 +import org.libsdl.app.SDLActivity; 
  14.106 +
  14.107 +/* 
  14.108 + * A sample wrapper class that just calls SDLActivity 
  14.109 + */ 
  14.110 +
  14.111 +public class MyGame extends SDLActivity { }
  14.112 +
  14.113 +------------------------------------------
  14.114 +
  14.115 +Then replace "SDLActivity" in AndroidManifest.xml with the name of your
  14.116 +class, .e.g. "MyGame"
  14.117 +
  14.118 +================================================================================
  14.119 + Customizing your application icon
  14.120 +================================================================================
  14.121 +
  14.122 +Conceptually changing your icon is just replacing the "ic_launcher.png" files in
  14.123 +the drawable directories under the res directory. There are four directories for
  14.124 +different screen sizes. These can be replaced with one dir called "drawable",
  14.125 +containing an icon file "ic_launcher.png" with dimensions 48x48 or 72x72.
  14.126 +
  14.127 +You may need to change the name of your icon in AndroidManifest.xml to match
  14.128 +this icon filename.
  14.129 +
  14.130 +================================================================================
  14.131 + Loading assets
  14.132 +================================================================================
  14.133 +
  14.134 +Any files you put in the "assets" directory of your android-project directory
  14.135 +will get bundled into the application package and you can load them using the
  14.136 +standard functions in SDL_rwops.h.
  14.137 +
  14.138 +There are also a few Android specific functions that allow you to get other
  14.139 +useful paths for saving and loading data:
  14.140 +SDL_AndroidGetInternalStoragePath()
  14.141 +SDL_AndroidGetExternalStorageState()
  14.142 +SDL_AndroidGetExternalStoragePath()
  14.143 +
  14.144 +See SDL_system.h for more details on these functions.
  14.145 +
  14.146 +The asset packaging system will, by default, compress certain file extensions.
  14.147 +SDL includes two asset file access mechanisms, the preferred one is the so
  14.148 +called "File Descriptor" method, which is faster and doesn't involve the Dalvik
  14.149 +GC, but given this method does not work on compressed assets, there is also the
  14.150 +"Input Stream" method, which is automatically used as a fall back by SDL. You
  14.151 +may want to keep this fact in mind when building your APK, specially when large
  14.152 +files are involved.
  14.153 +For more information on which extensions get compressed by default and how to
  14.154 +disable this behaviour, see for example:
  14.155 +    
  14.156 +http://ponystyle.com/blog/2010/03/26/dealing-with-asset-compression-in-android-apps/
  14.157 +
  14.158 +================================================================================
  14.159 + Pause / Resume behaviour
  14.160 +================================================================================
  14.161 +
  14.162 +If SDL is compiled with SDL_ANDROID_BLOCK_ON_PAUSE defined (the default),
  14.163 +the event loop will block itself when the app is paused (ie, when the user
  14.164 +returns to the main Android dashboard). Blocking is better in terms of battery
  14.165 +use, and it allows your app to spring back to life instantaneously after resume
  14.166 +(versus polling for a resume message).
  14.167 +
  14.168 +Upon resume, SDL will attempt to restore the GL context automatically.
  14.169 +In modern devices (Android 3.0 and up) this will most likely succeed and your
  14.170 +app can continue to operate as it was.
  14.171 +
  14.172 +However, there's a chance (on older hardware, or on systems under heavy load),
  14.173 +where the GL context can not be restored. In that case you have to listen for
  14.174 +a specific message, (which is not yet implemented!) and restore your textures
  14.175 +manually or quit the app (which is actually the kind of behaviour you'll see
  14.176 +under iOS, if the OS can not restore your GL context it will just kill your app)
  14.177 +
  14.178 +================================================================================
  14.179 + Threads and the Java VM
  14.180 +================================================================================
  14.181 +
  14.182 +For a quick tour on how Linux native threads interoperate with the Java VM, take
  14.183 +a look here: http://developer.android.com/guide/practices/jni.html
  14.184 +If you want to use threads in your SDL app, it's strongly recommended that you
  14.185 +do so by creating them using SDL functions. This way, the required attach/detach
  14.186 +handling is managed by SDL automagically. If you have threads created by other
  14.187 +means and they make calls to SDL functions, make sure that you call
  14.188 +Android_JNI_SetupThread before doing anything else otherwise SDL will attach
  14.189 +your thread automatically anyway (when you make an SDL call), but it'll never
  14.190 +detach it.
  14.191 +
  14.192 +================================================================================
  14.193 + Using STL
  14.194 +================================================================================
  14.195 +
  14.196 +You can use STL in your project by creating an Application.mk file in the jni
  14.197 +folder and adding the following line:
  14.198 +APP_STL := stlport_static
  14.199 +
  14.200 +For more information check out CPLUSPLUS-SUPPORT.html in the NDK documentation.
  14.201 +
  14.202 +================================================================================
  14.203 + Additional documentation
  14.204 +================================================================================
  14.205 +
  14.206 +The documentation in the NDK docs directory is very helpful in understanding the
  14.207 +build process and how to work with native code on the Android platform.
  14.208 +
  14.209 +The best place to start is with docs/OVERVIEW.TXT
  14.210 +
  14.211 +
  14.212 +================================================================================
  14.213 + Using Eclipse
  14.214 +================================================================================
  14.215 +
  14.216 +First make sure that you've installed Eclipse and the Android extensions as described here:
  14.217 +	http://developer.android.com/sdk/eclipse-adt.html
  14.218 +
  14.219 +Once you've copied the SDL android project and customized it, you can create an Eclipse project from it:
  14.220 + * File -> New -> Other
  14.221 + * Select the Android -> Android Project wizard and click Next
  14.222 + * Enter the name you'd like your project to have
  14.223 + * Select "Create project from existing source" and browse for your project directory
  14.224 + * Make sure the Build Target is set to Android 2.0
  14.225 + * Click Finish
  14.226 +
  14.227 +
  14.228 +================================================================================
  14.229 + Using the emulator
  14.230 +================================================================================
  14.231 +
  14.232 +There are some good tips and tricks for getting the most out of the
  14.233 +emulator here: http://developer.android.com/tools/devices/emulator.html
  14.234 +
  14.235 +Especially useful is the info on setting up OpenGL ES 2.0 emulation.
  14.236 +
  14.237 +Notice that this software emulator is incredibly slow and needs a lot of disk space.
  14.238 +Using a real device works better.
  14.239 +
  14.240 +================================================================================
  14.241 + Troubleshooting
  14.242 +================================================================================
  14.243 +
  14.244 +You can create and run an emulator from the Eclipse IDE:
  14.245 + * Window -> Android SDK and AVD Manager
  14.246 +
  14.247 +You can see if adb can see any devices with the following command:
  14.248 +	adb devices
  14.249 +
  14.250 +You can see the output of log messages on the default device with:
  14.251 +	adb logcat
  14.252 +
  14.253 +You can push files to the device with:
  14.254 +	adb push local_file remote_path_and_file
  14.255 +
  14.256 +You can push files to the SD Card at /sdcard, for example:
  14.257 +	adb push moose.dat /sdcard/moose.dat
  14.258 +
  14.259 +You can see the files on the SD card with a shell command:
  14.260 +	adb shell ls /sdcard/
  14.261 +
  14.262 +You can start a command shell on the default device with:
  14.263 +	adb shell
  14.264 +
  14.265 +You can remove the library files of your project (and not the SDL lib files) with:
  14.266 +	ndk-build clean
  14.267 +
  14.268 +You can do a build with the following command:
  14.269 +	ndk-build
  14.270 +
  14.271 +You can see the complete command line that ndk-build is using by passing V=1 on the command line:
  14.272 +	ndk-build V=1
  14.273 +
  14.274 +If your application crashes in native code, you can use addr2line to convert the
  14.275 +addresses in the stack trace to lines in your code.
  14.276 +
  14.277 +For example, if your crash looks like this:
  14.278 +I/DEBUG   (   31): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 400085d0
  14.279 +I/DEBUG   (   31):  r0 00000000  r1 00001000  r2 00000003  r3 400085d4
  14.280 +I/DEBUG   (   31):  r4 400085d0  r5 40008000  r6 afd41504  r7 436c6a7c
  14.281 +I/DEBUG   (   31):  r8 436c6b30  r9 435c6fb0  10 435c6f9c  fp 4168d82c
  14.282 +I/DEBUG   (   31):  ip 8346aff0  sp 436c6a60  lr afd1c8ff  pc afd1c902  cpsr 60000030
  14.283 +I/DEBUG   (   31):          #00  pc 0001c902  /system/lib/libc.so
  14.284 +I/DEBUG   (   31):          #01  pc 0001ccf6  /system/lib/libc.so
  14.285 +I/DEBUG   (   31):          #02  pc 000014bc  /data/data/org.libsdl.app/lib/libmain.so
  14.286 +I/DEBUG   (   31):          #03  pc 00001506  /data/data/org.libsdl.app/lib/libmain.so
  14.287 +
  14.288 +You can see that there's a crash in the C library being called from the main code.
  14.289 +I run addr2line with the debug version of my code:
  14.290 +	arm-eabi-addr2line -C -f -e obj/local/armeabi/libmain.so
  14.291 +and then paste in the number after "pc" in the call stack, from the line that I care about:
  14.292 +000014bc
  14.293 +
  14.294 +I get output from addr2line showing that it's in the quit function, in testspriteminimal.c, on line 23.
  14.295 +
  14.296 +You can add logging to your code to help show what's happening:
  14.297 +
  14.298 +#include <android/log.h>
  14.299 +
  14.300 +	__android_log_print(ANDROID_LOG_INFO, "foo", "Something happened! x = %d", x);
  14.301 +
  14.302 +If you need to build without optimization turned on, you can create a file called
  14.303 +"Application.mk" in the jni directory, with the following line in it:
  14.304 +APP_OPTIM := debug
  14.305 +
  14.306 +
  14.307 +================================================================================
  14.308 + Memory debugging
  14.309 +================================================================================
  14.310 +
  14.311 +The best (and slowest) way to debug memory issues on Android is valgrind.
  14.312 +Valgrind has support for Android out of the box, just grab code using:
  14.313 +	svn co svn://svn.valgrind.org/valgrind/trunk valgrind
  14.314 +... and follow the instructions in the file README.android to build it.
  14.315 +
  14.316 +One thing I needed to do on Mac OS X was change the path to the toolchain,
  14.317 +and add ranlib to the environment variables:
  14.318 +export RANLIB=$NDKROOT/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-ranlib
  14.319 +
  14.320 +Once valgrind is built, you can create a wrapper script to launch your
  14.321 +application with it, changing org.libsdl.app to your package identifier:
  14.322 +--- start_valgrind_app -------------------
  14.323 +#!/system/bin/sh
  14.324 +export TMPDIR=/data/data/org.libsdl.app
  14.325 +exec /data/local/Inst/bin/valgrind --log-file=/sdcard/valgrind.log --error-limit=no $*
  14.326 +------------------------------------------
  14.327 +
  14.328 +Then push it to the device:
  14.329 +	adb push start_valgrind_app /data/local
  14.330 +
  14.331 +and make it executable:
  14.332 +	adb shell chmod 755 /data/local/start_valgrind_app
  14.333 +
  14.334 +and tell Android to use the script to launch your application:
  14.335 +	adb shell setprop wrap.org.libsdl.app "logwrapper /data/local/start_valgrind_app"
  14.336 +
  14.337 +If the setprop command says "could not set property", it's likely that
  14.338 +your package name is too long and you should make it shorter by changing
  14.339 +AndroidManifest.xml and the path to your class file in android-project/src
  14.340 +
  14.341 +You can then launch your application normally and waaaaaaaiiittt for it.
  14.342 +You can monitor the startup process with the logcat command above, and
  14.343 +when it's done (or even while it's running) you can grab the valgrind
  14.344 +output file:
  14.345 +	adb pull /sdcard/valgrind.log
  14.346 +
  14.347 +When you're done instrumenting with valgrind, you can disable the wrapper:
  14.348 +	adb shell setprop wrap.org.libsdl.app ""
  14.349 +
  14.350 +================================================================================
  14.351 + Why is API level 10 the minimum required?
  14.352 +================================================================================
  14.353 +
  14.354 +API level 10 is required because SDL requires some functionality for running not
  14.355 +available on older devices and some for building which is not in older NDK/SDKs.
  14.356 +
  14.357 +Support for native OpenGL ES and ES2 applications was introduced in the NDK for
  14.358 +API level 4 and 8. EGL was made a stable API in the NDK for API level 9, which
  14.359 +has since then been obsoleted, with the recommendation to developers to bump the
  14.360 +required API level to 10.
  14.361 +As of this writing, according to http://developer.android.com/about/dashboards/index.html
  14.362 +about 90% of the Android devices accessing Google Play support API level 10 or
  14.363 +higher (March 2013).
  14.364 +
  14.365 +================================================================================
  14.366 + A note regarding the use of the "dirty rectangles" rendering technique
  14.367 +================================================================================
  14.368 +
  14.369 +If your app uses a variation of the "dirty rectangles" rendering technique,
  14.370 +where you only update a portion of the screen on each frame, you may notice a
  14.371 +variety of visual glitches on Android, that are not present on other platforms.
  14.372 +This is caused by SDL's use of EGL as the support system to handle OpenGL ES/ES2
  14.373 +contexts, in particular the use of the eglSwapBuffers function. As stated in the
  14.374 +documentation for the function "The contents of ancillary buffers are always 
  14.375 +undefined after calling eglSwapBuffers".
  14.376 +Setting the EGL_SWAP_BEHAVIOR attribute of the surface to EGL_BUFFER_PRESERVED
  14.377 +is not possible for SDL as it requires EGL 1.4, available only on the API level
  14.378 +17+, so the only workaround available on this platform is to redraw the entire
  14.379 +screen each frame.
  14.380 +
  14.381 +Reference: http://www.khronos.org/registry/egl/specs/EGLTechNote0001.html
  14.382 +
  14.383 +================================================================================
  14.384 + Known issues
  14.385 +================================================================================
  14.386 +
  14.387 +- TODO. I'm sure there's a bunch more stuff I haven't thought of 
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/README-cmake.txt	Sun May 26 11:06:17 2013 -0700
    15.3 @@ -0,0 +1,31 @@
    15.4 +================================================================================
    15.5 +CMake build system for SDL (www.cmake.org)
    15.6 +================================================================================
    15.7 +
    15.8 +SDL's build system was traditionally based on autotools. Over time, this
    15.9 +approach has suffered from several issues across the different supported 
   15.10 +platforms.
   15.11 +To solve these problems, a new build system based on CMake is under development.
   15.12 +It works in parallel to the legacy system, so users can experiment with it
   15.13 +without complication.
   15.14 +While still experimental, the build system should be usable on the following
   15.15 +platforms:
   15.16 +    
   15.17 +    * FreeBSD
   15.18 +    * Linux
   15.19 +    * VS.NET 2010
   15.20 +    * MinGW and Msys
   15.21 +    * OS X with support for XCode
   15.22 +    
   15.23 +================================================================================
   15.24 +Usage
   15.25 +================================================================================
   15.26 +
   15.27 +Assuming the source for SDL is located at ~/sdl
   15.28 +
   15.29 +cd ~
   15.30 +mkdir build
   15.31 +cd build
   15.32 +cmake ../sdl
   15.33 +
   15.34 +This will build the static and dynamic versions of SDL in the ~/build directory.
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/README-directfb.txt	Sun May 26 11:06:17 2013 -0700
    16.3 @@ -0,0 +1,106 @@
    16.4 +SDL on DirectFB
    16.5 +
    16.6 +Supports:
    16.7 +
    16.8 +- Hardware YUV overlays
    16.9 +- OpenGL - software only
   16.10 +- 2D/3D accelerations (depends on directfb driver)
   16.11 +- multiple displays
   16.12 +- windows
   16.13 +
   16.14 +What you need:
   16.15 +
   16.16 +DirectFB 1.0.1, 1.2.x, 1.3.0
   16.17 +Kernel-Framebuffer support: required: vesafb, radeonfb .... 
   16.18 +esa 7.0.x	   - optional for OpenGL
   16.19 +
   16.20 +/etc/directfbrc
   16.21 +
   16.22 +This file should contain the following lines to make
   16.23 +your joystick work and avoid crashes:
   16.24 +------------------------
   16.25 +disable-module=joystick
   16.26 +disable-module=cle266
   16.27 +disable-module=cyber5k
   16.28 +no-linux-input-grab
   16.29 +------------------------
   16.30 +
   16.31 +To disable to use x11 backend when DISPLAY variable is found use
   16.32 +
   16.33 +export SDL_DIRECTFB_X11_CHECK=0
   16.34 +
   16.35 +To disable the use of linux input devices, i.e. multimice/multikeyboard support,
   16.36 +use
   16.37 +
   16.38 +export SDL_DIRECTFB_LINUX_INPUT=0
   16.39 +
   16.40 +To use hardware accelerated YUV-overlays for YUV-textures, use:
   16.41 +
   16.42 +export SDL_DIRECTFB_YUV_DIRECT=1
   16.43 +
   16.44 +This is disabled by default. It will only support one 
   16.45 +YUV texture, namely the first. Every other YUV texture will be
   16.46 +rendered in software.
   16.47 +
   16.48 +In addition, you may use (directfb-1.2.x)
   16.49 +
   16.50 +export SDL_DIRECTFB_YUV_UNDERLAY=1
   16.51 +
   16.52 +to make the YUV texture an underlay. This will make the cursor to
   16.53 +be shown.
   16.54 +
   16.55 +Simple Window Manager
   16.56 +=====================
   16.57 +
   16.58 +The driver has support for a very, very basic window manager you may
   16.59 +want to use when running with "wm=default". Use
   16.60 +
   16.61 +export SDL_DIRECTFB_WM=1
   16.62 +
   16.63 +to enable basic window borders. In order to have the window title rendered,
   16.64 +you need to have the following font installed:
   16.65 +
   16.66 +/usr/share/fonts/truetype/freefont/FreeSans.ttf
   16.67 +
   16.68 +OpenGL Support
   16.69 +==============
   16.70 +
   16.71 +The following instructions will give you *software* OpenGL. However this
   16.72 +works at least on all directfb supported platforms.
   16.73 +
   16.74 +As of this writing 20100802 you need to pull Mesa from git and do the following:
   16.75 +
   16.76 +------------------------
   16.77 +git clone git://anongit.freedesktop.org/git/mesa/mesa
   16.78 +cd mesa 
   16.79 +git checkout 2c9fdaf7292423c157fc79b5ce43f0f199dd753a
   16.80 +------------------------
   16.81 +
   16.82 +Edit configs/linux-directfb so that the Directories-section looks like
   16.83 +------------------------
   16.84 +# Directories
   16.85 +SRC_DIRS     = mesa glu 
   16.86 +GLU_DIRS     = sgi
   16.87 +DRIVER_DIRS  = directfb
   16.88 +PROGRAM_DIRS = 
   16.89 +------------------------
   16.90 +
   16.91 +make linux-directfb
   16.92 +make
   16.93 +
   16.94 +echo Installing - please enter sudo pw.
   16.95 +
   16.96 +sudo make install INSTALL_DIR=/usr/local/dfb_GL
   16.97 +cd src/mesa/drivers/directfb
   16.98 +make
   16.99 +sudo make install INSTALL_DIR=/usr/local/dfb_GL
  16.100 +------------------------
  16.101 +
  16.102 +To run the SDL - testprograms:
  16.103 +
  16.104 +export SDL_VIDEODRIVER=directfb
  16.105 +export LD_LIBRARY_PATH=/usr/local/dfb_GL/lib
  16.106 +export LD_PRELOAD=/usr/local/dfb_GL/libGL.so.7
  16.107 +
  16.108 +./testgl
  16.109 +
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/README-gesture.txt	Sun May 26 11:06:17 2013 -0700
    17.3 @@ -0,0 +1,72 @@
    17.4 +===========================================================================
    17.5 +Dollar Gestures
    17.6 +===========================================================================
    17.7 +SDL Provides an implementation of the $1 gesture recognition system. This allows for recording, saving, loading, and performing single stroke gestures.
    17.8 +
    17.9 +Gestures can be performed with any number of fingers (the centroid of the fingers must follow the path of the gesture), but the number of fingers must be constant (a finger cannot go down in the middle of a gesture). The path of a gesture is considered the path from the time when the final finger went down, to the first time any finger comes up. 
   17.10 +
   17.11 +Dollar gestures are assigned an Id based on a hash function. This is guaranteed to remain constant for a given gesture. There is a (small) chance that two different gestures will be assigned the same ID. In this case, simply re-recording one of the gestures should result in a different ID.
   17.12 +
   17.13 +Recording:
   17.14 +----------
   17.15 +To begin recording on a touch device call:
   17.16 +SDL_RecordGesture(SDL_TouchID touchId), where touchId is the id of the touch device you wish to record on, or -1 to record on all connected devices.
   17.17 +
   17.18 +Recording terminates as soon as a finger comes up. Recording is acknowledged by an SDL_DOLLARRECORD event.
   17.19 +A SDL_DOLLARRECORD event is a dgesture with the following fields:
   17.20 +
   17.21 +event.dgesture.touchId   - the Id of the touch used to record the gesture.
   17.22 +event.dgesture.gestureId - the unique id of the recorded gesture.
   17.23 +
   17.24 +
   17.25 +Performing:
   17.26 +-----------
   17.27 +As long as there is a dollar gesture assigned to a touch, every finger-up event will also cause an SDL_DOLLARGESTURE event with the following fields:
   17.28 +
   17.29 +event.dgesture.touchId    - the Id of the touch which performed the gesture.
   17.30 +event.dgesture.gestureId  - the unique id of the closest gesture to the performed stroke.
   17.31 +event.dgesture.error      - the difference between the gesture template and the actual performed gesture. Lower error is a better match.
   17.32 +event.dgesture.numFingers - the number of fingers used to draw the stroke.
   17.33 +
   17.34 +ost programs will want to define an appropriate error threshold and check to be sure that the error of a gesture is not abnormally high (an indicator that no gesture was performed).
   17.35 +
   17.36 +
   17.37 +
   17.38 +Saving:
   17.39 +-------
   17.40 +To save a template, call SDL_SaveDollarTemplate(gestureId, src) where gestureId is the id of the gesture you want to save, and src is an SDL_RWops pointer to the file where the gesture will be stored.
   17.41 +
   17.42 +To save all currently loaded templates, call SDL_SaveAllDollarTemplates(src) where source is an SDL_RWops pointer to the file where the gesture will be stored.
   17.43 +
   17.44 +Both functions return the number of gestures successfully saved.
   17.45 +
   17.46 +
   17.47 +Loading:
   17.48 +--------
   17.49 +To load templates from a file, call SDL_LoadDollarTemplates(touchId,src) where touchId is the id of the touch to load to (or -1 to load to all touch devices), and src is an SDL_RWops pointer to a gesture save file. 
   17.50 +
   17.51 +SDL_LoadDollarTemplates returns the number of templates successfully loaded.
   17.52 +
   17.53 +
   17.54 +
   17.55 +===========================================================================
   17.56 +ulti Gestures
   17.57 +===========================================================================
   17.58 +SDL provides simple support for pinch/rotate/swipe gestures. 
   17.59 +Every time a finger is moved an SDL_MULTIGESTURE event is sent with the following fields:
   17.60 +
   17.61 +event.mgesture.touchId - the Id of the touch on which the gesture was performed.
   17.62 +event.mgesture.x       - the normalized x coordinate of the gesture. (0..1)
   17.63 +event.mgesture.y       - the normalized y coordinate of the gesture. (0..1)
   17.64 +event.mgesture.dTheta  - the amount that the fingers rotated during this motion.
   17.65 +event.mgesture.dDist   - the amount that the fingers pinched during this motion.
   17.66 +event.mgesture.numFingers - the number of fingers used in the gesture.
   17.67 +
   17.68 +
   17.69 +===========================================================================
   17.70 +Notes
   17.71 +===========================================================================
   17.72 +For a complete example see test/testgesture.c
   17.73 +
   17.74 +Please direct questions/comments to:
   17.75 +   jim.tla+sdl_touch@gmail.com
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/README-hg.txt	Sun May 26 11:06:17 2013 -0700
    18.3 @@ -0,0 +1,23 @@
    18.4 +The latest development version of SDL is available via Mercurial.
    18.5 +ercurial allows you to get up-to-the-minute fixes and enhancements;
    18.6 +as a developer works on a source tree, you can use "hg" to mirror that
    18.7 +source tree instead of waiting for an official release. Please look
    18.8 +at the Mercurial website ( http://mercurial.selenic.com/ ) for more
    18.9 +information on using hg, where you can also download software for
   18.10 +ac OS X, Windows, and Unix systems.
   18.11 +
   18.12 +  hg clone http://hg.libsdl.org/SDL
   18.13 +
   18.14 +If you are building SDL with an IDE, you will need to copy the file
   18.15 +include/SDL_config.h.default to include/SDL_config.h before building.
   18.16 +
   18.17 +If you are building SDL via configure, you will need to run autogen.sh
   18.18 +before running configure.
   18.19 +
   18.20 +There is a web interface to the subversion repository at:
   18.21 +
   18.22 +	http://hg.libsdl.org/SDL/
   18.23 +
   18.24 +There is an RSS feed available at that URL, for those that want to
   18.25 +track commits in real time.
   18.26 +
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/README-ios.txt	Sun May 26 11:06:17 2013 -0700
    19.3 @@ -0,0 +1,222 @@
    19.4 +==============================================================================
    19.5 +Building the Simple DirectMedia Layer for iPhone OS 2.0
    19.6 +==============================================================================
    19.7 +
    19.8 +Requirements: Mac OS X v10.5 or later and the iPhone SDK.
    19.9 +
   19.10 +Instructions:
   19.11 +1.  Open SDL.xcodeproj (located in Xcode-iOS/SDL) in XCode.
   19.12 +2.  Select your desired target, and hit build.
   19.13 +
   19.14 +There are three build targets:
   19.15 +- libSDL.a:
   19.16 +	Build SDL as a statically linked library
   19.17 +- testsdl
   19.18 +	Build a test program (there are known test failures which are fine)
   19.19 +- Template:
   19.20 +	Package a project template together with the SDL for iPhone static libraries and copies of the SDL headers.  The template includes proper references to the SDL library and headers, skeleton code for a basic SDL program, and placeholder graphics for the application icon and startup screen.
   19.21 +
   19.22 +==============================================================================
   19.23 +Build SDL for iOS from the command line
   19.24 +==============================================================================
   19.25 +
   19.26 +1. cd (PATH WHERE THE SDL CODE IS)/build-scripts
   19.27 +2. ./iosbuild.sh
   19.28 +
   19.29 +If everything goes fine, you should see a build/ios directory, inside there's
   19.30 +two directories "lib" and "include". 
   19.31 +"include" contains a copy of the SDL headers that you'll need for your project,
   19.32 +make sure to configure XCode to look for headers there.
   19.33 +"lib" contains find two files, libSDL2.a and libSDL2main.a, you have to add both 
   19.34 +to your XCode project. These libraries contain three architectures in them,
   19.35 +armv6 for legacy devices, armv7, and i386 (for the simulator).
   19.36 +By default, iosbuild.sh will autodetect the SDK version you have installed using 
   19.37 +xcodebuild -showsdks, and build for iOS >= 3.0, you can override this behaviour 
   19.38 +by setting the MIN_OS_VERSION variable, ie:
   19.39 +
   19.40 +IN_OS_VERSION=4.2 ./iosbuild.sh
   19.41 +
   19.42 +==============================================================================
   19.43 +Using the Simple DirectMedia Layer for iOS
   19.44 +==============================================================================
   19.45 +
   19.46 +FIXME: This needs to be updated for the latest methods
   19.47 +
   19.48 +Here is the easiest method:
   19.49 +1.  Build the SDL libraries (libSDL.a and libSDLSimulator.a) and the iPhone SDL Application template.
   19.50 +1.  Install the iPhone SDL Application template by copying it to one of XCode's template directories.  I recommend creating a directory called "SDL" in "/Developer/Platforms/iOS.platform/Developer/Library/XCode/Project Templates/" and placing it there.
   19.51 +2.  Start a new project using the template.  The project should be immediately ready for use with SDL.
   19.52 +
   19.53 +Here is a more manual method:
   19.54 +1.  Create a new iPhone view based application.
   19.55 +2.  Build the SDL static libraries (libSDL.a and libSDLSimulator.a) for iPhone and include them in your project.  XCode will ignore the library that is not currently of the correct architecture, hence your app will work both on iPhone and in the iPhone Simulator.
   19.56 +3.  Include the SDL header files in your project.
   19.57 +4.  Remove the ApplicationDelegate.h and ApplicationDelegate.m files -- SDL for iPhone provides its own UIApplicationDelegate.  Remove MainWindow.xib -- SDL for iPhone produces its user interface programmatically.
   19.58 +5.  Delete the contents of main.m and program your app as a regular SDL program instead.  You may replace main.m with your own main.c, but you must tell XCode not to use the project prefix file, as it includes Objective-C code.
   19.59 +
   19.60 +==============================================================================
   19.61 +Notes -- Application events
   19.62 +==============================================================================
   19.63 +
   19.64 +On iOS the application goes through a fixed life cycle and you will get
   19.65 +notifications of state changes via application events. When these events
   19.66 +are delivered you must handle them in an event callback because the OS may
   19.67 +not give you any processing time after the events are delivered.
   19.68 +
   19.69 +e.g.
   19.70 +
   19.71 +int HandleAppEvents(void *userdata, SDL_Event *event)
   19.72 +{
   19.73 +    switch (event->type)
   19.74 +    {
   19.75 +    case SDL_APP_TERMINATING:
   19.76 +        /* Terminate the app.
   19.77 +           Shut everything down before returning from this function.
   19.78 +        */
   19.79 +        return 0;
   19.80 +    case SDL_APP_LOWMEMORY:
   19.81 +        /* You will get this when your app is paused and iOS wants more memory.
   19.82 +           Release as much memory as possible.
   19.83 +        */
   19.84 +        return 0;
   19.85 +    case SDL_APP_WILLENTERBACKGROUND:
   19.86 +        /* Prepare your app to go into the background.  Stop loops, etc.
   19.87 +           This gets called when the user hits the home button, or gets a call.
   19.88 +        */
   19.89 +        return 0;
   19.90 +    case SDL_APP_DIDENTERBACKGROUND:
   19.91 +        /* This will get called if the user accepted whatever sent your app to the background.
   19.92 +           If the user got a phone call and canceled it, you'll instead get an SDL_APP_DIDENTERFOREGROUND event and restart your loops.
   19.93 +           When you get this, you have 5 seconds to save all your state or the app will be terminated.
   19.94 +           Your app is NOT active at this point.
   19.95 +        */
   19.96 +        return 0;
   19.97 +    case SDL_APP_WILLENTERFOREGROUND:
   19.98 +        /* This call happens when your app is coming back to the foreground.
   19.99 +           Restore all your state here.
  19.100 +        */
  19.101 +        return 0;
  19.102 +    case SDL_APP_DIDENTERFOREGROUND:
  19.103 +        /* Restart your loops here.
  19.104 +           Your app is interactive and getting CPU again.
  19.105 +        */
  19.106 +        return 0;
  19.107 +    default:
  19.108 +        /* No special processing, add it to the event queue */
  19.109 +        return 1;
  19.110 +    }
  19.111 +}
  19.112 +
  19.113 +int main(int argc, char *argv[])
  19.114 +{
  19.115 +    SDL_SetEventFilter(HandleAppEvents, NULL);
  19.116 +
  19.117 +    ... run your main loop
  19.118 +
  19.119 +    return 0;
  19.120 +}
  19.121 +
  19.122 +    
  19.123 +==============================================================================
  19.124 +Notes -- Accelerometer as Joystick
  19.125 +==============================================================================
  19.126 +
  19.127 +SDL for iPhone supports polling the built in accelerometer as a joystick device.  For an example on how to do this, see the accelerometer.c in the demos directory.
  19.128 +
  19.129 +The main thing to note when using the accelerometer with SDL is that while the iPhone natively reports accelerometer as floating point values in units of g-force, SDL_JoystickGetAxis reports joystick values as signed integers.  Hence, in order to convert between the two, some clamping and scaling is necessary on the part of the iPhone SDL joystick driver.  To convert SDL_JoystickGetAxis reported values BACK to units of g-force, simply multiply the values by SDL_IPHONE_MAX_GFORCE / 0x7FFF.
  19.130 +
  19.131 +==============================================================================
  19.132 +Notes -- OpenGL ES
  19.133 +==============================================================================
  19.134 +
  19.135 +Your SDL application for iPhone uses OpenGL ES for video by default.
  19.136 +
  19.137 +OpenGL ES for iPhone supports several display pixel formats, such as RGBA8 and RGB565, which provide a 32 bit and 16 bit color buffer respectively.  By default, the implementation uses RGB565, but you may use RGBA8 by setting each color component to 8 bits in SDL_GL_SetAttribute.
  19.138 +
  19.139 +If your application doesn't use OpenGL's depth buffer, you may find significant performance improvement by setting SDL_GL_DEPTH_SIZE to 0.
  19.140 +
  19.141 +Finally, if your application completely redraws the screen each frame, you may find significant performance improvement by setting the attribute SDL_GL_RETAINED_BACKING to 1.
  19.142 +
  19.143 +==============================================================================
  19.144 +Notes -- Keyboard
  19.145 +==============================================================================
  19.146 +
  19.147 +The SDL keyboard API has been extended to support on-screen keyboards:
  19.148 +
  19.149 +void SDL_StartTextInput()
  19.150 +	-- enables text events and reveals the onscreen keyboard.
  19.151 +void SDL_StopTextInput()
  19.152 +	-- disables text events and hides the onscreen keyboard.
  19.153 +SDL_bool SDL_IsTextInputActive()
  19.154 +	-- returns whether or not text events are enabled (and the onscreen keyboard is visible)
  19.155 +
  19.156 +==============================================================================
  19.157 +Notes -- Reading and Writing files
  19.158 +==============================================================================
  19.159 +
  19.160 +Each application installed on iPhone resides in a sandbox which includes its own Application Home directory.  Your application may not access files outside this directory.
  19.161 +
  19.162 +Once your application is installed its directory tree looks like:
  19.163 +
  19.164 +ySDLApp Home/
  19.165 +	MySDLApp.app
  19.166 +	Documents/
  19.167 +	Library/
  19.168 +		Preferences/
  19.169 +	tmp/
  19.170 +
  19.171 +When your SDL based iPhone application starts up, it sets the working directory to the main bundle (MySDLApp Home/MySDLApp.app), where your application resources are stored.  You cannot write to this directory.  Instead, I advise you to write document files to "../Documents/" and preferences to "../Library/Preferences".  
  19.172 +
  19.173 +ore information on this subject is available here:
  19.174 +http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html
  19.175 +
  19.176 +==============================================================================
  19.177 +Notes -- iPhone SDL limitations
  19.178 +==============================================================================
  19.179 +
  19.180 +Windows:
  19.181 +	Full-size, single window applications only.  You cannot create multi-window SDL applications for iPhone OS.  The application window will fill the display, though you have the option of turning on or off the menu-bar (pass SDL_CreateWindow the flag SDL_WINDOW_BORDERLESS).
  19.182 +
  19.183 +Textures:
  19.184 +	The optimal texture formats on iOS are SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGR888, and SDL_PIXELFORMAT_RGB24 pixel formats.
  19.185 +
  19.186 +Loading Shared Objects:
  19.187 +	This is disabled by default since it seems to break the terms of the iPhone SDK agreement.  It can be re-enabled in SDL_config_iphoneos.h.
  19.188 +
  19.189 +==============================================================================
  19.190 +Game Center 
  19.191 +==============================================================================
  19.192 +
  19.193 +Game Center integration requires that you break up your main loop in order to yield control back to the system. In other words, instead of running an endless main loop, you run each frame in a callback function, using:
  19.194 +    
  19.195 +int SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
  19.196 +
  19.197 +This will set up the given function to be called back on the animation callback, and then you have to return from main() to let the Cocoa event loop run.
  19.198 +
  19.199 +e.g.
  19.200 +
  19.201 +extern "C"
  19.202 +void ShowFrame(void*)
  19.203 +{
  19.204 +    ... do event handling, frame logic and rendering
  19.205 +}
  19.206 +
  19.207 +int main(int argc, char *argv[])
  19.208 +{
  19.209 +   ... initialize game ...
  19.210 +
  19.211 +#if __IPHONEOS__
  19.212 +        // Initialize the Game Center for scoring and matchmaking
  19.213 +        InitGameCenter();
  19.214 +
  19.215 +        // Set up the game to run in the window animation callback on iOS
  19.216 +        // so that Game Center and so forth works correctly.
  19.217 +        SDL_iPhoneSetAnimationCallback(window, 1, ShowFrame, NULL);
  19.218 +#else
  19.219 +        while ( running ) {
  19.220 +                ShowFrame(0);
  19.221 +                DelayFrame();
  19.222 +        }
  19.223 +#endif
  19.224 +        return 0;
  19.225 +}
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/README-macosx.txt	Sun May 26 11:06:17 2013 -0700
    20.3 @@ -0,0 +1,186 @@
    20.4 +==============================================================================
    20.5 +Using the Simple DirectMedia Layer with Mac OS X
    20.6 +==============================================================================
    20.7 +
    20.8 +These instructions are for people using Apple's Mac OS X (pronounced
    20.9 +"ten").
   20.10 +
   20.11 +From the developer's point of view, OS X is a sort of hybrid Mac and
   20.12 +Unix system, and you have the option of using either traditional
   20.13 +command line tools or Apple's IDE Xcode.
   20.14 +
   20.15 +To build SDL using the command line, use the standard configure and make
   20.16 +process:
   20.17 +
   20.18 +	./configure
   20.19 +	make
   20.20 +	sudo make install
   20.21 +
   20.22 +You can also build SDL as a Universal library (a single binary for both
   20.23 +PowerPC and Intel architectures), on Mac OS X 10.4 and newer, by using
   20.24 +the fatbuild.sh script in build-scripts:
   20.25 +	sh build-scripts/fatbuild.sh
   20.26 +	sudo build-scripts/fatbuild.sh install
   20.27 +This script builds SDL with 10.2 ABI compatibility on PowerPC and 10.4
   20.28 +ABI compatibility on Intel architectures.  For best compatibility you
   20.29 +should compile your application the same way.  A script which wraps
   20.30 +gcc to make this easy is provided in test/gcc-fat.sh
   20.31 +
   20.32 +To use the library once it's built, you essential have two possibilities:
   20.33 +use the traditional autoconf/automake/make method, or use Xcode.
   20.34 +
   20.35 +==============================================================================
   20.36 +Using the Simple DirectMedia Layer with a traditional Makefile
   20.37 +==============================================================================
   20.38 +
   20.39 +An existing autoconf/automake build system for your SDL app has good chances
   20.40 +to work almost unchanged on OS X. However, to produce a "real" Mac OS X binary
   20.41 +that you can distribute to users, you need to put the generated binary into a
   20.42 +so called "bundle", which basically is a fancy folder with a name like
   20.43 +"MyCoolGame.app".
   20.44 +
   20.45 +To get this build automatically, add something like the following rule to
   20.46 +your Makefile.am:
   20.47 +
   20.48 +bundle_contents = APP_NAME.app/Contents
   20.49 +APP_NAME_bundle: EXE_NAME
   20.50 +	mkdir -p $(bundle_contents)/MacOS
   20.51 +	mkdir -p $(bundle_contents)/Resources
   20.52 +	echo "APPL????" > $(bundle_contents)/PkgInfo
   20.53 +	$(INSTALL_PROGRAM) $< $(bundle_contents)/MacOS/
   20.54 +
   20.55 +You should replace EXE_NAME with the name of the executable. APP_NAME is what
   20.56 +will be visible to the user in the Finder. Usually it will be the same
   20.57 +as EXE_NAME but capitalized. E.g. if EXE_NAME is "testgame" then APP_NAME 
   20.58 +usually is "TestGame". You might also want to use @PACKAGE@ to use the package
   20.59 +name as specified in your configure.in file.
   20.60 +
   20.61 +If your project builds more than one application, you will have to do a bit
   20.62 +more. For each of your target applications, you need a separate rule.
   20.63 +
   20.64 +If you want the created bundles to be installed, you may want to add this
   20.65 +rule to your Makefile.am:
   20.66 +
   20.67 +install-exec-hook: APP_NAME_bundle
   20.68 +	rm -rf $(DESTDIR)$(prefix)/Applications/APP_NAME.app
   20.69 +	mkdir -p $(DESTDIR)$(prefix)/Applications/
   20.70 +	cp -r $< /$(DESTDIR)$(prefix)Applications/
   20.71 +
   20.72 +This rule takes the Bundle created by the rule from step 3 and installs them
   20.73 +into $(DESTDIR)$(prefix)/Applications/.
   20.74 +
   20.75 +Again, if you want to install multiple applications, you will have to augment
   20.76 +the make rule accordingly.
   20.77 +
   20.78 +
   20.79 +But beware! That is only part of the story! With the above, you end up with
   20.80 +a bare bone .app bundle, which is double clickable from the Finder. But
   20.81 +there are some more things you should do before shipping your product...
   20.82 +
   20.83 +1) The bundle right now probably is dynamically linked against SDL. That 
   20.84 +   means that when you copy it to another computer, *it will not run*,
   20.85 +   unless you also install SDL on that other computer. A good solution
   20.86 +   for this dilemma is to static link against SDL. On OS X, you can
   20.87 +   achieve that by linking against the libraries listed by
   20.88 +     sdl-config --static-libs
   20.89 +   instead of those listed by
   20.90 +     sdl-config --libs
   20.91 +   Depending on how exactly SDL is integrated into your build systems, the
   20.92 +   way to achieve that varies, so I won't describe it here in detail
   20.93 +2) Add an 'Info.plist' to your application. That is a special XML file which
   20.94 +   contains some meta-information about your application (like some copyright
   20.95 +   information, the version of your app, the name of an optional icon file,
   20.96 +   and other things). Part of that information is displayed by the Finder
   20.97 +   when you click on the .app, or if you look at the "Get Info" window.
   20.98 +   More information about Info.plist files can be found on Apple's homepage.
   20.99 +
  20.100 +
  20.101 +As a final remark, let me add that I use some of the techniques (and some
  20.102 +variations of them) in Exult and ScummVM; both are available in source on
  20.103 +the net, so feel free to take a peek at them for inspiration!
  20.104 +
  20.105 +
  20.106 +==============================================================================
  20.107 +Using the Simple DirectMedia Layer with Xcode
  20.108 +==============================================================================
  20.109 +
  20.110 +These instructions are for using Apple's Xcode IDE to build SDL applications.
  20.111 +
  20.112 +- First steps
  20.113 +
  20.114 +The first thing to do is to unpack the Xcode.tar.gz archive in the
  20.115 +top level SDL directory (where the Xcode.tar.gz archive resides).
  20.116 +Because Stuffit Expander will unpack the archive into a subdirectory,
  20.117 +you should unpack the archive manually from the command line:
  20.118 +	cd [path_to_SDL_source]
  20.119 +	tar zxf Xcode.tar.gz
  20.120 +This will create a new folder called Xcode, which you can browse
  20.121 +normally from the Finder.
  20.122 +
  20.123 +- Building the Framework
  20.124 +
  20.125 +The SDL Library is packaged as a framework bundle, an organized
  20.126 +relocatable folder hierarchy of executable code, interface headers,
  20.127 +and additional resources. For practical purposes, you can think of a 
  20.128 +framework as a more user and system-friendly shared library, whose library
  20.129 +file behaves more or less like a standard UNIX shared library.
  20.130 +
  20.131 +To build the framework, simply open the framework project and build it. 
  20.132 +By default, the framework bundle "SDL.framework" is installed in 
  20.133 +/Library/Frameworks. Therefore, the testers and project stationary expect
  20.134 +it to be located there. However, it will function the same in any of the
  20.135 +following locations:
  20.136 +
  20.137 +    ~/Library/Frameworks
  20.138 +    /Local/Library/Frameworks
  20.139 +    /System/Library/Frameworks
  20.140 +
  20.141 +- Build Options
  20.142 +    There are two "Build Styles" (See the "Targets" tab) for SDL.
  20.143 +    "Deployment" should be used if you aren't tweaking the SDL library.
  20.144 +    "Development" should be used to debug SDL apps or the library itself.
  20.145 +
  20.146 +- Building the Testers
  20.147 +    Open the SDLTest project and build away!
  20.148 +
  20.149 +- Using the Project Stationary
  20.150 +    Copy the stationary to the indicated folders to access it from
  20.151 +    the "New Project" and "Add target" menus. What could be easier?
  20.152 +
  20.153 +- Setting up a new project by hand
  20.154 +    Some of you won't want to use the Stationary so I'll give some tips:
  20.155 +    * Create a new "Cocoa Application"
  20.156 +    * Add src/main/macosx/SDLMain.m , .h and .nib to your project
  20.157 +    * Remove "main.c" from your project
  20.158 +    * Remove "MainMenu.nib" from your project
  20.159 +    * Add "$(HOME)/Library/Frameworks/SDL.framework/Headers" to include path
  20.160 +    * Add "$(HOME)/Library/Frameworks" to the frameworks search path
  20.161 +    * Add "-framework SDL -framework Foundation -framework AppKit" to "OTHER_LDFLAGS"
  20.162 +    * Set the "Main Nib File" under "Application Settings" to "SDLMain.nib"
  20.163 +    * Add your files
  20.164 +    * Clean and build
  20.165 +
  20.166 +- Building from command line
  20.167 +    Use pbxbuild in the same directory as your .pbproj file
  20.168 +
  20.169 +- Running your app
  20.170 +    You can send command line args to your app by either invoking it from
  20.171 +    the command line (in *.app/Contents/MacOS) or by entering them in the
  20.172 +    "Executables" panel of the target settings.
  20.173 +    
  20.174 +- Implementation Notes
  20.175 +    Some things that may be of interest about how it all works...
  20.176 +    * Working directory
  20.177 +        As defined in the SDL_main.m file, the working directory of your SDL app
  20.178 +        is by default set to its parent. You may wish to change this to better
  20.179 +        suit your needs.
  20.180 +    * You have a Cocoa App!
  20.181 +        Your SDL app is essentially a Cocoa application. When your app
  20.182 +        starts up and the libraries finish loading, a Cocoa procedure is called,
  20.183 +        which sets up the working directory and calls your main() method.
  20.184 +        You are free to modify your Cocoa app with generally no consequence 
  20.185 +        to SDL. You cannot, however, easily change the SDL window itself.
  20.186 +        Functionality may be added in the future to help this.
  20.187 +
  20.188 +
  20.189 +Known bugs are listed in the file "BUGS"
    21.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.2 +++ b/README-pandora.txt	Sun May 26 11:06:17 2013 -0700
    21.3 @@ -0,0 +1,16 @@
    21.4 +SDL 2.0 with open pandora console support ( http://openpandora.org/ )
    21.5 +=====================================================================
    21.6 +
    21.7 +- A pandora specific video driver was written to allow SDL 2.0 with OpenGL ES
    21.8 +support to work on the pandora under the framebuffer. This driver do not have
    21.9 +input support for now, so if you use it you will have to add your own control code.
   21.10 +The video driver name is "pandora" so if you have problem running it from
   21.11 +the framebuffer, try to set the following variable before starting your application :
   21.12 +"export SDL_VIDEODRIVER=pandora"
   21.13 +
   21.14 +- OpenGL ES support was added to the x11 driver, so it's working like the normal
   21.15 +x11 driver one with OpenGLX support, with SDL input event's etc..
   21.16 +
   21.17 +
   21.18 +David Carré (Cpasjuste)
   21.19 +cpasjuste@gmail.com
    22.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.2 +++ b/README-platforms.txt	Sun May 26 11:06:17 2013 -0700
    22.3 @@ -0,0 +1,32 @@
    22.4 +
    22.5 +This is a list of the platforms SDL supports, and who maintains them.
    22.6 +
    22.7 +Officially supported platforms
    22.8 +==============================
    22.9 +(code compiles, and thoroughly tested for release)
   22.10 +==============================
   22.11 +Windows XP
   22.12 +Windows Vista
   22.13 +Windows 7
   22.14 +ac OS X 10.4+
   22.15 +Linux 2.6+
   22.16 +iOS 3.1.3+
   22.17 +Android 2.3.3+
   22.18 +
   22.19 +Unofficially supported platforms
   22.20 +================================
   22.21 +(code compiles, but not thoroughly tested)
   22.22 +================================
   22.23 +FreeBSD
   22.24 +NetBSD
   22.25 +OpenBSD
   22.26 +Solaris
   22.27 +
   22.28 +Platforms supported by volunteers
   22.29 +=================================
   22.30 +Haiku - maintained by Axel Dörfler <axeld@pinc-software.de>
   22.31 +PSP - maintained by 527721088@qq.com
   22.32 +Pandora - maintained by Scott Smith <pickle136@sbcglobal.net>
   22.33 +
   22.34 +Platforms that need maintainers
   22.35 +===============================
    23.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.2 +++ b/README-porting.txt	Sun May 26 11:06:17 2013 -0700
    23.3 @@ -0,0 +1,61 @@
    23.4 +
    23.5 +* Porting To A New Platform
    23.6 +
    23.7 +  The first thing you have to do when porting to a new platform, is look at
    23.8 +include/SDL_platform.h and create an entry there for your operating system.
    23.9 +The standard format is __PLATFORM__, where PLATFORM is the name of the OS.
   23.10 +Ideally SDL_platform.h will be able to auto-detect the system it's building
   23.11 +on based on C preprocessor symbols.
   23.12 +
   23.13 +There are two basic ways of building SDL at the moment:
   23.14 +
   23.15 +1. The "UNIX" way:  ./configure; make; make install
   23.16 +
   23.17 +   If you have a GNUish system, then you might try this.  Edit configure.in,
   23.18 +   take a look at the large section labelled:
   23.19 +	"Set up the configuration based on the target platform!"
   23.20 +   Add a section for your platform, and then re-run autogen.sh and build!
   23.21 +
   23.22 +2. Using an IDE:
   23.23 +
   23.24 +   If you're using an IDE or other non-configure build system, you'll probably
   23.25 +   want to create a custom SDL_config.h for your platform.  Edit SDL_config.h,
   23.26 +   add a section for your platform, and create a custom SDL_config_{platform}.h,
   23.27 +   based on SDL_config.h.minimal and SDL_config.h.in
   23.28 +
   23.29 +   Add the top level include directory to the header search path, and then add
   23.30 +   the following sources to the project:
   23.31 +	src/*.c
   23.32 +	src/atomic/*.c
   23.33 +	src/audio/*.c
   23.34 +	src/cpuinfo/*.c
   23.35 +	src/events/*.c
   23.36 +	src/file/*.c
   23.37 +	src/haptic/*.c
   23.38 +	src/joystick/*.c
   23.39 +	src/power/*.c
   23.40 +	src/render/*.c
   23.41 +	src/stdlib/*.c
   23.42 +	src/thread/*.c
   23.43 +	src/timer/*.c
   23.44 +	src/video/*.c
   23.45 +	src/audio/disk/*.c
   23.46 +	src/audio/dummy/*.c
   23.47 +	src/video/dummy/*.c
   23.48 +	src/haptic/dummy/*.c
   23.49 +	src/joystick/dummy/*.c
   23.50 +	src/main/dummy/*.c
   23.51 +	src/thread/generic/*.c
   23.52 +	src/timer/dummy/*.c
   23.53 +	src/loadso/dummy/*.c
   23.54 +
   23.55 +
   23.56 +Once you have a working library without any drivers, you can go back to each
   23.57 +of the major subsystems and start implementing drivers for your platform.
   23.58 +
   23.59 +If you have any questions, don't hesitate to ask on the SDL mailing list:
   23.60 +	http://www.libsdl.org/mailing-list.php
   23.61 +
   23.62 +Enjoy!
   23.63 +	Sam Lantinga				(slouken@libsdl.org)
   23.64 +
    24.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.2 +++ b/README-psp.txt	Sun May 26 11:06:17 2013 -0700
    24.3 @@ -0,0 +1,17 @@
    24.4 +SDL port for the Sony PSP contributed by 
    24.5 +   Captian Lex 
    24.6 +
    24.7 +Credit to
    24.8 +   Marcus R.Brown,Jim Paris,Matthew H for the original SDL 1.2 for PSP
    24.9 +   Geecko for his PSP GU lib "Glib2d"
   24.10 +
   24.11 +Building
   24.12 +--------
   24.13 +To build for the PSP, make sure psp-config is in the path and run:
   24.14 +   make -f Makefile.psp
   24.15 +
   24.16 +
   24.17 +
   24.18 +To Do
   24.19 +------
   24.20 +PSP Screen Keyboard
    25.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    25.2 +++ b/README-touch.txt	Sun May 26 11:06:17 2013 -0700
    25.3 @@ -0,0 +1,84 @@
    25.4 +===========================================================================
    25.5 +System Specific Notes
    25.6 +===========================================================================
    25.7 +Linux:
    25.8 +The linux touch system is currently based off event streams, and proc/bus/devices. The active user must be given permissions to read /dev/input/TOUCHDEVICE, where TOUCHDEVICE is the event stream for your device. Currently only Wacom tablets are supported. If you have an unsupported tablet contact me at jim.tla+sdl_touch@gmail.com and I will help you get support for it.
    25.9 +
   25.10 +ac: 
   25.11 +The Mac and iPhone APIs are pretty. If your touch device supports them then you'll be fine. If it doesn't, then there isn't much we can do.
   25.12 +
   25.13 +iPhone: 
   25.14 +Works out of box.
   25.15 +
   25.16 +Windows:
   25.17 +Unfortunately there is no windows support as of yet. Support for Windows 7 is planned, but we currently have no way to test. If you have a Windows 7 WM_TOUCH supported device, and are willing to help test please contact me at jim.tla+sdl_touch@gmail.com
   25.18 +
   25.19 +===========================================================================
   25.20 +Events
   25.21 +===========================================================================
   25.22 +SDL_FINGERDOWN:
   25.23 +Sent when a finger (or stylus) is placed on a touch device.
   25.24 +Fields:
   25.25 +event.tfinger.touchId  - the Id of the touch device.
   25.26 +event.tfinger.fingerId - the Id of the finger which just went down.
   25.27 +event.tfinger.x        - the x coordinate of the touch (0..1)
   25.28 +event.tfinger.y        - the y coordinate of the touch (0..1)
   25.29 +event.tfinger.pressure - the pressure of the touch (0..1)
   25.30 +
   25.31 +SDL_FINGERMOTION:
   25.32 +Sent when a finger (or stylus) is moved on the touch device.
   25.33 +Fields:
   25.34 +Same as SDL_FINGERDOWN but with additional:
   25.35 +event.tfinger.dx       - change in x coordinate during this motion event.
   25.36 +event.tfinger.dy       - change in y coordinate during this motion event.
   25.37 +
   25.38 +SDL_FINGERUP:
   25.39 +Sent when a finger (or stylus) is lifted from the touch device.
   25.40 +Fields:
   25.41 +Same as SDL_FINGERDOWN.
   25.42 +
   25.43 +
   25.44 +===========================================================================
   25.45 +Functions
   25.46 +===========================================================================
   25.47 +SDL provides the ability to access the underlying Finger structures.
   25.48 +These structures should _never_ be modified.
   25.49 +
   25.50 +The following functions are included from SDL_touch.h
   25.51 +
   25.52 +To get a SDL_TouchID call SDL_GetTouchDevice(index).
   25.53 +This returns a SDL_TouchID.
   25.54 +IMPORTANT: If the touch has been removed, or there is no touch with the given ID, SDL_GetTouchID will return 0. Be sure to check for this!
   25.55 +
   25.56 +The number of touch devices can be queried with SDL_GetNumTouchDevices().
   25.57 +
   25.58 +A SDL_TouchID may be used to get pointers to SDL_Finger.
   25.59 +
   25.60 +SDL_GetNumTouchFingers(touchID) may be used to get the number of fingers currently down on the device.
   25.61 +
   25.62 +The most common reason to access SDL_Finger is to query the fingers outside the event. In most cases accessing the fingers is using the event. This would be accomplished by code like the following:
   25.63 +
   25.64 +      float x = event.tfinger.x;
   25.65 +      float y = event.tfinger.y;
   25.66 +
   25.67 +
   25.68 +
   25.69 +To get a SDL_Finger, call SDL_GetTouchFinger(touchID,index), where touchID is a SDL_TouchID, and index is the requested finger.
   25.70 +This returns a SDL_Finger*, or NULL if the finger does not exist, or has been removed.
   25.71 +A SDL_Finger is guaranteed to be persistent for the duration of a touch, but it will be de-allocated as soon as the finger is removed. This occurs when the SDL_FINGERUP event is _added_ to the event queue, and thus _before_ the SDL_FINGERUP event is polled.
   25.72 +As a result, be very careful to check for NULL return values.
   25.73 +
   25.74 +A SDL_Finger has the following fields:
   25.75 +>x,y,pressure:
   25.76 +	The current coordinates of the touch.
   25.77 +>pressure:
   25.78 +	The pressure of the touch.
   25.79 +
   25.80 +===========================================================================
   25.81 +Notes
   25.82 +===========================================================================
   25.83 +For a complete example see test/testgesture.c
   25.84 +
   25.85 +Please direct questions/comments to:
   25.86 +   jim.tla+sdl_touch@gmail.com
   25.87 +   (original author, API was changed since)
    26.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    26.2 +++ b/README-wince.txt	Sun May 26 11:06:17 2013 -0700
    26.3 @@ -0,0 +1,9 @@
    26.4 +
    26.5 +Windows CE is no longer supported by SDL.
    26.6 +
    26.7 +We have left the CE support in SDL 1.2 for those that must have it, and we
    26.8 +will accept patches that support more modern Windows Mobile platforms for
    26.9 +SDL 2.0.
   26.10 +
   26.11 +--ryan.
   26.12 +
    27.1 --- a/README.DirectFB	Sun May 26 12:30:52 2013 +0200
    27.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    27.3 @@ -1,106 +0,0 @@
    27.4 -SDL on DirectFB
    27.5 -
    27.6 -Supports:
    27.7 -
    27.8 -- Hardware YUV overlays
    27.9 -- OpenGL - software only
   27.10 -- 2D/3D accelerations (depends on directfb driver)
   27.11 -- multiple displays
   27.12 -- windows
   27.13 -
   27.14 -What you need:
   27.15 -
   27.16 -DirectFB 1.0.1, 1.2.x, 1.3.0
   27.17 -Kernel-Framebuffer support: required: vesafb, radeonfb .... 
   27.18 -Mesa 7.0.x	   - optional for OpenGL
   27.19 -
   27.20 -/etc/directfbrc
   27.21 -
   27.22 -This file should contain the following lines to make
   27.23 -your joystick work and avoid crashes:
   27.24 -------------------------
   27.25 -disable-module=joystick
   27.26 -disable-module=cle266
   27.27 -disable-module=cyber5k
   27.28 -no-linux-input-grab
   27.29 -------------------------
   27.30 -
   27.31 -To disable to use x11 backend when DISPLAY variable is found use
   27.32 -
   27.33 -export SDL_DIRECTFB_X11_CHECK=0
   27.34 -
   27.35 -To disable the use of linux input devices, i.e. multimice/multikeyboard support,
   27.36 -use
   27.37 -
   27.38 -export SDL_DIRECTFB_LINUX_INPUT=0
   27.39 -
   27.40 -To use hardware accelerated YUV-overlays for YUV-textures, use:
   27.41 -
   27.42 -export SDL_DIRECTFB_YUV_DIRECT=1
   27.43 -
   27.44 -This is disabled by default. It will only support one 
   27.45 -YUV texture, namely the first. Every other YUV texture will be
   27.46 -rendered in software.
   27.47 -
   27.48 -In addition, you may use (directfb-1.2.x)
   27.49 -
   27.50 -export SDL_DIRECTFB_YUV_UNDERLAY=1
   27.51 -
   27.52 -to make the YUV texture an underlay. This will make the cursor to
   27.53 -be shown.
   27.54 -
   27.55 -Simple Window Manager
   27.56 -=====================
   27.57 -
   27.58 -The driver has support for a very, very basic window manager you may
   27.59 -want to use when running with "wm=default". Use
   27.60 -
   27.61 -export SDL_DIRECTFB_WM=1
   27.62 -
   27.63 -to enable basic window borders. In order to have the window title rendered,
   27.64 -you need to have the following font installed:
   27.65 -
   27.66 -/usr/share/fonts/truetype/freefont/FreeSans.ttf
   27.67 -
   27.68 -OpenGL Support
   27.69 -==============
   27.70 -
   27.71 -The following instructions will give you *software* OpenGL. However this
   27.72 -works at least on all directfb supported platforms.
   27.73 -
   27.74 -As of this writing 20100802 you need to pull Mesa from git and do the following:
   27.75 -
   27.76 -------------------------
   27.77 -git clone git://anongit.freedesktop.org/git/mesa/mesa
   27.78 -cd mesa 
   27.79 -git checkout 2c9fdaf7292423c157fc79b5ce43f0f199dd753a
   27.80 -------------------------
   27.81 -
   27.82 -Edit configs/linux-directfb so that the Directories-section looks like
   27.83 -------------------------
   27.84 -# Directories
   27.85 -SRC_DIRS     = mesa glu 
   27.86 -GLU_DIRS     = sgi
   27.87 -DRIVER_DIRS  = directfb
   27.88 -PROGRAM_DIRS = 
   27.89 -------------------------
   27.90 -
   27.91 -make linux-directfb
   27.92 -make
   27.93 -
   27.94 -echo Installing - please enter sudo pw.
   27.95 -
   27.96 -sudo make install INSTALL_DIR=/usr/local/dfb_GL
   27.97 -cd src/mesa/drivers/directfb
   27.98 -make
   27.99 -sudo make install INSTALL_DIR=/usr/local/dfb_GL
  27.100 -------------------------
  27.101 -
  27.102 -To run the SDL - testprograms:
  27.103 -
  27.104 -export SDL_VIDEODRIVER=directfb
  27.105 -export LD_LIBRARY_PATH=/usr/local/dfb_GL/lib
  27.106 -export LD_PRELOAD=/usr/local/dfb_GL/libGL.so.7
  27.107 -
  27.108 -./testgl
  27.109 -
    28.1 --- a/README.HG	Sun May 26 12:30:52 2013 +0200
    28.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    28.3 @@ -1,23 +0,0 @@
    28.4 -The latest development version of SDL is available via Mercurial.
    28.5 -Mercurial allows you to get up-to-the-minute fixes and enhancements;
    28.6 -as a developer works on a source tree, you can use "hg" to mirror that
    28.7 -source tree instead of waiting for an official release. Please look
    28.8 -at the Mercurial website ( http://mercurial.selenic.com/ ) for more
    28.9 -information on using hg, where you can also download software for
   28.10 -Mac OS X, Windows, and Unix systems.
   28.11 -
   28.12 -  hg clone http://hg.libsdl.org/SDL
   28.13 -
   28.14 -If you are building SDL with an IDE, you will need to copy the file
   28.15 -include/SDL_config.h.default to include/SDL_config.h before building.
   28.16 -
   28.17 -If you are building SDL via configure, you will need to run autogen.sh
   28.18 -before running configure.
   28.19 -
   28.20 -There is a web interface to the subversion repository at:
   28.21 -
   28.22 -	http://hg.libsdl.org/SDL/
   28.23 -
   28.24 -There is an RSS feed available at that URL, for those that want to
   28.25 -track commits in real time.
   28.26 -
    29.1 --- a/README.MacOSX	Sun May 26 12:30:52 2013 +0200
    29.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    29.3 @@ -1,186 +0,0 @@
    29.4 -==============================================================================
    29.5 -Using the Simple DirectMedia Layer with Mac OS X
    29.6 -==============================================================================
    29.7 -
    29.8 -These instructions are for people using Apple's Mac OS X (pronounced
    29.9 -"ten").
   29.10 -
   29.11 -From the developer's point of view, OS X is a sort of hybrid Mac and
   29.12 -Unix system, and you have the option of using either traditional
   29.13 -command line tools or Apple's IDE Xcode.
   29.14 -
   29.15 -To build SDL using the command line, use the standard configure and make
   29.16 -process:
   29.17 -
   29.18 -	./configure
   29.19 -	make
   29.20 -	sudo make install
   29.21 -
   29.22 -You can also build SDL as a Universal library (a single binary for both
   29.23 -PowerPC and Intel architectures), on Mac OS X 10.4 and newer, by using
   29.24 -the fatbuild.sh script in build-scripts:
   29.25 -	sh build-scripts/fatbuild.sh
   29.26 -	sudo build-scripts/fatbuild.sh install
   29.27 -This script builds SDL with 10.2 ABI compatibility on PowerPC and 10.4
   29.28 -ABI compatibility on Intel architectures.  For best compatibility you
   29.29 -should compile your application the same way.  A script which wraps
   29.30 -gcc to make this easy is provided in test/gcc-fat.sh
   29.31 -
   29.32 -To use the library once it's built, you essential have two possibilities:
   29.33 -use the traditional autoconf/automake/make method, or use Xcode.
   29.34 -
   29.35 -==============================================================================
   29.36 -Using the Simple DirectMedia Layer with a traditional Makefile
   29.37 -==============================================================================
   29.38 -
   29.39 -An existing autoconf/automake build system for your SDL app has good chances
   29.40 -to work almost unchanged on OS X. However, to produce a "real" Mac OS X binary
   29.41 -that you can distribute to users, you need to put the generated binary into a
   29.42 -so called "bundle", which basically is a fancy folder with a name like
   29.43 -"MyCoolGame.app".
   29.44 -
   29.45 -To get this build automatically, add something like the following rule to
   29.46 -your Makefile.am:
   29.47 -
   29.48 -bundle_contents = APP_NAME.app/Contents
   29.49 -APP_NAME_bundle: EXE_NAME
   29.50 -	mkdir -p $(bundle_contents)/MacOS
   29.51 -	mkdir -p $(bundle_contents)/Resources
   29.52 -	echo "APPL????" > $(bundle_contents)/PkgInfo
   29.53 -	$(INSTALL_PROGRAM) $< $(bundle_contents)/MacOS/
   29.54 -
   29.55 -You should replace EXE_NAME with the name of the executable. APP_NAME is what
   29.56 -will be visible to the user in the Finder. Usually it will be the same
   29.57 -as EXE_NAME but capitalized. E.g. if EXE_NAME is "testgame" then APP_NAME 
   29.58 -usually is "TestGame". You might also want to use @PACKAGE@ to use the package
   29.59 -name as specified in your configure.in file.
   29.60 -
   29.61 -If your project builds more than one application, you will have to do a bit
   29.62 -more. For each of your target applications, you need a separate rule.
   29.63 -
   29.64 -If you want the created bundles to be installed, you may want to add this
   29.65 -rule to your Makefile.am:
   29.66 -
   29.67 -install-exec-hook: APP_NAME_bundle
   29.68 -	rm -rf $(DESTDIR)$(prefix)/Applications/APP_NAME.app
   29.69 -	mkdir -p $(DESTDIR)$(prefix)/Applications/
   29.70 -	cp -r $< /$(DESTDIR)$(prefix)Applications/
   29.71 -
   29.72 -This rule takes the Bundle created by the rule from step 3 and installs them
   29.73 -into $(DESTDIR)$(prefix)/Applications/.
   29.74 -
   29.75 -Again, if you want to install multiple applications, you will have to augment
   29.76 -the make rule accordingly.
   29.77 -
   29.78 -
   29.79 -But beware! That is only part of the story! With the above, you end up with
   29.80 -a bare bone .app bundle, which is double clickable from the Finder. But
   29.81 -there are some more things you should do before shipping your product...
   29.82 -
   29.83 -1) The bundle right now probably is dynamically linked against SDL. That 
   29.84 -   means that when you copy it to another computer, *it will not run*,
   29.85 -   unless you also install SDL on that other computer. A good solution
   29.86 -   for this dilemma is to static link against SDL. On OS X, you can
   29.87 -   achieve that by linking against the libraries listed by
   29.88 -     sdl-config --static-libs
   29.89 -   instead of those listed by
   29.90 -     sdl-config --libs
   29.91 -   Depending on how exactly SDL is integrated into your build systems, the
   29.92 -   way to achieve that varies, so I won't describe it here in detail
   29.93 -2) Add an 'Info.plist' to your application. That is a special XML file which
   29.94 -   contains some meta-information about your application (like some copyright
   29.95 -   information, the version of your app, the name of an optional icon file,
   29.96 -   and other things). Part of that information is displayed by the Finder
   29.97 -   when you click on the .app, or if you look at the "Get Info" window.
   29.98 -   More information about Info.plist files can be found on Apple's homepage.
   29.99 -
  29.100 -
  29.101 -As a final remark, let me add that I use some of the techniques (and some
  29.102 -variations of them) in Exult and ScummVM; both are available in source on
  29.103 -the net, so feel free to take a peek at them for inspiration!
  29.104 -
  29.105 -
  29.106 -==============================================================================
  29.107 -Using the Simple DirectMedia Layer with Xcode
  29.108 -==============================================================================
  29.109 -
  29.110 -These instructions are for using Apple's Xcode IDE to build SDL applications.
  29.111 -
  29.112 -- First steps
  29.113 -
  29.114 -The first thing to do is to unpack the Xcode.tar.gz archive in the
  29.115 -top level SDL directory (where the Xcode.tar.gz archive resides).
  29.116 -Because Stuffit Expander will unpack the archive into a subdirectory,
  29.117 -you should unpack the archive manually from the command line:
  29.118 -	cd [path_to_SDL_source]
  29.119 -	tar zxf Xcode.tar.gz
  29.120 -This will create a new folder called Xcode, which you can browse
  29.121 -normally from the Finder.
  29.122 -
  29.123 -- Building the Framework
  29.124 -
  29.125 -The SDL Library is packaged as a framework bundle, an organized
  29.126 -relocatable folder hierarchy of executable code, interface headers,
  29.127 -and additional resources. For practical purposes, you can think of a 
  29.128 -framework as a more user and system-friendly shared library, whose library
  29.129 -file behaves more or less like a standard UNIX shared library.
  29.130 -
  29.131 -To build the framework, simply open the framework project and build it. 
  29.132 -By default, the framework bundle "SDL.framework" is installed in 
  29.133 -/Library/Frameworks. Therefore, the testers and project stationary expect
  29.134 -it to be located there. However, it will function the same in any of the
  29.135 -following locations:
  29.136 -
  29.137 -    ~/Library/Frameworks
  29.138 -    /Local/Library/Frameworks
  29.139 -    /System/Library/Frameworks
  29.140 -
  29.141 -- Build Options
  29.142 -    There are two "Build Styles" (See the "Targets" tab) for SDL.
  29.143 -    "Deployment" should be used if you aren't tweaking the SDL library.
  29.144 -    "Development" should be used to debug SDL apps or the library itself.
  29.145 -
  29.146 -- Building the Testers
  29.147 -    Open the SDLTest project and build away!
  29.148 -
  29.149 -- Using the Project Stationary
  29.150 -    Copy the stationary to the indicated folders to access it from
  29.151 -    the "New Project" and "Add target" menus. What could be easier?
  29.152 -
  29.153 -- Setting up a new project by hand
  29.154 -    Some of you won't want to use the Stationary so I'll give some tips:
  29.155 -    * Create a new "Cocoa Application"
  29.156 -    * Add src/main/macosx/SDLMain.m , .h and .nib to your project
  29.157 -    * Remove "main.c" from your project
  29.158 -    * Remove "MainMenu.nib" from your project
  29.159 -    * Add "$(HOME)/Library/Frameworks/SDL.framework/Headers" to include path
  29.160 -    * Add "$(HOME)/Library/Frameworks" to the frameworks search path
  29.161 -    * Add "-framework SDL -framework Foundation -framework AppKit" to "OTHER_LDFLAGS"
  29.162 -    * Set the "Main Nib File" under "Application Settings" to "SDLMain.nib"
  29.163 -    * Add your files
  29.164 -    * Clean and build
  29.165 -
  29.166 -- Building from command line
  29.167 -    Use pbxbuild in the same directory as your .pbproj file
  29.168 -
  29.169 -- Running your app
  29.170 -    You can send command line args to your app by either invoking it from
  29.171 -    the command line (in *.app/Contents/MacOS) or by entering them in the
  29.172 -    "Executables" panel of the target settings.
  29.173 -    
  29.174 -- Implementation Notes
  29.175 -    Some things that may be of interest about how it all works...
  29.176 -    * Working directory
  29.177 -        As defined in the SDL_main.m file, the working directory of your SDL app
  29.178 -        is by default set to its parent. You may wish to change this to better
  29.179 -        suit your needs.
  29.180 -    * You have a Cocoa App!
  29.181 -        Your SDL app is essentially a Cocoa application. When your app
  29.182 -        starts up and the libraries finish loading, a Cocoa procedure is called,
  29.183 -        which sets up the working directory and calls your main() method.
  29.184 -        You are free to modify your Cocoa app with generally no consequence 
  29.185 -        to SDL. You cannot, however, easily change the SDL window itself.
  29.186 -        Functionality may be added in the future to help this.
  29.187 -
  29.188 -
  29.189 -Known bugs are listed in the file "BUGS"
    30.1 --- a/README.Platforms	Sun May 26 12:30:52 2013 +0200
    30.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    30.3 @@ -1,32 +0,0 @@
    30.4 -
    30.5 -This is a list of the platforms SDL supports, and who maintains them.
    30.6 -
    30.7 -Officially supported platforms
    30.8 -==============================
    30.9 -(code compiles, and thoroughly tested for release)
   30.10 -==============================
   30.11 -Windows XP
   30.12 -Windows Vista
   30.13 -Windows 7
   30.14 -Mac OS X 10.4+
   30.15 -Linux 2.6+
   30.16 -iOS 3.1.3+
   30.17 -Android 2.3.3+
   30.18 -
   30.19 -Unofficially supported platforms
   30.20 -================================
   30.21 -(code compiles, but not thoroughly tested)
   30.22 -================================
   30.23 -FreeBSD
   30.24 -NetBSD
   30.25 -OpenBSD
   30.26 -Solaris
   30.27 -
   30.28 -Platforms supported by volunteers
   30.29 -=================================
   30.30 -Haiku - maintained by Axel Dörfler <axeld@pinc-software.de>
   30.31 -PSP - maintained by 527721088@qq.com
   30.32 -Pandora - maintained by Scott Smith <pickle136@sbcglobal.net>
   30.33 -
   30.34 -Platforms that need maintainers
   30.35 -===============================
    31.1 --- a/README.Porting	Sun May 26 12:30:52 2013 +0200
    31.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    31.3 @@ -1,61 +0,0 @@
    31.4 -
    31.5 -* Porting To A New Platform
    31.6 -
    31.7 -  The first thing you have to do when porting to a new platform, is look at
    31.8 -include/SDL_platform.h and create an entry there for your operating system.
    31.9 -The standard format is __PLATFORM__, where PLATFORM is the name of the OS.
   31.10 -Ideally SDL_platform.h will be able to auto-detect the system it's building
   31.11 -on based on C preprocessor symbols.
   31.12 -
   31.13 -There are two basic ways of building SDL at the moment:
   31.14 -
   31.15 -1. The "UNIX" way:  ./configure; make; make install
   31.16 -
   31.17 -   If you have a GNUish system, then you might try this.  Edit configure.in,
   31.18 -   take a look at the large section labelled:
   31.19 -	"Set up the configuration based on the target platform!"
   31.20 -   Add a section for your platform, and then re-run autogen.sh and build!
   31.21 -
   31.22 -2. Using an IDE:
   31.23 -
   31.24 -   If you're using an IDE or other non-configure build system, you'll probably
   31.25 -   want to create a custom SDL_config.h for your platform.  Edit SDL_config.h,
   31.26 -   add a section for your platform, and create a custom SDL_config_{platform}.h,
   31.27 -   based on SDL_config.h.minimal and SDL_config.h.in
   31.28 -
   31.29 -   Add the top level include directory to the header search path, and then add
   31.30 -   the following sources to the project:
   31.31 -	src/*.c
   31.32 -	src/atomic/*.c
   31.33 -	src/audio/*.c
   31.34 -	src/cpuinfo/*.c
   31.35 -	src/events/*.c
   31.36 -	src/file/*.c
   31.37 -	src/haptic/*.c
   31.38 -	src/joystick/*.c
   31.39 -	src/power/*.c
   31.40 -	src/render/*.c
   31.41 -	src/stdlib/*.c
   31.42 -	src/thread/*.c
   31.43 -	src/timer/*.c
   31.44 -	src/video/*.c
   31.45 -	src/audio/disk/*.c
   31.46 -	src/audio/dummy/*.c
   31.47 -	src/video/dummy/*.c
   31.48 -	src/haptic/dummy/*.c
   31.49 -	src/joystick/dummy/*.c
   31.50 -	src/main/dummy/*.c
   31.51 -	src/thread/generic/*.c
   31.52 -	src/timer/dummy/*.c
   31.53 -	src/loadso/dummy/*.c
   31.54 -
   31.55 -
   31.56 -Once you have a working library without any drivers, you can go back to each
   31.57 -of the major subsystems and start implementing drivers for your platform.
   31.58 -
   31.59 -If you have any questions, don't hesitate to ask on the SDL mailing list:
   31.60 -	http://www.libsdl.org/mailing-list.php
   31.61 -
   31.62 -Enjoy!
   31.63 -	Sam Lantinga				(slouken@libsdl.org)
   31.64 -
    32.1 --- a/README.WinCE	Sun May 26 12:30:52 2013 +0200
    32.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    32.3 @@ -1,9 +0,0 @@
    32.4 -
    32.5 -Windows CE is no longer supported by SDL.
    32.6 -
    32.7 -We have left the CE support in SDL 1.2 for those that must have it, and we
    32.8 -will accept patches that support more modern Windows Mobile platforms for
    32.9 -SDL 2.0.
   32.10 -
   32.11 ---ryan.
   32.12 -
    33.1 --- a/README.android	Sun May 26 12:30:52 2013 +0200
    33.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    33.3 @@ -1,384 +0,0 @@
    33.4 -================================================================================
    33.5 -Simple DirectMedia Layer for Android
    33.6 -================================================================================
    33.7 -
    33.8 -Requirements:
    33.9 -
   33.10 -Android SDK (version 10 or later)
   33.11 -http://developer.android.com/sdk/index.html
   33.12 -
   33.13 -Android NDK r7 or later
   33.14 -http://developer.android.com/sdk/ndk/index.html
   33.15 -
   33.16 -Minimum API level supported by SDL: 10 (Android 2.3.3)
   33.17 -
   33.18 -================================================================================
   33.19 - How the port works
   33.20 -================================================================================
   33.21 -
   33.22 -- Android applications are Java-based, optionally with parts written in C
   33.23 -- As SDL apps are C-based, we use a small Java shim that uses JNI to talk to 
   33.24 -the SDL library
   33.25 -- This means that your application C code must be placed inside an Android 
   33.26 -Java project, along with some C support code that communicates with Java
   33.27 -- This eventually produces a standard Android .apk package
   33.28 -
   33.29 -The Android Java code implements an "Activity" and can be found in:
   33.30 -android-project/src/org/libsdl/app/SDLActivity.java
   33.31 -
   33.32 -The Java code loads your game code, the SDL shared library, and
   33.33 -dispatches to native functions implemented in the SDL library:
   33.34 -src/SDL_android.cpp
   33.35 -
   33.36 -Your project must include some glue code that starts your main() routine:
   33.37 -src/main/android/SDL_android_main.cpp
   33.38 -
   33.39 -
   33.40 -================================================================================
   33.41 - Building an app
   33.42 -================================================================================
   33.43 -
   33.44 -Instructions:
   33.45 -1. Copy the android-project directory wherever you want to keep your projects
   33.46 -   and rename it to the name of your project.
   33.47 -2. Move or symlink this SDL directory into the <project>/jni directory
   33.48 -3. Edit <project>/jni/src/Android.mk to include your source files
   33.49 -4. Run 'ndk-build' (a script provided by the NDK). This compiles the C source
   33.50 -
   33.51 -If you want to use the Eclipse IDE, skip to the Eclipse section below.
   33.52 -
   33.53 -5. Create <project>/local.properties and use that to point to the Android SDK directory, by writing a line with the following form:
   33.54 -sdk.dir=PATH_TO_ANDROID_SDK
   33.55 -6. Run 'ant debug' in android/project. This compiles the .java and eventually 
   33.56 -   creates a .apk with the native code embedded
   33.57 -7. 'ant debug install' will push the apk to the device or emulator (if connected)
   33.58 -
   33.59 -Here's an explanation of the files in the Android project, so you can customize them:
   33.60 -
   33.61 -android-project/
   33.62 -	AndroidManifest.xml	- package manifest. Among others, it contains the class name
   33.63 -				  of the main Activity and the package name of the application.
   33.64 -	build.properties	- empty
   33.65 -	build.xml		- build description file, used by ant. The actual application name
   33.66 -				  is specified here.
   33.67 -	default.properties	- holds the target ABI for the application, android-10 and up
   33.68 -	project.properties	- holds the target ABI for the application, android-10 and up
   33.69 -	local.properties	- holds the SDK path, you should change this to the path to your SDK
   33.70 -	jni/			- directory holding native code
   33.71 -	jni/Android.mk		- Android makefile that can call recursively the Android.mk files
   33.72 -				  in all subdirectories
   33.73 -	jni/SDL/		- (symlink to) directory holding the SDL library files
   33.74 -	jni/SDL/Android.mk	- Android makefile for creating the SDL shared library
   33.75 -	jni/src/		- directory holding your C/C++ source
   33.76 -	jni/src/Android.mk	- Android makefile that you should customize to include your 
   33.77 -                                  source code and any library references
   33.78 -	res/			- directory holding resources for your application
   33.79 -	res/drawable-*		- directories holding icons for different phone hardware. Could be
   33.80 -				  one dir called "drawable".
   33.81 -	res/layout/main.xml	- Usually contains a file main.xml, which declares the screen layout.
   33.82 -				  We don't need it because we use the SDL video output.
   33.83 -	res/values/strings.xml	- strings used in your application, including the application name
   33.84 -				  shown on the phone.
   33.85 -	src/org/libsdl/app/SDLActivity.java - the Java class handling the initialization and binding
   33.86 -				  to SDL.  Be very careful changing this, as the SDL library relies
   33.87 -				  on this implementation.
   33.88 -
   33.89 -
   33.90 -================================================================================
   33.91 - Customizing your application name
   33.92 -================================================================================
   33.93 -
   33.94 -To customize your application name, edit AndroidManifest.xml and replace
   33.95 -"org.libsdl.app" with an identifier for your product package.
   33.96 -
   33.97 -Then create a Java class extending SDLActivity and place it in a directory
   33.98 -under src matching your package, e.g.
   33.99 -	src/com/gamemaker/game/MyGame.java
  33.100 -
  33.101 -Here's an example of a minimal class file:
  33.102 ---- MyGame.java --------------------------
  33.103 -package com.gamemaker.game;
  33.104 -
  33.105 -import org.libsdl.app.SDLActivity; 
  33.106 -
  33.107 -/* 
  33.108 - * A sample wrapper class that just calls SDLActivity 
  33.109 - */ 
  33.110 -
  33.111 -public class MyGame extends SDLActivity { }
  33.112 -
  33.113 -------------------------------------------
  33.114 -
  33.115 -Then replace "SDLActivity" in AndroidManifest.xml with the name of your
  33.116 -class, .e.g. "MyGame"
  33.117 -
  33.118 -================================================================================
  33.119 - Customizing your application icon
  33.120 -================================================================================
  33.121 -
  33.122 -Conceptually changing your icon is just replacing the "ic_launcher.png" files in
  33.123 -the drawable directories under the res directory. There are four directories for
  33.124 -different screen sizes. These can be replaced with one dir called "drawable",
  33.125 -containing an icon file "ic_launcher.png" with dimensions 48x48 or 72x72.
  33.126 -
  33.127 -You may need to change the name of your icon in AndroidManifest.xml to match
  33.128 -this icon filename.
  33.129 -
  33.130 -================================================================================
  33.131 - Loading assets
  33.132 -================================================================================
  33.133 -
  33.134 -Any files you put in the "assets" directory of your android-project directory
  33.135 -will get bundled into the application package and you can load them using the
  33.136 -standard functions in SDL_rwops.h.
  33.137 -
  33.138 -There are also a few Android specific functions that allow you to get other
  33.139 -useful paths for saving and loading data:
  33.140 -SDL_AndroidGetInternalStoragePath()
  33.141 -SDL_AndroidGetExternalStorageState()
  33.142 -SDL_AndroidGetExternalStoragePath()
  33.143 -
  33.144 -See SDL_system.h for more details on these functions.
  33.145 -
  33.146 -The asset packaging system will, by default, compress certain file extensions.
  33.147 -SDL includes two asset file access mechanisms, the preferred one is the so
  33.148 -called "File Descriptor" method, which is faster and doesn't involve the Dalvik
  33.149 -GC, but given this method does not work on compressed assets, there is also the
  33.150 -"Input Stream" method, which is automatically used as a fall back by SDL. You
  33.151 -may want to keep this fact in mind when building your APK, specially when large
  33.152 -files are involved.
  33.153 -For more information on which extensions get compressed by default and how to
  33.154 -disable this behaviour, see for example:
  33.155 -    
  33.156 -http://ponystyle.com/blog/2010/03/26/dealing-with-asset-compression-in-android-apps/
  33.157 -
  33.158 -================================================================================
  33.159 - Pause / Resume behaviour
  33.160 -================================================================================
  33.161 -
  33.162 -If SDL is compiled with SDL_ANDROID_BLOCK_ON_PAUSE defined (the default),
  33.163 -the event loop will block itself when the app is paused (ie, when the user
  33.164 -returns to the main Android dashboard). Blocking is better in terms of battery
  33.165 -use, and it allows your app to spring back to life instantaneously after resume
  33.166 -(versus polling for a resume message).
  33.167 -
  33.168 -Upon resume, SDL will attempt to restore the GL context automatically.
  33.169 -In modern devices (Android 3.0 and up) this will most likely succeed and your
  33.170 -app can continue to operate as it was.
  33.171 -
  33.172 -However, there's a chance (on older hardware, or on systems under heavy load),
  33.173 -where the GL context can not be restored. In that case you have to listen for
  33.174 -a specific message, (which is not yet implemented!) and restore your textures
  33.175 -manually or quit the app (which is actually the kind of behaviour you'll see
  33.176 -under iOS, if the OS can not restore your GL context it will just kill your app)
  33.177 -
  33.178 -================================================================================
  33.179 - Threads and the Java VM
  33.180 -================================================================================
  33.181 -
  33.182 -For a quick tour on how Linux native threads interoperate with the Java VM, take
  33.183 -a look here: http://developer.android.com/guide/practices/jni.html
  33.184 -If you want to use threads in your SDL app, it's strongly recommended that you
  33.185 -do so by creating them using SDL functions. This way, the required attach/detach
  33.186 -handling is managed by SDL automagically. If you have threads created by other
  33.187 -means and they make calls to SDL functions, make sure that you call
  33.188 -Android_JNI_SetupThread before doing anything else otherwise SDL will attach
  33.189 -your thread automatically anyway (when you make an SDL call), but it'll never
  33.190 -detach it.
  33.191 -
  33.192 -================================================================================
  33.193 - Using STL
  33.194 -================================================================================
  33.195 -
  33.196 -You can use STL in your project by creating an Application.mk file in the jni
  33.197 -folder and adding the following line:
  33.198 -APP_STL := stlport_static
  33.199 -
  33.200 -For more information check out CPLUSPLUS-SUPPORT.html in the NDK documentation.
  33.201 -
  33.202 -================================================================================
  33.203 - Additional documentation
  33.204 -================================================================================
  33.205 -
  33.206 -The documentation in the NDK docs directory is very helpful in understanding the
  33.207 -build process and how to work with native code on the Android platform.
  33.208 -
  33.209 -The best place to start is with docs/OVERVIEW.TXT
  33.210 -
  33.211 -
  33.212 -================================================================================
  33.213 - Using Eclipse
  33.214 -================================================================================
  33.215 -
  33.216 -First make sure that you've installed Eclipse and the Android extensions as described here:
  33.217 -	http://developer.android.com/sdk/eclipse-adt.html
  33.218 -
  33.219 -Once you've copied the SDL android project and customized it, you can create an Eclipse project from it:
  33.220 - * File -> New -> Other
  33.221 - * Select the Android -> Android Project wizard and click Next
  33.222 - * Enter the name you'd like your project to have
  33.223 - * Select "Create project from existing source" and browse for your project directory
  33.224 - * Make sure the Build Target is set to Android 2.0
  33.225 - * Click Finish
  33.226 -
  33.227 -
  33.228 -================================================================================
  33.229 - Using the emulator
  33.230 -================================================================================
  33.231 -
  33.232 -There are some good tips and tricks for getting the most out of the
  33.233 -emulator here: http://developer.android.com/tools/devices/emulator.html
  33.234 -
  33.235 -Especially useful is the info on setting up OpenGL ES 2.0 emulation.
  33.236 -
  33.237 -Notice that this software emulator is incredibly slow and needs a lot of disk space.
  33.238 -Using a real device works better.
  33.239 -
  33.240 -================================================================================
  33.241 - Troubleshooting
  33.242 -================================================================================
  33.243 -
  33.244 -You can create and run an emulator from the Eclipse IDE:
  33.245 - * Window -> Android SDK and AVD Manager
  33.246 -
  33.247 -You can see if adb can see any devices with the following command:
  33.248 -	adb devices
  33.249 -
  33.250 -You can see the output of log messages on the default device with:
  33.251 -	adb logcat
  33.252 -
  33.253 -You can push files to the device with:
  33.254 -	adb push local_file remote_path_and_file
  33.255 -
  33.256 -You can push files to the SD Card at /sdcard, for example:
  33.257 -	adb push moose.dat /sdcard/moose.dat
  33.258 -
  33.259 -You can see the files on the SD card with a shell command:
  33.260 -	adb shell ls /sdcard/
  33.261 -
  33.262 -You can start a command shell on the default device with:
  33.263 -	adb shell
  33.264 -
  33.265 -You can remove the library files of your project (and not the SDL lib files) with:
  33.266 -	ndk-build clean
  33.267 -
  33.268 -You can do a build with the following command:
  33.269 -	ndk-build
  33.270 -
  33.271 -You can see the complete command line that ndk-build is using by passing V=1 on the command line:
  33.272 -	ndk-build V=1
  33.273 -
  33.274 -If your application crashes in native code, you can use addr2line to convert the
  33.275 -addresses in the stack trace to lines in your code.
  33.276 -
  33.277 -For example, if your crash looks like this:
  33.278 -I/DEBUG   (   31): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 400085d0
  33.279 -I/DEBUG   (   31):  r0 00000000  r1 00001000  r2 00000003  r3 400085d4
  33.280 -I/DEBUG   (   31):  r4 400085d0  r5 40008000  r6 afd41504  r7 436c6a7c
  33.281 -I/DEBUG   (   31):  r8 436c6b30  r9 435c6fb0  10 435c6f9c  fp 4168d82c
  33.282 -I/DEBUG   (   31):  ip 8346aff0  sp 436c6a60  lr afd1c8ff  pc afd1c902  cpsr 60000030
  33.283 -I/DEBUG   (   31):          #00  pc 0001c902  /system/lib/libc.so
  33.284 -I/DEBUG   (   31):          #01  pc 0001ccf6  /system/lib/libc.so
  33.285 -I/DEBUG   (   31):          #02  pc 000014bc  /data/data/org.libsdl.app/lib/libmain.so
  33.286 -I/DEBUG   (   31):          #03  pc 00001506  /data/data/org.libsdl.app/lib/libmain.so
  33.287 -
  33.288 -You can see that there's a crash in the C library being called from the main code.
  33.289 -I run addr2line with the debug version of my code:
  33.290 -	arm-eabi-addr2line -C -f -e obj/local/armeabi/libmain.so
  33.291 -and then paste in the number after "pc" in the call stack, from the line that I care about:
  33.292 -000014bc
  33.293 -
  33.294 -I get output from addr2line showing that it's in the quit function, in testspriteminimal.c, on line 23.
  33.295 -
  33.296 -You can add logging to your code to help show what's happening:
  33.297 -
  33.298 -#include <android/log.h>
  33.299 -
  33.300 -	__android_log_print(ANDROID_LOG_INFO, "foo", "Something happened! x = %d", x);
  33.301 -
  33.302 -If you need to build without optimization turned on, you can create a file called
  33.303 -"Application.mk" in the jni directory, with the following line in it:
  33.304 -APP_OPTIM := debug
  33.305 -
  33.306 -
  33.307 -================================================================================
  33.308 - Memory debugging
  33.309 -================================================================================
  33.310 -
  33.311 -The best (and slowest) way to debug memory issues on Android is valgrind.
  33.312 -Valgrind has support for Android out of the box, just grab code using:
  33.313 -	svn co svn://svn.valgrind.org/valgrind/trunk valgrind
  33.314 -... and follow the instructions in the file README.android to build it.
  33.315 -
  33.316 -One thing I needed to do on Mac OS X was change the path to the toolchain,
  33.317 -and add ranlib to the environment variables:
  33.318 -export RANLIB=$NDKROOT/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/arm-linux-androideabi-ranlib
  33.319 -
  33.320 -Once valgrind is built, you can create a wrapper script to launch your
  33.321 -application with it, changing org.libsdl.app to your package identifier:
  33.322 ---- start_valgrind_app -------------------
  33.323 -#!/system/bin/sh
  33.324 -export TMPDIR=/data/data/org.libsdl.app
  33.325 -exec /data/local/Inst/bin/valgrind --log-file=/sdcard/valgrind.log --error-limit=no $*
  33.326 -------------------------------------------
  33.327 -
  33.328 -Then push it to the device:
  33.329 -	adb push start_valgrind_app /data/local
  33.330 -
  33.331 -and make it executable:
  33.332 -	adb shell chmod 755 /data/local/start_valgrind_app
  33.333 -
  33.334 -and tell Android to use the script to launch your application:
  33.335 -	adb shell setprop wrap.org.libsdl.app "logwrapper /data/local/start_valgrind_app"
  33.336 -
  33.337 -If the setprop command says "could not set property", it's likely that
  33.338 -your package name is too long and you should make it shorter by changing
  33.339 -AndroidManifest.xml and the path to your class file in android-project/src
  33.340 -
  33.341 -You can then launch your application normally and waaaaaaaiiittt for it.
  33.342 -You can monitor the startup process with the logcat command above, and
  33.343 -when it's done (or even while it's running) you can grab the valgrind
  33.344 -output file:
  33.345 -	adb pull /sdcard/valgrind.log
  33.346 -
  33.347 -When you're done instrumenting with valgrind, you can disable the wrapper:
  33.348 -	adb shell setprop wrap.org.libsdl.app ""
  33.349 -
  33.350 -================================================================================
  33.351 - Why is API level 10 the minimum required?
  33.352 -================================================================================
  33.353 -
  33.354 -API level 10 is required because SDL requires some functionality for running not
  33.355 -available on older devices and some for building which is not in older NDK/SDKs.
  33.356 -
  33.357 -Support for native OpenGL ES and ES2 applications was introduced in the NDK for
  33.358 -API level 4 and 8. EGL was made a stable API in the NDK for API level 9, which
  33.359 -has since then been obsoleted, with the recommendation to developers to bump the
  33.360 -required API level to 10.
  33.361 -As of this writing, according to http://developer.android.com/about/dashboards/index.html
  33.362 -about 90% of the Android devices accessing Google Play support API level 10 or
  33.363 -higher (March 2013).
  33.364 -
  33.365 -================================================================================
  33.366 - A note regarding the use of the "dirty rectangles" rendering technique
  33.367 -================================================================================
  33.368 -
  33.369 -If your app uses a variation of the "dirty rectangles" rendering technique,
  33.370 -where you only update a portion of the screen on each frame, you may notice a
  33.371 -variety of visual glitches on Android, that are not present on other platforms.
  33.372 -This is caused by SDL's use of EGL as the support system to handle OpenGL ES/ES2
  33.373 -contexts, in particular the use of the eglSwapBuffers function. As stated in the
  33.374 -documentation for the function "The contents of ancillary buffers are always 
  33.375 -undefined after calling eglSwapBuffers".
  33.376 -Setting the EGL_SWAP_BEHAVIOR attribute of the surface to EGL_BUFFER_PRESERVED
  33.377 -is not possible for SDL as it requires EGL 1.4, available only on the API level
  33.378 -17+, so the only workaround available on this platform is to redraw the entire
  33.379 -screen each frame.
  33.380 -
  33.381 -Reference: http://www.khronos.org/registry/egl/specs/EGLTechNote0001.html
  33.382 -
  33.383 -================================================================================
  33.384 - Known issues
  33.385 -================================================================================
  33.386 -
  33.387 -- TODO. I'm sure there's a bunch more stuff I haven't thought of 
    34.1 --- a/README.cmake	Sun May 26 12:30:52 2013 +0200
    34.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    34.3 @@ -1,31 +0,0 @@
    34.4 -================================================================================
    34.5 -CMake build system for SDL (www.cmake.org)
    34.6 -================================================================================
    34.7 -
    34.8 -SDL's build system was traditionally based on autotools. Over time, this
    34.9 -approach has suffered from several issues across the different supported 
   34.10 -platforms.
   34.11 -To solve these problems, a new build system based on CMake is under development.
   34.12 -It works in parallel to the legacy system, so users can experiment with it
   34.13 -without complication.
   34.14 -While still experimental, the build system should be usable on the following
   34.15 -platforms:
   34.16 -    
   34.17 -    * FreeBSD
   34.18 -    * Linux
   34.19 -    * VS.NET 2010
   34.20 -    * MinGW and Msys
   34.21 -    * OS X with support for XCode
   34.22 -    
   34.23 -================================================================================
   34.24 -Usage
   34.25 -================================================================================
   34.26 -
   34.27 -Assuming the source for SDL is located at ~/sdl
   34.28 -
   34.29 -cd ~
   34.30 -mkdir build
   34.31 -cd build
   34.32 -cmake ../sdl
   34.33 -
   34.34 -This will build the static and dynamic versions of SDL in the ~/build directory.
    35.1 --- a/README.gesture	Sun May 26 12:30:52 2013 +0200
    35.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    35.3 @@ -1,72 +0,0 @@
    35.4 -===========================================================================
    35.5 -Dollar Gestures
    35.6 -===========================================================================
    35.7 -SDL Provides an implementation of the $1 gesture recognition system. This allows for recording, saving, loading, and performing single stroke gestures.
    35.8 -
    35.9 -Gestures can be performed with any number of fingers (the centroid of the fingers must follow the path of the gesture), but the number of fingers must be constant (a finger cannot go down in the middle of a gesture). The path of a gesture is considered the path from the time when the final finger went down, to the first time any finger comes up. 
   35.10 -
   35.11 -Dollar gestures are assigned an Id based on a hash function. This is guaranteed to remain constant for a given gesture. There is a (small) chance that two different gestures will be assigned the same ID. In this case, simply re-recording one of the gestures should result in a different ID.
   35.12 -
   35.13 -Recording:
   35.14 -----------
   35.15 -To begin recording on a touch device call:
   35.16 -SDL_RecordGesture(SDL_TouchID touchId), where touchId is the id of the touch device you wish to record on, or -1 to record on all connected devices.
   35.17 -
   35.18 -Recording terminates as soon as a finger comes up. Recording is acknowledged by an SDL_DOLLARRECORD event.
   35.19 -A SDL_DOLLARRECORD event is a dgesture with the following fields:
   35.20 -
   35.21 -event.dgesture.touchId   - the Id of the touch used to record the gesture.
   35.22 -event.dgesture.gestureId - the unique id of the recorded gesture.
   35.23 -
   35.24 -
   35.25 -Performing:
   35.26 ------------
   35.27 -As long as there is a dollar gesture assigned to a touch, every finger-up event will also cause an SDL_DOLLARGESTURE event with the following fields:
   35.28 -
   35.29 -event.dgesture.touchId    - the Id of the touch which performed the gesture.
   35.30 -event.dgesture.gestureId  - the unique id of the closest gesture to the performed stroke.
   35.31 -event.dgesture.error      - the difference between the gesture template and the actual performed gesture. Lower error is a better match.
   35.32 -event.dgesture.numFingers - the number of fingers used to draw the stroke.
   35.33 -
   35.34 -Most programs will want to define an appropriate error threshold and check to be sure that the error of a gesture is not abnormally high (an indicator that no gesture was performed).
   35.35 -
   35.36 -
   35.37 -
   35.38 -Saving:
   35.39 --------
   35.40 -To save a template, call SDL_SaveDollarTemplate(gestureId, src) where gestureId is the id of the gesture you want to save, and src is an SDL_RWops pointer to the file where the gesture will be stored.
   35.41 -
   35.42 -To save all currently loaded templates, call SDL_SaveAllDollarTemplates(src) where source is an SDL_RWops pointer to the file where the gesture will be stored.
   35.43 -
   35.44 -Both functions return the number of gestures successfully saved.
   35.45 -
   35.46 -
   35.47 -Loading:
   35.48 ---------
   35.49 -To load templates from a file, call SDL_LoadDollarTemplates(touchId,src) where touchId is the id of the touch to load to (or -1 to load to all touch devices), and src is an SDL_RWops pointer to a gesture save file. 
   35.50 -
   35.51 -SDL_LoadDollarTemplates returns the number of templates successfully loaded.
   35.52 -
   35.53 -
   35.54 -
   35.55 -===========================================================================
   35.56 -Multi Gestures
   35.57 -===========================================================================
   35.58 -SDL provides simple support for pinch/rotate/swipe gestures. 
   35.59 -Every time a finger is moved an SDL_MULTIGESTURE event is sent with the following fields:
   35.60 -
   35.61 -event.mgesture.touchId - the Id of the touch on which the gesture was performed.
   35.62 -event.mgesture.x       - the normalized x coordinate of the gesture. (0..1)
   35.63 -event.mgesture.y       - the normalized y coordinate of the gesture. (0..1)
   35.64 -event.mgesture.dTheta  - the amount that the fingers rotated during this motion.
   35.65 -event.mgesture.dDist   - the amount that the fingers pinched during this motion.
   35.66 -event.mgesture.numFingers - the number of fingers used in the gesture.
   35.67 -
   35.68 -
   35.69 -===========================================================================
   35.70 -Notes
   35.71 -===========================================================================
   35.72 -For a complete example see test/testgesture.c
   35.73 -
   35.74 -Please direct questions/comments to:
   35.75 -   jim.tla+sdl_touch@gmail.com
    36.1 --- a/README.iOS	Sun May 26 12:30:52 2013 +0200
    36.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    36.3 @@ -1,222 +0,0 @@
    36.4 -==============================================================================
    36.5 -Building the Simple DirectMedia Layer for iPhone OS 2.0
    36.6 -==============================================================================
    36.7 -
    36.8 -Requirements: Mac OS X v10.5 or later and the iPhone SDK.
    36.9 -
   36.10 -Instructions:
   36.11 -1.  Open SDL.xcodeproj (located in Xcode-iOS/SDL) in XCode.
   36.12 -2.  Select your desired target, and hit build.
   36.13 -
   36.14 -There are three build targets:
   36.15 -- libSDL.a:
   36.16 -	Build SDL as a statically linked library
   36.17 -- testsdl
   36.18 -	Build a test program (there are known test failures which are fine)
   36.19 -- Template:
   36.20 -	Package a project template together with the SDL for iPhone static libraries and copies of the SDL headers.  The template includes proper references to the SDL library and headers, skeleton code for a basic SDL program, and placeholder graphics for the application icon and startup screen.
   36.21 -
   36.22 -==============================================================================
   36.23 -Build SDL for iOS from the command line
   36.24 -==============================================================================
   36.25 -
   36.26 -1. cd (PATH WHERE THE SDL CODE IS)/build-scripts
   36.27 -2. ./iosbuild.sh
   36.28 -
   36.29 -If everything goes fine, you should see a build/ios directory, inside there's
   36.30 -two directories "lib" and "include". 
   36.31 -"include" contains a copy of the SDL headers that you'll need for your project,
   36.32 -make sure to configure XCode to look for headers there.
   36.33 -"lib" contains find two files, libSDL2.a and libSDL2main.a, you have to add both 
   36.34 -to your XCode project. These libraries contain three architectures in them,
   36.35 -armv6 for legacy devices, armv7, and i386 (for the simulator).
   36.36 -By default, iosbuild.sh will autodetect the SDK version you have installed using 
   36.37 -xcodebuild -showsdks, and build for iOS >= 3.0, you can override this behaviour 
   36.38 -by setting the MIN_OS_VERSION variable, ie:
   36.39 -
   36.40 -MIN_OS_VERSION=4.2 ./iosbuild.sh
   36.41 -
   36.42 -==============================================================================
   36.43 -Using the Simple DirectMedia Layer for iOS
   36.44 -==============================================================================
   36.45 -
   36.46 -FIXME: This needs to be updated for the latest methods
   36.47 -
   36.48 -Here is the easiest method:
   36.49 -1.  Build the SDL libraries (libSDL.a and libSDLSimulator.a) and the iPhone SDL Application template.
   36.50 -1.  Install the iPhone SDL Application template by copying it to one of XCode's template directories.  I recommend creating a directory called "SDL" in "/Developer/Platforms/iOS.platform/Developer/Library/XCode/Project Templates/" and placing it there.
   36.51 -2.  Start a new project using the template.  The project should be immediately ready for use with SDL.
   36.52 -
   36.53 -Here is a more manual method:
   36.54 -1.  Create a new iPhone view based application.
   36.55 -2.  Build the SDL static libraries (libSDL.a and libSDLSimulator.a) for iPhone and include them in your project.  XCode will ignore the library that is not currently of the correct architecture, hence your app will work both on iPhone and in the iPhone Simulator.
   36.56 -3.  Include the SDL header files in your project.
   36.57 -4.  Remove the ApplicationDelegate.h and ApplicationDelegate.m files -- SDL for iPhone provides its own UIApplicationDelegate.  Remove MainWindow.xib -- SDL for iPhone produces its user interface programmatically.
   36.58 -5.  Delete the contents of main.m and program your app as a regular SDL program instead.  You may replace main.m with your own main.c, but you must tell XCode not to use the project prefix file, as it includes Objective-C code.
   36.59 -
   36.60 -==============================================================================
   36.61 -Notes -- Application events
   36.62 -==============================================================================
   36.63 -
   36.64 -On iOS the application goes through a fixed life cycle and you will get
   36.65 -notifications of state changes via application events. When these events
   36.66 -are delivered you must handle them in an event callback because the OS may
   36.67 -not give you any processing time after the events are delivered.
   36.68 -
   36.69 -e.g.
   36.70 -
   36.71 -int HandleAppEvents(void *userdata, SDL_Event *event)
   36.72 -{
   36.73 -    switch (event->type)
   36.74 -    {
   36.75 -    case SDL_APP_TERMINATING:
   36.76 -        /* Terminate the app.
   36.77 -           Shut everything down before returning from this function.
   36.78 -        */
   36.79 -        return 0;
   36.80 -    case SDL_APP_LOWMEMORY:
   36.81 -        /* You will get this when your app is paused and iOS wants more memory.
   36.82 -           Release as much memory as possible.
   36.83 -        */
   36.84 -        return 0;
   36.85 -    case SDL_APP_WILLENTERBACKGROUND:
   36.86 -        /* Prepare your app to go into the background.  Stop loops, etc.
   36.87 -           This gets called when the user hits the home button, or gets a call.
   36.88 -        */
   36.89 -        return 0;
   36.90 -    case SDL_APP_DIDENTERBACKGROUND:
   36.91 -        /* This will get called if the user accepted whatever sent your app to the background.
   36.92 -           If the user got a phone call and canceled it, you'll instead get an SDL_APP_DIDENTERFOREGROUND event and restart your loops.
   36.93 -           When you get this, you have 5 seconds to save all your state or the app will be terminated.
   36.94 -           Your app is NOT active at this point.
   36.95 -        */
   36.96 -        return 0;
   36.97 -    case SDL_APP_WILLENTERFOREGROUND:
   36.98 -        /* This call happens when your app is coming back to the foreground.
   36.99 -           Restore all your state here.
  36.100 -        */
  36.101 -        return 0;
  36.102 -    case SDL_APP_DIDENTERFOREGROUND:
  36.103 -        /* Restart your loops here.
  36.104 -           Your app is interactive and getting CPU again.
  36.105 -        */
  36.106 -        return 0;
  36.107 -    default:
  36.108 -        /* No special processing, add it to the event queue */
  36.109 -        return 1;
  36.110 -    }
  36.111 -}
  36.112 -
  36.113 -int main(int argc, char *argv[])
  36.114 -{
  36.115 -    SDL_SetEventFilter(HandleAppEvents, NULL);
  36.116 -
  36.117 -    ... run your main loop
  36.118 -
  36.119 -    return 0;
  36.120 -}
  36.121 -
  36.122 -    
  36.123 -==============================================================================
  36.124 -Notes -- Accelerometer as Joystick
  36.125 -==============================================================================
  36.126 -
  36.127 -SDL for iPhone supports polling the built in accelerometer as a joystick device.  For an example on how to do this, see the accelerometer.c in the demos directory.
  36.128 -
  36.129 -The main thing to note when using the accelerometer with SDL is that while the iPhone natively reports accelerometer as floating point values in units of g-force, SDL_JoystickGetAxis reports joystick values as signed integers.  Hence, in order to convert between the two, some clamping and scaling is necessary on the part of the iPhone SDL joystick driver.  To convert SDL_JoystickGetAxis reported values BACK to units of g-force, simply multiply the values by SDL_IPHONE_MAX_GFORCE / 0x7FFF.
  36.130 -
  36.131 -==============================================================================
  36.132 -Notes -- OpenGL ES
  36.133 -==============================================================================
  36.134 -
  36.135 -Your SDL application for iPhone uses OpenGL ES for video by default.
  36.136 -
  36.137 -OpenGL ES for iPhone supports several display pixel formats, such as RGBA8 and RGB565, which provide a 32 bit and 16 bit color buffer respectively.  By default, the implementation uses RGB565, but you may use RGBA8 by setting each color component to 8 bits in SDL_GL_SetAttribute.
  36.138 -
  36.139 -If your application doesn't use OpenGL's depth buffer, you may find significant performance improvement by setting SDL_GL_DEPTH_SIZE to 0.
  36.140 -
  36.141 -Finally, if your application completely redraws the screen each frame, you may find significant performance improvement by setting the attribute SDL_GL_RETAINED_BACKING to 1.
  36.142 -
  36.143 -==============================================================================
  36.144 -Notes -- Keyboard
  36.145 -==============================================================================
  36.146 -
  36.147 -The SDL keyboard API has been extended to support on-screen keyboards:
  36.148 -
  36.149 -void SDL_StartTextInput()
  36.150 -	-- enables text events and reveals the onscreen keyboard.
  36.151 -void SDL_StopTextInput()
  36.152 -	-- disables text events and hides the onscreen keyboard.
  36.153 -SDL_bool SDL_IsTextInputActive()
  36.154 -	-- returns whether or not text events are enabled (and the onscreen keyboard is visible)
  36.155 -
  36.156 -==============================================================================
  36.157 -Notes -- Reading and Writing files
  36.158 -==============================================================================
  36.159 -
  36.160 -Each application installed on iPhone resides in a sandbox which includes its own Application Home directory.  Your application may not access files outside this directory.
  36.161 -
  36.162 -Once your application is installed its directory tree looks like:
  36.163 -
  36.164 -MySDLApp Home/
  36.165 -	MySDLApp.app
  36.166 -	Documents/
  36.167 -	Library/
  36.168 -		Preferences/
  36.169 -	tmp/
  36.170 -
  36.171 -When your SDL based iPhone application starts up, it sets the working directory to the main bundle (MySDLApp Home/MySDLApp.app), where your application resources are stored.  You cannot write to this directory.  Instead, I advise you to write document files to "../Documents/" and preferences to "../Library/Preferences".  
  36.172 -
  36.173 -More information on this subject is available here:
  36.174 -http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html
  36.175 -
  36.176 -==============================================================================
  36.177 -Notes -- iPhone SDL limitations
  36.178 -==============================================================================
  36.179 -
  36.180 -Windows:
  36.181 -	Full-size, single window applications only.  You cannot create multi-window SDL applications for iPhone OS.  The application window will fill the display, though you have the option of turning on or off the menu-bar (pass SDL_CreateWindow the flag SDL_WINDOW_BORDERLESS).
  36.182 -
  36.183 -Textures:
  36.184 -	The optimal texture formats on iOS are SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_ABGR8888, SDL_PIXELFORMAT_BGR888, and SDL_PIXELFORMAT_RGB24 pixel formats.
  36.185 -
  36.186 -Loading Shared Objects:
  36.187 -	This is disabled by default since it seems to break the terms of the iPhone SDK agreement.  It can be re-enabled in SDL_config_iphoneos.h.
  36.188 -
  36.189 -==============================================================================
  36.190 -Game Center 
  36.191 -==============================================================================
  36.192 -
  36.193 -Game Center integration requires that you break up your main loop in order to yield control back to the system. In other words, instead of running an endless main loop, you run each frame in a callback function, using:
  36.194 -    
  36.195 -int SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
  36.196 -
  36.197 -This will set up the given function to be called back on the animation callback, and then you have to return from main() to let the Cocoa event loop run.
  36.198 -
  36.199 -e.g.
  36.200 -
  36.201 -extern "C"
  36.202 -void ShowFrame(void*)
  36.203 -{
  36.204 -    ... do event handling, frame logic and rendering
  36.205 -}
  36.206 -
  36.207 -int main(int argc, char *argv[])
  36.208 -{
  36.209 -   ... initialize game ...
  36.210 -
  36.211 -#if __IPHONEOS__
  36.212 -        // Initialize the Game Center for scoring and matchmaking
  36.213 -        InitGameCenter();
  36.214 -
  36.215 -        // Set up the game to run in the window animation callback on iOS
  36.216 -        // so that Game Center and so forth works correctly.
  36.217 -        SDL_iPhoneSetAnimationCallback(window, 1, ShowFrame, NULL);
  36.218 -#else
  36.219 -        while ( running ) {
  36.220 -                ShowFrame(0);
  36.221 -                DelayFrame();
  36.222 -        }
  36.223 -#endif
  36.224 -        return 0;
  36.225 -}
    37.1 --- a/README.pandora	Sun May 26 12:30:52 2013 +0200
    37.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    37.3 @@ -1,16 +0,0 @@
    37.4 -SDL 2.0 with open pandora console support ( http://openpandora.org/ )
    37.5 -=====================================================================
    37.6 -
    37.7 -- A pandora specific video driver was written to allow SDL 2.0 with OpenGL ES
    37.8 -support to work on the pandora under the framebuffer. This driver do not have
    37.9 -input support for now, so if you use it you will have to add your own control code.
   37.10 -The video driver name is "pandora" so if you have problem running it from
   37.11 -the framebuffer, try to set the following variable before starting your application :
   37.12 -"export SDL_VIDEODRIVER=pandora"
   37.13 -
   37.14 -- OpenGL ES support was added to the x11 driver, so it's working like the normal
   37.15 -x11 driver one with OpenGLX support, with SDL input event's etc..
   37.16 -
   37.17 -
   37.18 -David Carré (Cpasjuste)
   37.19 -cpasjuste@gmail.com
    38.1 --- a/README.psp	Sun May 26 12:30:52 2013 +0200
    38.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    38.3 @@ -1,17 +0,0 @@
    38.4 -SDL port for the Sony PSP contributed by 
    38.5 -   Captian Lex 
    38.6 -
    38.7 -Credit to
    38.8 -   Marcus R.Brown,Jim Paris,Matthew H for the original SDL 1.2 for PSP
    38.9 -   Geecko for his PSP GU lib "Glib2d"
   38.10 -
   38.11 -Building
   38.12 ---------
   38.13 -To build for the PSP, make sure psp-config is in the path and run:
   38.14 -   make -f Makefile.psp
   38.15 -
   38.16 -
   38.17 -
   38.18 -To Do
   38.19 -------
   38.20 -PSP Screen Keyboard
   38.21 \ No newline at end of file
    39.1 --- a/README.touch	Sun May 26 12:30:52 2013 +0200
    39.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    39.3 @@ -1,84 +0,0 @@
    39.4 -===========================================================================
    39.5 -System Specific Notes
    39.6 -===========================================================================
    39.7 -Linux:
    39.8 -The linux touch system is currently based off event streams, and proc/bus/devices. The active user must be given permissions to read /dev/input/TOUCHDEVICE, where TOUCHDEVICE is the event stream for your device. Currently only Wacom tablets are supported. If you have an unsupported tablet contact me at jim.tla+sdl_touch@gmail.com and I will help you get support for it.
    39.9 -
   39.10 -Mac: 
   39.11 -The Mac and iPhone APIs are pretty. If your touch device supports them then you'll be fine. If it doesn't, then there isn't much we can do.
   39.12 -
   39.13 -iPhone: 
   39.14 -Works out of box.
   39.15 -
   39.16 -Windows:
   39.17 -Unfortunately there is no windows support as of yet. Support for Windows 7 is planned, but we currently have no way to test. If you have a Windows 7 WM_TOUCH supported device, and are willing to help test please contact me at jim.tla+sdl_touch@gmail.com
   39.18 -
   39.19 -===========================================================================
   39.20 -Events
   39.21 -===========================================================================
   39.22 -SDL_FINGERDOWN:
   39.23 -Sent when a finger (or stylus) is placed on a touch device.
   39.24 -Fields:
   39.25 -event.tfinger.touchId  - the Id of the touch device.
   39.26 -event.tfinger.fingerId - the Id of the finger which just went down.
   39.27 -event.tfinger.x        - the x coordinate of the touch (0..1)
   39.28 -event.tfinger.y        - the y coordinate of the touch (0..1)
   39.29 -event.tfinger.pressure - the pressure of the touch (0..1)
   39.30 -
   39.31 -SDL_FINGERMOTION:
   39.32 -Sent when a finger (or stylus) is moved on the touch device.
   39.33 -Fields:
   39.34 -Same as SDL_FINGERDOWN but with additional:
   39.35 -event.tfinger.dx       - change in x coordinate during this motion event.
   39.36 -event.tfinger.dy       - change in y coordinate during this motion event.
   39.37 -
   39.38 -SDL_FINGERUP:
   39.39 -Sent when a finger (or stylus) is lifted from the touch device.
   39.40 -Fields:
   39.41 -Same as SDL_FINGERDOWN.
   39.42 -
   39.43 -
   39.44 -===========================================================================
   39.45 -Functions
   39.46 -===========================================================================
   39.47 -SDL provides the ability to access the underlying Finger structures.
   39.48 -These structures should _never_ be modified.
   39.49 -
   39.50 -The following functions are included from SDL_touch.h
   39.51 -
   39.52 -To get a SDL_TouchID call SDL_GetTouchDevice(index).
   39.53 -This returns a SDL_TouchID.
   39.54 -IMPORTANT: If the touch has been removed, or there is no touch with the given ID, SDL_GetTouchID will return 0. Be sure to check for this!
   39.55 -
   39.56 -The number of touch devices can be queried with SDL_GetNumTouchDevices().
   39.57 -
   39.58 -A SDL_TouchID may be used to get pointers to SDL_Finger.
   39.59 -
   39.60 -SDL_GetNumTouchFingers(touchID) may be used to get the number of fingers currently down on the device.
   39.61 -
   39.62 -The most common reason to access SDL_Finger is to query the fingers outside the event. In most cases accessing the fingers is using the event. This would be accomplished by code like the following:
   39.63 -
   39.64 -      float x = event.tfinger.x;
   39.65 -      float y = event.tfinger.y;
   39.66 -
   39.67 -
   39.68 -
   39.69 -To get a SDL_Finger, call SDL_GetTouchFinger(touchID,index), where touchID is a SDL_TouchID, and index is the requested finger.
   39.70 -This returns a SDL_Finger*, or NULL if the finger does not exist, or has been removed.
   39.71 -A SDL_Finger is guaranteed to be persistent for the duration of a touch, but it will be de-allocated as soon as the finger is removed. This occurs when the SDL_FINGERUP event is _added_ to the event queue, and thus _before_ the SDL_FINGERUP event is polled.
   39.72 -As a result, be very careful to check for NULL return values.
   39.73 -
   39.74 -A SDL_Finger has the following fields:
   39.75 ->x,y,pressure:
   39.76 -	The current coordinates of the touch.
   39.77 ->pressure:
   39.78 -	The pressure of the touch.
   39.79 -
   39.80 -===========================================================================
   39.81 -Notes
   39.82 -===========================================================================
   39.83 -For a complete example see test/testgesture.c
   39.84 -
   39.85 -Please direct questions/comments to:
   39.86 -   jim.tla+sdl_touch@gmail.com
   39.87 -   (original author, API was changed since)
    40.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    40.2 +++ b/README.txt	Sun May 26 11:06:17 2013 -0700
    40.3 @@ -0,0 +1,39 @@
    40.4 +
    40.5 +                         Simple DirectMedia Layer
    40.6 +
    40.7 +                                  (SDL)
    40.8 +
    40.9 +                                Version 2.0
   40.10 +
   40.11 +---
   40.12 +http://www.libsdl.org/
   40.13 +
   40.14 +This is the Simple DirectMedia Layer, a general API that provides low
   40.15 +level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,
   40.16 +and 2D framebuffer across multiple platforms.
   40.17 +
   40.18 +The current version supports Windows, Mac OS X, Linux, FreeBSD,
   40.19 +NetBSD, OpenBSD, BSD/OS, Solaris, iOS, and Android. The code contains
   40.20 +support for other operating systems but those are not officially supported.
   40.21 +
   40.22 +SDL is written in C, but works with C++ natively, and has bindings to
   40.23 +several other languages, including Ada, C#, Eiffel, Erlang, Euphoria,
   40.24 +Go, Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP,
   40.25 +Pike, Pliant, Python, Ruby, and Smalltalk.
   40.26 +
   40.27 +This library is distributed under the zlib license, which can be found
   40.28 +in the file "COPYING".
   40.29 +
   40.30 +The best way to learn how to use SDL is to check out the header files in
   40.31 +the "include" subdirectory and the programs in the "test" subdirectory.
   40.32 +The header files and test programs are well commented and always up to date.
   40.33 +ore documentation and FAQs are available online at:
   40.34 +	http://wiki.libsdl.org/
   40.35 +
   40.36 +If you need help with the library, or just want to discuss SDL related
   40.37 +issues, you can join the developers mailing list:
   40.38 +	http://www.libsdl.org/mailing-list.php
   40.39 +
   40.40 +Enjoy!
   40.41 +	Sam Lantinga				(slouken@libsdl.org)
   40.42 +
    41.1 --- a/SDL2.spec.in	Sun May 26 12:30:52 2013 +0200
    41.2 +++ b/SDL2.spec.in	Sun May 26 11:06:17 2013 -0700
    41.3 @@ -63,7 +63,7 @@
    41.4  
    41.5  %files
    41.6  %{__defattr}
    41.7 -%doc README-SDL.txt COPYING CREDITS BUGS
    41.8 +%doc README-SDL.txt COPYING.txt CREDITS.txt BUGS.txt
    41.9  %{_libdir}/lib*.%{__soext}.*
   41.10  
   41.11  %files devel
    42.1 --- a/TODO	Sun May 26 12:30:52 2013 +0200
    42.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    42.3 @@ -1,18 +0,0 @@
    42.4 -2.0 release checklist:
    42.5 - * http://wiki.libsdl.org/moin.cgi/Roadmap
    42.6 -
    42.7 - * See why windows are being rearranged.  Is the shield window not up?
    42.8 - * Make sure you can create and show a fullscreen window in one step
    42.9 - * Write automated test case for multi-draw APIs
   42.10 - * Implement assertion code on iPhone
   42.11 - * Add __WINDOWS__ in addition to __WIN32__
   42.12 - * Write test for fullscreen gamma to check X11 colormap handling
   42.13 -
   42.14 - * Check 1.2 revisions:
   42.15 -	3554 - Need to resolve semantics for locking keys on different platforms
   42.16 -	4874 - Do we want screen rotation?  At what level?
   42.17 -	4974 - Windows file code needs to convert UTF-8 to Unicode, but we don't need to tap dance for Windows 95/98
   42.18 -	4484, 4485 - Verify that SDL's Windows keyboard handling works correctly
   42.19 -	4865 - See if this is still needed (mouse coordinate clamping)
   42.20 -	4866 - See if this is still needed (blocking window repositioning)
   42.21 -
    43.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    43.2 +++ b/TODO.txt	Sun May 26 11:06:17 2013 -0700
    43.3 @@ -0,0 +1,15 @@
    43.4 +Future work roadmap:
    43.5 + * http://wiki.libsdl.org/moin.cgi/Roadmap
    43.6 +
    43.7 + * See why windows are being rearranged.  Is the shield window not up?
    43.8 + * Add __WINDOWS__ in addition to __WIN32__
    43.9 + * Write test for fullscreen gamma to check X11 colormap handling
   43.10 +
   43.11 + * Check 1.2 revisions:
   43.12 +	3554 - Need to resolve semantics for locking keys on different platforms
   43.13 +	4874 - Do we want screen rotation?  At what level?
   43.14 +	4974 - Windows file code needs to convert UTF-8 to Unicode, but we don't need to tap dance for Windows 95/98
   43.15 +	4484, 4485 - Verify that SDL's Windows keyboard handling works correctly
   43.16 +	4865 - See if this is still needed (mouse coordinate clamping)
   43.17 +	4866 - See if this is still needed (blocking window repositioning)
   43.18 +
    44.1 --- a/aclocal.m4	Sun May 26 12:30:52 2013 +0200
    44.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    44.3 @@ -1,9313 +0,0 @@
    44.4 -AC_DEFUN([AC_CHECK_DEFINE],[dnl
    44.5 -  AC_CACHE_CHECK(for $1 in $2, ac_cv_define_$1,
    44.6 -    AC_EGREP_CPP([YES_IS_DEFINED], [
    44.7 -#include <$2>
    44.8 -#ifdef $1
    44.9 -YES_IS_DEFINED
   44.10 -#endif
   44.11 -    ], ac_cv_define_$1=yes, ac_cv_define_$1=no)
   44.12 -  )
   44.13 -  if test "$ac_cv_define_$1" = "yes" ; then
   44.14 -    AC_DEFINE([HAVE_$1],[],[Added by AC_CHECK_DEFINE])
   44.15 -  fi
   44.16 -])dnl
   44.17 -AC_DEFINE([HAVE_$1],[],[Added by AC_CHECK_DEFINE])
   44.18 -##############################################################################
   44.19 -dnl Configure Paths for Alsa
   44.20 -dnl Some modifications by Richard Boulton <richard-alsa@tartarus.org>
   44.21 -dnl Christopher Lansdown <lansdoct@cs.alfred.edu>
   44.22 -dnl Jaroslav Kysela <perex@suse.cz>
   44.23 -dnl Last modification: alsa.m4,v 1.23 2004/01/16 18:14:22 tiwai Exp
   44.24 -dnl AM_PATH_ALSA([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
   44.25 -dnl Test for libasound, and define ALSA_CFLAGS and ALSA_LIBS as appropriate.
   44.26 -dnl enables arguments --with-alsa-prefix=
   44.27 -dnl                   --with-alsa-enc-prefix=
   44.28 -dnl                   --disable-alsatest
   44.29 -dnl
   44.30 -dnl For backwards compatibility, if ACTION_IF_NOT_FOUND is not specified,
   44.31 -dnl and the alsa libraries are not found, a fatal AC_MSG_ERROR() will result.
   44.32 -dnl
   44.33 -AC_DEFUN([AM_PATH_ALSA],
   44.34 -[dnl Save the original CFLAGS, LDFLAGS, and LIBS
   44.35 -alsa_save_CFLAGS="$CFLAGS"
   44.36 -alsa_save_LDFLAGS="$LDFLAGS"
   44.37 -alsa_save_LIBS="$LIBS"
   44.38 -alsa_found=yes
   44.39 -
   44.40 -dnl
   44.41 -dnl Get the cflags and libraries for alsa
   44.42 -dnl
   44.43 -AC_ARG_WITH(alsa-prefix,
   44.44 -[  --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)],
   44.45 -[alsa_prefix="$withval"], [alsa_prefix=""])
   44.46 -
   44.47 -AC_ARG_WITH(alsa-inc-prefix,
   44.48 -[  --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)],
   44.49 -[alsa_inc_prefix="$withval"], [alsa_inc_prefix=""])
   44.50 -
   44.51 -dnl FIXME: this is not yet implemented
   44.52 -AC_ARG_ENABLE(alsatest,
   44.53 -[  --disable-alsatest      Do not try to compile and run a test Alsa program],
   44.54 -[enable_alsatest="$enableval"],
   44.55 -[enable_alsatest=yes])
   44.56 -
   44.57 -dnl Add any special include directories
   44.58 -AC_MSG_CHECKING(for ALSA CFLAGS)
   44.59 -if test "$alsa_inc_prefix" != "" ; then
   44.60 -	ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
   44.61 -	CFLAGS="$CFLAGS -I$alsa_inc_prefix"
   44.62 -fi
   44.63 -AC_MSG_RESULT($ALSA_CFLAGS)
   44.64 -
   44.65 -dnl add any special lib dirs
   44.66 -AC_MSG_CHECKING(for ALSA LDFLAGS)
   44.67 -if test "$alsa_prefix" != "" ; then
   44.68 -	ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
   44.69 -	LDFLAGS="$LDFLAGS $ALSA_LIBS"
   44.70 -fi
   44.71 -
   44.72 -dnl add the alsa library
   44.73 -ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
   44.74 -LIBS=`echo $LIBS | sed 's/-lm//'`
   44.75 -LIBS=`echo $LIBS | sed 's/-ldl//'`
   44.76 -LIBS=`echo $LIBS | sed 's/-lpthread//'`
   44.77 -LIBS=`echo $LIBS | sed 's/  //'`
   44.78 -LIBS="$ALSA_LIBS $LIBS"
   44.79 -AC_MSG_RESULT($ALSA_LIBS)
   44.80 -
   44.81 -dnl Check for a working version of libasound that is of the right version.
   44.82 -min_alsa_version=ifelse([$1], ,0.1.1,$1)
   44.83 -AC_MSG_CHECKING(for libasound headers version >= $min_alsa_version)
   44.84 -no_alsa=""
   44.85 -    alsa_min_major_version=`echo $min_alsa_version | \
   44.86 -           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
   44.87 -    alsa_min_minor_version=`echo $min_alsa_version | \
   44.88 -           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
   44.89 -    alsa_min_micro_version=`echo $min_alsa_version | \
   44.90 -           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
   44.91 -
   44.92 -AC_LANG_SAVE
   44.93 -AC_LANG_C
   44.94 -AC_TRY_COMPILE([
   44.95 -#include <alsa/asoundlib.h>
   44.96 -], [
   44.97 -/* ensure backward compatibility */
   44.98 -#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
   44.99 -#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  44.100 -#endif
  44.101 -#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  44.102 -#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  44.103 -#endif
  44.104 -#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  44.105 -#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  44.106 -#endif
  44.107 -
  44.108 -#  if(SND_LIB_MAJOR > $alsa_min_major_version)
  44.109 -  exit(0);
  44.110 -#  else
  44.111 -#    if(SND_LIB_MAJOR < $alsa_min_major_version)
  44.112 -#       error not present
  44.113 -#    endif
  44.114 -
  44.115 -#   if(SND_LIB_MINOR > $alsa_min_minor_version)
  44.116 -  exit(0);
  44.117 -#   else
  44.118 -#     if(SND_LIB_MINOR < $alsa_min_minor_version)
  44.119 -#          error not present
  44.120 -#      endif
  44.121 -
  44.122 -#      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  44.123 -#        error not present
  44.124 -#      endif
  44.125 -#    endif
  44.126 -#  endif
  44.127 -exit(0);
  44.128 -],
  44.129 -  [AC_MSG_RESULT(found.)],
  44.130 -  [AC_MSG_RESULT(not present.)
  44.131 -   ifelse([$3], , [AC_MSG_ERROR(Sufficiently new version of libasound not found.)])
  44.132 -   alsa_found=no]
  44.133 -)
  44.134 -AC_LANG_RESTORE
  44.135 -
  44.136 -dnl Now that we know that we have the right version, let's see if we have the library and not just the headers.
  44.137 -if test "x$enable_alsatest" = "xyes"; then
  44.138 -AC_CHECK_LIB([asound], [snd_ctl_open],,
  44.139 -	[ifelse([$3], , [AC_MSG_ERROR(No linkable libasound was found.)])
  44.140 -	 alsa_found=no]
  44.141 -)
  44.142 -fi
  44.143 -
  44.144 -if test "x$alsa_found" = "xyes" ; then
  44.145 -   ifelse([$2], , :, [$2])
  44.146 -   LIBS=`echo $LIBS | sed 's/-lasound//g'`
  44.147 -   LIBS=`echo $LIBS | sed 's/  //'`
  44.148 -   LIBS="-lasound $LIBS"
  44.149 -fi
  44.150 -if test "x$alsa_found" = "xno" ; then
  44.151 -   ifelse([$3], , :, [$3])
  44.152 -   CFLAGS="$alsa_save_CFLAGS"
  44.153 -   LDFLAGS="$alsa_save_LDFLAGS"
  44.154 -   LIBS="$alsa_save_LIBS"
  44.155 -   ALSA_CFLAGS=""
  44.156 -   ALSA_LIBS=""
  44.157 -fi
  44.158 -
  44.159 -dnl That should be it.  Now just export out symbols:
  44.160 -AC_SUBST(ALSA_CFLAGS)
  44.161 -AC_SUBST(ALSA_LIBS)
  44.162 -])
  44.163 -# ===========================================================================
  44.164 -#  http://www.gnu.org/software/autoconf-archive/ax_check_compiler_flags.html
  44.165 -# ===========================================================================
  44.166 -#
  44.167 -# SYNOPSIS
  44.168 -#
  44.169 -#   AX_CHECK_COMPILER_FLAGS(FLAGS, [ACTION-SUCCESS], [ACTION-FAILURE])
  44.170 -#
  44.171 -# DESCRIPTION
  44.172 -#
  44.173 -#   Check whether the given compiler FLAGS work with the current language's
  44.174 -#   compiler, or whether they give an error. (Warnings, however, are
  44.175 -#   ignored.)
  44.176 -#
  44.177 -#   ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
  44.178 -#   success/failure.
  44.179 -#
  44.180 -# LICENSE
  44.181 -#
  44.182 -#   Copyright (c) 2009 Steven G. Johnson <stevenj@alum.mit.edu>
  44.183 -#   Copyright (c) 2009 Matteo Frigo
  44.184 -#
  44.185 -#   This program is free software: you can redistribute it and/or modify it
  44.186 -#   under the terms of the GNU General Public License as published by the
  44.187 -#   Free Software Foundation, either version 3 of the License, or (at your
  44.188 -#   option) any later version.
  44.189 -#
  44.190 -#   This program is distributed in the hope that it will be useful, but
  44.191 -#   WITHOUT ANY WARRANTY; without even the implied warranty of
  44.192 -#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  44.193 -#   Public License for more details.
  44.194 -#
  44.195 -#   You should have received a copy of the GNU General Public License along
  44.196 -#   with this program. If not, see <http://www.gnu.org/licenses/>.
  44.197 -#
  44.198 -#   As a special exception, the respective Autoconf Macro's copyright owner
  44.199 -#   gives unlimited permission to copy, distribute and modify the configure
  44.200 -#   scripts that are the output of Autoconf when processing the Macro. You
  44.201 -#   need not follow the terms of the GNU General Public License when using
  44.202 -#   or distributing such scripts, even though portions of the text of the
  44.203 -#   Macro appear in them. The GNU General Public License (GPL) does govern
  44.204 -#   all other use of the material that constitutes the Autoconf Macro.
  44.205 -#
  44.206 -#   This special exception to the GPL applies to versions of the Autoconf
  44.207 -#   Macro released by the Autoconf Archive. When you make and distribute a
  44.208 -#   modified version of the Autoconf Macro, you may extend this special
  44.209 -#   exception to the GPL to apply to your modified version as well.
  44.210 -
  44.211 -#serial 9
  44.212 -
  44.213 -AC_DEFUN([AX_CHECK_COMPILER_FLAGS],
  44.214 -[AC_PREREQ(2.59) dnl for _AC_LANG_PREFIX
  44.215 -AC_MSG_CHECKING([whether _AC_LANG compiler accepts $1])
  44.216 -dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname:
  44.217 -AS_LITERAL_IF([$1],
  44.218 -  [AC_CACHE_VAL(AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1]), [
  44.219 -      ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS
  44.220 -      _AC_LANG_PREFIX[]FLAGS="$1"
  44.221 -      AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
  44.222 -        AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=yes,
  44.223 -        AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=no)
  44.224 -      _AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS])],
  44.225 -  [ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS
  44.226 -   _AC_LANG_PREFIX[]FLAGS="$1"
  44.227 -   AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
  44.228 -     eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=yes,
  44.229 -     eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=no)
  44.230 -   _AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS])
  44.231 -eval ax_check_compiler_flags=$AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])
  44.232 -AC_MSG_RESULT($ax_check_compiler_flags)
  44.233 -if test "x$ax_check_compiler_flags" = xyes; then
  44.234 -	m4_default([$2], :)
  44.235 -else
  44.236 -	m4_default([$3], :)
  44.237 -fi
  44.238 -])dnl AX_CHECK_COMPILER_FLAGS
  44.239 -# ===========================================================================
  44.240 -#      http://www.gnu.org/software/autoconf-archive/ax_gcc_archflag.html
  44.241 -# ===========================================================================
  44.242 -#
  44.243 -# SYNOPSIS
  44.244 -#
  44.245 -#   AX_GCC_ARCHFLAG([PORTABLE?], [ACTION-SUCCESS], [ACTION-FAILURE])
  44.246 -#
  44.247 -# DESCRIPTION
  44.248 -#
  44.249 -#   This macro tries to guess the "native" arch corresponding to the target
  44.250 -#   architecture for use with gcc's -march=arch or -mtune=arch flags. If
  44.251 -#   found, the cache variable $ax_cv_gcc_archflag is set to this flag and
  44.252 -#   ACTION-SUCCESS is executed; otherwise $ax_cv_gcc_archflag is is set to
  44.253 -#   "unknown" and ACTION-FAILURE is executed. The default ACTION-SUCCESS is
  44.254 -#   to add $ax_cv_gcc_archflag to the end of $CFLAGS.
  44.255 -#
  44.256 -#   PORTABLE? should be either [yes] (default) or [no]. In the former case,
  44.257 -#   the flag is set to -mtune (or equivalent) so that the architecture is
  44.258 -#   only used for tuning, but the instruction set used is still portable. In
  44.259 -#   the latter case, the flag is set to -march (or equivalent) so that
  44.260 -#   architecture-specific instructions are enabled.
  44.261 -#
  44.262 -#   The user can specify --with-gcc-arch=<arch> in order to override the
  44.263 -#   macro's choice of architecture, or --without-gcc-arch to disable this.
  44.264 -#
  44.265 -#   When cross-compiling, or if $CC is not gcc, then ACTION-FAILURE is
  44.266 -#   called unless the user specified --with-gcc-arch manually.
  44.267 -#
  44.268 -#   Requires macros: AX_CHECK_COMPILER_FLAGS, AX_GCC_X86_CPUID
  44.269 -#
  44.270 -#   (The main emphasis here is on recent CPUs, on the principle that doing
  44.271 -#   high-performance computing on old hardware is uncommon.)
  44.272 -#
  44.273 -# LICENSE
  44.274 -#
  44.275 -#   Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
  44.276 -#   Copyright (c) 2008 Matteo Frigo
  44.277 -#
  44.278 -#   This program is free software: you can redistribute it and/or modify it
  44.279 -#   under the terms of the GNU General Public License as published by the
  44.280 -#   Free Software Foundation, either version 3 of the License, or (at your
  44.281 -#   option) any later version.
  44.282 -#
  44.283 -#   This program is distributed in the hope that it will be useful, but
  44.284 -#   WITHOUT ANY WARRANTY; without even the implied warranty of
  44.285 -#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  44.286 -#   Public License for more details.
  44.287 -#
  44.288 -#   You should have received a copy of the GNU General Public License along
  44.289 -#   with this program. If not, see <http://www.gnu.org/licenses/>.
  44.290 -#
  44.291 -#   As a special exception, the respective Autoconf Macro's copyright owner
  44.292 -#   gives unlimited permission to copy, distribute and modify the configure
  44.293 -#   scripts that are the output of Autoconf when processing the Macro. You
  44.294 -#   need not follow the terms of the GNU General Public License when using
  44.295 -#   or distributing such scripts, even though portions of the text of the
  44.296 -#   Macro appear in them. The GNU General Public License (GPL) does govern
  44.297 -#   all other use of the material that constitutes the Autoconf Macro.
  44.298 -#
  44.299 -#   This special exception to the GPL applies to versions of the Autoconf
  44.300 -#   Macro released by the Autoconf Archive. When you make and distribute a
  44.301 -#   modified version of the Autoconf Macro, you may extend this special
  44.302 -#   exception to the GPL to apply to your modified version as well.
  44.303 -
  44.304 -#serial 8
  44.305 -
  44.306 -AC_DEFUN([AX_GCC_ARCHFLAG],
  44.307 -[AC_REQUIRE([AC_PROG_CC])
  44.308 -AC_REQUIRE([AC_CANONICAL_HOST])
  44.309 -
  44.310 -AC_ARG_WITH(gcc-arch, [AS_HELP_STRING([--with-gcc-arch=<arch>], [use architecture <arch> for gcc -march/-mtune, instead of guessing])],
  44.311 -	ax_gcc_arch=$withval, ax_gcc_arch=yes)
  44.312 -
  44.313 -AC_MSG_CHECKING([for gcc architecture flag])
  44.314 -AC_MSG_RESULT([])
  44.315 -AC_CACHE_VAL(ax_cv_gcc_archflag,
  44.316 -[
  44.317 -ax_cv_gcc_archflag="unknown"
  44.318 -
  44.319 -if test "$GCC" = yes; then
  44.320 -
  44.321 -if test "x$ax_gcc_arch" = xyes; then
  44.322 -ax_gcc_arch=""
  44.323 -if test "$cross_compiling" = no; then
  44.324 -case $host_cpu in
  44.325 -  i[[3456]]86*|x86_64*) # use cpuid codes, in part from x86info-1.7 by D. Jones
  44.326 -     AX_GCC_X86_CPUID(0)
  44.327 -     AX_GCC_X86_CPUID(1)
  44.328 -     case $ax_cv_gcc_x86_cpuid_0 in
  44.329 -       *:756e6547:*:*) # Intel
  44.330 -          case $ax_cv_gcc_x86_cpuid_1 in
  44.331 -	    *5[[48]]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
  44.332 -	    *5??:*:*:*) ax_gcc_arch=pentium ;;
  44.333 -	    *6[[3456]]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
  44.334 -	    *6a?:*[[01]]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
  44.335 -	    *6a?:*[[234]]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
  44.336 -	    *6[[9d]]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
  44.337 -	    *6[[78b]]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
  44.338 -	    *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
  44.339 -            *f3[[347]]:*:*:*|*f4[1347]:*:*:*)
  44.340 -		case $host_cpu in
  44.341 -                  x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
  44.342 -                  *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
  44.343 -                esac ;;
  44.344 -            *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
  44.345 -          esac ;;
  44.346 -       *:68747541:*:*) # AMD
  44.347 -          case $ax_cv_gcc_x86_cpuid_1 in
  44.348 -	    *5[[67]]?:*:*:*) ax_gcc_arch=k6 ;;
  44.349 -	    *5[[8d]]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
  44.350 -	    *5[[9]]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
  44.351 -	    *60?:*:*:*) ax_gcc_arch=k7 ;;
  44.352 -	    *6[[12]]?:*:*:*) ax_gcc_arch="athlon k7" ;;
  44.353 -	    *6[[34]]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
  44.354 -	    *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
  44.355 -	    *6[[68a]]?:*:*:*)
  44.356 -	       AX_GCC_X86_CPUID(0x80000006) # L2 cache size
  44.357 -	       case $ax_cv_gcc_x86_cpuid_0x80000006 in
  44.358 -                 *:*:*[[1-9a-f]]??????:*) # (L2 = ecx >> 16) >= 256
  44.359 -			ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
  44.360 -                 *) ax_gcc_arch="athlon-4 athlon k7" ;;
  44.361 -	       esac ;;
  44.362 -	    *f[[4cef8b]]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
  44.363 -	    *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
  44.364 -	    *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
  44.365 -	    *f??:*:*:*) ax_gcc_arch="k8" ;;
  44.366 -          esac ;;
  44.367 -	*:746e6543:*:*) # IDT
  44.368 -	   case $ax_cv_gcc_x86_cpuid_1 in
  44.369 -	     *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
  44.370 -	     *58?:*:*:*) ax_gcc_arch=winchip2 ;;
  44.371 -	     *6[[78]]?:*:*:*) ax_gcc_arch=c3 ;;
  44.372 -	     *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
  44.373 -	   esac ;;
  44.374 -     esac
  44.375 -     if test x"$ax_gcc_arch" = x; then # fallback
  44.376 -	case $host_cpu in
  44.377 -	  i586*) ax_gcc_arch=pentium ;;
  44.378 -	  i686*) ax_gcc_arch=pentiumpro ;;
  44.379 -        esac
  44.380 -     fi
  44.381 -     ;;
  44.382 -
  44.383 -  sparc*)
  44.384 -     AC_PATH_PROG([PRTDIAG], [prtdiag], [prtdiag], [$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/])
  44.385 -     cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
  44.386 -     cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
  44.387 -     case $cputype in
  44.388 -         *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
  44.389 -         *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
  44.390 -         *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
  44.391 -         *supersparc*|*tms390z5[[05]]*) ax_gcc_arch="supersparc v8" ;;
  44.392 -         *hypersparc*|*rt62[[056]]*) ax_gcc_arch="hypersparc v8" ;;
  44.393 -         *cypress*) ax_gcc_arch=cypress ;;
  44.394 -     esac ;;
  44.395 -
  44.396 -  alphaev5) ax_gcc_arch=ev5 ;;
  44.397 -  alphaev56) ax_gcc_arch=ev56 ;;
  44.398 -  alphapca56) ax_gcc_arch="pca56 ev56" ;;
  44.399 -  alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
  44.400 -  alphaev6) ax_gcc_arch=ev6 ;;
  44.401 -  alphaev67) ax_gcc_arch=ev67 ;;
  44.402 -  alphaev68) ax_gcc_arch="ev68 ev67" ;;
  44.403 -  alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
  44.404 -  alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
  44.405 -  alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
  44.406 -
  44.407 -  powerpc*)
  44.408 -     cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
  44.409 -     cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
  44.410 -     case $cputype in
  44.411 -       *750*) ax_gcc_arch="750 G3" ;;
  44.412 -       *740[[0-9]]*) ax_gcc_arch="$cputype 7400 G4" ;;
  44.413 -       *74[[4-5]][[0-9]]*) ax_gcc_arch="$cputype 7450 G4" ;;
  44.414 -       *74[[0-9]][[0-9]]*) ax_gcc_arch="$cputype G4" ;;
  44.415 -       *970*) ax_gcc_arch="970 G5 power4";;
  44.416 -       *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
  44.417 -       *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
  44.418 -       603ev|8240) ax_gcc_arch="$cputype 603e 603";;
  44.419 -       *) ax_gcc_arch=$cputype ;;
  44.420 -     esac
  44.421 -     ax_gcc_arch="$ax_gcc_arch powerpc"
  44.422 -     ;;
  44.423 -esac
  44.424 -fi # not cross-compiling
  44.425 -fi # guess arch
  44.426 -
  44.427 -if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
  44.428 -for arch in $ax_gcc_arch; do
  44.429 -  if test "x[]m4_default([$1],yes)" = xyes; then # if we require portable code
  44.430 -    flags="-mtune=$arch"
  44.431 -    # -mcpu=$arch and m$arch generate nonportable code on every arch except
  44.432 -    # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
  44.433 -    case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
  44.434 -  else
  44.435 -    flags="-march=$arch -mcpu=$arch -m$arch"
  44.436 -  fi
  44.437 -  for flag in $flags; do
  44.438 -    AX_CHECK_COMPILER_FLAGS($flag, [ax_cv_gcc_archflag=$flag; break])
  44.439 -  done
  44.440 -  test "x$ax_cv_gcc_archflag" = xunknown || break
  44.441 -done
  44.442 -fi
  44.443 -
  44.444 -fi # $GCC=yes
  44.445 -])
  44.446 -AC_MSG_CHECKING([for gcc architecture flag])
  44.447 -AC_MSG_RESULT($ax_cv_gcc_archflag)
  44.448 -if test "x$ax_cv_gcc_archflag" = xunknown; then
  44.449 -  m4_default([$3],:)
  44.450 -else
  44.451 -  m4_default([$2], [CFLAGS="$CFLAGS $ax_cv_gcc_archflag"])
  44.452 -fi
  44.453 -])
  44.454 -# ===========================================================================
  44.455 -#     http://www.gnu.org/software/autoconf-archive/ax_gcc_x86_cpuid.html
  44.456 -# ===========================================================================
  44.457 -#
  44.458 -# SYNOPSIS
  44.459 -#
  44.460 -#   AX_GCC_X86_CPUID(OP)
  44.461 -#
  44.462 -# DESCRIPTION
  44.463 -#
  44.464 -#   On Pentium and later x86 processors, with gcc or a compiler that has a
  44.465 -#   compatible syntax for inline assembly instructions, run a small program
  44.466 -#   that executes the cpuid instruction with input OP. This can be used to
  44.467 -#   detect the CPU type.
  44.468 -#
  44.469 -#   On output, the values of the eax, ebx, ecx, and edx registers are stored
  44.470 -#   as hexadecimal strings as "eax:ebx:ecx:edx" in the cache variable
  44.471 -#   ax_cv_gcc_x86_cpuid_OP.
  44.472 -#
  44.473 -#   If the cpuid instruction fails (because you are running a
  44.474 -#   cross-compiler, or because you are not using gcc, or because you are on
  44.475 -#   a processor that doesn't have this instruction), ax_cv_gcc_x86_cpuid_OP
  44.476 -#   is set to the string "unknown".
  44.477 -#
  44.478 -#   This macro mainly exists to be used in AX_GCC_ARCHFLAG.
  44.479 -#
  44.480 -# LICENSE
  44.481 -#
  44.482 -#   Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
  44.483 -#   Copyright (c) 2008 Matteo Frigo
  44.484 -#
  44.485 -#   This program is free software: you can redistribute it and/or modify it
  44.486 -#   under the terms of the GNU General Public License as published by the
  44.487 -#   Free Software Foundation, either version 3 of the License, or (at your
  44.488 -#   option) any later version.
  44.489 -#
  44.490 -#   This program is distributed in the hope that it will be useful, but
  44.491 -#   WITHOUT ANY WARRANTY; without even the implied warranty of
  44.492 -#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  44.493 -#   Public License for more details.
  44.494 -#
  44.495 -#   You should have received a copy of the GNU General Public License along
  44.496 -#   with this program. If not, see <http://www.gnu.org/licenses/>.
  44.497 -#
  44.498 -#   As a special exception, the respective Autoconf Macro's copyright owner
  44.499 -#   gives unlimited permission to copy, distribute and modify the configure
  44.500 -#   scripts that are the output of Autoconf when processing the Macro. You
  44.501 -#   need not follow the terms of the GNU General Public License when using
  44.502 -#   or distributing such scripts, even though portions of the text of the
  44.503 -#   Macro appear in them. The GNU General Public License (GPL) does govern
  44.504 -#   all other use of the material that constitutes the Autoconf Macro.
  44.505 -#
  44.506 -#   This special exception to the GPL applies to versions of the Autoconf
  44.507 -#   Macro released by the Autoconf Archive. When you make and distribute a
  44.508 -#   modified version of the Autoconf Macro, you may extend this special
  44.509 -#   exception to the GPL to apply to your modified version as well.
  44.510 -
  44.511 -#serial 7
  44.512 -
  44.513 -AC_DEFUN([AX_GCC_X86_CPUID],
  44.514 -[AC_REQUIRE([AC_PROG_CC])
  44.515 -AC_LANG_PUSH([C])
  44.516 -AC_CACHE_CHECK(for x86 cpuid $1 output, ax_cv_gcc_x86_cpuid_$1,
  44.517 - [AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>], [
  44.518 -     int op = $1, eax, ebx, ecx, edx;
  44.519 -     FILE *f;
  44.520 -      __asm__("cpuid"
  44.521 -        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
  44.522 -        : "a" (op));
  44.523 -     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
  44.524 -     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
  44.525 -     fclose(f);
  44.526 -     return 0;
  44.527 -])],
  44.528 -     [ax_cv_gcc_x86_cpuid_$1=`cat conftest_cpuid`; rm -f conftest_cpuid],
  44.529 -     [ax_cv_gcc_x86_cpuid_$1=unknown; rm -f conftest_cpuid],
  44.530 -     [ax_cv_gcc_x86_cpuid_$1=unknown])])
  44.531 -AC_LANG_POP([C])
  44.532 -])
  44.533 -##############################################################################
  44.534 -#
  44.535 -# --- esd.m4 ---
  44.536 -#
  44.537 -# Configure paths for ESD
  44.538 -# Manish Singh    98-9-30
  44.539 -# stolen back from Frank Belew
  44.540 -# stolen from Manish Singh
  44.541 -# Shamelessly stolen from Owen Taylor
  44.542 -
  44.543 -dnl AM_PATH_ESD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
  44.544 -dnl Test for ESD, and define ESD_CFLAGS and ESD_LIBS
  44.545 -dnl
  44.546 -AC_DEFUN([AM_PATH_ESD],
  44.547 -[dnl 
  44.548 -dnl Get the cflags and libraries from the esd-config script
  44.549 -dnl
  44.550 -AC_ARG_WITH(esd-prefix,[  --with-esd-prefix=PFX   Prefix where ESD is installed (optional)],
  44.551 -            esd_prefix="$withval", esd_prefix="")
  44.552 -AC_ARG_WITH(esd-exec-prefix,[  --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)],
  44.553 -            esd_exec_prefix="$withval", esd_exec_prefix="")
  44.554 -AC_ARG_ENABLE(esdtest, [  --disable-esdtest       Do not try to compile and run a test ESD program],
  44.555 -		    , enable_esdtest=yes)
  44.556 -
  44.557 -  if test x$esd_exec_prefix != x ; then
  44.558 -     esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  44.559 -     if test x${ESD_CONFIG+set} != xset ; then
  44.560 -        ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  44.561 -     fi
  44.562 -  fi
  44.563 -  if test x$esd_prefix != x ; then
  44.564 -     esd_args="$esd_args --prefix=$esd_prefix"
  44.565 -     if test x${ESD_CONFIG+set} != xset ; then
  44.566 -        ESD_CONFIG=$esd_prefix/bin/esd-config
  44.567 -     fi
  44.568 -  fi
  44.569 -
  44.570 -  AC_PATH_PROG(ESD_CONFIG, esd-config, no)
  44.571 -  min_esd_version=ifelse([$1], ,0.2.7,$1)
  44.572 -  AC_MSG_CHECKING(for ESD - version >= $min_esd_version)
  44.573 -  no_esd=""
  44.574 -  if test "$ESD_CONFIG" = "no" ; then
  44.575 -    no_esd=yes
  44.576 -  else
  44.577 -    ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  44.578 -    ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  44.579 -
  44.580 -    esd_major_version=`$ESD_CONFIG $esd_args --version | \
  44.581 -           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
  44.582 -    esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  44.583 -           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
  44.584 -    esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  44.585 -           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
  44.586 -    if test "x$enable_esdtest" = "xyes" ; then
  44.587 -      ac_save_CFLAGS="$CFLAGS"
  44.588 -      ac_save_LIBS="$LIBS"
  44.589 -      CFLAGS="$CFLAGS $ESD_CFLAGS"
  44.590 -      LIBS="$LIBS $ESD_LIBS"
  44.591 -dnl
  44.592 -dnl Now check if the installed ESD is sufficiently new. (Also sanity
  44.593 -dnl checks the results of esd-config to some extent
  44.594 -dnl
  44.595 -      rm -f conf.esdtest
  44.596 -      AC_TRY_RUN([
  44.597 -#include <stdio.h>
  44.598 -#include <stdlib.h>
  44.599 -#include <string.h>
  44.600 -#include <esd.h>
  44.601 -
  44.602 -char*
  44.603 -my_strdup (char *str)
  44.604 -{
  44.605 -  char *new_str;
  44.606 -  
  44.607 -  if (str)
  44.608 -    {
  44.609 -      new_str = malloc ((strlen (str) + 1) * sizeof(char));
  44.610 -      strcpy (new_str, str);
  44.611 -    }
  44.612 -  else
  44.613 -    new_str = NULL;
  44.614 -  
  44.615 -  return new_str;
  44.616 -}
  44.617 -
  44.618 -int main ()
  44.619 -{
  44.620 -  int major, minor, micro;
  44.621 -  char *tmp_version;
  44.622 -
  44.623 -  system ("touch conf.esdtest");
  44.624 -
  44.625 -  /* HP/UX 9 (%@#!) writes to sscanf strings */
  44.626 -  tmp_version = my_strdup("$min_esd_version");
  44.627 -  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  44.628 -     printf("%s, bad version string\n", "$min_esd_version");
  44.629 -     exit(1);
  44.630 -   }
  44.631 -
  44.632 -   if (($esd_major_version > major) ||
  44.633 -      (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  44.634 -      (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  44.635 -    {
  44.636 -      return 0;
  44.637 -    }
  44.638 -  else
  44.639 -    {
  44.640 -      printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  44.641 -      printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  44.642 -      printf("*** best to upgrade to the required version.\n");
  44.643 -      printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  44.644 -      printf("*** to point to the correct copy of esd-config, and remove the file\n");
  44.645 -      printf("*** config.cache before re-running configure\n");
  44.646 -      return 1;
  44.647 -    }
  44.648 -}
  44.649 -
  44.650 -],, no_esd=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
  44.651 -       CFLAGS="$ac_save_CFLAGS"
  44.652 -       LIBS="$ac_save_LIBS"
  44.653 -     fi
  44.654 -  fi
  44.655 -  if test "x$no_esd" = x ; then
  44.656 -     AC_MSG_RESULT(yes)
  44.657 -     ifelse([$2], , :, [$2])     
  44.658 -  else
  44.659 -     AC_MSG_RESULT(no)
  44.660 -     if test "$ESD_CONFIG" = "no" ; then
  44.661 -       echo "*** The esd-config script installed by ESD could not be found"
  44.662 -       echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  44.663 -       echo "*** your path, or set the ESD_CONFIG environment variable to the"
  44.664 -       echo "*** full path to esd-config."
  44.665 -     else
  44.666 -       if test -f conf.esdtest ; then
  44.667 -        :
  44.668 -       else
  44.669 -          echo "*** Could not run ESD test program, checking why..."
  44.670 -          CFLAGS="$CFLAGS $ESD_CFLAGS"
  44.671 -          LIBS="$LIBS $ESD_LIBS"
  44.672 -          AC_TRY_LINK([
  44.673 -#include <stdio.h>
  44.674 -#include <esd.h>
  44.675 -],      [ return 0; ],
  44.676 -        [ echo "*** The test program compiled, but did not run. This usually means"
  44.677 -          echo "*** that the run-time linker is not finding ESD or finding the wrong"
  44.678 -          echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  44.679 -          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  44.680 -          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  44.681 -          echo "*** is required on your system"
  44.682 -	  echo "***"
  44.683 -          echo "*** If you have an old version installed, it is best to remove it, although"
  44.684 -          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
  44.685 -        [ echo "*** The test program failed to compile or link. See the file config.log for the"
  44.686 -          echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  44.687 -          echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  44.688 -          echo "*** may want to edit the esd-config script: $ESD_CONFIG" ])
  44.689 -          CFLAGS="$ac_save_CFLAGS"
  44.690 -          LIBS="$ac_save_LIBS"
  44.691 -       fi
  44.692 -     fi
  44.693 -     ESD_CFLAGS=""
  44.694 -     ESD_LIBS=""
  44.695 -     ifelse([$3], , :, [$3])
  44.696 -  fi
  44.697 -  AC_SUBST(ESD_CFLAGS)
  44.698 -  AC_SUBST(ESD_LIBS)
  44.699 -  rm -f conf.esdtest
  44.700 -])
  44.701 -##############################################################################
  44.702 -# Based on libtool-2.4.2
  44.703 -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  44.704 -#
  44.705 -#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  44.706 -#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  44.707 -#                 Foundation, Inc.
  44.708 -#   Written by Gordon Matzigkeit, 1996
  44.709 -#
  44.710 -# This file is free software; the Free Software Foundation gives
  44.711 -# unlimited permission to copy and/or distribute it, with or without
  44.712 -# modifications, as long as this notice is preserved.
  44.713 -
  44.714 -m4_define([_LT_COPYING], [dnl
  44.715 -#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  44.716 -#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  44.717 -#                 Foundation, Inc.
  44.718 -#   Written by Gordon Matzigkeit, 1996
  44.719 -#
  44.720 -#   This file is part of GNU Libtool.
  44.721 -#
  44.722 -# GNU Libtool is free software; you can redistribute it and/or
  44.723 -# modify it under the terms of the GNU General Public License as
  44.724 -# published by the Free Software Foundation; either version 2 of
  44.725 -# the License, or (at your option) any later version.
  44.726 -#
  44.727 -# As a special exception to the GNU General Public License,
  44.728 -# if you distribute this file as part of a program or library that
  44.729 -# is built using GNU Libtool, you may include this file under the
  44.730 -# same distribution terms that you use for the rest of that program.
  44.731 -#
  44.732 -# GNU Libtool is distributed in the hope that it will be useful,
  44.733 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  44.734 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  44.735 -# GNU General Public License for more details.
  44.736 -#
  44.737 -# You should have received a copy of the GNU General Public License
  44.738 -# along with GNU Libtool; see the file COPYING.  If not, a copy
  44.739 -# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  44.740 -# obtained by writing to the Free Software Foundation, Inc.,
  44.741 -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  44.742 -])
  44.743 -
  44.744 -# serial 57 LT_INIT
  44.745 -
  44.746 -
  44.747 -# LT_PREREQ(VERSION)
  44.748 -# ------------------
  44.749 -# Complain and exit if this libtool version is less that VERSION.
  44.750 -m4_defun([LT_PREREQ],
  44.751 -[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  44.752 -       [m4_default([$3],
  44.753 -		   [m4_fatal([Libtool version $1 or higher is required],
  44.754 -		             63)])],
  44.755 -       [$2])])
  44.756 -
  44.757 -
  44.758 -# _LT_CHECK_BUILDDIR
  44.759 -# ------------------
  44.760 -# Complain if the absolute build directory name contains unusual characters
  44.761 -m4_defun([_LT_CHECK_BUILDDIR],
  44.762 -[case `pwd` in
  44.763 -  *\ * | *\	*)
  44.764 -    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  44.765 -esac
  44.766 -])
  44.767 -
  44.768 -
  44.769 -# LT_INIT([OPTIONS])
  44.770 -# ------------------
  44.771 -AC_DEFUN([LT_INIT],
  44.772 -[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  44.773 -AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  44.774 -AC_BEFORE([$0], [LT_LANG])dnl
  44.775 -AC_BEFORE([$0], [LT_OUTPUT])dnl
  44.776 -AC_BEFORE([$0], [LTDL_INIT])dnl
  44.777 -m4_require([_LT_CHECK_BUILDDIR])dnl
  44.778 -
  44.779 -dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  44.780 -m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  44.781 -m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  44.782 -dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  44.783 -dnl unless we require an AC_DEFUNed macro:
  44.784 -AC_REQUIRE([LTOPTIONS_VERSION])dnl
  44.785 -AC_REQUIRE([LTSUGAR_VERSION])dnl
  44.786 -AC_REQUIRE([LTVERSION_VERSION])dnl
  44.787 -AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  44.788 -m4_require([_LT_PROG_LTMAIN])dnl
  44.789 -
  44.790 -_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  44.791 -
  44.792 -dnl Parse OPTIONS
  44.793 -_LT_SET_OPTIONS([$0], [$1])
  44.794 -
  44.795 -# This can be used to rebuild libtool when needed
  44.796 -LIBTOOL_DEPS="$ltmain"
  44.797 -
  44.798 -# Always use our own libtool.
  44.799 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  44.800 -AC_SUBST(LIBTOOL)dnl
  44.801 -
  44.802 -_LT_SETUP
  44.803 -
  44.804 -# Only expand once:
  44.805 -m4_define([LT_INIT])
  44.806 -])# LT_INIT
  44.807 -
  44.808 -# Old names:
  44.809 -AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  44.810 -AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  44.811 -dnl aclocal-1.4 backwards compatibility:
  44.812 -dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  44.813 -dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  44.814 -
  44.815 -
  44.816 -# _LT_CC_BASENAME(CC)
  44.817 -# -------------------
  44.818 -# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
  44.819 -m4_defun([_LT_CC_BASENAME],
  44.820 -[for cc_temp in $1""; do
  44.821 -  case $cc_temp in
  44.822 -    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  44.823 -    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  44.824 -    \-*) ;;
  44.825 -    *) break;;
  44.826 -  esac
  44.827 -done
  44.828 -cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  44.829 -])
  44.830 -
  44.831 -
  44.832 -# _LT_FILEUTILS_DEFAULTS
  44.833 -# ----------------------
  44.834 -# It is okay to use these file commands and assume they have been set
  44.835 -# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  44.836 -m4_defun([_LT_FILEUTILS_DEFAULTS],
  44.837 -[: ${CP="cp -f"}
  44.838 -: ${MV="mv -f"}
  44.839 -: ${RM="rm -f"}
  44.840 -])# _LT_FILEUTILS_DEFAULTS
  44.841 -
  44.842 -
  44.843 -# _LT_SETUP
  44.844 -# ---------
  44.845 -m4_defun([_LT_SETUP],
  44.846 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  44.847 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  44.848 -AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  44.849 -AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  44.850 -
  44.851 -_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  44.852 -dnl
  44.853 -_LT_DECL([], [host_alias], [0], [The host system])dnl
  44.854 -_LT_DECL([], [host], [0])dnl
  44.855 -_LT_DECL([], [host_os], [0])dnl
  44.856 -dnl
  44.857 -_LT_DECL([], [build_alias], [0], [The build system])dnl
  44.858 -_LT_DECL([], [build], [0])dnl
  44.859 -_LT_DECL([], [build_os], [0])dnl
  44.860 -dnl
  44.861 -AC_REQUIRE([AC_PROG_CC])dnl
  44.862 -AC_REQUIRE([LT_PATH_LD])dnl
  44.863 -AC_REQUIRE([LT_PATH_NM])dnl
  44.864 -dnl
  44.865 -AC_REQUIRE([AC_PROG_LN_S])dnl
  44.866 -test -z "$LN_S" && LN_S="ln -s"
  44.867 -_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  44.868 -dnl
  44.869 -AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  44.870 -_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  44.871 -_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  44.872 -dnl
  44.873 -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  44.874 -m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  44.875 -m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  44.876 -m4_require([_LT_CMD_RELOAD])dnl
  44.877 -m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  44.878 -m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  44.879 -m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  44.880 -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  44.881 -m4_require([_LT_WITH_SYSROOT])dnl
  44.882 -
  44.883 -_LT_CONFIG_LIBTOOL_INIT([
  44.884 -# See if we are running on zsh, and set the options which allow our
  44.885 -# commands through without removal of \ escapes INIT.
  44.886 -if test -n "\${ZSH_VERSION+set}" ; then
  44.887 -   setopt NO_GLOB_SUBST
  44.888 -fi
  44.889 -])
  44.890 -if test -n "${ZSH_VERSION+set}" ; then
  44.891 -   setopt NO_GLOB_SUBST
  44.892 -fi
  44.893 -
  44.894 -_LT_CHECK_OBJDIR
  44.895 -
  44.896 -m4_require([_LT_TAG_COMPILER])dnl
  44.897 -
  44.898 -case $host_os in
  44.899 -aix3*)
  44.900 -  # AIX sometimes has problems with the GCC collect2 program.  For some
  44.901 -  # reason, if we set the COLLECT_NAMES environment variable, the problems
  44.902 -  # vanish in a puff of smoke.
  44.903 -  if test "X${COLLECT_NAMES+set}" != Xset; then
  44.904 -    COLLECT_NAMES=
  44.905 -    export COLLECT_NAMES
  44.906 -  fi
  44.907 -  ;;
  44.908 -esac
  44.909 -
  44.910 -# Global variables:
  44.911 -ofile=libtool
  44.912 -can_build_shared=yes
  44.913 -
  44.914 -# All known linkers require a `.a' archive for static linking (except MSVC,
  44.915 -# which needs '.lib').
  44.916 -libext=a
  44.917 -
  44.918 -with_gnu_ld="$lt_cv_prog_gnu_ld"
  44.919 -
  44.920 -old_CC="$CC"
  44.921 -old_CFLAGS="$CFLAGS"
  44.922 -
  44.923 -# Set sane defaults for various variables
  44.924 -test -z "$CC" && CC=cc
  44.925 -test -z "$LTCC" && LTCC=$CC
  44.926 -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  44.927 -test -z "$LD" && LD=ld
  44.928 -test -z "$ac_objext" && ac_objext=o
  44.929 -
  44.930 -_LT_CC_BASENAME([$compiler])
  44.931 -
  44.932 -# Only perform the check for file, if the check method requires it
  44.933 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  44.934 -case $deplibs_check_method in
  44.935 -file_magic*)
  44.936 -  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  44.937 -    _LT_PATH_MAGIC
  44.938 -  fi
  44.939 -  ;;
  44.940 -esac
  44.941 -
  44.942 -# Use C for the default configuration in the libtool script
  44.943 -LT_SUPPORTED_TAG([CC])
  44.944 -_LT_LANG_C_CONFIG
  44.945 -_LT_LANG_DEFAULT_CONFIG
  44.946 -_LT_CONFIG_COMMANDS
  44.947 -])# _LT_SETUP
  44.948 -
  44.949 -
  44.950 -# _LT_PREPARE_SED_QUOTE_VARS
  44.951 -# --------------------------
  44.952 -# Define a few sed substitution that help us do robust quoting.
  44.953 -m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  44.954 -[# Backslashify metacharacters that are still active within
  44.955 -# double-quoted strings.
  44.956 -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  44.957 -
  44.958 -# Same as above, but do not quote variable references.
  44.959 -double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  44.960 -
  44.961 -# Sed substitution to delay expansion of an escaped shell variable in a
  44.962 -# double_quote_subst'ed string.
  44.963 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  44.964 -
  44.965 -# Sed substitution to delay expansion of an escaped single quote.
  44.966 -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  44.967 -
  44.968 -# Sed substitution to avoid accidental globbing in evaled expressions
  44.969 -no_glob_subst='s/\*/\\\*/g'
  44.970 -])
  44.971 -
  44.972 -# _LT_PROG_LTMAIN
  44.973 -# ---------------
  44.974 -# Note that this code is called both from `configure', and `config.status'
  44.975 -# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
  44.976 -# `config.status' has no value for ac_aux_dir unless we are using Automake,
  44.977 -# so we pass a copy along to make sure it has a sensible value anyway.
  44.978 -m4_defun([_LT_PROG_LTMAIN],
  44.979 -[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  44.980 -_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  44.981 -ltmain="$ac_aux_dir/ltmain.sh"
  44.982 -])# _LT_PROG_LTMAIN
  44.983 -
  44.984 -
  44.985 -## ------------------------------------- ##
  44.986 -## Accumulate code for creating libtool. ##
  44.987 -## ------------------------------------- ##
  44.988 -
  44.989 -# So that we can recreate a full libtool script including additional
  44.990 -# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  44.991 -# in macros and then make a single call at the end using the `libtool'
  44.992 -# label.
  44.993 -
  44.994 -
  44.995 -# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  44.996 -# ----------------------------------------
  44.997 -# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  44.998 -m4_define([_LT_CONFIG_LIBTOOL_INIT],
  44.999 -[m4_ifval([$1],
 44.1000 -          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 44.1001 -                     [$1
 44.1002 -])])])
 44.1003 -
 44.1004 -# Initialize.
 44.1005 -m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 44.1006 -
 44.1007 -
 44.1008 -# _LT_CONFIG_LIBTOOL([COMMANDS])
 44.1009 -# ------------------------------
 44.1010 -# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 44.1011 -m4_define([_LT_CONFIG_LIBTOOL],
 44.1012 -[m4_ifval([$1],
 44.1013 -          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 44.1014 -                     [$1
 44.1015 -])])])
 44.1016 -
 44.1017 -# Initialize.
 44.1018 -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 44.1019 -
 44.1020 -
 44.1021 -# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 44.1022 -# -----------------------------------------------------
 44.1023 -m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 44.1024 -[_LT_CONFIG_LIBTOOL([$1])
 44.1025 -_LT_CONFIG_LIBTOOL_INIT([$2])
 44.1026 -])
 44.1027 -
 44.1028 -
 44.1029 -# _LT_FORMAT_COMMENT([COMMENT])
 44.1030 -# -----------------------------
 44.1031 -# Add leading comment marks to the start of each line, and a trailing
 44.1032 -# full-stop to the whole comment if one is not present already.
 44.1033 -m4_define([_LT_FORMAT_COMMENT],
 44.1034 -[m4_ifval([$1], [
 44.1035 -m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 44.1036 -              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 44.1037 -)])
 44.1038 -
 44.1039 -
 44.1040 -
 44.1041 -## ------------------------ ##
 44.1042 -## FIXME: Eliminate VARNAME ##
 44.1043 -## ------------------------ ##
 44.1044 -
 44.1045 -
 44.1046 -# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 44.1047 -# -------------------------------------------------------------------
 44.1048 -# CONFIGNAME is the name given to the value in the libtool script.
 44.1049 -# VARNAME is the (base) name used in the configure script.
 44.1050 -# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 44.1051 -# VARNAME.  Any other value will be used directly.
 44.1052 -m4_define([_LT_DECL],
 44.1053 -[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 44.1054 -    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 44.1055 -	[m4_ifval([$1], [$1], [$2])])
 44.1056 -    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 44.1057 -    m4_ifval([$4],
 44.1058 -	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 44.1059 -    lt_dict_add_subkey([lt_decl_dict], [$2],
 44.1060 -	[tagged?], [m4_ifval([$5], [yes], [no])])])
 44.1061 -])
 44.1062 -
 44.1063 -
 44.1064 -# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 44.1065 -# --------------------------------------------------------
 44.1066 -m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 44.1067 -
 44.1068 -
 44.1069 -# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 44.1070 -# ------------------------------------------------
 44.1071 -m4_define([lt_decl_tag_varnames],
 44.1072 -[_lt_decl_filter([tagged?], [yes], $@)])
 44.1073 -
 44.1074 -
 44.1075 -# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 44.1076 -# ---------------------------------------------------------
 44.1077 -m4_define([_lt_decl_filter],
 44.1078 -[m4_case([$#],
 44.1079 -  [0], [m4_fatal([$0: too few arguments: $#])],
 44.1080 -  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 44.1081 -  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 44.1082 -  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 44.1083 -  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 44.1084 -])
 44.1085 -
 44.1086 -
 44.1087 -# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 44.1088 -# --------------------------------------------------
 44.1089 -m4_define([lt_decl_quote_varnames],
 44.1090 -[_lt_decl_filter([value], [1], $@)])
 44.1091 -
 44.1092 -
 44.1093 -# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 44.1094 -# ---------------------------------------------------
 44.1095 -m4_define([lt_decl_dquote_varnames],
 44.1096 -[_lt_decl_filter([value], [2], $@)])
 44.1097 -
 44.1098 -
 44.1099 -# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 44.1100 -# ---------------------------------------------------
 44.1101 -m4_define([lt_decl_varnames_tagged],
 44.1102 -[m4_assert([$# <= 2])dnl
 44.1103 -_$0(m4_quote(m4_default([$1], [[, ]])),
 44.1104 -    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 44.1105 -    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 44.1106 -m4_define([_lt_decl_varnames_tagged],
 44.1107 -[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 44.1108 -
 44.1109 -
 44.1110 -# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 44.1111 -# ------------------------------------------------
 44.1112 -m4_define([lt_decl_all_varnames],
 44.1113 -[_$0(m4_quote(m4_default([$1], [[, ]])),
 44.1114 -     m4_if([$2], [],
 44.1115 -	   m4_quote(lt_decl_varnames),
 44.1116 -	m4_quote(m4_shift($@))))[]dnl
 44.1117 -])
 44.1118 -m4_define([_lt_decl_all_varnames],
 44.1119 -[lt_join($@, lt_decl_varnames_tagged([$1],
 44.1120 -			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 44.1121 -])
 44.1122 -
 44.1123 -
 44.1124 -# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 44.1125 -# ------------------------------------
 44.1126 -# Quote a variable value, and forward it to `config.status' so that its
 44.1127 -# declaration there will have the same value as in `configure'.  VARNAME
 44.1128 -# must have a single quote delimited value for this to work.
 44.1129 -m4_define([_LT_CONFIG_STATUS_DECLARE],
 44.1130 -[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
 44.1131 -
 44.1132 -
 44.1133 -# _LT_CONFIG_STATUS_DECLARATIONS
 44.1134 -# ------------------------------
 44.1135 -# We delimit libtool config variables with single quotes, so when
 44.1136 -# we write them to config.status, we have to be sure to quote all
 44.1137 -# embedded single quotes properly.  In configure, this macro expands
 44.1138 -# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 44.1139 -#
 44.1140 -#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
 44.1141 -m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 44.1142 -[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 44.1143 -    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 44.1144 -
 44.1145 -
 44.1146 -# _LT_LIBTOOL_TAGS
 44.1147 -# ----------------
 44.1148 -# Output comment and list of tags supported by the script
 44.1149 -m4_defun([_LT_LIBTOOL_TAGS],
 44.1150 -[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 44.1151 -available_tags="_LT_TAGS"dnl
 44.1152 -])
 44.1153 -
 44.1154 -
 44.1155 -# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 44.1156 -# -----------------------------------
 44.1157 -# Extract the dictionary values for VARNAME (optionally with TAG) and
 44.1158 -# expand to a commented shell variable setting:
 44.1159 -#
 44.1160 -#    # Some comment about what VAR is for.
 44.1161 -#    visible_name=$lt_internal_name
 44.1162 -m4_define([_LT_LIBTOOL_DECLARE],
 44.1163 -[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 44.1164 -					   [description])))[]dnl
 44.1165 -m4_pushdef([_libtool_name],
 44.1166 -    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 44.1167 -m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 44.1168 -    [0], [_libtool_name=[$]$1],
 44.1169 -    [1], [_libtool_name=$lt_[]$1],
 44.1170 -    [2], [_libtool_name=$lt_[]$1],
 44.1171 -    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 44.1172 -m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 44.1173 -])
 44.1174 -
 44.1175 -
 44.1176 -# _LT_LIBTOOL_CONFIG_VARS
 44.1177 -# -----------------------
 44.1178 -# Produce commented declarations of non-tagged libtool config variables
 44.1179 -# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 44.1180 -# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 44.1181 -# section) are produced by _LT_LIBTOOL_TAG_VARS.
 44.1182 -m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 44.1183 -[m4_foreach([_lt_var],
 44.1184 -    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 44.1185 -    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 44.1186 -
 44.1187 -
 44.1188 -# _LT_LIBTOOL_TAG_VARS(TAG)
 44.1189 -# -------------------------
 44.1190 -m4_define([_LT_LIBTOOL_TAG_VARS],
 44.1191 -[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 44.1192 -    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 44.1193 -
 44.1194 -
 44.1195 -# _LT_TAGVAR(VARNAME, [TAGNAME])
 44.1196 -# ------------------------------
 44.1197 -m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 44.1198 -
 44.1199 -
 44.1200 -# _LT_CONFIG_COMMANDS
 44.1201 -# -------------------
 44.1202 -# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 44.1203 -# variables for single and double quote escaping we saved from calls
 44.1204 -# to _LT_DECL, we can put quote escaped variables declarations
 44.1205 -# into `config.status', and then the shell code to quote escape them in
 44.1206 -# for loops in `config.status'.  Finally, any additional code accumulated
 44.1207 -# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 44.1208 -m4_defun([_LT_CONFIG_COMMANDS],
 44.1209 -[AC_PROVIDE_IFELSE([LT_OUTPUT],
 44.1210 -	dnl If the libtool generation code has been placed in $CONFIG_LT,
 44.1211 -	dnl instead of duplicating it all over again into config.status,
 44.1212 -	dnl then we will have config.status run $CONFIG_LT later, so it
 44.1213 -	dnl needs to know what name is stored there:
 44.1214 -        [AC_CONFIG_COMMANDS([libtool],
 44.1215 -            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 44.1216 -    dnl If the libtool generation code is destined for config.status,
 44.1217 -    dnl expand the accumulated commands and init code now:
 44.1218 -    [AC_CONFIG_COMMANDS([libtool],
 44.1219 -        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 44.1220 -])#_LT_CONFIG_COMMANDS
 44.1221 -
 44.1222 -
 44.1223 -# Initialize.
 44.1224 -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 44.1225 -[
 44.1226 -
 44.1227 -# The HP-UX ksh and POSIX shell print the target directory to stdout
 44.1228 -# if CDPATH is set.
 44.1229 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 44.1230 -
 44.1231 -sed_quote_subst='$sed_quote_subst'
 44.1232 -double_quote_subst='$double_quote_subst'
 44.1233 -delay_variable_subst='$delay_variable_subst'
 44.1234 -_LT_CONFIG_STATUS_DECLARATIONS
 44.1235 -LTCC='$LTCC'
 44.1236 -LTCFLAGS='$LTCFLAGS'
 44.1237 -compiler='$compiler_DEFAULT'
 44.1238 -
 44.1239 -# A function that is used when there is no print builtin or printf.
 44.1240 -func_fallback_echo ()
 44.1241 -{
 44.1242 -  eval 'cat <<_LTECHO_EOF
 44.1243 -\$[]1
 44.1244 -_LTECHO_EOF'
 44.1245 -}
 44.1246 -
 44.1247 -# Quote evaled strings.
 44.1248 -for var in lt_decl_all_varnames([[ \
 44.1249 -]], lt_decl_quote_varnames); do
 44.1250 -    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 44.1251 -    *[[\\\\\\\`\\"\\\$]]*)
 44.1252 -      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 44.1253 -      ;;
 44.1254 -    *)
 44.1255 -      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 44.1256 -      ;;
 44.1257 -    esac
 44.1258 -done
 44.1259 -
 44.1260 -# Double-quote double-evaled strings.
 44.1261 -for var in lt_decl_all_varnames([[ \
 44.1262 -]], lt_decl_dquote_varnames); do
 44.1263 -    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 44.1264 -    *[[\\\\\\\`\\"\\\$]]*)
 44.1265 -      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 44.1266 -      ;;
 44.1267 -    *)
 44.1268 -      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 44.1269 -      ;;
 44.1270 -    esac
 44.1271 -done
 44.1272 -
 44.1273 -_LT_OUTPUT_LIBTOOL_INIT
 44.1274 -])
 44.1275 -
 44.1276 -# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
 44.1277 -# ------------------------------------
 44.1278 -# Generate a child script FILE with all initialization necessary to
 44.1279 -# reuse the environment learned by the parent script, and make the
 44.1280 -# file executable.  If COMMENT is supplied, it is inserted after the
 44.1281 -# `#!' sequence but before initialization text begins.  After this
 44.1282 -# macro, additional text can be appended to FILE to form the body of
 44.1283 -# the child script.  The macro ends with non-zero status if the
 44.1284 -# file could not be fully written (such as if the disk is full).
 44.1285 -m4_ifdef([AS_INIT_GENERATED],
 44.1286 -[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
 44.1287 -[m4_defun([_LT_GENERATED_FILE_INIT],
 44.1288 -[m4_require([AS_PREPARE])]dnl
 44.1289 -[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
 44.1290 -[lt_write_fail=0
 44.1291 -cat >$1 <<_ASEOF || lt_write_fail=1
 44.1292 -#! $SHELL
 44.1293 -# Generated by $as_me.
 44.1294 -$2
 44.1295 -SHELL=\${CONFIG_SHELL-$SHELL}
 44.1296 -export SHELL
 44.1297 -_ASEOF
 44.1298 -cat >>$1 <<\_ASEOF || lt_write_fail=1
 44.1299 -AS_SHELL_SANITIZE
 44.1300 -_AS_PREPARE
 44.1301 -exec AS_MESSAGE_FD>&1
 44.1302 -_ASEOF
 44.1303 -test $lt_write_fail = 0 && chmod +x $1[]dnl
 44.1304 -m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
 44.1305 -
 44.1306 -# LT_OUTPUT
 44.1307 -# ---------
 44.1308 -# This macro allows early generation of the libtool script (before
 44.1309 -# AC_OUTPUT is called), incase it is used in configure for compilation
 44.1310 -# tests.
 44.1311 -AC_DEFUN([LT_OUTPUT],
 44.1312 -[: ${CONFIG_LT=./config.lt}
 44.1313 -AC_MSG_NOTICE([creating $CONFIG_LT])
 44.1314 -_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
 44.1315 -[# Run this file to recreate a libtool stub with the current configuration.])
 44.1316 -
 44.1317 -cat >>"$CONFIG_LT" <<\_LTEOF
 44.1318 -lt_cl_silent=false
 44.1319 -exec AS_MESSAGE_LOG_FD>>config.log
 44.1320 -{
 44.1321 -  echo
 44.1322 -  AS_BOX([Running $as_me.])
 44.1323 -} >&AS_MESSAGE_LOG_FD
 44.1324 -
 44.1325 -lt_cl_help="\
 44.1326 -\`$as_me' creates a local libtool stub from the current configuration,
 44.1327 -for use in further configure time tests before the real libtool is
 44.1328 -generated.
 44.1329 -
 44.1330 -Usage: $[0] [[OPTIONS]]
 44.1331 -
 44.1332 -  -h, --help      print this help, then exit
 44.1333 -  -V, --version   print version number, then exit
 44.1334 -  -q, --quiet     do not print progress messages
 44.1335 -  -d, --debug     don't remove temporary files
 44.1336 -
 44.1337 -Report bugs to <bug-libtool@gnu.org>."
 44.1338 -
 44.1339 -lt_cl_version="\
 44.1340 -m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 44.1341 -m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 44.1342 -configured by $[0], generated by m4_PACKAGE_STRING.
 44.1343 -
 44.1344 -Copyright (C) 2011 Free Software Foundation, Inc.
 44.1345 -This config.lt script is free software; the Free Software Foundation
 44.1346 -gives unlimited permision to copy, distribute and modify it."
 44.1347 -
 44.1348 -while test $[#] != 0
 44.1349 -do
 44.1350 -  case $[1] in
 44.1351 -    --version | --v* | -V )
 44.1352 -      echo "$lt_cl_version"; exit 0 ;;
 44.1353 -    --help | --h* | -h )
 44.1354 -      echo "$lt_cl_help"; exit 0 ;;
 44.1355 -    --debug | --d* | -d )
 44.1356 -      debug=: ;;
 44.1357 -    --quiet | --q* | --silent | --s* | -q )
 44.1358 -      lt_cl_silent=: ;;
 44.1359 -
 44.1360 -    -*) AC_MSG_ERROR([unrecognized option: $[1]
 44.1361 -Try \`$[0] --help' for more information.]) ;;
 44.1362 -
 44.1363 -    *) AC_MSG_ERROR([unrecognized argument: $[1]
 44.1364 -Try \`$[0] --help' for more information.]) ;;
 44.1365 -  esac
 44.1366 -  shift
 44.1367 -done
 44.1368 -
 44.1369 -if $lt_cl_silent; then
 44.1370 -  exec AS_MESSAGE_FD>/dev/null
 44.1371 -fi
 44.1372 -_LTEOF
 44.1373 -
 44.1374 -cat >>"$CONFIG_LT" <<_LTEOF
 44.1375 -_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 44.1376 -_LTEOF
 44.1377 -
 44.1378 -cat >>"$CONFIG_LT" <<\_LTEOF
 44.1379 -AC_MSG_NOTICE([creating $ofile])
 44.1380 -_LT_OUTPUT_LIBTOOL_COMMANDS
 44.1381 -AS_EXIT(0)
 44.1382 -_LTEOF
 44.1383 -chmod +x "$CONFIG_LT"
 44.1384 -
 44.1385 -# configure is writing to config.log, but config.lt does its own redirection,
 44.1386 -# appending to config.log, which fails on DOS, as config.log is still kept
 44.1387 -# open by configure.  Here we exec the FD to /dev/null, effectively closing
 44.1388 -# config.log, so it can be properly (re)opened and appended to by config.lt.
 44.1389 -lt_cl_success=:
 44.1390 -test "$silent" = yes &&
 44.1391 -  lt_config_lt_args="$lt_config_lt_args --quiet"
 44.1392 -exec AS_MESSAGE_LOG_FD>/dev/null
 44.1393 -$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 44.1394 -exec AS_MESSAGE_LOG_FD>>config.log
 44.1395 -$lt_cl_success || AS_EXIT(1)
 44.1396 -])# LT_OUTPUT
 44.1397 -
 44.1398 -
 44.1399 -# _LT_CONFIG(TAG)
 44.1400 -# ---------------
 44.1401 -# If TAG is the built-in tag, create an initial libtool script with a
 44.1402 -# default configuration from the untagged config vars.  Otherwise add code
 44.1403 -# to config.status for appending the configuration named by TAG from the
 44.1404 -# matching tagged config vars.
 44.1405 -m4_defun([_LT_CONFIG],
 44.1406 -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 44.1407 -_LT_CONFIG_SAVE_COMMANDS([
 44.1408 -  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 44.1409 -  m4_if(_LT_TAG, [C], [
 44.1410 -    # See if we are running on zsh, and set the options which allow our
 44.1411 -    # commands through without removal of \ escapes.
 44.1412 -    if test -n "${ZSH_VERSION+set}" ; then
 44.1413 -      setopt NO_GLOB_SUBST
 44.1414 -    fi
 44.1415 -
 44.1416 -    cfgfile="${ofile}T"
 44.1417 -    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 44.1418 -    $RM "$cfgfile"
 44.1419 -
 44.1420 -    cat <<_LT_EOF >> "$cfgfile"
 44.1421 -#! $SHELL
 44.1422 -
 44.1423 -# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 44.1424 -# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 44.1425 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 44.1426 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 44.1427 -#
 44.1428 -_LT_COPYING
 44.1429 -_LT_LIBTOOL_TAGS
 44.1430 -
 44.1431 -# ### BEGIN LIBTOOL CONFIG
 44.1432 -_LT_LIBTOOL_CONFIG_VARS
 44.1433 -_LT_LIBTOOL_TAG_VARS
 44.1434 -# ### END LIBTOOL CONFIG
 44.1435 -
 44.1436 -_LT_EOF
 44.1437 -
 44.1438 -  case $host_os in
 44.1439 -  aix3*)
 44.1440 -    cat <<\_LT_EOF >> "$cfgfile"
 44.1441 -# AIX sometimes has problems with the GCC collect2 program.  For some
 44.1442 -# reason, if we set the COLLECT_NAMES environment variable, the problems
 44.1443 -# vanish in a puff of smoke.
 44.1444 -if test "X${COLLECT_NAMES+set}" != Xset; then
 44.1445 -  COLLECT_NAMES=
 44.1446 -  export COLLECT_NAMES
 44.1447 -fi
 44.1448 -_LT_EOF
 44.1449 -    ;;
 44.1450 -  esac
 44.1451 -
 44.1452 -  _LT_PROG_LTMAIN
 44.1453 -
 44.1454 -  # We use sed instead of cat because bash on DJGPP gets confused if
 44.1455 -  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 44.1456 -  # text mode, it properly converts lines to CR/LF.  This bash problem
 44.1457 -  # is reportedly fixed, but why not run on old versions too?
 44.1458 -  sed '$q' "$ltmain" >> "$cfgfile" \
 44.1459 -     || (rm -f "$cfgfile"; exit 1)
 44.1460 -
 44.1461 -  _LT_PROG_REPLACE_SHELLFNS
 44.1462 -
 44.1463 -   mv -f "$cfgfile" "$ofile" ||
 44.1464 -    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 44.1465 -  chmod +x "$ofile"
 44.1466 -],
 44.1467 -[cat <<_LT_EOF >> "$ofile"
 44.1468 -
 44.1469 -dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 44.1470 -dnl in a comment (ie after a #).
 44.1471 -# ### BEGIN LIBTOOL TAG CONFIG: $1
 44.1472 -_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 44.1473 -# ### END LIBTOOL TAG CONFIG: $1
 44.1474 -_LT_EOF
 44.1475 -])dnl /m4_if
 44.1476 -],
 44.1477 -[m4_if([$1], [], [
 44.1478 -    PACKAGE='$PACKAGE'
 44.1479 -    VERSION='$VERSION'
 44.1480 -    TIMESTAMP='$TIMESTAMP'
 44.1481 -    RM='$RM'
 44.1482 -    ofile='$ofile'], [])
 44.1483 -])dnl /_LT_CONFIG_SAVE_COMMANDS
 44.1484 -])# _LT_CONFIG
 44.1485 -
 44.1486 -
 44.1487 -# LT_SUPPORTED_TAG(TAG)
 44.1488 -# ---------------------
 44.1489 -# Trace this macro to discover what tags are supported by the libtool
 44.1490 -# --tag option, using:
 44.1491 -#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 44.1492 -AC_DEFUN([LT_SUPPORTED_TAG], [])
 44.1493 -
 44.1494 -
 44.1495 -# C support is built-in for now
 44.1496 -m4_define([_LT_LANG_C_enabled], [])
 44.1497 -m4_define([_LT_TAGS], [])
 44.1498 -
 44.1499 -
 44.1500 -# LT_LANG(LANG)
 44.1501 -# -------------
 44.1502 -# Enable libtool support for the given language if not already enabled.
 44.1503 -AC_DEFUN([LT_LANG],
 44.1504 -[AC_BEFORE([$0], [LT_OUTPUT])dnl
 44.1505 -m4_case([$1],
 44.1506 -  [C],			[_LT_LANG(C)],
 44.1507 -  [C++],		[_LT_LANG(CXX)],
 44.1508 -  [Go],			[_LT_LANG(GO)],
 44.1509 -  [Java],		[_LT_LANG(GCJ)],
 44.1510 -  [Fortran 77],		[_LT_LANG(F77)],
 44.1511 -  [Fortran],		[_LT_LANG(FC)],
 44.1512 -  [Windows Resource],	[_LT_LANG(RC)],
 44.1513 -  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 44.1514 -    [_LT_LANG($1)],
 44.1515 -    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 44.1516 -])# LT_LANG
 44.1517 -
 44.1518 -
 44.1519 -# _LT_LANG(LANGNAME)
 44.1520 -# ------------------
 44.1521 -m4_defun([_LT_LANG],
 44.1522 -[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 44.1523 -  [LT_SUPPORTED_TAG([$1])dnl
 44.1524 -  m4_append([_LT_TAGS], [$1 ])dnl
 44.1525 -  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 44.1526 -  _LT_LANG_$1_CONFIG($1)])dnl
 44.1527 -])# _LT_LANG
 44.1528 -
 44.1529 -
 44.1530 -m4_ifndef([AC_PROG_GO], [
 44.1531 -############################################################
 44.1532 -# NOTE: This macro has been submitted for inclusion into   #
 44.1533 -#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
 44.1534 -#  a released version of Autoconf we should remove this    #
 44.1535 -#  macro and use it instead.                               #
 44.1536 -############################################################
 44.1537 -m4_defun([AC_PROG_GO],
 44.1538 -[AC_LANG_PUSH(Go)dnl
 44.1539 -AC_ARG_VAR([GOC],     [Go compiler command])dnl
 44.1540 -AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
 44.1541 -_AC_ARG_VAR_LDFLAGS()dnl
 44.1542 -AC_CHECK_TOOL(GOC, gccgo)
 44.1543 -if test -z "$GOC"; then
 44.1544 -  if test -n "$ac_tool_prefix"; then
 44.1545 -    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
 44.1546 -  fi
 44.1547 -fi
 44.1548 -if test -z "$GOC"; then
 44.1549 -  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
 44.1550 -fi
 44.1551 -])#m4_defun
 44.1552 -])#m4_ifndef
 44.1553 -
 44.1554 -
 44.1555 -# _LT_LANG_DEFAULT_CONFIG
 44.1556 -# -----------------------
 44.1557 -m4_defun([_LT_LANG_DEFAULT_CONFIG],
 44.1558 -[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 44.1559 -  [LT_LANG(CXX)],
 44.1560 -  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 44.1561 -
 44.1562 -AC_PROVIDE_IFELSE([AC_PROG_F77],
 44.1563 -  [LT_LANG(F77)],
 44.1564 -  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 44.1565 -
 44.1566 -AC_PROVIDE_IFELSE([AC_PROG_FC],
 44.1567 -  [LT_LANG(FC)],
 44.1568 -  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 44.1569 -
 44.1570 -dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 44.1571 -dnl pulling things in needlessly.
 44.1572 -AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 44.1573 -  [LT_LANG(GCJ)],
 44.1574 -  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 44.1575 -    [LT_LANG(GCJ)],
 44.1576 -    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 44.1577 -      [LT_LANG(GCJ)],
 44.1578 -      [m4_ifdef([AC_PROG_GCJ],
 44.1579 -	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 44.1580 -       m4_ifdef([A][M_PROG_GCJ],
 44.1581 -	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 44.1582 -       m4_ifdef([LT_PROG_GCJ],
 44.1583 -	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 44.1584 -
 44.1585 -AC_PROVIDE_IFELSE([AC_PROG_GO],
 44.1586 -  [LT_LANG(GO)],
 44.1587 -  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
 44.1588 -
 44.1589 -AC_PROVIDE_IFELSE([LT_PROG_RC],
 44.1590 -  [LT_LANG(RC)],
 44.1591 -  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 44.1592 -])# _LT_LANG_DEFAULT_CONFIG
 44.1593 -
 44.1594 -# Obsolete macros:
 44.1595 -AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 44.1596 -AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 44.1597 -AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 44.1598 -AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 44.1599 -AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
 44.1600 -dnl aclocal-1.4 backwards compatibility:
 44.1601 -dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 44.1602 -dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 44.1603 -dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 44.1604 -dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 44.1605 -dnl AC_DEFUN([AC_LIBTOOL_RC], [])
 44.1606 -
 44.1607 -
 44.1608 -# _LT_TAG_COMPILER
 44.1609 -# ----------------
 44.1610 -m4_defun([_LT_TAG_COMPILER],
 44.1611 -[AC_REQUIRE([AC_PROG_CC])dnl
 44.1612 -
 44.1613 -_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 44.1614 -_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 44.1615 -_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 44.1616 -_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 44.1617 -
 44.1618 -# If no C compiler was specified, use CC.
 44.1619 -LTCC=${LTCC-"$CC"}
 44.1620 -
 44.1621 -# If no C compiler flags were specified, use CFLAGS.
 44.1622 -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 44.1623 -
 44.1624 -# Allow CC to be a program name with arguments.
 44.1625 -compiler=$CC
 44.1626 -])# _LT_TAG_COMPILER
 44.1627 -
 44.1628 -
 44.1629 -# _LT_COMPILER_BOILERPLATE
 44.1630 -# ------------------------
 44.1631 -# Check for compiler boilerplate output or warnings with
 44.1632 -# the simple compiler test code.
 44.1633 -m4_defun([_LT_COMPILER_BOILERPLATE],
 44.1634 -[m4_require([_LT_DECL_SED])dnl
 44.1635 -ac_outfile=conftest.$ac_objext
 44.1636 -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 44.1637 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 44.1638 -_lt_compiler_boilerplate=`cat conftest.err`
 44.1639 -$RM conftest*
 44.1640 -])# _LT_COMPILER_BOILERPLATE
 44.1641 -
 44.1642 -
 44.1643 -# _LT_LINKER_BOILERPLATE
 44.1644 -# ----------------------
 44.1645 -# Check for linker boilerplate output or warnings with
 44.1646 -# the simple link test code.
 44.1647 -m4_defun([_LT_LINKER_BOILERPLATE],
 44.1648 -[m4_require([_LT_DECL_SED])dnl
 44.1649 -ac_outfile=conftest.$ac_objext
 44.1650 -echo "$lt_simple_link_test_code" >conftest.$ac_ext
 44.1651 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 44.1652 -_lt_linker_boilerplate=`cat conftest.err`
 44.1653 -$RM -r conftest*
 44.1654 -])# _LT_LINKER_BOILERPLATE
 44.1655 -
 44.1656 -# _LT_REQUIRED_DARWIN_CHECKS
 44.1657 -# -------------------------
 44.1658 -m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
 44.1659 -  case $host_os in
 44.1660 -    rhapsody* | darwin*)
 44.1661 -    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 44.1662 -    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 44.1663 -    AC_CHECK_TOOL([LIPO], [lipo], [:])
 44.1664 -    AC_CHECK_TOOL([OTOOL], [otool], [:])
 44.1665 -    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 44.1666 -    _LT_DECL([], [DSYMUTIL], [1],
 44.1667 -      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 44.1668 -    _LT_DECL([], [NMEDIT], [1],
 44.1669 -      [Tool to change global to local symbols on Mac OS X])
 44.1670 -    _LT_DECL([], [LIPO], [1],
 44.1671 -      [Tool to manipulate fat objects and archives on Mac OS X])
 44.1672 -    _LT_DECL([], [OTOOL], [1],
 44.1673 -      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 44.1674 -    _LT_DECL([], [OTOOL64], [1],
 44.1675 -      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
 44.1676 -
 44.1677 -    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 44.1678 -      [lt_cv_apple_cc_single_mod=no
 44.1679 -      if test -z "${LT_MULTI_MODULE}"; then
 44.1680 -	# By default we will add the -single_module flag. You can override
 44.1681 -	# by either setting the environment variable LT_MULTI_MODULE
 44.1682 -	# non-empty at configure time, or by adding -multi_module to the
 44.1683 -	# link flags.
 44.1684 -	rm -rf libconftest.dylib*
 44.1685 -	echo "int foo(void){return 1;}" > conftest.c
 44.1686 -	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 44.1687 --dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 44.1688 -	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 44.1689 -	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 44.1690 -        _lt_result=$?
 44.1691 -	# If there is a non-empty error log, and "single_module"
 44.1692 -	# appears in it, assume the flag caused a linker warning
 44.1693 -        if test -s conftest.err && $GREP single_module conftest.err; then
 44.1694 -	  cat conftest.err >&AS_MESSAGE_LOG_FD
 44.1695 -	# Otherwise, if the output was created with a 0 exit code from
 44.1696 -	# the compiler, it worked.
 44.1697 -	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 44.1698 -	  lt_cv_apple_cc_single_mod=yes
 44.1699 -	else
 44.1700 -	  cat conftest.err >&AS_MESSAGE_LOG_FD
 44.1701 -	fi
 44.1702 -	rm -rf libconftest.dylib*
 44.1703 -	rm -f conftest.*
 44.1704 -      fi])
 44.1705 -
 44.1706 -    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 44.1707 -      [lt_cv_ld_exported_symbols_list],
 44.1708 -      [lt_cv_ld_exported_symbols_list=no
 44.1709 -      save_LDFLAGS=$LDFLAGS
 44.1710 -      echo "_main" > conftest.sym
 44.1711 -      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 44.1712 -      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 44.1713 -	[lt_cv_ld_exported_symbols_list=yes],
 44.1714 -	[lt_cv_ld_exported_symbols_list=no])
 44.1715 -	LDFLAGS="$save_LDFLAGS"
 44.1716 -    ])
 44.1717 -
 44.1718 -    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 44.1719 -      [lt_cv_ld_force_load=no
 44.1720 -      cat > conftest.c << _LT_EOF
 44.1721 -int forced_loaded() { return 2;}
 44.1722 -_LT_EOF
 44.1723 -      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 44.1724 -      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 44.1725 -      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 44.1726 -      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 44.1727 -      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 44.1728 -      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 44.1729 -      cat > conftest.c << _LT_EOF
 44.1730 -int main() { return 0;}
 44.1731 -_LT_EOF
 44.1732 -      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 44.1733 -      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 44.1734 -      _lt_result=$?
 44.1735 -      if test -s conftest.err && $GREP force_load conftest.err; then
 44.1736 -	cat conftest.err >&AS_MESSAGE_LOG_FD
 44.1737 -      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 44.1738 -	lt_cv_ld_force_load=yes
 44.1739 -      else
 44.1740 -	cat conftest.err >&AS_MESSAGE_LOG_FD
 44.1741 -      fi
 44.1742 -        rm -f conftest.err libconftest.a conftest conftest.c
 44.1743 -        rm -rf conftest.dSYM
 44.1744 -    ])
 44.1745 -    case $host_os in
 44.1746 -    rhapsody* | darwin1.[[012]])
 44.1747 -      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 44.1748 -    darwin1.*)
 44.1749 -      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 44.1750 -    darwin*) # darwin 5.x on
 44.1751 -      # if running on 10.5 or later, the deployment target defaults
 44.1752 -      # to the OS version, if on x86, and 10.4, the deployment
 44.1753 -      # target defaults to 10.4. Don't you love it?
 44.1754 -      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 44.1755 -	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 44.1756 -	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 44.1757 -	10.[[012]]*)
 44.1758 -	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 44.1759 -	10.*)
 44.1760 -	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 44.1761 -      esac
 44.1762 -    ;;
 44.1763 -  esac
 44.1764 -    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 44.1765 -      _lt_dar_single_mod='$single_module'
 44.1766 -    fi
 44.1767 -    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 44.1768 -      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 44.1769 -    else
 44.1770 -      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 44.1771 -    fi
 44.1772 -    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 44.1773 -      _lt_dsymutil='~$DSYMUTIL $lib || :'
 44.1774 -    else
 44.1775 -      _lt_dsymutil=
 44.1776 -    fi
 44.1777 -    ;;
 44.1778 -  esac
 44.1779 -])
 44.1780 -
 44.1781 -
 44.1782 -# _LT_DARWIN_LINKER_FEATURES([TAG])
 44.1783 -# ---------------------------------
 44.1784 -# Checks for linker and compiler features on darwin
 44.1785 -m4_defun([_LT_DARWIN_LINKER_FEATURES],
 44.1786 -[
 44.1787 -  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 44.1788 -  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 44.1789 -  _LT_TAGVAR(hardcode_direct, $1)=no
 44.1790 -  _LT_TAGVAR(hardcode_automatic, $1)=yes
 44.1791 -  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 44.1792 -  if test "$lt_cv_ld_force_load" = "yes"; then
 44.1793 -    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 44.1794 -    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
 44.1795 -                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
 44.1796 -  else
 44.1797 -    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 44.1798 -  fi
 44.1799 -  _LT_TAGVAR(link_all_deplibs, $1)=yes
 44.1800 -  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 44.1801 -  case $cc_basename in
 44.1802 -     ifort*) _lt_dar_can_shared=yes ;;
 44.1803 -     *) _lt_dar_can_shared=$GCC ;;
 44.1804 -  esac
 44.1805 -  if test "$_lt_dar_can_shared" = "yes"; then
 44.1806 -    output_verbose_link_cmd=func_echo_all
 44.1807 -    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 44.1808 -    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 44.1809 -    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 44.1810 -    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 44.1811 -    m4_if([$1], [CXX],
 44.1812 -[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 44.1813 -      _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 44.1814 -      _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 44.1815 -    fi
 44.1816 -],[])
 44.1817 -  else
 44.1818 -  _LT_TAGVAR(ld_shlibs, $1)=no
 44.1819 -  fi
 44.1820 -])
 44.1821 -
 44.1822 -# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 44.1823 -# ----------------------------------
 44.1824 -# Links a minimal program and checks the executable
 44.1825 -# for the system default hardcoded library path. In most cases,
 44.1826 -# this is /usr/lib:/lib, but when the MPI compilers are used
 44.1827 -# the location of the communication and MPI libs are included too.
 44.1828 -# If we don't find anything, use the default library path according
 44.1829 -# to the aix ld manual.
 44.1830 -# Store the results from the different compilers for each TAGNAME.
 44.1831 -# Allow to override them for all tags through lt_cv_aix_libpath.
 44.1832 -m4_defun([_LT_SYS_MODULE_PATH_AIX],
 44.1833 -[m4_require([_LT_DECL_SED])dnl
 44.1834 -if test "${lt_cv_aix_libpath+set}" = set; then
 44.1835 -  aix_libpath=$lt_cv_aix_libpath
 44.1836 -else
 44.1837 -  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 44.1838 -  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 44.1839 -  lt_aix_libpath_sed='[
 44.1840 -      /Import File Strings/,/^$/ {
 44.1841 -	  /^0/ {
 44.1842 -	      s/^0  *\([^ ]*\) *$/\1/
 44.1843 -	      p
 44.1844 -	  }
 44.1845 -      }]'
 44.1846 -  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 44.1847 -  # Check for a 64-bit object if we didn't find anything.
 44.1848 -  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 44.1849 -    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 44.1850 -  fi],[])
 44.1851 -  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 44.1852 -    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
 44.1853 -  fi
 44.1854 -  ])
 44.1855 -  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 44.1856 -fi
 44.1857 -])# _LT_SYS_MODULE_PATH_AIX
 44.1858 -
 44.1859 -
 44.1860 -# _LT_SHELL_INIT(ARG)
 44.1861 -# -------------------
 44.1862 -m4_define([_LT_SHELL_INIT],
 44.1863 -[m4_divert_text([M4SH-INIT], [$1
 44.1864 -])])# _LT_SHELL_INIT
 44.1865 -
 44.1866 -
 44.1867 -
 44.1868 -# _LT_PROG_ECHO_BACKSLASH
 44.1869 -# -----------------------
 44.1870 -# Find how we can fake an echo command that does not interpret backslash.
 44.1871 -# In particular, with Autoconf 2.60 or later we add some code to the start
 44.1872 -# of the generated configure script which will find a shell with a builtin
 44.1873 -# printf (which we can use as an echo command).
 44.1874 -m4_defun([_LT_PROG_ECHO_BACKSLASH],
 44.1875 -[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 44.1876 -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 44.1877 -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 44.1878 -
 44.1879 -AC_MSG_CHECKING([how to print strings])
 44.1880 -# Test print first, because it will be a builtin if present.
 44.1881 -if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 44.1882 -   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 44.1883 -  ECHO='print -r --'
 44.1884 -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 44.1885 -  ECHO='printf %s\n'
 44.1886 -else
 44.1887 -  # Use this function as a fallback that always works.
 44.1888 -  func_fallback_echo ()
 44.1889 -  {
 44.1890 -    eval 'cat <<_LTECHO_EOF
 44.1891 -$[]1
 44.1892 -_LTECHO_EOF'
 44.1893 -  }
 44.1894 -  ECHO='func_fallback_echo'
 44.1895 -fi
 44.1896 -
 44.1897 -# func_echo_all arg...
 44.1898 -# Invoke $ECHO with all args, space-separated.
 44.1899 -func_echo_all ()
 44.1900 -{
 44.1901 -    $ECHO "$*" 
 44.1902 -}
 44.1903 -
 44.1904 -case "$ECHO" in
 44.1905 -  printf*) AC_MSG_RESULT([printf]) ;;
 44.1906 -  print*) AC_MSG_RESULT([print -r]) ;;
 44.1907 -  *) AC_MSG_RESULT([cat]) ;;
 44.1908 -esac
 44.1909 -
 44.1910 -m4_ifdef([_AS_DETECT_SUGGESTED],
 44.1911 -[_AS_DETECT_SUGGESTED([
 44.1912 -  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 44.1913 -    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 44.1914 -    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 44.1915 -    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 44.1916 -    PATH=/empty FPATH=/empty; export PATH FPATH
 44.1917 -    test "X`printf %s $ECHO`" = "X$ECHO" \
 44.1918 -      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 44.1919 -
 44.1920 -_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 44.1921 -_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
 44.1922 -])# _LT_PROG_ECHO_BACKSLASH
 44.1923 -
 44.1924 -
 44.1925 -# _LT_WITH_SYSROOT
 44.1926 -# ----------------
 44.1927 -AC_DEFUN([_LT_WITH_SYSROOT],
 44.1928 -[AC_MSG_CHECKING([for sysroot])
 44.1929 -AC_ARG_WITH([sysroot],
 44.1930 -[  --with-sysroot[=DIR] Search for dependent libraries within DIR
 44.1931 -                        (or the compiler's sysroot if not specified).],
 44.1932 -[], [with_sysroot=no])
 44.1933 -
 44.1934 -dnl lt_sysroot will always be passed unquoted.  We quote it here
 44.1935 -dnl in case the user passed a directory name.
 44.1936 -lt_sysroot=
 44.1937 -case ${with_sysroot} in #(
 44.1938 - yes)
 44.1939 -   if test "$GCC" = yes; then
 44.1940 -     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 44.1941 -   fi
 44.1942 -   ;; #(
 44.1943 - /*)
 44.1944 -   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 44.1945 -   ;; #(
 44.1946 - no|'')
 44.1947 -   ;; #(
 44.1948 - *)
 44.1949 -   AC_MSG_RESULT([${with_sysroot}])
 44.1950 -   AC_MSG_ERROR([The sysroot must be an absolute path.])
 44.1951 -   ;;
 44.1952 -esac
 44.1953 -
 44.1954 - AC_MSG_RESULT([${lt_sysroot:-no}])
 44.1955 -_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 44.1956 -[dependent libraries, and in which our libraries should be installed.])])
 44.1957 -
 44.1958 -# _LT_ENABLE_LOCK
 44.1959 -# ---------------
 44.1960 -m4_defun([_LT_ENABLE_LOCK],
 44.1961 -[AC_ARG_ENABLE([libtool-lock],
 44.1962 -  [AS_HELP_STRING([--disable-libtool-lock],
 44.1963 -    [avoid locking (might break parallel builds)])])
 44.1964 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 44.1965 -
 44.1966 -# Some flags need to be propagated to the compiler or linker for good
 44.1967 -# libtool support.
 44.1968 -case $host in
 44.1969 -ia64-*-hpux*)
 44.1970 -  # Find out which ABI we are using.
 44.1971 -  echo 'int i;' > conftest.$ac_ext
 44.1972 -  if AC_TRY_EVAL(ac_compile); then
 44.1973 -    case `/usr/bin/file conftest.$ac_objext` in
 44.1974 -      *ELF-32*)
 44.1975 -	HPUX_IA64_MODE="32"
 44.1976 -	;;
 44.1977 -      *ELF-64*)
 44.1978 -	HPUX_IA64_MODE="64"
 44.1979 -	;;
 44.1980 -    esac
 44.1981 -  fi
 44.1982 -  rm -rf conftest*
 44.1983 -  ;;
 44.1984 -*-*-irix6*)
 44.1985 -  # Find out which ABI we are using.
 44.1986 -  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
 44.1987 -  if AC_TRY_EVAL(ac_compile); then
 44.1988 -    if test "$lt_cv_prog_gnu_ld" = yes; then
 44.1989 -      case `/usr/bin/file conftest.$ac_objext` in
 44.1990 -	*32-bit*)
 44.1991 -	  LD="${LD-ld} -melf32bsmip"
 44.1992 -	  ;;
 44.1993 -	*N32*)
 44.1994 -	  LD="${LD-ld} -melf32bmipn32"
 44.1995 -	  ;;
 44.1996 -	*64-bit*)
 44.1997 -	  LD="${LD-ld} -melf64bmip"
 44.1998 -	;;
 44.1999 -      esac
 44.2000 -    else
 44.2001 -      case `/usr/bin/file conftest.$ac_objext` in
 44.2002 -	*32-bit*)
 44.2003 -	  LD="${LD-ld} -32"
 44.2004 -	  ;;
 44.2005 -	*N32*)
 44.2006 -	  LD="${LD-ld} -n32"
 44.2007 -	  ;;
 44.2008 -	*64-bit*)
 44.2009 -	  LD="${LD-ld} -64"
 44.2010 -	  ;;
 44.2011 -      esac
 44.2012 -    fi
 44.2013 -  fi
 44.2014 -  rm -rf conftest*
 44.2015 -  ;;
 44.2016 -
 44.2017 -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 44.2018 -s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 44.2019 -  # Find out which ABI we are using.
 44.2020 -  echo 'int i;' > conftest.$ac_ext
 44.2021 -  if AC_TRY_EVAL(ac_compile); then
 44.2022 -    case `/usr/bin/file conftest.o` in
 44.2023 -      *32-bit*)
 44.2024 -	case $host in
 44.2025 -	  x86_64-*kfreebsd*-gnu)
 44.2026 -	    LD="${LD-ld} -m elf_i386_fbsd"
 44.2027 -	    ;;
 44.2028 -	  x86_64-*linux*)
 44.2029 -	    LD="${LD-ld} -m elf_i386"
 44.2030 -	    ;;
 44.2031 -	  ppc64-*linux*|powerpc64-*linux*)
 44.2032 -	    LD="${LD-ld} -m elf32ppclinux"
 44.2033 -	    ;;
 44.2034 -	  s390x-*linux*)
 44.2035 -	    LD="${LD-ld} -m elf_s390"
 44.2036 -	    ;;
 44.2037 -	  sparc64-*linux*)
 44.2038 -	    LD="${LD-ld} -m elf32_sparc"
 44.2039 -	    ;;
 44.2040 -	esac
 44.2041 -	;;
 44.2042 -      *64-bit*)
 44.2043 -	case $host in
 44.2044 -	  x86_64-*kfreebsd*-gnu)
 44.2045 -	    LD="${LD-ld} -m elf_x86_64_fbsd"
 44.2046 -	    ;;
 44.2047 -	  x86_64-*linux*)
 44.2048 -	    LD="${LD-ld} -m elf_x86_64"
 44.2049 -	    ;;
 44.2050 -	  ppc*-*linux*|powerpc*-*linux*)
 44.2051 -	    LD="${LD-ld} -m elf64ppc"
 44.2052 -	    ;;
 44.2053 -	  s390*-*linux*|s390*-*tpf*)
 44.2054 -	    LD="${LD-ld} -m elf64_s390"
 44.2055 -	    ;;
 44.2056 -	  sparc*-*linux*)
 44.2057 -	    LD="${LD-ld} -m elf64_sparc"
 44.2058 -	    ;;
 44.2059 -	esac
 44.2060 -	;;
 44.2061 -    esac
 44.2062 -  fi
 44.2063 -  rm -rf conftest*
 44.2064 -  ;;
 44.2065 -
 44.2066 -*-*-sco3.2v5*)
 44.2067 -  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 44.2068 -  SAVE_CFLAGS="$CFLAGS"
 44.2069 -  CFLAGS="$CFLAGS -belf"
 44.2070 -  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 44.2071 -    [AC_LANG_PUSH(C)
 44.2072 -     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 44.2073 -     AC_LANG_POP])
 44.2074 -  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 44.2075 -    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 44.2076 -    CFLAGS="$SAVE_CFLAGS"
 44.2077 -  fi
 44.2078 -  ;;
 44.2079 -*-*solaris*)
 44.2080 -  # Find out which ABI we are using.
 44.2081 -  echo 'int i;' > conftest.$ac_ext
 44.2082 -  if AC_TRY_EVAL(ac_compile); then
 44.2083 -    case `/usr/bin/file conftest.o` in
 44.2084 -    *64-bit*)
 44.2085 -      case $lt_cv_prog_gnu_ld in
 44.2086 -      yes*)
 44.2087 -        case $host in
 44.2088 -        i?86-*-solaris*)
 44.2089 -          LD="${LD-ld} -m elf_x86_64"
 44.2090 -          ;;
 44.2091 -        sparc*-*-solaris*)
 44.2092 -          LD="${LD-ld} -m elf64_sparc"
 44.2093 -          ;;
 44.2094 -        esac
 44.2095 -        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 44.2096 -        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 44.2097 -          LD="${LD-ld}_sol2"
 44.2098 -        fi
 44.2099 -        ;;
 44.2100 -      *)
 44.2101 -	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 44.2102 -	  LD="${LD-ld} -64"
 44.2103 -	fi
 44.2104 -	;;
 44.2105 -      esac
 44.2106 -      ;;
 44.2107 -    esac
 44.2108 -  fi
 44.2109 -  rm -rf conftest*
 44.2110 -  ;;
 44.2111 -esac
 44.2112 -
 44.2113 -need_locks="$enable_libtool_lock"
 44.2114 -])# _LT_ENABLE_LOCK
 44.2115 -
 44.2116 -
 44.2117 -# _LT_PROG_AR
 44.2118 -# -----------
 44.2119 -m4_defun([_LT_PROG_AR],
 44.2120 -[AC_CHECK_TOOLS(AR, [ar], false)
 44.2121 -: ${AR=ar}
 44.2122 -: ${AR_FLAGS=cru}
 44.2123 -_LT_DECL([], [AR], [1], [The archiver])
 44.2124 -_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
 44.2125 -
 44.2126 -AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 44.2127 -  [lt_cv_ar_at_file=no
 44.2128 -   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 44.2129 -     [echo conftest.$ac_objext > conftest.lst
 44.2130 -      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 44.2131 -      AC_TRY_EVAL([lt_ar_try])
 44.2132 -      if test "$ac_status" -eq 0; then
 44.2133 -	# Ensure the archiver fails upon bogus file names.
 44.2134 -	rm -f conftest.$ac_objext libconftest.a
 44.2135 -	AC_TRY_EVAL([lt_ar_try])
 44.2136 -	if test "$ac_status" -ne 0; then
 44.2137 -          lt_cv_ar_at_file=@
 44.2138 -        fi
 44.2139 -      fi
 44.2140 -      rm -f conftest.* libconftest.a
 44.2141 -     ])
 44.2142 -  ])
 44.2143 -
 44.2144 -if test "x$lt_cv_ar_at_file" = xno; then
 44.2145 -  archiver_list_spec=
 44.2146 -else
 44.2147 -  archiver_list_spec=$lt_cv_ar_at_file
 44.2148 -fi
 44.2149 -_LT_DECL([], [archiver_list_spec], [1],
 44.2150 -  [How to feed a file listing to the archiver])
 44.2151 -])# _LT_PROG_AR
 44.2152 -
 44.2153 -
 44.2154 -# _LT_CMD_OLD_ARCHIVE
 44.2155 -# -------------------
 44.2156 -m4_defun([_LT_CMD_OLD_ARCHIVE],
 44.2157 -[_LT_PROG_AR
 44.2158 -
 44.2159 -AC_CHECK_TOOL(STRIP, strip, :)
 44.2160 -test -z "$STRIP" && STRIP=:
 44.2161 -_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 44.2162 -
 44.2163 -AC_CHECK_TOOL(RANLIB, ranlib, :)
 44.2164 -test -z "$RANLIB" && RANLIB=:
 44.2165 -_LT_DECL([], [RANLIB], [1],
 44.2166 -    [Commands used to install an old-style archive])
 44.2167 -
 44.2168 -# Determine commands to create old-style static archives.
 44.2169 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 44.2170 -old_postinstall_cmds='chmod 644 $oldlib'
 44.2171 -old_postuninstall_cmds=
 44.2172 -
 44.2173 -if test -n "$RANLIB"; then
 44.2174 -  case $host_os in
 44.2175 -  openbsd*)
 44.2176 -    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 44.2177 -    ;;
 44.2178 -  *)
 44.2179 -    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 44.2180 -    ;;
 44.2181 -  esac
 44.2182 -  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 44.2183 -fi
 44.2184 -
 44.2185 -case $host_os in
 44.2186 -  darwin*)
 44.2187 -    lock_old_archive_extraction=yes ;;
 44.2188 -  *)
 44.2189 -    lock_old_archive_extraction=no ;;
 44.2190 -esac
 44.2191 -_LT_DECL([], [old_postinstall_cmds], [2])
 44.2192 -_LT_DECL([], [old_postuninstall_cmds], [2])
 44.2193 -_LT_TAGDECL([], [old_archive_cmds], [2],
 44.2194 -    [Commands used to build an old-style archive])
 44.2195 -_LT_DECL([], [lock_old_archive_extraction], [0],
 44.2196 -    [Whether to use a lock for old archive extraction])
 44.2197 -])# _LT_CMD_OLD_ARCHIVE
 44.2198 -
 44.2199 -
 44.2200 -# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 44.2201 -#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 44.2202 -# ----------------------------------------------------------------
 44.2203 -# Check whether the given compiler option works
 44.2204 -AC_DEFUN([_LT_COMPILER_OPTION],
 44.2205 -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 44.2206 -m4_require([_LT_DECL_SED])dnl
 44.2207 -AC_CACHE_CHECK([$1], [$2],
 44.2208 -  [$2=no
 44.2209 -   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 44.2210 -   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 44.2211 -   lt_compiler_flag="$3"
 44.2212 -   # Insert the option either (1) after the last *FLAGS variable, or
 44.2213 -   # (2) before a word containing "conftest.", or (3) at the end.
 44.2214 -   # Note that $ac_compile itself does not contain backslashes and begins
 44.2215 -   # with a dollar sign (not a hyphen), so the echo should work correctly.
 44.2216 -   # The option is referenced via a variable to avoid confusing sed.
 44.2217 -   lt_compile=`echo "$ac_compile" | $SED \
 44.2218 -   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 44.2219 -   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 44.2220 -   -e 's:$: $lt_compiler_flag:'`
 44.2221 -   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 44.2222 -   (eval "$lt_compile" 2>conftest.err)
 44.2223 -   ac_status=$?
 44.2224 -   cat conftest.err >&AS_MESSAGE_LOG_FD
 44.2225 -   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 44.2226 -   if (exit $ac_status) && test -s "$ac_outfile"; then
 44.2227 -     # The compiler can only warn and ignore the option if not recognized
 44.2228 -     # So say no if there are warnings other than the usual output.
 44.2229 -     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 44.2230 -     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 44.2231 -     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 44.2232 -       $2=yes
 44.2233 -     fi
 44.2234 -   fi
 44.2235 -   $RM conftest*
 44.2236 -])
 44.2237 -
 44.2238 -if test x"[$]$2" = xyes; then
 44.2239 -    m4_if([$5], , :, [$5])
 44.2240 -else
 44.2241 -    m4_if([$6], , :, [$6])
 44.2242 -fi
 44.2243 -])# _LT_COMPILER_OPTION
 44.2244 -
 44.2245 -# Old name:
 44.2246 -AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 44.2247 -dnl aclocal-1.4 backwards compatibility:
 44.2248 -dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 44.2249 -
 44.2250 -
 44.2251 -# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 44.2252 -#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 44.2253 -# ----------------------------------------------------
 44.2254 -# Check whether the given linker option works
 44.2255 -AC_DEFUN([_LT_LINKER_OPTION],
 44.2256 -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 44.2257 -m4_require([_LT_DECL_SED])dnl
 44.2258 -AC_CACHE_CHECK([$1], [$2],
 44.2259 -  [$2=no
 44.2260 -   save_LDFLAGS="$LDFLAGS"
 44.2261 -   LDFLAGS="$LDFLAGS $3"
 44.2262 -   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 44.2263 -   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 44.2264 -     # The linker can only warn and ignore the option if not recognized
 44.2265 -     # So say no if there are warnings
 44.2266 -     if test -s conftest.err; then
 44.2267 -       # Append any errors to the config.log.
 44.2268 -       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 44.2269 -       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 44.2270 -       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 44.2271 -       if diff conftest.exp conftest.er2 >/dev/null; then
 44.2272 -         $2=yes
 44.2273 -       fi
 44.2274 -     else
 44.2275 -       $2=yes
 44.2276 -     fi
 44.2277 -   fi
 44.2278 -   $RM -r conftest*
 44.2279 -   LDFLAGS="$save_LDFLAGS"
 44.2280 -])
 44.2281 -
 44.2282 -if test x"[$]$2" = xyes; then
 44.2283 -    m4_if([$4], , :, [$4])
 44.2284 -else
 44.2285 -    m4_if([$5], , :, [$5])
 44.2286 -fi
 44.2287 -])# _LT_LINKER_OPTION
 44.2288 -
 44.2289 -# Old name:
 44.2290 -AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 44.2291 -dnl aclocal-1.4 backwards compatibility:
 44.2292 -dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 44.2293 -
 44.2294 -
 44.2295 -# LT_CMD_MAX_LEN
 44.2296 -#---------------
 44.2297 -AC_DEFUN([LT_CMD_MAX_LEN],
 44.2298 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 44.2299 -# find the maximum length of command line arguments
 44.2300 -AC_MSG_CHECKING([the maximum length of command line arguments])
 44.2301 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 44.2302 -  i=0
 44.2303 -  teststring="ABCD"
 44.2304 -
 44.2305 -  case $build_os in
 44.2306 -  msdosdjgpp*)
 44.2307 -    # On DJGPP, this test can blow up pretty badly due to problems in libc
 44.2308 -    # (any single argument exceeding 2000 bytes causes a buffer overrun
 44.2309 -    # during glob expansion).  Even if it were fixed, the result of this
 44.2310 -    # check would be larger than it should be.
 44.2311 -    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 44.2312 -    ;;
 44.2313 -
 44.2314 -  gnu*)
 44.2315 -    # Under GNU Hurd, this test is not required because there is
 44.2316 -    # no limit to the length of command line arguments.
 44.2317 -    # Libtool will interpret -1 as no limit whatsoever
 44.2318 -    lt_cv_sys_max_cmd_len=-1;
 44.2319 -    ;;
 44.2320 -
 44.2321 -  cygwin* | mingw* | cegcc*)
 44.2322 -    # On Win9x/ME, this test blows up -- it succeeds, but takes
 44.2323 -    # about 5 minutes as the teststring grows exponentially.
 44.2324 -    # Worse, since 9x/ME are not pre-emptively multitasking,
 44.2325 -    # you end up with a "frozen" computer, even though with patience
 44.2326 -    # the test eventually succeeds (with a max line length of 256k).
 44.2327 -    # Instead, let's just punt: use the minimum linelength reported by
 44.2328 -    # all of the supported platforms: 8192 (on NT/2K/XP).
 44.2329 -    lt_cv_sys_max_cmd_len=8192;
 44.2330 -    ;;
 44.2331 -
 44.2332 -  mint*)
 44.2333 -    # On MiNT this can take a long time and run out of memory.
 44.2334 -    lt_cv_sys_max_cmd_len=8192;
 44.2335 -    ;;
 44.2336 -
 44.2337 -  amigaos*)
 44.2338 -    # On AmigaOS with pdksh, this test takes hours, literally.
 44.2339 -    # So we just punt and use a minimum line length of 8192.
 44.2340 -    lt_cv_sys_max_cmd_len=8192;
 44.2341 -    ;;
 44.2342 -
 44.2343 -  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 44.2344 -    # This has been around since 386BSD, at least.  Likely further.
 44.2345 -    if test -x /sbin/sysctl; then
 44.2346 -      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 44.2347 -    elif test -x /usr/sbin/sysctl; then
 44.2348 -      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 44.2349 -    else
 44.2350 -      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
 44.2351 -    fi
 44.2352 -    # And add a safety zone
 44.2353 -    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 44.2354 -    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 44.2355 -    ;;
 44.2356 -
 44.2357 -  interix*)
 44.2358 -    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 44.2359 -    lt_cv_sys_max_cmd_len=196608
 44.2360 -    ;;
 44.2361 -
 44.2362 -  os2*)
 44.2363 -    # The test takes a long time on OS/2.
 44.2364 -    lt_cv_sys_max_cmd_len=8192
 44.2365 -    ;;
 44.2366 -
 44.2367 -  osf*)
 44.2368 -    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 44.2369 -    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 44.2370 -    # nice to cause kernel panics so lets avoid the loop below.
 44.2371 -    # First set a reasonable default.
 44.2372 -    lt_cv_sys_max_cmd_len=16384
 44.2373 -    #
 44.2374 -    if test -x /sbin/sysconfig; then
 44.2375 -      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 44.2376 -        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 44.2377 -      esac
 44.2378 -    fi
 44.2379 -    ;;
 44.2380 -  sco3.2v5*)
 44.2381 -    lt_cv_sys_max_cmd_len=102400
 44.2382 -    ;;
 44.2383 -  sysv5* | sco5v6* | sysv4.2uw2*)
 44.2384 -    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 44.2385 -    if test -n "$kargmax"; then
 44.2386 -      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
 44.2387 -    else
 44.2388 -      lt_cv_sys_max_cmd_len=32768
 44.2389 -    fi
 44.2390 -    ;;
 44.2391 -  *)
 44.2392 -    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 44.2393 -    if test -n "$lt_cv_sys_max_cmd_len"; then
 44.2394 -      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 44.2395 -      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 44.2396 -    else
 44.2397 -      # Make teststring a little bigger before we do anything with it.
 44.2398 -      # a 1K string should be a reasonable start.
 44.2399 -      for i in 1 2 3 4 5 6 7 8 ; do
 44.2400 -        teststring=$teststring$teststring
 44.2401 -      done
 44.2402 -      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 44.2403 -      # If test is not a shell built-in, we'll probably end up computing a
 44.2404 -      # maximum length that is only half of the actual maximum length, but
 44.2405 -      # we can't tell.
 44.2406 -      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 44.2407 -	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 44.2408 -	      test $i != 17 # 1/2 MB should be enough
 44.2409 -      do
 44.2410 -        i=`expr $i + 1`
 44.2411 -        teststring=$teststring$teststring
 44.2412 -      done
 44.2413 -      # Only check the string length outside the loop.
 44.2414 -      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 44.2415 -      teststring=
 44.2416 -      # Add a significant safety factor because C++ compilers can tack on
 44.2417 -      # massive amounts of additional arguments before passing them to the
 44.2418 -      # linker.  It appears as though 1/2 is a usable value.
 44.2419 -      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 44.2420 -    fi
 44.2421 -    ;;
 44.2422 -  esac
 44.2423 -])
 44.2424 -if test -n $lt_cv_sys_max_cmd_len ; then
 44.2425 -  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 44.2426 -else
 44.2427 -  AC_MSG_RESULT(none)
 44.2428 -fi
 44.2429 -max_cmd_len=$lt_cv_sys_max_cmd_len
 44.2430 -_LT_DECL([], [max_cmd_len], [0],
 44.2431 -    [What is the maximum length of a command?])
 44.2432 -])# LT_CMD_MAX_LEN
 44.2433 -
 44.2434 -# Old name:
 44.2435 -AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 44.2436 -dnl aclocal-1.4 backwards compatibility:
 44.2437 -dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 44.2438 -
 44.2439 -
 44.2440 -# _LT_HEADER_DLFCN
 44.2441 -# ----------------
 44.2442 -m4_defun([_LT_HEADER_DLFCN],
 44.2443 -[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 44.2444 -])# _LT_HEADER_DLFCN
 44.2445 -
 44.2446 -
 44.2447 -# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 44.2448 -#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 44.2449 -# ----------------------------------------------------------------
 44.2450 -m4_defun([_LT_TRY_DLOPEN_SELF],
 44.2451 -[m4_require([_LT_HEADER_DLFCN])dnl
 44.2452 -if test "$cross_compiling" = yes; then :
 44.2453 -  [$4]
 44.2454 -else
 44.2455 -  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 44.2456 -  lt_status=$lt_dlunknown
 44.2457 -  cat > conftest.$ac_ext <<_LT_EOF
 44.2458 -[#line $LINENO "configure"
 44.2459 -#include "confdefs.h"
 44.2460 -
 44.2461 -#if HAVE_DLFCN_H
 44.2462 -#include <dlfcn.h>
 44.2463 -#endif
 44.2464 -
 44.2465 -#include <stdio.h>
 44.2466 -
 44.2467 -#ifdef RTLD_GLOBAL
 44.2468 -#  define LT_DLGLOBAL		RTLD_GLOBAL
 44.2469 -#else
 44.2470 -#  ifdef DL_GLOBAL
 44.2471 -#    define LT_DLGLOBAL		DL_GLOBAL
 44.2472 -#  else
 44.2473 -#    define LT_DLGLOBAL		0
 44.2474 -#  endif
 44.2475 -#endif
 44.2476 -
 44.2477 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 44.2478 -   find out it does not work in some platform. */
 44.2479 -#ifndef LT_DLLAZY_OR_NOW
 44.2480 -#  ifdef RTLD_LAZY
 44.2481 -#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
 44.2482 -#  else
 44.2483 -#    ifdef DL_LAZY
 44.2484 -#      define LT_DLLAZY_OR_NOW		DL_LAZY
 44.2485 -#    else
 44.2486 -#      ifdef RTLD_NOW
 44.2487 -#        define LT_DLLAZY_OR_NOW	RTLD_NOW
 44.2488 -#      else
 44.2489 -#        ifdef DL_NOW
 44.2490 -#          define LT_DLLAZY_OR_NOW	DL_NOW
 44.2491 -#        else
 44.2492 -#          define LT_DLLAZY_OR_NOW	0
 44.2493 -#        endif
 44.2494 -#      endif
 44.2495 -#    endif
 44.2496 -#  endif
 44.2497 -#endif
 44.2498 -
 44.2499 -/* When -fvisbility=hidden is used, assume the code has been annotated
 44.2500 -   correspondingly for the symbols needed.  */
 44.2501 -#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 44.2502 -int fnord () __attribute__((visibility("default")));
 44.2503 -#endif
 44.2504 -
 44.2505 -int fnord () { return 42; }
 44.2506 -int main ()
 44.2507 -{
 44.2508 -  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 44.2509 -  int status = $lt_dlunknown;
 44.2510 -
 44.2511 -  if (self)
 44.2512 -    {
 44.2513 -      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 44.2514 -      else
 44.2515 -        {
 44.2516 -	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 44.2517 -          else puts (dlerror ());
 44.2518 -	}
 44.2519 -      /* dlclose (self); */
 44.2520 -    }
 44.2521 -  else
 44.2522 -    puts (dlerror ());
 44.2523 -
 44.2524 -  return status;
 44.2525 -}]
 44.2526 -_LT_EOF
 44.2527 -  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
 44.2528 -    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 44.2529 -    lt_status=$?
 44.2530 -    case x$lt_status in
 44.2531 -      x$lt_dlno_uscore) $1 ;;
 44.2532 -      x$lt_dlneed_uscore) $2 ;;
 44.2533 -      x$lt_dlunknown|x*) $3 ;;
 44.2534 -    esac
 44.2535 -  else :
 44.2536 -    # compilation failed
 44.2537 -    $3
 44.2538 -  fi
 44.2539 -fi
 44.2540 -rm -fr conftest*
 44.2541 -])# _LT_TRY_DLOPEN_SELF
 44.2542 -
 44.2543 -
 44.2544 -# LT_SYS_DLOPEN_SELF
 44.2545 -# ------------------
 44.2546 -AC_DEFUN([LT_SYS_DLOPEN_SELF],
 44.2547 -[m4_require([_LT_HEADER_DLFCN])dnl
 44.2548 -if test "x$enable_dlopen" != xyes; then
 44.2549 -  enable_dlopen=unknown
 44.2550 -  enable_dlopen_self=unknown
 44.2551 -  enable_dlopen_self_static=unknown
 44.2552 -else
 44.2553 -  lt_cv_dlopen=no
 44.2554 -  lt_cv_dlopen_libs=
 44.2555 -
 44.2556 -  case $host_os in
 44.2557 -  beos*)
 44.2558 -    lt_cv_dlopen="load_add_on"
 44.2559 -    lt_cv_dlopen_libs=
 44.2560 -    lt_cv_dlopen_self=yes
 44.2561 -    ;;
 44.2562 -
 44.2563 -  mingw* | pw32* | cegcc*)
 44.2564 -    lt_cv_dlopen="LoadLibrary"
 44.2565 -    lt_cv_dlopen_libs=
 44.2566 -    ;;
 44.2567 -
 44.2568 -  cygwin*)
 44.2569 -    lt_cv_dlopen="dlopen"
 44.2570 -    lt_cv_dlopen_libs=
 44.2571 -    ;;
 44.2572 -
 44.2573 -  darwin*)
 44.2574 -  # if libdl is installed we need to link against it
 44.2575 -    AC_CHECK_LIB([dl], [dlopen],
 44.2576 -		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
 44.2577 -    lt_cv_dlopen="dyld"
 44.2578 -    lt_cv_dlopen_libs=
 44.2579 -    lt_cv_dlopen_self=yes
 44.2580 -    ])
 44.2581 -    ;;
 44.2582 -
 44.2583 -  *)
 44.2584 -    AC_CHECK_FUNC([shl_load],
 44.2585 -	  [lt_cv_dlopen="shl_load"],
 44.2586 -      [AC_CHECK_LIB([dld], [shl_load],
 44.2587 -	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
 44.2588 -	[AC_CHECK_FUNC([dlopen],
 44.2589 -	      [lt_cv_dlopen="dlopen"],
 44.2590 -	  [AC_CHECK_LIB([dl], [dlopen],
 44.2591 -		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
 44.2592 -	    [AC_CHECK_LIB([svld], [dlopen],
 44.2593 -		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
 44.2594 -	      [AC_CHECK_LIB([dld], [dld_link],
 44.2595 -		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
 44.2596 -	      ])
 44.2597 -	    ])
 44.2598 -	  ])
 44.2599 -	])
 44.2600 -      ])
 44.2601 -    ;;
 44.2602 -  esac
 44.2603 -
 44.2604 -  if test "x$lt_cv_dlopen" != xno; then
 44.2605 -    enable_dlopen=yes
 44.2606 -  else
 44.2607 -    enable_dlopen=no
 44.2608 -  fi
 44.2609 -
 44.2610 -  case $lt_cv_dlopen in
 44.2611 -  dlopen)
 44.2612 -    save_CPPFLAGS="$CPPFLAGS"
 44.2613 -    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 44.2614 -
 44.2615 -    save_LDFLAGS="$LDFLAGS"
 44.2616 -    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 44.2617 -
 44.2618 -    save_LIBS="$LIBS"
 44.2619 -    LIBS="$lt_cv_dlopen_libs $LIBS"
 44.2620 -
 44.2621 -    AC_CACHE_CHECK([whether a program can dlopen itself],
 44.2622 -	  lt_cv_dlopen_self, [dnl
 44.2623 -	  _LT_TRY_DLOPEN_SELF(
 44.2624 -	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
 44.2625 -	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
 44.2626 -    ])
 44.2627 -
 44.2628 -    if test "x$lt_cv_dlopen_self" = xyes; then
 44.2629 -      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 44.2630 -      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
 44.2631 -	  lt_cv_dlopen_self_static, [dnl
 44.2632 -	  _LT_TRY_DLOPEN_SELF(
 44.2633 -	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
 44.2634 -	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
 44.2635 -      ])
 44.2636 -    fi
 44.2637 -
 44.2638 -    CPPFLAGS="$save_CPPFLAGS"
 44.2639 -    LDFLAGS="$save_LDFLAGS"
 44.2640 -    LIBS="$save_LIBS"
 44.2641 -    ;;
 44.2642 -  esac
 44.2643 -
 44.2644 -  case $lt_cv_dlopen_self in
 44.2645 -  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 44.2646 -  *) enable_dlopen_self=unknown ;;
 44.2647 -  esac
 44.2648 -
 44.2649 -  case $lt_cv_dlopen_self_static in
 44.2650 -  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 44.2651 -  *) enable_dlopen_self_static=unknown ;;
 44.2652 -  esac
 44.2653 -fi
 44.2654 -_LT_DECL([dlopen_support], [enable_dlopen], [0],
 44.2655 -	 [Whether dlopen is supported])
 44.2656 -_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 44.2657 -	 [Whether dlopen of programs is supported])
 44.2658 -_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 44.2659 -	 [Whether dlopen of statically linked programs is supported])
 44.2660 -])# LT_SYS_DLOPEN_SELF
 44.2661 -
 44.2662 -# Old name:
 44.2663 -AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 44.2664 -dnl aclocal-1.4 backwards compatibility:
 44.2665 -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 44.2666 -
 44.2667 -
 44.2668 -# _LT_COMPILER_C_O([TAGNAME])
 44.2669 -# ---------------------------
 44.2670 -# Check to see if options -c and -o are simultaneously supported by compiler.
 44.2671 -# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 44.2672 -m4_defun([_LT_COMPILER_C_O],
 44.2673 -[m4_require([_LT_DECL_SED])dnl
 44.2674 -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 44.2675 -m4_require([_LT_TAG_COMPILER])dnl
 44.2676 -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
 44.2677 -  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 44.2678 -  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 44.2679 -   $RM -r conftest 2>/dev/null
 44.2680 -   mkdir conftest
 44.2681 -   cd conftest
 44.2682 -   mkdir out
 44.2683 -   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 44.2684 -
 44.2685 -   lt_compiler_flag="-o out/conftest2.$ac_objext"
 44.2686 -   # Insert the option either (1) after the last *FLAGS variable, or
 44.2687 -   # (2) before a word containing "conftest.", or (3) at the end.
 44.2688 -   # Note that $ac_compile itself does not contain backslashes and begins
 44.2689 -   # with a dollar sign (not a hyphen), so the echo should work correctly.
 44.2690 -   lt_compile=`echo "$ac_compile" | $SED \
 44.2691 -   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 44.2692 -   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 44.2693 -   -e 's:$: $lt_compiler_flag:'`
 44.2694 -   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 44.2695 -   (eval "$lt_compile" 2>out/conftest.err)
 44.2696 -   ac_status=$?
 44.2697 -   cat out/conftest.err >&AS_MESSAGE_LOG_FD
 44.2698 -   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 44.2699 -   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 44.2700 -   then
 44.2701 -     # The compiler can only warn and ignore the option if not recognized
 44.2702 -     # So say no if there are warnings
 44.2703 -     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 44.2704 -     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 44.2705 -     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 44.2706 -       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 44.2707 -     fi
 44.2708 -   fi
 44.2709 -   chmod u+w . 2>&AS_MESSAGE_LOG_FD
 44.2710 -   $RM conftest*
 44.2711 -   # SGI C++ compiler will create directory out/ii_files/ for
 44.2712 -   # template instantiation
 44.2713 -   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 44.2714 -   $RM out/* && rmdir out
 44.2715 -   cd ..
 44.2716 -   $RM -r conftest
 44.2717 -   $RM conftest*
 44.2718 -])
 44.2719 -_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 44.2720 -	[Does compiler simultaneously support -c and -o options?])
 44.2721 -])# _LT_COMPILER_C_O
 44.2722 -
 44.2723 -
 44.2724 -# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 44.2725 -# ----------------------------------
 44.2726 -# Check to see if we can do hard links to lock some files if needed
 44.2727 -m4_defun([_LT_COMPILER_FILE_LOCKS],
 44.2728 -[m4_require([_LT_ENABLE_LOCK])dnl
 44.2729 -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 44.2730 -_LT_COMPILER_C_O([$1])
 44.2731 -
 44.2732 -hard_links="nottested"
 44.2733 -if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 44.2734 -  # do not overwrite the value of need_locks provided by the user
 44.2735 -  AC_MSG_CHECKING([if we can lock with hard links])
 44.2736 -  hard_links=yes
 44.2737 -  $RM conftest*
 44.2738 -  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 44.2739 -  touch conftest.a
 44.2740 -  ln conftest.a conftest.b 2>&5 || hard_links=no
 44.2741 -  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 44.2742 -  AC_MSG_RESULT([$hard_links])
 44.2743 -  if test "$hard_links" = no; then
 44.2744 -    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
 44.2745 -    need_locks=warn
 44.2746 -  fi
 44.2747 -else
 44.2748 -  need_locks=no
 44.2749 -fi
 44.2750 -_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 44.2751 -])# _LT_COMPILER_FILE_LOCKS
 44.2752 -
 44.2753 -
 44.2754 -# _LT_CHECK_OBJDIR
 44.2755 -# ----------------
 44.2756 -m4_defun([_LT_CHECK_OBJDIR],
 44.2757 -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
 44.2758 -[rm -f .libs 2>/dev/null
 44.2759 -mkdir .libs 2>/dev/null
 44.2760 -if test -d .libs; then
 44.2761 -  lt_cv_objdir=.libs
 44.2762 -else
 44.2763 -  # MS-DOS does not allow filenames that begin with a dot.
 44.2764 -  lt_cv_objdir=_libs
 44.2765 -fi
 44.2766 -rmdir .libs 2>/dev/null])
 44.2767 -objdir=$lt_cv_objdir
 44.2768 -_LT_DECL([], [objdir], [0],
 44.2769 -         [The name of the directory that contains temporary libtool files])dnl
 44.2770 -m4_pattern_allow([LT_OBJDIR])dnl
 44.2771 -AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 44.2772 -  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 44.2773 -])# _LT_CHECK_OBJDIR
 44.2774 -
 44.2775 -
 44.2776 -# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 44.2777 -# --------------------------------------
 44.2778 -# Check hardcoding attributes.
 44.2779 -m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
 44.2780 -[AC_MSG_CHECKING([how to hardcode library paths into programs])
 44.2781 -_LT_TAGVAR(hardcode_action, $1)=
 44.2782 -if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 44.2783 -   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 44.2784 -   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 44.2785 -
 44.2786 -  # We can hardcode non-existent directories.
 44.2787 -  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
 44.2788 -     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 44.2789 -     # have to relink, otherwise we might link with an installed library
 44.2790 -     # when we should be linking with a yet-to-be-installed one
 44.2791 -     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 44.2792 -     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
 44.2793 -    # Linking always hardcodes the temporary library directory.
 44.2794 -    _LT_TAGVAR(hardcode_action, $1)=relink
 44.2795 -  else
 44.2796 -    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 44.2797 -    _LT_TAGVAR(hardcode_action, $1)=immediate
 44.2798 -  fi
 44.2799 -else
 44.2800 -  # We cannot hardcode anything, or else we can only hardcode existing
 44.2801 -  # directories.
 44.2802 -  _LT_TAGVAR(hardcode_action, $1)=unsupported
 44.2803 -fi
 44.2804 -AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
 44.2805 -
 44.2806 -if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 44.2807 -   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
 44.2808 -  # Fast installation is not supported
 44.2809 -  enable_fast_install=no
 44.2810 -elif test "$shlibpath_overrides_runpath" = yes ||
 44.2811 -     test "$enable_shared" = no; then
 44.2812 -  # Fast installation is not necessary
 44.2813 -  enable_fast_install=needless
 44.2814 -fi
 44.2815 -_LT_TAGDECL([], [hardcode_action], [0],
 44.2816 -    [How to hardcode a shared library path into an executable])
 44.2817 -])# _LT_LINKER_HARDCODE_LIBPATH
 44.2818 -
 44.2819 -
 44.2820 -# _LT_CMD_STRIPLIB
 44.2821 -# ----------------
 44.2822 -m4_defun([_LT_CMD_STRIPLIB],
 44.2823 -[m4_require([_LT_DECL_EGREP])
 44.2824 -striplib=
 44.2825 -old_striplib=
 44.2826 -AC_MSG_CHECKING([whether stripping libraries is possible])
 44.2827 -if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 44.2828 -  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 44.2829 -  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 44.2830 -  AC_MSG_RESULT([yes])
 44.2831 -else
 44.2832 -# FIXME - insert some real tests, host_os isn't really good enough
 44.2833 -  case $host_os in
 44.2834 -  darwin*)
 44.2835 -    if test -n "$STRIP" ; then
 44.2836 -      striplib="$STRIP -x"
 44.2837 -      old_striplib="$STRIP -S"
 44.2838 -      AC_MSG_RESULT([yes])
 44.2839 -    else
 44.2840 -      AC_MSG_RESULT([no])
 44.2841 -    fi
 44.2842 -    ;;
 44.2843 -  *)
 44.2844 -    AC_MSG_RESULT([no])
 44.2845 -    ;;
 44.2846 -  esac
 44.2847 -fi
 44.2848 -_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 44.2849 -_LT_DECL([], [striplib], [1])
 44.2850 -])# _LT_CMD_STRIPLIB
 44.2851 -
 44.2852 -
 44.2853 -# _LT_SYS_DYNAMIC_LINKER([TAG])
 44.2854 -# -----------------------------
 44.2855 -# PORTME Fill in your ld.so characteristics
 44.2856 -m4_defun([_LT_SYS_DYNAMIC_LINKER],
 44.2857 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 44.2858 -m4_require([_LT_DECL_EGREP])dnl
 44.2859 -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 44.2860 -m4_require([_LT_DECL_OBJDUMP])dnl
 44.2861 -m4_require([_LT_DECL_SED])dnl
 44.2862 -m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 44.2863 -AC_MSG_CHECKING([dynamic linker characteristics])
 44.2864 -m4_if([$1],
 44.2865 -	[], [
 44.2866 -if test "$GCC" = yes; then
 44.2867 -  case $host_os in
 44.2868 -    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 44.2869 -    *) lt_awk_arg="/^libraries:/" ;;
 44.2870 -  esac
 44.2871 -  case $host_os in
 44.2872 -    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
 44.2873 -    *) lt_sed_strip_eq="s,=/,/,g" ;;
 44.2874 -  esac
 44.2875 -  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 44.2876 -  case $lt_search_path_spec in
 44.2877 -  *\;*)
 44.2878 -    # if the path contains ";" then we assume it to be the separator
 44.2879 -    # otherwise default to the standard path separator (i.e. ":") - it is
 44.2880 -    # assumed that no part of a normal pathname contains ";" but that should
 44.2881 -    # okay in the real world where ";" in dirpaths is itself problematic.
 44.2882 -    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 44.2883 -    ;;
 44.2884 -  *)
 44.2885 -    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 44.2886 -    ;;
 44.2887 -  esac
 44.2888 -  # Ok, now we have the path, separated by spaces, we can step through it
 44.2889 -  # and add multilib dir if necessary.
 44.2890 -  lt_tmp_lt_search_path_spec=
 44.2891 -  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 44.2892 -  for lt_sys_path in $lt_search_path_spec; do
 44.2893 -    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 44.2894 -      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 44.2895 -    else
 44.2896 -      test -d "$lt_sys_path" && \
 44.2897 -	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 44.2898 -    fi
 44.2899 -  done
 44.2900 -  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 44.2901 -BEGIN {RS=" "; FS="/|\n";} {
 44.2902 -  lt_foo="";
 44.2903 -  lt_count=0;
 44.2904 -  for (lt_i = NF; lt_i > 0; lt_i--) {
 44.2905 -    if ($lt_i != "" && $lt_i != ".") {
 44.2906 -      if ($lt_i == "..") {
 44.2907 -        lt_count++;
 44.2908 -      } else {
 44.2909 -        if (lt_count == 0) {
 44.2910 -          lt_foo="/" $lt_i lt_foo;
 44.2911 -        } else {
 44.2912 -          lt_count--;
 44.2913 -        }
 44.2914 -      }
 44.2915 -    }
 44.2916 -  }
 44.2917 -  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 44.2918 -  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 44.2919 -}'`
 44.2920 -  # AWK program above erroneously prepends '/' to C:/dos/paths
 44.2921 -  # for these hosts.
 44.2922 -  case $host_os in
 44.2923 -    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 44.2924 -      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
 44.2925 -  esac
 44.2926 -  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 44.2927 -else
 44.2928 -  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 44.2929 -fi])
 44.2930 -library_names_spec=
 44.2931 -libname_spec='lib$name'
 44.2932 -soname_spec=
 44.2933 -shrext_cmds=".so"
 44.2934 -postinstall_cmds=
 44.2935 -postuninstall_cmds=
 44.2936 -finish_cmds=
 44.2937 -finish_eval=
 44.2938 -shlibpath_var=
 44.2939 -shlibpath_overrides_runpath=unknown
 44.2940 -version_type=none
 44.2941 -dynamic_linker="$host_os ld.so"
 44.2942 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
 44.2943 -need_lib_prefix=unknown
 44.2944 -hardcode_into_libs=no
 44.2945 -
 44.2946 -# when you set need_version to no, make sure it does not cause -set_version
 44.2947 -# flags to be left without arguments
 44.2948 -need_version=unknown
 44.2949 -
 44.2950 -case $host_os in
 44.2951 -aix3*)
 44.2952 -  version_type=linux # correct to gnu/linux during the next big refactor
 44.2953 -  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 44.2954 -  shlibpath_var=LIBPATH
 44.2955 -
 44.2956 -  # AIX 3 has no versioning support, so we append a major version to the name.
 44.2957 -  soname_spec='${libname}${release}${shared_ext}$major'
 44.2958 -  ;;
 44.2959 -
 44.2960 -aix[[4-9]]*)
 44.2961 -  version_type=linux # correct to gnu/linux during the next big refactor
 44.2962 -  need_lib_prefix=no
 44.2963 -  need_version=no
 44.2964 -  hardcode_into_libs=yes
 44.2965 -  if test "$host_cpu" = ia64; then
 44.2966 -    # AIX 5 supports IA64
 44.2967 -    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 44.2968 -    shlibpath_var=LD_LIBRARY_PATH
 44.2969 -  else
 44.2970 -    # With GCC up to 2.95.x, collect2 would create an import file
 44.2971 -    # for dependence libraries.  The import file would start with
 44.2972 -    # the line `#! .'.  This would cause the generated library to
 44.2973 -    # depend on `.', always an invalid library.  This was fixed in
 44.2974 -    # development snapshots of GCC prior to 3.0.
 44.2975 -    case $host_os in
 44.2976 -      aix4 | aix4.[[01]] | aix4.[[01]].*)
 44.2977 -      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 44.2978 -	   echo ' yes '
 44.2979 -	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 44.2980 -	:
 44.2981 -      else
 44.2982 -	can_build_shared=no
 44.2983 -      fi
 44.2984 -      ;;
 44.2985 -    esac
 44.2986 -    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 44.2987 -    # soname into executable. Probably we can add versioning support to
 44.2988 -    # collect2, so additional links can be useful in future.
 44.2989 -    if test "$aix_use_runtimelinking" = yes; then
 44.2990 -      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 44.2991 -      # instead of lib<name>.a to let people know that these are not
 44.2992 -      # typical AIX shared libraries.
 44.2993 -      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 44.2994 -    else
 44.2995 -      # We preserve .a as extension for shared libraries through AIX4.2
 44.2996 -      # and later when we are not doing run time linking.
 44.2997 -      library_names_spec='${libname}${release}.a $libname.a'
 44.2998 -      soname_spec='${libname}${release}${shared_ext}$major'
 44.2999 -    fi
 44.3000 -    shlibpath_var=LIBPATH
 44.3001 -  fi
 44.3002 -  ;;
 44.3003 -
 44.3004 -amigaos*)
 44.3005 -  case $host_cpu in
 44.3006 -  powerpc)
 44.3007 -    # Since July 2007 AmigaOS4 officially supports .so libraries.
 44.3008 -    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 44.3009 -    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 44.3010 -    ;;
 44.3011 -  m68k)
 44.3012 -    library_names_spec='$libname.ixlibrary $libname.a'
 44.3013 -    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 44.3014 -    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 44.3015 -    ;;
 44.3016 -  esac
 44.3017 -  ;;
 44.3018 -
 44.3019 -beos*)
 44.3020 -  library_names_spec='${libname}${shared_ext}'
 44.3021 -  dynamic_linker="$host_os ld.so"
 44.3022 -  shlibpath_var=LIBRARY_PATH
 44.3023 -  ;;
 44.3024 -
 44.3025 -bsdi[[45]]*)
 44.3026 -  version_type=linux # correct to gnu/linux during the next big refactor
 44.3027 -  need_version=no
 44.3028 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 44.3029 -  soname_spec='${libname}${release}${shared_ext}$major'
 44.3030 -  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 44.3031 -  shlibpath_var=LD_LIBRARY_PATH
 44.3032 -  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 44.3033 -  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 44.3034 -  # the default ld.so.conf also contains /usr/contrib/lib and
 44.3035 -  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 44.3036 -  # libtool to hard-code these into programs
 44.3037 -  ;;
 44.3038 -
 44.3039 -cygwin* | mingw* | pw32* | cegcc*)
 44.3040 -  version_type=windows
 44.3041 -  shrext_cmds=".dll"
 44.3042 -  need_version=no
 44.3043 -  need_lib_prefix=no
 44.3044 -
 44.3045 -  case $GCC,$cc_basename in
 44.3046 -  yes,*)
 44.3047 -    # gcc
 44.3048 -    library_names_spec='$libname.dll.a'
 44.3049 -    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 44.3050 -    postinstall_cmds='base_file=`basename \${file}`~
 44.3051 -      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 44.3052 -      dldir=$destdir/`dirname \$dlpath`~
 44.3053 -      test -d \$dldir || mkdir -p \$dldir~
 44.3054 -      $install_prog $dir/$dlname \$dldir/$dlname~
 44.3055 -      chmod a+x \$dldir/$dlname~
 44.3056 -      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 44.3057 -        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 44.3058 -      fi'
 44.3059 -    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 44.3060 -      dlpath=$dir/\$dldll~
 44.3061 -       $RM \$dlpath'
 44.3062 -    shlibpath_overrides_runpath=yes
 44.3063 -
 44.3064 -    case $host_os in
 44.3065 -    cygwin*)
 44.3066 -      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 44.3067 -      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 44.3068 -      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
 44.3069 -m4_if([$1], [],[
 44.3070 -      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
 44.3071 -      ;;
 44.3072 -    mingw* | cegcc*)
 44.3073 -      # MinGW DLLs use traditional 'lib' prefix
 44.3074 -      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 44.3075 -      soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
 44.3076 -      ;;
 44.3077 -    pw32*)
 44.3078 -      # pw32 DLLs use 'pw' prefix rather than 'lib'
 44.3079 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 44.3080 -      ;;
 44.3081 -    esac
 44.3082 -    dynamic_linker='Win32 ld.exe'
 44.3083 -    ;;
 44.3084 -
 44.3085 -  *,cl*)
 44.3086 -    # Native MSVC
 44.3087 -    libname_spec='$name'
 44.3088 -    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 44.3089 -    library_names_spec='${libname}.dll.lib'
 44.3090 -
 44.3091 -    case $build_os in
 44.3092 -    mingw*)
 44.3093 -      sys_lib_search_path_spec=
 44.3094 -      lt_save_ifs=$IFS
 44.3095 -      IFS=';'
 44.3096 -      for lt_path in $LIB
 44.3097 -      do
 44.3098 -        IFS=$lt_save_ifs
 44.3099 -        # Let DOS variable expansion print the short 8.3 style file name.
 44.3100 -        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 44.3101 -        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 44.3102 -      done
 44.3103 -      IFS=$lt_save_ifs
 44.3104 -      # Convert to MSYS style.
 44.3105 -      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 44.3106 -      ;;
 44.3107 -    cygwin*)
 44.3108 -      # Convert to unix form, then to dos form, then back to unix form
 44.3109 -      # but this time dos style (no spaces!) so that the unix form looks
 44.3110 -      # like /cygdrive/c/PROGRA~1:/cygdr...
 44.3111 -      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 44.3112 -      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 44.3113 -      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 44.3114 -      ;;
 44.3115 -    *)
 44.3116 -      sys_lib_search_path_spec="$LIB"
 44.3117 -      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 44.3118 -        # It is most probably a Windows format PATH.
 44.3119 -        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 44.3120 -      else
 44.3121 -        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 44.3122 -      fi
 44.3123 -      # FIXME: find the short name or the path components, as spaces are
 44.3124 -      # common. (e.g. "Program Files" -> "PROGRA~1")
 44.3125 -      ;;
 44.3126 -    esac
 44.3127 -
 44.3128 -    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 44.3129 -    postinstall_cmds='base_file=`basename \${file}`~
 44.3130 -      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 44.3131 -      dldir=$destdir/`dirname \$dlpath`~
 44.3132 -      test -d \$dldir || mkdir -p \$dldir~
 44.3133 -      $install_prog $dir/$dlname \$dldir/$dlname'
 44.3134 -    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 44.3135 -      dlpath=$dir/\$dldll~
 44.3136 -       $RM \$dlpath'
 44.3137 -    shlibpath_overrides_runpath=yes
 44.3138 -    dynamic_linker='Win32 link.exe'
 44.3139 -    ;;
 44.3140 -
 44.3141 -  *)
 44.3142 -    # Assume MSVC wrapper
 44.3143 -    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 44.3144 -    dynamic_linker='Win32 ld.exe'
 44.3145 -    ;;
 44.3146 -  esac
 44.3147 -  # FIXME: first we should search . and the directory the executable is in
 44.3148 -  shlibpath_var=PATH
 44.3149 -  ;;
 44.3150 -
 44.3151 -darwin* | rhapsody*)
 44.3152 -  dynamic_linker="$host_os dyld"
 44.3153 -  version_type=darwin
 44.3154 -  need_lib_prefix=no
 44.3155 -  need_version=no
 44.3156 -  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 44.3157 -  soname_spec='${libname}${release}${major}$shared_ext'
 44.3158 -  shlibpath_overrides_runpath=yes
 44.3159 -  shlibpath_var=DYLD_LIBRARY_PATH
 44.3160 -  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 44.3161 -m4_if([$1], [],[
 44.3162 -  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
 44.3163 -  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 44.3164 -  ;;
 44.3165 -
 44.3166 -dgux*)
 44.3167 -  version_type=linux # correct to gnu/linux during the next big refactor
 44.3168 -  need_lib_prefix=no
 44.3169 -  need_version=no
 44.3170 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 44.3171 -  soname_spec='${libname}${release}${shared_ext}$major'
 44.3172 -  shlibpath_var=LD_LIBRARY_PATH
 44.3173 -  ;;
 44.3174 -
 44.3175 -freebsd* | dragonfly*)
 44.3176 -  # DragonFly does not have aout.  When/if they implement a new
 44.3177 -  # versioning mechanism, adjust this.
 44.3178 -  if test -x /usr/bin/objformat; then
 44.3179 -    objformat=`/usr/bin/objformat`
 44.3180 -  else
 44.3181 -    case $host_os in
 44.3182 -    freebsd[[23]].*) objformat=aout ;;
 44.3183 -    *) objformat=elf ;;
 44.3184 -    esac
 44.3185 -  fi
 44.3186 -  version_type=freebsd-$objformat
 44.3187 -  case $version_type in
 44.3188 -    freebsd-elf*)
 44.3189 -      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 44.3190 -      need_version=no
 44.3191 -      need_lib_prefix=no
 44.3192 -      ;;
 44.3193 -    freebsd-*)
 44.3194 -      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 44.3195 -      need_version=yes
 44.3196 -      ;;
 44.3197 -  esac
 44.3198 -  shlibpath_var=LD_LIBRARY_PATH
 44.3199 -  case $host_os in
 44.3200 -  freebsd2.*)
 44.3201 -    shlibpath_overrides_runpath=yes
 44.3202 -    ;;
 44.3203 -  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
 44.3204 -    shlibpath_overrides_runpath=yes
 44.3205 -    hardcode_into_libs=yes
 44.3206 -    ;;
 44.3207 -  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 44.3208 -  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 44.3209 -    shlibpath_overrides_runpath=no
 44.3210 -    hardcode_into_libs=yes
 44.3211 -    ;;
 44.3212 -  *) # from 4.6 on, and DragonFly
 44.3213 -    shlibpath_overrides_runpath=yes
 44.3214 -    hardcode_into_libs=yes
 44.3215 -    ;;
 44.3216 -  esac
 44.3217 -  ;;
 44.3218 -
 44.3219 -gnu*)
 44.3220 -  version_type=linux # correct to gnu/linux during the next big refactor
 44.3221 -  need_lib_prefix=no
 44.3222 -  need_version=no
 44.3223 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 44.3224 -  soname_spec='${libname}${release}${shared_ext}$major'
 44.3225 -  shlibpath_var=LD_LIBRARY_PATH
 44.3226 -  shlibpath_overrides_runpath=no
 44.3227 -  hardcode_into_libs=yes
 44.3228 -  ;;
 44.3229 -
 44.3230 -haiku*)
 44.3231 -  version_type=linux # correct to gnu/linux during the next big refactor
 44.3232 -  need_lib_prefix=no
 44.3233 -  need_version=no
 44.3234 -  dynamic_linker="$host_os runtime_loader"
 44.3235 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 44.3236 -  soname_spec='${libname}${release}${shared_ext}$major'
 44.3237 -  shlibpath_var=LIBRARY_PATH
 44.3238 -  shlibpath_overrides_runpath=yes
 44.3239 -  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 44.3240 -  hardcode_into_libs=yes
 44.3241 -  ;;
 44.3242 -
 44.3243 -hpux9* | hpux10* | hpux11*)
 44.3244 -  # Give a soname corresponding to the major version so that dld.sl refuses to
 44.3245 -  # link against other versions.
 44.3246 -  version_type=sunos
 44.3247 -  need_lib_prefix=no
 44.3248 -  need_version=no
 44.3249 -  case $host_cpu in
 44.3250 -  ia64*)
 44.3251 -    shrext_cmds='.so'
 44.3252 -    hardcode_into_libs=yes
 44.3253 -    dynamic_linker="$host_os dld.so"
 44.3254 -    shlibpath_var=LD_LIBRARY_PATH
 44.3255 -    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 44.3256 -    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 44.3257 -    soname_spec='${libname}${release}${shared_ext}$major'
 44.3258 -    if test "X$HPUX_IA64_MODE" = X32; then
 44.3259 -      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 44.3260 -    else
 44.3261 -      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 44.3262 -    fi
 44.3263 -    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 44.3264 -    ;;
 44.3265 -  hppa*64*)
 44.3266 -    shrext_cmds='.sl'
 44.3267 -    hardcode_into_libs=yes
 44.3268 -    dynamic_linker="$host_os dld.sl"
 44.3269 -    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 44.3270 -    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 44.3271 -    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 44.3272 -    soname_spec='${libname}${release}${shared_ext}$major'
 44.3273 -    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 44.3274 -    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 44.3275 -    ;;
 44.3276 -  *)
 44.3277 -    shrext_cmds='.sl'
 44.3278 -    dynamic_linker="$host_os dld.sl"
 44.3279 -    shlibpath_var=SHLIB_PATH
 44.3280 -    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 44.3281 -    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 44.3282 -    soname_spec='${libname}${release}${shared_ext}$major'
 44.3283 -    ;;
 44.3284 -  esac
 44.3285 -  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 44.3286 -  postinstall_cmds='chmod 555 $lib'
 44.3287 -  # or fails outright, so override atomically:
 44.3288 -  install_override_mode=555
 44.3289 -  ;;
 44.3290 -
 44.3291 -interix[[3-9]]*)
 44.3292 -  version_type=linux # correct to gnu/linux during the next big refactor
 44.3293 -  need_lib_prefix=no
 44.3294 -  need_version=no
 44.3295 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 44.3296 -  soname_spec='${libname}${release}${shared_ext}$major'
 44.3297 -  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 44.3298 -  shlibpath_var=LD_LIBRARY_PATH
 44.3299 -  shlibpath_overrides_runpath=no
 44.3300 -  hardcode_into_libs=yes
 44.3301 -  ;;
 44.3302 -
 44.3303 -irix5* | irix6* | nonstopux*)
 44.3304 -  case $host_os in
 44.3305 -    nonstopux*) version_type=nonstopux ;;
 44.3306 -    *)
 44.3307 -	if test "$lt_cv_prog_gnu_ld" = yes; then
 44.3308 -		version_type=linux # correct to gnu/linux during the next big refactor
 44.3309 -	else
 44.3310 -		version_type=irix
 44.3311 -	fi ;;
 44.3312 -  esac
 44.3313 -  need_lib_prefix=no
 44.3314 -  need_version=no
 44.3315 -  soname_spec='${libname}${release}${shared_ext}$major'
 44.3316 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 44.3317 -  case $host_os in
 44.3318 -  irix5* | nonstopux*)
 44.3319 -    libsuff= shlibsuff=
 44.3320 -    ;;
 44.3321 -  *)
 44.3322 -    case $LD in # libtool.m4 will add one of these switches to LD
 44.3323 -    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 44.3324 -      libsuff= shlibsuff= libmagic=32-bit;;
 44.3325 -    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 44.3326 -      libsuff=32 shlibsuff=N32 libmagic=N32;;
 44.3327 -    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 44.3328 -      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 44.3329 -    *) libsuff= shlibsuff= libmagic=never-match;;
 44.3330 -    esac
 44.3331 -    ;;
 44.3332 -  esac
 44.3333 -  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 44.3334 -  shlibpath_overrides_runpath=no
 44.3335 -  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 44.3336 -  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 44.3337 -  hardcode_into_libs=yes
 44.3338 -  ;;
 44.3339 -
 44.3340 -# No shared lib support for Linux oldld, aout, or coff.
 44.3341 -linux*oldld* | linux*aout* | linux*coff*)
 44.3342 -  dynamic_linker=no
 44.3343 -  ;;
 44.3344 -
 44.3345 -# This must be glibc/ELF.
 44.3346 -linux* | k*bsd*-gnu | kopensolaris*-gnu)
 44.3347 -  version_type=linux # correct to gnu/linux during the next big refactor
 44.3348 -  need_lib_prefix=no
 44.3349 -  need_version=no
 44.3350 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 44.3351 -  soname_spec='${libname}${release}${shared_ext}$major'
 44.3352 -  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 44.3353 -  shlibpath_var=LD_LIBRARY_PATH
 44.3354 -  shlibpath_overrides_runpath=no
 44.3355 -
 44.3356 -  # Some binutils ld are patched to set DT_RUNPATH
 44.3357 -  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 44.3358 -    [lt_cv_shlibpath_overrides_runpath=no
 44.3359 -    save_LDFLAGS=$LDFLAGS
 44.3360 -    save_libdir=$libdir
 44.3361 -    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 44.3362 -	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 44.3363 -    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 44.3364 -      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 44.3365 -	 [lt_cv_shlibpath_overrides_runpath=yes])])
 44.3366 -    LDFLAGS=$save_LDFLAGS
 44.3367 -    libdir=$save_libdir
 44.3368 -    ])
 44.3369 -  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 44.3370 -
 44.3371 -  # This implies no fast_install, which is unacceptable.
 44.3372 -  # Some rework will be needed to allow for fast_install
 44.3373 -  # before this can be enabled.
 44.3374 -  hardcode_into_libs=yes
 44.3375 -
 44.3376 -  # Append ld.so.conf contents to the search path
 44.3377 -  if test -f /etc/ld.so.conf; then
 44.3378 -    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 44.3379 -    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 44.3380 -  fi
 44.3381 -
 44.3382 -  # We used to test for /lib/ld.so.1 and disable shared libraries on
 44.3383 -  # powerpc, because MkLinux only supported shared libraries with the
 44.3384 -  # GNU dynamic linker.  Since this was broken with cross compilers,
 44.3385 -  # most powerpc-linux boxes support dynamic linking these days and
 44.3386 -  # people can always --disable-shared, the test was removed, and we
 44.3387 -  # assume the GNU/Linux dynamic linker is in use.
 44.3388 -  dynamic_linker='GNU/Linux ld.so'
 44.3389 -  ;;
 44.3390 -
 44.3391 -netbsd*)
 44.3392 -  version_type=sunos
 44.3393 -  need_lib_prefix=no
 44.3394 -  need_version=no
 44.3395 -  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 44.3396 -    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 44.3397 -    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 44.3398 -    dynamic_linker='NetBSD (a.out) ld.so'
 44.3399 -  else
 44.3400 -    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 44.3401 -    soname_spec='${libname}${release}${shared_ext}$major'
 44.3402 -    dynamic_linker='NetBSD ld.elf_so'
 44.3403 -  fi
 44.3404 -  shlibpath_var=LD_LIBRARY_PATH
 44.3405 -  shlibpath_overrides_runpath=yes
 44.3406 -  hardcode_into_libs=yes
 44.3407 -  ;;
 44.3408 -
 44.3409 -newsos6)
 44.3410 -  version_type=linux # correct to gnu/linux during the next big refactor
 44.3411 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 44.3412 -  shlibpath_var=LD_LIBRARY_PATH
 44.3413 -  shlibpath_overrides_runpath=yes
 44.3414 -  ;;
 44.3415 -
 44.3416 -*nto* | *qnx*)
 44.3417 -  version_type=qnx
 44.3418 -  need_lib_prefix=no
 44.3419 -  need_version=no
 44.3420 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 44.3421 -  soname_spec='${libname}${release}${shared_ext}$major'
 44.3422 -  shlibpath_var=LD_LIBRARY_PATH
 44.3423 -  shlibpath_overrides_runpath=no
 44.3424 -  hardcode_into_libs=yes
 44.3425 -  dynamic_linker='ldqnx.so'
 44.3426 -  ;;
 44.3427 -
 44.3428 -openbsd*)
 44.3429 -  version_type=sunos
 44.3430 -  sys_lib_dlsearch_path_spec="/usr/lib"
 44.3431 -  need_lib_prefix=no
 44.3432 -  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 44.3433 -  case $host_os in
 44.3434 -    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
 44.3435 -    *)				need_version=no  ;;
 44.3436 -  esac
 44.3437 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 44.3438 -  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 44.3439 -  shlibpath_var=LD_LIBRARY_PATH
 44.3440 -  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 44.3441 -    case $host_os in
 44.3442 -      openbsd2.[[89]] | openbsd2.[[89]].*)
 44.3443 -	shlibpath_overrides_runpath=no
 44.3444 -	;;
 44.3445 -      *)
 44.3446 -	shlibpath_overrides_runpath=yes
 44.3447 -	;;
 44.3448 -      esac
 44.3449 -  else
 44.3450 -    shlibpath_overrides_runpath=yes
 44.3451 -  fi
 44.3452 -  ;;
 44.3453 -
 44.3454 -os2*)
 44.3455 -  libname_spec='$name'
 44.3456 -  shrext_cmds=".dll"
 44.3457 -  need_lib_prefix=no
 44.3458 -  library_names_spec='$libname${shared_ext} $libname.a'
 44.3459 -  dynamic_linker='OS/2 ld.exe'
 44.3460 -  shlibpath_var=LIBPATH
 44.3461 -  ;;
 44.3462 -
 44.3463 -osf3* | osf4* | osf5*)
 44.3464 -  version_type=osf
 44.3465 -  need_lib_prefix=no
 44.3466 -  need_version=no
 44.3467 -  soname_spec='${libname}${release}${shared_ext}$major'
 44.3468 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 44.3469 -  shlibpath_var=LD_LIBRARY_PATH
 44.3470 -  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 44.3471 -  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 44.3472 -  ;;
 44.3473 -
 44.3474 -rdos*)
 44.3475 -  dynamic_linker=no
 44.3476 -  ;;
 44.3477 -
 44.3478 -solaris*)
 44.3479 -  version_type=linux # correct to gnu/linux during the next big refactor
 44.3480 -  need_lib_prefix=no
 44.3481 -  need_version=no
 44.3482 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 44.3483 -  soname_spec='${libname}${release}${shared_ext}$major'
 44.3484 -  shlibpath_var=LD_LIBRARY_PATH
 44.3485 -  shlibpath_overrides_runpath=yes
 44.3486 -  hardcode_into_libs=yes
 44.3487 -  # ldd complains unless libraries are executable
 44.3488 -  postinstall_cmds='chmod +x $lib'
 44.3489 -  ;;
 44.3490 -
 44.3491 -sunos4*)
 44.3492 -  version_type=sunos
 44.3493 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 44.3494 -  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 44.3495 -  shlibpath_var=LD_LIBRARY_PATH
 44.3496 -  shlibpath_overrides_runpath=yes
 44.3497 -  if test "$with_gnu_ld" = yes; then
 44.3498 -    need_lib_prefix=no
 44.3499 -  fi
 44.3500 -  need_version=yes
 44.3501 -  ;;
 44.3502 -
 44.3503 -sysv4 | sysv4.3*)
 44.3504 -  version_type=linux # correct to gnu/linux during the next big refactor
 44.3505 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 44.3506 -  soname_spec='${libname}${release}${shared_ext}$major'
 44.3507 -  shlibpath_var=LD_LIBRARY_PATH
 44.3508 -  case $host_vendor in
 44.3509 -    sni)
 44.3510 -      shlibpath_overrides_runpath=no
 44.3511 -      need_lib_prefix=no
 44.3512 -      runpath_var=LD_RUN_PATH
 44.3513 -      ;;
 44.3514 -    siemens)
 44.3515 -      need_lib_prefix=no
 44.3516 -      ;;
 44.3517 -    motorola)
 44.3518 -      need_lib_prefix=no
 44.3519 -      need_version=no
 44.3520 -      shlibpath_overrides_runpath=no
 44.3521 -      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 44.3522 -      ;;
 44.3523 -  esac
 44.3524 -  ;;
 44.3525 -
 44.3526 -sysv4*MP*)
 44.3527 -  if test -d /usr/nec ;then
 44.3528 -    version_type=linux # correct to gnu/linux during the next big refactor
 44.3529 -    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 44.3530 -    soname_spec='$libname${shared_ext}.$major'
 44.3531 -    shlibpath_var=LD_LIBRARY_PATH
 44.3532 -  fi
 44.3533 -  ;;
 44.3534 -
 44.3535 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 44.3536 -  version_type=freebsd-elf
 44.3537 -  need_lib_prefix=no
 44.3538 -  need_version=no
 44.3539 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 44.3540 -  soname_spec='${libname}${release}${shared_ext}$major'
 44.3541 -  shlibpath_var=LD_LIBRARY_PATH
 44.3542 -  shlibpath_overrides_runpath=yes
 44.3543 -  hardcode_into_libs=yes
 44.3544 -  if test "$with_gnu_ld" = yes; then
 44.3545 -    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 44.3546 -  else
 44.3547 -    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 44.3548 -    case $host_os in
 44.3549 -      sco3.2v5*)
 44.3550 -        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 44.3551 -	;;
 44.3552 -    esac
 44.3553 -  fi
 44.3554 -  sys_lib_dlsearch_path_spec='/usr/lib'
 44.3555 -  ;;
 44.3556 -
 44.3557 -tpf*)
 44.3558 -  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 44.3559 -  version_type=linux # correct to gnu/linux during the next big refactor
 44.3560 -  need_lib_prefix=no
 44.3561 -  need_version=no
 44.3562 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 44.3563 -  shlibpath_var=LD_LIBRARY_PATH
 44.3564 -  shlibpath_overrides_runpath=no
 44.3565 -  hardcode_into_libs=yes
 44.3566 -  ;;
 44.3567 -
 44.3568 -uts4*)
 44.3569 -  version_type=linux # correct to gnu/linux during the next big refactor
 44.3570 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 44.3571 -  soname_spec='${libname}${release}${shared_ext}$major'
 44.3572 -  shlibpath_var=LD_LIBRARY_PATH
 44.3573 -  ;;
 44.3574 -
 44.3575 -*)
 44.3576 -  dynamic_linker=no
 44.3577 -  ;;
 44.3578 -esac
 44.3579 -AC_MSG_RESULT([$dynamic_linker])
 44.3580 -test "$dynamic_linker" = no && can_build_shared=no
 44.3581 -
 44.3582 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 44.3583 -if test "$GCC" = yes; then
 44.3584 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 44.3585 -fi
 44.3586 -
 44.3587 -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 44.3588 -  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 44.3589 -fi
 44.3590 -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 44.3591 -  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 44.3592 -fi
 44.3593 -
 44.3594 -_LT_DECL([], [variables_saved_for_relink], [1],
 44.3595 -    [Variables whose values should be saved in libtool wrapper scripts and
 44.3596 -    restored at link time])
 44.3597 -_LT_DECL([], [need_lib_prefix], [0],
 44.3598 -    [Do we need the "lib" prefix for modules?])
 44.3599 -_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 44.3600 -_LT_DECL([], [version_type], [0], [Library versioning type])
 44.3601 -_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 44.3602 -_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 44.3603 -_LT_DECL([], [shlibpath_overrides_runpath], [0],
 44.3604 -    [Is shlibpath searched before the hard-coded library search path?])
 44.3605 -_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 44.3606 -_LT_DECL([], [library_names_spec], [1],
 44.3607 -    [[List of archive names.  First name is the real one, the rest are links.
 44.3608 -    The last name is the one that the linker finds with -lNAME]])
 44.3609 -_LT_DECL([], [soname_spec], [1],
 44.3610 -    [[The coded name of the library, if different from the real name]])
 44.3611 -_LT_DECL([], [install_override_mode], [1],
 44.3612 -    [Permission mode override for installation of shared libraries])
 44.3613 -_LT_DECL([], [postinstall_cmds], [2],
 44.3614 -    [Command to use after installation of a shared archive])
 44.3615 -_LT_DECL([], [postuninstall_cmds], [2],
 44.3616 -    [Command to use after uninstallation of a shared archive])
 44.3617 -_LT_DECL([], [finish_cmds], [2],
 44.3618 -    [Commands used to finish a libtool library installation in a directory])
 44.3619 -_LT_DECL([], [finish_eval], [1],
 44.3620 -    [[As "finish_cmds", except a single script fragment to be evaled but
 44.3621 -    not shown]])
 44.3622 -_LT_DECL([], [hardcode_into_libs], [0],
 44.3623 -    [Whether we should hardcode library paths into libraries])
 44.3624 -_LT_DECL([], [sys_lib_search_path_spec], [2],
 44.3625 -    [Compile-time system search path for libraries])
 44.3626 -_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 44.3627 -    [Run-time system search path for libraries])
 44.3628 -])# _LT_SYS_DYNAMIC_LINKER
 44.3629 -
 44.3630 -
 44.3631 -# _LT_PATH_TOOL_PREFIX(TOOL)
 44.3632 -# --------------------------
 44.3633 -# find a file program which can recognize shared library
 44.3634 -AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 44.3635 -[m4_require([_LT_DECL_EGREP])dnl
 44.3636 -AC_MSG_CHECKING([for $1])
 44.3637 -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
 44.3638 -[case $MAGIC_CMD in
 44.3639 -[[\\/*] |  ?:[\\/]*])
 44.3640 -  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 44.3641 -  ;;
 44.3642 -*)
 44.3643 -  lt_save_MAGIC_CMD="$MAGIC_CMD"
 44.3644 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 44.3645 -dnl $ac_dummy forces splitting on constant user-supplied paths.
 44.3646 -dnl POSIX.2 word splitting is done only on the output of word expansions,
 44.3647 -dnl not every word.  This closes a longstanding sh security hole.
 44.3648 -  ac_dummy="m4_if([$2], , $PATH, [$2])"
 44.3649 -  for ac_dir in $ac_dummy; do
 44.3650 -    IFS="$lt_save_ifs"
 44.3651 -    test -z "$ac_dir" && ac_dir=.
 44.3652 -    if test -f $ac_dir/$1; then
 44.3653 -      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
 44.3654 -      if test -n "$file_magic_test_file"; then
 44.3655 -	case $deplibs_check_method in
 44.3656 -	"file_magic "*)
 44.3657 -	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 44.3658 -	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 44.3659 -	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 44.3660 -	    $EGREP "$file_magic_regex" > /dev/null; then
 44.3661 -	    :
 44.3662 -	  else
 44.3663 -	    cat <<_LT_EOF 1>&2
 44.3664 -
 44.3665 -*** Warning: the command libtool uses to detect shared libraries,
 44.3666 -*** $file_magic_cmd, produces output that libtool cannot recognize.
 44.3667 -*** The result is that libtool may fail to recognize shared libraries
 44.3668 -*** as such.  This will affect the creation of libtool libraries that
 44.3669 -*** depend on shared libraries, but programs linked with such libtool
 44.3670 -*** libraries will work regardless of this problem.  Nevertheless, you
 44.3671 -*** may want to report the problem to your system manager and/or to
 44.3672 -*** bug-libtool@gnu.org
 44.3673 -
 44.3674 -_LT_EOF
 44.3675 -	  fi ;;
 44.3676 -	esac
 44.3677 -      fi
 44.3678 -      break
 44.3679 -    fi
 44.3680 -  done
 44.3681 -  IFS="$lt_save_ifs"
 44.3682 -  MAGIC_CMD="$lt_save_MAGIC_CMD"
 44.3683 -  ;;
 44.3684 -esac])
 44.3685 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 44.3686 -if test -n "$MAGIC_CMD"; then
 44.3687 -  AC_MSG_RESULT($MAGIC_CMD)
 44.3688 -else
 44.3689 -  AC_MSG_RESULT(no)
 44.3690 -fi
 44.3691 -_LT_DECL([], [MAGIC_CMD], [0],
 44.3692 -	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 44.3693 -])# _LT_PATH_TOOL_PREFIX
 44.3694 -
 44.3695 -# Old name:
 44.3696 -AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 44.3697 -dnl aclocal-1.4 backwards compatibility:
 44.3698 -dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 44.3699 -
 44.3700 -
 44.3701 -# _LT_PATH_MAGIC
 44.3702 -# --------------
 44.3703 -# find a file program which can recognize a shared library
 44.3704 -m4_defun([_LT_PATH_MAGIC],
 44.3705 -[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 44.3706 -if test -z "$lt_cv_path_MAGIC_CMD"; then
 44.3707 -  if test -n "$ac_tool_prefix"; then
 44.3708 -    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 44.3709 -  else
 44.3710 -    MAGIC_CMD=:
 44.3711 -  fi
 44.3712 -fi
 44.3713 -])# _LT_PATH_MAGIC
 44.3714 -
 44.3715 -
 44.3716 -# LT_PATH_LD
 44.3717 -# ----------
 44.3718 -# find the pathname to the GNU or non-GNU linker
 44.3719 -AC_DEFUN([LT_PATH_LD],
 44.3720 -[AC_REQUIRE([AC_PROG_CC])dnl
 44.3721 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
 44.3722 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 44.3723 -m4_require([_LT_DECL_SED])dnl
 44.3724 -m4_require([_LT_DECL_EGREP])dnl
 44.3725 -m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
 44.3726 -
 44.3727 -AC_ARG_WITH([gnu-ld],
 44.3728 -    [AS_HELP_STRING([--with-gnu-ld],
 44.3729 -	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
 44.3730 -    [test "$withval" = no || with_gnu_ld=yes],
 44.3731 -    [with_gnu_ld=no])dnl
 44.3732 -
 44.3733 -ac_prog=ld
 44.3734 -if test "$GCC" = yes; then
 44.3735 -  # Check if gcc -print-prog-name=ld gives a path.
 44.3736 -  AC_MSG_CHECKING([for ld used by $CC])
 44.3737 -  case $host in
 44.3738 -  *-*-mingw*)
 44.3739 -    # gcc leaves a trailing carriage return which upsets mingw
 44.3740 -    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 44.3741 -  *)
 44.3742 -    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 44.3743 -  esac
 44.3744 -  case $ac_prog in
 44.3745 -    # Accept absolute paths.
 44.3746 -    [[\\/]]* | ?:[[\\/]]*)
 44.3747 -      re_direlt='/[[^/]][[^/]]*/\.\./'
 44.3748 -      # Canonicalize the pathname of ld
 44.3749 -      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 44.3750 -      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 44.3751 -	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 44.3752 -      done
 44.3753 -      test -z "$LD" && LD="$ac_prog"
 44.3754 -      ;;
 44.3755 -  "")
 44.3756 -    # If it fails, then pretend we aren't using GCC.
 44.3757 -    ac_prog=ld
 44.3758 -    ;;
 44.3759 -  *)
 44.3760 -    # If it is relative, then search for the first ld in PATH.
 44.3761 -    with_gnu_ld=unknown
 44.3762 -    ;;
 44.3763 -  esac
 44.3764 -elif test "$with_gnu_ld" = yes; then
 44.3765 -  AC_MSG_CHECKING([for GNU ld])
 44.3766 -else
 44.3767 -  AC_MSG_CHECKING([for non-GNU ld])
 44.3768 -fi
 44.3769 -AC_CACHE_VAL(lt_cv_path_LD,
 44.3770 -[if test -z "$LD"; then
 44.3771 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 44.3772 -  for ac_dir in $PATH; do
 44.3773 -    IFS="$lt_save_ifs"
 44.3774 -    test -z "$ac_dir" && ac_dir=.
 44.3775 -    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 44.3776 -      lt_cv_path_LD="$ac_dir/$ac_prog"
 44.3777 -      # Check to see if the program is GNU ld.  I'd rather use --version,
 44.3778 -      # but apparently some variants of GNU ld only accept -v.
 44.3779 -      # Break only if it was the GNU/non-GNU ld that we prefer.
 44.3780 -      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 44.3781 -      *GNU* | *'with BFD'*)
 44.3782 -	test "$with_gnu_ld" != no && break
 44.3783 -	;;
 44.3784 -      *)
 44.3785 -	test "$with_gnu_ld" != yes && break
 44.3786 -	;;
 44.3787 -      esac
 44.3788 -    fi
 44.3789 -  done
 44.3790 -  IFS="$lt_save_ifs"
 44.3791 -else
 44.3792 -  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 44.3793 -fi])
 44.3794 -LD="$lt_cv_path_LD"
 44.3795 -if test -n "$LD"; then
 44.3796 -  AC_MSG_RESULT($LD)
 44.3797 -else
 44.3798 -  AC_MSG_RESULT(no)
 44.3799 -fi
 44.3800 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 44.3801 -_LT_PATH_LD_GNU
 44.3802 -AC_SUBST([LD])
 44.3803 -
 44.3804 -_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 44.3805 -])# LT_PATH_LD
 44.3806 -
 44.3807 -# Old names:
 44.3808 -AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 44.3809 -AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 44.3810 -dnl aclocal-1.4 backwards compatibility:
 44.3811 -dnl AC_DEFUN([AM_PROG_LD], [])
 44.3812 -dnl AC_DEFUN([AC_PROG_LD], [])
 44.3813 -
 44.3814 -
 44.3815 -# _LT_PATH_LD_GNU
 44.3816 -#- --------------
 44.3817 -m4_defun([_LT_PATH_LD_GNU],
 44.3818 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 44.3819 -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
 44.3820 -case `$LD -v 2>&1 </dev/null` in
 44.3821 -*GNU* | *'with BFD'*)
 44.3822 -  lt_cv_prog_gnu_ld=yes
 44.3823 -  ;;
 44.3824 -*)
 44.3825 -  lt_cv_prog_gnu_ld=no
 44.3826 -  ;;
 44.3827 -esac])
 44.3828 -with_gnu_ld=$lt_cv_prog_gnu_ld
 44.3829 -])# _LT_PATH_LD_GNU
 44.3830 -
 44.3831 -
 44.3832 -# _LT_CMD_RELOAD
 44.3833 -# --------------
 44.3834 -# find reload flag for linker
 44.3835 -#   -- PORTME Some linkers may need a different reload flag.
 44.3836 -m4_defun([_LT_CMD_RELOAD],
 44.3837 -[AC_CACHE_CHECK([for $LD option to reload object files],
 44.3838 -  lt_cv_ld_reload_flag,
 44.3839 -  [lt_cv_ld_reload_flag='-r'])
 44.3840 -reload_flag=$lt_cv_ld_reload_flag
 44.3841 -case $reload_flag in
 44.3842 -"" | " "*) ;;
 44.3843 -*) reload_flag=" $reload_flag" ;;
 44.3844 -esac
 44.3845 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
 44.3846 -case $host_os in
 44.3847 -  cygwin* | mingw* | pw32* | cegcc*)
 44.3848 -    if test "$GCC" != yes; then
 44.3849 -      reload_cmds=false
 44.3850 -    fi
 44.3851 -    ;;
 44.3852 -  darwin*)
 44.3853 -    if test "$GCC" = yes; then
 44.3854 -      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 44.3855 -    else
 44.3856 -      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 44.3857 -    fi
 44.3858 -    ;;
 44.3859 -esac
 44.3860 -_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 44.3861 -_LT_TAGDECL([], [reload_cmds], [2])dnl
 44.3862 -])# _LT_CMD_RELOAD
 44.3863 -
 44.3864 -
 44.3865 -# _LT_CHECK_MAGIC_METHOD
 44.3866 -# ----------------------
 44.3867 -# how to check for library dependencies
 44.3868 -#  -- PORTME fill in with the dynamic library characteristics
 44.3869 -m4_defun([_LT_CHECK_MAGIC_METHOD],
 44.3870 -[m4_require([_LT_DECL_EGREP])
 44.3871 -m4_require([_LT_DECL_OBJDUMP])
 44.3872 -AC_CACHE_CHECK([how to recognize dependent libraries],
 44.3873 -lt_cv_deplibs_check_method,
 44.3874 -[lt_cv_file_magic_cmd='$MAGIC_CMD'
 44.3875 -lt_cv_file_magic_test_file=
 44.3876 -lt_cv_deplibs_check_method='unknown'
 44.3877 -# Need to set the preceding variable on all platforms that support
 44.3878 -# interlibrary dependencies.
 44.3879 -# 'none' -- dependencies not supported.
 44.3880 -# `unknown' -- same as none, but documents that we really don't know.
 44.3881 -# 'pass_all' -- all dependencies passed with no checks.
 44.3882 -# 'test_compile' -- check by making test program.
 44.3883 -# 'file_magic [[regex]]' -- check by looking for files in library path
 44.3884 -# which responds to the $file_magic_cmd with a given extended regex.
 44.3885 -# If you have `file' or equivalent on your system and you're not sure
 44.3886 -# whether `pass_all' will *always* work, you probably want this one.
 44.3887 -
 44.3888 -case $host_os in
 44.3889 -aix[[4-9]]*)
 44.3890 -  lt_cv_deplibs_check_method=pass_all
 44.3891 -  ;;
 44.3892 -
 44.3893 -beos*)
 44.3894 -  lt_cv_deplibs_check_method=pass_all
 44.3895 -  ;;
 44.3896 -
 44.3897 -bsdi[[45]]*)
 44.3898 -  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
 44.3899 -  lt_cv_file_magic_cmd='/usr/bin/file -L'
 44.3900 -  lt_cv_file_magic_test_file=/shlib/libc.so
 44.3901 -  ;;
 44.3902 -
 44.3903 -cygwin*)
 44.3904 -  # func_win32_libid is a shell function defined in ltmain.sh
 44.3905 -  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 44.3906 -  lt_cv_file_magic_cmd='func_win32_libid'
 44.3907 -  lt_cv_deplibs_check_method=pass_all
 44.3908 -  ;;
 44.3909 -
 44.3910 -mingw* | pw32*)
 44.3911 -  # Base MSYS/MinGW do not provide the 'file' command needed by
 44.3912 -  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 44.3913 -  # unless we find 'file', for example because we are cross-compiling.
 44.3914 -  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 44.3915 -  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 44.3916 -    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 44.3917 -    lt_cv_file_magic_cmd='func_win32_libid'
 44.3918 -  else
 44.3919 -    # Keep this pattern in sync with the one in func_win32_libid.
 44.3920 -    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 44.3921 -    lt_cv_file_magic_cmd='$OBJDUMP -f'
 44.3922 -  fi
 44.3923 -  lt_cv_deplibs_check_method=pass_all
 44.3924 -  ;;
 44.3925 -
 44.3926 -cegcc*)
 44.3927 -  # use the weaker test based on 'objdump'. See mingw*.
 44.3928 -  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 44.3929 -  lt_cv_file_magic_cmd='$OBJDUMP -f'
 44.3930 -  ;;
 44.3931 -
 44.3932 -darwin* | rhapsody*)
 44.3933 -  lt_cv_deplibs_check_method=pass_all
 44.3934 -  ;;
 44.3935 -
 44.3936 -freebsd* | dragonfly*)
 44.3937 -  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 44.3938 -    case $host_cpu in
 44.3939 -    i*86 )
 44.3940 -      # Not sure whether the presence of OpenBSD here was a mistake.
 44.3941 -      # Let's accept both of them until this is cleared up.
 44.3942 -      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
 44.3943 -      lt_cv_file_magic_cmd=/usr/bin/file
 44.3944 -      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 44.3945 -      ;;
 44.3946 -    esac
 44.3947 -  else
 44.3948 -    lt_cv_deplibs_check_method=pass_all
 44.3949 -  fi
 44.3950 -  ;;
 44.3951 -
 44.3952 -gnu*)
 44.3953 -  lt_cv_deplibs_check_method=pass_all
 44.3954 -  ;;
 44.3955 -
 44.3956 -haiku*)
 44.3957 -  lt_cv_deplibs_check_method=pass_all
 44.3958 -  ;;
 44.3959 -
 44.3960 -hpux10.20* | hpux11*)
 44.3961 -  lt_cv_file_magic_cmd=/usr/bin/file
 44.3962 -  case $host_cpu in
 44.3963 -  ia64*)
 44.3964 -    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
 44.3965 -    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 44.3966 -    ;;
 44.3967 -  hppa*64*)
 44.3968 -    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
 44.3969 -    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 44.3970 -    ;;
 44.3971 -  *)
 44.3972 -    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
 44.3973 -    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 44.3974 -    ;;
 44.3975 -  esac
 44.3976 -  ;;
 44.3977 -
 44.3978 -interix[[3-9]]*)
 44.3979 -  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 44.3980 -  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 44.3981 -  ;;
 44.3982 -
 44.3983 -irix5* | irix6* | nonstopux*)
 44.3984 -  case $LD in
 44.3985 -  *-32|*"-32 ") libmagic=32-bit;;
 44.3986 -  *-n32|*"-n32 ") libmagic=N32;;
 44.3987 -  *-64|*"-64 ") libmagic=64-bit;;
 44.3988 -  *) libmagic=never-match;;
 44.3989 -  esac
 44.3990 -  lt_cv_deplibs_check_method=pass_all
 44.3991 -  ;;
 44.3992 -
 44.3993 -# This must be glibc/ELF.
 44.3994 -linux* | k*bsd*-gnu | kopensolaris*-gnu)
 44.3995 -  lt_cv_deplibs_check_method=pass_all
 44.3996 -  ;;
 44.3997 -
 44.3998 -netbsd*)
 44.3999 -  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 44.4000 -    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 44.4001 -  else
 44.4002 -    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
 44.4003 -  fi
 44.4004 -  ;;
 44.4005 -
 44.4006 -newos6*)
 44.4007 -  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
 44.4008 -  lt_cv_file_magic_cmd=/usr/bin/file
 44.4009 -  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 44.4010 -  ;;
 44.4011 -
 44.4012 -*nto* | *qnx*)
 44.4013 -  lt_cv_deplibs_check_method=pass_all
 44.4014 -  ;;
 44.4015 -
 44.4016 -openbsd*)
 44.4017 -  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 44.4018 -    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 44.4019 -  else
 44.4020 -    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 44.4021 -  fi
 44.4022 -  ;;
 44.4023 -
 44.4024 -osf3* | osf4* | osf5*)
 44.4025 -  lt_cv_deplibs_check_method=pass_all
 44.4026 -  ;;
 44.4027 -
 44.4028 -rdos*)
 44.4029 -  lt_cv_deplibs_check_method=pass_all
 44.4030 -  ;;
 44.4031 -
 44.4032 -solaris*)
 44.4033 -  lt_cv_deplibs_check_method=pass_all
 44.4034 -  ;;
 44.4035 -
 44.4036 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 44.4037 -  lt_cv_deplibs_check_method=pass_all
 44.4038 -  ;;
 44.4039 -
 44.4040 -sysv4 | sysv4.3*)
 44.4041 -  case $host_vendor in
 44.4042 -  motorola)
 44.4043 -    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
 44.4044 -    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 44.4045 -    ;;
 44.4046 -  ncr)
 44.4047 -    lt_cv_deplibs_check_method=pass_all
 44.4048 -    ;;
 44.4049 -  sequent)
 44.4050 -    lt_cv_file_magic_cmd='/bin/file'
 44.4051 -    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
 44.4052 -    ;;
 44.4053 -  sni)
 44.4054 -    lt_cv_file_magic_cmd='/bin/file'
 44.4055 -    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
 44.4056 -    lt_cv_file_magic_test_file=/lib/libc.so
 44.4057 -    ;;
 44.4058 -  siemens)
 44.4059 -    lt_cv_deplibs_check_method=pass_all
 44.4060 -    ;;
 44.4061 -  pc)
 44.4062 -    lt_cv_deplibs_check_method=pass_all
 44.4063 -    ;;
 44.4064 -  esac
 44.4065 -  ;;
 44.4066 -
 44.4067 -tpf*)
 44.4068 -  lt_cv_deplibs_check_method=pass_all
 44.4069 -  ;;
 44.4070 -esac
 44.4071 -])
 44.4072 -
 44.4073 -file_magic_glob=
 44.4074 -want_nocaseglob=no
 44.4075 -if test "$build" = "$host"; then
 44.4076 -  case $host_os in
 44.4077 -  mingw* | pw32*)
 44.4078 -    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 44.4079 -      want_nocaseglob=yes
 44.4080 -    else
 44.4081 -      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 44.4082 -    fi
 44.4083 -    ;;
 44.4084 -  esac
 44.4085 -fi
 44.4086 -
 44.4087 -file_magic_cmd=$lt_cv_file_magic_cmd
 44.4088 -deplibs_check_method=$lt_cv_deplibs_check_method
 44.4089 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
 44.4090 -
 44.4091 -_LT_DECL([], [deplibs_check_method], [1],
 44.4092 -    [Method to check whether dependent libraries are shared objects])
 44.4093 -_LT_DECL([], [file_magic_cmd], [1],
 44.4094 -    [Command to use when deplibs_check_method = "file_magic"])
 44.4095 -_LT_DECL([], [file_magic_glob], [1],
 44.4096 -    [How to find potential files when deplibs_check_method = "file_magic"])
 44.4097 -_LT_DECL([], [want_nocaseglob], [1],
 44.4098 -    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
 44.4099 -])# _LT_CHECK_MAGIC_METHOD
 44.4100 -
 44.4101 -
 44.4102 -# LT_PATH_NM
 44.4103 -# ----------
 44.4104 -# find the pathname to a BSD- or MS-compatible name lister
 44.4105 -AC_DEFUN([LT_PATH_NM],
 44.4106 -[AC_REQUIRE([AC_PROG_CC])dnl
 44.4107 -AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
 44.4108 -[if test -n "$NM"; then
 44.4109 -  # Let the user override the test.
 44.4110 -  lt_cv_path_NM="$NM"
 44.4111 -else
 44.4112 -  lt_nm_to_check="${ac_tool_prefix}nm"
 44.4113 -  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 44.4114 -    lt_nm_to_check="$lt_nm_to_check nm"
 44.4115 -  fi
 44.4116 -  for lt_tmp_nm in $lt_nm_to_check; do
 44.4117 -    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 44.4118 -    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 44.4119 -      IFS="$lt_save_ifs"
 44.4120 -      test -z "$ac_dir" && ac_dir=.
 44.4121 -      tmp_nm="$ac_dir/$lt_tmp_nm"
 44.4122 -      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 44.4123 -	# Check to see if the nm accepts a BSD-compat flag.
 44.4124 -	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
 44.4125 -	#   nm: unknown option "B" ignored
 44.4126 -	# Tru64's nm complains that /dev/null is an invalid object file
 44.4127 -	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 44.4128 -	*/dev/null* | *'Invalid file or object type'*)
 44.4129 -	  lt_cv_path_NM="$tmp_nm -B"
 44.4130 -	  break
 44.4131 -	  ;;
 44.4132 -	*)
 44.4133 -	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 44.4134 -	  */dev/null*)
 44.4135 -	    lt_cv_path_NM="$tmp_nm -p"
 44.4136 -	    break
 44.4137 -	    ;;
 44.4138 -	  *)
 44.4139 -	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 44.4140 -	    continue # so that we can try to find one that supports BSD flags
 44.4141 -	    ;;
 44.4142 -	  esac
 44.4143 -	  ;;
 44.4144 -	esac
 44.4145 -      fi
 44.4146 -    done
 44.4147 -    IFS="$lt_save_ifs"
 44.4148 -  done
 44.4149 -  : ${lt_cv_path_NM=no}
 44.4150 -fi])
 44.4151 -if test "$lt_cv_path_NM" != "no"; then
 44.4152 -  NM="$lt_cv_path_NM"
 44.4153 -else
 44.4154 -  # Didn't find any BSD compatible name lister, look for dumpbin.
 44.4155 -  if test -n "$DUMPBIN"; then :
 44.4156 -    # Let the user override the test.
 44.4157 -  else
 44.4158 -    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 44.4159 -    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 44.4160 -    *COFF*)
 44.4161 -      DUMPBIN="$DUMPBIN -symbols"
 44.4162 -      ;;
 44.4163 -    *)
 44.4164 -      DUMPBIN=:
 44.4165 -      ;;
 44.4166 -    esac
 44.4167 -  fi
 44.4168 -  AC_SUBST([DUMPBIN])
 44.4169 -  if test "$DUMPBIN" != ":"; then
 44.4170 -    NM="$DUMPBIN"
 44.4171 -  fi
 44.4172 -fi
 44.4173 -test -z "$NM" && NM=nm
 44.4174 -AC_SUBST([NM])
 44.4175 -_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 44.4176 -
 44.4177 -AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 44.4178 -  [lt_cv_nm_interface="BSD nm"
 44.4179 -  echo "int some_variable = 0;" > conftest.$ac_ext
 44.4180 -  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 44.4181 -  (eval "$ac_compile" 2>conftest.err)
 44.4182 -  cat conftest.err >&AS_MESSAGE_LOG_FD
 44.4183 -  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 44.4184 -  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 44.4185 -  cat conftest.err >&AS_MESSAGE_LOG_FD
 44.4186 -  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
 44.4187 -  cat conftest.out >&AS_MESSAGE_LOG_FD
 44.4188 -  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 44.4189 -    lt_cv_nm_interface="MS dumpbin"
 44.4190 -  fi
 44.4191 -  rm -f conftest*])
 44.4192 -])# LT_PATH_NM
 44.4193 -
 44.4194 -# Old names:
 44.4195 -AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 44.4196 -AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 44.4197 -dnl aclocal-1.4 backwards compatibility:
 44.4198 -dnl AC_DEFUN([AM_PROG_NM], [])
 44.4199 -dnl AC_DEFUN([AC_PROG_NM], [])
 44.4200 -
 44.4201 -# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 44.4202 -# --------------------------------
 44.4203 -# how to determine the name of the shared library
 44.4204 -# associated with a specific link library.
 44.4205 -#  -- PORTME fill in with the dynamic library characteristics
 44.4206 -m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 44.4207 -[m4_require([_LT_DECL_EGREP])
 44.4208 -m4_require([_LT_DECL_OBJDUMP])
 44.4209 -m4_require([_LT_DECL_DLLTOOL])
 44.4210 -AC_CACHE_CHECK([how to associate runtime and link libraries],
 44.4211 -lt_cv_sharedlib_from_linklib_cmd,
 44.4212 -[lt_cv_sharedlib_from_linklib_cmd='unknown'
 44.4213 -
 44.4214 -case $host_os in
 44.4215 -cygwin* | mingw* | pw32* | cegcc*)
 44.4216 -  # two different shell functions defined in ltmain.sh
 44.4217 -  # decide which to use based on capabilities of $DLLTOOL
 44.4218 -  case `$DLLTOOL --help 2>&1` in
 44.4219 -  *--identify-strict*)
 44.4220 -    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 44.4221 -    ;;
 44.4222 -  *)
 44.4223 -    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 44.4224 -    ;;
 44.4225 -  esac
 44.4226 -  ;;
 44.4227 -*)
 44.4228 -  # fallback: assume linklib IS sharedlib
 44.4229 -  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 44.4230 -  ;;
 44.4231 -esac
 44.4232 -])
 44.4233 -sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 44.4234 -test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 44.4235 -
 44.4236 -_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 44.4237 -    [Command to associate shared and link libraries])
 44.4238 -])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 44.4239 -
 44.4240 -
 44.4241 -# _LT_PATH_MANIFEST_TOOL
 44.4242 -# ----------------------
 44.4243 -# locate the manifest tool
 44.4244 -m4_defun([_LT_PATH_MANIFEST_TOOL],
 44.4245 -[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 44.4246 -test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 44.4247 -AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 44.4248 -  [lt_cv_path_mainfest_tool=no
 44.4249 -  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 44.4250 -  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 44.4251 -  cat conftest.err >&AS_MESSAGE_LOG_FD
 44.4252 -  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 44.4253 -    lt_cv_path_mainfest_tool=yes
 44.4254 -  fi
 44.4255 -  rm -f conftest*])
 44.4256 -if test "x$lt_cv_path_mainfest_tool" != xyes; then
 44.4257 -  MANIFEST_TOOL=:
 44.4258 -fi
 44.4259 -_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 44.4260 -])# _LT_PATH_MANIFEST_TOOL
 44.4261 -
 44.4262 -
 44.4263 -# LT_LIB_M
 44.4264 -# --------
 44.4265 -# check for math library
 44.4266 -AC_DEFUN([LT_LIB_M],
 44.4267 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 44.4268 -LIBM=
 44.4269 -case $host in
 44.4270 -*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
 44.4271 -  # These system don't have libm, or don't need it
 44.4272 -  ;;
 44.4273 -*-ncr-sysv4.3*)
 44.4274 -  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
 44.4275 -  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
 44.4276 -  ;;
 44.4277 -*)
 44.4278 -  AC_CHECK_LIB(m, cos, LIBM="-lm")
 44.4279 -  ;;
 44.4280 -esac
 44.4281 -AC_SUBST([LIBM])
 44.4282 -])# LT_LIB_M
 44.4283 -
 44.4284 -# Old name:
 44.4285 -AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 44.4286 -dnl aclocal-1.4 backwards compatibility:
 44.4287 -dnl AC_DEFUN([AC_CHECK_LIBM], [])
 44.4288 -
 44.4289 -
 44.4290 -# _LT_COMPILER_NO_RTTI([TAGNAME])
 44.4291 -# -------------------------------
 44.4292 -m4_defun([_LT_COMPILER_NO_RTTI],
 44.4293 -[m4_require([_LT_TAG_COMPILER])dnl
 44.4294 -
 44.4295 -_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 44.4296 -
 44.4297 -if test "$GCC" = yes; then
 44.4298 -  case $cc_basename in
 44.4299 -  nvcc*)
 44.4300 -    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 44.4301 -  *)
 44.4302 -    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 44.4303 -  esac
 44.4304 -
 44.4305 -  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 44.4306 -    lt_cv_prog_compiler_rtti_exceptions,
 44.4307 -    [-fno-rtti -fno-exceptions], [],
 44.4308 -    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 44.4309 -fi
 44.4310 -_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 44.4311 -	[Compiler flag to turn off builtin functions])
 44.4312 -])# _LT_COMPILER_NO_RTTI
 44.4313 -
 44.4314 -
 44.4315 -# _LT_CMD_GLOBAL_SYMBOLS
 44.4316 -# ----------------------
 44.4317 -m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 44.4318 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 44.4319 -AC_REQUIRE([AC_PROG_CC])dnl
 44.4320 -AC_REQUIRE([AC_PROG_AWK])dnl
 44.4321 -AC_REQUIRE([LT_PATH_NM])dnl
 44.4322 -AC_REQUIRE([LT_PATH_LD])dnl
 44.4323 -m4_require([_LT_DECL_SED])dnl
 44.4324 -m4_require([_LT_DECL_EGREP])dnl
 44.4325 -m4_require([_LT_TAG_COMPILER])dnl
 44.4326 -
 44.4327 -# Check for command to grab the raw symbol name followed by C symbol from nm.
 44.4328 -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
 44.4329 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
 44.4330 -[
 44.4331 -# These are sane defaults that work on at least a few old systems.
 44.4332 -# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 44.4333 -
 44.4334 -# Character class describing NM global symbol codes.
 44.4335 -symcode='[[BCDEGRST]]'
 44.4336 -
 44.4337 -# Regexp to match symbols that can be accessed directly from C.
 44.4338 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
 44.4339 -
 44.4340 -# Define system-specific variables.
 44.4341 -case $host_os in
 44.4342 -aix*)
 44.4343 -  symcode='[[BCDT]]'
 44.4344 -  ;;
 44.4345 -cygwin* | mingw* | pw32* | cegcc*)
 44.4346 -  symcode='[[ABCDGISTW]]'
 44.4347 -  ;;
 44.4348 -hpux*)
 44.4349 -  if test "$host_cpu" = ia64; then
 44.4350 -    symcode='[[ABCDEGRST]]'
 44.4351 -  fi
 44.4352 -  ;;
 44.4353 -irix* | nonstopux*)
 44.4354 -  symcode='[[BCDEGRST]]'
 44.4355 -  ;;
 44.4356 -osf*)
 44.4357 -  symcode='[[BCDEGQRST]]'
 44.4358 -  ;;
 44.4359 -solaris*)
 44.4360 -  symcode='[[BDRT]]'
 44.4361 -  ;;
 44.4362 -sco3.2v5*)
 44.4363 -  symcode='[[DT]]'
 44.4364 -  ;;
 44.4365 -sysv4.2uw2*)
 44.4366 -  symcode='[[DT]]'
 44.4367 -  ;;
 44.4368 -sysv5* | sco5v6* | unixware* | OpenUNIX*)
 44.4369 -  symcode='[[ABDT]]'
 44.4370 -  ;;
 44.4371 -sysv4)
 44.4372 -  symcode='[[DFNSTU]]'
 44.4373 -  ;;
 44.4374 -esac
 44.4375 -
 44.4376 -# If we're using GNU nm, then use its standard symbol codes.
 44.4377 -case `$NM -V 2>&1` in
 44.4378 -*GNU* | *'with BFD'*)
 44.4379 -  symcode='[[ABCDGIRSTW]]' ;;
 44.4380 -esac
 44.4381 -
 44.4382 -# Transform an extracted symbol line into a proper C declaration.
 44.4383 -# Some systems (esp. on ia64) link data and code symbols differently,
 44.4384 -# so use this general approach.
 44.4385 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 44.4386 -
 44.4387 -# Transform an extracted symbol line into symbol name and symbol address
 44.4388 -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 44.4389 -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 44.4390 -
 44.4391 -# Handle CRLF in mingw tool chain
 44.4392 -opt_cr=
 44.4393 -case $build_os in
 44.4394 -mingw*)
 44.4395 -  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 44.4396 -  ;;
 44.4397 -esac
 44.4398 -
 44.4399 -# Try without a prefix underscore, then with it.
 44.4400 -for ac_symprfx in "" "_"; do
 44.4401 -
 44.4402 -  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 44.4403 -  symxfrm="\\1 $ac_symprfx\\2 \\2"
 44.4404 -
 44.4405 -  # Write the raw and C identifiers.
 44.4406 -  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 44.4407 -    # Fake it for dumpbin and say T for any non-static function
 44.4408 -    # and D for any global variable.
 44.4409 -    # Also find C++ and __fastcall symbols from MSVC++,
 44.4410 -    # which start with @ or ?.
 44.4411 -    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 44.4412 -"     {last_section=section; section=\$ 3};"\
 44.4413 -"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 44.4414 -"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 44.4415 -"     \$ 0!~/External *\|/{next};"\
 44.4416 -"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 44.4417 -"     {if(hide[section]) next};"\
 44.4418 -"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 44.4419 -"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 44.4420 -"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 44.4421 -"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 44.4422 -"     ' prfx=^$ac_symprfx]"
 44.4423 -  else
 44.4424 -    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 44.4425 -  fi
 44.4426 -  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 44.4427 -
 44.4428 -  # Check to see that the pipe works correctly.
 44.4429 -  pipe_works=no
 44.4430 -
 44.4431 -  rm -f conftest*
 44.4432 -  cat > conftest.$ac_ext <<_LT_EOF
 44.4433 -#ifdef __cplusplus
 44.4434 -extern "C" {
 44.4435 -#endif
 44.4436 -char nm_test_var;
 44.4437 -void nm_test_func(void);
 44.4438 -void nm_test_func(void){}
 44.4439 -#ifdef __cplusplus
 44.4440 -}
 44.4441 -#endif
 44.4442 -int main(){nm_test_var='a';nm_test_func();return(0);}
 44.4443 -_LT_EOF
 44.4444 -
 44.4445 -  if AC_TRY_EVAL(ac_compile); then
 44.4446 -    # Now try to grab the symbols.
 44.4447 -    nlist=conftest.nm
 44.4448 -    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
 44.4449 -      # Try sorting and uniquifying the output.
 44.4450 -      if sort "$nlist" | uniq > "$nlist"T; then
 44.4451 -	mv -f "$nlist"T "$nlist"
 44.4452 -      else
 44.4453 -	rm -f "$nlist"T
 44.4454 -      fi
 44.4455 -
 44.4456 -      # Make sure that we snagged all the symbols we need.
 44.4457 -      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 44.4458 -	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 44.4459 -	  cat <<_LT_EOF > conftest.$ac_ext
 44.4460 -/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 44.4461 -#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 44.4462 -/* DATA imports from DLLs on WIN32 con't be const, because runtime
 44.4463 -   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 44.4464 -# define LT@&t@_DLSYM_CONST
 44.4465 -#elif defined(__osf__)
 44.4466 -/* This system does not cope well with relocations in const data.  */
 44.4467 -# define LT@&t@_DLSYM_CONST
 44.4468 -#else
 44.4469 -# define LT@&t@_DLSYM_CONST const
 44.4470 -#endif
 44.4471 -
 44.4472 -#ifdef __cplusplus
 44.4473 -extern "C" {
 44.4474 -#endif
 44.4475 -
 44.4476 -_LT_EOF
 44.4477 -	  # Now generate the symbol file.
 44.4478 -	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ex