home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / zlib-1.0.4-diffs.gz / zlib-1.0.4-diffs
Text File  |  1996-10-13  |  80KB  |  2,871 lines

  1. This file contains patches that transform the baseline version into
  2. the amiga version.  Assuming that you have unarchived the baseline
  3. version in the current directory, just run the command:
  4.  
  5.     patch -p1 -E -b .pbak <diff-file
  6.  
  7. where 'diff-file' is this patch file.  After running patch you should
  8. remove all the generated *.pbak files, and look for any *.rej files
  9. that indicate a problem patching the baseline source.
  10.  
  11. diff -rup --new-file baseline/contrib/zlib/Makefile amiga/contrib/zlib/Makefile
  12. --- baseline/contrib/zlib/Makefile    Wed Jul 24 05:57:03 1996
  13. +++ amiga/contrib/zlib/Makefile    Wed Dec 31 17:00:00 1969
  14. @@ -1,130 +0,0 @@
  15. -# Makefile for zlib
  16. -# Copyright (C) 1995-1996 Jean-loup Gailly.
  17. -# For conditions of distribution and use, see copyright notice in zlib.h 
  18. -
  19. -# To compile and test, type:
  20. -#   ./configure; make test
  21. -# The call of configure is optional if you don't have special requirements
  22. -
  23. -# To install /usr/local/lib/libz.* and /usr/local/include/zlib.h, type:
  24. -#    make install
  25. -# To install in $HOME instead of /usr/local, use:
  26. -#    make install prefix=$HOME
  27. -
  28. -CC=cc
  29. -
  30. -CFLAGS=-O
  31. -#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
  32. -#CFLAGS=-g -DDEBUG
  33. -#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
  34. -#           -Wstrict-prototypes -Wmissing-prototypes
  35. -
  36. -LDFLAGS=-L. -lz
  37. -LDSHARED=$(CC)
  38. -
  39. -VER=1.0.4
  40. -LIBS=libz.a
  41. -
  42. -AR=ar rc
  43. -RANLIB=ranlib
  44. -TAR=tar
  45. -
  46. -prefix=/usr/local
  47. -exec_prefix = $(prefix)
  48. -
  49. -OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
  50. -       zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
  51. -
  52. -TEST_OBJS = example.o minigzip.o
  53. -
  54. -DISTFILES = README INDEX ChangeLog configure Make*[a-z0-9] descrip.mms \
  55. -        zlib.def zlib.rc algorithm.doc  *.[ch]
  56. -
  57. -all: example minigzip
  58. -
  59. -test: all
  60. -    ./example
  61. -    echo hello world | ./minigzip | ./minigzip -d 
  62. -
  63. -libz.a: $(OBJS)
  64. -    $(AR) $@ $(OBJS)
  65. -    -@ ($(RANLIB) $@ || true) 2>/dev/null
  66. -
  67. -libz.so.$(VER): $(OBJS)
  68. -    $(LDSHARED) -o $@ $(OBJS)
  69. -    rm -f libz.so; ln -s $@ libz.so
  70. -
  71. -example: example.o $(LIBS)
  72. -    $(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS)
  73. -
  74. -minigzip: minigzip.o $(LIBS)
  75. -    $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS)
  76. -
  77. -install: $(LIBS)
  78. -    -@if [ ! $(prefix)/include  ]; then mkdir $(prefix)/include; fi
  79. -    -@if [ ! $(exec_prefix)/lib ]; then mkdir $(exec_prefix)/lib; fi
  80. -    cp zlib.h zconf.h $(prefix)/include
  81. -    chmod 644 $(prefix)/include/zlib.h $(prefix)/include/zconf.h
  82. -    cp $(LIBS) $(exec_prefix)/lib
  83. -    cd $(exec_prefix)/lib; chmod 644 $(LIBS)
  84. -    -@(cd $(exec_prefix)/lib; $(RANLIB) libz.a || true) >/dev/null 2>&1
  85. -    cd $(exec_prefix)/lib; if test -f libz.so.$(VER); then \
  86. -      ln -s libz.so.$(VER) libz.so; \
  87. -    fi
  88. -# The ranlib in install is needed on NeXTSTEP which checks file times
  89. -
  90. -uninstall:
  91. -    cd $(exec_prefix)/lib; rm -f $(LIBS); \
  92. -    if test -f libz.so; then \
  93. -     v=`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p'<$(prefix)/include/zlib.h`;\
  94. -     rm -f libz.so.$$v libz.so; \
  95. -    fi
  96. -    cd $(prefix)/include; rm -f zlib.h zconf.h
  97. -
  98. -clean:
  99. -    rm -f *.o *~ example minigzip libz.a libz.so* foo.gz
  100. -
  101. -zip:
  102. -    mv Makefile Makefile~; cp -p Makefile.in Makefile
  103. -    v=`sed -n -e 's/\.//g' -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\
  104. -    zip -ul9 zlib$$v $(DISTFILES)
  105. -    mv Makefile~ Makefile
  106. -
  107. -dist:
  108. -    mv Makefile Makefile~; cp -p Makefile.in Makefile
  109. -    d=zlib-`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\
  110. -    rm -f $$d.tar.gz; \
  111. -    if test ! -d ../$$d; then rm -f ../$$d; ln -s `pwd` ../$$d; fi; \
  112. -    files=""; \
  113. -    for f in $(DISTFILES); do files="$$files $$d/$$f"; done; \
  114. -    cd ..; \
  115. -    GZIP=-9 $(TAR) chofz $$d/$$d.tar.gz $$files; \
  116. -    if test ! -d $$d; then rm -f $$d; fi
  117. -    mv Makefile~ Makefile
  118. -
  119. -tags:    
  120. -    etags *.[ch]
  121. -
  122. -depend:
  123. -    makedepend -- $(CFLAGS) -- *.[ch]
  124. -
  125. -# DO NOT DELETE THIS LINE -- make depend depends on it.
  126. -
  127. -adler32.o: zlib.h zconf.h
  128. -compress.o: zlib.h zconf.h
  129. -crc32.o: zlib.h zconf.h
  130. -deflate.o: deflate.h zutil.h zlib.h zconf.h
  131. -example.o: zlib.h zconf.h
  132. -gzio.o: zutil.h zlib.h zconf.h
  133. -infblock.o: infblock.h inftrees.h infcodes.h infutil.h zutil.h zlib.h zconf.h
  134. -infcodes.o: zutil.h zlib.h zconf.h
  135. -infcodes.o: inftrees.h infblock.h infcodes.h infutil.h inffast.h
  136. -inffast.o: zutil.h zlib.h zconf.h inftrees.h
  137. -inffast.o: infblock.h infcodes.h infutil.h inffast.h
  138. -inflate.o: zutil.h zlib.h zconf.h infblock.h
  139. -inftrees.o: zutil.h zlib.h zconf.h inftrees.h
  140. -infutil.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h
  141. -minigzip.o:  zlib.h zconf.h 
  142. -trees.o: deflate.h zutil.h zlib.h zconf.h 
  143. -uncompr.o: zlib.h zconf.h
  144. -zutil.o: zutil.h zlib.h zconf.h  
  145. diff -rup --new-file baseline/contrib/zlib/Makefile.in amiga/contrib/zlib/Makefile.in
  146. --- baseline/contrib/zlib/Makefile.in    Wed Jul 24 05:57:03 1996
  147. +++ amiga/contrib/zlib/Makefile.in    Sat Sep 28 00:00:00 1996
  148. @@ -11,26 +11,34 @@
  149.  # To install in $HOME instead of /usr/local, use:
  150.  #    make install prefix=$HOME
  151.  
  152. -CC=cc
  153. +srcdir=@srcdir@
  154. +VPATH=@srcdir@
  155.  
  156. -CFLAGS=-O
  157. +bindir=$(exec_prefix)/bin
  158. +libdir=$(exec_prefix)/lib
  159. +
  160. +CC=@CC@
  161. +
  162. +CFLAGS=@CFLAGS@
  163.  #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
  164.  #CFLAGS=-g -DDEBUG
  165.  #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
  166.  #           -Wstrict-prototypes -Wmissing-prototypes
  167.  
  168. -LDFLAGS=-L. -lz
  169. +OUR_LDFLAGS=-L. -lz
  170.  LDSHARED=$(CC)
  171.  
  172.  VER=1.0.4
  173.  LIBS=libz.a
  174.  
  175. -AR=ar rc
  176. -RANLIB=ranlib
  177. +AR=@AR@
  178. +RANLIB=@RANLIB@
  179.  TAR=tar
  180. +INSTALL=@INSTALL@
  181. +INSTALL_DATA=@INSTALL_DATA@
  182.  
  183. -prefix=/usr/local
  184. -exec_prefix = $(prefix)
  185. +prefix=@prefix@
  186. +exec_prefix = @exec_prefix@
  187.  
  188.  OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
  189.         zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
  190. @@ -47,7 +55,7 @@ test: all
  191.      echo hello world | ./minigzip | ./minigzip -d 
  192.  
  193.  libz.a: $(OBJS)
  194. -    $(AR) $@ $(OBJS)
  195. +    $(AR) rc $@ $(OBJS)
  196.      -@ ($(RANLIB) $@ || true) 2>/dev/null
  197.  
  198.  libz.so.$(VER): $(OBJS)
  199. @@ -55,22 +63,26 @@ libz.so.$(VER): $(OBJS)
  200.      rm -f libz.so; ln -s $@ libz.so
  201.  
  202.  example: example.o $(LIBS)
  203. -    $(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS)
  204. +    $(CC) $(CFLAGS) -o $@ example.o $(OUR_LDFLAGS)
  205.  
  206.  minigzip: minigzip.o $(LIBS)
  207. -    $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS)
  208. +    $(CC) $(CFLAGS) -o $@ minigzip.o $(OUR_LDFLAGS)
  209.  
  210.  install: $(LIBS)
  211. -    -@if [ ! $(prefix)/include  ]; then mkdir $(prefix)/include; fi
  212. -    -@if [ ! $(exec_prefix)/lib ]; then mkdir $(exec_prefix)/lib; fi
  213. -    cp zlib.h zconf.h $(prefix)/include
  214. -    chmod 644 $(prefix)/include/zlib.h $(prefix)/include/zconf.h
  215. -    cp $(LIBS) $(exec_prefix)/lib
  216. -    cd $(exec_prefix)/lib; chmod 644 $(LIBS)
  217. -    -@(cd $(exec_prefix)/lib; $(RANLIB) libz.a || true) >/dev/null 2>&1
  218. -    cd $(exec_prefix)/lib; if test -f libz.so.$(VER); then \
  219. -      ln -s libz.so.$(VER) libz.so; \
  220. -    fi
  221. +    if [ ! $(prefix)/include  ]; then mkdir $(prefix)/include; else true; fi
  222. +    if [ ! $(exec_prefix)/lib ]; then mkdir $(exec_prefix)/lib; else true; fi
  223. +    for f in $(srcdir)/zlib.h $(srcdir)/zconf.h; do \
  224. +      $(INSTALL_DATA) $$f $(prefix)/include/`basename $$f` ; \
  225. +      chmod 644 $(prefix)/include/`basename $$f` ; \
  226. +    done
  227. +    for l in $(LIBS); do \
  228. +      $(INSTALL_DATA) $$l $(exec_prefix)/lib/$$l; \
  229. +      chmod 644 $(exec_prefix)/lib/$$l; \
  230. +      $(RANLIB) $(exec_prefix)/lib/$$l; \
  231. +    done
  232. +#    cd $(exec_prefix)/lib; if test -f libz.so.$(VER); then \
  233. +#      ln -s libz.so.$(VER) libz.so; \
  234. +#    fi
  235.  # The ranlib in install is needed on NeXTSTEP which checks file times
  236.  
  237.  uninstall:
  238. diff -rup --new-file baseline/contrib/zlib/Product-Info amiga/contrib/zlib/Product-Info
  239. --- baseline/contrib/zlib/Product-Info    Wed Dec 31 17:00:00 1969
  240. +++ amiga/contrib/zlib/Product-Info    Sat Sep 28 00:00:00 1996
  241. @@ -0,0 +1,27 @@
  242. +.name
  243. +zlib
  244. +.type
  245. +Programmer Tool
  246. +.short
  247. +General purpose data compression library
  248. +.description
  249. +zlib 1.0.4 is a general purpose data compression library.  All the code
  250. +is reentrant (thread safe).  The data format used by the zlib library
  251. +is described by RFCs (Request for Comments) 1950 to 1952 in the files 
  252. +ftp://ds.internic.net/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate
  253. +format) and rfc1952.txt (gzip format). These documents are also available in
  254. +other formats from ftp://ftp.uu.net/graphics/png/documents/zlib/zdoc-index.html
  255. +
  256. +All functions of the compression library are documented in the file
  257. +zlib.h. A usage example of the library is given in the file example.c
  258. +which also tests that the library is working correctly. Another
  259. +example is given in the file minigzip.c. The compression library itself
  260. +is composed of all source files except example.c and minigzip.c.
  261. +.version
  262. +1.0.4
  263. +.distribution
  264. +Freely Redistributable
  265. +.described-by
  266. +Fred Fish (fnf@ninemoons.com)
  267. +.submittal
  268. +downloaded via ftp from ftp://ftp.uu.net/pub/archiving/zip/zlib
  269. diff -rup --new-file baseline/contrib/zlib/config.sub amiga/contrib/zlib/config.sub
  270. --- baseline/contrib/zlib/config.sub    Wed Dec 31 17:00:00 1969
  271. +++ amiga/contrib/zlib/config.sub    Sat Sep 28 00:00:00 1996
  272. @@ -0,0 +1,1110 @@
  273. +#! /bin/sh
  274. +# Configuration validation subroutine script, version 1.1.
  275. +#   Copyright (C) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
  276. +# This file is (in principle) common to ALL GNU software.
  277. +# The presence of a machine in this file suggests that SOME GNU software
  278. +# can handle that machine.  It does not imply ALL GNU software can. 
  279. +#
  280. +# This file is free software; you can redistribute it and/or modify
  281. +# it under the terms of the GNU General Public License as published by
  282. +# the Free Software Foundation; either version 2 of the License, or
  283. +# (at your option) any later version.
  284. +#
  285. +# This program is distributed in the hope that it will be useful,
  286. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  287. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  288. +# GNU General Public License for more details.
  289. +#
  290. +# You should have received a copy of the GNU General Public License
  291. +# along with this program; if not, write to the Free Software
  292. +# Foundation, Inc., 59 Temple Place - Suite 330,
  293. +# Boston, MA 02111-1307, USA.
  294. +
  295. +# As a special exception to the GNU General Public License, if you
  296. +# distribute this file as part of a program that contains a
  297. +# configuration script generated by Autoconf, you may include it under
  298. +# the same distribution terms that you use for the rest of that program.
  299. +
  300. +# Configuration subroutine to validate and canonicalize a configuration type.
  301. +# Supply the specified configuration type as an argument.
  302. +# If it is invalid, we print an error message on stderr and exit with code 1.
  303. +# Otherwise, we print the canonical config type on stdout and succeed.
  304. +
  305. +# This file is supposed to be the same for all GNU packages
  306. +# and recognize all the CPU types, system types and aliases
  307. +# that are meaningful with *any* GNU software.
  308. +# Each package is responsible for reporting which valid configurations
  309. +# it does not support.  The user should be able to distinguish
  310. +# a failure to support a valid configuration from a meaningless
  311. +# configuration.
  312. +
  313. +# The goal of this file is to map all the various variations of a given
  314. +# machine specification into a single specification in the form:
  315. +#    CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
  316. +# It is wrong to echo any other type of specification.
  317. +
  318. +if [ x$1 = x ]
  319. +then
  320. +    echo Configuration name missing. 1>&2
  321. +    echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
  322. +    echo "or     $0 ALIAS" 1>&2
  323. +    echo where ALIAS is a recognized configuration type. 1>&2
  324. +    exit 1
  325. +fi
  326. +
  327. +# First pass through any local machine types.
  328. +case $1 in
  329. +    *local*)
  330. +        echo $1
  331. +        exit 0
  332. +        ;;
  333. +    *)
  334. +    ;;
  335. +esac
  336. +
  337. +# Separate what the user gave into CPU-COMPANY and OS (if any).
  338. +basic_machine=`echo $1 | sed 's/-[^-]*$//'`
  339. +if [ $basic_machine != $1 ]
  340. +then os=`echo $1 | sed 's/.*-/-/'`
  341. +else os=; fi
  342. +
  343. +### Let's recognize common machines as not being operating systems so
  344. +### that things like config.sub decstation-3100 work.  We also
  345. +### recognize some manufacturers as not being operating systems, so we
  346. +### can provide default operating systems below.
  347. +case $os in
  348. +    -sun*os*)
  349. +        # Prevent following clause from handling this invalid input.
  350. +        ;;
  351. +    -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
  352. +    -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
  353. +    -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
  354. +    -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  355. +    -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  356. +    -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp )
  357. +        os=
  358. +        basic_machine=$1
  359. +        ;;
  360. +    -sim | -cisco | -oki | -wec | -winbond )    # CYGNUS LOCAL
  361. +        os=
  362. +        basic_machine=$1
  363. +        ;;
  364. +    -apple*)                    # CYGNUS LOCAL
  365. +        os=
  366. +        basic_machine=$1
  367. +        ;;
  368. +    -scout)                        # CYGNUS LOCAL
  369. +        ;;
  370. +    -wrs)                        # CYGNUS LOCAL
  371. +        os=vxworks
  372. +        basic_machine=$1
  373. +        ;;
  374. +    -hiux*)
  375. +        os=-hiuxwe2
  376. +        ;;
  377. +    -sco5)
  378. +        os=sco3.2v5
  379. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  380. +        ;;
  381. +    -sco4)
  382. +        os=-sco3.2v4
  383. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  384. +        ;;
  385. +    -sco3.2.[4-9]*)
  386. +        os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
  387. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  388. +        ;;
  389. +    -sco3.2v[4-9]*)
  390. +        # Don't forget version if it is 3.2v4 or newer.
  391. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  392. +        ;;
  393. +    -sco*)
  394. +        os=-sco3.2v2
  395. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  396. +        ;;
  397. +    -isc)
  398. +        os=-isc2.2
  399. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  400. +        ;;
  401. +    -clix*)
  402. +        basic_machine=clipper-intergraph
  403. +        ;;
  404. +    -isc*)
  405. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  406. +        ;;
  407. +    -lynx*)
  408. +        os=-lynxos
  409. +        ;;
  410. +    -ptx*)
  411. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
  412. +        ;;
  413. +    -windowsnt*)
  414. +        os=`echo $os | sed -e 's/windowsnt/winnt/'`
  415. +        ;;
  416. +    -psos*)
  417. +        os=-psos
  418. +        ;;
  419. +esac
  420. +
  421. +# Decode aliases for certain CPU-COMPANY combinations.
  422. +case $basic_machine in
  423. +    # Recognize the basic CPU types without company name.
  424. +    # Some are omitted here because they have special meanings below.
  425. +    tahoe | i[3456]86 | i860 | m68k | m68000 | m88k | ns32k | arm \
  426. +        | arme[lb] | pyramid \
  427. +        | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \
  428. +        | alpha | we32k | ns16k | clipper | i370 | sh \
  429. +        | powerpc | powerpcle | 1750a | dsp16xx | mips64 | mipsel \
  430. +        | pdp11 | mips64el | mips64orion | mips64orionel \
  431. +        | sparc | sparclet | sparclite | sparc64)
  432. +        basic_machine=$basic_machine-unknown
  433. +        ;;
  434. +    m88110 | m680[01234]0 | m683?2 | m68360 | z8k | v70 | h8500 | w65) # CYGNUS LOCAL
  435. +        basic_machine=$basic_machine-unknown
  436. +        ;;
  437. +    mips64vr4300 | mips64vr4300el) # CYGNUS LOCAL jsmith/vr4300
  438. +        basic_machine=$basic_machine-unknown
  439. +        ;;
  440. +    mips64vr4100 | mips64vr4100el) # CYGNUS LOCAL jsmith/vr4100
  441. +        basic_machine=$basic_machine-unknown
  442. +        ;;
  443. +    # Object if more than one company name word.
  444. +    *-*-*)
  445. +        echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  446. +        exit 1
  447. +        ;;
  448. +    # Recognize the basic CPU types with company name.
  449. +    vax-* | tahoe-* | i[3456]86-* | i860-* | m68k-* | m68000-* | m88k-* \
  450. +          | sparc-* | ns32k-* | fx80-* | arm-* | arme[lb]-* | c[123]* \
  451. +          | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \
  452. +          | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
  453. +          | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
  454. +          | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
  455. +          | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \
  456. +          | mips64el-* | mips64orion-* | mips64orionel-*)
  457. +        ;;
  458. +    m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | h8500-*) # CYGNUS LOCAL
  459. +        ;;
  460. +    mips64vr4300-* | mips64vr4300el-*) # CYGNUS LOCAL jsmith/vr4300
  461. +        ;;
  462. +    mips64vr4100-* | mips64vr4100el-*) # CYGNUS LOCAL jsmith/vr4100
  463. +        ;;
  464. +    # Recognize the various machine names and aliases which stand
  465. +    # for a CPU type and a company and sometimes even an OS.
  466. +    386bsd)                        # CYGNUS LOCAL
  467. +        basic_machine=i386-unknown
  468. +        os=-bsd
  469. +        ;;
  470. +    3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
  471. +        basic_machine=m68000-att
  472. +        ;;
  473. +    3b*)
  474. +        basic_machine=we32k-att
  475. +        ;;
  476. +    a29khif)                    # CYGNUS LOCAL
  477. +        basic_machine=a29k-amd
  478. +        os=-udi
  479. +        ;;
  480. +    adobe68k)                    # CYGNUS LOCAL
  481. +        basic_machine=m68010-adobe
  482. +        os=-scout
  483. +        ;;
  484. +    alliant | fx80)
  485. +        basic_machine=fx80-alliant
  486. +        ;;
  487. +    altos | altos3068)
  488. +        basic_machine=m68k-altos
  489. +        ;;
  490. +    am29k)
  491. +        basic_machine=a29k-none
  492. +        os=-bsd
  493. +        ;;
  494. +    amdahl)
  495. +        basic_machine=580-amdahl
  496. +        os=-sysv
  497. +        ;;
  498. +    amiga | amiga-*)
  499. +        basic_machine=m68k-unknown
  500. +        ;;
  501. +    amigaos)
  502. +        basic_machine=m68k-unknown
  503. +        os=-amigaos
  504. +        ;;
  505. +    amigaunix | amix)
  506. +        basic_machine=m68k-cbm
  507. +        os=-sysv4
  508. +        ;;
  509. +    apollo68)
  510. +        basic_machine=m68k-apollo
  511. +        os=-sysv
  512. +        ;;
  513. +    apollo68bsd)                    # CYGNUS LOCAL
  514. +        basic_machine=m68k-apollo
  515. +        os=-bsd
  516. +        ;;
  517. +    arm | armel | armeb)
  518. +        basic_machine=arm-arm
  519. +        os=-aout
  520. +        ;;
  521. +    aux)
  522. +        basic_machine=m68k-apple
  523. +        os=-aux
  524. +        ;;
  525. +    balance)
  526. +        basic_machine=ns32k-sequent
  527. +        os=-dynix
  528. +        ;;
  529. +    convex-c1)
  530. +        basic_machine=c1-convex
  531. +        os=-bsd
  532. +        ;;
  533. +    convex-c2)
  534. +        basic_machine=c2-convex
  535. +        os=-bsd
  536. +        ;;
  537. +    convex-c32)
  538. +        basic_machine=c32-convex
  539. +        os=-bsd
  540. +        ;;
  541. +    convex-c34)
  542. +        basic_machine=c34-convex
  543. +        os=-bsd
  544. +        ;;
  545. +    convex-c38)
  546. +        basic_machine=c38-convex
  547. +        os=-bsd
  548. +        ;;
  549. +    cray | ymp)
  550. +        basic_machine=ymp-cray
  551. +        os=-unicos
  552. +        ;;
  553. +    cray2)
  554. +        basic_machine=cray2-cray
  555. +        os=-unicos
  556. +        ;;
  557. +    crds | unos)
  558. +        basic_machine=m68k-crds
  559. +        ;;
  560. +    da30 | da30-*)
  561. +        basic_machine=m68k-da30
  562. +        ;;
  563. +    decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  564. +        basic_machine=mips-dec
  565. +        ;;
  566. +    delta | 3300 | motorola-3300 | motorola-delta \
  567. +          | 3300-motorola | delta-motorola)
  568. +        basic_machine=m68k-motorola
  569. +        ;;
  570. +    delta88)
  571. +        basic_machine=m88k-motorola
  572. +        os=-sysv3
  573. +        ;;
  574. +    dpx20 | dpx20-*)
  575. +        basic_machine=rs6000-bull
  576. +        os=-bosx
  577. +        ;;
  578. +    dpx2* | dpx2*-bull)
  579. +        basic_machine=m68k-bull
  580. +        os=-sysv3
  581. +        ;;
  582. +    ebmon29k)
  583. +        basic_machine=a29k-amd
  584. +        os=-ebmon
  585. +        ;;
  586. +    elxsi)
  587. +        basic_machine=elxsi-elxsi
  588. +        os=-bsd
  589. +        ;;
  590. +    encore | umax | mmax)
  591. +        basic_machine=ns32k-encore
  592. +        ;;
  593. +    es1800 | OSE68k | ose68k | ose | OSE)        # CYGNUS LOCAL
  594. +        basic_machine=m68k-ericsson
  595. +        os=-ose
  596. +        ;;
  597. +    fx2800)
  598. +        basic_machine=i860-alliant
  599. +        ;;
  600. +    genix)
  601. +        basic_machine=ns32k-ns
  602. +        ;;
  603. +    gmicro)
  604. +        basic_machine=tron-gmicro
  605. +        os=-sysv
  606. +        ;;
  607. +    h3050r* | hiux*)
  608. +        basic_machine=hppa1.1-hitachi
  609. +        os=-hiuxwe2
  610. +        ;;
  611. +    h8300hms)
  612. +        basic_machine=h8300-hitachi
  613. +        os=-hms
  614. +        ;;
  615. +    h8300xray)                    # CYGNUS LOCAL
  616. +        basic_machine=h8300-hitachi
  617. +        os=-xray
  618. +        ;;
  619. +    h8500hms)                    # CYGNUS LOCAL
  620. +        basic_machine=h8500-hitachi
  621. +        os=-hms
  622. +        ;;
  623. +    harris)
  624. +        basic_machine=m88k-harris
  625. +        os=-sysv3
  626. +        ;;
  627. +    hp300-*)
  628. +        basic_machine=m68k-hp
  629. +        ;;
  630. +    hp300bsd)
  631. +        basic_machine=m68k-hp
  632. +        os=-bsd
  633. +        ;;
  634. +    hp300hpux)
  635. +        basic_machine=m68k-hp
  636. +        os=-hpux
  637. +        ;;
  638. +        w89k-*)                        # CYGNUS LOCAL
  639. +                basic_machine=hppa1.1-winbond
  640. +                os=-proelf
  641. +                ;;
  642. +        op50n-*)                    # CYGNUS LOCAL
  643. +                basic_machine=hppa1.1-oki
  644. +                os=-proelf
  645. +                ;;
  646. +        op60c-*)                    # CYGNUS LOCAL
  647. +                basic_machine=hppa1.1-oki
  648. +                os=-proelf
  649. +                ;;
  650. +        hppro)                        # CYGNUS LOCAL
  651. +                basic_machine=hppa1.1-hp
  652. +                os=-proelf
  653. +                ;;
  654. +    hp9k2[0-9][0-9] | hp9k31[0-9])
  655. +        basic_machine=m68000-hp
  656. +        ;;
  657. +    hp9k3[2-9][0-9])
  658. +        basic_machine=m68k-hp
  659. +        ;;
  660. +    hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
  661. +        basic_machine=hppa1.1-hp
  662. +        ;;
  663. +    hp9k8[0-9][0-9] | hp8[0-9][0-9])
  664. +        basic_machine=hppa1.0-hp
  665. +        ;;
  666. +    hppaosf)                    # CYGNUS LOCAL
  667. +        basic_machine=hppa1.1-hp
  668. +        os=-osf
  669. +        ;;
  670. +    i370-ibm* | ibm*)
  671. +        basic_machine=i370-ibm
  672. +        os=-mvs
  673. +        ;;
  674. +# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
  675. +    i[3456]86v32)
  676. +        basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
  677. +        os=-sysv32
  678. +        ;;
  679. +    i[3456]86v4*)
  680. +        basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
  681. +        os=-sysv4
  682. +        ;;
  683. +    i[3456]86v)
  684. +        basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
  685. +        os=-sysv
  686. +        ;;
  687. +    i[3456]86sol2)
  688. +        basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
  689. +        os=-solaris2
  690. +        ;;
  691. +    i386mach)                    # CYGNUS LOCAL
  692. +        basic_machine=i386-mach
  693. +        os=-mach
  694. +        ;;
  695. +    i386-vsta | vsta)                # CYGNUS LOCAL
  696. +        basic_machine=i386-unknown
  697. +        os=-vsta
  698. +        ;;
  699. +    i386-go32 | go32)                # CYGNUS LOCAL
  700. +        basic_machine=i386-unknown
  701. +        os=-go32
  702. +        ;;
  703. +    iris | iris4d)
  704. +        basic_machine=mips-sgi
  705. +        case $os in
  706. +            -irix*)
  707. +            ;;
  708. +            *)
  709. +            os=-irix4
  710. +            ;;
  711. +        esac
  712. +        ;;
  713. +    isi68 | isi)
  714. +        basic_machine=m68k-isi
  715. +        os=-sysv
  716. +        ;;
  717. +    m88k-omron*)
  718. +        basic_machine=m88k-omron
  719. +        ;;
  720. +    magnum | m3230)
  721. +        basic_machine=mips-mips
  722. +        os=-sysv
  723. +        ;;
  724. +    merlin)
  725. +        basic_machine=ns32k-utek
  726. +        os=-sysv
  727. +        ;;
  728. +    miniframe)
  729. +        basic_machine=m68000-convergent
  730. +        ;;
  731. +    mips3*-*)
  732. +        basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  733. +        ;;
  734. +    mips3*)
  735. +        basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  736. +        ;;
  737. +    monitor)                    # CYGNUS LOCAL
  738. +        basic_machine=m68k-rom68k
  739. +        os=-coff
  740. +        ;;
  741. +    msdos)                        # CYGNUS LOCAL
  742. +        basic_machine=i386-unknown    
  743. +        os=-msdos
  744. +        ;;
  745. +    ncr3000)
  746. +        basic_machine=i486-ncr
  747. +        os=-sysv4
  748. +        ;;
  749. +    netbsd386)
  750. +        basic_machine=i386-unknown        # CYGNUS LOCAL
  751. +        os=-netbsd
  752. +        ;;
  753. +    news | news700 | news800 | news900)
  754. +        basic_machine=m68k-sony
  755. +        os=-newsos
  756. +        ;;
  757. +    news1000)
  758. +        basic_machine=m68030-sony
  759. +        os=-newsos
  760. +        ;;
  761. +    news-3600 | risc-news)
  762. +        basic_machine=mips-sony
  763. +        os=-newsos
  764. +        ;;
  765. +    necv70)                        # CYGNUS LOCAL
  766. +        basic_machine=v70-nec
  767. +        os=-sysv
  768. +        ;;
  769. +    next | m*-next )
  770. +        basic_machine=m68k-next
  771. +        case $os in
  772. +            -nextstep* )
  773. +            ;;
  774. +            -ns2*)
  775. +              os=-nextstep2
  776. +            ;;
  777. +            *)
  778. +              os=-nextstep3
  779. +            ;;
  780. +        esac
  781. +        ;;
  782. +    nh3000)
  783. +        basic_machine=m68k-harris
  784. +        os=-cxux
  785. +        ;;
  786. +    nh[45]000)
  787. +        basic_machine=m88k-harris
  788. +        os=-cxux
  789. +        ;;
  790. +    nindy960)
  791. +        basic_machine=i960-intel
  792. +        os=-nindy
  793. +        ;;
  794. +    mon960)
  795. +        basic_machine=i960-intel
  796. +        os=-mon960
  797. +        ;;
  798. +    np1)
  799. +        basic_machine=np1-gould
  800. +        ;;
  801. +    OSE68000 | ose68000)                # CYGNUS LOCAL
  802. +        basic_machine=m68000-ericsson
  803. +        os=-ose
  804. +        ;;
  805. +    os68k)                        # CYGNUS LOCAL
  806. +        basic_machine=m68k-none
  807. +        os=-os68k
  808. +        ;;
  809. +    pa-hitachi)
  810. +        basic_machine=hppa1.1-hitachi
  811. +        os=-hiuxwe2
  812. +        ;;
  813. +    paragon)
  814. +        basic_machine=i860-intel
  815. +        os=-osf
  816. +        ;;
  817. +    pbd)
  818. +        basic_machine=sparc-tti
  819. +        ;;
  820. +    pbb)
  821. +        basic_machine=m68k-tti
  822. +        ;;
  823. +        pc532 | pc532-*)
  824. +        basic_machine=ns32k-pc532
  825. +        ;;
  826. +    pentium | p5)
  827. +        basic_machine=i586-intel
  828. +        ;;
  829. +    pentiumpro | p6)
  830. +        basic_machine=i686-intel
  831. +        ;;
  832. +    pentium-* | p5-*)
  833. +        basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  834. +        ;;
  835. +    pentiumpro-* | p6-*)
  836. +        basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  837. +        ;;
  838. +    k5)
  839. +        # We don't have specific support for AMD's K5 yet, so just call it a Pentium
  840. +        basic_machine=i586-amd
  841. +        ;;
  842. +    nexen)
  843. +        # We don't have specific support for Nexgen yet, so just call it a Pentium
  844. +        basic_machine=i586-nexgen
  845. +        ;;
  846. +    pn)
  847. +        basic_machine=pn-gould
  848. +        ;;
  849. +    power)    basic_machine=rs6000-ibm
  850. +        ;;
  851. +    ppc)    basic_machine=powerpc-unknown
  852. +            ;;
  853. +    ppc-*)    basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  854. +        ;;
  855. +    ppcle | powerpclittle | ppc-le | powerpc-little)
  856. +        basic_machine=powerpcle-unknown
  857. +            ;;
  858. +    ppcle-* | powerpclittle-*)
  859. +        basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  860. +        ;;
  861. +    ps2)
  862. +        basic_machine=i386-ibm
  863. +        ;;
  864. +    rom68k)                        # CYGNUS LOCAL
  865. +        basic_machine=m68k-rom68k
  866. +        os=-coff
  867. +        ;;
  868. +    rm[46]00)
  869. +        basic_machine=mips-siemens
  870. +        ;;
  871. +    rtpc | rtpc-*)
  872. +        basic_machine=romp-ibm
  873. +        ;;
  874. +    sa29200)                    # CYGNUS LOCAL
  875. +        basic_machine=a29k-amd
  876. +        os=-udi
  877. +        ;;
  878. +    sequent)
  879. +        basic_machine=i386-sequent
  880. +        ;;
  881. +    sh)
  882. +        basic_machine=sh-hitachi
  883. +        os=-hms
  884. +        ;;
  885. +    sparclite-wrs)                    # CYGNUS LOCAL
  886. +        basic_machine=sparclite-wrs
  887. +        os=-vxworks
  888. +        ;;
  889. +    sps7)
  890. +        basic_machine=m68k-bull
  891. +        os=-sysv2
  892. +        ;;
  893. +    spur)
  894. +        basic_machine=spur-unknown
  895. +        ;;
  896. +    st2000)                        # CYGNUS LOCAL
  897. +        basic_machine=m68k-tandem
  898. +        ;;
  899. +    stratus)                    # CYGNUS LOCAL
  900. +        basic_machine=i860-stratus
  901. +        os=-sysv4
  902. +        ;;
  903. +    sun2)
  904. +        basic_machine=m68000-sun
  905. +        ;;
  906. +    sun2os3)
  907. +        basic_machine=m68000-sun
  908. +        os=-sunos3
  909. +        ;;
  910. +    sun2os4)
  911. +        basic_machine=m68000-sun
  912. +        os=-sunos4
  913. +        ;;
  914. +    sun3os3)
  915. +        basic_machine=m68k-sun
  916. +        os=-sunos3
  917. +        ;;
  918. +    sun3os4)
  919. +        basic_machine=m68k-sun
  920. +        os=-sunos4
  921. +        ;;
  922. +    sun4os3)
  923. +        basic_machine=sparc-sun
  924. +        os=-sunos3
  925. +        ;;
  926. +    sun4os4)
  927. +        basic_machine=sparc-sun
  928. +        os=-sunos4
  929. +        ;;
  930. +    sun4sol2)
  931. +        basic_machine=sparc-sun
  932. +        os=-solaris2
  933. +        ;;
  934. +    sun3 | sun3-*)
  935. +        basic_machine=m68k-sun
  936. +        ;;
  937. +    sun4)
  938. +        basic_machine=sparc-sun
  939. +        ;;
  940. +    sun386 | sun386i | roadrunner)
  941. +        basic_machine=i386-sun
  942. +        ;;
  943. +    symmetry)
  944. +        basic_machine=i386-sequent
  945. +        os=-dynix
  946. +        ;;
  947. +    tower | tower-32)
  948. +        basic_machine=m68k-ncr
  949. +        ;;
  950. +    udi29k)
  951. +        basic_machine=a29k-amd
  952. +        os=-udi
  953. +        ;;
  954. +    ultra3)
  955. +        basic_machine=a29k-nyu
  956. +        os=-sym1
  957. +        ;;
  958. +    v810 | necv810)                    # CYGNUS LOCAL
  959. +        basic_machine=v810-nec
  960. +        os=-none
  961. +        ;;
  962. +    vaxv)
  963. +        basic_machine=vax-dec
  964. +        os=-sysv
  965. +        ;;
  966. +    vms)
  967. +        basic_machine=vax-dec
  968. +        os=-vms
  969. +        ;;
  970. +    vxworks960)
  971. +        basic_machine=i960-wrs
  972. +        os=-vxworks
  973. +        ;;
  974. +    vxworks68)
  975. +        basic_machine=m68k-wrs
  976. +        os=-vxworks
  977. +        ;;
  978. +    vxworks29k)
  979. +        basic_machine=a29k-wrs
  980. +        os=-vxworks
  981. +        ;;
  982. +    w65*)                        # CYGNUS LOCAL
  983. +         basic_machine=w65-wdc
  984. +         os=-none
  985. +        ;;
  986. +    xmp)
  987. +        basic_machine=xmp-cray
  988. +        os=-unicos
  989. +        ;;
  990. +        xps | xps100)
  991. +        basic_machine=xps100-honeywell
  992. +        ;;
  993. +    z8k-*-coff)                    # CYGNUS LOCAL
  994. +        basic_machine=z8k-unknown
  995. +        os=-sim
  996. +        ;;
  997. +    none)
  998. +        basic_machine=none-none
  999. +        os=-none
  1000. +        ;;
  1001. +
  1002. +# Here we handle the default manufacturer of certain CPU types.  It is in
  1003. +# some cases the only manufacturer, in others, it is the most popular.
  1004. +    w89k)                        # CYGNUS LOCAL
  1005. +        basic_machine=hppa1.1-winbond
  1006. +        ;;
  1007. +    op50n)                        # CYGNUS LOCAL
  1008. +        basic_machine=hppa1.1-oki
  1009. +        ;;
  1010. +    op60c)                        # CYGNUS LOCAL
  1011. +        basic_machine=hppa1.1-oki
  1012. +        ;;
  1013. +    mips)
  1014. +        basic_machine=mips-mips
  1015. +        ;;
  1016. +    romp)
  1017. +        basic_machine=romp-ibm
  1018. +        ;;
  1019. +    rs6000)
  1020. +        basic_machine=rs6000-ibm
  1021. +        ;;
  1022. +    vax)
  1023. +        basic_machine=vax-dec
  1024. +        ;;
  1025. +    pdp11)
  1026. +        basic_machine=pdp11-dec
  1027. +        ;;
  1028. +    we32k)
  1029. +        basic_machine=we32k-att
  1030. +        ;;
  1031. +    sparc)
  1032. +        basic_machine=sparc-sun
  1033. +        ;;
  1034. +        cydra)
  1035. +        basic_machine=cydra-cydrome
  1036. +        ;;
  1037. +    orion)
  1038. +        basic_machine=orion-highlevel
  1039. +        ;;
  1040. +    orion105)
  1041. +        basic_machine=clipper-highlevel
  1042. +        ;;
  1043. +    mac | mpw | mac-mpw)                # CYGNUS LOCAL
  1044. +        basic_machine=m68k-apple
  1045. +        ;;
  1046. +    pmac | pmac-mpw)                # CYGNUS LOCAL
  1047. +        basic_machine=powerpc-apple
  1048. +        ;;
  1049. +    *)
  1050. +        echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  1051. +        exit 1
  1052. +        ;;
  1053. +esac
  1054. +
  1055. +# Here we canonicalize certain aliases for manufacturers.
  1056. +case $basic_machine in
  1057. +    *-digital*)
  1058. +        basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
  1059. +        ;;
  1060. +    *-commodore*)
  1061. +        basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
  1062. +        ;;
  1063. +    *)
  1064. +        ;;
  1065. +esac
  1066. +
  1067. +# Decode manufacturer-specific aliases for certain operating systems.
  1068. +
  1069. +if [ x"$os" != x"" ]
  1070. +then
  1071. +case $os in
  1072. +    # -solaris* is a basic system type, with this one exception.
  1073. +    -solaris1 | -solaris1.*)
  1074. +        os=`echo $os | sed -e 's|solaris1|sunos4|'`
  1075. +        ;;
  1076. +    -solaris)
  1077. +        os=-solaris2
  1078. +        ;;
  1079. +    -unixware* | svr4*)
  1080. +        os=-sysv4
  1081. +        ;;
  1082. +    -gnu/linux*)
  1083. +        os=`echo $os | sed -e 's|gnu/linux|linux|'`
  1084. +        ;;
  1085. +    # First accept the basic system types.
  1086. +    # The portable systems comes first.
  1087. +    # Each alternative MUST END IN A *, to match a version number.
  1088. +    # -sysv* is not here because it comes later, after sysvr4.
  1089. +    -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  1090. +          | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[3456]* \
  1091. +          | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  1092. +          | -amigaos* | -msdos* | -moss* | -newsos* | -unicos* | -aos* | -aof* \
  1093. +          | -nindy* | -mon960* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
  1094. +          | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
  1095. +          | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \
  1096. +          | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
  1097. +          | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  1098. +          | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  1099. +          | -cygwin32* | -pe* | -psos*)
  1100. +    # Remember, each alternative MUST END IN *, to match a version number.
  1101. +        ;;
  1102. +    # CYGNUS LOCAL
  1103. +    -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  1104. +          | -windows* | -osx | -abug |  -netware* | -proelf | -os9* \
  1105. +          | -macos* | -mpw* | -magic*)
  1106. +        ;;
  1107. +    -mac*)
  1108. +        os=`echo $os | sed -e 's|mac|macos|'`
  1109. +        ;;
  1110. +    # END CYGNUS LOCAL
  1111. +    -sunos5*)
  1112. +        os=`echo $os | sed -e 's|sunos5|solaris2|'`
  1113. +        ;;
  1114. +    -sunos6*)
  1115. +        os=`echo $os | sed -e 's|sunos6|solaris3|'`
  1116. +        ;;
  1117. +    -osfrose*)
  1118. +        os=-osfrose
  1119. +        ;;
  1120. +    -osf*)
  1121. +        os=-osf
  1122. +        ;;
  1123. +    -utek*)
  1124. +        os=-bsd
  1125. +        ;;
  1126. +    -dynix*)
  1127. +        os=-bsd
  1128. +        ;;
  1129. +    -acis*)
  1130. +        os=-aos
  1131. +        ;;
  1132. +    -386bsd)                    # CYGNUS LOCAL
  1133. +        os=-bsd
  1134. +        ;;
  1135. +    -ctix* | -uts*)
  1136. +        os=-sysv
  1137. +        ;;
  1138. +    -ns2 )
  1139. +            os=-nextstep2
  1140. +        ;;
  1141. +    # Preserve the version number of sinix5.
  1142. +    -sinix5.*)
  1143. +        os=`echo $os | sed -e 's|sinix|sysv|'`
  1144. +        ;;
  1145. +    -sinix*)
  1146. +        os=-sysv4
  1147. +        ;;
  1148. +    -triton*)
  1149. +        os=-sysv3
  1150. +        ;;
  1151. +    -oss*)
  1152. +        os=-sysv3
  1153. +        ;;
  1154. +    -svr4)
  1155. +        os=-sysv4
  1156. +        ;;
  1157. +    -svr3)
  1158. +        os=-sysv3
  1159. +        ;;
  1160. +    -sysvr4)
  1161. +        os=-sysv4
  1162. +        ;;
  1163. +    # This must come after -sysvr4.
  1164. +    -sysv*)
  1165. +        ;;
  1166. +    -ose*)                        # CYGNUS LOCAL
  1167. +        os=-ose
  1168. +        ;;
  1169. +    -es1800*)                    # CYGNUS LOCAL
  1170. +        os=-ose
  1171. +        ;;
  1172. +    -xenix)
  1173. +        os=-xenix
  1174. +        ;;
  1175. +    -none)
  1176. +        ;;
  1177. +    *)
  1178. +        # Get rid of the `-' at the beginning of $os.
  1179. +        os=`echo $os | sed 's/[^-]*-//'`
  1180. +        echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
  1181. +        exit 1
  1182. +        ;;
  1183. +esac
  1184. +else
  1185. +
  1186. +# Here we handle the default operating systems that come with various machines.
  1187. +# The value should be what the vendor currently ships out the door with their
  1188. +# machine or put another way, the most popular os provided with the machine.
  1189. +
  1190. +# Note that if you're going to try to match "-MANUFACTURER" here (say,
  1191. +# "-sun"), then you have to tell the case statement up towards the top
  1192. +# that MANUFACTURER isn't an operating system.  Otherwise, code above
  1193. +# will signal an error saying that MANUFACTURER isn't an operating
  1194. +# system, and we'll never get to this point.
  1195. +
  1196. +case $basic_machine in
  1197. +    *-acorn)
  1198. +        os=-riscix1.2
  1199. +        ;;
  1200. +    arm*-semi)
  1201. +        os=-aout
  1202. +        ;;
  1203. +        pdp11-*)
  1204. +        os=-none
  1205. +        ;;
  1206. +    *-dec | vax-*)
  1207. +        os=-ultrix4.2
  1208. +        ;;
  1209. +    m68*-apollo)
  1210. +        os=-domain
  1211. +        ;;
  1212. +    i386-sun)
  1213. +        os=-sunos4.0.2
  1214. +        ;;
  1215. +    m68000-sun)
  1216. +        os=-sunos3
  1217. +        # This also exists in the configure program, but was not the
  1218. +        # default.
  1219. +        # os=-sunos4
  1220. +        ;;
  1221. +    m68*-cisco)                    # CYGNUS LOCAL
  1222. +        os=-aout
  1223. +        ;;
  1224. +    mips*-cisco)                    # CYGNUS LOCAL
  1225. +        os=-elf
  1226. +        ;;
  1227. +    *-tti)    # must be before sparc entry or we get the wrong os.
  1228. +        os=-sysv3
  1229. +        ;;
  1230. +    sparc-* | *-sun)
  1231. +        os=-sunos4.1.1
  1232. +        ;;
  1233. +    *-ibm)
  1234. +        os=-aix
  1235. +        ;;
  1236. +    *-wec)                        # CYGNUS LOCAL
  1237. +        os=-proelf
  1238. +        ;;
  1239. +    *-winbond)                    # CYGNUS LOCAL
  1240. +        os=-proelf
  1241. +        ;;
  1242. +    *-oki)                        # CYGNUS LOCAL
  1243. +        os=-proelf
  1244. +        ;;
  1245. +    *-hp)
  1246. +        os=-hpux
  1247. +        ;;
  1248. +    *-hitachi)
  1249. +        os=-hiux
  1250. +        ;;
  1251. +    i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
  1252. +        os=-sysv
  1253. +        ;;
  1254. +    *-cbm)
  1255. +        os=-amigaos
  1256. +        ;;
  1257. +    *-dg)
  1258. +        os=-dgux
  1259. +        ;;
  1260. +    *-dolphin)
  1261. +        os=-sysv3
  1262. +        ;;
  1263. +    m68k-ccur)
  1264. +        os=-rtu
  1265. +        ;;
  1266. +    m88k-omron*)
  1267. +        os=-luna
  1268. +        ;;
  1269. +    *-next )
  1270. +        os=-nextstep
  1271. +        ;;
  1272. +    *-sequent)
  1273. +        os=-ptx
  1274. +        ;;
  1275. +    *-crds)
  1276. +        os=-unos
  1277. +        ;;
  1278. +    *-ns)
  1279. +        os=-genix
  1280. +        ;;
  1281. +    i370-*)
  1282. +        os=-mvs
  1283. +        ;;
  1284. +    *-next)
  1285. +        os=-nextstep3
  1286. +        ;;
  1287. +        *-gould)
  1288. +        os=-sysv
  1289. +        ;;
  1290. +        *-highlevel)
  1291. +        os=-bsd
  1292. +        ;;
  1293. +    *-encore)
  1294. +        os=-bsd
  1295. +        ;;
  1296. +        *-sgi)
  1297. +        os=-irix
  1298. +        ;;
  1299. +        *-siemens)
  1300. +        os=-sysv4
  1301. +        ;;
  1302. +    *-masscomp)
  1303. +        os=-rtu
  1304. +        ;;
  1305. +    *-rom68k)                    # CYGNUS LOCAL
  1306. +        os=-coff
  1307. +        ;;
  1308. +    *-*bug)                        # CYGNUS LOCAL
  1309. +        os=-coff
  1310. +        ;;
  1311. +    *-apple)                    # CYGNUS LOCAL
  1312. +        os=-macos
  1313. +        ;;
  1314. +    *)
  1315. +        os=-none
  1316. +        ;;
  1317. +esac
  1318. +fi
  1319. +
  1320. +# Here we handle the case where we know the os, and the CPU type, but not the
  1321. +# manufacturer.  We pick the logical manufacturer.
  1322. +vendor=unknown
  1323. +case $basic_machine in
  1324. +    *-unknown)
  1325. +        case $os in
  1326. +            -riscix*)
  1327. +                vendor=acorn
  1328. +                ;;
  1329. +            -sunos*)
  1330. +                vendor=sun
  1331. +                ;;
  1332. +            -bosx*)                # CYGNUS LOCAL
  1333. +                vendor=bull
  1334. +                ;;
  1335. +            -lynxos*)
  1336. +                vendor=lynx
  1337. +                ;;
  1338. +            -aix*)
  1339. +                vendor=ibm
  1340. +                ;;
  1341. +            -hpux*)
  1342. +                vendor=hp
  1343. +                ;;
  1344. +            -hiux*)
  1345. +                vendor=hitachi
  1346. +                ;;
  1347. +            -unos*)
  1348. +                vendor=crds
  1349. +                ;;
  1350. +            -dgux*)
  1351. +                vendor=dg
  1352. +                ;;
  1353. +            -luna*)
  1354. +                vendor=omron
  1355. +                ;;
  1356. +            -genix*)
  1357. +                vendor=ns
  1358. +                ;;
  1359. +            -mvs*)
  1360. +                vendor=ibm
  1361. +                ;;
  1362. +            -ptx*)
  1363. +                vendor=sequent
  1364. +                ;;
  1365. +            -vxworks*)
  1366. +                vendor=wrs
  1367. +                ;;
  1368. +            -aux*)
  1369. +                vendor=apple
  1370. +                ;;
  1371. +            -hms*)                # CYGNUS LOCAL
  1372. +                vendor=hitachi
  1373. +                ;;
  1374. +            -mpw* | -macos*)        # CYGNUS LOCAL
  1375. +                vendor=apple
  1376. +                ;;
  1377. +        esac
  1378. +        basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  1379. +        ;;
  1380. +esac
  1381. +
  1382. +echo $basic_machine$os
  1383. diff -rup --new-file baseline/contrib/zlib/configure amiga/contrib/zlib/configure
  1384. --- baseline/contrib/zlib/configure    Tue May 21 10:32:19 1996
  1385. +++ amiga/contrib/zlib/configure    Mon Sep 30 22:35:21 1996
  1386. @@ -1,86 +1,1201 @@
  1387. -#!/bin/sh
  1388. -# configure script for zlib. This script is needed only if
  1389. -# you wish to build a shared library and your system supports them,
  1390. -# of if you need special compiler, flags or install directory.
  1391. -# Otherwise, you can just use directly "make test; make install"
  1392. +#! /bin/sh
  1393. +
  1394. +# Guess values for system-dependent variables and create Makefiles.
  1395. +# Generated automatically using autoconf version 2.10 
  1396. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  1397.  #
  1398. -# To impose specific compiler or flags or install directory, use for example:
  1399. -#    prefix=$HOME CC=cc CFLAGS="-O4" ./configure
  1400. -# or for csh/tcsh users:
  1401. -#    (setenv prefix $HOME; setenv CC cc; setenv CFLAGS "-O4"; ./configure)
  1402. -# LDSHARED is the command to be used to create a shared library
  1403. -
  1404. -LIBS=libz.a
  1405. -VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`
  1406. -AR=${AR-"ar rc"}
  1407. -RANLIB=${RANLIB-"ranlib"}
  1408. -prefix=${prefix-/usr/local}
  1409. -exec_prefix=${exec_prefix-$prefix}
  1410. -
  1411. -test -z "$CC" && echo Checking for gcc...
  1412. -test=ztest$$
  1413. -cat > $test.c <<EOF
  1414. -int hello() { printf("hello\n"); }
  1415. -EOF
  1416. -if test -z "$CC" && (gcc -c -O3 $test.c) 2>/dev/null; then
  1417. -  CC=gcc
  1418. -  SFLAGS=${CFLAGS-"-fPIC -O3"}
  1419. -  CFLAGS=${CFLAGS-"-O3"}
  1420. -  LDSHARED=${LDSHARED-"gcc -shared"}
  1421. -else
  1422. -  # find system name and corresponding cc options
  1423. -  CC=${CC-cc}
  1424. -  case `(uname -sr || echo unknown) 2>/dev/null` in
  1425. -  SunOS\ 5*) SFLAGS=${CFLAGS-"-fast -xcg89 -KPIC -R."}
  1426. -             CFLAGS=${CFLAGS-"-fast -xcg89"}
  1427. -         LDSHARED=${LDSHARED-"cc -G"};;
  1428. -  SunOS\ 4*) SFLAGS=${CFLAGS-"-O2 -PIC"}
  1429. -         CFLAGS=${CFLAGS-"-O2"}
  1430. -         LDSHARED=${LDSHARED-"ld"};;
  1431. -  IRIX*)     SFLAGS=${CFLAGS-"-ansi -O2 -rpath ."}
  1432. -         CFLAGS=${CFLAGS-"-ansi -O2"}
  1433. -         LDSHARED=${LDSHARED-"cc -shared"};;
  1434. -  QNX*)      SFLAGS=${CFLAGS-"-4 -O"}
  1435. -             CFLAGS=${CFLAGS-"-4 -O"}
  1436. -         LDSHARED=${LDSHARED-"cc"}
  1437. -             RANLIB=${RANLIB-"true"}
  1438. -             AR="cc -A";;
  1439. -  SCO_SV\ 3.2*) SFLAGS=${CFLAGS-"-O3 -dy -KPIC "}
  1440. -         CFLAGS=${CFLAGS-"-O3"}
  1441. -         LDSHARED=${LDSHARED-"cc -dy -KPIC -G"};;
  1442. -  HP-UX*)    SFLAGS=${CFLAGS-"-O +z"}
  1443. -         CFLAGS=${CFLAGS-"-O"}
  1444. -         LDSHARED=${LDSHARED-"ld -b"}
  1445. -         SHAREDLIBS='libz.sl';;
  1446. -  # send working options for other systems to gzip@prep.ai.mit.edu
  1447. -  *)         SFLAGS=${CFLAGS-"-O"}
  1448. -         CFLAGS=${CFLAGS-"-O"}
  1449. -         LDSHARED=${LDSHARED-"cc -shared"};;
  1450. -  esac
  1451. -fi
  1452. -
  1453. -echo Checking for shared library support...
  1454. -# we must test in two steps (cc then ld), required at least on SunOS 4.x
  1455. -if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" &&
  1456. -   test "`($LDSHARED -o $test.so $test.o) 2>&1`" = ""; then
  1457. -  CFLAGS="$SFLAGS"
  1458. -  LIBS='libz.so.$(VER)'
  1459. -  echo Building shared library libz.so.$VER with $CC.
  1460. -else
  1461. -  LDSHARED="$CC"
  1462. -  echo Building static library $LIBS version $VER with $CC.
  1463. -fi
  1464. -rm -f $test.[co] $test.so
  1465. -
  1466. -# udpate Makefile
  1467. -sed < Makefile.in "
  1468. -/^CC *=/s/=.*/=$CC/
  1469. -/^CFLAGS *=/s/=.*/=$CFLAGS/
  1470. -/^LDSHARED *=/s/=.*/=$LDSHARED/
  1471. -/^LIBS *=/s,=.*,=$LIBS,
  1472. -/^AR *=/s/=.*/=$AR/
  1473. -/^RANLIB *=/s,=.*,=$RANLIB,
  1474. -/^VER *=/s/=.*/=$VER/
  1475. -/^prefix *=/s,=.*,=$prefix,
  1476. -/^exec_prefix *=/s,=.*,=$exec_prefix,
  1477. -" > Makefile
  1478. +# This configure script is free software; the Free Software Foundation
  1479. +# gives unlimited permission to copy, distribute and modify it.
  1480. +
  1481. +# Defaults:
  1482. +ac_help=
  1483. +ac_default_prefix=/usr/local
  1484. +# Any additions from configure.in:
  1485. +
  1486. +# Initialize some variables set by options.
  1487. +# The variables have the same names as the options, with
  1488. +# dashes changed to underlines.
  1489. +build=NONE
  1490. +cache_file=./config.cache
  1491. +exec_prefix=NONE
  1492. +host=NONE
  1493. +no_create=
  1494. +nonopt=NONE
  1495. +no_recursion=
  1496. +prefix=NONE
  1497. +program_prefix=NONE
  1498. +program_suffix=NONE
  1499. +program_transform_name=s,x,x,
  1500. +silent=
  1501. +site=
  1502. +srcdir=
  1503. +target=NONE
  1504. +verbose=
  1505. +x_includes=NONE
  1506. +x_libraries=NONE
  1507. +bindir='${exec_prefix}/bin'
  1508. +sbindir='${exec_prefix}/sbin'
  1509. +libexecdir='${exec_prefix}/libexec'
  1510. +datadir='${prefix}/share'
  1511. +sysconfdir='${prefix}/etc'
  1512. +sharedstatedir='${prefix}/com'
  1513. +localstatedir='${prefix}/var'
  1514. +libdir='${exec_prefix}/lib'
  1515. +includedir='${prefix}/include'
  1516. +oldincludedir='/usr/include'
  1517. +infodir='${prefix}/info'
  1518. +guidedir='${prefix}/guide'
  1519. +psdir='${prefix}/ps'
  1520. +dvidir='${prefix}/dvi'
  1521. +mandir='${prefix}/man'
  1522. +
  1523. +# Initialize some other variables.
  1524. +subdirs=
  1525. +MFLAGS= MAKEFLAGS=
  1526. +
  1527. +ac_prev=
  1528. +for ac_option
  1529. +do
  1530. +
  1531. +  # If the previous option needs an argument, assign it.
  1532. +  if test -n "$ac_prev"; then
  1533. +    eval "$ac_prev=\$ac_option"
  1534. +    ac_prev=
  1535. +    continue
  1536. +  fi
  1537. +
  1538. +  case "$ac_option" in
  1539. +  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  1540. +  *) ac_optarg= ;;
  1541. +  esac
  1542. +
  1543. +  # Accept the important Cygnus configure options, so we can diagnose typos.
  1544. +
  1545. +  case "$ac_option" in
  1546. +
  1547. +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1548. +    ac_prev=bindir ;;
  1549. +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1550. +    bindir="$ac_optarg" ;;
  1551. +
  1552. +  -build | --build | --buil | --bui | --bu)
  1553. +    ac_prev=build ;;
  1554. +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1555. +    build="$ac_optarg" ;;
  1556. +
  1557. +  -cache-file | --cache-file | --cache-fil | --cache-fi \
  1558. +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1559. +    ac_prev=cache_file ;;
  1560. +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1561. +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1562. +    cache_file="$ac_optarg" ;;
  1563. +
  1564. +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  1565. +    ac_prev=datadir ;;
  1566. +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  1567. +  | --da=*)
  1568. +    datadir="$ac_optarg" ;;
  1569. +
  1570. +  -disable-* | --disable-*)
  1571. +    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  1572. +    # Reject names that are not valid shell variable names.
  1573. +    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  1574. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  1575. +    fi
  1576. +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  1577. +    eval "enable_${ac_feature}=no" ;;
  1578. +
  1579. +  -enable-* | --enable-*)
  1580. +    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  1581. +    # Reject names that are not valid shell variable names.
  1582. +    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  1583. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  1584. +    fi
  1585. +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  1586. +    case "$ac_option" in
  1587. +      *=*) ;;
  1588. +      *) ac_optarg=yes ;;
  1589. +    esac
  1590. +    eval "enable_${ac_feature}='$ac_optarg'" ;;
  1591. +
  1592. +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1593. +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1594. +  | --exec | --exe | --ex)
  1595. +    ac_prev=exec_prefix ;;
  1596. +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1597. +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1598. +  | --exec=* | --exe=* | --ex=*)
  1599. +    exec_prefix="$ac_optarg" ;;
  1600. +
  1601. +  -gas | --gas | --ga | --g)
  1602. +    # Obsolete; use --with-gas.
  1603. +    with_gas=yes ;;
  1604. +
  1605. +  -help | --help | --hel | --he)
  1606. +    # Omit some internal or obsolete options to make the list less imposing.
  1607. +    # This message is too long to be a string in the A/UX 3.1 sh.
  1608. +    cat << EOF
  1609. +Usage: configure [options] [host]
  1610. +Options: [defaults in brackets after descriptions]
  1611. +Configuration:
  1612. +  --cache-file=FILE       cache test results in FILE
  1613. +  --help                  print this message
  1614. +  --no-create             do not create output files
  1615. +  --quiet, --silent       do not print \`checking...' messages
  1616. +  --version               print the version of autoconf that created configure
  1617. +Directory and file names:
  1618. +  --prefix=PREFIX         install architecture-independent files in PREFIX
  1619. +                          [$ac_default_prefix]
  1620. +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1621. +                          [same as prefix]
  1622. +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  1623. +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  1624. +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  1625. +  --datadir=DIR           read-only architecture-independent data in DIR
  1626. +                          [PREFIX/share]
  1627. +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  1628. +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  1629. +                          [PREFIX/com]
  1630. +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  1631. +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  1632. +  --includedir=DIR        C header files in DIR [PREFIX/include]
  1633. +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  1634. +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  1635. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  1636. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  1637. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  1638. +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  1639. +  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  1640. +  --program-prefix=PREFIX prepend PREFIX to installed program names
  1641. +  --program-suffix=SUFFIX append SUFFIX to installed program names
  1642. +  --program-transform-name=PROGRAM
  1643. +                          run sed PROGRAM on installed program names
  1644. +EOF
  1645. +    cat << EOF
  1646. +Host type:
  1647. +  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  1648. +  --host=HOST             configure for HOST [guessed]
  1649. +  --target=TARGET         configure for TARGET [TARGET=HOST]
  1650. +Features and packages:
  1651. +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1652. +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1653. +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1654. +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1655. +  --x-includes=DIR        X include files are in DIR
  1656. +  --x-libraries=DIR       X library files are in DIR
  1657. +EOF
  1658. +    if test -n "$ac_help"; then
  1659. +      echo "--enable and --with options recognized:$ac_help"
  1660. +    fi
  1661. +    exit 0 ;;
  1662. +
  1663. +  -host | --host | --hos | --ho)
  1664. +    ac_prev=host ;;
  1665. +  -host=* | --host=* | --hos=* | --ho=*)
  1666. +    host="$ac_optarg" ;;
  1667. +
  1668. +  -includedir | --includedir | --includedi | --included | --include \
  1669. +  | --includ | --inclu | --incl | --inc)
  1670. +    ac_prev=includedir ;;
  1671. +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1672. +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  1673. +    includedir="$ac_optarg" ;;
  1674. +
  1675. +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  1676. +    ac_prev=infodir ;;
  1677. +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1678. +    infodir="$ac_optarg" ;;
  1679. +
  1680. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  1681. +   ac_prev=guidedir ;;
  1682. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  1683. +
  1684. + -psdir | --psdir | --psdi | --psd | --ps)
  1685. +   ac_prev=psdir ;;
  1686. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  1687. +
  1688. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1689. +   ac_prev=dvidir ;;
  1690. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  1691. +
  1692. +  -libdir | --libdir | --libdi | --libd)
  1693. +    ac_prev=libdir ;;
  1694. +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1695. +    libdir="$ac_optarg" ;;
  1696. +
  1697. +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1698. +  | --libexe | --libex | --libe)
  1699. +    ac_prev=libexecdir ;;
  1700. +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1701. +  | --libexe=* | --libex=* | --libe=*)
  1702. +    libexecdir="$ac_optarg" ;;
  1703. +
  1704. +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  1705. +  | --localstate | --localstat | --localsta | --localst \
  1706. +  | --locals | --local | --loca | --loc | --lo)
  1707. +    ac_prev=localstatedir ;;
  1708. +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1709. +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  1710. +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  1711. +    localstatedir="$ac_optarg" ;;
  1712. +
  1713. +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1714. +    ac_prev=mandir ;;
  1715. +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1716. +    mandir="$ac_optarg" ;;
  1717. +
  1718. +  -nfp | --nfp | --nf)
  1719. +    # Obsolete; use --without-fp.
  1720. +    with_fp=no ;;
  1721. +
  1722. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1723. +  | --no-cr | --no-c)
  1724. +    no_create=yes ;;
  1725. +
  1726. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1727. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1728. +    no_recursion=yes ;;
  1729. +
  1730. +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1731. +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1732. +  | --oldin | --oldi | --old | --ol | --o)
  1733. +    ac_prev=oldincludedir ;;
  1734. +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1735. +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1736. +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1737. +    oldincludedir="$ac_optarg" ;;
  1738. +
  1739. +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1740. +    ac_prev=prefix ;;
  1741. +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1742. +    prefix="$ac_optarg" ;;
  1743. +
  1744. +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1745. +  | --program-pre | --program-pr | --program-p)
  1746. +    ac_prev=program_prefix ;;
  1747. +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1748. +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1749. +    program_prefix="$ac_optarg" ;;
  1750. +
  1751. +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1752. +  | --program-suf | --program-su | --program-s)
  1753. +    ac_prev=program_suffix ;;
  1754. +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1755. +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1756. +    program_suffix="$ac_optarg" ;;
  1757. +
  1758. +  -program-transform-name | --program-transform-name \
  1759. +  | --program-transform-nam | --program-transform-na \
  1760. +  | --program-transform-n | --program-transform- \
  1761. +  | --program-transform | --program-transfor \
  1762. +  | --program-transfo | --program-transf \
  1763. +  | --program-trans | --program-tran \
  1764. +  | --progr-tra | --program-tr | --program-t)
  1765. +    ac_prev=program_transform_name ;;
  1766. +  -program-transform-name=* | --program-transform-name=* \
  1767. +  | --program-transform-nam=* | --program-transform-na=* \
  1768. +  | --program-transform-n=* | --program-transform-=* \
  1769. +  | --program-transform=* | --program-transfor=* \
  1770. +  | --program-transfo=* | --program-transf=* \
  1771. +  | --program-trans=* | --program-tran=* \
  1772. +  | --progr-tra=* | --program-tr=* | --program-t=*)
  1773. +    program_transform_name="$ac_optarg" ;;
  1774. +
  1775. +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1776. +  | -silent | --silent | --silen | --sile | --sil)
  1777. +    silent=yes ;;
  1778. +
  1779. +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1780. +    ac_prev=sbindir ;;
  1781. +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1782. +  | --sbi=* | --sb=*)
  1783. +    sbindir="$ac_optarg" ;;
  1784. +
  1785. +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1786. +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1787. +  | --sharedst | --shareds | --shared | --share | --shar \
  1788. +  | --sha | --sh)
  1789. +    ac_prev=sharedstatedir ;;
  1790. +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1791. +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1792. +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1793. +  | --sha=* | --sh=*)
  1794. +    sharedstatedir="$ac_optarg" ;;
  1795. +
  1796. +  -site | --site | --sit)
  1797. +    ac_prev=site ;;
  1798. +  -site=* | --site=* | --sit=*)
  1799. +    site="$ac_optarg" ;;
  1800. +
  1801. +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1802. +    ac_prev=srcdir ;;
  1803. +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1804. +    srcdir="$ac_optarg" ;;
  1805. +
  1806. +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1807. +  | --syscon | --sysco | --sysc | --sys | --sy)
  1808. +    ac_prev=sysconfdir ;;
  1809. +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1810. +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1811. +    sysconfdir="$ac_optarg" ;;
  1812. +
  1813. +  -target | --target | --targe | --targ | --tar | --ta | --t)
  1814. +    ac_prev=target ;;
  1815. +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1816. +    target="$ac_optarg" ;;
  1817. +
  1818. +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1819. +    verbose=yes ;;
  1820. +
  1821. +  -version | --version | --versio | --versi | --vers)
  1822. +    echo "configure generated by autoconf version 2.10"
  1823. +    exit 0 ;;
  1824. +
  1825. +  -with-* | --with-*)
  1826. +    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  1827. +    # Reject names that are not valid shell variable names.
  1828. +    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  1829. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  1830. +    fi
  1831. +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  1832. +    case "$ac_option" in
  1833. +      *=*) ;;
  1834. +      *) ac_optarg=yes ;;
  1835. +    esac
  1836. +    eval "with_${ac_package}='$ac_optarg'" ;;
  1837. +
  1838. +  -without-* | --without-*)
  1839. +    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  1840. +    # Reject names that are not valid shell variable names.
  1841. +    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  1842. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  1843. +    fi
  1844. +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  1845. +    eval "with_${ac_package}=no" ;;
  1846. +
  1847. +  --x)
  1848. +    # Obsolete; use --with-x.
  1849. +    with_x=yes ;;
  1850. +
  1851. +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1852. +  | --x-incl | --x-inc | --x-in | --x-i)
  1853. +    ac_prev=x_includes ;;
  1854. +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1855. +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1856. +    x_includes="$ac_optarg" ;;
  1857. +
  1858. +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1859. +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1860. +    ac_prev=x_libraries ;;
  1861. +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1862. +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1863. +    x_libraries="$ac_optarg" ;;
  1864. +
  1865. +  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  1866. +    ;;
  1867. +
  1868. +  *)
  1869. +    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  1870. +      echo "configure: warning: $ac_option: invalid host type" 1>&2
  1871. +    fi
  1872. +    if test "x$nonopt" != xNONE; then
  1873. +      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  1874. +    fi
  1875. +    nonopt="$ac_option"
  1876. +    ;;
  1877. +
  1878. +  esac
  1879. +done
  1880. +
  1881. +if test -n "$ac_prev"; then
  1882. +  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  1883. +fi
  1884. +
  1885. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1886. +
  1887. +# File descriptor usage:
  1888. +# 0 standard input
  1889. +# 1 file creation
  1890. +# 2 errors and warnings
  1891. +# 3 some systems may open it to /dev/tty
  1892. +# 4 used on the Kubota Titan
  1893. +# 6 checking for... messages and results
  1894. +# 5 compiler messages saved in config.log
  1895. +if test "$silent" = yes; then
  1896. +  exec 6>/dev/null
  1897. +else
  1898. +  exec 6>&1
  1899. +fi
  1900. +exec 5>./config.log
  1901. +
  1902. +echo "\
  1903. +This file contains any messages produced by compilers while
  1904. +running configure, to aid debugging if configure makes a mistake.
  1905. +" 1>&5
  1906. +
  1907. +# Strip out --no-create and --no-recursion so they do not pile up.
  1908. +# Also quote any args containing shell metacharacters.
  1909. +ac_configure_args=
  1910. +for ac_arg
  1911. +do
  1912. +  case "$ac_arg" in
  1913. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1914. +  | --no-cr | --no-c) ;;
  1915. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1916. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  1917. +  *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  1918. +  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1919. +  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  1920. +  esac
  1921. +done
  1922. +
  1923. +# NLS nuisances.
  1924. +# Only set LANG and LC_ALL to C if already set.
  1925. +# These must not be set unconditionally because not all systems understand
  1926. +# e.g. LANG=C (notably SCO).
  1927. +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  1928. +if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  1929. +
  1930. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  1931. +rm -rf conftest* confdefs.h
  1932. +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1933. +echo > confdefs.h
  1934. +
  1935. +# A filename unique to this package, relative to the directory that
  1936. +# configure is in, which we can look for to find out if srcdir is correct.
  1937. +ac_unique_file=zlib.h
  1938. +
  1939. +# Find the source files, if location was not specified.
  1940. +if test -z "$srcdir"; then
  1941. +  ac_srcdir_defaulted=yes
  1942. +  # Try the directory containing this script, then its parent.
  1943. +  ac_prog=$0
  1944. +  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  1945. +  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  1946. +  srcdir=$ac_confdir
  1947. +  if test ! -r $srcdir/$ac_unique_file; then
  1948. +    srcdir=..
  1949. +  fi
  1950. +else
  1951. +  ac_srcdir_defaulted=no
  1952. +fi
  1953. +if test ! -r $srcdir/$ac_unique_file; then
  1954. +  if test "$ac_srcdir_defaulted" = yes; then
  1955. +    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  1956. +  else
  1957. +    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  1958. +  fi
  1959. +fi
  1960. +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  1961. +
  1962. +# Prefer explicitly selected file to automatically selected ones.
  1963. +if test -z "$CONFIG_SITE"; then
  1964. +  if test "x$prefix" != xNONE; then
  1965. +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1966. +  else
  1967. +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1968. +  fi
  1969. +fi
  1970. +for ac_site_file in $CONFIG_SITE; do
  1971. +  if test -r "$ac_site_file"; then
  1972. +    echo "loading site script $ac_site_file"
  1973. +    . "$ac_site_file"
  1974. +  fi
  1975. +done
  1976. +
  1977. +if test -r "$cache_file"; then
  1978. +  echo "loading cache $cache_file"
  1979. +  . $cache_file
  1980. +else
  1981. +  echo "creating cache $cache_file"
  1982. +  > $cache_file
  1983. +fi
  1984. +
  1985. +ac_ext=c
  1986. +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1987. +ac_cpp='$CPP $CPPFLAGS'
  1988. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1989. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1990. +
  1991. +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  1992. +  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  1993. +  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  1994. +    ac_n= ac_c='
  1995. +' ac_t='    '
  1996. +  else
  1997. +    ac_n=-n ac_c= ac_t=
  1998. +  fi
  1999. +else
  2000. +  ac_n= ac_c='\c' ac_t=
  2001. +fi
  2002. +
  2003. +
  2004. +
  2005. +# Extract the first word of "gcc", so it can be a program name with args.
  2006. +set dummy gcc; ac_word=$2
  2007. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2008. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2009. +  echo $ac_n "(cached) $ac_c" 1>&6
  2010. +else
  2011. +  if test -n "$CC"; then
  2012. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  2013. +else
  2014. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2015. +  for ac_dir in $PATH; do
  2016. +    test -z "$ac_dir" && ac_dir=.
  2017. +    if test -f $ac_dir/$ac_word; then
  2018. +      ac_cv_prog_CC="gcc"
  2019. +      break
  2020. +    fi
  2021. +  done
  2022. +  IFS="$ac_save_ifs"
  2023. +fi
  2024. +fi
  2025. +CC="$ac_cv_prog_CC"
  2026. +if test -n "$CC"; then
  2027. +  echo "$ac_t""$CC" 1>&6
  2028. +else
  2029. +  echo "$ac_t""no" 1>&6
  2030. +fi
  2031. +
  2032. +if test -z "$CC"; then
  2033. +  # Extract the first word of "cc", so it can be a program name with args.
  2034. +set dummy cc; ac_word=$2
  2035. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2036. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2037. +  echo $ac_n "(cached) $ac_c" 1>&6
  2038. +else
  2039. +  if test -n "$CC"; then
  2040. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  2041. +else
  2042. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2043. +  ac_prog_rejected=no
  2044. +  for ac_dir in $PATH; do
  2045. +    test -z "$ac_dir" && ac_dir=.
  2046. +    if test -f $ac_dir/$ac_word; then
  2047. +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  2048. +        ac_prog_rejected=yes
  2049. +    continue
  2050. +      fi
  2051. +      ac_cv_prog_CC="cc"
  2052. +      break
  2053. +    fi
  2054. +  done
  2055. +  IFS="$ac_save_ifs"
  2056. +if test $ac_prog_rejected = yes; then
  2057. +  # We found a bogon in the path, so make sure we never use it.
  2058. +  set dummy $ac_cv_prog_CC
  2059. +  shift
  2060. +  if test $# -gt 0; then
  2061. +    # We chose a different compiler from the bogus one.
  2062. +    # However, it has the same basename, so the bogon will be chosen
  2063. +    # first if we set CC to just the basename; use the full file name.
  2064. +    shift
  2065. +    set dummy "$ac_dir/$ac_word" "$@"
  2066. +    shift
  2067. +    ac_cv_prog_CC="$@"
  2068. +  fi
  2069. +fi
  2070. +fi
  2071. +fi
  2072. +CC="$ac_cv_prog_CC"
  2073. +if test -n "$CC"; then
  2074. +  echo "$ac_t""$CC" 1>&6
  2075. +else
  2076. +  echo "$ac_t""no" 1>&6
  2077. +fi
  2078. +
  2079. +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  2080. +fi
  2081. +
  2082. +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  2083. +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  2084. +  echo $ac_n "(cached) $ac_c" 1>&6
  2085. +else
  2086. +  cat > conftest.c <<EOF
  2087. +#ifdef __GNUC__
  2088. +  yes;
  2089. +#endif
  2090. +EOF
  2091. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  2092. +  ac_cv_prog_gcc=yes
  2093. +else
  2094. +  ac_cv_prog_gcc=no
  2095. +fi
  2096. +fi
  2097. +
  2098. +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  2099. +if test $ac_cv_prog_gcc = yes; then
  2100. +  GCC=yes
  2101. +  if test "${CFLAGS+set}" != set; then
  2102. +    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  2103. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  2104. +  echo $ac_n "(cached) $ac_c" 1>&6
  2105. +else
  2106. +  echo 'void f(){}' > conftest.c
  2107. +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  2108. +  ac_cv_prog_gcc_g=yes
  2109. +else
  2110. +  ac_cv_prog_gcc_g=no
  2111. +fi
  2112. +rm -f conftest*
  2113. +
  2114. +fi
  2115. +
  2116. +echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  2117. +    if test $ac_cv_prog_gcc_g = yes; then
  2118. +      CFLAGS="-g -O2"
  2119. +    else
  2120. +      CFLAGS="-O2"
  2121. +    fi
  2122. +  fi
  2123. +else
  2124. +  GCC=
  2125. +  test "${CFLAGS+set}" = set || CFLAGS="-g"
  2126. +fi
  2127. +
  2128. +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2129. +# On Suns, sometimes $CPP names a directory.
  2130. +if test -n "$CPP" && test -d "$CPP"; then
  2131. +  CPP=
  2132. +fi
  2133. +if test -z "$CPP"; then
  2134. +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  2135. +  echo $ac_n "(cached) $ac_c" 1>&6
  2136. +else
  2137. +    # This must be in double quotes, not single quotes, because CPP may get
  2138. +  # substituted into the Makefile and "${CC-cc}" will confuse make.
  2139. +  CPP="${CC-cc} -E"
  2140. +  # On the NeXT, cc -E runs the code through the compiler's parser,
  2141. +  # not just through cpp.
  2142. +  cat > conftest.$ac_ext <<EOF
  2143. +#line 673 "configure"
  2144. +#include "confdefs.h"
  2145. +#include <assert.h>
  2146. +Syntax Error
  2147. +EOF
  2148. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2149. +{ (eval echo configure:679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2150. +ac_err=`grep -v '^ *+' conftest.out`
  2151. +if test -z "$ac_err"; then
  2152. +  :
  2153. +else
  2154. +  echo "$ac_err" >&5
  2155. +  rm -rf conftest*
  2156. +  CPP="${CC-cc} -E -traditional-cpp"
  2157. +  cat > conftest.$ac_ext <<EOF
  2158. +#line 688 "configure"
  2159. +#include "confdefs.h"
  2160. +#include <assert.h>
  2161. +Syntax Error
  2162. +EOF
  2163. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2164. +{ (eval echo configure:694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2165. +ac_err=`grep -v '^ *+' conftest.out`
  2166. +if test -z "$ac_err"; then
  2167. +  :
  2168. +else
  2169. +  echo "$ac_err" >&5
  2170. +  rm -rf conftest*
  2171. +  CPP=/lib/cpp
  2172. +fi
  2173. +rm -f conftest*
  2174. +fi
  2175. +rm -f conftest*
  2176. +  ac_cv_prog_CPP="$CPP"
  2177. +fi
  2178. +  CPP="$ac_cv_prog_CPP"
  2179. +else
  2180. +  ac_cv_prog_CPP="$CPP"
  2181. +fi
  2182. +echo "$ac_t""$CPP" 1>&6
  2183. +
  2184. +if test $ac_cv_prog_gcc = yes; then
  2185. +    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  2186. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  2187. +  echo $ac_n "(cached) $ac_c" 1>&6
  2188. +else
  2189. +    ac_pattern="Autoconf.*'x'"
  2190. +  cat > conftest.$ac_ext <<EOF
  2191. +#line 721 "configure"
  2192. +#include "confdefs.h"
  2193. +#include <sgtty.h>
  2194. +Autoconf TIOCGETP
  2195. +EOF
  2196. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2197. +  egrep "$ac_pattern" >/dev/null 2>&1; then
  2198. +  rm -rf conftest*
  2199. +  ac_cv_prog_gcc_traditional=yes
  2200. +else
  2201. +  rm -rf conftest*
  2202. +  ac_cv_prog_gcc_traditional=no
  2203. +fi
  2204. +rm -f conftest*
  2205. +
  2206. +
  2207. +  if test $ac_cv_prog_gcc_traditional = no; then
  2208. +    cat > conftest.$ac_ext <<EOF
  2209. +#line 739 "configure"
  2210. +#include "confdefs.h"
  2211. +#include <termio.h>
  2212. +Autoconf TCGETA
  2213. +EOF
  2214. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2215. +  egrep "$ac_pattern" >/dev/null 2>&1; then
  2216. +  rm -rf conftest*
  2217. +  ac_cv_prog_gcc_traditional=yes
  2218. +fi
  2219. +rm -f conftest*
  2220. +
  2221. +  fi
  2222. +fi
  2223. +
  2224. +echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  2225. +  if test $ac_cv_prog_gcc_traditional = yes; then
  2226. +    CC="$CC -traditional"
  2227. +  fi
  2228. +fi
  2229. +
  2230. +ac_aux_dir=
  2231. +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  2232. +  if test -f $ac_dir/install-sh; then
  2233. +    ac_aux_dir=$ac_dir
  2234. +    ac_install_sh="$ac_aux_dir/install-sh -c"
  2235. +    break
  2236. +  elif test -f $ac_dir/install.sh; then
  2237. +    ac_aux_dir=$ac_dir
  2238. +    ac_install_sh="$ac_aux_dir/install.sh -c"
  2239. +    break
  2240. +  fi
  2241. +done
  2242. +if test -z "$ac_aux_dir"; then
  2243. +  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  2244. +fi
  2245. +ac_config_guess=$ac_aux_dir/config.guess
  2246. +ac_config_sub=$ac_aux_dir/config.sub
  2247. +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  2248. +
  2249. +# Find a good install program.  We prefer a C program (faster),
  2250. +# so one script is as good as another.  But avoid the broken or
  2251. +# incompatible versions:
  2252. +# SysV /etc/install, /usr/sbin/install
  2253. +# SunOS /usr/etc/install
  2254. +# IRIX /sbin/install
  2255. +# AIX /bin/install
  2256. +# AmigaOS /c/install
  2257. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2258. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2259. +# ./install, which can be erroneously created by make from ./install.sh.
  2260. +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  2261. +if test -z "$INSTALL"; then
  2262. +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  2263. +  echo $ac_n "(cached) $ac_c" 1>&6
  2264. +else
  2265. +    IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2266. +  for ac_dir in $PATH; do
  2267. +    # Account for people who put trailing slashes in PATH elements.
  2268. +    case "$ac_dir/" in
  2269. +    /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  2270. +    *)
  2271. +      # OSF1 and SCO ODT 3.0 have their own names for install.
  2272. +      for ac_prog in ginstall installbsd scoinst install; do
  2273. +        if test -f $ac_dir/$ac_prog; then
  2274. +      if test $ac_prog = install &&
  2275. +            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  2276. +        # AIX install.  It has an incompatible calling convention.
  2277. +        # OSF/1 installbsd also uses dspmsg, but is usable.
  2278. +        :
  2279. +      else
  2280. +        ac_cv_path_install="$ac_dir/$ac_prog -c"
  2281. +        break 2
  2282. +      fi
  2283. +    fi
  2284. +      done
  2285. +      ;;
  2286. +    esac
  2287. +  done
  2288. +  IFS="$ac_save_ifs"
  2289. +
  2290. +fi
  2291. +  if test "${ac_cv_path_install+set}" = set; then
  2292. +    INSTALL="$ac_cv_path_install"
  2293. +  else
  2294. +    # As a last resort, use the slow shell script.  We don't cache a
  2295. +    # path for INSTALL within a source directory, because that will
  2296. +    # break other packages using the cache if that directory is
  2297. +    # removed, or if the path is relative.
  2298. +    INSTALL="$ac_install_sh"
  2299. +  fi
  2300. +fi
  2301. +echo "$ac_t""$INSTALL" 1>&6
  2302. +
  2303. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2304. +# It thinks the first close brace ends the variable substitution.
  2305. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2306. +
  2307. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2308. +
  2309. +
  2310. +
  2311. +# Make sure we can run config.sub.
  2312. +if $ac_config_sub sun4 >/dev/null 2>&1; then :
  2313. +else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  2314. +fi
  2315. +
  2316. +echo $ac_n "checking host system type""... $ac_c" 1>&6
  2317. +
  2318. +host_alias=$host
  2319. +case "$host_alias" in
  2320. +NONE)
  2321. +  case $nonopt in
  2322. +  NONE)
  2323. +    if host_alias=`$ac_config_guess`; then :
  2324. +    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  2325. +    fi ;;
  2326. +  *) host_alias=$nonopt ;;
  2327. +  esac ;;
  2328. +esac
  2329. +
  2330. +host=`$ac_config_sub $host_alias`
  2331. +host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  2332. +host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  2333. +host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  2334. +echo "$ac_t""$host" 1>&6
  2335. +
  2336. +echo $ac_n "checking build system type""... $ac_c" 1>&6
  2337. +
  2338. +build_alias=$build
  2339. +case "$build_alias" in
  2340. +NONE)
  2341. +  case $nonopt in
  2342. +  NONE) build_alias=$host_alias ;;
  2343. +  *) build_alias=$nonopt ;;
  2344. +  esac ;;
  2345. +esac
  2346. +
  2347. +build=`$ac_config_sub $build_alias`
  2348. +build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  2349. +build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  2350. +build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  2351. +echo "$ac_t""$build" 1>&6
  2352. +
  2353. +if test $host != $build; then
  2354. +  ac_tool_prefix=${host_alias}-
  2355. +else
  2356. +  ac_tool_prefix=
  2357. +fi
  2358. +
  2359. +# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  2360. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  2361. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2362. +if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  2363. +  echo $ac_n "(cached) $ac_c" 1>&6
  2364. +else
  2365. +  if test -n "$AR"; then
  2366. +  ac_cv_prog_AR="$AR" # Let the user override the test.
  2367. +else
  2368. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2369. +  for ac_dir in $PATH; do
  2370. +    test -z "$ac_dir" && ac_dir=.
  2371. +    if test -f $ac_dir/$ac_word; then
  2372. +      ac_cv_prog_AR="${ac_tool_prefix}ar"
  2373. +      break
  2374. +    fi
  2375. +  done
  2376. +  IFS="$ac_save_ifs"
  2377. +  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
  2378. +fi
  2379. +fi
  2380. +AR="$ac_cv_prog_AR"
  2381. +if test -n "$AR"; then
  2382. +  echo "$ac_t""$AR" 1>&6
  2383. +else
  2384. +  echo "$ac_t""no" 1>&6
  2385. +fi
  2386. +
  2387. +
  2388. +
  2389. +# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2390. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2391. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2392. +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2393. +  echo $ac_n "(cached) $ac_c" 1>&6
  2394. +else
  2395. +  if test -n "$RANLIB"; then
  2396. +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2397. +else
  2398. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2399. +  for ac_dir in $PATH; do
  2400. +    test -z "$ac_dir" && ac_dir=.
  2401. +    if test -f $ac_dir/$ac_word; then
  2402. +      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2403. +      break
  2404. +    fi
  2405. +  done
  2406. +  IFS="$ac_save_ifs"
  2407. +fi
  2408. +fi
  2409. +RANLIB="$ac_cv_prog_RANLIB"
  2410. +if test -n "$RANLIB"; then
  2411. +  echo "$ac_t""$RANLIB" 1>&6
  2412. +else
  2413. +  echo "$ac_t""no" 1>&6
  2414. +fi
  2415. +
  2416. +
  2417. +if test -z "$ac_cv_prog_RANLIB"; then
  2418. +if test -n "$ac_tool_prefix"; then
  2419. +  # Extract the first word of "ranlib", so it can be a program name with args.
  2420. +set dummy ranlib; ac_word=$2
  2421. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2422. +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2423. +  echo $ac_n "(cached) $ac_c" 1>&6
  2424. +else
  2425. +  if test -n "$RANLIB"; then
  2426. +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2427. +else
  2428. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2429. +  for ac_dir in $PATH; do
  2430. +    test -z "$ac_dir" && ac_dir=.
  2431. +    if test -f $ac_dir/$ac_word; then
  2432. +      ac_cv_prog_RANLIB="ranlib"
  2433. +      break
  2434. +    fi
  2435. +  done
  2436. +  IFS="$ac_save_ifs"
  2437. +  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2438. +fi
  2439. +fi
  2440. +RANLIB="$ac_cv_prog_RANLIB"
  2441. +if test -n "$RANLIB"; then
  2442. +  echo "$ac_t""$RANLIB" 1>&6
  2443. +else
  2444. +  echo "$ac_t""no" 1>&6
  2445. +fi
  2446. +
  2447. +else
  2448. +  RANLIB=":"
  2449. +fi
  2450. +fi
  2451. +
  2452. +
  2453. +trap '' 1 2 15
  2454. +cat > confcache <<\EOF
  2455. +# This file is a shell script that caches the results of configure
  2456. +# tests run on this system so they can be shared between configure
  2457. +# scripts and configure runs.  It is not useful on other systems.
  2458. +# If it contains results you don't want to keep, you may remove or edit it.
  2459. +#
  2460. +# By default, configure uses ./config.cache as the cache file,
  2461. +# creating it if it does not exist already.  You can give configure
  2462. +# the --cache-file=FILE option to use a different cache file; that is
  2463. +# what configure does when it calls configure scripts in
  2464. +# subdirectories, so they share the cache.
  2465. +# Giving --cache-file=/dev/null disables caching, for debugging configure.
  2466. +# config.status only pays attention to the cache file if you give it the
  2467. +# --recheck option to rerun configure.
  2468. +#
  2469. +EOF
  2470. +# Ultrix sh set writes to stderr and can't be redirected directly,
  2471. +# and sets the high bit in the cache file unless we assign to the vars.
  2472. +(set) 2>&1 |
  2473. +  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2474. +  >> confcache
  2475. +if cmp -s $cache_file confcache; then
  2476. +  :
  2477. +else
  2478. +  if test -w $cache_file; then
  2479. +    echo "updating cache $cache_file"
  2480. +    cat confcache > $cache_file
  2481. +  else
  2482. +    echo "not updating unwritable cache $cache_file"
  2483. +  fi
  2484. +fi
  2485. +rm -f confcache
  2486. +
  2487. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2488. +
  2489. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2490. +# Let make expand exec_prefix.
  2491. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2492. +
  2493. +# Any assignment to VPATH causes Sun make to only execute
  2494. +# the first set of double-colon rules, so remove it if not needed.
  2495. +# If there is a colon in the path, we need to keep it.
  2496. +if test "x$srcdir" = x.; then
  2497. +  ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2498. +fi
  2499. +
  2500. +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2501. +
  2502. +# Transform confdefs.h into DEFS.
  2503. +# Protect against shell expansion while executing Makefile rules.
  2504. +# Protect against Makefile macro expansion.
  2505. +cat > conftest.defs <<\EOF
  2506. +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  2507. +s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  2508. +s%\[%\\&%g
  2509. +s%\]%\\&%g
  2510. +s%\$%$$%g
  2511. +EOF
  2512. +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2513. +rm -f conftest.defs
  2514. +
  2515. +
  2516. +# Without the "./", some shells look in PATH for config.status.
  2517. +: ${CONFIG_STATUS=./config.status}
  2518. +
  2519. +echo creating $CONFIG_STATUS
  2520. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  2521. +# being executed, so just move it out of the way instead.
  2522. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2523. +cat > $CONFIG_STATUS <<EOF
  2524. +#! /bin/sh
  2525. +# Generated automatically by configure.
  2526. +# Run this file to recreate the current configuration.
  2527. +# This directory was configured as follows,
  2528. +# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2529. +#
  2530. +# $0 $ac_configure_args
  2531. +#
  2532. +# Compiler output produced by configure, useful for debugging
  2533. +# configure, is in ./config.log if it exists.
  2534. +
  2535. +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2536. +for ac_option
  2537. +do
  2538. +  case "\$ac_option" in
  2539. +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2540. +    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2541. +    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2542. +  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2543. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  2544. +    exit 0 ;;
  2545. +  -help | --help | --hel | --he | --h)
  2546. +    echo "\$ac_cs_usage"; exit 0 ;;
  2547. +  *) echo "\$ac_cs_usage"; exit 1 ;;
  2548. +  esac
  2549. +done
  2550. +
  2551. +ac_given_srcdir=$srcdir
  2552. +ac_given_INSTALL="$INSTALL"
  2553. +
  2554. +trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2555. +EOF
  2556. +cat >> $CONFIG_STATUS <<EOF
  2557. +
  2558. +# Protect against being on the right side of a sed subst in config.status.
  2559. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2560. + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2561. +$ac_vpsub
  2562. +$extrasub
  2563. +s%@CFLAGS@%$CFLAGS%g
  2564. +s%@CPPFLAGS@%$CPPFLAGS%g
  2565. +s%@CXXFLAGS@%$CXXFLAGS%g
  2566. +s%@DEFS@%$DEFS%g
  2567. +s%@LDFLAGS@%$LDFLAGS%g
  2568. +s%@LIBS@%$LIBS%g
  2569. +s%@exec_prefix@%$exec_prefix%g
  2570. +s%@prefix@%$prefix%g
  2571. +s%@program_transform_name@%$program_transform_name%g
  2572. +s%@bindir@%$bindir%g
  2573. +s%@sbindir@%$sbindir%g
  2574. +s%@libexecdir@%$libexecdir%g
  2575. +s%@datadir@%$datadir%g
  2576. +s%@sysconfdir@%$sysconfdir%g
  2577. +s%@sharedstatedir@%$sharedstatedir%g
  2578. +s%@localstatedir@%$localstatedir%g
  2579. +s%@libdir@%$libdir%g
  2580. +s%@includedir@%$includedir%g
  2581. +s%@oldincludedir@%$oldincludedir%g
  2582. +s%@infodir@%$infodir%g
  2583. +s%@guidedir@%$guidedir%g
  2584. +s%@psdir@%$psdir%g
  2585. +s%@dvidir@%$dvidir%g
  2586. +s%@mandir@%$mandir%g
  2587. +s%@CC@%$CC%g
  2588. +s%@CPP@%$CPP%g
  2589. +s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2590. +s%@INSTALL_DATA@%$INSTALL_DATA%g
  2591. +s%@host@%$host%g
  2592. +s%@host_alias@%$host_alias%g
  2593. +s%@host_cpu@%$host_cpu%g
  2594. +s%@host_vendor@%$host_vendor%g
  2595. +s%@host_os@%$host_os%g
  2596. +s%@build@%$build%g
  2597. +s%@build_alias@%$build_alias%g
  2598. +s%@build_cpu@%$build_cpu%g
  2599. +s%@build_vendor@%$build_vendor%g
  2600. +s%@build_os@%$build_os%g
  2601. +s%@AR@%$AR%g
  2602. +s%@RANLIB@%$RANLIB%g
  2603. +
  2604. +CEOF
  2605. +EOF
  2606. +cat >> $CONFIG_STATUS <<EOF
  2607. +
  2608. +CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2609. +EOF
  2610. +cat >> $CONFIG_STATUS <<\EOF
  2611. +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2612. +  # Support "outfile[:infile]", defaulting infile="outfile.in".
  2613. +  case "$ac_file" in
  2614. +  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2615. +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2616. +  *) ac_file_in="${ac_file}.in" ;;
  2617. +  esac
  2618. +
  2619. +  # Adjust relative srcdir, etc. for subdirectories.
  2620. +
  2621. +  # Remove last slash and all that follows it.  Not all systems have dirname.
  2622. +  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2623. +  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2624. +    # The file is in a subdirectory.
  2625. +    test ! -d "$ac_dir" && mkdir "$ac_dir"
  2626. +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2627. +    # A "../" for each directory in $ac_dir_suffix.
  2628. +    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2629. +  else
  2630. +    ac_dir_suffix= ac_dots=
  2631. +  fi
  2632. +
  2633. +  case "$ac_given_srcdir" in
  2634. +  .)  srcdir=.
  2635. +      if test -z "$ac_dots"; then top_srcdir=.
  2636. +      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2637. +  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2638. +  *) # Relative path.
  2639. +    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2640. +    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2641. +  esac
  2642. +
  2643. +  case "$ac_given_INSTALL" in
  2644. +  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2645. +  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2646. +  esac
  2647. +  echo creating "$ac_file"
  2648. +  rm -f "$ac_file"
  2649. +  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2650. +  case "$ac_file" in
  2651. +  *Makefile*) ac_comsub="1i\\
  2652. +# $configure_input" ;;
  2653. +  *) ac_comsub= ;;
  2654. +  esac
  2655. +  sed -e "$ac_comsub
  2656. +s%@configure_input@%$configure_input%g
  2657. +s%@srcdir@%$srcdir%g
  2658. +s%@top_srcdir@%$top_srcdir%g
  2659. +s%@INSTALL@%$INSTALL%g
  2660. +" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2661. +fi; done
  2662. +rm -f conftest.subs
  2663. +
  2664. +
  2665. +
  2666. +exit 0
  2667. +EOF
  2668. +chmod +x $CONFIG_STATUS
  2669. +rm -f CONFIG.STATUS.old
  2670. +rm -fr confdefs* $ac_clean_files
  2671. +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2672. +
  2673. diff -rup --new-file baseline/contrib/zlib/configure.in amiga/contrib/zlib/configure.in
  2674. --- baseline/contrib/zlib/configure.in    Wed Dec 31 17:00:00 1969
  2675. +++ amiga/contrib/zlib/configure.in    Sat Sep 28 00:00:00 1996
  2676. @@ -0,0 +1,11 @@
  2677. +dnl Process this file with autoconf to produce a configure script.
  2678. +AC_INIT(zlib.h)
  2679. +
  2680. +AC_PROG_CC
  2681. +AC_GCC_TRADITIONAL
  2682. +AC_PROG_INSTALL
  2683. +
  2684. +AC_CHECK_TOOL(AR, ar)
  2685. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  2686. +
  2687. +AC_OUTPUT(Makefile)
  2688. diff -rup --new-file baseline/contrib/zlib/install.sh amiga/contrib/zlib/install.sh
  2689. --- baseline/contrib/zlib/install.sh    Wed Dec 31 17:00:00 1969
  2690. +++ amiga/contrib/zlib/install.sh    Sat Sep 28 00:00:00 1996
  2691. @@ -0,0 +1,119 @@
  2692. +#!/bin/sh
  2693. +
  2694. +#
  2695. +# install - install a program, script, or datafile
  2696. +# This comes from X11R5; it is not part of GNU.
  2697. +#
  2698. +# $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $
  2699. +#
  2700. +# This script is compatible with the BSD install script, but was written
  2701. +# from scratch.
  2702. +#
  2703. +
  2704. +
  2705. +# set DOITPROG to echo to test this script
  2706. +
  2707. +# Don't use :- since 4.3BSD and earlier shells don't like it.
  2708. +doit="${DOITPROG-}"
  2709. +
  2710. +
  2711. +# put in absolute paths if you don't have them in your path; or use env. vars.
  2712. +
  2713. +mvprog="${MVPROG-mv}"
  2714. +cpprog="${CPPROG-cp}"
  2715. +chmodprog="${CHMODPROG-chmod}"
  2716. +chownprog="${CHOWNPROG-chown}"
  2717. +chgrpprog="${CHGRPPROG-chgrp}"
  2718. +stripprog="${STRIPPROG-strip}"
  2719. +rmprog="${RMPROG-rm}"
  2720. +
  2721. +instcmd="$mvprog"
  2722. +chmodcmd=""
  2723. +chowncmd=""
  2724. +chgrpcmd=""
  2725. +stripcmd=""
  2726. +rmcmd="$rmprog -f"
  2727. +mvcmd="$mvprog"
  2728. +src=""
  2729. +dst=""
  2730. +
  2731. +while [ x"$1" != x ]; do
  2732. +    case $1 in
  2733. +    -c) instcmd="$cpprog"
  2734. +        shift
  2735. +        continue;;
  2736. +
  2737. +    -m) chmodcmd="$chmodprog $2"
  2738. +        shift
  2739. +        shift
  2740. +        continue;;
  2741. +
  2742. +    -o) chowncmd="$chownprog $2"
  2743. +        shift
  2744. +        shift
  2745. +        continue;;
  2746. +
  2747. +    -g) chgrpcmd="$chgrpprog $2"
  2748. +        shift
  2749. +        shift
  2750. +        continue;;
  2751. +
  2752. +    -s) stripcmd="$stripprog"
  2753. +        shift
  2754. +        continue;;
  2755. +
  2756. +    *)  if [ x"$src" = x ]
  2757. +        then
  2758. +        src=$1
  2759. +        else
  2760. +        dst=$1
  2761. +        fi
  2762. +        shift
  2763. +        continue;;
  2764. +    esac
  2765. +done
  2766. +
  2767. +if [ x"$src" = x ]
  2768. +then
  2769. +    echo "install:  no input file specified"
  2770. +    exit 1
  2771. +fi
  2772. +
  2773. +if [ x"$dst" = x ]
  2774. +then
  2775. +    echo "install:  no destination specified"
  2776. +    exit 1
  2777. +fi
  2778. +
  2779. +
  2780. +# If destination is a directory, append the input filename; if your system
  2781. +# does not like double slashes in filenames, you may need to add some logic
  2782. +
  2783. +if [ -d $dst ]
  2784. +then
  2785. +    dst="$dst"/`basename $src`
  2786. +fi
  2787. +
  2788. +# Make a temp file name in the proper directory.
  2789. +
  2790. +dstdir=`dirname $dst`
  2791. +dsttmp=$dstdir/#inst.$$#
  2792. +
  2793. +# Move or copy the file name to the temp name
  2794. +
  2795. +$doit $instcmd $src $dsttmp
  2796. +
  2797. +# and set any options; do chmod last to preserve setuid bits
  2798. +
  2799. +if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; fi
  2800. +if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; fi
  2801. +if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; fi
  2802. +if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; fi
  2803. +
  2804. +# Now rename the file to the real destination.
  2805. +
  2806. +$doit $rmcmd $dst
  2807. +$doit $mvcmd $dsttmp $dst
  2808. +
  2809. +
  2810. +exit 0
  2811. diff -rup --new-file baseline/contrib/zlib/manifests/bin amiga/contrib/zlib/manifests/bin
  2812. --- baseline/contrib/zlib/manifests/bin    Wed Dec 31 17:00:00 1969
  2813. +++ amiga/contrib/zlib/manifests/bin    Sat Sep 28 00:00:00 1996
  2814. @@ -0,0 +1,3 @@
  2815. +include/zconf.h
  2816. +include/zlib.h
  2817. +lib/libz.a
  2818. diff -rup --new-file baseline/contrib/zlib/manifests/src amiga/contrib/zlib/manifests/src
  2819. --- baseline/contrib/zlib/manifests/src    Wed Dec 31 17:00:00 1969
  2820. +++ amiga/contrib/zlib/manifests/src    Mon Sep 30 13:15:30 1996
  2821. @@ -0,0 +1,49 @@
  2822. +contrib/zlib/ChangeLog
  2823. +contrib/zlib/INDEX
  2824. +contrib/zlib/Make_vms.com
  2825. +contrib/zlib/Makefile.b32
  2826. +contrib/zlib/Makefile.bor
  2827. +contrib/zlib/Makefile.dj2
  2828. +contrib/zlib/Makefile.in
  2829. +contrib/zlib/Makefile.msc
  2830. +contrib/zlib/Makefile.riscos
  2831. +contrib/zlib/Makefile.sas
  2832. +contrib/zlib/Makefile.tc
  2833. +contrib/zlib/Makefile.wat
  2834. +contrib/zlib/Product-Info
  2835. +contrib/zlib/README
  2836. +contrib/zlib/adler32.c
  2837. +contrib/zlib/algorithm.doc
  2838. +contrib/zlib/compress.c
  2839. +contrib/zlib/config.sub
  2840. +contrib/zlib/configure
  2841. +contrib/zlib/configure.in
  2842. +contrib/zlib/crc32.c
  2843. +contrib/zlib/deflate.c
  2844. +contrib/zlib/deflate.h
  2845. +contrib/zlib/descrip.mms
  2846. +contrib/zlib/example.c
  2847. +contrib/zlib/gzio.c
  2848. +contrib/zlib/infblock.c
  2849. +contrib/zlib/infblock.h
  2850. +contrib/zlib/infcodes.c
  2851. +contrib/zlib/infcodes.h
  2852. +contrib/zlib/inffast.c
  2853. +contrib/zlib/inffast.h
  2854. +contrib/zlib/inflate.c
  2855. +contrib/zlib/inftrees.c
  2856. +contrib/zlib/inftrees.h
  2857. +contrib/zlib/infutil.c
  2858. +contrib/zlib/infutil.h
  2859. +contrib/zlib/install.sh
  2860. +contrib/zlib/manifests/bin
  2861. +contrib/zlib/manifests/src
  2862. +contrib/zlib/minigzip.c
  2863. +contrib/zlib/trees.c
  2864. +contrib/zlib/uncompr.c
  2865. +contrib/zlib/zconf.h
  2866. +contrib/zlib/zlib.def
  2867. +contrib/zlib/zlib.h
  2868. +contrib/zlib/zlib.rc
  2869. +contrib/zlib/zutil.c
  2870. +contrib/zlib/zutil.h
  2871.