home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / libm-5.4-diffs.gz / libm-5.4-diffs
Text File  |  1996-10-13  |  110KB  |  3,837 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/bsd/libm/Makefile amiga/bsd/libm/Makefile
  12. --- baseline/bsd/libm/Makefile    Thu Sep 23 16:45:57 1993
  13. +++ amiga/bsd/libm/Makefile    Wed Dec 31 17:00:00 1969
  14. @@ -1,136 +0,0 @@
  15. -#    @(#)Makefile    5.7.1.1 (Berkeley) 5/7/91
  16. -#
  17. -# ieee        - for most IEEE machines, we hope.
  18. -# mc68881    - the, ahem, mc68881.
  19. -# national    - for those ieee machines whose floating point implementation
  20. -#          has similar byte ordering as the NATIONAL 32016 with 32081.
  21. -# i386        - i387 NPX, currently the same as "national"
  22. -# tahoe        - for the tahoe double format.
  23. -# vax        - for the vax D_floating format
  24. -
  25. -# Missing: erf.c, j0.c, j1.c, jn.c, lgamma.c
  26. -
  27. -LIB=    m
  28. -CFLAGS+=-I${.CURDIR}/common_source
  29. -
  30. -.if (${MACHINE} == "ieee")
  31. -
  32. -HARDWARE=${MACHINE}
  33. -.PATH:    ${.CURDIR}/common_source ${.CURDIR}/common ${.CURDIR}/ieee
  34. -# common_source
  35. -SRCS+=    acosh.c asincos.c asinh.c atan.c atanh.c cosh.c exp.c \
  36. -    exp__E.c expm1.c floor.c fmod.c log.c \
  37. -    log10.c log1p.c log__L.c pow.c sinh.c tanh.c
  38. -# common
  39. -SRCS+=    atan2.c sincos.c tan.c
  40. -# ieee
  41. -SRCS+=    cabs.c cbrt.c support.c
  42. -
  43. -.elif (${MACHINE} == "hp300")
  44. -
  45. -HARDWARE=mc68881
  46. -.PATH:    ${.CURDIR}/mc68881 ${.CURDIR}/common_source ${.CURDIR}/ieee
  47. -# common_source
  48. -SRCS+=    acosh.c asinh.c exp__E.c fmod.c log__L.c \
  49. -    pow.c
  50. -# mc68881
  51. -SRCS+=    asincos.s atan.s atan2.c atanh.s cosh.s exp.s expm1.s floor.s \
  52. -    log.s log10.s log1p.s sincos.s sinh.s sqrt.s support.s tan.s tanh.s
  53. -# ieee
  54. -SRCS+=    cabs.c cbrt.c
  55. -
  56. -.elif (${MACHINE} == "i386")
  57. -
  58. -HARDWARE=i387
  59. -.PATH:    ${.CURDIR}/common_source ${.CURDIR}/common \
  60. -    ${.CURDIR}/ieee
  61. -CFLAGS+= -Dnational
  62. -# common_source
  63. -SRCS+=    acosh.c asincos.c asinh.c atan.c atanh.c cosh.c exp.c \
  64. -    exp__E.c expm1.c floor.c fmod.c log.c \
  65. -    log10.c log1p.c log__L.c pow.c sinh.c tanh.c
  66. -# common
  67. -SRCS+=    atan2.c sincos.c tan.c
  68. -# ieee
  69. -SRCS+=    cabs.c cbrt.c support.c
  70. -
  71. -.elif (${MACHINE} == "national")
  72. -
  73. -HARDWARE=${MACHINE}
  74. -.PATH:    ${.CURDIR}/common_source ${.CURDIR}/common ${.CURDIR}/national \
  75. -.elif (${MACHINE} == "national")
  76. -
  77. -HARDWARE=${MACHINE}
  78. -.PATH:    ${.CURDIR}/common_source ${.CURDIR}/common ${.CURDIR}/national \
  79. -    ${.CURDIR}/ieee
  80. -# common_source
  81. -SRCS+=    acosh.c asincos.c asinh.c atan.c atanh.c cosh.c exp.c \
  82. -    exp__E.c expm1.c floor.c fmod.c log.c \
  83. -    log10.c log1p.c log__L.c pow.c sinh.c tanh.c
  84. -# common
  85. -SRCS+=    atan2.c sincos.c tan.c
  86. -# national
  87. -SRCS+=    sqrt.s support.s
  88. -# ieee
  89. -SRCS+=    cabs.c cbrt.c
  90. -
  91. -.elif (${MACHINE} == "tahoe")
  92. -
  93. -HARDWARE=${MACHINE}
  94. -.PATH:    ${.CURDIR}/common_source ${.CURDIR}/common ${.CURDIR}/tahoe \
  95. -# common_source
  96. -SRCS+=    acosh.c asincos.c asinh.c atan.c atanh.c cosh.c exp.c \
  97. -    exp__E.c expm1.c floor.c fmod.c log.c \
  98. -    log10.c log1p.c log__L.c pow.c sinh.c tanh.c
  99. -# common
  100. -SRCS+=    atan2.c sincos.c tan.c
  101. -# tahoe
  102. -SRCS+=    cabs.s cbrt.s sqrt.s support.s infnan.s
  103. -
  104. -.elif (${MACHINE} == "vax")
  105. -
  106. -HARDWARE=${MACHINE}
  107. -.PATH:    ${.CURDIR}/common_source ${.CURDIR}/vax
  108. -# common_source
  109. -SRCS+=    acosh.c asincos.c asinh.c atan.c atanh.c cosh.c exp.c \
  110. -    exp__E.c expm1.c floor.c fmod.c log.c \
  111. -    log10.c log1p.c log__L.c pow.c sinh.c tanh.c
  112. -# vax
  113. -SRCS+=    atan2.s cabs.s cbrt.s sqrt.s sincos.s tan.s argred.s support.s \
  114. -    infnan.s
  115. -
  116. -.endif
  117. -
  118. -MAN3+=    acos.0 acosh.0 asin.0 asinh.0 atan.0 atan2.0 atanh.0 ceil.0 \
  119. -    cos.0 cosh.0 erf.0 exp.0 fabs.0 floor.0 fmod.0 hypot.0 ieee.0 \
  120. -    infnan.0 j0.0 lgamma.0 math.0 rint.0 sin.0 sinh.0 sqrt.0 \
  121. -    tan.0 tanh.0
  122. -
  123. -MLINKS+=erf.3 erfc.3
  124. -MLINKS+=exp.3 expm1.3 exp.3 log.3 exp.3 log10.3 exp.3 log1p.3 exp.3 pow.3
  125. -MLINKS+=hypot.3 cabs.3
  126. -MLINKS+=ieee.3 copysign.3 ieee.3 drem.3 ieee.3 finite.3 ieee.3 logb.3 \
  127. -    ieee.3 scalb.3
  128. -MLINKS+=j0.3 j1.3 j0.3 jn.3 j0.3 y0.3 j0.3 y1.3 j0.3 yn.3
  129. -MLINKS+=lgamma.3 gamma.3
  130. -
  131. -# can't use the standard mkdep, because there are some .s files that
  132. -# are using '#' as a comment indicator and cpp thinks it's an undefined
  133. -# control.
  134. -
  135. -depend: .depend
  136. -.depend: ${SRCS}
  137. -    mkdep ${CFLAGS:M-[ID]*} ${.ALLSRC:M*.c}
  138. -
  139. -.include <bsd.lib.mk>
  140. -
  141. -.s.o:
  142. -    ${AS} -o ${.TARGET} ${.IMPSRC}
  143. -    @${LD} -x -r ${.TARGET}
  144. -    @mv a.out ${.TARGET}
  145. -
  146. -.s.po:
  147. -    sed -f ${.CURDIR}/${HARDWARE}/mcount.sed ${.IMPSRC} | \
  148. -        ${AS} -o ${.TARGET}
  149. -    @${LD} -X -r ${.TARGET}
  150. -    @mv a.out ${.TARGET}
  151. diff -rup --new-file baseline/bsd/libm/Makefile.in amiga/bsd/libm/Makefile.in
  152. --- baseline/bsd/libm/Makefile.in    Wed Dec 31 17:00:00 1969
  153. +++ amiga/bsd/libm/Makefile.in    Sat Oct  5 17:18:41 1996
  154. @@ -0,0 +1,118 @@
  155. +srcdir =    @srcdir@
  156. +VPATH =        @srcdir@
  157. +
  158. +prefix =    @prefix@
  159. +exec_prefix =    @exec_prefix@
  160. +
  161. +libdir =    $(exec_prefix)/lib
  162. +
  163. +INSTALL =    @INSTALL@
  164. +INSTALL_DATA =    @INSTALL_DATA@
  165. +
  166. +CC =        @CC@
  167. +AR =        @AR@
  168. +AR_FLAGS =    cr
  169. +RM =        rm
  170. +RANLIB =    @RANLIB@
  171. +DEFS =        @DEFS@
  172. +CFLAGS =    @CFLAGS@
  173. +
  174. +INCLUDES =    -I$(srcdir)/common_source
  175. +OUR_CFLAGS =    $(DEFS) $(INCLUDES) $(CFLAGS)
  176. +
  177. +OBJS1 =        acosh.o asincos.o asinh.o atan.o atanh.o cosh.o exp.o \
  178. +        exp__E.o expm1.o floor.o fmod.o log.o \
  179. +        log10.o log1p.o log__L.o pow.o sinh.o tanh.o
  180. +
  181. +OBJS2 =        atan2.o sincos.o tan.o
  182. +
  183. +OBJS3 =        cabs.o cbrt.o hypot.o support.o z_abs.o
  184. +
  185. +OBJS =        $(OBJS1) $(OBJS2) $(OBJS3)
  186. +
  187. +all :        libm.a
  188. +
  189. +libm.a :    $(OBJS)
  190. +        $(AR) $(AR_FLAGS) $@ $(OBJS)
  191. +        $(RANLIB) $@
  192. +
  193. +acosh.o :    $(srcdir)/common_source/acosh.c
  194. +        $(CC) -c $(OUR_CFLAGS) $?
  195. +
  196. +asincos.o :    $(srcdir)/common_source/asincos.c
  197. +        $(CC) -c $(OUR_CFLAGS) $?
  198. +
  199. +asinh.o :    $(srcdir)/common_source/asinh.c
  200. +        $(CC) -c $(OUR_CFLAGS) $?
  201. +
  202. +atan.o :    $(srcdir)/common_source/atan.c
  203. +        $(CC) -c $(OUR_CFLAGS) $?
  204. +
  205. +atanh.o :    $(srcdir)/common_source/atanh.c
  206. +        $(CC) -c $(OUR_CFLAGS) $?
  207. +
  208. +cosh.o :    $(srcdir)/common_source/cosh.c
  209. +        $(CC) -c $(OUR_CFLAGS) $?
  210. +
  211. +exp.o :        $(srcdir)/common_source/exp.c
  212. +        $(CC) -c $(OUR_CFLAGS) $?
  213. +
  214. +exp__E.o :    $(srcdir)/common_source/exp__E.c
  215. +        $(CC) -c $(OUR_CFLAGS) $?
  216. +
  217. +expm1.o :    $(srcdir)/common_source/expm1.c
  218. +        $(CC) -c $(OUR_CFLAGS) $?
  219. +
  220. +floor.o :    $(srcdir)/common_source/floor.c
  221. +        $(CC) -c $(OUR_CFLAGS) $?
  222. +
  223. +fmod.o :    $(srcdir)/common_source/fmod.c
  224. +        $(CC) -c $(OUR_CFLAGS) $?
  225. +
  226. +log.o :        $(srcdir)/common_source/log.c
  227. +        $(CC) -c $(OUR_CFLAGS) $?
  228. +
  229. +log10.o :    $(srcdir)/common_source/log10.c
  230. +        $(CC) -c $(OUR_CFLAGS) $?
  231. +
  232. +log1p.o :    $(srcdir)/common_source/log1p.c
  233. +        $(CC) -c $(OUR_CFLAGS) $?
  234. +
  235. +log__L.o :    $(srcdir)/common_source/log__L.c
  236. +        $(CC) -c $(OUR_CFLAGS) $?
  237. +
  238. +pow.o :        $(srcdir)/common_source/pow.c
  239. +        $(CC) -c $(OUR_CFLAGS) $?
  240. +
  241. +sinh.o :    $(srcdir)/common_source/sinh.c
  242. +        $(CC) -c $(OUR_CFLAGS) $?
  243. +
  244. +tanh.o :    $(srcdir)/common_source/tanh.c
  245. +        $(CC) -c $(OUR_CFLAGS) $?
  246. +
  247. +atan2.o :    $(srcdir)/common/atan2.c
  248. +        $(CC) -c $(OUR_CFLAGS) $?
  249. +
  250. +sincos.o :    $(srcdir)/common/sincos.c
  251. +        $(CC) -c $(OUR_CFLAGS) $?
  252. +
  253. +tan.o :        $(srcdir)/common/tan.c
  254. +        $(CC) -c $(OUR_CFLAGS) $?
  255. +
  256. +cabs.o :    $(srcdir)/ieee/cabs.c
  257. +        $(CC) -c $(OUR_CFLAGS) $?
  258. +
  259. +cbrt.o :    $(srcdir)/ieee/cbrt.c
  260. +        $(CC) -c $(OUR_CFLAGS) $?
  261. +
  262. +hypot.o :    $(srcdir)/ieee/hypot.c
  263. +        $(CC) -c $(OUR_CFLAGS) $?
  264. +
  265. +support.o :    $(srcdir)/ieee/support.c
  266. +        $(CC) -c $(OUR_CFLAGS) $?
  267. +
  268. +z_abs.o :    $(srcdir)/ieee/z_abs.c
  269. +        $(CC) -c $(OUR_CFLAGS) $?
  270. +
  271. +install :    libm.a
  272. +        $(INSTALL_DATA) $? $(libdir)/$?
  273. diff -rup --new-file baseline/bsd/libm/Product-Info amiga/bsd/libm/Product-Info
  274. --- baseline/bsd/libm/Product-Info    Wed Dec 31 17:00:00 1969
  275. +++ amiga/bsd/libm/Product-Info    Sat Oct  5 16:26:29 1996
  276. @@ -0,0 +1,17 @@
  277. +.name
  278. +libm
  279. +.fullname
  280. +Runtime math library
  281. +.type
  282. +Library
  283. +.short
  284. +Runtime math library
  285. +.description
  286. +This runtime math library is from BSD.  It is used with the GNU C
  287. +compiler when the -lm option is given to gcc.
  288. +.version
  289. +5.4
  290. +.distribution
  291. +Copyrighted but Freely Redistributable
  292. +.described-by
  293. +Fred Fish (fnf@amigalib.com)
  294. diff -rup --new-file baseline/bsd/libm/README-fnf amiga/bsd/libm/README-fnf
  295. --- baseline/bsd/libm/README-fnf    Wed Dec 31 17:00:00 1969
  296. +++ amiga/bsd/libm/README-fnf    Sat Oct  5 16:26:29 1996
  297. @@ -0,0 +1,5 @@
  298. +This is a version of libm from a BSD distribution.  It was
  299. +arbitarily given the version number 5.4 based on the version
  300. +of the README file that accompanies it.
  301. +
  302. +-Fred Fish  ><>
  303. diff -rup --new-file baseline/bsd/libm/common/atan2.c amiga/bsd/libm/common/atan2.c
  304. --- baseline/bsd/libm/common/atan2.c    Thu Sep 23 16:45:58 1993
  305. +++ amiga/bsd/libm/common/atan2.c    Sat Sep 28 00:00:00 1996
  306. @@ -137,6 +137,7 @@ ic(PIo4,   7.8539816339744827900E-1  ,  
  307.  ic(at1fhi, 9.8279372324732905408E-1  ,  -1,  1.F730BD281F69B)
  308.  ic(at1flo,-2.4407677060164810007E-17 , -56, -1.C23DFEFEAE6B5)
  309.  ic(PIo2,   1.5707963267948965580E0   ,   0,  1.921FB54442D18)
  310. +#undef PI
  311.  ic(PI,     3.1415926535897931160E0   ,   1,  1.921FB54442D18)
  312.  ic(a1,     3.3333333333333942106E-1  ,  -2,  1.55555555555C3)
  313.  ic(a2,    -1.9999999999979536924E-1  ,  -3, -1.9999999997CCD)
  314. diff -rup --new-file baseline/bsd/libm/common/trig.h amiga/bsd/libm/common/trig.h
  315. --- baseline/bsd/libm/common/trig.h    Thu Sep 23 16:45:57 1993
  316. +++ amiga/bsd/libm/common/trig.h    Sat Sep 28 00:00:00 1996
  317. @@ -39,6 +39,7 @@ vc(thresh, 2.6117239648121182150E-1 ,b86
  318.  vc(PIo4,   7.8539816339744830676E-1 ,0fda,4049,68c2,a221,  0, .C90FDAA22168C2)
  319.  vc(PIo2,   1.5707963267948966135E0  ,0fda,40c9,68c2,a221,  1, .C90FDAA22168C2)
  320.  vc(PI3o4,  2.3561944901923449203E0  ,cbe3,4116,0e92,f999,  2, .96CBE3F9990E92)
  321. +#undef PI
  322.  vc(PI,     3.1415926535897932270E0  ,0fda,4149,68c2,a221,  2, .C90FDAA22168C2)
  323.  vc(PI2,    6.2831853071795864540E0  ,0fda,41c9,68c2,a221,  3, .C90FDAA22168C2)
  324.  
  325. diff -rup --new-file baseline/bsd/libm/config.guess amiga/bsd/libm/config.guess
  326. --- baseline/bsd/libm/config.guess    Wed Dec 31 17:00:00 1969
  327. +++ amiga/bsd/libm/config.guess    Sat Oct  5 16:26:29 1996
  328. @@ -0,0 +1,600 @@
  329. +#! /bin/sh
  330. +# Attempt to guess a canonical system name.
  331. +#   Copyright (C) 1992, 93, 94, 95, 1996 Free Software Foundation, Inc.
  332. +#
  333. +# This file is free software; you can redistribute it and/or modify it
  334. +# under the terms of the GNU General Public License as published by
  335. +# the Free Software Foundation; either version 2 of the License, or
  336. +# (at your option) any later version.
  337. +#
  338. +# This program is distributed in the hope that it will be useful, but
  339. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  340. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  341. +# General Public License for more details.
  342. +#
  343. +# You should have received a copy of the GNU General Public License
  344. +# along with this program; if not, write to the Free Software
  345. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  346. +#
  347. +# As a special exception to the GNU General Public License, if you
  348. +# distribute this file as part of a program that contains a
  349. +# configuration script generated by Autoconf, you may include it under
  350. +# the same distribution terms that you use for the rest of that program.
  351. +
  352. +# Written by Per Bothner <bothner@cygnus.com>.
  353. +# The master version of this file is at the FSF in /home/gd/gnu/lib.
  354. +#
  355. +# This script attempts to guess a canonical system name similar to
  356. +# config.sub.  If it succeeds, it prints the system name on stdout, and
  357. +# exits with 0.  Otherwise, it exits with 1.
  358. +#
  359. +# The plan is that this can be called by configure scripts if you
  360. +# don't specify an explicit system type (host/target name).
  361. +#
  362. +# Only a few systems have been added to this list; please add others
  363. +# (but try to keep the structure clean).
  364. +#
  365. +
  366. +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  367. +# (ghazi@noc.rutgers.edu 8/24/94.)
  368. +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  369. +    PATH=$PATH:/.attbin ; export PATH
  370. +fi
  371. +
  372. +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
  373. +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
  374. +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  375. +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  376. +
  377. +trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
  378. +
  379. +# Note: order is significant - the case branches are not exclusive.
  380. +
  381. +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  382. +    alpha:OSF1:*:*)
  383. +    # A Vn.n version is a released version.
  384. +    # A Tn.n version is a released field test version.
  385. +    # A Xn.n version is an unreleased experimental baselevel.
  386. +    # 1.2 uses "1.2" for uname -r.
  387. +    echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//'`
  388. +    exit 0 ;;
  389. +    21064:Windows_NT:50:3)
  390. +    echo alpha-dec-winnt3.5
  391. +    exit 0 ;;
  392. +    Amiga*:UNIX_System_V:4.0:*)
  393. +    echo m68k-cbm-sysv4
  394. +    exit 0;;
  395. +    amiga:NetBSD:*:*)
  396. +      echo m68k-cbm-netbsd${UNAME_RELEASE}
  397. +      exit 0 ;;
  398. +    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  399. +    echo arm-acorn-riscix${UNAME_RELEASE}
  400. +    exit 0;;
  401. +    Pyramid*:OSx*:*:*)
  402. +    if test "`(/bin/universe) 2>/dev/null`" = att ; then
  403. +        echo pyramid-pyramid-sysv3
  404. +    else
  405. +        echo pyramid-pyramid-bsd
  406. +    fi
  407. +    exit 0 ;;
  408. +    sun4*:SunOS:5.*:*)
  409. +    echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  410. +    exit 0 ;;
  411. +    i86pc:SunOS:5.*:*)
  412. +    echo i386-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  413. +    exit 0 ;;
  414. +    sun4*:SunOS:6*:*)
  415. +    # According to config.sub, this is the proper way to canonicalize
  416. +    # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
  417. +    # it's likely to be more like Solaris than SunOS4.
  418. +    echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  419. +    exit 0 ;;
  420. +    sun4*:SunOS:*:*)
  421. +    case "`/usr/bin/arch -k`" in
  422. +        Series*|S4*)
  423. +        UNAME_RELEASE=`uname -v`
  424. +        ;;
  425. +    esac
  426. +    # Japanese Language versions have a version number like `4.1.3-JL'.
  427. +    echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  428. +    exit 0 ;;
  429. +    sun3*:SunOS:*:*)
  430. +    echo m68k-sun-sunos${UNAME_RELEASE}
  431. +    exit 0 ;;
  432. +    atari*:NetBSD:*:*)
  433. +    echo m68k-atari-netbsd${UNAME_RELEASE}
  434. +    exit 0 ;;
  435. +    sun3*:NetBSD:*:*)
  436. +    echo m68k-sun-netbsd${UNAME_RELEASE}
  437. +    exit 0 ;;
  438. +    mac68k:NetBSD:*:*)
  439. +    echo m68k-apple-netbsd${UNAME_RELEASE}
  440. +    exit 0 ;;
  441. +    RISC*:ULTRIX:*:*)
  442. +    echo mips-dec-ultrix${UNAME_RELEASE}
  443. +    exit 0 ;;
  444. +    VAX*:ULTRIX*:*:*)
  445. +    echo vax-dec-ultrix${UNAME_RELEASE}
  446. +    exit 0 ;;
  447. +    mips:*:4*:UMIPS)
  448. +    echo mips-mips-riscos4sysv
  449. +    exit 0 ;;
  450. +    mips:*:5*:RISCos)
  451. +    echo mips-mips-riscos${UNAME_RELEASE}
  452. +    exit 0 ;;
  453. +    Night_Hawk:Power_UNIX:*:*)
  454. +    echo powerpc-harris-powerunix
  455. +    exit 0 ;;
  456. +    m88k:CX/UX:7*:*)
  457. +    echo m88k-harris-cxux7
  458. +    exit 0 ;;
  459. +    m88k:*:4*:R4*)
  460. +    echo m88k-motorola-sysv4
  461. +    exit 0 ;;
  462. +    m88k:*:3*:R3*)
  463. +    echo m88k-motorola-sysv3
  464. +    exit 0 ;;
  465. +    AViiON:dgux:*:*)
  466. +        # DG/UX returns AViiON for all architectures
  467. +        UNAME_PROCESSOR=`/usr/bin/uname -p`
  468. +        if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88100 ] ; then
  469. +    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
  470. +         -o ${TARGET_BINARY_INTERFACE}x = x ] ; then
  471. +        echo m88k-dg-dgux${UNAME_RELEASE}
  472. +    else
  473. +        echo m88k-dg-dguxbcs${UNAME_RELEASE}
  474. +    fi
  475. +        else echo i586-dg-dgux${UNAME_RELEASE}
  476. +        fi
  477. +     exit 0 ;;
  478. +    M88*:DolphinOS:*:*)    # DolphinOS (SVR3)
  479. +    echo m88k-dolphin-sysv3
  480. +    exit 0 ;;
  481. +    M88*:*:R3*:*)
  482. +    # Delta 88k system running SVR3
  483. +    echo m88k-motorola-sysv3
  484. +    exit 0 ;;
  485. +    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  486. +    echo m88k-tektronix-sysv3
  487. +    exit 0 ;;
  488. +    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  489. +    echo m68k-tektronix-bsd
  490. +    exit 0 ;;
  491. +    *:IRIX*:*:*)
  492. +    echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  493. +    exit 0 ;;
  494. +   ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  495. +    echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
  496. +    exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
  497. +    i[34]86:AIX:*:*)
  498. +    echo i386-ibm-aix
  499. +    exit 0 ;;
  500. +    *:AIX:2:3)
  501. +    if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  502. +        sed 's/^        //' << EOF >dummy.c
  503. +        #include <sys/systemcfg.h>
  504. +
  505. +        main()
  506. +            {
  507. +            if (!__power_pc())
  508. +                exit(1);
  509. +            puts("powerpc-ibm-aix3.2.5");
  510. +            exit(0);
  511. +            }
  512. +EOF
  513. +        ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
  514. +        rm -f dummy.c dummy
  515. +        echo rs6000-ibm-aix3.2.5
  516. +    elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  517. +        echo rs6000-ibm-aix3.2.4
  518. +    else
  519. +        echo rs6000-ibm-aix3.2
  520. +    fi
  521. +    exit 0 ;;
  522. +    *:AIX:*:4)
  523. +    if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
  524. +        IBM_ARCH=rs6000
  525. +    else
  526. +        IBM_ARCH=powerpc
  527. +    fi
  528. +    if [ -x /usr/bin/oslevel ] ; then
  529. +        IBM_REV=`/usr/bin/oslevel`
  530. +    else
  531. +        IBM_REV=4.${UNAME_RELEASE}
  532. +    fi
  533. +    echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  534. +    exit 0 ;;
  535. +    *:AIX:*:*)
  536. +    echo rs6000-ibm-aix
  537. +    exit 0 ;;
  538. +    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  539. +    echo romp-ibm-bsd4.4
  540. +    exit 0 ;;
  541. +    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC NetBSD and
  542. +    echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to 
  543. +    exit 0 ;;                           # report: romp-ibm BSD 4.3
  544. +    *:BOSX:*:*)
  545. +    echo rs6000-bull-bosx
  546. +    exit 0 ;;
  547. +    DPX/2?00:B.O.S.:*:*)
  548. +    echo m68k-bull-sysv3
  549. +    exit 0 ;;
  550. +    9000/[34]??:4.3bsd:1.*:*)
  551. +    echo m68k-hp-bsd
  552. +    exit 0 ;;
  553. +    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  554. +    echo m68k-hp-bsd4.4
  555. +    exit 0 ;;
  556. +    9000/[3478]??:HP-UX:*:*)
  557. +    case "${UNAME_MACHINE}" in
  558. +        9000/31? )            HP_ARCH=m68000 ;;
  559. +        9000/[34]?? )         HP_ARCH=m68k ;;
  560. +        9000/7?? | 9000/8?[679] ) HP_ARCH=hppa1.1 ;;
  561. +        9000/8?? )            HP_ARCH=hppa1.0 ;;
  562. +    esac
  563. +    HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  564. +    echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  565. +    exit 0 ;;
  566. +    3050*:HI-UX:*:*)
  567. +    sed 's/^    //' << EOF >dummy.c
  568. +    #include <unistd.h>
  569. +    int
  570. +    main ()
  571. +    {
  572. +      long cpu = sysconf (_SC_CPU_VERSION);
  573. +      /* The order matters, because CPU_IS_HP_MC68K erroneously returns
  574. +         true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
  575. +         results, however.  */
  576. +      if (CPU_IS_PA_RISC (cpu))
  577. +        {
  578. +          switch (cpu)
  579. +        {
  580. +          case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
  581. +          case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
  582. +          case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
  583. +          default: puts ("hppa-hitachi-hiuxwe2"); break;
  584. +        }
  585. +        }
  586. +      else if (CPU_IS_HP_MC68K (cpu))
  587. +        puts ("m68k-hitachi-hiuxwe2");
  588. +      else puts ("unknown-hitachi-hiuxwe2");
  589. +      exit (0);
  590. +    }
  591. +EOF
  592. +    ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
  593. +    rm -f dummy.c dummy
  594. +    echo unknown-hitachi-hiuxwe2
  595. +    exit 0 ;;
  596. +    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  597. +    echo hppa1.1-hp-bsd
  598. +    exit 0 ;;
  599. +    9000/8??:4.3bsd:*:*)
  600. +    echo hppa1.0-hp-bsd
  601. +    exit 0 ;;
  602. +    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  603. +    echo hppa1.1-hp-osf
  604. +    exit 0 ;;
  605. +    hp8??:OSF1:*:*)
  606. +    echo hppa1.0-hp-osf
  607. +    exit 0 ;;
  608. +    parisc*:Lites*:*:*)
  609. +    echo hppa1.1-hp-lites
  610. +    exit 0 ;;
  611. +    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  612. +    echo c1-convex-bsd
  613. +        exit 0 ;;
  614. +    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  615. +    if getsysinfo -f scalar_acc
  616. +    then echo c32-convex-bsd
  617. +    else echo c2-convex-bsd
  618. +    fi
  619. +        exit 0 ;;
  620. +    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  621. +    echo c34-convex-bsd
  622. +        exit 0 ;;
  623. +    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  624. +    echo c38-convex-bsd
  625. +        exit 0 ;;
  626. +    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  627. +    echo c4-convex-bsd
  628. +        exit 0 ;;
  629. +    CRAY*X-MP:*:*:*)
  630. +    echo xmp-cray-unicos
  631. +        exit 0 ;;
  632. +    CRAY*Y-MP:*:*:*)
  633. +    echo ymp-cray-unicos${UNAME_RELEASE}
  634. +    exit 0 ;;
  635. +    CRAY*C90:*:*:*)
  636. +    echo c90-cray-unicos${UNAME_RELEASE}
  637. +    exit 0 ;;
  638. +    CRAY-2:*:*:*)
  639. +    echo cray2-cray-unicos
  640. +        exit 0 ;;
  641. +    hp3[0-9][05]:NetBSD:*:*)
  642. +    echo m68k-hp-netbsd${UNAME_RELEASE}
  643. +    exit 0 ;;
  644. +    i[34]86:BSD/386:*:* | *:BSD/OS:*:*)
  645. +    echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  646. +    exit 0 ;;
  647. +    *:FreeBSD:*:*)
  648. +    echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  649. +    exit 0 ;;
  650. +    *:NetBSD:*:*)
  651. +    echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  652. +    exit 0 ;;
  653. +    i*:CYGWIN*:*)
  654. +    echo i386-unknown-cygwin32
  655. +    exit 0 ;;
  656. +    p*:CYGWIN*:*)
  657. +    echo powerpcle-unknown-cygwin32
  658. +    exit 0 ;;
  659. +    prep*:SunOS:5.*:*)
  660. +    echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  661. +    exit 0 ;;
  662. +    *:GNU:*:*)
  663. +    echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  664. +    exit 0 ;;
  665. +    *:Linux:*:*)
  666. +    # The BFD linker knows what the default object file format is, so
  667. +    # first see if it will tell us.
  668. +    ld_help_string=`ld --help 2>&1`
  669. +    if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i[345]86"; then
  670. +      echo "${UNAME_MACHINE}-unknown-linux" ; exit 0
  671. +    elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[345]86linux"; then
  672. +      echo "${UNAME_MACHINE}-unknown-linuxaout" ; exit 0
  673. +    elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[345]86coff"; then
  674. +      echo "${UNAME_MACHINE}-unknown-linuxcoff" ; exit 0
  675. +    elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68kelf"; then
  676. +      echo "${UNAME_MACHINE}-unknown-linux" ; exit 0
  677. +    elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then
  678. +      echo "${UNAME_MACHINE}-unknown-linuxaout" ; exit 0
  679. +    elif test "${UNAME_MACHINE}" = "alpha" ; then
  680. +      echo alpha-unknown-linux ; exit 0
  681. +    else
  682. +      # Either a pre-BFD a.out linker (linuxoldld) or one that does not give us
  683. +      # useful --help.  Gcc wants to distinguish between linuxoldld and linuxaout.
  684. +      test ! -d /usr/lib/ldscripts/. \
  685. +        && echo "${UNAME_MACHINE}-unknown-linuxoldld" && exit 0
  686. +      # Determine whether the default compiler is a.out or elf
  687. +      cat >dummy.c <<EOF
  688. +main(argc, argv)
  689. +int argc;
  690. +char *argv[];
  691. +{
  692. +#ifdef __ELF__
  693. +  printf ("%s-unknown-linux\n", argv[1]);
  694. +#else
  695. +  printf ("%s-unknown-linuxaout\n", argv[1]);
  696. +#endif
  697. +  return 0;
  698. +}
  699. +EOF
  700. +      ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
  701. +      rm -f dummy.c dummy
  702. +    fi ;;
  703. +# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.  earlier versions
  704. +# are messed up and put the nodename in both sysname and nodename.
  705. +    i[34]86:DYNIX/ptx:4*:*)
  706. +    echo i386-sequent-sysv4
  707. +    exit 0 ;;
  708. +    i[34]86:*:4.*:* | i[34]86:SYSTEM_V:4.*:*)
  709. +    if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  710. +        echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
  711. +    else
  712. +        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}
  713. +    fi
  714. +    exit 0 ;;
  715. +    i[34]86:*:3.2:*)
  716. +    if test -f /usr/options/cb.name; then
  717. +        UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  718. +        echo ${UNAME_MACHINE}-unknown-isc$UNAME_REL
  719. +    elif /bin/uname -X 2>/dev/null >/dev/null ; then
  720. +        UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
  721. +        (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
  722. +        (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
  723. +            && UNAME_MACHINE=i586
  724. +        echo ${UNAME_MACHINE}-unknown-sco$UNAME_REL
  725. +    else
  726. +        echo ${UNAME_MACHINE}-unknown-sysv32
  727. +    fi
  728. +    exit 0 ;;
  729. +    Intel:Mach:3*:*)
  730. +    echo i386-unknown-mach3
  731. +    exit 0 ;;
  732. +    paragon:*:*:*)
  733. +    echo i860-intel-osf1
  734. +    exit 0 ;;
  735. +    i860:*:4.*:*) # i860-SVR4
  736. +    if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  737. +      echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  738. +    else # Add other i860-SVR4 vendors below as they are discovered.
  739. +      echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
  740. +    fi
  741. +    exit 0 ;;
  742. +    mini*:CTIX:SYS*5:*)
  743. +    # "miniframe"
  744. +    echo m68010-convergent-sysv
  745. +    exit 0 ;;
  746. +    M680[234]0:*:R3V[567]*:*)
  747. +    test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  748. +    3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0)
  749. +        uname -p 2>/dev/null | grep 86 >/dev/null \
  750. +          && echo i486-ncr-sysv4.3 && exit 0 ;;
  751. +    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  752. +        uname -p 2>/dev/null | grep 86 >/dev/null \
  753. +          && echo i486-ncr-sysv4 && exit 0 ;;
  754. +    m680[234]0:LynxOS:2.[23]*:*)
  755. +    echo m68k-lynx-lynxos${UNAME_RELEASE}
  756. +    exit 0 ;;
  757. +    mc68030:UNIX_System_V:4.*:*)
  758. +    echo m68k-atari-sysv4
  759. +    exit 0 ;;
  760. +    i[34]86:LynxOS:2.[23]*:*)
  761. +    echo i386-lynx-lynxos${UNAME_RELEASE}
  762. +    exit 0 ;;
  763. +    TSUNAMI:LynxOS:2.[23]*:*)
  764. +    echo sparc-lynx-lynxos${UNAME_RELEASE}
  765. +    exit 0 ;;
  766. +    rs6000:LynxOS:2.[23]*:*)
  767. +    echo rs6000-lynx-lynxos${UNAME_RELEASE}
  768. +    exit 0 ;;
  769. +    RM*:SINIX-*:*:*)
  770. +    echo mips-sni-sysv4
  771. +    exit 0 ;;
  772. +    *:SINIX-*:*:*)
  773. +    if uname -p 2>/dev/null >/dev/null ; then
  774. +        UNAME_MACHINE=`(uname -p) 2>/dev/null`
  775. +        echo ${UNAME_MACHINE}-sni-sysv4
  776. +    else
  777. +        echo ns32k-sni-sysv
  778. +    fi
  779. +    exit 0 ;;
  780. +    mc68*:A/UX:*:*)
  781. +    echo m68k-apple-aux${UNAME_RELEASE}
  782. +    exit 0 ;;
  783. +    R3000:*System_V*:*:*)
  784. +    if [ -d /usr/nec ]; then
  785. +            echo mips-nec-sysv${UNAME_RELEASE}
  786. +    else
  787. +            echo mips-unknown-sysv${UNAME_RELEASE}
  788. +    fi
  789. +        exit 0 ;;
  790. +esac
  791. +
  792. +#echo '(No uname command or uname output not recognized.)' 1>&2
  793. +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  794. +
  795. +cat >dummy.c <<EOF
  796. +#ifdef _SEQUENT_
  797. +# include <sys/types.h>
  798. +# include <sys/utsname.h>
  799. +#endif
  800. +main ()
  801. +{
  802. +#if defined (sony)
  803. +#if defined (MIPSEB)
  804. +  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
  805. +     I don't know....  */
  806. +  printf ("mips-sony-bsd\n"); exit (0);
  807. +#else
  808. +#include <sys/param.h>
  809. +  printf ("m68k-sony-newsos%s\n",
  810. +#ifdef NEWSOS4
  811. +          "4"
  812. +#else
  813. +      ""
  814. +#endif
  815. +         ); exit (0);
  816. +#endif
  817. +#endif
  818. +
  819. +#if defined (__arm) && defined (__acorn) && defined (__unix)
  820. +  printf ("arm-acorn-riscix"); exit (0);
  821. +#endif
  822. +
  823. +#if defined (hp300) && !defined (hpux)
  824. +  printf ("m68k-hp-bsd\n"); exit (0);
  825. +#endif
  826. +
  827. +#if defined (NeXT)
  828. +#if !defined (__ARCHITECTURE__)
  829. +#define __ARCHITECTURE__ "m68k"
  830. +#endif
  831. +  int version;
  832. +  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  833. +  printf ("%s-next-nextstep%s\n", __ARCHITECTURE__,  version==2 ? "2" : "3");
  834. +  exit (0);
  835. +#endif
  836. +
  837. +#if defined (MULTIMAX) || defined (n16)
  838. +#if defined (UMAXV)
  839. +  printf ("ns32k-encore-sysv\n"); exit (0);
  840. +#else
  841. +#if defined (CMU)
  842. +  printf ("ns32k-encore-mach\n"); exit (0);
  843. +#else
  844. +  printf ("ns32k-encore-bsd\n"); exit (0);
  845. +#endif
  846. +#endif
  847. +#endif
  848. +
  849. +#if defined (__386BSD__)
  850. +  printf ("i386-unknown-bsd\n"); exit (0);
  851. +#endif
  852. +
  853. +#if defined (sequent)
  854. +#if defined (i386)
  855. +  printf ("i386-sequent-dynix\n"); exit (0);
  856. +#endif
  857. +#if defined (ns32000)
  858. +  printf ("ns32k-sequent-dynix\n"); exit (0);
  859. +#endif
  860. +#endif
  861. +
  862. +#if defined (_SEQUENT_)
  863. +    struct utsname un;
  864. +
  865. +    uname(&un);
  866. +
  867. +    if (strncmp(un.version, "V2", 2) == 0) {
  868. +    printf ("i386-sequent-ptx2\n"); exit (0);
  869. +    }
  870. +    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
  871. +    printf ("i386-sequent-ptx1\n"); exit (0);
  872. +    }
  873. +    printf ("i386-sequent-ptx\n"); exit (0);
  874. +
  875. +#endif
  876. +
  877. +#if defined (vax)
  878. +#if !defined (ultrix)
  879. +  printf ("vax-dec-bsd\n"); exit (0);
  880. +#else
  881. +  printf ("vax-dec-ultrix\n"); exit (0);
  882. +#endif
  883. +#endif
  884. +
  885. +#if defined (alliant) && defined (i860)
  886. +  printf ("i860-alliant-bsd\n"); exit (0);
  887. +#endif
  888. +
  889. +  exit (1);
  890. +}
  891. +EOF
  892. +
  893. +${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
  894. +rm -f dummy.c dummy
  895. +
  896. +# Apollos put the system type in the environment.
  897. +
  898. +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
  899. +
  900. +# Convex versions that predate uname can use getsysinfo(1)
  901. +
  902. +if [ -x /usr/convex/getsysinfo ]
  903. +then
  904. +    case `getsysinfo -f cpu_type` in
  905. +    c1*)
  906. +    echo c1-convex-bsd
  907. +    exit 0 ;;
  908. +    c2*)
  909. +    if getsysinfo -f scalar_acc
  910. +    then echo c32-convex-bsd
  911. +    else echo c2-convex-bsd
  912. +    fi
  913. +    exit 0 ;;
  914. +    c34*)
  915. +    echo c34-convex-bsd
  916. +    exit 0 ;;
  917. +    c38*)
  918. +    echo c38-convex-bsd
  919. +    exit 0 ;;
  920. +    c4*)
  921. +    echo c4-convex-bsd
  922. +    exit 0 ;;
  923. +    esac
  924. +fi
  925. +
  926. +#echo '(Unable to guess system type)' 1>&2
  927. +
  928. +exit 1
  929. diff -rup --new-file baseline/bsd/libm/config.sub amiga/bsd/libm/config.sub
  930. --- baseline/bsd/libm/config.sub    Wed Dec 31 17:00:00 1969
  931. +++ amiga/bsd/libm/config.sub    Sat Oct  5 16:26:29 1996
  932. @@ -0,0 +1,867 @@
  933. +#! /bin/sh
  934. +# Configuration validation subroutine script, version 1.1.
  935. +#   Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
  936. +# This file is (in principle) common to ALL GNU software.
  937. +# The presence of a machine in this file suggests that SOME GNU software
  938. +# can handle that machine.  It does not imply ALL GNU software can. 
  939. +#
  940. +# This file is free software; you can redistribute it and/or modify
  941. +# it under the terms of the GNU General Public License as published by
  942. +# the Free Software Foundation; either version 2 of the License, or
  943. +# (at your option) any later version.
  944. +#
  945. +# This program is distributed in the hope that it will be useful,
  946. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  947. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  948. +# GNU General Public License for more details.
  949. +#
  950. +# You should have received a copy of the GNU General Public License
  951. +# along with this program; if not, write to the Free Software
  952. +# Foundation, Inc., 59 Temple Place - Suite 330,
  953. +# Boston, MA 02111-1307, USA.
  954. +
  955. +# As a special exception to the GNU General Public License, if you
  956. +# distribute this file as part of a program that contains a
  957. +# configuration script generated by Autoconf, you may include it under
  958. +# the same distribution terms that you use for the rest of that program.
  959. +
  960. +# Configuration subroutine to validate and canonicalize a configuration type.
  961. +# Supply the specified configuration type as an argument.
  962. +# If it is invalid, we print an error message on stderr and exit with code 1.
  963. +# Otherwise, we print the canonical config type on stdout and succeed.
  964. +
  965. +# This file is supposed to be the same for all GNU packages
  966. +# and recognize all the CPU types, system types and aliases
  967. +# that are meaningful with *any* GNU software.
  968. +# Each package is responsible for reporting which valid configurations
  969. +# it does not support.  The user should be able to distinguish
  970. +# a failure to support a valid configuration from a meaningless
  971. +# configuration.
  972. +
  973. +# The goal of this file is to map all the various variations of a given
  974. +# machine specification into a single specification in the form:
  975. +#    CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
  976. +# It is wrong to echo any other type of specification.
  977. +
  978. +if [ x$1 = x ]
  979. +then
  980. +    echo Configuration name missing. 1>&2
  981. +    echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
  982. +    echo "or     $0 ALIAS" 1>&2
  983. +    echo where ALIAS is a recognized configuration type. 1>&2
  984. +    exit 1
  985. +fi
  986. +
  987. +# First pass through any local machine types.
  988. +case $1 in
  989. +    *local*)
  990. +        echo $1
  991. +        exit 0
  992. +        ;;
  993. +    *)
  994. +    ;;
  995. +esac
  996. +
  997. +# Separate what the user gave into CPU-COMPANY and OS (if any).
  998. +basic_machine=`echo $1 | sed 's/-[^-]*$//'`
  999. +if [ $basic_machine != $1 ]
  1000. +then os=`echo $1 | sed 's/.*-/-/'`
  1001. +else os=; fi
  1002. +
  1003. +### Let's recognize common machines as not being operating systems so
  1004. +### that things like config.sub decstation-3100 work.  We also
  1005. +### recognize some manufacturers as not being operating systems, so we
  1006. +### can provide default operating systems below.
  1007. +case $os in
  1008. +    -sun*os*)
  1009. +        # Prevent following clause from handling this invalid input.
  1010. +        ;;
  1011. +    -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
  1012. +    -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
  1013. +    -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
  1014. +    -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  1015. +    -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  1016. +    -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp )
  1017. +        os=
  1018. +        basic_machine=$1
  1019. +        ;;
  1020. +    -hiux*)
  1021. +        os=-hiuxwe2
  1022. +        ;;
  1023. +    -sco4)
  1024. +        os=-sco3.2v4
  1025. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  1026. +        ;;
  1027. +    -sco3.2.[4-9]*)
  1028. +        os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
  1029. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  1030. +        ;;
  1031. +    -sco3.2v[4-9]*)
  1032. +        # Don't forget version if it is 3.2v4 or newer.
  1033. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  1034. +        ;;
  1035. +    -sco*)
  1036. +        os=-sco3.2v2
  1037. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  1038. +        ;;
  1039. +    -isc)
  1040. +        os=-isc2.2
  1041. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  1042. +        ;;
  1043. +    -clix*)
  1044. +        basic_machine=clipper-intergraph
  1045. +        ;;
  1046. +    -isc*)
  1047. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'`
  1048. +        ;;
  1049. +    -lynx*)
  1050. +        os=-lynxos
  1051. +        ;;
  1052. +    -ptx*)
  1053. +        basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
  1054. +        ;;
  1055. +    -windowsnt*)
  1056. +        os=`echo $os | sed -e 's/windowsnt/winnt/'`
  1057. +        ;;
  1058. +esac
  1059. +
  1060. +# Decode aliases for certain CPU-COMPANY combinations.
  1061. +case $basic_machine in
  1062. +    # Recognize the basic CPU types without company name.
  1063. +    # Some are omitted here because they have special meanings below.
  1064. +    tahoe | i[345]86 | i860 | m68k | m68000 | m88k | ns32k | arm \
  1065. +        | arme[lb] | pyramid \
  1066. +        | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \
  1067. +        | alpha | we32k | ns16k | clipper | sparclite | i370 | sh \
  1068. +        | powerpc | powerpcle | sparc64 | 1750a | dsp16xx | mips64 | mipsel \
  1069. +        | pdp11 | mips64el | mips64orion | mips64orionel \
  1070. +        | sparc)
  1071. +        basic_machine=$basic_machine-unknown
  1072. +        ;;
  1073. +    # Object if more than one company name word.
  1074. +    *-*-*)
  1075. +        echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  1076. +        exit 1
  1077. +        ;;
  1078. +    # Recognize the basic CPU types with company name.
  1079. +    vax-* | tahoe-* | i[345]86-* | i860-* | m68k-* | m68000-* | m88k-* \
  1080. +          | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \
  1081. +          | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \
  1082. +          | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
  1083. +          | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
  1084. +          | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
  1085. +          | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \
  1086. +          | mips64el-* | mips64orion-* | mips64orionel-*)
  1087. +        ;;
  1088. +    # Recognize the various machine names and aliases which stand
  1089. +    # for a CPU type and a company and sometimes even an OS.
  1090. +    3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
  1091. +        basic_machine=m68000-att
  1092. +        ;;
  1093. +    3b*)
  1094. +        basic_machine=we32k-att
  1095. +        ;;
  1096. +    alliant | fx80)
  1097. +        basic_machine=fx80-alliant
  1098. +        ;;
  1099. +    altos | altos3068)
  1100. +        basic_machine=m68k-altos
  1101. +        ;;
  1102. +    am29k)
  1103. +        basic_machine=a29k-none
  1104. +        os=-bsd
  1105. +        ;;
  1106. +    amdahl)
  1107. +        basic_machine=580-amdahl
  1108. +        os=-sysv
  1109. +        ;;
  1110. +    amiga | amiga-*)
  1111. +        basic_machine=m68k-unknown
  1112. +        ;;
  1113. +    amigaos)
  1114. +        basic_machine=m68k-unknown
  1115. +        os=-amigaos
  1116. +        ;;
  1117. +    amigaunix | amix)
  1118. +        basic_machine=m68k-cbm
  1119. +        os=-sysv4
  1120. +        ;;
  1121. +    apollo68)
  1122. +        basic_machine=m68k-apollo
  1123. +        os=-sysv
  1124. +        ;;
  1125. +    balance)
  1126. +        basic_machine=ns32k-sequent
  1127. +        os=-dynix
  1128. +        ;;
  1129. +    convex-c1)
  1130. +        basic_machine=c1-convex
  1131. +        os=-bsd
  1132. +        ;;
  1133. +    convex-c2)
  1134. +        basic_machine=c2-convex
  1135. +        os=-bsd
  1136. +        ;;
  1137. +    convex-c32)
  1138. +        basic_machine=c32-convex
  1139. +        os=-bsd
  1140. +        ;;
  1141. +    convex-c34)
  1142. +        basic_machine=c34-convex
  1143. +        os=-bsd
  1144. +        ;;
  1145. +    convex-c38)
  1146. +        basic_machine=c38-convex
  1147. +        os=-bsd
  1148. +        ;;
  1149. +    cray | ymp)
  1150. +        basic_machine=ymp-cray
  1151. +        os=-unicos
  1152. +        ;;
  1153. +    cray2)
  1154. +        basic_machine=cray2-cray
  1155. +        os=-unicos
  1156. +        ;;
  1157. +    crds | unos)
  1158. +        basic_machine=m68k-crds
  1159. +        ;;
  1160. +    da30 | da30-*)
  1161. +        basic_machine=m68k-da30
  1162. +        ;;
  1163. +    decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  1164. +        basic_machine=mips-dec
  1165. +        ;;
  1166. +    delta | 3300 | motorola-3300 | motorola-delta \
  1167. +          | 3300-motorola | delta-motorola)
  1168. +        basic_machine=m68k-motorola
  1169. +        ;;
  1170. +    delta88)
  1171. +        basic_machine=m88k-motorola
  1172. +        os=-sysv3
  1173. +        ;;
  1174. +    dpx20 | dpx20-*)
  1175. +        basic_machine=rs6000-bull
  1176. +        os=-bosx
  1177. +        ;;
  1178. +    dpx2* | dpx2*-bull)
  1179. +        basic_machine=m68k-bull
  1180. +        os=-sysv3
  1181. +        ;;
  1182. +    ebmon29k)
  1183. +        basic_machine=a29k-amd
  1184. +        os=-ebmon
  1185. +        ;;
  1186. +    elxsi)
  1187. +        basic_machine=elxsi-elxsi
  1188. +        os=-bsd
  1189. +        ;;
  1190. +    encore | umax | mmax)
  1191. +        basic_machine=ns32k-encore
  1192. +        ;;
  1193. +    fx2800)
  1194. +        basic_machine=i860-alliant
  1195. +        ;;
  1196. +    genix)
  1197. +        basic_machine=ns32k-ns
  1198. +        ;;
  1199. +    gmicro)
  1200. +        basic_machine=tron-gmicro
  1201. +        os=-sysv
  1202. +        ;;
  1203. +    h3050r* | hiux*)
  1204. +        basic_machine=hppa1.1-hitachi
  1205. +        os=-hiuxwe2
  1206. +        ;;
  1207. +    h8300hms)
  1208. +        basic_machine=h8300-hitachi
  1209. +        os=-hms
  1210. +        ;;
  1211. +    harris)
  1212. +        basic_machine=m88k-harris
  1213. +        os=-sysv3
  1214. +        ;;
  1215. +    hp300-*)
  1216. +        basic_machine=m68k-hp
  1217. +        ;;
  1218. +    hp300bsd)
  1219. +        basic_machine=m68k-hp
  1220. +        os=-bsd
  1221. +        ;;
  1222. +    hp300hpux)
  1223. +        basic_machine=m68k-hp
  1224. +        os=-hpux
  1225. +        ;;
  1226. +    hp9k2[0-9][0-9] | hp9k31[0-9])
  1227. +        basic_machine=m68000-hp
  1228. +        ;;
  1229. +    hp9k3[2-9][0-9])
  1230. +        basic_machine=m68k-hp
  1231. +        ;;
  1232. +    hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
  1233. +        basic_machine=hppa1.1-hp
  1234. +        ;;
  1235. +    hp9k8[0-9][0-9] | hp8[0-9][0-9])
  1236. +        basic_machine=hppa1.0-hp
  1237. +        ;;
  1238. +    i370-ibm* | ibm*)
  1239. +        basic_machine=i370-ibm
  1240. +        os=-mvs
  1241. +        ;;
  1242. +# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
  1243. +    i[345]86v32)
  1244. +        basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
  1245. +        os=-sysv32
  1246. +        ;;
  1247. +    i[345]86v4*)
  1248. +        basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
  1249. +        os=-sysv4
  1250. +        ;;
  1251. +    i[345]86v)
  1252. +        basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
  1253. +        os=-sysv
  1254. +        ;;
  1255. +    i[345]86sol2)
  1256. +        basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'`
  1257. +        os=-solaris2
  1258. +        ;;
  1259. +    iris | iris4d)
  1260. +        basic_machine=mips-sgi
  1261. +        case $os in
  1262. +            -irix*)
  1263. +            ;;
  1264. +            *)
  1265. +            os=-irix4
  1266. +            ;;
  1267. +        esac
  1268. +        ;;
  1269. +    isi68 | isi)
  1270. +        basic_machine=m68k-isi
  1271. +        os=-sysv
  1272. +        ;;
  1273. +    m88k-omron*)
  1274. +        basic_machine=m88k-omron
  1275. +        ;;
  1276. +    magnum | m3230)
  1277. +        basic_machine=mips-mips
  1278. +        os=-sysv
  1279. +        ;;
  1280. +    merlin)
  1281. +        basic_machine=ns32k-utek
  1282. +        os=-sysv
  1283. +        ;;
  1284. +    miniframe)
  1285. +        basic_machine=m68000-convergent
  1286. +        ;;
  1287. +    mips3*-*)
  1288. +        basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  1289. +        ;;
  1290. +    mips3*)
  1291. +        basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  1292. +        ;;
  1293. +    ncr3000)
  1294. +        basic_machine=i486-ncr
  1295. +        os=-sysv4
  1296. +        ;;
  1297. +    news | news700 | news800 | news900)
  1298. +        basic_machine=m68k-sony
  1299. +        os=-newsos
  1300. +        ;;
  1301. +    news1000)
  1302. +        basic_machine=m68030-sony
  1303. +        os=-newsos
  1304. +        ;;
  1305. +    news-3600 | risc-news)
  1306. +        basic_machine=mips-sony
  1307. +        os=-newsos
  1308. +        ;;
  1309. +    next | m*-next )
  1310. +        basic_machine=m68k-next
  1311. +        case $os in
  1312. +            -nextstep* )
  1313. +            ;;
  1314. +            -ns2*)
  1315. +              os=-nextstep2
  1316. +            ;;
  1317. +            *)
  1318. +              os=-nextstep3
  1319. +            ;;
  1320. +        esac
  1321. +        ;;
  1322. +    nh3000)
  1323. +        basic_machine=m68k-harris
  1324. +        os=-cxux
  1325. +        ;;
  1326. +    nh[45]000)
  1327. +        basic_machine=m88k-harris
  1328. +        os=-cxux
  1329. +        ;;
  1330. +    nindy960)
  1331. +        basic_machine=i960-intel
  1332. +        os=-nindy
  1333. +        ;;
  1334. +    np1)
  1335. +        basic_machine=np1-gould
  1336. +        ;;
  1337. +    pa-hitachi)
  1338. +        basic_machine=hppa1.1-hitachi
  1339. +        os=-hiuxwe2
  1340. +        ;;
  1341. +    paragon)
  1342. +        basic_machine=i860-intel
  1343. +        os=-osf
  1344. +        ;;
  1345. +    pbd)
  1346. +        basic_machine=sparc-tti
  1347. +        ;;
  1348. +    pbb)
  1349. +        basic_machine=m68k-tti
  1350. +        ;;
  1351. +        pc532 | pc532-*)
  1352. +        basic_machine=ns32k-pc532
  1353. +        ;;
  1354. +    pentium | p5 | p6)
  1355. +        # We don't have specific support for the Intel Pentium (p6) followon yet, so just call it a Pentium
  1356. +        basic_machine=i586-intel
  1357. +        ;;
  1358. +    pentium-* | p5-* | p6-*)
  1359. +        # We don't have specific support for the Intel Pentium (p6) followon yet, so just call it a Pentium
  1360. +        basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  1361. +        ;;
  1362. +    k5)
  1363. +        # We don't have specific support for AMD's K5 yet, so just call it a Pentium
  1364. +        basic_machine=i586-amd
  1365. +        ;;
  1366. +    nexen)
  1367. +        # We don't have specific support for Nexgen yet, so just call it a Pentium
  1368. +        basic_machine=i586-nexgen
  1369. +        ;;
  1370. +    pn)
  1371. +        basic_machine=pn-gould
  1372. +        ;;
  1373. +    power)    basic_machine=rs6000-ibm
  1374. +        ;;
  1375. +    ppc)    basic_machine=powerpc-unknown
  1376. +            ;;
  1377. +    ppc-*)    basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  1378. +        ;;
  1379. +    ppcle | powerpclittle | ppc-le | powerpc-little)
  1380. +        basic_machine=powerpcle-unknown
  1381. +            ;;
  1382. +    ppcle-* | powerpclittle-*)
  1383. +        basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  1384. +        ;;
  1385. +    ps2)
  1386. +        basic_machine=i386-ibm
  1387. +        ;;
  1388. +    rm[46]00)
  1389. +        basic_machine=mips-siemens
  1390. +        ;;
  1391. +    rtpc | rtpc-*)
  1392. +        basic_machine=romp-ibm
  1393. +        ;;
  1394. +    sequent)
  1395. +        basic_machine=i386-sequent
  1396. +        ;;
  1397. +    sh)
  1398. +        basic_machine=sh-hitachi
  1399. +        os=-hms
  1400. +        ;;
  1401. +    sps7)
  1402. +        basic_machine=m68k-bull
  1403. +        os=-sysv2
  1404. +        ;;
  1405. +    spur)
  1406. +        basic_machine=spur-unknown
  1407. +        ;;
  1408. +    sun2)
  1409. +        basic_machine=m68000-sun
  1410. +        ;;
  1411. +    sun2os3)
  1412. +        basic_machine=m68000-sun
  1413. +        os=-sunos3
  1414. +        ;;
  1415. +    sun2os4)
  1416. +        basic_machine=m68000-sun
  1417. +        os=-sunos4
  1418. +        ;;
  1419. +    sun3os3)
  1420. +        basic_machine=m68k-sun
  1421. +        os=-sunos3
  1422. +        ;;
  1423. +    sun3os4)
  1424. +        basic_machine=m68k-sun
  1425. +        os=-sunos4
  1426. +        ;;
  1427. +    sun4os3)
  1428. +        basic_machine=sparc-sun
  1429. +        os=-sunos3
  1430. +        ;;
  1431. +    sun4os4)
  1432. +        basic_machine=sparc-sun
  1433. +        os=-sunos4
  1434. +        ;;
  1435. +    sun4sol2)
  1436. +        basic_machine=sparc-sun
  1437. +        os=-solaris2
  1438. +        ;;
  1439. +    sun3 | sun3-*)
  1440. +        basic_machine=m68k-sun
  1441. +        ;;
  1442. +    sun4)
  1443. +        basic_machine=sparc-sun
  1444. +        ;;
  1445. +    sun386 | sun386i | roadrunner)
  1446. +        basic_machine=i386-sun
  1447. +        ;;
  1448. +    symmetry)
  1449. +        basic_machine=i386-sequent
  1450. +        os=-dynix
  1451. +        ;;
  1452. +    tower | tower-32)
  1453. +        basic_machine=m68k-ncr
  1454. +        ;;
  1455. +    udi29k)
  1456. +        basic_machine=a29k-amd
  1457. +        os=-udi
  1458. +        ;;
  1459. +    ultra3)
  1460. +        basic_machine=a29k-nyu
  1461. +        os=-sym1
  1462. +        ;;
  1463. +    vaxv)
  1464. +        basic_machine=vax-dec
  1465. +        os=-sysv
  1466. +        ;;
  1467. +    vms)
  1468. +        basic_machine=vax-dec
  1469. +        os=-vms
  1470. +        ;;
  1471. +    vxworks960)
  1472. +        basic_machine=i960-wrs
  1473. +        os=-vxworks
  1474. +        ;;
  1475. +    vxworks68)
  1476. +        basic_machine=m68k-wrs
  1477. +        os=-vxworks
  1478. +        ;;
  1479. +    vxworks29k)
  1480. +        basic_machine=a29k-wrs
  1481. +        os=-vxworks
  1482. +        ;;
  1483. +    xmp)
  1484. +        basic_machine=xmp-cray
  1485. +        os=-unicos
  1486. +        ;;
  1487. +        xps | xps100)
  1488. +        basic_machine=xps100-honeywell
  1489. +        ;;
  1490. +    none)
  1491. +        basic_machine=none-none
  1492. +        os=-none
  1493. +        ;;
  1494. +
  1495. +# Here we handle the default manufacturer of certain CPU types.  It is in
  1496. +# some cases the only manufacturer, in others, it is the most popular.
  1497. +    mips)
  1498. +        basic_machine=mips-mips
  1499. +        ;;
  1500. +    romp)
  1501. +        basic_machine=romp-ibm
  1502. +        ;;
  1503. +    rs6000)
  1504. +        basic_machine=rs6000-ibm
  1505. +        ;;
  1506. +    vax)
  1507. +        basic_machine=vax-dec
  1508. +        ;;
  1509. +    pdp11)
  1510. +        basic_machine=pdp11-dec
  1511. +        ;;
  1512. +    we32k)
  1513. +        basic_machine=we32k-att
  1514. +        ;;
  1515. +    sparc)
  1516. +        basic_machine=sparc-sun
  1517. +        ;;
  1518. +        cydra)
  1519. +        basic_machine=cydra-cydrome
  1520. +        ;;
  1521. +    orion)
  1522. +        basic_machine=orion-highlevel
  1523. +        ;;
  1524. +    orion105)
  1525. +        basic_machine=clipper-highlevel
  1526. +        ;;
  1527. +    *)
  1528. +        echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  1529. +        exit 1
  1530. +        ;;
  1531. +esac
  1532. +
  1533. +# Here we canonicalize certain aliases for manufacturers.
  1534. +case $basic_machine in
  1535. +    *-digital*)
  1536. +        basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
  1537. +        ;;
  1538. +    *-commodore*)
  1539. +        basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
  1540. +        ;;
  1541. +    *)
  1542. +        ;;
  1543. +esac
  1544. +
  1545. +# Decode manufacturer-specific aliases for certain operating systems.
  1546. +
  1547. +if [ x"$os" != x"" ]
  1548. +then
  1549. +case $os in
  1550. +    # -solaris* is a basic system type, with this one exception.
  1551. +    -solaris1 | -solaris1.*)
  1552. +        os=`echo $os | sed -e 's|solaris1|sunos4|'`
  1553. +        ;;
  1554. +    -solaris)
  1555. +        os=-solaris2
  1556. +        ;;
  1557. +    -unixware* | svr4*)
  1558. +        os=-sysv4
  1559. +        ;;
  1560. +    -gnu/linux*)
  1561. +        os=`echo $os | sed -e 's|gnu/linux|linux|'`
  1562. +        ;;
  1563. +    # First accept the basic system types.
  1564. +    # The portable systems comes first.
  1565. +    # Each alternative MUST END IN A *, to match a version number.
  1566. +    # -sysv* is not here because it comes later, after sysvr4.
  1567. +    -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  1568. +          | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[345]* \
  1569. +          | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  1570. +          | -amigaos* | -msdos* | -newsos* | -unicos* | -aos* \
  1571. +          | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
  1572. +          | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
  1573. +          | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \
  1574. +          | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
  1575. +          | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  1576. +          | -udi* | -eabi* | -lites* )
  1577. +    # Remember, each alternative MUST END IN *, to match a version number.
  1578. +        ;;
  1579. +    -sunos5*)
  1580. +        os=`echo $os | sed -e 's|sunos5|solaris2|'`
  1581. +        ;;
  1582. +    -sunos6*)
  1583. +        os=`echo $os | sed -e 's|sunos6|solaris3|'`
  1584. +        ;;
  1585. +    -osfrose*)
  1586. +        os=-osfrose
  1587. +        ;;
  1588. +    -osf*)
  1589. +        os=-osf
  1590. +        ;;
  1591. +    -utek*)
  1592. +        os=-bsd
  1593. +        ;;
  1594. +    -dynix*)
  1595. +        os=-bsd
  1596. +        ;;
  1597. +    -acis*)
  1598. +        os=-aos
  1599. +        ;;
  1600. +    -ctix* | -uts*)
  1601. +        os=-sysv
  1602. +        ;;
  1603. +    # Preserve the version number of sinix5.
  1604. +    -sinix5.*)
  1605. +        os=`echo $os | sed -e 's|sinix|sysv|'`
  1606. +        ;;
  1607. +    -sinix*)
  1608. +        os=-sysv4
  1609. +        ;;
  1610. +    -triton*)
  1611. +        os=-sysv3
  1612. +        ;;
  1613. +    -oss*)
  1614. +        os=-sysv3
  1615. +        ;;
  1616. +    -svr4)
  1617. +        os=-sysv4
  1618. +        ;;
  1619. +    -svr3)
  1620. +        os=-sysv3
  1621. +        ;;
  1622. +    -sysvr4)
  1623. +        os=-sysv4
  1624. +        ;;
  1625. +    # This must come after -sysvr4.
  1626. +    -sysv*)
  1627. +        ;;
  1628. +    -xenix)
  1629. +        os=-xenix
  1630. +        ;;
  1631. +    -none)
  1632. +        ;;
  1633. +    *)
  1634. +        # Get rid of the `-' at the beginning of $os.
  1635. +        os=`echo $os | sed 's/[^-]*-//'`
  1636. +        echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
  1637. +        exit 1
  1638. +        ;;
  1639. +esac
  1640. +else
  1641. +
  1642. +# Here we handle the default operating systems that come with various machines.
  1643. +# The value should be what the vendor currently ships out the door with their
  1644. +# machine or put another way, the most popular os provided with the machine.
  1645. +
  1646. +# Note that if you're going to try to match "-MANUFACTURER" here (say,
  1647. +# "-sun"), then you have to tell the case statement up towards the top
  1648. +# that MANUFACTURER isn't an operating system.  Otherwise, code above
  1649. +# will signal an error saying that MANUFACTURER isn't an operating
  1650. +# system, and we'll never get to this point.
  1651. +
  1652. +case $basic_machine in
  1653. +    *-acorn)
  1654. +        os=-riscix1.2
  1655. +        ;;
  1656. +    arm*-semi)
  1657. +        os=-aout
  1658. +        ;;
  1659. +        pdp11-*)
  1660. +        os=-none
  1661. +        ;;
  1662. +    *-dec | vax-*)
  1663. +        os=-ultrix4.2
  1664. +        ;;
  1665. +    m68*-apollo)
  1666. +        os=-domain
  1667. +        ;;
  1668. +    i386-sun)
  1669. +        os=-sunos4.0.2
  1670. +        ;;
  1671. +    m68000-sun)
  1672. +        os=-sunos3
  1673. +        # This also exists in the configure program, but was not the
  1674. +        # default.
  1675. +        # os=-sunos4
  1676. +        ;;
  1677. +    *-tti)    # must be before sparc entry or we get the wrong os.
  1678. +        os=-sysv3
  1679. +        ;;
  1680. +    sparc-* | *-sun)
  1681. +        os=-sunos4.1.1
  1682. +        ;;
  1683. +    *-ibm)
  1684. +        os=-aix
  1685. +        ;;
  1686. +    *-hp)
  1687. +        os=-hpux
  1688. +        ;;
  1689. +    *-hitachi)
  1690. +        os=-hiux
  1691. +        ;;
  1692. +    i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
  1693. +        os=-sysv
  1694. +        ;;
  1695. +    *-cbm)
  1696. +        os=-amigaos
  1697. +        ;;
  1698. +    *-dg)
  1699. +        os=-dgux
  1700. +        ;;
  1701. +    *-dolphin)
  1702. +        os=-sysv3
  1703. +        ;;
  1704. +    m68k-ccur)
  1705. +        os=-rtu
  1706. +        ;;
  1707. +    m88k-omron*)
  1708. +        os=-luna
  1709. +        ;;
  1710. +    *-sequent)
  1711. +        os=-ptx
  1712. +        ;;
  1713. +    *-crds)
  1714. +        os=-unos
  1715. +        ;;
  1716. +    *-ns)
  1717. +        os=-genix
  1718. +        ;;
  1719. +    i370-*)
  1720. +        os=-mvs
  1721. +        ;;
  1722. +    *-next)
  1723. +        os=-nextstep3
  1724. +        ;;
  1725. +        *-gould)
  1726. +        os=-sysv
  1727. +        ;;
  1728. +        *-highlevel)
  1729. +        os=-bsd
  1730. +        ;;
  1731. +    *-encore)
  1732. +        os=-bsd
  1733. +        ;;
  1734. +        *-sgi)
  1735. +        os=-irix
  1736. +        ;;
  1737. +        *-siemens)
  1738. +        os=-sysv4
  1739. +        ;;
  1740. +    *-masscomp)
  1741. +        os=-rtu
  1742. +        ;;
  1743. +    *)
  1744. +        os=-none
  1745. +        ;;
  1746. +esac
  1747. +fi
  1748. +
  1749. +# Here we handle the case where we know the os, and the CPU type, but not the
  1750. +# manufacturer.  We pick the logical manufacturer.
  1751. +vendor=unknown
  1752. +case $basic_machine in
  1753. +    *-unknown)
  1754. +        case $os in
  1755. +            -riscix*)
  1756. +                vendor=acorn
  1757. +                ;;
  1758. +            -sunos*)
  1759. +                vendor=sun
  1760. +                ;;
  1761. +            -lynxos*)
  1762. +                vendor=lynx
  1763. +                ;;
  1764. +            -aix*)
  1765. +                vendor=ibm
  1766. +                ;;
  1767. +            -hpux*)
  1768. +                vendor=hp
  1769. +                ;;
  1770. +            -hiux*)
  1771. +                vendor=hitachi
  1772. +                ;;
  1773. +            -unos*)
  1774. +                vendor=crds
  1775. +                ;;
  1776. +            -dgux*)
  1777. +                vendor=dg
  1778. +                ;;
  1779. +            -luna*)
  1780. +                vendor=omron
  1781. +                ;;
  1782. +            -genix*)
  1783. +                vendor=ns
  1784. +                ;;
  1785. +            -mvs*)
  1786. +                vendor=ibm
  1787. +                ;;
  1788. +            -ptx*)
  1789. +                vendor=sequent
  1790. +                ;;
  1791. +            -vxworks*)
  1792. +                vendor=wrs
  1793. +                ;;
  1794. +        esac
  1795. +        basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  1796. +        ;;
  1797. +esac
  1798. +
  1799. +echo $basic_machine$os
  1800. diff -rup --new-file baseline/bsd/libm/configure amiga/bsd/libm/configure
  1801. --- baseline/bsd/libm/configure    Wed Dec 31 17:00:00 1969
  1802. +++ amiga/bsd/libm/configure    Sat Oct  5 16:31:06 1996
  1803. @@ -0,0 +1,1200 @@
  1804. +#! /bin/sh
  1805. +
  1806. +# Guess values for system-dependent variables and create Makefiles.
  1807. +# Generated automatically using autoconf version 2.10 
  1808. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  1809. +#
  1810. +# This configure script is free software; the Free Software Foundation
  1811. +# gives unlimited permission to copy, distribute and modify it.
  1812. +
  1813. +# Defaults:
  1814. +ac_help=
  1815. +ac_default_prefix=/usr/local
  1816. +# Any additions from configure.in:
  1817. +
  1818. +# Initialize some variables set by options.
  1819. +# The variables have the same names as the options, with
  1820. +# dashes changed to underlines.
  1821. +build=NONE
  1822. +cache_file=./config.cache
  1823. +exec_prefix=NONE
  1824. +host=NONE
  1825. +no_create=
  1826. +nonopt=NONE
  1827. +no_recursion=
  1828. +prefix=NONE
  1829. +program_prefix=NONE
  1830. +program_suffix=NONE
  1831. +program_transform_name=s,x,x,
  1832. +silent=
  1833. +site=
  1834. +srcdir=
  1835. +target=NONE
  1836. +verbose=
  1837. +x_includes=NONE
  1838. +x_libraries=NONE
  1839. +bindir='${exec_prefix}/bin'
  1840. +sbindir='${exec_prefix}/sbin'
  1841. +libexecdir='${exec_prefix}/libexec'
  1842. +datadir='${prefix}/share'
  1843. +sysconfdir='${prefix}/etc'
  1844. +sharedstatedir='${prefix}/com'
  1845. +localstatedir='${prefix}/var'
  1846. +libdir='${exec_prefix}/lib'
  1847. +includedir='${prefix}/include'
  1848. +oldincludedir='/usr/include'
  1849. +infodir='${prefix}/info'
  1850. +guidedir='${prefix}/guide'
  1851. +psdir='${prefix}/ps'
  1852. +dvidir='${prefix}/dvi'
  1853. +mandir='${prefix}/man'
  1854. +
  1855. +# Initialize some other variables.
  1856. +subdirs=
  1857. +MFLAGS= MAKEFLAGS=
  1858. +
  1859. +ac_prev=
  1860. +for ac_option
  1861. +do
  1862. +
  1863. +  # If the previous option needs an argument, assign it.
  1864. +  if test -n "$ac_prev"; then
  1865. +    eval "$ac_prev=\$ac_option"
  1866. +    ac_prev=
  1867. +    continue
  1868. +  fi
  1869. +
  1870. +  case "$ac_option" in
  1871. +  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  1872. +  *) ac_optarg= ;;
  1873. +  esac
  1874. +
  1875. +  # Accept the important Cygnus configure options, so we can diagnose typos.
  1876. +
  1877. +  case "$ac_option" in
  1878. +
  1879. +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1880. +    ac_prev=bindir ;;
  1881. +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1882. +    bindir="$ac_optarg" ;;
  1883. +
  1884. +  -build | --build | --buil | --bui | --bu)
  1885. +    ac_prev=build ;;
  1886. +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1887. +    build="$ac_optarg" ;;
  1888. +
  1889. +  -cache-file | --cache-file | --cache-fil | --cache-fi \
  1890. +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1891. +    ac_prev=cache_file ;;
  1892. +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1893. +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1894. +    cache_file="$ac_optarg" ;;
  1895. +
  1896. +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  1897. +    ac_prev=datadir ;;
  1898. +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  1899. +  | --da=*)
  1900. +    datadir="$ac_optarg" ;;
  1901. +
  1902. +  -disable-* | --disable-*)
  1903. +    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  1904. +    # Reject names that are not valid shell variable names.
  1905. +    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  1906. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  1907. +    fi
  1908. +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  1909. +    eval "enable_${ac_feature}=no" ;;
  1910. +
  1911. +  -enable-* | --enable-*)
  1912. +    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  1913. +    # Reject names that are not valid shell variable names.
  1914. +    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  1915. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  1916. +    fi
  1917. +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  1918. +    case "$ac_option" in
  1919. +      *=*) ;;
  1920. +      *) ac_optarg=yes ;;
  1921. +    esac
  1922. +    eval "enable_${ac_feature}='$ac_optarg'" ;;
  1923. +
  1924. +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1925. +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1926. +  | --exec | --exe | --ex)
  1927. +    ac_prev=exec_prefix ;;
  1928. +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1929. +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1930. +  | --exec=* | --exe=* | --ex=*)
  1931. +    exec_prefix="$ac_optarg" ;;
  1932. +
  1933. +  -gas | --gas | --ga | --g)
  1934. +    # Obsolete; use --with-gas.
  1935. +    with_gas=yes ;;
  1936. +
  1937. +  -help | --help | --hel | --he)
  1938. +    # Omit some internal or obsolete options to make the list less imposing.
  1939. +    # This message is too long to be a string in the A/UX 3.1 sh.
  1940. +    cat << EOF
  1941. +Usage: configure [options] [host]
  1942. +Options: [defaults in brackets after descriptions]
  1943. +Configuration:
  1944. +  --cache-file=FILE       cache test results in FILE
  1945. +  --help                  print this message
  1946. +  --no-create             do not create output files
  1947. +  --quiet, --silent       do not print \`checking...' messages
  1948. +  --version               print the version of autoconf that created configure
  1949. +Directory and file names:
  1950. +  --prefix=PREFIX         install architecture-independent files in PREFIX
  1951. +                          [$ac_default_prefix]
  1952. +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1953. +                          [same as prefix]
  1954. +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  1955. +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  1956. +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  1957. +  --datadir=DIR           read-only architecture-independent data in DIR
  1958. +                          [PREFIX/share]
  1959. +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  1960. +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  1961. +                          [PREFIX/com]
  1962. +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  1963. +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  1964. +  --includedir=DIR        C header files in DIR [PREFIX/include]
  1965. +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  1966. +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  1967. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  1968. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  1969. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  1970. +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  1971. +  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  1972. +  --program-prefix=PREFIX prepend PREFIX to installed program names
  1973. +  --program-suffix=SUFFIX append SUFFIX to installed program names
  1974. +  --program-transform-name=PROGRAM
  1975. +                          run sed PROGRAM on installed program names
  1976. +EOF
  1977. +    cat << EOF
  1978. +Host type:
  1979. +  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  1980. +  --host=HOST             configure for HOST [guessed]
  1981. +  --target=TARGET         configure for TARGET [TARGET=HOST]
  1982. +Features and packages:
  1983. +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1984. +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1985. +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1986. +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1987. +  --x-includes=DIR        X include files are in DIR
  1988. +  --x-libraries=DIR       X library files are in DIR
  1989. +EOF
  1990. +    if test -n "$ac_help"; then
  1991. +      echo "--enable and --with options recognized:$ac_help"
  1992. +    fi
  1993. +    exit 0 ;;
  1994. +
  1995. +  -host | --host | --hos | --ho)
  1996. +    ac_prev=host ;;
  1997. +  -host=* | --host=* | --hos=* | --ho=*)
  1998. +    host="$ac_optarg" ;;
  1999. +
  2000. +  -includedir | --includedir | --includedi | --included | --include \
  2001. +  | --includ | --inclu | --incl | --inc)
  2002. +    ac_prev=includedir ;;
  2003. +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  2004. +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  2005. +    includedir="$ac_optarg" ;;
  2006. +
  2007. +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  2008. +    ac_prev=infodir ;;
  2009. +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  2010. +    infodir="$ac_optarg" ;;
  2011. +
  2012. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  2013. +   ac_prev=guidedir ;;
  2014. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  2015. +
  2016. + -psdir | --psdir | --psdi | --psd | --ps)
  2017. +   ac_prev=psdir ;;
  2018. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  2019. +
  2020. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  2021. +   ac_prev=dvidir ;;
  2022. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  2023. +
  2024. +  -libdir | --libdir | --libdi | --libd)
  2025. +    ac_prev=libdir ;;
  2026. +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  2027. +    libdir="$ac_optarg" ;;
  2028. +
  2029. +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  2030. +  | --libexe | --libex | --libe)
  2031. +    ac_prev=libexecdir ;;
  2032. +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  2033. +  | --libexe=* | --libex=* | --libe=*)
  2034. +    libexecdir="$ac_optarg" ;;
  2035. +
  2036. +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  2037. +  | --localstate | --localstat | --localsta | --localst \
  2038. +  | --locals | --local | --loca | --loc | --lo)
  2039. +    ac_prev=localstatedir ;;
  2040. +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  2041. +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  2042. +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  2043. +    localstatedir="$ac_optarg" ;;
  2044. +
  2045. +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  2046. +    ac_prev=mandir ;;
  2047. +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  2048. +    mandir="$ac_optarg" ;;
  2049. +
  2050. +  -nfp | --nfp | --nf)
  2051. +    # Obsolete; use --without-fp.
  2052. +    with_fp=no ;;
  2053. +
  2054. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  2055. +  | --no-cr | --no-c)
  2056. +    no_create=yes ;;
  2057. +
  2058. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  2059. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  2060. +    no_recursion=yes ;;
  2061. +
  2062. +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  2063. +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  2064. +  | --oldin | --oldi | --old | --ol | --o)
  2065. +    ac_prev=oldincludedir ;;
  2066. +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  2067. +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  2068. +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  2069. +    oldincludedir="$ac_optarg" ;;
  2070. +
  2071. +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  2072. +    ac_prev=prefix ;;
  2073. +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  2074. +    prefix="$ac_optarg" ;;
  2075. +
  2076. +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  2077. +  | --program-pre | --program-pr | --program-p)
  2078. +    ac_prev=program_prefix ;;
  2079. +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  2080. +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  2081. +    program_prefix="$ac_optarg" ;;
  2082. +
  2083. +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  2084. +  | --program-suf | --program-su | --program-s)
  2085. +    ac_prev=program_suffix ;;
  2086. +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  2087. +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  2088. +    program_suffix="$ac_optarg" ;;
  2089. +
  2090. +  -program-transform-name | --program-transform-name \
  2091. +  | --program-transform-nam | --program-transform-na \
  2092. +  | --program-transform-n | --program-transform- \
  2093. +  | --program-transform | --program-transfor \
  2094. +  | --program-transfo | --program-transf \
  2095. +  | --program-trans | --program-tran \
  2096. +  | --progr-tra | --program-tr | --program-t)
  2097. +    ac_prev=program_transform_name ;;
  2098. +  -program-transform-name=* | --program-transform-name=* \
  2099. +  | --program-transform-nam=* | --program-transform-na=* \
  2100. +  | --program-transform-n=* | --program-transform-=* \
  2101. +  | --program-transform=* | --program-transfor=* \
  2102. +  | --program-transfo=* | --program-transf=* \
  2103. +  | --program-trans=* | --program-tran=* \
  2104. +  | --progr-tra=* | --program-tr=* | --program-t=*)
  2105. +    program_transform_name="$ac_optarg" ;;
  2106. +
  2107. +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2108. +  | -silent | --silent | --silen | --sile | --sil)
  2109. +    silent=yes ;;
  2110. +
  2111. +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  2112. +    ac_prev=sbindir ;;
  2113. +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  2114. +  | --sbi=* | --sb=*)
  2115. +    sbindir="$ac_optarg" ;;
  2116. +
  2117. +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  2118. +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  2119. +  | --sharedst | --shareds | --shared | --share | --shar \
  2120. +  | --sha | --sh)
  2121. +    ac_prev=sharedstatedir ;;
  2122. +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  2123. +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  2124. +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  2125. +  | --sha=* | --sh=*)
  2126. +    sharedstatedir="$ac_optarg" ;;
  2127. +
  2128. +  -site | --site | --sit)
  2129. +    ac_prev=site ;;
  2130. +  -site=* | --site=* | --sit=*)
  2131. +    site="$ac_optarg" ;;
  2132. +
  2133. +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2134. +    ac_prev=srcdir ;;
  2135. +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2136. +    srcdir="$ac_optarg" ;;
  2137. +
  2138. +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  2139. +  | --syscon | --sysco | --sysc | --sys | --sy)
  2140. +    ac_prev=sysconfdir ;;
  2141. +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  2142. +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  2143. +    sysconfdir="$ac_optarg" ;;
  2144. +
  2145. +  -target | --target | --targe | --targ | --tar | --ta | --t)
  2146. +    ac_prev=target ;;
  2147. +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  2148. +    target="$ac_optarg" ;;
  2149. +
  2150. +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
  2151. +    verbose=yes ;;
  2152. +
  2153. +  -version | --version | --versio | --versi | --vers)
  2154. +    echo "configure generated by autoconf version 2.10"
  2155. +    exit 0 ;;
  2156. +
  2157. +  -with-* | --with-*)
  2158. +    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  2159. +    # Reject names that are not valid shell variable names.
  2160. +    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  2161. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  2162. +    fi
  2163. +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  2164. +    case "$ac_option" in
  2165. +      *=*) ;;
  2166. +      *) ac_optarg=yes ;;
  2167. +    esac
  2168. +    eval "with_${ac_package}='$ac_optarg'" ;;
  2169. +
  2170. +  -without-* | --without-*)
  2171. +    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  2172. +    # Reject names that are not valid shell variable names.
  2173. +    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  2174. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  2175. +    fi
  2176. +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  2177. +    eval "with_${ac_package}=no" ;;
  2178. +
  2179. +  --x)
  2180. +    # Obsolete; use --with-x.
  2181. +    with_x=yes ;;
  2182. +
  2183. +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  2184. +  | --x-incl | --x-inc | --x-in | --x-i)
  2185. +    ac_prev=x_includes ;;
  2186. +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  2187. +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  2188. +    x_includes="$ac_optarg" ;;
  2189. +
  2190. +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  2191. +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  2192. +    ac_prev=x_libraries ;;
  2193. +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  2194. +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  2195. +    x_libraries="$ac_optarg" ;;
  2196. +
  2197. +  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  2198. +    ;;
  2199. +
  2200. +  *)
  2201. +    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  2202. +      echo "configure: warning: $ac_option: invalid host type" 1>&2
  2203. +    fi
  2204. +    if test "x$nonopt" != xNONE; then
  2205. +      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  2206. +    fi
  2207. +    nonopt="$ac_option"
  2208. +    ;;
  2209. +
  2210. +  esac
  2211. +done
  2212. +
  2213. +if test -n "$ac_prev"; then
  2214. +  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  2215. +fi
  2216. +
  2217. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2218. +
  2219. +# File descriptor usage:
  2220. +# 0 standard input
  2221. +# 1 file creation
  2222. +# 2 errors and warnings
  2223. +# 3 some systems may open it to /dev/tty
  2224. +# 4 used on the Kubota Titan
  2225. +# 6 checking for... messages and results
  2226. +# 5 compiler messages saved in config.log
  2227. +if test "$silent" = yes; then
  2228. +  exec 6>/dev/null
  2229. +else
  2230. +  exec 6>&1
  2231. +fi
  2232. +exec 5>./config.log
  2233. +
  2234. +echo "\
  2235. +This file contains any messages produced by compilers while
  2236. +running configure, to aid debugging if configure makes a mistake.
  2237. +" 1>&5
  2238. +
  2239. +# Strip out --no-create and --no-recursion so they do not pile up.
  2240. +# Also quote any args containing shell metacharacters.
  2241. +ac_configure_args=
  2242. +for ac_arg
  2243. +do
  2244. +  case "$ac_arg" in
  2245. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  2246. +  | --no-cr | --no-c) ;;
  2247. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  2248. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  2249. +  *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  2250. +  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  2251. +  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  2252. +  esac
  2253. +done
  2254. +
  2255. +# NLS nuisances.
  2256. +# Only set LANG and LC_ALL to C if already set.
  2257. +# These must not be set unconditionally because not all systems understand
  2258. +# e.g. LANG=C (notably SCO).
  2259. +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  2260. +if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  2261. +
  2262. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  2263. +rm -rf conftest* confdefs.h
  2264. +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  2265. +echo > confdefs.h
  2266. +
  2267. +# A filename unique to this package, relative to the directory that
  2268. +# configure is in, which we can look for to find out if srcdir is correct.
  2269. +ac_unique_file=common_source/log.c
  2270. +
  2271. +# Find the source files, if location was not specified.
  2272. +if test -z "$srcdir"; then
  2273. +  ac_srcdir_defaulted=yes
  2274. +  # Try the directory containing this script, then its parent.
  2275. +  ac_prog=$0
  2276. +  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  2277. +  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  2278. +  srcdir=$ac_confdir
  2279. +  if test ! -r $srcdir/$ac_unique_file; then
  2280. +    srcdir=..
  2281. +  fi
  2282. +else
  2283. +  ac_srcdir_defaulted=no
  2284. +fi
  2285. +if test ! -r $srcdir/$ac_unique_file; then
  2286. +  if test "$ac_srcdir_defaulted" = yes; then
  2287. +    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  2288. +  else
  2289. +    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  2290. +  fi
  2291. +fi
  2292. +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  2293. +
  2294. +# Prefer explicitly selected file to automatically selected ones.
  2295. +if test -z "$CONFIG_SITE"; then
  2296. +  if test "x$prefix" != xNONE; then
  2297. +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  2298. +  else
  2299. +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2300. +  fi
  2301. +fi
  2302. +for ac_site_file in $CONFIG_SITE; do
  2303. +  if test -r "$ac_site_file"; then
  2304. +    echo "loading site script $ac_site_file"
  2305. +    . "$ac_site_file"
  2306. +  fi
  2307. +done
  2308. +
  2309. +if test -r "$cache_file"; then
  2310. +  echo "loading cache $cache_file"
  2311. +  . $cache_file
  2312. +else
  2313. +  echo "creating cache $cache_file"
  2314. +  > $cache_file
  2315. +fi
  2316. +
  2317. +ac_ext=c
  2318. +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2319. +ac_cpp='$CPP $CPPFLAGS'
  2320. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2321. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2322. +
  2323. +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  2324. +  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  2325. +  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  2326. +    ac_n= ac_c='
  2327. +' ac_t='    '
  2328. +  else
  2329. +    ac_n=-n ac_c= ac_t=
  2330. +  fi
  2331. +else
  2332. +  ac_n= ac_c='\c' ac_t=
  2333. +fi
  2334. +
  2335. +
  2336. +
  2337. +# Extract the first word of "gcc", so it can be a program name with args.
  2338. +set dummy gcc; ac_word=$2
  2339. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2340. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2341. +  echo $ac_n "(cached) $ac_c" 1>&6
  2342. +else
  2343. +  if test -n "$CC"; then
  2344. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  2345. +else
  2346. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2347. +  for ac_dir in $PATH; do
  2348. +    test -z "$ac_dir" && ac_dir=.
  2349. +    if test -f $ac_dir/$ac_word; then
  2350. +      ac_cv_prog_CC="gcc"
  2351. +      break
  2352. +    fi
  2353. +  done
  2354. +  IFS="$ac_save_ifs"
  2355. +fi
  2356. +fi
  2357. +CC="$ac_cv_prog_CC"
  2358. +if test -n "$CC"; then
  2359. +  echo "$ac_t""$CC" 1>&6
  2360. +else
  2361. +  echo "$ac_t""no" 1>&6
  2362. +fi
  2363. +
  2364. +if test -z "$CC"; then
  2365. +  # Extract the first word of "cc", so it can be a program name with args.
  2366. +set dummy cc; ac_word=$2
  2367. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2368. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2369. +  echo $ac_n "(cached) $ac_c" 1>&6
  2370. +else
  2371. +  if test -n "$CC"; then
  2372. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  2373. +else
  2374. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2375. +  ac_prog_rejected=no
  2376. +  for ac_dir in $PATH; do
  2377. +    test -z "$ac_dir" && ac_dir=.
  2378. +    if test -f $ac_dir/$ac_word; then
  2379. +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  2380. +        ac_prog_rejected=yes
  2381. +    continue
  2382. +      fi
  2383. +      ac_cv_prog_CC="cc"
  2384. +      break
  2385. +    fi
  2386. +  done
  2387. +  IFS="$ac_save_ifs"
  2388. +if test $ac_prog_rejected = yes; then
  2389. +  # We found a bogon in the path, so make sure we never use it.
  2390. +  set dummy $ac_cv_prog_CC
  2391. +  shift
  2392. +  if test $# -gt 0; then
  2393. +    # We chose a different compiler from the bogus one.
  2394. +    # However, it has the same basename, so the bogon will be chosen
  2395. +    # first if we set CC to just the basename; use the full file name.
  2396. +    shift
  2397. +    set dummy "$ac_dir/$ac_word" "$@"
  2398. +    shift
  2399. +    ac_cv_prog_CC="$@"
  2400. +  fi
  2401. +fi
  2402. +fi
  2403. +fi
  2404. +CC="$ac_cv_prog_CC"
  2405. +if test -n "$CC"; then
  2406. +  echo "$ac_t""$CC" 1>&6
  2407. +else
  2408. +  echo "$ac_t""no" 1>&6
  2409. +fi
  2410. +
  2411. +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  2412. +fi
  2413. +
  2414. +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  2415. +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  2416. +  echo $ac_n "(cached) $ac_c" 1>&6
  2417. +else
  2418. +  cat > conftest.c <<EOF
  2419. +#ifdef __GNUC__
  2420. +  yes;
  2421. +#endif
  2422. +EOF
  2423. +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
  2424. +  ac_cv_prog_gcc=yes
  2425. +else
  2426. +  ac_cv_prog_gcc=no
  2427. +fi
  2428. +fi
  2429. +
  2430. +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  2431. +if test $ac_cv_prog_gcc = yes; then
  2432. +  GCC=yes
  2433. +  if test "${CFLAGS+set}" != set; then
  2434. +    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  2435. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  2436. +  echo $ac_n "(cached) $ac_c" 1>&6
  2437. +else
  2438. +  echo 'void f(){}' > conftest.c
  2439. +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  2440. +  ac_cv_prog_gcc_g=yes
  2441. +else
  2442. +  ac_cv_prog_gcc_g=no
  2443. +fi
  2444. +rm -f conftest*
  2445. +
  2446. +fi
  2447. +
  2448. +echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  2449. +    if test $ac_cv_prog_gcc_g = yes; then
  2450. +      CFLAGS="-g -O2"
  2451. +    else
  2452. +      CFLAGS="-O2"
  2453. +    fi
  2454. +  fi
  2455. +else
  2456. +  GCC=
  2457. +  test "${CFLAGS+set}" = set || CFLAGS="-g"
  2458. +fi
  2459. +
  2460. +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2461. +# On Suns, sometimes $CPP names a directory.
  2462. +if test -n "$CPP" && test -d "$CPP"; then
  2463. +  CPP=
  2464. +fi
  2465. +if test -z "$CPP"; then
  2466. +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  2467. +  echo $ac_n "(cached) $ac_c" 1>&6
  2468. +else
  2469. +    # This must be in double quotes, not single quotes, because CPP may get
  2470. +  # substituted into the Makefile and "${CC-cc}" will confuse make.
  2471. +  CPP="${CC-cc} -E"
  2472. +  # On the NeXT, cc -E runs the code through the compiler's parser,
  2473. +  # not just through cpp.
  2474. +  cat > conftest.$ac_ext <<EOF
  2475. +#line 673 "configure"
  2476. +#include "confdefs.h"
  2477. +#include <assert.h>
  2478. +Syntax Error
  2479. +EOF
  2480. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2481. +{ (eval echo configure:679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2482. +ac_err=`grep -v '^ *+' conftest.out`
  2483. +if test -z "$ac_err"; then
  2484. +  :
  2485. +else
  2486. +  echo "$ac_err" >&5
  2487. +  rm -rf conftest*
  2488. +  CPP="${CC-cc} -E -traditional-cpp"
  2489. +  cat > conftest.$ac_ext <<EOF
  2490. +#line 688 "configure"
  2491. +#include "confdefs.h"
  2492. +#include <assert.h>
  2493. +Syntax Error
  2494. +EOF
  2495. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2496. +{ (eval echo configure:694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2497. +ac_err=`grep -v '^ *+' conftest.out`
  2498. +if test -z "$ac_err"; then
  2499. +  :
  2500. +else
  2501. +  echo "$ac_err" >&5
  2502. +  rm -rf conftest*
  2503. +  CPP=/lib/cpp
  2504. +fi
  2505. +rm -f conftest*
  2506. +fi
  2507. +rm -f conftest*
  2508. +  ac_cv_prog_CPP="$CPP"
  2509. +fi
  2510. +  CPP="$ac_cv_prog_CPP"
  2511. +else
  2512. +  ac_cv_prog_CPP="$CPP"
  2513. +fi
  2514. +echo "$ac_t""$CPP" 1>&6
  2515. +
  2516. +if test $ac_cv_prog_gcc = yes; then
  2517. +    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  2518. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  2519. +  echo $ac_n "(cached) $ac_c" 1>&6
  2520. +else
  2521. +    ac_pattern="Autoconf.*'x'"
  2522. +  cat > conftest.$ac_ext <<EOF
  2523. +#line 721 "configure"
  2524. +#include "confdefs.h"
  2525. +#include <sgtty.h>
  2526. +Autoconf TIOCGETP
  2527. +EOF
  2528. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2529. +  egrep "$ac_pattern" >/dev/null 2>&1; then
  2530. +  rm -rf conftest*
  2531. +  ac_cv_prog_gcc_traditional=yes
  2532. +else
  2533. +  rm -rf conftest*
  2534. +  ac_cv_prog_gcc_traditional=no
  2535. +fi
  2536. +rm -f conftest*
  2537. +
  2538. +
  2539. +  if test $ac_cv_prog_gcc_traditional = no; then
  2540. +    cat > conftest.$ac_ext <<EOF
  2541. +#line 739 "configure"
  2542. +#include "confdefs.h"
  2543. +#include <termio.h>
  2544. +Autoconf TCGETA
  2545. +EOF
  2546. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2547. +  egrep "$ac_pattern" >/dev/null 2>&1; then
  2548. +  rm -rf conftest*
  2549. +  ac_cv_prog_gcc_traditional=yes
  2550. +fi
  2551. +rm -f conftest*
  2552. +
  2553. +  fi
  2554. +fi
  2555. +
  2556. +echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  2557. +  if test $ac_cv_prog_gcc_traditional = yes; then
  2558. +    CC="$CC -traditional"
  2559. +  fi
  2560. +fi
  2561. +
  2562. +ac_aux_dir=
  2563. +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  2564. +  if test -f $ac_dir/install-sh; then
  2565. +    ac_aux_dir=$ac_dir
  2566. +    ac_install_sh="$ac_aux_dir/install-sh -c"
  2567. +    break
  2568. +  elif test -f $ac_dir/install.sh; then
  2569. +    ac_aux_dir=$ac_dir
  2570. +    ac_install_sh="$ac_aux_dir/install.sh -c"
  2571. +    break
  2572. +  fi
  2573. +done
  2574. +if test -z "$ac_aux_dir"; then
  2575. +  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  2576. +fi
  2577. +ac_config_guess=$ac_aux_dir/config.guess
  2578. +ac_config_sub=$ac_aux_dir/config.sub
  2579. +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  2580. +
  2581. +# Find a good install program.  We prefer a C program (faster),
  2582. +# so one script is as good as another.  But avoid the broken or
  2583. +# incompatible versions:
  2584. +# SysV /etc/install, /usr/sbin/install
  2585. +# SunOS /usr/etc/install
  2586. +# IRIX /sbin/install
  2587. +# AIX /bin/install
  2588. +# AmigaOS /c/install
  2589. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2590. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2591. +# ./install, which can be erroneously created by make from ./install.sh.
  2592. +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  2593. +if test -z "$INSTALL"; then
  2594. +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  2595. +  echo $ac_n "(cached) $ac_c" 1>&6
  2596. +else
  2597. +    IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2598. +  for ac_dir in $PATH; do
  2599. +    # Account for people who put trailing slashes in PATH elements.
  2600. +    case "$ac_dir/" in
  2601. +    /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  2602. +    *)
  2603. +      # OSF1 and SCO ODT 3.0 have their own names for install.
  2604. +      for ac_prog in ginstall installbsd scoinst install; do
  2605. +        if test -f $ac_dir/$ac_prog; then
  2606. +      if test $ac_prog = install &&
  2607. +            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  2608. +        # AIX install.  It has an incompatible calling convention.
  2609. +        # OSF/1 installbsd also uses dspmsg, but is usable.
  2610. +        :
  2611. +      else
  2612. +        ac_cv_path_install="$ac_dir/$ac_prog -c"
  2613. +        break 2
  2614. +      fi
  2615. +    fi
  2616. +      done
  2617. +      ;;
  2618. +    esac
  2619. +  done
  2620. +  IFS="$ac_save_ifs"
  2621. +
  2622. +fi
  2623. +  if test "${ac_cv_path_install+set}" = set; then
  2624. +    INSTALL="$ac_cv_path_install"
  2625. +  else
  2626. +    # As a last resort, use the slow shell script.  We don't cache a
  2627. +    # path for INSTALL within a source directory, because that will
  2628. +    # break other packages using the cache if that directory is
  2629. +    # removed, or if the path is relative.
  2630. +    INSTALL="$ac_install_sh"
  2631. +  fi
  2632. +fi
  2633. +echo "$ac_t""$INSTALL" 1>&6
  2634. +
  2635. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2636. +# It thinks the first close brace ends the variable substitution.
  2637. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2638. +
  2639. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2640. +
  2641. +
  2642. +# Make sure we can run config.sub.
  2643. +if $ac_config_sub sun4 >/dev/null 2>&1; then :
  2644. +else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  2645. +fi
  2646. +
  2647. +echo $ac_n "checking host system type""... $ac_c" 1>&6
  2648. +
  2649. +host_alias=$host
  2650. +case "$host_alias" in
  2651. +NONE)
  2652. +  case $nonopt in
  2653. +  NONE)
  2654. +    if host_alias=`$ac_config_guess`; then :
  2655. +    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  2656. +    fi ;;
  2657. +  *) host_alias=$nonopt ;;
  2658. +  esac ;;
  2659. +esac
  2660. +
  2661. +host=`$ac_config_sub $host_alias`
  2662. +host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  2663. +host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  2664. +host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  2665. +echo "$ac_t""$host" 1>&6
  2666. +
  2667. +echo $ac_n "checking build system type""... $ac_c" 1>&6
  2668. +
  2669. +build_alias=$build
  2670. +case "$build_alias" in
  2671. +NONE)
  2672. +  case $nonopt in
  2673. +  NONE) build_alias=$host_alias ;;
  2674. +  *) build_alias=$nonopt ;;
  2675. +  esac ;;
  2676. +esac
  2677. +
  2678. +build=`$ac_config_sub $build_alias`
  2679. +build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  2680. +build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  2681. +build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  2682. +echo "$ac_t""$build" 1>&6
  2683. +
  2684. +if test $host != $build; then
  2685. +  ac_tool_prefix=${host_alias}-
  2686. +else
  2687. +  ac_tool_prefix=
  2688. +fi
  2689. +
  2690. +# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2691. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2692. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2693. +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2694. +  echo $ac_n "(cached) $ac_c" 1>&6
  2695. +else
  2696. +  if test -n "$RANLIB"; then
  2697. +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2698. +else
  2699. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2700. +  for ac_dir in $PATH; do
  2701. +    test -z "$ac_dir" && ac_dir=.
  2702. +    if test -f $ac_dir/$ac_word; then
  2703. +      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2704. +      break
  2705. +    fi
  2706. +  done
  2707. +  IFS="$ac_save_ifs"
  2708. +fi
  2709. +fi
  2710. +RANLIB="$ac_cv_prog_RANLIB"
  2711. +if test -n "$RANLIB"; then
  2712. +  echo "$ac_t""$RANLIB" 1>&6
  2713. +else
  2714. +  echo "$ac_t""no" 1>&6
  2715. +fi
  2716. +
  2717. +
  2718. +if test -z "$ac_cv_prog_RANLIB"; then
  2719. +if test -n "$ac_tool_prefix"; then
  2720. +  # Extract the first word of "ranlib", so it can be a program name with args.
  2721. +set dummy ranlib; ac_word=$2
  2722. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2723. +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2724. +  echo $ac_n "(cached) $ac_c" 1>&6
  2725. +else
  2726. +  if test -n "$RANLIB"; then
  2727. +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2728. +else
  2729. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2730. +  for ac_dir in $PATH; do
  2731. +    test -z "$ac_dir" && ac_dir=.
  2732. +    if test -f $ac_dir/$ac_word; then
  2733. +      ac_cv_prog_RANLIB="ranlib"
  2734. +      break
  2735. +    fi
  2736. +  done
  2737. +  IFS="$ac_save_ifs"
  2738. +  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2739. +fi
  2740. +fi
  2741. +RANLIB="$ac_cv_prog_RANLIB"
  2742. +if test -n "$RANLIB"; then
  2743. +  echo "$ac_t""$RANLIB" 1>&6
  2744. +else
  2745. +  echo "$ac_t""no" 1>&6
  2746. +fi
  2747. +
  2748. +else
  2749. +  RANLIB=":"
  2750. +fi
  2751. +fi
  2752. +
  2753. +# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  2754. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  2755. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2756. +if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  2757. +  echo $ac_n "(cached) $ac_c" 1>&6
  2758. +else
  2759. +  if test -n "$AR"; then
  2760. +  ac_cv_prog_AR="$AR" # Let the user override the test.
  2761. +else
  2762. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2763. +  for ac_dir in $PATH; do
  2764. +    test -z "$ac_dir" && ac_dir=.
  2765. +    if test -f $ac_dir/$ac_word; then
  2766. +      ac_cv_prog_AR="${ac_tool_prefix}ar"
  2767. +      break
  2768. +    fi
  2769. +  done
  2770. +  IFS="$ac_save_ifs"
  2771. +  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
  2772. +fi
  2773. +fi
  2774. +AR="$ac_cv_prog_AR"
  2775. +if test -n "$AR"; then
  2776. +  echo "$ac_t""$AR" 1>&6
  2777. +else
  2778. +  echo "$ac_t""no" 1>&6
  2779. +fi
  2780. +
  2781. +
  2782. +
  2783. +
  2784. +trap '' 1 2 15
  2785. +cat > confcache <<\EOF
  2786. +# This file is a shell script that caches the results of configure
  2787. +# tests run on this system so they can be shared between configure
  2788. +# scripts and configure runs.  It is not useful on other systems.
  2789. +# If it contains results you don't want to keep, you may remove or edit it.
  2790. +#
  2791. +# By default, configure uses ./config.cache as the cache file,
  2792. +# creating it if it does not exist already.  You can give configure
  2793. +# the --cache-file=FILE option to use a different cache file; that is
  2794. +# what configure does when it calls configure scripts in
  2795. +# subdirectories, so they share the cache.
  2796. +# Giving --cache-file=/dev/null disables caching, for debugging configure.
  2797. +# config.status only pays attention to the cache file if you give it the
  2798. +# --recheck option to rerun configure.
  2799. +#
  2800. +EOF
  2801. +# Ultrix sh set writes to stderr and can't be redirected directly,
  2802. +# and sets the high bit in the cache file unless we assign to the vars.
  2803. +(set) 2>&1 |
  2804. +  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2805. +  >> confcache
  2806. +if cmp -s $cache_file confcache; then
  2807. +  :
  2808. +else
  2809. +  if test -w $cache_file; then
  2810. +    echo "updating cache $cache_file"
  2811. +    cat confcache > $cache_file
  2812. +  else
  2813. +    echo "not updating unwritable cache $cache_file"
  2814. +  fi
  2815. +fi
  2816. +rm -f confcache
  2817. +
  2818. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2819. +
  2820. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2821. +# Let make expand exec_prefix.
  2822. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2823. +
  2824. +# Any assignment to VPATH causes Sun make to only execute
  2825. +# the first set of double-colon rules, so remove it if not needed.
  2826. +# If there is a colon in the path, we need to keep it.
  2827. +if test "x$srcdir" = x.; then
  2828. +  ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2829. +fi
  2830. +
  2831. +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2832. +
  2833. +# Transform confdefs.h into DEFS.
  2834. +# Protect against shell expansion while executing Makefile rules.
  2835. +# Protect against Makefile macro expansion.
  2836. +cat > conftest.defs <<\EOF
  2837. +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  2838. +s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  2839. +s%\[%\\&%g
  2840. +s%\]%\\&%g
  2841. +s%\$%$$%g
  2842. +EOF
  2843. +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2844. +rm -f conftest.defs
  2845. +
  2846. +
  2847. +# Without the "./", some shells look in PATH for config.status.
  2848. +: ${CONFIG_STATUS=./config.status}
  2849. +
  2850. +echo creating $CONFIG_STATUS
  2851. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  2852. +# being executed, so just move it out of the way instead.
  2853. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2854. +cat > $CONFIG_STATUS <<EOF
  2855. +#! /bin/sh
  2856. +# Generated automatically by configure.
  2857. +# Run this file to recreate the current configuration.
  2858. +# This directory was configured as follows,
  2859. +# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2860. +#
  2861. +# $0 $ac_configure_args
  2862. +#
  2863. +# Compiler output produced by configure, useful for debugging
  2864. +# configure, is in ./config.log if it exists.
  2865. +
  2866. +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2867. +for ac_option
  2868. +do
  2869. +  case "\$ac_option" in
  2870. +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2871. +    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2872. +    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2873. +  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2874. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  2875. +    exit 0 ;;
  2876. +  -help | --help | --hel | --he | --h)
  2877. +    echo "\$ac_cs_usage"; exit 0 ;;
  2878. +  *) echo "\$ac_cs_usage"; exit 1 ;;
  2879. +  esac
  2880. +done
  2881. +
  2882. +ac_given_srcdir=$srcdir
  2883. +ac_given_INSTALL="$INSTALL"
  2884. +
  2885. +trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2886. +EOF
  2887. +cat >> $CONFIG_STATUS <<EOF
  2888. +
  2889. +# Protect against being on the right side of a sed subst in config.status.
  2890. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2891. + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2892. +$ac_vpsub
  2893. +$extrasub
  2894. +s%@CFLAGS@%$CFLAGS%g
  2895. +s%@CPPFLAGS@%$CPPFLAGS%g
  2896. +s%@CXXFLAGS@%$CXXFLAGS%g
  2897. +s%@DEFS@%$DEFS%g
  2898. +s%@LDFLAGS@%$LDFLAGS%g
  2899. +s%@LIBS@%$LIBS%g
  2900. +s%@exec_prefix@%$exec_prefix%g
  2901. +s%@prefix@%$prefix%g
  2902. +s%@program_transform_name@%$program_transform_name%g
  2903. +s%@bindir@%$bindir%g
  2904. +s%@sbindir@%$sbindir%g
  2905. +s%@libexecdir@%$libexecdir%g
  2906. +s%@datadir@%$datadir%g
  2907. +s%@sysconfdir@%$sysconfdir%g
  2908. +s%@sharedstatedir@%$sharedstatedir%g
  2909. +s%@localstatedir@%$localstatedir%g
  2910. +s%@libdir@%$libdir%g
  2911. +s%@includedir@%$includedir%g
  2912. +s%@oldincludedir@%$oldincludedir%g
  2913. +s%@infodir@%$infodir%g
  2914. +s%@guidedir@%$guidedir%g
  2915. +s%@psdir@%$psdir%g
  2916. +s%@dvidir@%$dvidir%g
  2917. +s%@mandir@%$mandir%g
  2918. +s%@CC@%$CC%g
  2919. +s%@CPP@%$CPP%g
  2920. +s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2921. +s%@INSTALL_DATA@%$INSTALL_DATA%g
  2922. +s%@host@%$host%g
  2923. +s%@host_alias@%$host_alias%g
  2924. +s%@host_cpu@%$host_cpu%g
  2925. +s%@host_vendor@%$host_vendor%g
  2926. +s%@host_os@%$host_os%g
  2927. +s%@build@%$build%g
  2928. +s%@build_alias@%$build_alias%g
  2929. +s%@build_cpu@%$build_cpu%g
  2930. +s%@build_vendor@%$build_vendor%g
  2931. +s%@build_os@%$build_os%g
  2932. +s%@RANLIB@%$RANLIB%g
  2933. +s%@AR@%$AR%g
  2934. +
  2935. +CEOF
  2936. +EOF
  2937. +cat >> $CONFIG_STATUS <<EOF
  2938. +
  2939. +CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2940. +EOF
  2941. +cat >> $CONFIG_STATUS <<\EOF
  2942. +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2943. +  # Support "outfile[:infile]", defaulting infile="outfile.in".
  2944. +  case "$ac_file" in
  2945. +  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2946. +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2947. +  *) ac_file_in="${ac_file}.in" ;;
  2948. +  esac
  2949. +
  2950. +  # Adjust relative srcdir, etc. for subdirectories.
  2951. +
  2952. +  # Remove last slash and all that follows it.  Not all systems have dirname.
  2953. +  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2954. +  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2955. +    # The file is in a subdirectory.
  2956. +    test ! -d "$ac_dir" && mkdir "$ac_dir"
  2957. +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2958. +    # A "../" for each directory in $ac_dir_suffix.
  2959. +    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2960. +  else
  2961. +    ac_dir_suffix= ac_dots=
  2962. +  fi
  2963. +
  2964. +  case "$ac_given_srcdir" in
  2965. +  .)  srcdir=.
  2966. +      if test -z "$ac_dots"; then top_srcdir=.
  2967. +      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2968. +  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2969. +  *) # Relative path.
  2970. +    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2971. +    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2972. +  esac
  2973. +
  2974. +  case "$ac_given_INSTALL" in
  2975. +  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2976. +  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2977. +  esac
  2978. +  echo creating "$ac_file"
  2979. +  rm -f "$ac_file"
  2980. +  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2981. +  case "$ac_file" in
  2982. +  *Makefile*) ac_comsub="1i\\
  2983. +# $configure_input" ;;
  2984. +  *) ac_comsub= ;;
  2985. +  esac
  2986. +  sed -e "$ac_comsub
  2987. +s%@configure_input@%$configure_input%g
  2988. +s%@srcdir@%$srcdir%g
  2989. +s%@top_srcdir@%$top_srcdir%g
  2990. +s%@INSTALL@%$INSTALL%g
  2991. +" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2992. +fi; done
  2993. +rm -f conftest.subs
  2994. +
  2995. +
  2996. +
  2997. +exit 0
  2998. +EOF
  2999. +chmod +x $CONFIG_STATUS
  3000. +rm -f CONFIG.STATUS.old
  3001. +rm -fr confdefs* $ac_clean_files
  3002. +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3003. +
  3004. diff -rup --new-file baseline/bsd/libm/configure.in amiga/bsd/libm/configure.in
  3005. --- baseline/bsd/libm/configure.in    Wed Dec 31 17:00:00 1969
  3006. +++ amiga/bsd/libm/configure.in    Sat Oct  5 16:26:29 1996
  3007. @@ -0,0 +1,10 @@
  3008. +dnl Process this file with autoconf to produce a configure script.
  3009. +AC_INIT(common_source/log.c)
  3010. +
  3011. +AC_PROG_CC
  3012. +AC_GCC_TRADITIONAL
  3013. +AC_PROG_INSTALL
  3014. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  3015. +AC_CHECK_TOOL(AR, ar)
  3016. +
  3017. +AC_OUTPUT(Makefile)
  3018. diff -rup --new-file baseline/bsd/libm/ieee/cabs.c amiga/bsd/libm/ieee/cabs.c
  3019. --- baseline/bsd/libm/ieee/cabs.c    Thu Sep 23 16:46:15 1993
  3020. +++ amiga/bsd/libm/ieee/cabs.c    Sat Oct  5 17:14:21 1996
  3021. @@ -31,132 +31,6 @@
  3022.   * SUCH DAMAGE.
  3023.   */
  3024.  
  3025. -#ifndef lint
  3026. -static char sccsid[] = "@(#)cabs.c    5.6 (Berkeley) 10/9/90";
  3027. -#endif /* not lint */
  3028. -
  3029. -/* HYPOT(X,Y)
  3030. - * RETURN THE SQUARE ROOT OF X^2 + Y^2  WHERE Z=X+iY
  3031. - * DOUBLE PRECISION (VAX D format 56 bits, IEEE DOUBLE 53 BITS)
  3032. - * CODED IN C BY K.C. NG, 11/28/84; 
  3033. - * REVISED BY K.C. NG, 7/12/85.
  3034. - *
  3035. - * Required system supported functions :
  3036. - *    copysign(x,y)
  3037. - *    finite(x)
  3038. - *    scalb(x,N)
  3039. - *    sqrt(x)
  3040. - *
  3041. - * Method :
  3042. - *    1. replace x by |x| and y by |y|, and swap x and
  3043. - *       y if y > x (hence x is never smaller than y).
  3044. - *    2. Hypot(x,y) is computed by:
  3045. - *       Case I, x/y > 2
  3046. - *        
  3047. - *                       y
  3048. - *        hypot = x + -----------------------------
  3049. - *                         2
  3050. - *                sqrt ( 1 + [x/y]  )  +  x/y
  3051. - *
  3052. - *       Case II, x/y <= 2 
  3053. - *                                   y
  3054. - *        hypot = x + --------------------------------------------------
  3055. - *                                       2 
  3056. - *                                 [x/y]   -  2
  3057. - *               (sqrt(2)+1) + (x-y)/y + -----------------------------
  3058. - *                                       2
  3059. - *                              sqrt ( 1 + [x/y]  )  + sqrt(2)
  3060. - *
  3061. - *
  3062. - *
  3063. - * Special cases:
  3064. - *    hypot(x,y) is INF if x or y is +INF or -INF; else
  3065. - *    hypot(x,y) is NAN if x or y is NAN.
  3066. - *
  3067. - * Accuracy:
  3068. - *     hypot(x,y) returns the sqrt(x^2+y^2) with error less than 1 ulps (units
  3069. - *    in the last place). See Kahan's "Interval Arithmetic Options in the
  3070. - *    Proposed IEEE Floating Point Arithmetic Standard", Interval Mathematics
  3071. - *      1980, Edited by Karl L.E. Nickel, pp 99-128. (A faster but less accurate
  3072. - *    code follows in    comments.) In a test run with 500,000 random arguments
  3073. - *    on a VAX, the maximum observed error was .959 ulps.
  3074. - *
  3075. - * Constants:
  3076. - * The hexadecimal values are the intended ones for the following constants.
  3077. - * The decimal values may be used, provided that the compiler will convert
  3078. - * from decimal to binary accurately enough to produce the hexadecimal values
  3079. - * shown.
  3080. - */
  3081. -#include "mathimpl.h"
  3082. -
  3083. -vc(r2p1hi, 2.4142135623730950345E0   ,8279,411a,ef32,99fc,   2, .9A827999FCEF32)
  3084. -vc(r2p1lo, 1.4349369327986523769E-17 ,597d,2484,754b,89b3, -55, .84597D89B3754B)
  3085. -vc(sqrt2,  1.4142135623730950622E0   ,04f3,40b5,de65,33f9,   1, .B504F333F9DE65)
  3086. -
  3087. -ic(r2p1hi, 2.4142135623730949234E0   ,   1, 1.3504F333F9DE6)
  3088. -ic(r2p1lo, 1.2537167179050217666E-16 , -53, 1.21165F626CDD5)
  3089. -ic(sqrt2,  1.4142135623730951455E0   ,   0, 1.6A09E667F3BCD)
  3090. -
  3091. -#ifdef vccast
  3092. -#define    r2p1hi    vccast(r2p1hi)
  3093. -#define    r2p1lo    vccast(r2p1lo)
  3094. -#define    sqrt2    vccast(sqrt2)
  3095. -#endif
  3096. -
  3097. -double
  3098. -hypot(x,y)
  3099. -double x, y;
  3100. -{
  3101. -    static const double zero=0, one=1, 
  3102. -              small=1.0E-18;    /* fl(1+small)==1 */
  3103. -    static const ibig=30;    /* fl(1+2**(2*ibig))==1 */
  3104. -    double t,r;
  3105. -    int exp;
  3106. -
  3107. -    if(finite(x))
  3108. -        if(finite(y))
  3109. -        {    
  3110. -        x=copysign(x,one);
  3111. -        y=copysign(y,one);
  3112. -        if(y > x) 
  3113. -            { t=x; x=y; y=t; }
  3114. -        if(x == zero) return(zero);
  3115. -        if(y == zero) return(x);
  3116. -        exp= logb(x);
  3117. -        if(exp-(int)logb(y) > ibig )     
  3118. -            /* raise inexact flag and return |x| */
  3119. -           { one+small; return(x); }
  3120. -
  3121. -        /* start computing sqrt(x^2 + y^2) */
  3122. -        r=x-y;
  3123. -        if(r>y) {     /* x/y > 2 */
  3124. -            r=x/y;
  3125. -            r=r+sqrt(one+r*r); }
  3126. -        else {        /* 1 <= x/y <= 2 */
  3127. -            r/=y; t=r*(r+2.0);
  3128. -            r+=t/(sqrt2+sqrt(2.0+t));
  3129. -            r+=r2p1lo; r+=r2p1hi; }
  3130. -
  3131. -        r=y/r;
  3132. -        return(x+r);
  3133. -
  3134. -        }
  3135. -
  3136. -        else if(y==y)          /* y is +-INF */
  3137. -             return(copysign(y,one));
  3138. -        else 
  3139. -             return(y);       /* y is NaN and x is finite */
  3140. -
  3141. -    else if(x==x)            /* x is +-INF */
  3142. -             return (copysign(x,one));
  3143. -    else if(finite(y))
  3144. -             return(x);           /* x is NaN, y is finite */
  3145. -#if !defined(vax)&&!defined(tahoe)
  3146. -    else if(y!=y) return(y);  /* x and y is NaN */
  3147. -#endif    /* !defined(vax)&&!defined(tahoe) */
  3148. -    else return(copysign(y,one));   /* y is INF */
  3149. -}
  3150. -
  3151.  /* CABS(Z)
  3152.   * RETURN THE ABSOLUTE VALUE OF THE COMPLEX NUMBER  Z = X + iY
  3153.   * DOUBLE PRECISION (VAX D format 56 bits, IEEE DOUBLE 53 BITS)
  3154. @@ -170,59 +44,13 @@ double x, y;
  3155.   *    cabs(z) = hypot(x,y) .
  3156.   */
  3157.  
  3158. +extern double hypot(double x, double y);
  3159. +
  3160. +struct cmplx { double x, y;};
  3161. +
  3162.  double
  3163.  cabs(z)
  3164. -struct { double x, y;} z;
  3165. +struct cmplx z;
  3166.  {
  3167.      return hypot(z.x,z.y);
  3168.  }
  3169. -
  3170. -double
  3171. -z_abs(z)
  3172. -struct { double x,y;} *z;
  3173. -{
  3174. -    return hypot(z->x,z->y);
  3175. -}
  3176. -
  3177. -/* A faster but less accurate version of cabs(x,y) */
  3178. -#if 0
  3179. -double hypot(x,y)
  3180. -double x, y;
  3181. -{
  3182. -    static const double zero=0, one=1;
  3183. -              small=1.0E-18;    /* fl(1+small)==1 */
  3184. -    static const ibig=30;    /* fl(1+2**(2*ibig))==1 */
  3185. -    double temp;
  3186. -    int exp;
  3187. -
  3188. -    if(finite(x))
  3189. -        if(finite(y))
  3190. -        {    
  3191. -        x=copysign(x,one);
  3192. -        y=copysign(y,one);
  3193. -        if(y > x) 
  3194. -            { temp=x; x=y; y=temp; }
  3195. -        if(x == zero) return(zero);
  3196. -        if(y == zero) return(x);
  3197. -        exp= logb(x);
  3198. -        x=scalb(x,-exp);
  3199. -        if(exp-(int)logb(y) > ibig ) 
  3200. -            /* raise inexact flag and return |x| */
  3201. -           { one+small; return(scalb(x,exp)); }
  3202. -        else y=scalb(y,-exp);
  3203. -        return(scalb(sqrt(x*x+y*y),exp));
  3204. -        }
  3205. -
  3206. -        else if(y==y)          /* y is +-INF */
  3207. -             return(copysign(y,one));
  3208. -        else 
  3209. -             return(y);       /* y is NaN and x is finite */
  3210. -
  3211. -    else if(x==x)            /* x is +-INF */
  3212. -             return (copysign(x,one));
  3213. -    else if(finite(y))
  3214. -             return(x);           /* x is NaN, y is finite */
  3215. -    else if(y!=y) return(y);      /* x and y is NaN */
  3216. -    else return(copysign(y,one));   /* y is INF */
  3217. -}
  3218. -#endif
  3219. diff -rup --new-file baseline/bsd/libm/ieee/hypot.c amiga/bsd/libm/ieee/hypot.c
  3220. --- baseline/bsd/libm/ieee/hypot.c    Wed Dec 31 17:00:00 1969
  3221. +++ amiga/bsd/libm/ieee/hypot.c    Sat Sep 28 00:00:00 1996
  3222. @@ -0,0 +1,201 @@
  3223. +/*
  3224. + * Copyright (c) 1985 Regents of the University of California.
  3225. + * All rights reserved.
  3226. + *
  3227. + * Redistribution and use in source and binary forms, with or without
  3228. + * modification, are permitted provided that the following conditions
  3229. + * are met:
  3230. + * 1. Redistributions of source code must retain the above copyright
  3231. + *    notice, this list of conditions and the following disclaimer.
  3232. + * 2. Redistributions in binary form must reproduce the above copyright
  3233. + *    notice, this list of conditions and the following disclaimer in the
  3234. + *    documentation and/or other materials provided with the distribution.
  3235. + * 3. All advertising materials mentioning features or use of this software
  3236. + *    must display the following acknowledgement:
  3237. + *    This product includes software developed by the University of
  3238. + *    California, Berkeley and its contributors.
  3239. + * 4. Neither the name of the University nor the names of its contributors
  3240. + *    may be used to endorse or promote products derived from this software
  3241. + *    without specific prior written permission.
  3242. + *
  3243. + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3244. + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3245. + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3246. + * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3247. + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3248. + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3249. + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3250. + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3251. + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3252. + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3253. + * SUCH DAMAGE.
  3254. + */
  3255. +
  3256. +#ifndef lint
  3257. +static char sccsid[] = "@(#)cabs.c    5.6 (Berkeley) 10/9/90";
  3258. +#endif /* not lint */
  3259. +
  3260. +/* HYPOT(X,Y)
  3261. + * RETURN THE SQUARE ROOT OF X^2 + Y^2  WHERE Z=X+iY
  3262. + * DOUBLE PRECISION (VAX D format 56 bits, IEEE DOUBLE 53 BITS)
  3263. + * CODED IN C BY K.C. NG, 11/28/84; 
  3264. + * REVISED BY K.C. NG, 7/12/85.
  3265. + *
  3266. + * Required system supported functions :
  3267. + *    copysign(x,y)
  3268. + *    finite(x)
  3269. + *    scalb(x,N)
  3270. + *    sqrt(x)
  3271. + *
  3272. + * Method :
  3273. + *    1. replace x by |x| and y by |y|, and swap x and
  3274. + *       y if y > x (hence x is never smaller than y).
  3275. + *    2. Hypot(x,y) is computed by:
  3276. + *       Case I, x/y > 2
  3277. + *        
  3278. + *                       y
  3279. + *        hypot = x + -----------------------------
  3280. + *                         2
  3281. + *                sqrt ( 1 + [x/y]  )  +  x/y
  3282. + *
  3283. + *       Case II, x/y <= 2 
  3284. + *                                   y
  3285. + *        hypot = x + --------------------------------------------------
  3286. + *                                       2 
  3287. + *                                 [x/y]   -  2
  3288. + *               (sqrt(2)+1) + (x-y)/y + -----------------------------
  3289. + *                                       2
  3290. + *                              sqrt ( 1 + [x/y]  )  + sqrt(2)
  3291. + *
  3292. + *
  3293. + *
  3294. + * Special cases:
  3295. + *    hypot(x,y) is INF if x or y is +INF or -INF; else
  3296. + *    hypot(x,y) is NAN if x or y is NAN.
  3297. + *
  3298. + * Accuracy:
  3299. + *     hypot(x,y) returns the sqrt(x^2+y^2) with error less than 1 ulps (units
  3300. + *    in the last place). See Kahan's "Interval Arithmetic Options in the
  3301. + *    Proposed IEEE Floating Point Arithmetic Standard", Interval Mathematics
  3302. + *      1980, Edited by Karl L.E. Nickel, pp 99-128. (A faster but less accurate
  3303. + *    code follows in    comments.) In a test run with 500,000 random arguments
  3304. + *    on a VAX, the maximum observed error was .959 ulps.
  3305. + *
  3306. + * Constants:
  3307. + * The hexadecimal values are the intended ones for the following constants.
  3308. + * The decimal values may be used, provided that the compiler will convert
  3309. + * from decimal to binary accurately enough to produce the hexadecimal values
  3310. + * shown.
  3311. + */
  3312. +#include "mathimpl.h"
  3313. +
  3314. +vc(r2p1hi, 2.4142135623730950345E0   ,8279,411a,ef32,99fc,   2, .9A827999FCEF32)
  3315. +vc(r2p1lo, 1.4349369327986523769E-17 ,597d,2484,754b,89b3, -55, .84597D89B3754B)
  3316. +vc(sqrt2,  1.4142135623730950622E0   ,04f3,40b5,de65,33f9,   1, .B504F333F9DE65)
  3317. +
  3318. +ic(r2p1hi, 2.4142135623730949234E0   ,   1, 1.3504F333F9DE6)
  3319. +ic(r2p1lo, 1.2537167179050217666E-16 , -53, 1.21165F626CDD5)
  3320. +ic(sqrt2,  1.4142135623730951455E0   ,   0, 1.6A09E667F3BCD)
  3321. +
  3322. +#ifdef vccast
  3323. +#define    r2p1hi    vccast(r2p1hi)
  3324. +#define    r2p1lo    vccast(r2p1lo)
  3325. +#define    sqrt2    vccast(sqrt2)
  3326. +#endif
  3327. +
  3328. +double
  3329. +hypot(x,y)
  3330. +double x, y;
  3331. +{
  3332. +    static const double zero=0, one=1, 
  3333. +              small=1.0E-18;    /* fl(1+small)==1 */
  3334. +    static const ibig=30;    /* fl(1+2**(2*ibig))==1 */
  3335. +    double t,r;
  3336. +    int exp;
  3337. +
  3338. +    if(finite(x))
  3339. +        if(finite(y))
  3340. +        {    
  3341. +        x=copysign(x,one);
  3342. +        y=copysign(y,one);
  3343. +        if(y > x) 
  3344. +            { t=x; x=y; y=t; }
  3345. +        if(x == zero) return(zero);
  3346. +        if(y == zero) return(x);
  3347. +        exp= logb(x);
  3348. +        if(exp-(int)logb(y) > ibig )     
  3349. +            /* raise inexact flag and return |x| */
  3350. +           { one+small; return(x); }
  3351. +
  3352. +        /* start computing sqrt(x^2 + y^2) */
  3353. +        r=x-y;
  3354. +        if(r>y) {     /* x/y > 2 */
  3355. +            r=x/y;
  3356. +            r=r+sqrt(one+r*r); }
  3357. +        else {        /* 1 <= x/y <= 2 */
  3358. +            r/=y; t=r*(r+2.0);
  3359. +            r+=t/(sqrt2+sqrt(2.0+t));
  3360. +            r+=r2p1lo; r+=r2p1hi; }
  3361. +
  3362. +        r=y/r;
  3363. +        return(x+r);
  3364. +
  3365. +        }
  3366. +
  3367. +        else if(y==y)          /* y is +-INF */
  3368. +             return(copysign(y,one));
  3369. +        else 
  3370. +             return(y);       /* y is NaN and x is finite */
  3371. +
  3372. +    else if(x==x)            /* x is +-INF */
  3373. +             return (copysign(x,one));
  3374. +    else if(finite(y))
  3375. +             return(x);           /* x is NaN, y is finite */
  3376. +#if !defined(vax)&&!defined(tahoe)
  3377. +    else if(y!=y) return(y);  /* x and y is NaN */
  3378. +#endif    /* !defined(vax)&&!defined(tahoe) */
  3379. +    else return(copysign(y,one));   /* y is INF */
  3380. +}
  3381. +
  3382. +/* A faster but less accurate version of hypot(x,y) */
  3383. +#if 0
  3384. +double hypot(x,y)
  3385. +double x, y;
  3386. +{
  3387. +    static const double zero=0, one=1;
  3388. +              small=1.0E-18;    /* fl(1+small)==1 */
  3389. +    static const ibig=30;    /* fl(1+2**(2*ibig))==1 */
  3390. +    double temp;
  3391. +    int exp;
  3392. +
  3393. +    if(finite(x))
  3394. +        if(finite(y))
  3395. +        {    
  3396. +        x=copysign(x,one);
  3397. +        y=copysign(y,one);
  3398. +        if(y > x) 
  3399. +            { temp=x; x=y; y=temp; }
  3400. +        if(x == zero) return(zero);
  3401. +        if(y == zero) return(x);
  3402. +        exp= logb(x);
  3403. +        x=scalb(x,-exp);
  3404. +        if(exp-(int)logb(y) > ibig ) 
  3405. +            /* raise inexact flag and return |x| */
  3406. +           { one+small; return(scalb(x,exp)); }
  3407. +        else y=scalb(y,-exp);
  3408. +        return(scalb(sqrt(x*x+y*y),exp));
  3409. +        }
  3410. +
  3411. +        else if(y==y)          /* y is +-INF */
  3412. +             return(copysign(y,one));
  3413. +        else 
  3414. +             return(y);       /* y is NaN and x is finite */
  3415. +
  3416. +    else if(x==x)            /* x is +-INF */
  3417. +             return (copysign(x,one));
  3418. +    else if(finite(y))
  3419. +             return(x);           /* x is NaN, y is finite */
  3420. +    else if(y!=y) return(y);      /* x and y is NaN */
  3421. +    else return(copysign(y,one));   /* y is INF */
  3422. +}
  3423. +#endif
  3424. diff -rup --new-file baseline/bsd/libm/ieee/z_abs.c amiga/bsd/libm/ieee/z_abs.c
  3425. --- baseline/bsd/libm/ieee/z_abs.c    Wed Dec 31 17:00:00 1969
  3426. +++ amiga/bsd/libm/ieee/z_abs.c    Sat Sep 28 00:00:00 1996
  3427. @@ -0,0 +1,54 @@
  3428. +/*
  3429. + * Copyright (c) 1985 Regents of the University of California.
  3430. + * All rights reserved.
  3431. + *
  3432. + * Redistribution and use in source and binary forms, with or without
  3433. + * modification, are permitted provided that the following conditions
  3434. + * are met:
  3435. + * 1. Redistributions of source code must retain the above copyright
  3436. + *    notice, this list of conditions and the following disclaimer.
  3437. + * 2. Redistributions in binary form must reproduce the above copyright
  3438. + *    notice, this list of conditions and the following disclaimer in the
  3439. + *    documentation and/or other materials provided with the distribution.
  3440. + * 3. All advertising materials mentioning features or use of this software
  3441. + *    must display the following acknowledgement:
  3442. + *    This product includes software developed by the University of
  3443. + *    California, Berkeley and its contributors.
  3444. + * 4. Neither the name of the University nor the names of its contributors
  3445. + *    may be used to endorse or promote products derived from this software
  3446. + *    without specific prior written permission.
  3447. + *
  3448. + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  3449. + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  3450. + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  3451. + * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  3452. + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  3453. + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  3454. + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  3455. + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  3456. + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  3457. + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  3458. + * SUCH DAMAGE.
  3459. + */
  3460. +
  3461. +/* CABS(Z)
  3462. + * RETURN THE ABSOLUTE VALUE OF THE COMPLEX NUMBER  Z = X + iY
  3463. + * DOUBLE PRECISION (VAX D format 56 bits, IEEE DOUBLE 53 BITS)
  3464. + * CODED IN C BY K.C. NG, 11/28/84.
  3465. + * REVISED BY K.C. NG, 7/12/85.
  3466. + *
  3467. + * Required kernel function :
  3468. + *    hypot(x,y)
  3469. + *
  3470. + * Method :
  3471. + *    cabs(z) = hypot(x,y) .
  3472. + */
  3473. +
  3474. +extern double hypot(double x, double y);
  3475. +
  3476. +double
  3477. +z_abs(z)
  3478. +struct { double x,y;} *z;
  3479. +{
  3480. +    return hypot(z->x,z->y);
  3481. +}
  3482. diff -rup --new-file baseline/bsd/libm/install-sh amiga/bsd/libm/install-sh
  3483. --- baseline/bsd/libm/install-sh    Wed Dec 31 17:00:00 1969
  3484. +++ amiga/bsd/libm/install-sh    Sat Oct  5 16:26:28 1996
  3485. @@ -0,0 +1,238 @@
  3486. +#! /bin/sh
  3487. +#
  3488. +# install - install a program, script, or datafile
  3489. +# This comes from X11R5.
  3490. +#
  3491. +# Calling this script install-sh is preferred over install.sh, to prevent
  3492. +# `make' implicit rules from creating a file called install from it
  3493. +# when there is no Makefile.
  3494. +#
  3495. +# This script is compatible with the BSD install script, but was written
  3496. +# from scratch.
  3497. +#
  3498. +
  3499. +
  3500. +# set DOITPROG to echo to test this script
  3501. +
  3502. +# Don't use :- since 4.3BSD and earlier shells don't like it.
  3503. +doit="${DOITPROG-}"
  3504. +
  3505. +
  3506. +# put in absolute paths if you don't have them in your path; or use env. vars.
  3507. +
  3508. +mvprog="${MVPROG-mv}"
  3509. +cpprog="${CPPROG-cp}"
  3510. +chmodprog="${CHMODPROG-chmod}"
  3511. +chownprog="${CHOWNPROG-chown}"
  3512. +chgrpprog="${CHGRPPROG-chgrp}"
  3513. +stripprog="${STRIPPROG-strip}"
  3514. +rmprog="${RMPROG-rm}"
  3515. +mkdirprog="${MKDIRPROG-mkdir}"
  3516. +
  3517. +transformbasename=""
  3518. +transform_arg=""
  3519. +instcmd="$mvprog"
  3520. +chmodcmd="$chmodprog 0755"
  3521. +chowncmd=""
  3522. +chgrpcmd=""
  3523. +stripcmd=""
  3524. +rmcmd="$rmprog -f"
  3525. +mvcmd="$mvprog"
  3526. +src=""
  3527. +dst=""
  3528. +dir_arg=""
  3529. +
  3530. +while [ x"$1" != x ]; do
  3531. +    case $1 in
  3532. +    -c) instcmd="$cpprog"
  3533. +        shift
  3534. +        continue;;
  3535. +
  3536. +    -d) dir_arg=true
  3537. +        shift
  3538. +        continue;;
  3539. +
  3540. +    -m) chmodcmd="$chmodprog $2"
  3541. +        shift
  3542. +        shift
  3543. +        continue;;
  3544. +
  3545. +    -o) chowncmd="$chownprog $2"
  3546. +        shift
  3547. +        shift
  3548. +        continue;;
  3549. +
  3550. +    -g) chgrpcmd="$chgrpprog $2"
  3551. +        shift
  3552. +        shift
  3553. +        continue;;
  3554. +
  3555. +    -s) stripcmd="$stripprog"
  3556. +        shift
  3557. +        continue;;
  3558. +
  3559. +    -t=*) transformarg=`echo $1 | sed 's/-t=//'`
  3560. +        shift
  3561. +        continue;;
  3562. +
  3563. +    -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
  3564. +        shift
  3565. +        continue;;
  3566. +
  3567. +    *)  if [ x"$src" = x ]
  3568. +        then
  3569. +        src=$1
  3570. +        else
  3571. +        # this colon is to work around a 386BSD /bin/sh bug
  3572. +        :
  3573. +        dst=$1
  3574. +        fi
  3575. +        shift
  3576. +        continue;;
  3577. +    esac
  3578. +done
  3579. +
  3580. +if [ x"$src" = x ]
  3581. +then
  3582. +    echo "install:    no input file specified"
  3583. +    exit 1
  3584. +else
  3585. +    true
  3586. +fi
  3587. +
  3588. +if [ x"$dir_arg" != x ]; then
  3589. +    dst=$src
  3590. +    src=""
  3591. +    
  3592. +    if [ -d $dst ]; then
  3593. +        instcmd=:
  3594. +    else
  3595. +        instcmd=mkdir
  3596. +    fi
  3597. +else
  3598. +
  3599. +# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
  3600. +# might cause directories to be created, which would be especially bad 
  3601. +# if $src (and thus $dsttmp) contains '*'.
  3602. +
  3603. +    if [ -f $src -o -d $src ]
  3604. +    then
  3605. +        true
  3606. +    else
  3607. +        echo "install:  $src does not exist"
  3608. +        exit 1
  3609. +    fi
  3610. +    
  3611. +    if [ x"$dst" = x ]
  3612. +    then
  3613. +        echo "install:    no destination specified"
  3614. +        exit 1
  3615. +    else
  3616. +        true
  3617. +    fi
  3618. +
  3619. +# If destination is a directory, append the input filename; if your system
  3620. +# does not like double slashes in filenames, you may need to add some logic
  3621. +
  3622. +    if [ -d $dst ]
  3623. +    then
  3624. +        dst="$dst"/`basename $src`
  3625. +    else
  3626. +        true
  3627. +    fi
  3628. +fi
  3629. +
  3630. +## this sed command emulates the dirname command
  3631. +dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
  3632. +
  3633. +# Make sure that the destination directory exists.
  3634. +#  this part is taken from Noah Friedman's mkinstalldirs script
  3635. +
  3636. +# Skip lots of stat calls in the usual case.
  3637. +if [ ! -d "$dstdir" ]; then
  3638. +defaultIFS='    
  3639. +'
  3640. +IFS="${IFS-${defaultIFS}}"
  3641. +
  3642. +oIFS="${IFS}"
  3643. +# Some sh's can't handle IFS=/ for some reason.
  3644. +IFS='%'
  3645. +set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
  3646. +IFS="${oIFS}"
  3647. +
  3648. +pathcomp=''
  3649. +
  3650. +while [ $# -ne 0 ] ; do
  3651. +    pathcomp="${pathcomp}${1}"
  3652. +    shift
  3653. +
  3654. +    if [ ! -d "${pathcomp}" ] ;
  3655. +        then
  3656. +        $mkdirprog "${pathcomp}"
  3657. +    else
  3658. +        true
  3659. +    fi
  3660. +
  3661. +    pathcomp="${pathcomp}/"
  3662. +done
  3663. +fi
  3664. +
  3665. +if [ x"$dir_arg" != x ]
  3666. +then
  3667. +    $doit $instcmd $dst &&
  3668. +
  3669. +    if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
  3670. +    if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
  3671. +    if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
  3672. +    if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
  3673. +else
  3674. +
  3675. +# If we're going to rename the final executable, determine the name now.
  3676. +
  3677. +    if [ x"$transformarg" = x ] 
  3678. +    then
  3679. +        dstfile=`basename $dst`
  3680. +    else
  3681. +        dstfile=`basename $dst $transformbasename | 
  3682. +            sed $transformarg`$transformbasename
  3683. +    fi
  3684. +
  3685. +# don't allow the sed command to completely eliminate the filename
  3686. +
  3687. +    if [ x"$dstfile" = x ] 
  3688. +    then
  3689. +        dstfile=`basename $dst`
  3690. +    else
  3691. +        true
  3692. +    fi
  3693. +
  3694. +# Make a temp file name in the proper directory.
  3695. +
  3696. +    dsttmp=$dstdir/#inst.$$#
  3697. +
  3698. +# Move or copy the file name to the temp name
  3699. +
  3700. +    $doit $instcmd $src $dsttmp &&
  3701. +
  3702. +    trap "rm -f ${dsttmp}" 0 &&
  3703. +
  3704. +# and set any options; do chmod last to preserve setuid bits
  3705. +
  3706. +# If any of these fail, we abort the whole thing.  If we want to
  3707. +# ignore errors from any of these, just make sure not to ignore
  3708. +# errors from the above "$doit $instcmd $src $dsttmp" command.
  3709. +
  3710. +    if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
  3711. +    if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
  3712. +    if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
  3713. +    if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
  3714. +
  3715. +# Now rename the file to the real destination.
  3716. +
  3717. +    $doit $rmcmd -f $dstdir/$dstfile &&
  3718. +    $doit $mvcmd $dsttmp $dstdir/$dstfile 
  3719. +
  3720. +fi &&
  3721. +
  3722. +
  3723. +exit 0
  3724. diff -rup --new-file baseline/bsd/libm/manifests/bin amiga/bsd/libm/manifests/bin
  3725. --- baseline/bsd/libm/manifests/bin    Wed Dec 31 17:00:00 1969
  3726. +++ amiga/bsd/libm/manifests/bin    Sat Sep 28 00:00:00 1996
  3727. @@ -0,0 +1 @@
  3728. +lib/libm.a
  3729. diff -rup --new-file baseline/bsd/libm/manifests/src amiga/bsd/libm/manifests/src
  3730. --- baseline/bsd/libm/manifests/src    Wed Dec 31 17:00:00 1969
  3731. +++ amiga/bsd/libm/manifests/src    Sat Oct  5 17:58:50 1996
  3732. @@ -0,0 +1,104 @@
  3733. +bsd/libm/Makefile.in
  3734. +bsd/libm/Product-Info
  3735. +bsd/libm/README
  3736. +bsd/libm/README-fnf
  3737. +bsd/libm/common/atan2.c
  3738. +bsd/libm/common/sincos.c
  3739. +bsd/libm/common/tan.c
  3740. +bsd/libm/common/trig.h
  3741. +bsd/libm/common_source/acos.3
  3742. +bsd/libm/common_source/acosh.3
  3743. +bsd/libm/common_source/acosh.c
  3744. +bsd/libm/common_source/asin.3
  3745. +bsd/libm/common_source/asincos.c
  3746. +bsd/libm/common_source/asinh.3
  3747. +bsd/libm/common_source/asinh.c
  3748. +bsd/libm/common_source/atan.3
  3749. +bsd/libm/common_source/atan.c
  3750. +bsd/libm/common_source/atan2.3
  3751. +bsd/libm/common_source/atanh.3
  3752. +bsd/libm/common_source/atanh.c
  3753. +bsd/libm/common_source/ceil.3
  3754. +bsd/libm/common_source/cos.3
  3755. +bsd/libm/common_source/cosh.3
  3756. +bsd/libm/common_source/cosh.c
  3757. +bsd/libm/common_source/erf.3
  3758. +bsd/libm/common_source/exp.3
  3759. +bsd/libm/common_source/exp.c
  3760. +bsd/libm/common_source/exp__E.c
  3761. +bsd/libm/common_source/expm1.c
  3762. +bsd/libm/common_source/fabs.3
  3763. +bsd/libm/common_source/floor.3
  3764. +bsd/libm/common_source/floor.c
  3765. +bsd/libm/common_source/fmod.3
  3766. +bsd/libm/common_source/fmod.c
  3767. +bsd/libm/common_source/hypot.3
  3768. +bsd/libm/common_source/ieee.3
  3769. +bsd/libm/common_source/infnan.3
  3770. +bsd/libm/common_source/j0.3
  3771. +bsd/libm/common_source/lgamma.3
  3772. +bsd/libm/common_source/log.c
  3773. +bsd/libm/common_source/log10.c
  3774. +bsd/libm/common_source/log1p.c
  3775. +bsd/libm/common_source/log__L.c
  3776. +bsd/libm/common_source/math.3
  3777. +bsd/libm/common_source/mathimpl.h
  3778. +bsd/libm/common_source/pow.c
  3779. +bsd/libm/common_source/rint.3
  3780. +bsd/libm/common_source/sin.3
  3781. +bsd/libm/common_source/sinh.3
  3782. +bsd/libm/common_source/sinh.c
  3783. +bsd/libm/common_source/sqrt.3
  3784. +bsd/libm/common_source/tan.3
  3785. +bsd/libm/common_source/tanh.3
  3786. +bsd/libm/common_source/tanh.c
  3787. +bsd/libm/config.guess
  3788. +bsd/libm/config.sub
  3789. +bsd/libm/configure
  3790. +bsd/libm/configure.in
  3791. +bsd/libm/ieee/cabs.c
  3792. +bsd/libm/ieee/cbrt.c
  3793. +bsd/libm/ieee/hypot.c
  3794. +bsd/libm/ieee/support.c
  3795. +bsd/libm/ieee/z_abs.c
  3796. +bsd/libm/install-sh
  3797. +bsd/libm/manifests/bin
  3798. +bsd/libm/manifests/src
  3799. +bsd/libm/mc68881/README
  3800. +bsd/libm/mc68881/asincos.s
  3801. +bsd/libm/mc68881/atan.s
  3802. +bsd/libm/mc68881/atan2.c
  3803. +bsd/libm/mc68881/atanh.s
  3804. +bsd/libm/mc68881/cosh.s
  3805. +bsd/libm/mc68881/exp.s
  3806. +bsd/libm/mc68881/expm1.s
  3807. +bsd/libm/mc68881/floor.s
  3808. +bsd/libm/mc68881/log.s
  3809. +bsd/libm/mc68881/log10.s
  3810. +bsd/libm/mc68881/log1p.s
  3811. +bsd/libm/mc68881/mcount.sed
  3812. +bsd/libm/mc68881/sincos.s
  3813. +bsd/libm/mc68881/sinh.s
  3814. +bsd/libm/mc68881/sqrt.s
  3815. +bsd/libm/mc68881/support.s
  3816. +bsd/libm/mc68881/tan.s
  3817. +bsd/libm/mc68881/tanh.s
  3818. +bsd/libm/national/mcount.sed
  3819. +bsd/libm/national/sqrt.s
  3820. +bsd/libm/national/support.s
  3821. +bsd/libm/tahoe/cabs.s
  3822. +bsd/libm/tahoe/cbrt.s
  3823. +bsd/libm/tahoe/infnan.s
  3824. +bsd/libm/tahoe/mcount.sed
  3825. +bsd/libm/tahoe/sqrt.s
  3826. +bsd/libm/tahoe/support.s
  3827. +bsd/libm/vax/argred.s
  3828. +bsd/libm/vax/atan2.s
  3829. +bsd/libm/vax/cabs.s
  3830. +bsd/libm/vax/cbrt.s
  3831. +bsd/libm/vax/infnan.s
  3832. +bsd/libm/vax/mcount.sed
  3833. +bsd/libm/vax/sincos.s
  3834. +bsd/libm/vax/sqrt.s
  3835. +bsd/libm/vax/support.s
  3836. +bsd/libm/vax/tan.s
  3837.