Tue Aug 15 15:54:06 2017 UTC ()
Fix a problem with MAKE_VERSION being undefined on case-insentive filesystems.

On case-insensitive filesystems such as MacOS, two files (Makefile and makefile,
which is created by configure from makefile.in) collide.  Only the former
defines MAKE_VERSION, but it is replaced by the latter.  Consequently,
MAKE_VERSION is defined as an empty string on these systems.  This patch is
the result of a discussion on tech-pkg (see the thread following
http://mail-index.netbsd.org/tech-pkg/2017/08/13/msg018629.html) and is
based upon code incorporated into bmake v20170812.


(brook)
diff -r1.7 -r1.8 pkgsrc/devel/bmake/files/FILES
diff -r1.2 -r1.3 pkgsrc/devel/bmake/files/Makefile
diff -r1.2 -r1.3 pkgsrc/devel/bmake/files/bsd.after-import.mk
diff -r1.1.1.1 -r1.2 pkgsrc/devel/bmake/files/Makefile.config.in
diff -r0 -r1.1 pkgsrc/devel/bmake/files/VERSION
diff -r1.15 -r1.16 pkgsrc/devel/bmake/files/configure
diff -r1.13 -r1.14 pkgsrc/devel/bmake/files/configure.in
diff -r1.5 -r1.6 pkgsrc/devel/bmake/files/make-bootstrap.sh.in

cvs diff -r1.7 -r1.8 pkgsrc/devel/bmake/files/FILES (switch to unified diff)

--- pkgsrc/devel/bmake/files/FILES 2015/05/19 22:01:19 1.7
+++ pkgsrc/devel/bmake/files/FILES 2017/08/15 15:54:06 1.8
@@ -1,167 +1,168 @@ @@ -1,167 +1,168 @@
1ChangeLog 1ChangeLog
2FILES 2FILES
3Makefile 3Makefile
4Makefile.config.in 4Makefile.config.in
5PSD.doc/Makefile 5PSD.doc/Makefile
6PSD.doc/tutorial.ms 6PSD.doc/tutorial.ms
7README 7README
 8VERSION
8aclocal.m4 9aclocal.m4
9arch.c 10arch.c
10bmake.1 11bmake.1
11bmake.cat1 12bmake.cat1
12boot-strap 13boot-strap
13bsd.after-import.mk 14bsd.after-import.mk
14buf.c 15buf.c
15buf.h 16buf.h
16compat.c 17compat.c
17cond.c 18cond.c
18config.h.in 19config.h.in
19configure 20configure
20configure.in 21configure.in
21dir.c 22dir.c
22dir.h 23dir.h
23dirname.c 24dirname.c
24find_lib.sh 25find_lib.sh
25for.c 26for.c
26getopt.c 27getopt.c
27hash.c 28hash.c
28hash.h 29hash.h
29install-sh 30install-sh
30job.c 31job.c
31job.h 32job.h
32lst.h 33lst.h
33lst.lib/Makefile 34lst.lib/Makefile
34lst.lib/lstAppend.c 35lst.lib/lstAppend.c
35lst.lib/lstAtEnd.c 36lst.lib/lstAtEnd.c
36lst.lib/lstAtFront.c 37lst.lib/lstAtFront.c
37lst.lib/lstClose.c 38lst.lib/lstClose.c
38lst.lib/lstConcat.c 39lst.lib/lstConcat.c
39lst.lib/lstDatum.c 40lst.lib/lstDatum.c
40lst.lib/lstDeQueue.c 41lst.lib/lstDeQueue.c
41lst.lib/lstDestroy.c 42lst.lib/lstDestroy.c
42lst.lib/lstDupl.c 43lst.lib/lstDupl.c
43lst.lib/lstEnQueue.c 44lst.lib/lstEnQueue.c
44lst.lib/lstFind.c 45lst.lib/lstFind.c
45lst.lib/lstFindFrom.c 46lst.lib/lstFindFrom.c
46lst.lib/lstFirst.c 47lst.lib/lstFirst.c
47lst.lib/lstForEach.c 48lst.lib/lstForEach.c
48lst.lib/lstForEachFrom.c 49lst.lib/lstForEachFrom.c
49lst.lib/lstInit.c 50lst.lib/lstInit.c
50lst.lib/lstInsert.c 51lst.lib/lstInsert.c
51lst.lib/lstInt.h 52lst.lib/lstInt.h
52lst.lib/lstIsAtEnd.c 53lst.lib/lstIsAtEnd.c
53lst.lib/lstIsEmpty.c 54lst.lib/lstIsEmpty.c
54lst.lib/lstLast.c 55lst.lib/lstLast.c
55lst.lib/lstMember.c 56lst.lib/lstMember.c
56lst.lib/lstNext.c 57lst.lib/lstNext.c
57lst.lib/lstOpen.c 58lst.lib/lstOpen.c
58lst.lib/lstPrev.c 59lst.lib/lstPrev.c
59lst.lib/lstRemove.c 60lst.lib/lstRemove.c
60lst.lib/lstReplace.c 61lst.lib/lstReplace.c
61lst.lib/lstSucc.c 62lst.lib/lstSucc.c
62machine.sh 63machine.sh
63main.c 64main.c
64make-bootstrap.sh.in 65make-bootstrap.sh.in
65make-conf.h 66make-conf.h
66make.1 67make.1
67make.c 68make.c
68make.h 69make.h
69make_malloc.c 70make_malloc.c
70make_malloc.h 71make_malloc.h
71makefile.in 72makefile.in
72meta.c 73meta.c
73meta.h 74meta.h
74missing/sys/cdefs.h 75missing/sys/cdefs.h
75mkdeps.sh 76mkdeps.sh
76nonints.h 77nonints.h
77os.sh 78os.sh
78parse.c 79parse.c
79pathnames.h 80pathnames.h
80ranlib.h 81ranlib.h
81realpath.c 82realpath.c
82setenv.c 83setenv.c
83sigcompat.c 84sigcompat.c
84sprite.h 85sprite.h
85str.c 86str.c
86stresep.c 87stresep.c
87strlcpy.c 88strlcpy.c
88strlist.c 89strlist.c
89strlist.h 90strlist.h
90suff.c 91suff.c
91targ.c 92targ.c
92trace.c 93trace.c
93trace.h 94trace.h
94unit-tests/Makefile.in 95unit-tests/Makefile.in
95unit-tests/comment.exp 96unit-tests/comment.exp
96unit-tests/comment.mk 97unit-tests/comment.mk
97unit-tests/cond1.exp 98unit-tests/cond1.exp
98unit-tests/cond1.mk 99unit-tests/cond1.mk
99unit-tests/cond2.exp 100unit-tests/cond2.exp
100unit-tests/cond2.mk 101unit-tests/cond2.mk
101unit-tests/doterror.exp 102unit-tests/doterror.exp
102unit-tests/doterror.mk 103unit-tests/doterror.mk
103unit-tests/dotwait.exp 104unit-tests/dotwait.exp
104unit-tests/dotwait.mk 105unit-tests/dotwait.mk
105unit-tests/error.exp 106unit-tests/error.exp
106unit-tests/error.mk 107unit-tests/error.mk
107unit-tests/escape.exp 108unit-tests/escape.exp
108unit-tests/escape.mk 109unit-tests/escape.mk
109unit-tests/export-all.exp 110unit-tests/export-all.exp
110unit-tests/export-all.mk 111unit-tests/export-all.mk
111unit-tests/export-env.exp 112unit-tests/export-env.exp
112unit-tests/export-env.mk 113unit-tests/export-env.mk
113unit-tests/export.exp 114unit-tests/export.exp
114unit-tests/export.mk 115unit-tests/export.mk
115unit-tests/forloop.exp 116unit-tests/forloop.exp
116unit-tests/forloop.mk 117unit-tests/forloop.mk
117unit-tests/forsubst.exp 118unit-tests/forsubst.exp
118unit-tests/forsubst.mk 119unit-tests/forsubst.mk
119unit-tests/hash.exp 120unit-tests/hash.exp
120unit-tests/hash.mk 121unit-tests/hash.mk
121unit-tests/impsrc.exp 122unit-tests/impsrc.exp
122unit-tests/impsrc.mk 123unit-tests/impsrc.mk
123unit-tests/misc.exp 124unit-tests/misc.exp
124unit-tests/misc.mk 125unit-tests/misc.mk
125unit-tests/moderrs.exp 126unit-tests/moderrs.exp
126unit-tests/moderrs.mk 127unit-tests/moderrs.mk
127unit-tests/modmatch.exp 128unit-tests/modmatch.exp
128unit-tests/modmatch.mk 129unit-tests/modmatch.mk
129unit-tests/modmisc.exp 130unit-tests/modmisc.exp
130unit-tests/modmisc.mk 131unit-tests/modmisc.mk
131unit-tests/modorder.exp 132unit-tests/modorder.exp
132unit-tests/modorder.mk 133unit-tests/modorder.mk
133unit-tests/modts.exp 134unit-tests/modts.exp
134unit-tests/modts.mk 135unit-tests/modts.mk
135unit-tests/modword.exp 136unit-tests/modword.exp
136unit-tests/modword.mk 137unit-tests/modword.mk
137unit-tests/order.exp 138unit-tests/order.exp
138unit-tests/order.mk 139unit-tests/order.mk
139unit-tests/phony-end.exp 140unit-tests/phony-end.exp
140unit-tests/phony-end.mk 141unit-tests/phony-end.mk
141unit-tests/posix.exp 142unit-tests/posix.exp
142unit-tests/posix.mk 143unit-tests/posix.mk
143unit-tests/posix1.exp 144unit-tests/posix1.exp
144unit-tests/posix1.mk 145unit-tests/posix1.mk
145unit-tests/qequals.exp 146unit-tests/qequals.exp
146unit-tests/qequals.mk 147unit-tests/qequals.mk
147unit-tests/suffixes.exp 148unit-tests/suffixes.exp
148unit-tests/suffixes.mk 149unit-tests/suffixes.mk
149unit-tests/sunshcmd.exp 150unit-tests/sunshcmd.exp
150unit-tests/sunshcmd.mk 151unit-tests/sunshcmd.mk
151unit-tests/sysv.exp 152unit-tests/sysv.exp
152unit-tests/sysv.mk 153unit-tests/sysv.mk
153unit-tests/ternary.exp 154unit-tests/ternary.exp
154unit-tests/ternary.mk 155unit-tests/ternary.mk
155unit-tests/unexport-env.exp 156unit-tests/unexport-env.exp
156unit-tests/unexport-env.mk 157unit-tests/unexport-env.mk
157unit-tests/unexport.exp 158unit-tests/unexport.exp
158unit-tests/unexport.mk 159unit-tests/unexport.mk
159unit-tests/varcmd.exp 160unit-tests/varcmd.exp
160unit-tests/varcmd.mk 161unit-tests/varcmd.mk
161unit-tests/varmisc.exp 162unit-tests/varmisc.exp
162unit-tests/varmisc.mk 163unit-tests/varmisc.mk
163unit-tests/varshell.exp 164unit-tests/varshell.exp
164unit-tests/varshell.mk 165unit-tests/varshell.mk
165util.c 166util.c
166var.c 167var.c
167wait.h 168wait.h

cvs diff -r1.2 -r1.3 pkgsrc/devel/bmake/files/Makefile (switch to unified diff)

--- pkgsrc/devel/bmake/files/Makefile 2015/05/19 22:01:19 1.2
+++ pkgsrc/devel/bmake/files/Makefile 2017/08/15 15:54:06 1.3
@@ -1,221 +1,220 @@ @@ -1,221 +1,220 @@
1# $Id: Makefile,v 1.2 2015/05/19 22:01:19 joerg Exp $ 1# $Id: Makefile,v 1.3 2017/08/15 15:54:06 brook Exp $
2 
3# Base version on src date 
4MAKE_VERSION= 20150505 
5 2
6PROG= bmake 3PROG= bmake
7 4
8SRCS= \ 5SRCS= \
9 arch.c \ 6 arch.c \
10 buf.c \ 7 buf.c \
11 compat.c \ 8 compat.c \
12 cond.c \ 9 cond.c \
13 dir.c \ 10 dir.c \
14 for.c \ 11 for.c \
15 hash.c \ 12 hash.c \
16 job.c \ 13 job.c \
17 main.c \ 14 main.c \
18 make.c \ 15 make.c \
19 make_malloc.c \ 16 make_malloc.c \
20 meta.c \ 17 meta.c \
21 parse.c \ 18 parse.c \
22 str.c \ 19 str.c \
23 strlist.c \ 20 strlist.c \
24 suff.c \ 21 suff.c \
25 targ.c \ 22 targ.c \
26 trace.c \ 23 trace.c \
27 util.c \ 24 util.c \
28 var.c 25 var.c
29 26
30# from lst.lib/ 27# from lst.lib/
31SRCS+= \ 28SRCS+= \
32 lstAppend.c \ 29 lstAppend.c \
33 lstAtEnd.c \ 30 lstAtEnd.c \
34 lstAtFront.c \ 31 lstAtFront.c \
35 lstClose.c \ 32 lstClose.c \
36 lstConcat.c \ 33 lstConcat.c \
37 lstDatum.c \ 34 lstDatum.c \
38 lstDeQueue.c \ 35 lstDeQueue.c \
39 lstDestroy.c \ 36 lstDestroy.c \
40 lstDupl.c \ 37 lstDupl.c \
41 lstEnQueue.c \ 38 lstEnQueue.c \
42 lstFind.c \ 39 lstFind.c \
43 lstFindFrom.c \ 40 lstFindFrom.c \
44 lstFirst.c \ 41 lstFirst.c \
45 lstForEach.c \ 42 lstForEach.c \
46 lstForEachFrom.c \ 43 lstForEachFrom.c \
47 lstInit.c \ 44 lstInit.c \
48 lstInsert.c \ 45 lstInsert.c \
49 lstIsAtEnd.c \ 46 lstIsAtEnd.c \
50 lstIsEmpty.c \ 47 lstIsEmpty.c \
51 lstLast.c \ 48 lstLast.c \
52 lstMember.c \ 49 lstMember.c \
53 lstNext.c \ 50 lstNext.c \
54 lstOpen.c \ 51 lstOpen.c \
55 lstPrev.c \ 52 lstPrev.c \
56 lstRemove.c \ 53 lstRemove.c \
57 lstReplace.c \ 54 lstReplace.c \
58 lstSucc.c 55 lstSucc.c
59 56
 57.-include "VERSION"
 58
60# this file gets generated by configure 59# this file gets generated by configure
61.-include "Makefile.config" 60.-include "Makefile.config"
62 61
63.if !empty(LIBOBJS) 62.if !empty(LIBOBJS)
64SRCS+= ${LIBOBJS:T:.o=.c} 63SRCS+= ${LIBOBJS:T:.o=.c}
65.endif 64.endif
66 65
67# just in case 66# just in case
68prefix?= /usr 67prefix?= /usr
69srcdir?= ${.CURDIR} 68srcdir?= ${.CURDIR}
70 69
71DEFAULT_SYS_PATH?= ${prefix}/share/mk 70DEFAULT_SYS_PATH?= ${prefix}/share/mk
72 71
73CPPFLAGS+= -DUSE_META 72CPPFLAGS+= -DUSE_META
74CFLAGS+= ${CPPFLAGS} 73CFLAGS+= ${CPPFLAGS}
75CFLAGS+= -D_PATH_DEFSYSPATH=\"${DEFAULT_SYS_PATH}\" 74CFLAGS+= -D_PATH_DEFSYSPATH=\"${DEFAULT_SYS_PATH}\"
76CFLAGS+= -I. -I${srcdir} ${XDEFS} -DMAKE_NATIVE 75CFLAGS+= -I. -I${srcdir} ${XDEFS} -DMAKE_NATIVE
77CFLAGS+= ${COPTS.${.ALLSRC:M*.c:T:u}} 76CFLAGS+= ${COPTS.${.ALLSRC:M*.c:T:u}}
78COPTS.main.c+= "-DMAKE_VERSION=\"${MAKE_VERSION}\"" 77COPTS.main.c+= "-DMAKE_VERSION=\"${MAKE_VERSION}\""
79 78
80# meta mode can be useful even without filemon  79# meta mode can be useful even without filemon
81FILEMON_H ?= /usr/include/dev/filemon/filemon.h 80FILEMON_H ?= /usr/include/dev/filemon/filemon.h
82.if exists(${FILEMON_H}) && ${FILEMON_H:T} == "filemon.h" 81.if exists(${FILEMON_H}) && ${FILEMON_H:T} == "filemon.h"
83COPTS.meta.c += -DHAVE_FILEMON_H -I${FILEMON_H:H} 82COPTS.meta.c += -DHAVE_FILEMON_H -I${FILEMON_H:H}
84.endif 83.endif
85 84
86.PATH: ${srcdir} 85.PATH: ${srcdir}
87.PATH: ${srcdir}/lst.lib 86.PATH: ${srcdir}/lst.lib
88 87
89.if make(obj) || make(clean) 88.if make(obj) || make(clean)
90SUBDIR+= unit-tests 89SUBDIR+= unit-tests
91.endif 90.endif
92 91
93# start-delete1 for bsd.after-import.mk 92# start-delete1 for bsd.after-import.mk
94# we skip a lot of this when building as part of FreeBSD etc. 93# we skip a lot of this when building as part of FreeBSD etc.
95 94
96# list of OS's which are derrived from BSD4.4 95# list of OS's which are derrived from BSD4.4
97BSD44_LIST= NetBSD FreeBSD OpenBSD DragonFly MirBSD Bitrig 96BSD44_LIST= NetBSD FreeBSD OpenBSD DragonFly MirBSD Bitrig
98# we are... 97# we are...
99OS!= uname -s 98OS!= uname -s
100# are we 4.4BSD ? 99# are we 4.4BSD ?
101isBSD44:=${BSD44_LIST:M${OS}} 100isBSD44:=${BSD44_LIST:M${OS}}
102 101
103.if ${isBSD44} == "" 102.if ${isBSD44} == ""
104MANTARGET= cat 103MANTARGET= cat
105INSTALL?=${srcdir}/install-sh 104INSTALL?=${srcdir}/install-sh
106.if (${MACHINE} == "sun386") 105.if (${MACHINE} == "sun386")
107# even I don't have one of these anymore :-) 106# even I don't have one of these anymore :-)
108CFLAGS+= -DPORTAR 107CFLAGS+= -DPORTAR
109.elif (${MACHINE} != "sunos") 108.elif (${MACHINE} != "sunos")
110SRCS+= sigcompat.c 109SRCS+= sigcompat.c
111CFLAGS+= -DSIGNAL_FLAGS=SA_RESTART 110CFLAGS+= -DSIGNAL_FLAGS=SA_RESTART
112.endif 111.endif
113.else 112.else
114MANTARGET?= man 113MANTARGET?= man
115.endif 114.endif
116 115
117# turn this on by default - ignored if we are root 116# turn this on by default - ignored if we are root
118WITH_INSTALL_AS_USER= 117WITH_INSTALL_AS_USER=
119 118
120# suppress with -DWITHOUT_* 119# suppress with -DWITHOUT_*
121OPTIONS_DEFAULT_YES+= \ 120OPTIONS_DEFAULT_YES+= \
122 AUTOCONF_MK \ 121 AUTOCONF_MK \
123 INSTALL_MK \ 122 INSTALL_MK \
124 PROG_LINK 123 PROG_LINK
125 124
126OPTIONS_DEFAULT_NO+= \ 125OPTIONS_DEFAULT_NO+= \
127 PROG_VERSION 126 PROG_VERSION
128 127
129# process options now 128# process options now
130.include <own.mk> 129.include <own.mk>
131 130
132.if ${MK_PROG_VERSION} == "yes" 131.if ${MK_PROG_VERSION} == "yes"
133PROG_NAME= ${PROG}-${MAKE_VERSION} 132PROG_NAME= ${PROG}-${MAKE_VERSION}
134.if ${MK_PROG_LINK} == "yes" 133.if ${MK_PROG_LINK} == "yes"
135SYMLINKS+= ${PROG}-${MAKE_VERSION} ${BINDIR}/${PROG} 134SYMLINKS+= ${PROG}-${MAKE_VERSION} ${BINDIR}/${PROG}
136.endif 135.endif
137.endif 136.endif
138 137
139EXTRACT_MAN=no 138EXTRACT_MAN=no
140# end-delete1 139# end-delete1
141 140
142MAN= ${PROG}.1 141MAN= ${PROG}.1
143MAN1= ${MAN} 142MAN1= ${MAN}
144 143
145.if (${PROG} != "make") 144.if (${PROG} != "make")
146CLEANFILES+= my.history 145CLEANFILES+= my.history
147.if make(${MAN}) || !exists(${srcdir}/${MAN}) 146.if make(${MAN}) || !exists(${srcdir}/${MAN})
148my.history: ${MAKEFILE} 147my.history: ${MAKEFILE}
149 @(echo ".Nm"; \ 148 @(echo ".Nm"; \
150 echo "is derived from NetBSD"; \ 149 echo "is derived from NetBSD"; \
151 echo ".Xr make 1 ."; \ 150 echo ".Xr make 1 ."; \
152 echo "It uses autoconf to facilitate portability to other platforms."; \ 151 echo "It uses autoconf to facilitate portability to other platforms."; \
153 echo ".Pp") > $@ 152 echo ".Pp") > $@
154 153
155.NOPATH: ${MAN} 154.NOPATH: ${MAN}
156${MAN}: make.1 my.history 155${MAN}: make.1 my.history
157 @echo making $@ 156 @echo making $@
158 @sed -e 's/^.Nx/NetBSD/' -e '/^.Nm/s/make/${PROG}/' \ 157 @sed -e 's/^.Nx/NetBSD/' -e '/^.Nm/s/make/${PROG}/' \
159 -e '/^.Sh HISTORY/rmy.history' \ 158 -e '/^.Sh HISTORY/rmy.history' \
160 -e '/^.Sh HISTORY/,$$s,^.Nm,make,' ${srcdir}/make.1 > $@ 159 -e '/^.Sh HISTORY/,$$s,^.Nm,make,' ${srcdir}/make.1 > $@
161 160
162all beforeinstall: ${MAN} 161all beforeinstall: ${MAN}
163_mfromdir=. 162_mfromdir=.
164.endif 163.endif
165.endif 164.endif
166 165
167MANTARGET?= cat 166MANTARGET?= cat
168MANDEST?= ${MANDIR}/${MANTARGET}1 167MANDEST?= ${MANDIR}/${MANTARGET}1
169 168
170.if ${MANTARGET} == "cat" 169.if ${MANTARGET} == "cat"
171_mfromdir=${srcdir} 170_mfromdir=${srcdir}
172.endif 171.endif
173 172
174.include <prog.mk> 173.include <prog.mk>
175 174
176CPPFLAGS+= -DMAKE_NATIVE -DHAVE_CONFIG_H 175CPPFLAGS+= -DMAKE_NATIVE -DHAVE_CONFIG_H
177COPTS.var.c += -Wno-cast-qual 176COPTS.var.c += -Wno-cast-qual
178COPTS.job.c += -Wno-format-nonliteral 177COPTS.job.c += -Wno-format-nonliteral
179COPTS.parse.c += -Wno-format-nonliteral 178COPTS.parse.c += -Wno-format-nonliteral
180COPTS.var.c += -Wno-format-nonliteral 179COPTS.var.c += -Wno-format-nonliteral
181 180
182# Force these 181# Force these
183SHAREDIR= ${SHAREDIR.bmake:U${prefix}/share} 182SHAREDIR= ${SHAREDIR.bmake:U${prefix}/share}
184BINDIR= ${BINDIR.bmake:U${prefix}/bin} 183BINDIR= ${BINDIR.bmake:U${prefix}/bin}
185MANDIR= ${MANDIR.bmake:U${SHAREDIR}/man} 184MANDIR= ${MANDIR.bmake:U${SHAREDIR}/man}
186 185
187.if !exists(.depend) 186.if !exists(.depend)
188${OBJS}: config.h 187${OBJS}: config.h
189.endif 188.endif
190 189
191# make sure that MAKE_VERSION gets updated. 190# make sure that MAKE_VERSION gets updated.
192main.o: ${SRCS} ${MAKEFILE} 191main.o: ${SRCS} ${MAKEFILE}
193 192
194# start-delete2 for bsd.after-import.mk 193# start-delete2 for bsd.after-import.mk
195.if ${MK_AUTOCONF_MK} == "yes" 194.if ${MK_AUTOCONF_MK} == "yes"
196.include <autoconf.mk> 195.include <autoconf.mk>
197.endif 196.endif
198SHARE_MK?=${SHAREDIR}/mk 197SHARE_MK?=${SHAREDIR}/mk
199MKSRC=${srcdir}/mk 198MKSRC=${srcdir}/mk
200INSTALL?=${srcdir}/install-sh 199INSTALL?=${srcdir}/install-sh
201 200
202.if ${MK_INSTALL_MK} == "yes" 201.if ${MK_INSTALL_MK} == "yes"
203install: install-mk 202install: install-mk
204.endif 203.endif
205 204
206beforeinstall: 205beforeinstall:
207 test -d ${DESTDIR}${BINDIR} || ${INSTALL} -m 775 -d ${DESTDIR}${BINDIR} 206 test -d ${DESTDIR}${BINDIR} || ${INSTALL} -m 775 -d ${DESTDIR}${BINDIR}
208 test -d ${DESTDIR}${MANDEST} || ${INSTALL} -m 775 -d ${DESTDIR}${MANDEST} 207 test -d ${DESTDIR}${MANDEST} || ${INSTALL} -m 775 -d ${DESTDIR}${MANDEST}
209 208
210install-mk: 209install-mk:
211.if exists(${MKSRC}/install-mk) 210.if exists(${MKSRC}/install-mk)
212 test -d ${DESTDIR}${SHARE_MK} || ${INSTALL} -m 775 -d ${DESTDIR}${SHARE_MK} 211 test -d ${DESTDIR}${SHARE_MK} || ${INSTALL} -m 775 -d ${DESTDIR}${SHARE_MK}
213 sh ${MKSRC}/install-mk -v -m 644 ${DESTDIR}${SHARE_MK} 212 sh ${MKSRC}/install-mk -v -m 644 ${DESTDIR}${SHARE_MK}
214.else 213.else
215 @echo need to unpack mk.tar.gz under ${srcdir} or set MKSRC; false 214 @echo need to unpack mk.tar.gz under ${srcdir} or set MKSRC; false
216.endif 215.endif
217# end-delete2 216# end-delete2
218 217
219# A simple unit-test driver to help catch regressions 218# A simple unit-test driver to help catch regressions
220accept test: 219accept test:
221 cd ${.CURDIR}/unit-tests && MAKEFLAGS= ${.MAKE} -r -m / TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET} 220 cd ${.CURDIR}/unit-tests && MAKEFLAGS= ${.MAKE} -r -m / TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET}

cvs diff -r1.2 -r1.3 pkgsrc/devel/bmake/files/bsd.after-import.mk (switch to unified diff)

--- pkgsrc/devel/bmake/files/bsd.after-import.mk 2015/05/19 22:01:19 1.2
+++ pkgsrc/devel/bmake/files/bsd.after-import.mk 2017/08/15 15:54:06 1.3
@@ -1,111 +1,112 @@ @@ -1,111 +1,112 @@
1# $Id: bsd.after-import.mk,v 1.2 2015/05/19 22:01:19 joerg Exp $ 1# $Id: bsd.after-import.mk,v 1.3 2017/08/15 15:54:06 brook Exp $
2 2
3# This makefile is for use when integrating bmake into a BSD build 3# This makefile is for use when integrating bmake into a BSD build
4# system. Use this makefile after importing bmake. 4# system. Use this makefile after importing bmake.
5# It will bootstrap the new version, 5# It will bootstrap the new version,
6# capture the generated files we need, and add an after-import 6# capture the generated files we need, and add an after-import
7# target to allow the process to be easily repeated. 7# target to allow the process to be easily repeated.
8 8
9# The goal is to allow the benefits of autoconf without 9# The goal is to allow the benefits of autoconf without
10# the overhead of running configure. 10# the overhead of running configure.
11 11
12all: _makefile 12all: _makefile
13all: after-import 13all: after-import
14 14
15# we rely on bmake 15# we rely on bmake
16.if !defined(.PARSEDIR) 16.if !defined(.PARSEDIR)
17.error this makefile requires bmake 17.error this makefile requires bmake
18.endif 18.endif
19 19
20_this := ${MAKEFILE:tA}  20_this := ${MAKEFILE:tA}
21BMAKE_SRC := ${.PARSEDIR} 21BMAKE_SRC := ${.PARSEDIR}
22 22
23# it helps to know where the top of the tree is. 23# it helps to know where the top of the tree is.
24.if !defined(SRCTOP) 24.if !defined(SRCTOP)
25srctop := ${.MAKE.MAKEFILES:M*src/share/mk/sys.mk:H:H:H} 25srctop := ${.MAKE.MAKEFILES:M*src/share/mk/sys.mk:H:H:H}
26.if empty(srctop) 26.if empty(srctop)
27# likely locations? 27# likely locations?
28.for d in contrib/bmake external/bsd/bmake/dist 28.for d in contrib/bmake external/bsd/bmake/dist
29.if ${BMAKE_SRC:M*/$d} != "" 29.if ${BMAKE_SRC:M*/$d} != ""
30srctop := ${BMAKE_SRC:tA:S,/$d,,} 30srctop := ${BMAKE_SRC:tA:S,/$d,,}
31.endif 31.endif
32.endfor 32.endfor
33.endif 33.endif
34.if !empty(srctop) 34.if !empty(srctop)
35SRCTOP := ${srctop} 35SRCTOP := ${srctop}
36.endif 36.endif
37.endif 37.endif
38 38
39# This lets us match what boot-strap does 39# This lets us match what boot-strap does
40.if !defined(HOST_OS) 40.if !defined(HOST_OS)
41HOST_OS!= uname 41HOST_OS!= uname
42.endif 42.endif
43 43
44BOOTSTRAP_ARGS = \ 44BOOTSTRAP_ARGS = \
45 --prefix /usr \ 45 --prefix /usr \
46 --share /usr/share 46 --share /usr/share
47 47
48.if !empty(DEFAULT_SYS_PATH) 48.if !empty(DEFAULT_SYS_PATH)
49BOOTSTRAP_ARGS += --with-default-sys-path='${DEFAULT_SYS_PATH}' 49BOOTSTRAP_ARGS += --with-default-sys-path='${DEFAULT_SYS_PATH}'
50.endif 50.endif
51 51
52# run boot-strap with minimal influence 52# run boot-strap with minimal influence
53bootstrap: ${BMAKE_SRC}/boot-strap ${MAKEFILE} 53bootstrap: ${BMAKE_SRC}/boot-strap ${MAKEFILE}
54 HOME=/ ${BMAKE_SRC}/boot-strap -o ${HOST_OS} ${BOOTSTRAP_ARGS} ${BOOTSTRAP_XTRAS} 54 HOME=/ ${BMAKE_SRC}/boot-strap -o ${HOST_OS} ${BOOTSTRAP_ARGS} ${BOOTSTRAP_XTRAS}
55 touch ${.TARGET} 55 touch ${.TARGET}
56 56
57# Makefiles need a little more tweaking than say config.h 57# Makefiles need a little more tweaking than say config.h
58MAKEFILE_SED = sed -e '/^MACHINE/d' \ 58MAKEFILE_SED = sed -e '/^MACHINE/d' \
 59 -e '/include.*VERSION/d' \
59 -e '/^PROG/ { s,=,?=,;s,bmake,$${.CURDIR:T},; }' \ 60 -e '/^PROG/ { s,=,?=,;s,bmake,$${.CURDIR:T},; }' \
60 -e 's,^.-include,.sinclude,' \ 61 -e 's,^.-include,.sinclude,' \
61 -e '/^\..*include *</ { s,<,<bsd.,;/autoconf/d; }' \ 62 -e '/^\..*include *</ { s,<,<bsd.,;/autoconf/d; }' \
62 -e 's,${SRCTOP},$${SRCTOP},g' 63 -e 's,${SRCTOP},$${SRCTOP},g'
63 64
64# These are the simple files we want to capture 65# These are the simple files we want to capture
65configured_files= config.h Makefile.config unit-tests/Makefile 66configured_files= config.h Makefile.config unit-tests/Makefile
66 67
67after-import: bootstrap ${MAKEFILE} 68after-import: bootstrap ${MAKEFILE}
68.for f in ${configured_files:M*.[ch]} 69.for f in ${configured_files:M*.[ch]}
69 @echo Capturing $f 70 @echo Capturing $f
70 @mkdir -p ${${.CURDIR}/$f:L:H} 71 @mkdir -p ${${.CURDIR}/$f:L:H}
71 @(echo '/* $$${HOST_OS}$$ */'; cat ${HOST_OS}/$f) > ${.CURDIR}/$f 72 @(echo '/* $$${HOST_OS}$$ */'; cat ${HOST_OS}/$f) > ${.CURDIR}/$f
72.endfor 73.endfor
73.for f in ${configured_files:M*Makefile*} 74.for f in ${configured_files:M*Makefile*}
74 @echo Capturing $f 75 @echo Capturing $f
75 @mkdir -p ${${.CURDIR}/$f:L:H} 76 @mkdir -p ${${.CURDIR}/$f:L:H}
76 @(echo '# This is a generated file, do NOT edit!'; \ 77 @(echo '# This is a generated file, do NOT edit!'; \
77 echo '# See ${_this:S,${SRCTOP}/,,}'; \ 78 echo '# See ${_this:S,${SRCTOP}/,,}'; \
78 echo '#'; echo '# $$${HOST_OS}$$'; echo; \ 79 echo '#'; echo '# $$${HOST_OS}$$'; echo; \
79 echo 'SRCTOP?= $${.CURDIR:${${.CURDIR}/$f:L:H:S,${SRCTOP}/,,:C,[^/]+,H,g:S,/,:,g}}'; echo; \ 80 echo 'SRCTOP?= $${.CURDIR:${${.CURDIR}/$f:L:H:S,${SRCTOP}/,,:C,[^/]+,H,g:S,/,:,g}}'; echo; \
80 ${MAKEFILE_SED} ${HOST_OS}/$f ) > ${.CURDIR}/$f 81 ${MAKEFILE_SED} ${HOST_OS}/$f ) > ${.CURDIR}/$f
81.endfor 82.endfor
82 83
83# this needs the most work 84# this needs the most work
84_makefile: bootstrap ${MAKEFILE} 85_makefile: bootstrap ${MAKEFILE}
85 @echo Generating ${.CURDIR}/Makefile 86 @echo Generating ${.CURDIR}/Makefile
86 @(echo '# This is a generated file, do NOT edit!'; \ 87 @(echo '# This is a generated file, do NOT edit!'; \
87 echo '# See ${_this:S,${SRCTOP}/,,}'; \ 88 echo '# See ${_this:S,${SRCTOP}/,,}'; \
88 echo '#'; echo '# $$${HOST_OS}$$'; \ 89 echo '#'; echo '# $$${HOST_OS}$$'; \
89 echo; echo '.sinclude "Makefile.inc"'; \ 90 echo; echo '.sinclude "Makefile.inc"'; \
90 echo; echo 'SRCTOP?= $${.CURDIR:${.CURDIR:S,${SRCTOP}/,,:C,[^/]+,H,g:S,/,:,g}}'; \ 91 echo; echo 'SRCTOP?= $${.CURDIR:${.CURDIR:S,${SRCTOP}/,,:C,[^/]+,H,g:S,/,:,g}}'; \
91 echo; echo '# look here first for config.h'; \ 92 echo; echo '# look here first for config.h'; \
92 echo 'CFLAGS+= -I$${.CURDIR}'; echo; \ 93 echo 'CFLAGS+= -I$${.CURDIR}'; echo; \
93 echo '# for after-import'; \ 94 echo '# for after-import'; \
94 echo 'CLEANDIRS+= ${HOST_OS}'; \ 95 echo 'CLEANDIRS+= ${HOST_OS}'; \
95 echo 'CLEANFILES+= bootstrap'; echo; \ 96 echo 'CLEANFILES+= bootstrap'; echo; \
96 ${MAKEFILE_SED} \ 97 ${MAKEFILE_SED} \
97 ${1 2:L:@n@-e '/start-delete$n/,/end-delete$n/d'@} \ 98 ${1 2:L:@n@-e '/start-delete$n/,/end-delete$n/d'@} \
98 ${BMAKE_SRC}/Makefile; \ 99 ${BMAKE_SRC}/Makefile; \
99 echo; echo '# override some simple things'; \ 100 echo; echo '# override some simple things'; \
100 echo 'BINDIR= /usr/bin'; \ 101 echo 'BINDIR= /usr/bin'; \
101 echo 'MANDIR= ${MANDIR:U/usr/share/man}'; \ 102 echo 'MANDIR= ${MANDIR:U/usr/share/man}'; \
102 echo; echo '# make sure we get this'; \ 103 echo; echo '# make sure we get this'; \
103 echo 'CFLAGS+= $${COPTS.$${.IMPSRC:T}}'; \ 104 echo 'CFLAGS+= $${COPTS.$${.IMPSRC:T}}'; \
104 echo; echo 'after-import: ${_this:S,${SRCTOP},\${SRCTOP},}'; \ 105 echo; echo 'after-import: ${_this:S,${SRCTOP},\${SRCTOP},}'; \
105 echo ' cd $${.CURDIR} && $${.MAKE} -f ${_this:S,${SRCTOP},\${SRCTOP},}'; \ 106 echo ' cd $${.CURDIR} && $${.MAKE} -f ${_this:S,${SRCTOP},\${SRCTOP},}'; \
106 echo ) > ${.TARGET} 107 echo ) > ${.TARGET}
107 @cmp -s ${.TARGET} ${.CURDIR}/Makefile || \ 108 @cmp -s ${.TARGET} ${.CURDIR}/Makefile || \
108 mv ${.TARGET} ${.CURDIR}/Makefile 109 mv ${.TARGET} ${.CURDIR}/Makefile
109 110
110.include <bsd.obj.mk> 111.include <bsd.obj.mk>
111 112

cvs diff -r1.1.1.1 -r1.2 pkgsrc/devel/bmake/files/Makefile.config.in (switch to unified diff)

--- pkgsrc/devel/bmake/files/Makefile.config.in 2015/05/19 21:36:43 1.1.1.1
+++ pkgsrc/devel/bmake/files/Makefile.config.in 2017/08/15 15:54:06 1.2
@@ -1,20 +1,22 @@ @@ -1,20 +1,22 @@
1# things set by configure 1# things set by configure
2 2
 3_MAKE_VERSION=@_MAKE_VERSION@
 4
3prefix= @prefix@ 5prefix= @prefix@
4srcdir= @srcdir@ 6srcdir= @srcdir@
5CC?= @CC@ 7CC?= @CC@
6MACHINE= @machine@ 8MACHINE= @machine@
7MACHINE_ARCH= @machine_arch@ 9MACHINE_ARCH= @machine_arch@
8DEFAULT_SYS_PATH= @default_sys_path@ 10DEFAULT_SYS_PATH= @default_sys_path@
9 11
10CPPFLAGS+= @CPPFLAGS@ 12CPPFLAGS+= @CPPFLAGS@
11CFLAGS+= ${CPPFLAGS} @DEFS@ 13CFLAGS+= ${CPPFLAGS} @DEFS@
12LDFLAGS= @LDFLAGS@ 14LDFLAGS= @LDFLAGS@
13LIBOBJS= @LIBOBJS@ 15LIBOBJS= @LIBOBJS@
14LDADD= @LIBS@ 16LDADD= @LIBS@
15USE_META= @use_meta@ 17USE_META= @use_meta@
16FILEMON_H= @filemon_h@ 18FILEMON_H= @filemon_h@
17BMAKE_PATH_MAX?= @bmake_path_max@ 19BMAKE_PATH_MAX?= @bmake_path_max@
18# used if MAXPATHLEN not defined 20# used if MAXPATHLEN not defined
19CPPFLAGS+= -DBMAKE_PATH_MAX=${BMAKE_PATH_MAX} 21CPPFLAGS+= -DBMAKE_PATH_MAX=${BMAKE_PATH_MAX}
20 22

File Added: pkgsrc/devel/bmake/files/VERSION
# keep this compatible with sh and make
_MAKE_VERSION=20150505

cvs diff -r1.15 -r1.16 pkgsrc/devel/bmake/files/configure (switch to unified diff)

--- pkgsrc/devel/bmake/files/configure 2015/05/19 22:01:19 1.15
+++ pkgsrc/devel/bmake/files/configure 2017/08/15 15:54:06 1.16
@@ -1,3264 +1,3267 @@ @@ -1,3264 +1,3267 @@
1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for bmake 20140214. 3# Generated by GNU Autoconf 2.64 for bmake 20140214.
4# 4#
5# Report bugs to <sjg@NetBSD.org>. 5# Report bugs to <sjg@NetBSD.org>.
6# 6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc. 9# Foundation, Inc.
10# 10#
11# This configure script is free software; the Free Software Foundation 11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it. 12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ## 13## -------------------- ##
14## M4sh Initialization. ## 14## M4sh Initialization. ##
15## -------------------- ## 15## -------------------- ##
16 16
17# Be more Bourne compatible 17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh 18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh 20 emulate sh
21 NULLCMD=: 21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature. 23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"' 24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST 25 setopt NO_GLOB_SUBST
26else 26else
27 case `(set -o) 2>/dev/null` in #( 27 case `(set -o) 2>/dev/null` in #(
28 *posix*) : 28 *posix*) :
29 set -o posix ;; #( 29 set -o posix ;; #(
30 *) : 30 *) :
31 ;; 31 ;;
32esac 32esac
33fi 33fi
34 34
35 35
36as_nl=' 36as_nl='
37' 37'
38export as_nl 38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf. 39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris, 43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh. 44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \ 45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --' 47 as_echo='print -r --'
48 as_echo_n='print -rn --' 48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n' 50 as_echo='printf %s\n'
51 as_echo_n='printf %s' 51 as_echo_n='printf %s'
52else 52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n' 55 as_echo_n='/usr/ucb/echo -n'
56 else 56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval 58 as_echo_n_body='eval
59 arg=$1; 59 arg=$1;
60 case $arg in #( 60 case $arg in #(
61 *"$as_nl"*) 61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl"; 62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac; 64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 ' 66 '
67 export as_echo_n_body 67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo' 68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi 69 fi
70 export as_echo_body 70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo' 71 as_echo='sh -c $as_echo_body as_echo'
72fi 72fi
73 73
74# The user is always right. 74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then 75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=: 76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';' 79 PATH_SEPARATOR=';'
80 } 80 }
81fi 81fi
82 82
83 83
84# IFS 84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is 85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab. 86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.) 88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl" 89IFS=" "" $as_nl"
90 90
91# Find who we are. Look in the path if we contain no directory separator. 91# Find who we are. Look in the path if we contain no directory separator.
92case $0 in #(( 92case $0 in #((
93 *[\\/]* ) as_myself=$0 ;; 93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH 95for as_dir in $PATH
96do 96do
97 IFS=$as_save_IFS 97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=. 98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done 100 done
101IFS=$as_save_IFS 101IFS=$as_save_IFS
102 102
103 ;; 103 ;;
104esac 104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND' 105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path. 106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then 107if test "x$as_myself" = x; then
108 as_myself=$0 108 as_myself=$0
109fi 109fi
110if test ! -f "$as_myself"; then 110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1 112 exit 1
113fi 113fi
114 114
115# Unset variables that we do not need and which cause bugs (e.g. in 115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could 117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14. 118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH 119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \ 120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done 122done
123PS1='$ ' 123PS1='$ '
124PS2='> ' 124PS2='> '
125PS4='+ ' 125PS4='+ '
126 126
127# NLS nuisances. 127# NLS nuisances.
128LC_ALL=C 128LC_ALL=C
129export LC_ALL 129export LC_ALL
130LANGUAGE=C 130LANGUAGE=C
131export LANGUAGE 131export LANGUAGE
132 132
133# CDPATH. 133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 135
136if test "x$CONFIG_SHELL" = x; then 136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh 138 emulate sh
139 NULLCMD=: 139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature. 141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST 143 setopt NO_GLOB_SUBST
144else 144else
145 case \`(set -o) 2>/dev/null\` in #( 145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) : 146 *posix*) :
147 set -o posix ;; #( 147 set -o posix ;; #(
148 *) : 148 *) :
149 ;; 149 ;;
150esac 150esac
151fi 151fi
152" 152"
153 as_required="as_fn_return () { (exit \$1); } 153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; } 154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; } 155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; } 156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; } 157as_fn_ret_failure () { return 1; }
158 158
159exitcode=0 159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 165
166else 166else
167 exitcode=1; echo positional parameters were not saved. 167 exitcode=1; echo positional parameters were not saved.
168fi 168fi
169test x\$exitcode = x0 || exit 1" 169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1" 174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then : 175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes 176 as_have_required=yes
177else 177else
178 as_have_required=no 178 as_have_required=no
179fi 179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 181
182else 182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false 184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do 186do
187 IFS=$as_save_IFS 187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=. 188 test -z "$as_dir" && as_dir=.
189 as_found=: 189 as_found=:
190 case $as_dir in #( 190 case $as_dir in #(
191 /*) 191 /*)
192 for as_base in sh bash ksh sh5; do 192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks. 193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base 194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes 197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2 199 break 2
200fi 200fi
201fi 201fi
202 done;; 202 done;;
203 esac 203 esac
204 as_found=false 204 as_found=false
205done 205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes 208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; } 209fi; }
210IFS=$as_save_IFS 210IFS=$as_save_IFS
211 211
212 212
213 if test "x$CONFIG_SHELL" != x; then : 213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a 214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also 215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables. 216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null 217 BASH_ENV=/dev/null
218 ENV=/dev/null 218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL 220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi 222fi
223 223
224 if test x$as_have_required = xno; then : 224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all" 225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system." 226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then 227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else 230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and sjg@NetBSD.org 231 $as_echo "$0: Please tell bug-autoconf@gnu.org and sjg@NetBSD.org
232$0: about your system, including any error possibly output 232$0: about your system, including any error possibly output
233$0: before this message. Then install a modern shell, or 233$0: before this message. Then install a modern shell, or
234$0: manually run the script under such a shell if you do 234$0: manually run the script under such a shell if you do
235$0: have one." 235$0: have one."
236 fi 236 fi
237 exit 1 237 exit 1
238fi 238fi
239fi 239fi
240fi 240fi
241SHELL=${CONFIG_SHELL-/bin/sh} 241SHELL=${CONFIG_SHELL-/bin/sh}
242export SHELL 242export SHELL
243# Unset more variables known to interfere with behavior of common tools. 243# Unset more variables known to interfere with behavior of common tools.
244CLICOLOR_FORCE= GREP_OPTIONS= 244CLICOLOR_FORCE= GREP_OPTIONS=
245unset CLICOLOR_FORCE GREP_OPTIONS 245unset CLICOLOR_FORCE GREP_OPTIONS
246 246
247## --------------------- ## 247## --------------------- ##
248## M4sh Shell Functions. ## 248## M4sh Shell Functions. ##
249## --------------------- ## 249## --------------------- ##
250# as_fn_unset VAR 250# as_fn_unset VAR
251# --------------- 251# ---------------
252# Portably unset VAR. 252# Portably unset VAR.
253as_fn_unset () 253as_fn_unset ()
254{ 254{
255 { eval $1=; unset $1;} 255 { eval $1=; unset $1;}
256} 256}
257as_unset=as_fn_unset 257as_unset=as_fn_unset
258 258
259# as_fn_set_status STATUS 259# as_fn_set_status STATUS
260# ----------------------- 260# -----------------------
261# Set $? to STATUS, without forking. 261# Set $? to STATUS, without forking.
262as_fn_set_status () 262as_fn_set_status ()
263{ 263{
264 return $1 264 return $1
265} # as_fn_set_status 265} # as_fn_set_status
266 266
267# as_fn_exit STATUS 267# as_fn_exit STATUS
268# ----------------- 268# -----------------
269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270as_fn_exit () 270as_fn_exit ()
271{ 271{
272 set +e 272 set +e
273 as_fn_set_status $1 273 as_fn_set_status $1
274 exit $1 274 exit $1
275} # as_fn_exit 275} # as_fn_exit
276 276
277# as_fn_mkdir_p 277# as_fn_mkdir_p
278# ------------- 278# -------------
279# Create "$as_dir" as a directory, including parents if necessary. 279# Create "$as_dir" as a directory, including parents if necessary.
280as_fn_mkdir_p () 280as_fn_mkdir_p ()
281{ 281{
282 282
283 case $as_dir in #( 283 case $as_dir in #(
284 -*) as_dir=./$as_dir;; 284 -*) as_dir=./$as_dir;;
285 esac 285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || { 286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs= 287 as_dirs=
288 while :; do 288 while :; do
289 case $as_dir in #( 289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;; 291 *) as_qdir=$as_dir;;
292 esac 292 esac
293 as_dirs="'$as_qdir' $as_dirs" 293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" || 294 as_dir=`$as_dirname -- "$as_dir" ||
295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299$as_echo X"$as_dir" | 299$as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/ 301 s//\1/
302 q 302 q
303 } 303 }
304 /^X\(\/\/\)[^/].*/{ 304 /^X\(\/\/\)[^/].*/{
305 s//\1/ 305 s//\1/
306 q 306 q
307 } 307 }
308 /^X\(\/\/\)$/{ 308 /^X\(\/\/\)$/{
309 s//\1/ 309 s//\1/
310 q 310 q
311 } 311 }
312 /^X\(\/\).*/{ 312 /^X\(\/\).*/{
313 s//\1/ 313 s//\1/
314 q 314 q
315 } 315 }
316 s/.*/./; q'` 316 s/.*/./; q'`
317 test -d "$as_dir" && break 317 test -d "$as_dir" && break
318 done 318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 321
322 322
323} # as_fn_mkdir_p 323} # as_fn_mkdir_p
324# as_fn_append VAR VALUE 324# as_fn_append VAR VALUE
325# ---------------------- 325# ----------------------
326# Append the text in VALUE to the end of the definition contained in VAR. Take 326# Append the text in VALUE to the end of the definition contained in VAR. Take
327# advantage of any shell optimizations that allow amortized linear growth over 327# advantage of any shell optimizations that allow amortized linear growth over
328# repeated appends, instead of the typical quadratic growth present in naive 328# repeated appends, instead of the typical quadratic growth present in naive
329# implementations. 329# implementations.
330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append () 331 eval 'as_fn_append ()
332 { 332 {
333 eval $1+=\$2 333 eval $1+=\$2
334 }' 334 }'
335else 335else
336 as_fn_append () 336 as_fn_append ()
337 { 337 {
338 eval $1=\$$1\$2 338 eval $1=\$$1\$2
339 } 339 }
340fi # as_fn_append 340fi # as_fn_append
341 341
342# as_fn_arith ARG... 342# as_fn_arith ARG...
343# ------------------ 343# ------------------
344# Perform arithmetic evaluation on the ARGs, and store the result in the 344# Perform arithmetic evaluation on the ARGs, and store the result in the
345# global $as_val. Take advantage of shells that can avoid forks. The arguments 345# global $as_val. Take advantage of shells that can avoid forks. The arguments
346# must be portable across $(()) and expr. 346# must be portable across $(()) and expr.
347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith () 348 eval 'as_fn_arith ()
349 { 349 {
350 as_val=$(( $* )) 350 as_val=$(( $* ))
351 }' 351 }'
352else 352else
353 as_fn_arith () 353 as_fn_arith ()
354 { 354 {
355 as_val=`expr "$@" || test $? -eq 1` 355 as_val=`expr "$@" || test $? -eq 1`
356 } 356 }
357fi # as_fn_arith 357fi # as_fn_arith
358 358
359 359
360# as_fn_error ERROR [LINENO LOG_FD] 360# as_fn_error ERROR [LINENO LOG_FD]
361# --------------------------------- 361# ---------------------------------
362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364# script with status $?, using 1 if that was 0. 364# script with status $?, using 1 if that was 0.
365as_fn_error () 365as_fn_error ()
366{ 366{
367 as_status=$?; test $as_status -eq 0 && as_status=1 367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then 368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 fi 371 fi
372 $as_echo "$as_me: error: $1" >&2 372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status 373 as_fn_exit $as_status
374} # as_fn_error 374} # as_fn_error
375 375
376if expr a : '\(a\)' >/dev/null 2>&1 && 376if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then 377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr 378 as_expr=expr
379else 379else
380 as_expr=false 380 as_expr=false
381fi 381fi
382 382
383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename 384 as_basename=basename
385else 385else
386 as_basename=false 386 as_basename=false
387fi 387fi
388 388
389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname 390 as_dirname=dirname
391else 391else
392 as_dirname=false 392 as_dirname=false
393fi 393fi
394 394
395as_me=`$as_basename -- "$0" || 395as_me=`$as_basename -- "$0" ||
396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \ 397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399$as_echo X/"$0" | 399$as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/ 401 s//\1/
402 q 402 q
403 } 403 }
404 /^X\/\(\/\/\)$/{ 404 /^X\/\(\/\/\)$/{
405 s//\1/ 405 s//\1/
406 q 406 q
407 } 407 }
408 /^X\/\(\/\).*/{ 408 /^X\/\(\/\).*/{
409 s//\1/ 409 s//\1/
410 q 410 q
411 } 411 }
412 s/.*/./; q'` 412 s/.*/./; q'`
413 413
414# Avoid depending upon Character Ranges. 414# Avoid depending upon Character Ranges.
415as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418as_cr_digits='0123456789' 418as_cr_digits='0123456789'
419as_cr_alnum=$as_cr_Letters$as_cr_digits 419as_cr_alnum=$as_cr_Letters$as_cr_digits
420 420
421 421
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n ' 427 sed -n '
428 p 428 p
429 /[$]LINENO/= 429 /[$]LINENO/=
430 ' <$as_myself | 430 ' <$as_myself |
431 sed ' 431 sed '
432 s/[$]LINENO.*/&-/ 432 s/[$]LINENO.*/&-/
433 t lineno 433 t lineno
434 b 434 b
435 :lineno 435 :lineno
436 N 436 N
437 :loop 437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop 439 t loop
440 s/-\n.*// 440 s/-\n.*//
441 ' >$as_me.lineno && 441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" || 442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 444
445 # Don't try to exec as it changes $[0], causing all sort of problems 445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the 446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this). 447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno" 448 . "./$as_me.lineno"
449 # Exit status is that of the last command. 449 # Exit status is that of the last command.
450 exit 450 exit
451} 451}
452 452
453ECHO_C= ECHO_N= ECHO_T= 453ECHO_C= ECHO_N= ECHO_T=
454case `echo -n x` in #((((( 454case `echo -n x` in #(((((
455-n*) 455-n*)
456 case `echo 'xy\c'` in 456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';; 458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';; 460 ECHO_T=' ';;
461 esac;; 461 esac;;
462*) 462*)
463 ECHO_N='-n';; 463 ECHO_N='-n';;
464esac 464esac
465 465
466rm -f conf$$ conf$$.exe conf$$.file 466rm -f conf$$ conf$$.exe conf$$.file
467if test -d conf$$.dir; then 467if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file 468 rm -f conf$$.dir/conf$$.file
469else 469else
470 rm -f conf$$.dir 470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null 471 mkdir conf$$.dir 2>/dev/null
472fi 472fi
473if (echo >conf$$.file) 2>/dev/null; then 473if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s' 475 as_ln_s='ln -s'
476 # ... but there are two gotchas: 476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'. 479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p' 481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then 482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln 483 as_ln_s=ln
484 else 484 else
485 as_ln_s='cp -p' 485 as_ln_s='cp -p'
486 fi 486 fi
487else 487else
488 as_ln_s='cp -p' 488 as_ln_s='cp -p'
489fi 489fi
490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491rmdir conf$$.dir 2>/dev/null 491rmdir conf$$.dir 2>/dev/null
492 492
493if mkdir -p . 2>/dev/null; then 493if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"' 494 as_mkdir_p='mkdir -p "$as_dir"'
495else 495else
496 test -d ./-p && rmdir ./-p 496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false 497 as_mkdir_p=false
498fi 498fi
499 499
500if test -x / >/dev/null 2>&1; then 500if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x' 501 as_test_x='test -x'
502else 502else
503 if ls -dL / >/dev/null 2>&1; then 503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L 504 as_ls_L_option=L
505 else 505 else
506 as_ls_L_option= 506 as_ls_L_option=
507 fi 507 fi
508 as_test_x=' 508 as_test_x='
509 eval sh -c '\'' 509 eval sh -c '\''
510 if test -d "$1"; then 510 if test -d "$1"; then
511 test -d "$1/."; 511 test -d "$1/.";
512 else 512 else
513 case $1 in #( 513 case $1 in #(
514 -*)set "./$1";; 514 -*)set "./$1";;
515 esac; 515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi 517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh 518 '\'' sh
519 ' 519 '
520fi 520fi
521as_executable_p=$as_test_x 521as_executable_p=$as_test_x
522 522
523# Sed expression to map a string onto a valid CPP name. 523# Sed expression to map a string onto a valid CPP name.
524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 525
526# Sed expression to map a string onto a valid variable name. 526# Sed expression to map a string onto a valid variable name.
527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 528
529 529
530exec 7<&0 </dev/null 6>&1 530exec 7<&0 </dev/null 6>&1
531 531
532# Name of the host. 532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too. 534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536 536
537# 537#
538# Initializations. 538# Initializations.
539# 539#
540ac_default_prefix=/usr/local 540ac_default_prefix=/usr/local
541ac_clean_files= 541ac_clean_files=
542ac_config_libobj_dir=. 542ac_config_libobj_dir=.
543LIBOBJS= 543LIBOBJS=
544cross_compiling=no 544cross_compiling=no
545subdirs= 545subdirs=
546MFLAGS= 546MFLAGS=
547MAKEFLAGS= 547MAKEFLAGS=
548 548
549# Identity of this package. 549# Identity of this package.
550PACKAGE_NAME='bmake' 550PACKAGE_NAME='bmake'
551PACKAGE_TARNAME='bmake' 551PACKAGE_TARNAME='bmake'
552PACKAGE_VERSION='20140214' 552PACKAGE_VERSION='20140214'
553PACKAGE_STRING='bmake 20140214' 553PACKAGE_STRING='bmake 20140214'
554PACKAGE_BUGREPORT='sjg@NetBSD.org' 554PACKAGE_BUGREPORT='sjg@NetBSD.org'
555PACKAGE_URL='' 555PACKAGE_URL=''
556 556
557# Factoring default headers for most tests. 557# Factoring default headers for most tests.
558ac_includes_default="\ 558ac_includes_default="\
559#include <stdio.h> 559#include <stdio.h>
560#ifdef HAVE_SYS_TYPES_H 560#ifdef HAVE_SYS_TYPES_H
561# include <sys/types.h> 561# include <sys/types.h>
562#endif 562#endif
563#ifdef HAVE_SYS_STAT_H 563#ifdef HAVE_SYS_STAT_H
564# include <sys/stat.h> 564# include <sys/stat.h>
565#endif 565#endif
566#ifdef STDC_HEADERS 566#ifdef STDC_HEADERS
567# include <stdlib.h> 567# include <stdlib.h>
568# include <stddef.h> 568# include <stddef.h>
569#else 569#else
570# ifdef HAVE_STDLIB_H 570# ifdef HAVE_STDLIB_H
571# include <stdlib.h> 571# include <stdlib.h>
572# endif 572# endif
573#endif 573#endif
574#ifdef HAVE_STRING_H 574#ifdef HAVE_STRING_H
575# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 575# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
576# include <memory.h> 576# include <memory.h>
577# endif 577# endif
578# include <string.h> 578# include <string.h>
579#endif 579#endif
580#ifdef HAVE_STRINGS_H 580#ifdef HAVE_STRINGS_H
581# include <strings.h> 581# include <strings.h>
582#endif 582#endif
583#ifdef HAVE_INTTYPES_H 583#ifdef HAVE_INTTYPES_H
584# include <inttypes.h> 584# include <inttypes.h>
585#endif 585#endif
586#ifdef HAVE_STDINT_H 586#ifdef HAVE_STDINT_H
587# include <stdint.h> 587# include <stdint.h>
588#endif 588#endif
589#ifdef HAVE_UNISTD_H 589#ifdef HAVE_UNISTD_H
590# include <unistd.h> 590# include <unistd.h>
591#endif" 591#endif"
592 592
593ac_subst_vars='LTLIBOBJS 593ac_subst_vars='LTLIBOBJS
 594_MAKE_VERSION
594filemon_h 595filemon_h
595use_meta 596use_meta
596diff_u 597diff_u
597GCC 598GCC
598INSTALL 599INSTALL
599default_sys_path 600default_sys_path
600mksrc 601mksrc
601machine_arch 602machine_arch
602force_machine 603force_machine
603machine 604machine
604LIBOBJS 605LIBOBJS
605bmake_path_max 606bmake_path_max
606ac_exe_suffix 607ac_exe_suffix
607INSTALL_DATA 608INSTALL_DATA
608INSTALL_SCRIPT 609INSTALL_SCRIPT
609INSTALL_PROGRAM 610INSTALL_PROGRAM
610EGREP 611EGREP
611GREP 612GREP
612CPP 613CPP
613OBJEXT 614OBJEXT
614EXEEXT 615EXEEXT
615ac_ct_CC 616ac_ct_CC
616CPPFLAGS 617CPPFLAGS
617LDFLAGS 618LDFLAGS
618CFLAGS 619CFLAGS
619CC 620CC
620target_alias 621target_alias
621host_alias 622host_alias
622build_alias 623build_alias
623LIBS 624LIBS
624ECHO_T 625ECHO_T
625ECHO_N 626ECHO_N
626ECHO_C 627ECHO_C
627DEFS 628DEFS
628mandir 629mandir
629localedir 630localedir
630libdir 631libdir
631psdir 632psdir
632pdfdir 633pdfdir
633dvidir 634dvidir
634htmldir 635htmldir
635infodir 636infodir
636docdir 637docdir
637oldincludedir 638oldincludedir
638includedir 639includedir
639localstatedir 640localstatedir
640sharedstatedir 641sharedstatedir
641sysconfdir 642sysconfdir
642datadir 643datadir
643datarootdir 644datarootdir
644libexecdir 645libexecdir
645sbindir 646sbindir
646bindir 647bindir
647program_transform_name 648program_transform_name
648prefix 649prefix
649exec_prefix 650exec_prefix
650PACKAGE_URL 651PACKAGE_URL
651PACKAGE_BUGREPORT 652PACKAGE_BUGREPORT
652PACKAGE_STRING 653PACKAGE_STRING
653PACKAGE_VERSION 654PACKAGE_VERSION
654PACKAGE_TARNAME 655PACKAGE_TARNAME
655PACKAGE_NAME 656PACKAGE_NAME
656PATH_SEPARATOR 657PATH_SEPARATOR
657SHELL' 658SHELL'
658ac_subst_files='' 659ac_subst_files=''
659ac_user_opts=' 660ac_user_opts='
660enable_option_checking 661enable_option_checking
661with_defshell 662with_defshell
662with_meta 663with_meta
663with_filemon 664with_filemon
664with_machine 665with_machine
665with_force_machine 666with_force_machine
666with_force_machine_arch 667with_force_machine_arch
667with_machine_arch 668with_machine_arch
668with_default_sys_path 669with_default_sys_path
669with_path_objdirprefix 670with_path_objdirprefix
670enable_pwd_override 671enable_pwd_override
671enable_check_make_chdir 672enable_check_make_chdir
672with_mksrc 673with_mksrc
673' 674'
674 ac_precious_vars='build_alias 675 ac_precious_vars='build_alias
675host_alias 676host_alias
676target_alias 677target_alias
677CC 678CC
678CFLAGS 679CFLAGS
679LDFLAGS 680LDFLAGS
680LIBS 681LIBS
681CPPFLAGS 682CPPFLAGS
682CPP' 683CPP'
683 684
684 685
685# Initialize some variables set by options. 686# Initialize some variables set by options.
686ac_init_help= 687ac_init_help=
687ac_init_version=false 688ac_init_version=false
688ac_unrecognized_opts= 689ac_unrecognized_opts=
689ac_unrecognized_sep= 690ac_unrecognized_sep=
690# The variables have the same names as the options, with 691# The variables have the same names as the options, with
691# dashes changed to underlines. 692# dashes changed to underlines.
692cache_file=/dev/null 693cache_file=/dev/null
693exec_prefix=NONE 694exec_prefix=NONE
694no_create= 695no_create=
695no_recursion= 696no_recursion=
696prefix=NONE 697prefix=NONE
697program_prefix=NONE 698program_prefix=NONE
698program_suffix=NONE 699program_suffix=NONE
699program_transform_name=s,x,x, 700program_transform_name=s,x,x,
700silent= 701silent=
701site= 702site=
702srcdir= 703srcdir=
703verbose= 704verbose=
704x_includes=NONE 705x_includes=NONE
705x_libraries=NONE 706x_libraries=NONE
706 707
707# Installation directory options. 708# Installation directory options.
708# These are left unexpanded so users can "make install exec_prefix=/foo" 709# These are left unexpanded so users can "make install exec_prefix=/foo"
709# and all the variables that are supposed to be based on exec_prefix 710# and all the variables that are supposed to be based on exec_prefix
710# by default will actually change. 711# by default will actually change.
711# Use braces instead of parens because sh, perl, etc. also accept them. 712# Use braces instead of parens because sh, perl, etc. also accept them.
712# (The list follows the same order as the GNU Coding Standards.) 713# (The list follows the same order as the GNU Coding Standards.)
713bindir='${exec_prefix}/bin' 714bindir='${exec_prefix}/bin'
714sbindir='${exec_prefix}/sbin' 715sbindir='${exec_prefix}/sbin'
715libexecdir='${exec_prefix}/libexec' 716libexecdir='${exec_prefix}/libexec'
716datarootdir='${prefix}/share' 717datarootdir='${prefix}/share'
717datadir='${datarootdir}' 718datadir='${datarootdir}'
718sysconfdir='${prefix}/etc' 719sysconfdir='${prefix}/etc'
719sharedstatedir='${prefix}/com' 720sharedstatedir='${prefix}/com'
720localstatedir='${prefix}/var' 721localstatedir='${prefix}/var'
721includedir='${prefix}/include' 722includedir='${prefix}/include'
722oldincludedir='/usr/include' 723oldincludedir='/usr/include'
723docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 724docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
724infodir='${datarootdir}/info' 725infodir='${datarootdir}/info'
725htmldir='${docdir}' 726htmldir='${docdir}'
726dvidir='${docdir}' 727dvidir='${docdir}'
727pdfdir='${docdir}' 728pdfdir='${docdir}'
728psdir='${docdir}' 729psdir='${docdir}'
729libdir='${exec_prefix}/lib' 730libdir='${exec_prefix}/lib'
730localedir='${datarootdir}/locale' 731localedir='${datarootdir}/locale'
731mandir='${datarootdir}/man' 732mandir='${datarootdir}/man'
732 733
733ac_prev= 734ac_prev=
734ac_dashdash= 735ac_dashdash=
735for ac_option 736for ac_option
736do 737do
737 # If the previous option needs an argument, assign it. 738 # If the previous option needs an argument, assign it.
738 if test -n "$ac_prev"; then 739 if test -n "$ac_prev"; then
739 eval $ac_prev=\$ac_option 740 eval $ac_prev=\$ac_option
740 ac_prev= 741 ac_prev=
741 continue 742 continue
742 fi 743 fi
743 744
744 case $ac_option in 745 case $ac_option in
745 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 746 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
746 *) ac_optarg=yes ;; 747 *) ac_optarg=yes ;;
747 esac 748 esac
748 749
749 # Accept the important Cygnus configure options, so we can diagnose typos. 750 # Accept the important Cygnus configure options, so we can diagnose typos.
750 751
751 case $ac_dashdash$ac_option in 752 case $ac_dashdash$ac_option in
752 --) 753 --)
753 ac_dashdash=yes ;; 754 ac_dashdash=yes ;;
754 755
755 -bindir | --bindir | --bindi | --bind | --bin | --bi) 756 -bindir | --bindir | --bindi | --bind | --bin | --bi)
756 ac_prev=bindir ;; 757 ac_prev=bindir ;;
757 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 758 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
758 bindir=$ac_optarg ;; 759 bindir=$ac_optarg ;;
759 760
760 -build | --build | --buil | --bui | --bu) 761 -build | --build | --buil | --bui | --bu)
761 ac_prev=build_alias ;; 762 ac_prev=build_alias ;;
762 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 763 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
763 build_alias=$ac_optarg ;; 764 build_alias=$ac_optarg ;;
764 765
765 -cache-file | --cache-file | --cache-fil | --cache-fi \ 766 -cache-file | --cache-file | --cache-fil | --cache-fi \
766 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 767 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
767 ac_prev=cache_file ;; 768 ac_prev=cache_file ;;
768 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 769 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
769 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 770 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
770 cache_file=$ac_optarg ;; 771 cache_file=$ac_optarg ;;
771 772
772 --config-cache | -C) 773 --config-cache | -C)
773 cache_file=config.cache ;; 774 cache_file=config.cache ;;
774 775
775 -datadir | --datadir | --datadi | --datad) 776 -datadir | --datadir | --datadi | --datad)
776 ac_prev=datadir ;; 777 ac_prev=datadir ;;
777 -datadir=* | --datadir=* | --datadi=* | --datad=*) 778 -datadir=* | --datadir=* | --datadi=* | --datad=*)
778 datadir=$ac_optarg ;; 779 datadir=$ac_optarg ;;
779 780
780 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 781 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
781 | --dataroo | --dataro | --datar) 782 | --dataroo | --dataro | --datar)
782 ac_prev=datarootdir ;; 783 ac_prev=datarootdir ;;
783 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 784 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
784 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 785 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
785 datarootdir=$ac_optarg ;; 786 datarootdir=$ac_optarg ;;
786 787
787 -disable-* | --disable-*) 788 -disable-* | --disable-*)
788 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 789 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
789 # Reject names that are not valid shell variable names. 790 # Reject names that are not valid shell variable names.
790 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 791 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
791 as_fn_error "invalid feature name: $ac_useropt" 792 as_fn_error "invalid feature name: $ac_useropt"
792 ac_useropt_orig=$ac_useropt 793 ac_useropt_orig=$ac_useropt
793 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 794 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
794 case $ac_user_opts in 795 case $ac_user_opts in
795 *" 796 *"
796"enable_$ac_useropt" 797"enable_$ac_useropt"
797"*) ;; 798"*) ;;
798 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 799 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
799 ac_unrecognized_sep=', ';; 800 ac_unrecognized_sep=', ';;
800 esac 801 esac
801 eval enable_$ac_useropt=no ;; 802 eval enable_$ac_useropt=no ;;
802 803
803 -docdir | --docdir | --docdi | --doc | --do) 804 -docdir | --docdir | --docdi | --doc | --do)
804 ac_prev=docdir ;; 805 ac_prev=docdir ;;
805 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 806 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
806 docdir=$ac_optarg ;; 807 docdir=$ac_optarg ;;
807 808
808 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 809 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
809 ac_prev=dvidir ;; 810 ac_prev=dvidir ;;
810 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 811 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
811 dvidir=$ac_optarg ;; 812 dvidir=$ac_optarg ;;
812 813
813 -enable-* | --enable-*) 814 -enable-* | --enable-*)
814 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 815 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
815 # Reject names that are not valid shell variable names. 816 # Reject names that are not valid shell variable names.
816 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 817 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
817 as_fn_error "invalid feature name: $ac_useropt" 818 as_fn_error "invalid feature name: $ac_useropt"
818 ac_useropt_orig=$ac_useropt 819 ac_useropt_orig=$ac_useropt
819 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 820 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
820 case $ac_user_opts in 821 case $ac_user_opts in
821 *" 822 *"
822"enable_$ac_useropt" 823"enable_$ac_useropt"
823"*) ;; 824"*) ;;
824 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 825 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
825 ac_unrecognized_sep=', ';; 826 ac_unrecognized_sep=', ';;
826 esac 827 esac
827 eval enable_$ac_useropt=\$ac_optarg ;; 828 eval enable_$ac_useropt=\$ac_optarg ;;
828 829
829 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 830 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
830 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 831 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
831 | --exec | --exe | --ex) 832 | --exec | --exe | --ex)
832 ac_prev=exec_prefix ;; 833 ac_prev=exec_prefix ;;
833 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 834 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
834 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 835 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
835 | --exec=* | --exe=* | --ex=*) 836 | --exec=* | --exe=* | --ex=*)
836 exec_prefix=$ac_optarg ;; 837 exec_prefix=$ac_optarg ;;
837 838
838 -gas | --gas | --ga | --g) 839 -gas | --gas | --ga | --g)
839 # Obsolete; use --with-gas. 840 # Obsolete; use --with-gas.
840 with_gas=yes ;; 841 with_gas=yes ;;
841 842
842 -help | --help | --hel | --he | -h) 843 -help | --help | --hel | --he | -h)
843 ac_init_help=long ;; 844 ac_init_help=long ;;
844 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 845 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
845 ac_init_help=recursive ;; 846 ac_init_help=recursive ;;
846 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 847 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
847 ac_init_help=short ;; 848 ac_init_help=short ;;
848 849
849 -host | --host | --hos | --ho) 850 -host | --host | --hos | --ho)
850 ac_prev=host_alias ;; 851 ac_prev=host_alias ;;
851 -host=* | --host=* | --hos=* | --ho=*) 852 -host=* | --host=* | --hos=* | --ho=*)
852 host_alias=$ac_optarg ;; 853 host_alias=$ac_optarg ;;
853 854
854 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 855 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
855 ac_prev=htmldir ;; 856 ac_prev=htmldir ;;
856 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 857 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
857 | --ht=*) 858 | --ht=*)
858 htmldir=$ac_optarg ;; 859 htmldir=$ac_optarg ;;
859 860
860 -includedir | --includedir | --includedi | --included | --include \ 861 -includedir | --includedir | --includedi | --included | --include \
861 | --includ | --inclu | --incl | --inc) 862 | --includ | --inclu | --incl | --inc)
862 ac_prev=includedir ;; 863 ac_prev=includedir ;;
863 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 864 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
864 | --includ=* | --inclu=* | --incl=* | --inc=*) 865 | --includ=* | --inclu=* | --incl=* | --inc=*)
865 includedir=$ac_optarg ;; 866 includedir=$ac_optarg ;;
866 867
867 -infodir | --infodir | --infodi | --infod | --info | --inf) 868 -infodir | --infodir | --infodi | --infod | --info | --inf)
868 ac_prev=infodir ;; 869 ac_prev=infodir ;;
869 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 870 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
870 infodir=$ac_optarg ;; 871 infodir=$ac_optarg ;;
871 872
872 -libdir | --libdir | --libdi | --libd) 873 -libdir | --libdir | --libdi | --libd)
873 ac_prev=libdir ;; 874 ac_prev=libdir ;;
874 -libdir=* | --libdir=* | --libdi=* | --libd=*) 875 -libdir=* | --libdir=* | --libdi=* | --libd=*)
875 libdir=$ac_optarg ;; 876 libdir=$ac_optarg ;;
876 877
877 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 878 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
878 | --libexe | --libex | --libe) 879 | --libexe | --libex | --libe)
879 ac_prev=libexecdir ;; 880 ac_prev=libexecdir ;;
880 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 881 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
881 | --libexe=* | --libex=* | --libe=*) 882 | --libexe=* | --libex=* | --libe=*)
882 libexecdir=$ac_optarg ;; 883 libexecdir=$ac_optarg ;;
883 884
884 -localedir | --localedir | --localedi | --localed | --locale) 885 -localedir | --localedir | --localedi | --localed | --locale)
885 ac_prev=localedir ;; 886 ac_prev=localedir ;;
886 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 887 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
887 localedir=$ac_optarg ;; 888 localedir=$ac_optarg ;;
888 889
889 -localstatedir | --localstatedir | --localstatedi | --localstated \ 890 -localstatedir | --localstatedir | --localstatedi | --localstated \
890 | --localstate | --localstat | --localsta | --localst | --locals) 891 | --localstate | --localstat | --localsta | --localst | --locals)
891 ac_prev=localstatedir ;; 892 ac_prev=localstatedir ;;
892 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 893 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
893 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 894 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
894 localstatedir=$ac_optarg ;; 895 localstatedir=$ac_optarg ;;
895 896
896 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 897 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
897 ac_prev=mandir ;; 898 ac_prev=mandir ;;
898 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 899 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
899 mandir=$ac_optarg ;; 900 mandir=$ac_optarg ;;
900 901
901 -nfp | --nfp | --nf) 902 -nfp | --nfp | --nf)
902 # Obsolete; use --without-fp. 903 # Obsolete; use --without-fp.
903 with_fp=no ;; 904 with_fp=no ;;
904 905
905 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 906 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
906 | --no-cr | --no-c | -n) 907 | --no-cr | --no-c | -n)
907 no_create=yes ;; 908 no_create=yes ;;
908 909
909 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 910 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
910 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 911 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
911 no_recursion=yes ;; 912 no_recursion=yes ;;
912 913
913 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 914 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
914 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 915 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
915 | --oldin | --oldi | --old | --ol | --o) 916 | --oldin | --oldi | --old | --ol | --o)
916 ac_prev=oldincludedir ;; 917 ac_prev=oldincludedir ;;
917 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 918 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
918 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 919 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
919 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 920 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
920 oldincludedir=$ac_optarg ;; 921 oldincludedir=$ac_optarg ;;
921 922
922 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 923 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
923 ac_prev=prefix ;; 924 ac_prev=prefix ;;
924 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 925 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
925 prefix=$ac_optarg ;; 926 prefix=$ac_optarg ;;
926 927
927 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 928 -program-prefix | --program-prefix | --program-prefi | --program-pref \
928 | --program-pre | --program-pr | --program-p) 929 | --program-pre | --program-pr | --program-p)
929 ac_prev=program_prefix ;; 930 ac_prev=program_prefix ;;
930 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 931 -program-prefix=* | --program-prefix=* | --program-prefi=* \
931 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 932 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
932 program_prefix=$ac_optarg ;; 933 program_prefix=$ac_optarg ;;
933 934
934 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 935 -program-suffix | --program-suffix | --program-suffi | --program-suff \
935 | --program-suf | --program-su | --program-s) 936 | --program-suf | --program-su | --program-s)
936 ac_prev=program_suffix ;; 937 ac_prev=program_suffix ;;
937 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 938 -program-suffix=* | --program-suffix=* | --program-suffi=* \
938 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 939 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
939 program_suffix=$ac_optarg ;; 940 program_suffix=$ac_optarg ;;
940 941
941 -program-transform-name | --program-transform-name \ 942 -program-transform-name | --program-transform-name \
942 | --program-transform-nam | --program-transform-na \ 943 | --program-transform-nam | --program-transform-na \
943 | --program-transform-n | --program-transform- \ 944 | --program-transform-n | --program-transform- \
944 | --program-transform | --program-transfor \ 945 | --program-transform | --program-transfor \
945 | --program-transfo | --program-transf \ 946 | --program-transfo | --program-transf \
946 | --program-trans | --program-tran \ 947 | --program-trans | --program-tran \
947 | --progr-tra | --program-tr | --program-t) 948 | --progr-tra | --program-tr | --program-t)
948 ac_prev=program_transform_name ;; 949 ac_prev=program_transform_name ;;
949 -program-transform-name=* | --program-transform-name=* \ 950 -program-transform-name=* | --program-transform-name=* \
950 | --program-transform-nam=* | --program-transform-na=* \ 951 | --program-transform-nam=* | --program-transform-na=* \
951 | --program-transform-n=* | --program-transform-=* \ 952 | --program-transform-n=* | --program-transform-=* \
952 | --program-transform=* | --program-transfor=* \ 953 | --program-transform=* | --program-transfor=* \
953 | --program-transfo=* | --program-transf=* \ 954 | --program-transfo=* | --program-transf=* \
954 | --program-trans=* | --program-tran=* \ 955 | --program-trans=* | --program-tran=* \
955 | --progr-tra=* | --program-tr=* | --program-t=*) 956 | --progr-tra=* | --program-tr=* | --program-t=*)
956 program_transform_name=$ac_optarg ;; 957 program_transform_name=$ac_optarg ;;
957 958
958 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 959 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
959 ac_prev=pdfdir ;; 960 ac_prev=pdfdir ;;
960 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 961 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
961 pdfdir=$ac_optarg ;; 962 pdfdir=$ac_optarg ;;
962 963
963 -psdir | --psdir | --psdi | --psd | --ps) 964 -psdir | --psdir | --psdi | --psd | --ps)
964 ac_prev=psdir ;; 965 ac_prev=psdir ;;
965 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 966 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
966 psdir=$ac_optarg ;; 967 psdir=$ac_optarg ;;
967 968
968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
969 | -silent | --silent | --silen | --sile | --sil) 970 | -silent | --silent | --silen | --sile | --sil)
970 silent=yes ;; 971 silent=yes ;;
971 972
972 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 973 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
973 ac_prev=sbindir ;; 974 ac_prev=sbindir ;;
974 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 975 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
975 | --sbi=* | --sb=*) 976 | --sbi=* | --sb=*)
976 sbindir=$ac_optarg ;; 977 sbindir=$ac_optarg ;;
977 978
978 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 979 -sharedstatedir | --sharedstatedir | --sharedstatedi \
979 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 980 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
980 | --sharedst | --shareds | --shared | --share | --shar \ 981 | --sharedst | --shareds | --shared | --share | --shar \
981 | --sha | --sh) 982 | --sha | --sh)
982 ac_prev=sharedstatedir ;; 983 ac_prev=sharedstatedir ;;
983 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 984 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
984 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 985 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
985 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 986 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
986 | --sha=* | --sh=*) 987 | --sha=* | --sh=*)
987 sharedstatedir=$ac_optarg ;; 988 sharedstatedir=$ac_optarg ;;
988 989
989 -site | --site | --sit) 990 -site | --site | --sit)
990 ac_prev=site ;; 991 ac_prev=site ;;
991 -site=* | --site=* | --sit=*) 992 -site=* | --site=* | --sit=*)
992 site=$ac_optarg ;; 993 site=$ac_optarg ;;
993 994
994 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 995 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
995 ac_prev=srcdir ;; 996 ac_prev=srcdir ;;
996 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 997 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
997 srcdir=$ac_optarg ;; 998 srcdir=$ac_optarg ;;
998 999
999 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1000 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1000 | --syscon | --sysco | --sysc | --sys | --sy) 1001 | --syscon | --sysco | --sysc | --sys | --sy)
1001 ac_prev=sysconfdir ;; 1002 ac_prev=sysconfdir ;;
1002 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1003 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1003 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1004 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1004 sysconfdir=$ac_optarg ;; 1005 sysconfdir=$ac_optarg ;;
1005 1006
1006 -target | --target | --targe | --targ | --tar | --ta | --t) 1007 -target | --target | --targe | --targ | --tar | --ta | --t)
1007 ac_prev=target_alias ;; 1008 ac_prev=target_alias ;;
1008 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1009 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1009 target_alias=$ac_optarg ;; 1010 target_alias=$ac_optarg ;;
1010 1011
1011 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1012 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1012 verbose=yes ;; 1013 verbose=yes ;;
1013 1014
1014 -version | --version | --versio | --versi | --vers | -V) 1015 -version | --version | --versio | --versi | --vers | -V)
1015 ac_init_version=: ;; 1016 ac_init_version=: ;;
1016 1017
1017 -with-* | --with-*) 1018 -with-* | --with-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1019 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names. 1020 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error "invalid package name: $ac_useropt" 1022 as_fn_error "invalid package name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt 1023 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in 1025 case $ac_user_opts in
1025 *" 1026 *"
1026"with_$ac_useropt" 1027"with_$ac_useropt"
1027"*) ;; 1028"*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';; 1030 ac_unrecognized_sep=', ';;
1030 esac 1031 esac
1031 eval with_$ac_useropt=\$ac_optarg ;; 1032 eval with_$ac_useropt=\$ac_optarg ;;
1032 1033
1033 -without-* | --without-*) 1034 -without-* | --without-*)
1034 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1035 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1035 # Reject names that are not valid shell variable names. 1036 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error "invalid package name: $ac_useropt" 1038 as_fn_error "invalid package name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt 1039 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in 1041 case $ac_user_opts in
1041 *" 1042 *"
1042"with_$ac_useropt" 1043"with_$ac_useropt"
1043"*) ;; 1044"*) ;;
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';; 1046 ac_unrecognized_sep=', ';;
1046 esac 1047 esac
1047 eval with_$ac_useropt=no ;; 1048 eval with_$ac_useropt=no ;;
1048 1049
1049 --x) 1050 --x)
1050 # Obsolete; use --with-x. 1051 # Obsolete; use --with-x.
1051 with_x=yes ;; 1052 with_x=yes ;;
1052 1053
1053 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1054 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1054 | --x-incl | --x-inc | --x-in | --x-i) 1055 | --x-incl | --x-inc | --x-in | --x-i)
1055 ac_prev=x_includes ;; 1056 ac_prev=x_includes ;;
1056 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1057 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1057 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1058 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1058 x_includes=$ac_optarg ;; 1059 x_includes=$ac_optarg ;;
1059 1060
1060 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1061 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1061 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1062 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1062 ac_prev=x_libraries ;; 1063 ac_prev=x_libraries ;;
1063 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1064 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1064 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1065 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1065 x_libraries=$ac_optarg ;; 1066 x_libraries=$ac_optarg ;;
1066 1067
1067 -*) as_fn_error "unrecognized option: \`$ac_option' 1068 -*) as_fn_error "unrecognized option: \`$ac_option'
1068Try \`$0 --help' for more information." 1069Try \`$0 --help' for more information."
1069 ;; 1070 ;;
1070 1071
1071 *=*) 1072 *=*)
1072 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1073 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1073 # Reject names that are not valid shell variable names. 1074 # Reject names that are not valid shell variable names.
1074 case $ac_envvar in #( 1075 case $ac_envvar in #(
1075 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1076 '' | [0-9]* | *[!_$as_cr_alnum]* )
1076 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1077 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1077 esac 1078 esac
1078 eval $ac_envvar=\$ac_optarg 1079 eval $ac_envvar=\$ac_optarg
1079 export $ac_envvar ;; 1080 export $ac_envvar ;;
1080 1081
1081 *) 1082 *)
1082 # FIXME: should be removed in autoconf 3.0. 1083 # FIXME: should be removed in autoconf 3.0.
1083 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1084 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1084 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1085 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1086 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1086 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1087 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1087 ;; 1088 ;;
1088 1089
1089 esac 1090 esac
1090done 1091done
1091 1092
1092if test -n "$ac_prev"; then 1093if test -n "$ac_prev"; then
1093 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1094 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1094 as_fn_error "missing argument to $ac_option" 1095 as_fn_error "missing argument to $ac_option"
1095fi 1096fi
1096 1097
1097if test -n "$ac_unrecognized_opts"; then 1098if test -n "$ac_unrecognized_opts"; then
1098 case $enable_option_checking in 1099 case $enable_option_checking in
1099 no) ;; 1100 no) ;;
1100 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1101 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1101 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1102 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1102 esac 1103 esac
1103fi 1104fi
1104 1105
1105# Check all directory arguments for consistency. 1106# Check all directory arguments for consistency.
1106for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1107for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1107 datadir sysconfdir sharedstatedir localstatedir includedir \ 1108 datadir sysconfdir sharedstatedir localstatedir includedir \
1108 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1109 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1109 libdir localedir mandir 1110 libdir localedir mandir
1110do 1111do
1111 eval ac_val=\$$ac_var 1112 eval ac_val=\$$ac_var
1112 # Remove trailing slashes. 1113 # Remove trailing slashes.
1113 case $ac_val in 1114 case $ac_val in
1114 */ ) 1115 */ )
1115 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1116 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1116 eval $ac_var=\$ac_val;; 1117 eval $ac_var=\$ac_val;;
1117 esac 1118 esac
1118 # Be sure to have absolute directory names. 1119 # Be sure to have absolute directory names.
1119 case $ac_val in 1120 case $ac_val in
1120 [\\/$]* | ?:[\\/]* ) continue;; 1121 [\\/$]* | ?:[\\/]* ) continue;;
1121 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1122 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1122 esac 1123 esac
1123 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1124 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1124done 1125done
1125 1126
1126# There might be people who depend on the old broken behavior: `$host' 1127# There might be people who depend on the old broken behavior: `$host'
1127# used to hold the argument of --host etc. 1128# used to hold the argument of --host etc.
1128# FIXME: To remove some day. 1129# FIXME: To remove some day.
1129build=$build_alias 1130build=$build_alias
1130host=$host_alias 1131host=$host_alias
1131target=$target_alias 1132target=$target_alias
1132 1133
1133# FIXME: To remove some day. 1134# FIXME: To remove some day.
1134if test "x$host_alias" != x; then 1135if test "x$host_alias" != x; then
1135 if test "x$build_alias" = x; then 1136 if test "x$build_alias" = x; then
1136 cross_compiling=maybe 1137 cross_compiling=maybe
1137 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1138 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1138 If a cross compiler is detected then cross compile mode will be used." >&2 1139 If a cross compiler is detected then cross compile mode will be used." >&2
1139 elif test "x$build_alias" != "x$host_alias"; then 1140 elif test "x$build_alias" != "x$host_alias"; then
1140 cross_compiling=yes 1141 cross_compiling=yes
1141 fi 1142 fi
1142fi 1143fi
1143 1144
1144ac_tool_prefix= 1145ac_tool_prefix=
1145test -n "$host_alias" && ac_tool_prefix=$host_alias- 1146test -n "$host_alias" && ac_tool_prefix=$host_alias-
1146 1147
1147test "$silent" = yes && exec 6>/dev/null 1148test "$silent" = yes && exec 6>/dev/null
1148 1149
1149 1150
1150ac_pwd=`pwd` && test -n "$ac_pwd" && 1151ac_pwd=`pwd` && test -n "$ac_pwd" &&
1151ac_ls_di=`ls -di .` && 1152ac_ls_di=`ls -di .` &&
1152ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1153ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1153 as_fn_error "working directory cannot be determined" 1154 as_fn_error "working directory cannot be determined"
1154test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1155test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1155 as_fn_error "pwd does not report name of working directory" 1156 as_fn_error "pwd does not report name of working directory"
1156 1157
1157 1158
1158# Find the source files, if location was not specified. 1159# Find the source files, if location was not specified.
1159if test -z "$srcdir"; then 1160if test -z "$srcdir"; then
1160 ac_srcdir_defaulted=yes 1161 ac_srcdir_defaulted=yes
1161 # Try the directory containing this script, then the parent directory. 1162 # Try the directory containing this script, then the parent directory.
1162 ac_confdir=`$as_dirname -- "$as_myself" || 1163 ac_confdir=`$as_dirname -- "$as_myself" ||
1163$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1164$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164 X"$as_myself" : 'X\(//\)[^/]' \| \ 1165 X"$as_myself" : 'X\(//\)[^/]' \| \
1165 X"$as_myself" : 'X\(//\)$' \| \ 1166 X"$as_myself" : 'X\(//\)$' \| \
1166 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1167 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1167$as_echo X"$as_myself" | 1168$as_echo X"$as_myself" |
1168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1169 s//\1/ 1170 s//\1/
1170 q 1171 q
1171 } 1172 }
1172 /^X\(\/\/\)[^/].*/{ 1173 /^X\(\/\/\)[^/].*/{
1173 s//\1/ 1174 s//\1/
1174 q 1175 q
1175 } 1176 }
1176 /^X\(\/\/\)$/{ 1177 /^X\(\/\/\)$/{
1177 s//\1/ 1178 s//\1/
1178 q 1179 q
1179 } 1180 }
1180 /^X\(\/\).*/{ 1181 /^X\(\/\).*/{
1181 s//\1/ 1182 s//\1/
1182 q 1183 q
1183 } 1184 }
1184 s/.*/./; q'` 1185 s/.*/./; q'`
1185 srcdir=$ac_confdir 1186 srcdir=$ac_confdir
1186 if test ! -r "$srcdir/$ac_unique_file"; then 1187 if test ! -r "$srcdir/$ac_unique_file"; then
1187 srcdir=.. 1188 srcdir=..
1188 fi 1189 fi
1189else 1190else
1190 ac_srcdir_defaulted=no 1191 ac_srcdir_defaulted=no
1191fi 1192fi
1192if test ! -r "$srcdir/$ac_unique_file"; then 1193if test ! -r "$srcdir/$ac_unique_file"; then
1193 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1194 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1194 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1195 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1195fi 1196fi
1196ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1197ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1197ac_abs_confdir=`( 1198ac_abs_confdir=`(
1198 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1199 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1199 pwd)` 1200 pwd)`
1200# When building in place, set srcdir=. 1201# When building in place, set srcdir=.
1201if test "$ac_abs_confdir" = "$ac_pwd"; then 1202if test "$ac_abs_confdir" = "$ac_pwd"; then
1202 srcdir=. 1203 srcdir=.
1203fi 1204fi
1204# Remove unnecessary trailing slashes from srcdir. 1205# Remove unnecessary trailing slashes from srcdir.
1205# Double slashes in file names in object file debugging info 1206# Double slashes in file names in object file debugging info
1206# mess up M-x gdb in Emacs. 1207# mess up M-x gdb in Emacs.
1207case $srcdir in 1208case $srcdir in
1208*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1209*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1209esac 1210esac
1210for ac_var in $ac_precious_vars; do 1211for ac_var in $ac_precious_vars; do
1211 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1212 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1212 eval ac_env_${ac_var}_value=\$${ac_var} 1213 eval ac_env_${ac_var}_value=\$${ac_var}
1213 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1214 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1214 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1215 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1215done 1216done
1216 1217
1217# 1218#
1218# Report the --help message. 1219# Report the --help message.
1219# 1220#
1220if test "$ac_init_help" = "long"; then 1221if test "$ac_init_help" = "long"; then
1221 # Omit some internal or obsolete options to make the list less imposing. 1222 # Omit some internal or obsolete options to make the list less imposing.
1222 # This message is too long to be a string in the A/UX 3.1 sh. 1223 # This message is too long to be a string in the A/UX 3.1 sh.
1223 cat <<_ACEOF 1224 cat <<_ACEOF
1224\`configure' configures bmake 20140214 to adapt to many kinds of systems. 1225\`configure' configures bmake 20140214 to adapt to many kinds of systems.
1225 1226
1226Usage: $0 [OPTION]... [VAR=VALUE]... 1227Usage: $0 [OPTION]... [VAR=VALUE]...
1227 1228
1228To assign environment variables (e.g., CC, CFLAGS...), specify them as 1229To assign environment variables (e.g., CC, CFLAGS...), specify them as
1229VAR=VALUE. See below for descriptions of some of the useful variables. 1230VAR=VALUE. See below for descriptions of some of the useful variables.
1230 1231
1231Defaults for the options are specified in brackets. 1232Defaults for the options are specified in brackets.
1232 1233
1233Configuration: 1234Configuration:
1234 -h, --help display this help and exit 1235 -h, --help display this help and exit
1235 --help=short display options specific to this package 1236 --help=short display options specific to this package
1236 --help=recursive display the short help of all the included packages 1237 --help=recursive display the short help of all the included packages
1237 -V, --version display version information and exit 1238 -V, --version display version information and exit
1238 -q, --quiet, --silent do not print \`checking...' messages 1239 -q, --quiet, --silent do not print \`checking...' messages
1239 --cache-file=FILE cache test results in FILE [disabled] 1240 --cache-file=FILE cache test results in FILE [disabled]
1240 -C, --config-cache alias for \`--cache-file=config.cache' 1241 -C, --config-cache alias for \`--cache-file=config.cache'
1241 -n, --no-create do not create output files 1242 -n, --no-create do not create output files
1242 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1243 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1243 1244
1244Installation directories: 1245Installation directories:
1245 --prefix=PREFIX install architecture-independent files in PREFIX 1246 --prefix=PREFIX install architecture-independent files in PREFIX
1246 [$ac_default_prefix] 1247 [$ac_default_prefix]
1247 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1248 [PREFIX] 1249 [PREFIX]
1249 1250
1250By default, \`make install' will install all the files in 1251By default, \`make install' will install all the files in
1251\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1252\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1252an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1253an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1253for instance \`--prefix=\$HOME'. 1254for instance \`--prefix=\$HOME'.
1254 1255
1255For better control, use the options below. 1256For better control, use the options below.
1256 1257
1257Fine tuning of the installation directories: 1258Fine tuning of the installation directories:
1258 --bindir=DIR user executables [EPREFIX/bin] 1259 --bindir=DIR user executables [EPREFIX/bin]
1259 --sbindir=DIR system admin executables [EPREFIX/sbin] 1260 --sbindir=DIR system admin executables [EPREFIX/sbin]
1260 --libexecdir=DIR program executables [EPREFIX/libexec] 1261 --libexecdir=DIR program executables [EPREFIX/libexec]
1261 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1262 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1262 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1263 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1263 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1264 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1264 --libdir=DIR object code libraries [EPREFIX/lib] 1265 --libdir=DIR object code libraries [EPREFIX/lib]
1265 --includedir=DIR C header files [PREFIX/include] 1266 --includedir=DIR C header files [PREFIX/include]
1266 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1267 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1267 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1268 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1268 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1269 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1269 --infodir=DIR info documentation [DATAROOTDIR/info] 1270 --infodir=DIR info documentation [DATAROOTDIR/info]
1270 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1271 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1271 --mandir=DIR man documentation [DATAROOTDIR/man] 1272 --mandir=DIR man documentation [DATAROOTDIR/man]
1272 --docdir=DIR documentation root [DATAROOTDIR/doc/bmake] 1273 --docdir=DIR documentation root [DATAROOTDIR/doc/bmake]
1273 --htmldir=DIR html documentation [DOCDIR] 1274 --htmldir=DIR html documentation [DOCDIR]
1274 --dvidir=DIR dvi documentation [DOCDIR] 1275 --dvidir=DIR dvi documentation [DOCDIR]
1275 --pdfdir=DIR pdf documentation [DOCDIR] 1276 --pdfdir=DIR pdf documentation [DOCDIR]
1276 --psdir=DIR ps documentation [DOCDIR] 1277 --psdir=DIR ps documentation [DOCDIR]
1277_ACEOF 1278_ACEOF
1278 1279
1279 cat <<\_ACEOF 1280 cat <<\_ACEOF
1280_ACEOF 1281_ACEOF
1281fi 1282fi
1282 1283
1283if test -n "$ac_init_help"; then 1284if test -n "$ac_init_help"; then
1284 case $ac_init_help in 1285 case $ac_init_help in
1285 short | recursive ) echo "Configuration of bmake 20140214:";; 1286 short | recursive ) echo "Configuration of bmake 20140214:";;
1286 esac 1287 esac
1287 cat <<\_ACEOF 1288 cat <<\_ACEOF
1288 1289
1289Optional Features: 1290Optional Features:
1290 --disable-option-checking ignore unrecognized --enable/--with options 1291 --disable-option-checking ignore unrecognized --enable/--with options
1291 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1292 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1292 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1293 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1293 --disable-pwd-override disable \$PWD overriding getcwd() 1294 --disable-pwd-override disable \$PWD overriding getcwd()
1294 --disable-check-make-chdir disable make trying to guess 1295 --disable-check-make-chdir disable make trying to guess
1295 when it should automatically cd \${.CURDIR} 1296 when it should automatically cd \${.CURDIR}
1296 1297
1297Optional Packages: 1298Optional Packages:
1298 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1299 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1299 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1300 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1300 --with-defshell=SHELL use SHELL by default - must be sh compatible, use sh or ksh to pick the internal definitions 1301 --with-defshell=SHELL use SHELL by default - must be sh compatible, use sh or ksh to pick the internal definitions
1301 --without-meta dissable use of meta-mode 1302 --without-meta dissable use of meta-mode
1302 --with-filemon=path/filemon.h indicate path to filemon.h for meta-mode 1303 --with-filemon=path/filemon.h indicate path to filemon.h for meta-mode
1303 --with-machine=MACHINE explicitly set MACHINE 1304 --with-machine=MACHINE explicitly set MACHINE
1304 --with-force-machine=MACHINE set FORCE_MACHINE 1305 --with-force-machine=MACHINE set FORCE_MACHINE
1305 --with-force-machine-arch=MACHINE set FORCE_MACHINE_ARCH 1306 --with-force-machine-arch=MACHINE set FORCE_MACHINE_ARCH
1306 --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH 1307 --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH
1307 --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH 1308 --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH
1308 MAKESYSPATH is a ':' separated list of directories 1309 MAKESYSPATH is a ':' separated list of directories
1309 that bmake will search for system .mk files. 1310 that bmake will search for system .mk files.
1310 _PATH_DEFSYSPATH is its default value. 1311 _PATH_DEFSYSPATH is its default value.
1311 --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX 1312 --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX
1312 --with-mksrc=PATH tell makefile.boot where to find mk src 1313 --with-mksrc=PATH tell makefile.boot where to find mk src
1313 1314
1314Some influential environment variables: 1315Some influential environment variables:
1315 CC C compiler command 1316 CC C compiler command
1316 CFLAGS C compiler flags 1317 CFLAGS C compiler flags
1317 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1318 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1318 nonstandard directory <lib dir> 1319 nonstandard directory <lib dir>
1319 LIBS libraries to pass to the linker, e.g. -l<library> 1320 LIBS libraries to pass to the linker, e.g. -l<library>
1320 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1321 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1321 you have headers in a nonstandard directory <include dir> 1322 you have headers in a nonstandard directory <include dir>
1322 CPP C preprocessor 1323 CPP C preprocessor
1323 1324
1324Use these variables to override the choices made by `configure' or to help 1325Use these variables to override the choices made by `configure' or to help
1325it to find libraries and programs with nonstandard names/locations. 1326it to find libraries and programs with nonstandard names/locations.
1326 1327
1327Report bugs to <sjg@NetBSD.org>. 1328Report bugs to <sjg@NetBSD.org>.
1328_ACEOF 1329_ACEOF
1329ac_status=$? 1330ac_status=$?
1330fi 1331fi
1331 1332
1332if test "$ac_init_help" = "recursive"; then 1333if test "$ac_init_help" = "recursive"; then
1333 # If there are subdirs, report their specific --help. 1334 # If there are subdirs, report their specific --help.
1334 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1335 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1335 test -d "$ac_dir" || 1336 test -d "$ac_dir" ||
1336 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1337 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1337 continue 1338 continue
1338 ac_builddir=. 1339 ac_builddir=.
1339 1340
1340case "$ac_dir" in 1341case "$ac_dir" in
1341.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1342.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1342*) 1343*)
1343 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1344 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1344 # A ".." for each directory in $ac_dir_suffix. 1345 # A ".." for each directory in $ac_dir_suffix.
1345 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1346 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1346 case $ac_top_builddir_sub in 1347 case $ac_top_builddir_sub in
1347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1348 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1349 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1349 esac ;; 1350 esac ;;
1350esac 1351esac
1351ac_abs_top_builddir=$ac_pwd 1352ac_abs_top_builddir=$ac_pwd
1352ac_abs_builddir=$ac_pwd$ac_dir_suffix 1353ac_abs_builddir=$ac_pwd$ac_dir_suffix
1353# for backward compatibility: 1354# for backward compatibility:
1354ac_top_builddir=$ac_top_build_prefix 1355ac_top_builddir=$ac_top_build_prefix
1355 1356
1356case $srcdir in 1357case $srcdir in
1357 .) # We are building in place. 1358 .) # We are building in place.
1358 ac_srcdir=. 1359 ac_srcdir=.
1359 ac_top_srcdir=$ac_top_builddir_sub 1360 ac_top_srcdir=$ac_top_builddir_sub
1360 ac_abs_top_srcdir=$ac_pwd ;; 1361 ac_abs_top_srcdir=$ac_pwd ;;
1361 [\\/]* | ?:[\\/]* ) # Absolute name. 1362 [\\/]* | ?:[\\/]* ) # Absolute name.
1362 ac_srcdir=$srcdir$ac_dir_suffix; 1363 ac_srcdir=$srcdir$ac_dir_suffix;
1363 ac_top_srcdir=$srcdir 1364 ac_top_srcdir=$srcdir
1364 ac_abs_top_srcdir=$srcdir ;; 1365 ac_abs_top_srcdir=$srcdir ;;
1365 *) # Relative name. 1366 *) # Relative name.
1366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1367 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1367 ac_top_srcdir=$ac_top_build_prefix$srcdir 1368 ac_top_srcdir=$ac_top_build_prefix$srcdir
1368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1369 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1369esac 1370esac
1370ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1371ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1371 1372
1372 cd "$ac_dir" || { ac_status=$?; continue; } 1373 cd "$ac_dir" || { ac_status=$?; continue; }
1373 # Check for guested configure. 1374 # Check for guested configure.
1374 if test -f "$ac_srcdir/configure.gnu"; then 1375 if test -f "$ac_srcdir/configure.gnu"; then
1375 echo && 1376 echo &&
1376 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1377 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1377 elif test -f "$ac_srcdir/configure"; then 1378 elif test -f "$ac_srcdir/configure"; then
1378 echo && 1379 echo &&
1379 $SHELL "$ac_srcdir/configure" --help=recursive 1380 $SHELL "$ac_srcdir/configure" --help=recursive
1380 else 1381 else
1381 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1382 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1382 fi || ac_status=$? 1383 fi || ac_status=$?
1383 cd "$ac_pwd" || { ac_status=$?; break; } 1384 cd "$ac_pwd" || { ac_status=$?; break; }
1384 done 1385 done
1385fi 1386fi
1386 1387
1387test -n "$ac_init_help" && exit $ac_status 1388test -n "$ac_init_help" && exit $ac_status
1388if $ac_init_version; then 1389if $ac_init_version; then
1389 cat <<\_ACEOF 1390 cat <<\_ACEOF
1390bmake configure 20140214 1391bmake configure 20140214
1391generated by GNU Autoconf 2.64 1392generated by GNU Autoconf 2.64
1392 1393
1393Copyright (C) 2009 Free Software Foundation, Inc. 1394Copyright (C) 2009 Free Software Foundation, Inc.
1394This configure script is free software; the Free Software Foundation 1395This configure script is free software; the Free Software Foundation
1395gives unlimited permission to copy, distribute and modify it. 1396gives unlimited permission to copy, distribute and modify it.
1396_ACEOF 1397_ACEOF
1397 exit 1398 exit
1398fi 1399fi
1399 1400
1400## ------------------------ ## 1401## ------------------------ ##
1401## Autoconf initialization. ## 1402## Autoconf initialization. ##
1402## ------------------------ ## 1403## ------------------------ ##
1403 1404
1404# ac_fn_c_try_compile LINENO 1405# ac_fn_c_try_compile LINENO
1405# -------------------------- 1406# --------------------------
1406# Try to compile conftest.$ac_ext, and return whether this succeeded. 1407# Try to compile conftest.$ac_ext, and return whether this succeeded.
1407ac_fn_c_try_compile () 1408ac_fn_c_try_compile ()
1408{ 1409{
1409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1410 rm -f conftest.$ac_objext 1411 rm -f conftest.$ac_objext
1411 if { { ac_try="$ac_compile" 1412 if { { ac_try="$ac_compile"
1412case "(($ac_try" in 1413case "(($ac_try" in
1413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1414 *) ac_try_echo=$ac_try;; 1415 *) ac_try_echo=$ac_try;;
1415esac 1416esac
1416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1417$as_echo "$ac_try_echo"; } >&5 1418$as_echo "$ac_try_echo"; } >&5
1418 (eval "$ac_compile") 2>conftest.err 1419 (eval "$ac_compile") 2>conftest.err
1419 ac_status=$? 1420 ac_status=$?
1420 if test -s conftest.err; then 1421 if test -s conftest.err; then
1421 grep -v '^ *+' conftest.err >conftest.er1 1422 grep -v '^ *+' conftest.err >conftest.er1
1422 cat conftest.er1 >&5 1423 cat conftest.er1 >&5
1423 mv -f conftest.er1 conftest.err 1424 mv -f conftest.er1 conftest.err
1424 fi 1425 fi
1425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1426 test $ac_status = 0; } && { 1427 test $ac_status = 0; } && {
1427 test -z "$ac_c_werror_flag" || 1428 test -z "$ac_c_werror_flag" ||
1428 test ! -s conftest.err 1429 test ! -s conftest.err
1429 } && test -s conftest.$ac_objext; then : 1430 } && test -s conftest.$ac_objext; then :
1430 ac_retval=0 1431 ac_retval=0
1431else 1432else
1432 $as_echo "$as_me: failed program was:" >&5 1433 $as_echo "$as_me: failed program was:" >&5
1433sed 's/^/| /' conftest.$ac_ext >&5 1434sed 's/^/| /' conftest.$ac_ext >&5
1434 1435
1435 ac_retval=1 1436 ac_retval=1
1436fi 1437fi
1437 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1438 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1438 return $ac_retval 1439 return $ac_retval
1439 1440
1440} # ac_fn_c_try_compile 1441} # ac_fn_c_try_compile
1441 1442
1442# ac_fn_c_try_cpp LINENO 1443# ac_fn_c_try_cpp LINENO
1443# ---------------------- 1444# ----------------------
1444# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1445# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1445ac_fn_c_try_cpp () 1446ac_fn_c_try_cpp ()
1446{ 1447{
1447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1448 if { { ac_try="$ac_cpp conftest.$ac_ext" 1449 if { { ac_try="$ac_cpp conftest.$ac_ext"
1449case "(($ac_try" in 1450case "(($ac_try" in
1450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1451 *) ac_try_echo=$ac_try;; 1452 *) ac_try_echo=$ac_try;;
1452esac 1453esac
1453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1454$as_echo "$ac_try_echo"; } >&5 1455$as_echo "$ac_try_echo"; } >&5
1455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1456 ac_status=$? 1457 ac_status=$?
1457 if test -s conftest.err; then 1458 if test -s conftest.err; then
1458 grep -v '^ *+' conftest.err >conftest.er1 1459 grep -v '^ *+' conftest.err >conftest.er1
1459 cat conftest.er1 >&5 1460 cat conftest.er1 >&5
1460 mv -f conftest.er1 conftest.err 1461 mv -f conftest.er1 conftest.err
1461 fi 1462 fi
1462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1463 test $ac_status = 0; } >/dev/null && { 1464 test $ac_status = 0; } >/dev/null && {
1464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1465 test ! -s conftest.err 1466 test ! -s conftest.err
1466 }; then : 1467 }; then :
1467 ac_retval=0 1468 ac_retval=0
1468else 1469else
1469 $as_echo "$as_me: failed program was:" >&5 1470 $as_echo "$as_me: failed program was:" >&5
1470sed 's/^/| /' conftest.$ac_ext >&5 1471sed 's/^/| /' conftest.$ac_ext >&5
1471 1472
1472 ac_retval=1 1473 ac_retval=1
1473fi 1474fi
1474 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1475 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1475 return $ac_retval 1476 return $ac_retval
1476 1477
1477} # ac_fn_c_try_cpp 1478} # ac_fn_c_try_cpp
1478 1479
1479# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1480# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1480# ------------------------------------------------------- 1481# -------------------------------------------------------
1481# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1482# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1482# the include files in INCLUDES and setting the cache variable VAR 1483# the include files in INCLUDES and setting the cache variable VAR
1483# accordingly. 1484# accordingly.
1484ac_fn_c_check_header_mongrel () 1485ac_fn_c_check_header_mongrel ()
1485{ 1486{
1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1488 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1489$as_echo_n "checking for $2... " >&6; } 1490$as_echo_n "checking for $2... " >&6; }
1490if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1491if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1491 $as_echo_n "(cached) " >&6 1492 $as_echo_n "(cached) " >&6
1492fi 1493fi
1493eval ac_res=\$$3 1494eval ac_res=\$$3
1494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1495$as_echo "$ac_res" >&6; } 1496$as_echo "$ac_res" >&6; }
1496else 1497else
1497 # Is the header compilable? 1498 # Is the header compilable?
1498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1499$as_echo_n "checking $2 usability... " >&6; } 1500$as_echo_n "checking $2 usability... " >&6; }
1500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1501/* end confdefs.h. */ 1502/* end confdefs.h. */
1502$4 1503$4
1503#include <$2> 1504#include <$2>
1504_ACEOF 1505_ACEOF
1505if ac_fn_c_try_compile "$LINENO"; then : 1506if ac_fn_c_try_compile "$LINENO"; then :
1506 ac_header_compiler=yes 1507 ac_header_compiler=yes
1507else 1508else
1508 ac_header_compiler=no 1509 ac_header_compiler=no
1509fi 1510fi
1510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1512$as_echo "$ac_header_compiler" >&6; } 1513$as_echo "$ac_header_compiler" >&6; }
1513 1514
1514# Is the header present? 1515# Is the header present?
1515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1516$as_echo_n "checking $2 presence... " >&6; } 1517$as_echo_n "checking $2 presence... " >&6; }
1517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1518/* end confdefs.h. */ 1519/* end confdefs.h. */
1519#include <$2> 1520#include <$2>
1520_ACEOF 1521_ACEOF
1521if ac_fn_c_try_cpp "$LINENO"; then : 1522if ac_fn_c_try_cpp "$LINENO"; then :
1522 ac_header_preproc=yes 1523 ac_header_preproc=yes
1523else 1524else
1524 ac_header_preproc=no 1525 ac_header_preproc=no
1525fi 1526fi
1526rm -f conftest.err conftest.$ac_ext 1527rm -f conftest.err conftest.$ac_ext
1527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1528$as_echo "$ac_header_preproc" >&6; } 1529$as_echo "$ac_header_preproc" >&6; }
1529 1530
1530# So? What about this header? 1531# So? What about this header?
1531case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1532 yes:no: ) 1533 yes:no: )
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1534$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1535$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1536$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1537$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1537 ;; 1538 ;;
1538 no:yes:* ) 1539 no:yes:* )
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1540$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1541$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1542$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1543$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1544$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1545$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1546$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1547$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1548$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1549$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1549( cat <<\_ASBOX 1550( cat <<\_ASBOX
1550## ----------------------------- ## 1551## ----------------------------- ##
1551## Report this to sjg@NetBSD.org ## 1552## Report this to sjg@NetBSD.org ##
1552## ----------------------------- ## 1553## ----------------------------- ##
1553_ASBOX 1554_ASBOX
1554 ) | sed "s/^/$as_me: WARNING: /" >&2 1555 ) | sed "s/^/$as_me: WARNING: /" >&2
1555 ;; 1556 ;;
1556esac 1557esac
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1558$as_echo_n "checking for $2... " >&6; } 1559$as_echo_n "checking for $2... " >&6; }
1559if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1560if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1560 $as_echo_n "(cached) " >&6 1561 $as_echo_n "(cached) " >&6
1561else 1562else
1562 eval "$3=\$ac_header_compiler" 1563 eval "$3=\$ac_header_compiler"
1563fi 1564fi
1564eval ac_res=\$$3 1565eval ac_res=\$$3
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1566$as_echo "$ac_res" >&6; } 1567$as_echo "$ac_res" >&6; }
1567fi 1568fi
1568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1569 1570
1570} # ac_fn_c_check_header_mongrel 1571} # ac_fn_c_check_header_mongrel
1571 1572
1572# ac_fn_c_try_run LINENO 1573# ac_fn_c_try_run LINENO
1573# ---------------------- 1574# ----------------------
1574# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1575# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1575# that executables *can* be run. 1576# that executables *can* be run.
1576ac_fn_c_try_run () 1577ac_fn_c_try_run ()
1577{ 1578{
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 if { { ac_try="$ac_link" 1580 if { { ac_try="$ac_link"
1580case "(($ac_try" in 1581case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;; 1583 *) ac_try_echo=$ac_try;;
1583esac 1584esac
1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585$as_echo "$ac_try_echo"; } >&5 1586$as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_link") 2>&5 1587 (eval "$ac_link") 2>&5
1587 ac_status=$? 1588 ac_status=$?
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1590 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1590 { { case "(($ac_try" in 1591 { { case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;; 1593 *) ac_try_echo=$ac_try;;
1593esac 1594esac
1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595$as_echo "$ac_try_echo"; } >&5 1596$as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_try") 2>&5 1597 (eval "$ac_try") 2>&5
1597 ac_status=$? 1598 ac_status=$?
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; }; }; then : 1600 test $ac_status = 0; }; }; then :
1600 ac_retval=0 1601 ac_retval=0
1601else 1602else
1602 $as_echo "$as_me: program exited with status $ac_status" >&5 1603 $as_echo "$as_me: program exited with status $ac_status" >&5
1603 $as_echo "$as_me: failed program was:" >&5 1604 $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5 1605sed 's/^/| /' conftest.$ac_ext >&5
1605 1606
1606 ac_retval=$ac_status 1607 ac_retval=$ac_status
1607fi 1608fi
1608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 return $ac_retval 1611 return $ac_retval
1611 1612
1612} # ac_fn_c_try_run 1613} # ac_fn_c_try_run
1613 1614
1614# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1615# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615# ------------------------------------------------------- 1616# -------------------------------------------------------
1616# Tests whether HEADER exists and can be compiled using the include files in 1617# Tests whether HEADER exists and can be compiled using the include files in
1617# INCLUDES, setting the cache variable VAR accordingly. 1618# INCLUDES, setting the cache variable VAR accordingly.
1618ac_fn_c_check_header_compile () 1619ac_fn_c_check_header_compile ()
1619{ 1620{
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622$as_echo_n "checking for $2... " >&6; } 1623$as_echo_n "checking for $2... " >&6; }
1623if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1624if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1624 $as_echo_n "(cached) " >&6 1625 $as_echo_n "(cached) " >&6
1625else 1626else
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627/* end confdefs.h. */ 1628/* end confdefs.h. */
1628$4 1629$4
1629#include <$2> 1630#include <$2>
1630_ACEOF 1631_ACEOF
1631if ac_fn_c_try_compile "$LINENO"; then : 1632if ac_fn_c_try_compile "$LINENO"; then :
1632 eval "$3=yes" 1633 eval "$3=yes"
1633else 1634else
1634 eval "$3=no" 1635 eval "$3=no"
1635fi 1636fi
1636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637fi 1638fi
1638eval ac_res=\$$3 1639eval ac_res=\$$3
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640$as_echo "$ac_res" >&6; } 1641$as_echo "$ac_res" >&6; }
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642 1643
1643} # ac_fn_c_check_header_compile 1644} # ac_fn_c_check_header_compile
1644 1645
1645# ac_fn_c_try_link LINENO 1646# ac_fn_c_try_link LINENO
1646# ----------------------- 1647# -----------------------
1647# Try to link conftest.$ac_ext, and return whether this succeeded. 1648# Try to link conftest.$ac_ext, and return whether this succeeded.
1648ac_fn_c_try_link () 1649ac_fn_c_try_link ()
1649{ 1650{
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext conftest$ac_exeext 1652 rm -f conftest.$ac_objext conftest$ac_exeext
1652 if { { ac_try="$ac_link" 1653 if { { ac_try="$ac_link"
1653case "(($ac_try" in 1654case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;; 1656 *) ac_try_echo=$ac_try;;
1656esac 1657esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5 1659$as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>conftest.err 1660 (eval "$ac_link") 2>conftest.err
1660 ac_status=$? 1661 ac_status=$?
1661 if test -s conftest.err; then 1662 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1 1663 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5 1664 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err 1665 mv -f conftest.er1 conftest.err
1665 fi 1666 fi
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && { 1668 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" || 1669 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err 1670 test ! -s conftest.err
1670 } && test -s conftest$ac_exeext && { 1671 } && test -s conftest$ac_exeext && {
1671 test "$cross_compiling" = yes || 1672 test "$cross_compiling" = yes ||
1672 $as_test_x conftest$ac_exeext 1673 $as_test_x conftest$ac_exeext
1673 }; then : 1674 }; then :
1674 ac_retval=0 1675 ac_retval=0
1675else 1676else
1676 $as_echo "$as_me: failed program was:" >&5 1677 $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5 1678sed 's/^/| /' conftest.$ac_ext >&5
1678 1679
1679 ac_retval=1 1680 ac_retval=1
1680fi 1681fi
1681 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1682 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1683 # interfere with the next link command; also delete a directory that is 1684 # interfere with the next link command; also delete a directory that is
1684 # left behind by Apple's compiler. We do this before executing the actions. 1685 # left behind by Apple's compiler. We do this before executing the actions.
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 return $ac_retval 1688 return $ac_retval
1688 1689
1689} # ac_fn_c_try_link 1690} # ac_fn_c_try_link
1690 1691
1691# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1692# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1692# ------------------------------------------- 1693# -------------------------------------------
1693# Tests whether TYPE exists after having included INCLUDES, setting cache 1694# Tests whether TYPE exists after having included INCLUDES, setting cache
1694# variable VAR accordingly. 1695# variable VAR accordingly.
1695ac_fn_c_check_type () 1696ac_fn_c_check_type ()
1696{ 1697{
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699$as_echo_n "checking for $2... " >&6; } 1700$as_echo_n "checking for $2... " >&6; }
1700if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1701if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1701 $as_echo_n "(cached) " >&6 1702 $as_echo_n "(cached) " >&6
1702else 1703else
1703 eval "$3=no" 1704 eval "$3=no"
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705/* end confdefs.h. */ 1706/* end confdefs.h. */
1706$4 1707$4
1707int 1708int
1708main () 1709main ()
1709{ 1710{
1710if (sizeof ($2)) 1711if (sizeof ($2))
1711 return 0; 1712 return 0;
1712 ; 1713 ;
1713 return 0; 1714 return 0;
1714} 1715}
1715_ACEOF 1716_ACEOF
1716if ac_fn_c_try_compile "$LINENO"; then : 1717if ac_fn_c_try_compile "$LINENO"; then :
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718/* end confdefs.h. */ 1719/* end confdefs.h. */
1719$4 1720$4
1720int 1721int
1721main () 1722main ()
1722{ 1723{
1723if (sizeof (($2))) 1724if (sizeof (($2)))
1724 return 0; 1725 return 0;
1725 ; 1726 ;
1726 return 0; 1727 return 0;
1727} 1728}
1728_ACEOF 1729_ACEOF
1729if ac_fn_c_try_compile "$LINENO"; then : 1730if ac_fn_c_try_compile "$LINENO"; then :
1730 1731
1731else 1732else
1732 eval "$3=yes" 1733 eval "$3=yes"
1733fi 1734fi
1734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735fi 1736fi
1736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737fi 1738fi
1738eval ac_res=\$$3 1739eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740$as_echo "$ac_res" >&6; } 1741$as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742 1743
1743} # ac_fn_c_check_type 1744} # ac_fn_c_check_type
1744 1745
1745# ac_fn_c_check_decl LINENO SYMBOL VAR 1746# ac_fn_c_check_decl LINENO SYMBOL VAR
1746# ------------------------------------ 1747# ------------------------------------
1747# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 1748# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1748ac_fn_c_check_decl () 1749ac_fn_c_check_decl ()
1749{ 1750{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1752$as_echo_n "checking whether $2 is declared... " >&6; } 1753$as_echo_n "checking whether $2 is declared... " >&6; }
1753if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1754if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1754 $as_echo_n "(cached) " >&6 1755 $as_echo_n "(cached) " >&6
1755else 1756else
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h. */ 1758/* end confdefs.h. */
1758$4 1759$4
1759int 1760int
1760main () 1761main ()
1761{ 1762{
1762#ifndef $2 1763#ifndef $2
1763 (void) $2; 1764 (void) $2;
1764#endif 1765#endif
1765 1766
1766 ; 1767 ;
1767 return 0; 1768 return 0;
1768} 1769}
1769_ACEOF 1770_ACEOF
1770if ac_fn_c_try_compile "$LINENO"; then : 1771if ac_fn_c_try_compile "$LINENO"; then :
1771 eval "$3=yes" 1772 eval "$3=yes"
1772else 1773else
1773 eval "$3=no" 1774 eval "$3=no"
1774fi 1775fi
1775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776fi 1777fi
1777eval ac_res=\$$3 1778eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779$as_echo "$ac_res" >&6; } 1780$as_echo "$ac_res" >&6; }
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781 1782
1782} # ac_fn_c_check_decl 1783} # ac_fn_c_check_decl
1783 1784
1784# ac_fn_c_check_func LINENO FUNC VAR 1785# ac_fn_c_check_func LINENO FUNC VAR
1785# ---------------------------------- 1786# ----------------------------------
1786# Tests whether FUNC exists, setting the cache variable VAR accordingly 1787# Tests whether FUNC exists, setting the cache variable VAR accordingly
1787ac_fn_c_check_func () 1788ac_fn_c_check_func ()
1788{ 1789{
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; } 1792$as_echo_n "checking for $2... " >&6; }
1792if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1793if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793 $as_echo_n "(cached) " >&6 1794 $as_echo_n "(cached) " >&6
1794else 1795else
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h. */ 1797/* end confdefs.h. */
1797/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1798/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1798 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1799#define $2 innocuous_$2 1800#define $2 innocuous_$2
1800 1801
1801/* System header to define __stub macros and hopefully few prototypes, 1802/* System header to define __stub macros and hopefully few prototypes,
1802 which can conflict with char $2 (); below. 1803 which can conflict with char $2 (); below.
1803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1804 <limits.h> exists even on freestanding compilers. */ 1805 <limits.h> exists even on freestanding compilers. */
1805 1806
1806#ifdef __STDC__ 1807#ifdef __STDC__
1807# include <limits.h> 1808# include <limits.h>
1808#else 1809#else
1809# include <assert.h> 1810# include <assert.h>
1810#endif 1811#endif
1811 1812
1812#undef $2 1813#undef $2
1813 1814
1814/* Override any GCC internal prototype to avoid an error. 1815/* Override any GCC internal prototype to avoid an error.
1815 Use char because int might match the return type of a GCC 1816 Use char because int might match the return type of a GCC
1816 builtin and then its argument prototype would still apply. */ 1817 builtin and then its argument prototype would still apply. */
1817#ifdef __cplusplus 1818#ifdef __cplusplus
1818extern "C" 1819extern "C"
1819#endif 1820#endif
1820char $2 (); 1821char $2 ();
1821/* The GNU C library defines this for functions which it implements 1822/* The GNU C library defines this for functions which it implements
1822 to always fail with ENOSYS. Some functions are actually named 1823 to always fail with ENOSYS. Some functions are actually named
1823 something starting with __ and the normal name is an alias. */ 1824 something starting with __ and the normal name is an alias. */
1824#if defined __stub_$2 || defined __stub___$2 1825#if defined __stub_$2 || defined __stub___$2
1825choke me 1826choke me
1826#endif 1827#endif
1827 1828
1828int 1829int
1829main () 1830main ()
1830{ 1831{
1831return $2 (); 1832return $2 ();
1832 ; 1833 ;
1833 return 0; 1834 return 0;
1834} 1835}
1835_ACEOF 1836_ACEOF
1836if ac_fn_c_try_link "$LINENO"; then : 1837if ac_fn_c_try_link "$LINENO"; then :
1837 eval "$3=yes" 1838 eval "$3=yes"
1838else 1839else
1839 eval "$3=no" 1840 eval "$3=no"
1840fi 1841fi
1841rm -f core conftest.err conftest.$ac_objext \ 1842rm -f core conftest.err conftest.$ac_objext \
1842 conftest$ac_exeext conftest.$ac_ext 1843 conftest$ac_exeext conftest.$ac_ext
1843fi 1844fi
1844eval ac_res=\$$3 1845eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846$as_echo "$ac_res" >&6; } 1847$as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 1849
1849} # ac_fn_c_check_func 1850} # ac_fn_c_check_func
1850 1851
1851# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1852# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1852# ---------------------------------------------------- 1853# ----------------------------------------------------
1853# Tries to find if the field MEMBER exists in type AGGR, after including 1854# Tries to find if the field MEMBER exists in type AGGR, after including
1854# INCLUDES, setting cache variable VAR accordingly. 1855# INCLUDES, setting cache variable VAR accordingly.
1855ac_fn_c_check_member () 1856ac_fn_c_check_member ()
1856{ 1857{
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1859$as_echo_n "checking for $2.$3... " >&6; } 1860$as_echo_n "checking for $2.$3... " >&6; }
1860if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 1861if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6 1862 $as_echo_n "(cached) " >&6
1862else 1863else
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h. */ 1865/* end confdefs.h. */
1865$5 1866$5
1866int 1867int
1867main () 1868main ()
1868{ 1869{
1869static $2 ac_aggr; 1870static $2 ac_aggr;
1870if (ac_aggr.$3) 1871if (ac_aggr.$3)
1871return 0; 1872return 0;
1872 ; 1873 ;
1873 return 0; 1874 return 0;
1874} 1875}
1875_ACEOF 1876_ACEOF
1876if ac_fn_c_try_compile "$LINENO"; then : 1877if ac_fn_c_try_compile "$LINENO"; then :
1877 eval "$4=yes" 1878 eval "$4=yes"
1878else 1879else
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h. */ 1881/* end confdefs.h. */
1881$5 1882$5
1882int 1883int
1883main () 1884main ()
1884{ 1885{
1885static $2 ac_aggr; 1886static $2 ac_aggr;
1886if (sizeof ac_aggr.$3) 1887if (sizeof ac_aggr.$3)
1887return 0; 1888return 0;
1888 ; 1889 ;
1889 return 0; 1890 return 0;
1890} 1891}
1891_ACEOF 1892_ACEOF
1892if ac_fn_c_try_compile "$LINENO"; then : 1893if ac_fn_c_try_compile "$LINENO"; then :
1893 eval "$4=yes" 1894 eval "$4=yes"
1894else 1895else
1895 eval "$4=no" 1896 eval "$4=no"
1896fi 1897fi
1897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898fi 1899fi
1899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900fi 1901fi
1901eval ac_res=\$$4 1902eval ac_res=\$$4
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903$as_echo "$ac_res" >&6; } 1904$as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1905 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 1906
1906} # ac_fn_c_check_member 1907} # ac_fn_c_check_member
1907cat >config.log <<_ACEOF 1908cat >config.log <<_ACEOF
1908This file contains any messages produced by compilers while 1909This file contains any messages produced by compilers while
1909running configure, to aid debugging if configure makes a mistake. 1910running configure, to aid debugging if configure makes a mistake.
1910 1911
1911It was created by bmake $as_me 20140214, which was 1912It was created by bmake $as_me 20140214, which was
1912generated by GNU Autoconf 2.64. Invocation command line was 1913generated by GNU Autoconf 2.64. Invocation command line was
1913 1914
1914 $ $0 $@ 1915 $ $0 $@
1915 1916
1916_ACEOF 1917_ACEOF
1917exec 5>>config.log 1918exec 5>>config.log
1918{ 1919{
1919cat <<_ASUNAME 1920cat <<_ASUNAME
1920## --------- ## 1921## --------- ##
1921## Platform. ## 1922## Platform. ##
1922## --------- ## 1923## --------- ##
1923 1924
1924hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1925hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1925uname -m = `(uname -m) 2>/dev/null || echo unknown` 1926uname -m = `(uname -m) 2>/dev/null || echo unknown`
1926uname -r = `(uname -r) 2>/dev/null || echo unknown` 1927uname -r = `(uname -r) 2>/dev/null || echo unknown`
1927uname -s = `(uname -s) 2>/dev/null || echo unknown` 1928uname -s = `(uname -s) 2>/dev/null || echo unknown`
1928uname -v = `(uname -v) 2>/dev/null || echo unknown` 1929uname -v = `(uname -v) 2>/dev/null || echo unknown`
1929 1930
1930/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1931/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1931/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1932/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1932 1933
1933/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1934/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1934/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1935/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1935/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1936/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1936/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1937/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1937/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1938/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1938/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1939/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1939/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1940/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1940 1941
1941_ASUNAME 1942_ASUNAME
1942 1943
1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH 1945for as_dir in $PATH
1945do 1946do
1946 IFS=$as_save_IFS 1947 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=. 1948 test -z "$as_dir" && as_dir=.
1948 $as_echo "PATH: $as_dir" 1949 $as_echo "PATH: $as_dir"
1949 done 1950 done
1950IFS=$as_save_IFS 1951IFS=$as_save_IFS
1951 1952
1952} >&5 1953} >&5
1953 1954
1954cat >&5 <<_ACEOF 1955cat >&5 <<_ACEOF
1955 1956
1956 1957
1957## ----------- ## 1958## ----------- ##
1958## Core tests. ## 1959## Core tests. ##
1959## ----------- ## 1960## ----------- ##
1960 1961
1961_ACEOF 1962_ACEOF
1962 1963
1963 1964
1964# Keep a trace of the command line. 1965# Keep a trace of the command line.
1965# Strip out --no-create and --no-recursion so they do not pile up. 1966# Strip out --no-create and --no-recursion so they do not pile up.
1966# Strip out --silent because we don't want to record it for future runs. 1967# Strip out --silent because we don't want to record it for future runs.
1967# Also quote any args containing shell meta-characters. 1968# Also quote any args containing shell meta-characters.
1968# Make two passes to allow for proper duplicate-argument suppression. 1969# Make two passes to allow for proper duplicate-argument suppression.
1969ac_configure_args= 1970ac_configure_args=
1970ac_configure_args0= 1971ac_configure_args0=
1971ac_configure_args1= 1972ac_configure_args1=
1972ac_must_keep_next=false 1973ac_must_keep_next=false
1973for ac_pass in 1 2 1974for ac_pass in 1 2
1974do 1975do
1975 for ac_arg 1976 for ac_arg
1976 do 1977 do
1977 case $ac_arg in 1978 case $ac_arg in
1978 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1979 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1980 | -silent | --silent | --silen | --sile | --sil) 1981 | -silent | --silent | --silen | --sile | --sil)
1981 continue ;; 1982 continue ;;
1982 *\'*) 1983 *\'*)
1983 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1984 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1984 esac 1985 esac
1985 case $ac_pass in 1986 case $ac_pass in
1986 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1987 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1987 2) 1988 2)
1988 as_fn_append ac_configure_args1 " '$ac_arg'" 1989 as_fn_append ac_configure_args1 " '$ac_arg'"
1989 if test $ac_must_keep_next = true; then 1990 if test $ac_must_keep_next = true; then
1990 ac_must_keep_next=false # Got value, back to normal. 1991 ac_must_keep_next=false # Got value, back to normal.
1991 else 1992 else
1992 case $ac_arg in 1993 case $ac_arg in
1993 *=* | --config-cache | -C | -disable-* | --disable-* \ 1994 *=* | --config-cache | -C | -disable-* | --disable-* \
1994 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1995 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1995 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1996 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1996 | -with-* | --with-* | -without-* | --without-* | --x) 1997 | -with-* | --with-* | -without-* | --without-* | --x)
1997 case "$ac_configure_args0 " in 1998 case "$ac_configure_args0 " in
1998 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1999 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1999 esac 2000 esac
2000 ;; 2001 ;;
2001 -* ) ac_must_keep_next=true ;; 2002 -* ) ac_must_keep_next=true ;;
2002 esac 2003 esac
2003 fi 2004 fi
2004 as_fn_append ac_configure_args " '$ac_arg'" 2005 as_fn_append ac_configure_args " '$ac_arg'"
2005 ;; 2006 ;;
2006 esac 2007 esac
2007 done 2008 done
2008done 2009done
2009{ ac_configure_args0=; unset ac_configure_args0;} 2010{ ac_configure_args0=; unset ac_configure_args0;}
2010{ ac_configure_args1=; unset ac_configure_args1;} 2011{ ac_configure_args1=; unset ac_configure_args1;}
2011 2012
2012# When interrupted or exit'd, cleanup temporary files, and complete 2013# When interrupted or exit'd, cleanup temporary files, and complete
2013# config.log. We remove comments because anyway the quotes in there 2014# config.log. We remove comments because anyway the quotes in there
2014# would cause problems or look ugly. 2015# would cause problems or look ugly.
2015# WARNING: Use '\'' to represent an apostrophe within the trap. 2016# WARNING: Use '\'' to represent an apostrophe within the trap.
2016# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2017# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2017trap 'exit_status=$? 2018trap 'exit_status=$?
2018 # Save into config.log some information that might help in debugging. 2019 # Save into config.log some information that might help in debugging.
2019 { 2020 {
2020 echo 2021 echo
2021 2022
2022 cat <<\_ASBOX 2023 cat <<\_ASBOX
2023## ---------------- ## 2024## ---------------- ##
2024## Cache variables. ## 2025## Cache variables. ##
2025## ---------------- ## 2026## ---------------- ##
2026_ASBOX 2027_ASBOX
2027 echo 2028 echo
2028 # The following way of writing the cache mishandles newlines in values, 2029 # The following way of writing the cache mishandles newlines in values,
2029( 2030(
2030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2031 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2031 eval ac_val=\$$ac_var 2032 eval ac_val=\$$ac_var
2032 case $ac_val in #( 2033 case $ac_val in #(
2033 *${as_nl}*) 2034 *${as_nl}*)
2034 case $ac_var in #( 2035 case $ac_var in #(
2035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2036 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2037$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2037 esac 2038 esac
2038 case $ac_var in #( 2039 case $ac_var in #(
2039 _ | IFS | as_nl) ;; #( 2040 _ | IFS | as_nl) ;; #(
2040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2041 *) { eval $ac_var=; unset $ac_var;} ;; 2042 *) { eval $ac_var=; unset $ac_var;} ;;
2042 esac ;; 2043 esac ;;
2043 esac 2044 esac
2044 done 2045 done
2045 (set) 2>&1 | 2046 (set) 2>&1 |
2046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2047 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2047 *${as_nl}ac_space=\ *) 2048 *${as_nl}ac_space=\ *)
2048 sed -n \ 2049 sed -n \
2049 "s/'\''/'\''\\\\'\'''\''/g; 2050 "s/'\''/'\''\\\\'\'''\''/g;
2050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2051 ;; #( 2052 ;; #(
2052 *) 2053 *)
2053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2054 ;; 2055 ;;
2055 esac | 2056 esac |
2056 sort 2057 sort
2057) 2058)
2058 echo 2059 echo
2059 2060
2060 cat <<\_ASBOX 2061 cat <<\_ASBOX
2061## ----------------- ## 2062## ----------------- ##
2062## Output variables. ## 2063## Output variables. ##
2063## ----------------- ## 2064## ----------------- ##
2064_ASBOX 2065_ASBOX
2065 echo 2066 echo
2066 for ac_var in $ac_subst_vars 2067 for ac_var in $ac_subst_vars
2067 do 2068 do
2068 eval ac_val=\$$ac_var 2069 eval ac_val=\$$ac_var
2069 case $ac_val in 2070 case $ac_val in
2070 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2071 esac 2072 esac
2072 $as_echo "$ac_var='\''$ac_val'\''" 2073 $as_echo "$ac_var='\''$ac_val'\''"
2073 done | sort 2074 done | sort
2074 echo 2075 echo
2075 2076
2076 if test -n "$ac_subst_files"; then 2077 if test -n "$ac_subst_files"; then
2077 cat <<\_ASBOX 2078 cat <<\_ASBOX
2078## ------------------- ## 2079## ------------------- ##
2079## File substitutions. ## 2080## File substitutions. ##
2080## ------------------- ## 2081## ------------------- ##
2081_ASBOX 2082_ASBOX
2082 echo 2083 echo
2083 for ac_var in $ac_subst_files 2084 for ac_var in $ac_subst_files
2084 do 2085 do
2085 eval ac_val=\$$ac_var 2086 eval ac_val=\$$ac_var
2086 case $ac_val in 2087 case $ac_val in
2087 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2088 esac 2089 esac
2089 $as_echo "$ac_var='\''$ac_val'\''" 2090 $as_echo "$ac_var='\''$ac_val'\''"
2090 done | sort 2091 done | sort
2091 echo 2092 echo
2092 fi 2093 fi
2093 2094
2094 if test -s confdefs.h; then 2095 if test -s confdefs.h; then
2095 cat <<\_ASBOX 2096 cat <<\_ASBOX
2096## ----------- ## 2097## ----------- ##
2097## confdefs.h. ## 2098## confdefs.h. ##
2098## ----------- ## 2099## ----------- ##
2099_ASBOX 2100_ASBOX
2100 echo 2101 echo
2101 cat confdefs.h 2102 cat confdefs.h
2102 echo 2103 echo
2103 fi 2104 fi
2104 test "$ac_signal" != 0 && 2105 test "$ac_signal" != 0 &&
2105 $as_echo "$as_me: caught signal $ac_signal" 2106 $as_echo "$as_me: caught signal $ac_signal"
2106 $as_echo "$as_me: exit $exit_status" 2107 $as_echo "$as_me: exit $exit_status"
2107 } >&5 2108 } >&5
2108 rm -f core *.core core.conftest.* && 2109 rm -f core *.core core.conftest.* &&
2109 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2110 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2110 exit $exit_status 2111 exit $exit_status
2111' 0 2112' 0
2112for ac_signal in 1 2 13 15; do 2113for ac_signal in 1 2 13 15; do
2113 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2114 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2114done 2115done
2115ac_signal=0 2116ac_signal=0
2116 2117
2117# confdefs.h avoids OS command line length limits that DEFS can exceed. 2118# confdefs.h avoids OS command line length limits that DEFS can exceed.
2118rm -f -r conftest* confdefs.h 2119rm -f -r conftest* confdefs.h
2119 2120
2120$as_echo "/* confdefs.h */" > confdefs.h 2121$as_echo "/* confdefs.h */" > confdefs.h
2121 2122
2122# Predefined preprocessor variables. 2123# Predefined preprocessor variables.
2123 2124
2124cat >>confdefs.h <<_ACEOF 2125cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_NAME "$PACKAGE_NAME" 2126#define PACKAGE_NAME "$PACKAGE_NAME"
2126_ACEOF 2127_ACEOF
2127 2128
2128cat >>confdefs.h <<_ACEOF 2129cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2130#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2130_ACEOF 2131_ACEOF
2131 2132
2132cat >>confdefs.h <<_ACEOF 2133cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_VERSION "$PACKAGE_VERSION" 2134#define PACKAGE_VERSION "$PACKAGE_VERSION"
2134_ACEOF 2135_ACEOF
2135 2136
2136cat >>confdefs.h <<_ACEOF 2137cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_STRING "$PACKAGE_STRING" 2138#define PACKAGE_STRING "$PACKAGE_STRING"
2138_ACEOF 2139_ACEOF
2139 2140
2140cat >>confdefs.h <<_ACEOF 2141cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2142#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2142_ACEOF 2143_ACEOF
2143 2144
2144cat >>confdefs.h <<_ACEOF 2145cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_URL "$PACKAGE_URL" 2146#define PACKAGE_URL "$PACKAGE_URL"
2146_ACEOF 2147_ACEOF
2147 2148
2148 2149
2149# Let the site file select an alternate cache file if it wants to. 2150# Let the site file select an alternate cache file if it wants to.
2150# Prefer an explicitly selected file to automatically selected ones. 2151# Prefer an explicitly selected file to automatically selected ones.
2151ac_site_file1=NONE 2152ac_site_file1=NONE
2152ac_site_file2=NONE 2153ac_site_file2=NONE
2153if test -n "$CONFIG_SITE"; then 2154if test -n "$CONFIG_SITE"; then
2154 ac_site_file1=$CONFIG_SITE 2155 ac_site_file1=$CONFIG_SITE
2155elif test "x$prefix" != xNONE; then 2156elif test "x$prefix" != xNONE; then
2156 ac_site_file1=$prefix/share/config.site 2157 ac_site_file1=$prefix/share/config.site
2157 ac_site_file2=$prefix/etc/config.site 2158 ac_site_file2=$prefix/etc/config.site
2158else 2159else
2159 ac_site_file1=$ac_default_prefix/share/config.site 2160 ac_site_file1=$ac_default_prefix/share/config.site
2160 ac_site_file2=$ac_default_prefix/etc/config.site 2161 ac_site_file2=$ac_default_prefix/etc/config.site
2161fi 2162fi
2162for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2163for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2163do 2164do
2164 test "x$ac_site_file" = xNONE && continue 2165 test "x$ac_site_file" = xNONE && continue
2165 if test -r "$ac_site_file"; then 2166 if test -r "$ac_site_file"; then
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2167$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2168$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2168 sed 's/^/| /' "$ac_site_file" >&5 2169 sed 's/^/| /' "$ac_site_file" >&5
2169 . "$ac_site_file" 2170 . "$ac_site_file"
2170 fi 2171 fi
2171done 2172done
2172 2173
2173if test -r "$cache_file"; then 2174if test -r "$cache_file"; then
2174 # Some versions of bash will fail to source /dev/null (special 2175 # Some versions of bash will fail to source /dev/null (special
2175 # files actually), so we avoid doing that. 2176 # files actually), so we avoid doing that.
2176 if test -f "$cache_file"; then 2177 if test -f "$cache_file"; then
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2178$as_echo "$as_me: loading cache $cache_file" >&6;} 2179$as_echo "$as_me: loading cache $cache_file" >&6;}
2179 case $cache_file in 2180 case $cache_file in
2180 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2181 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2181 *) . "./$cache_file";; 2182 *) . "./$cache_file";;
2182 esac 2183 esac
2183 fi 2184 fi
2184else 2185else
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2186$as_echo "$as_me: creating cache $cache_file" >&6;} 2187$as_echo "$as_me: creating cache $cache_file" >&6;}
2187 >$cache_file 2188 >$cache_file
2188fi 2189fi
2189 2190
2190# Check that the precious variables saved in the cache have kept the same 2191# Check that the precious variables saved in the cache have kept the same
2191# value. 2192# value.
2192ac_cache_corrupted=false 2193ac_cache_corrupted=false
2193for ac_var in $ac_precious_vars; do 2194for ac_var in $ac_precious_vars; do
2194 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2195 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2195 eval ac_new_set=\$ac_env_${ac_var}_set 2196 eval ac_new_set=\$ac_env_${ac_var}_set
2196 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2197 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2197 eval ac_new_val=\$ac_env_${ac_var}_value 2198 eval ac_new_val=\$ac_env_${ac_var}_value
2198 case $ac_old_set,$ac_new_set in 2199 case $ac_old_set,$ac_new_set in
2199 set,) 2200 set,)
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2201$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2202$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2202 ac_cache_corrupted=: ;; 2203 ac_cache_corrupted=: ;;
2203 ,set) 2204 ,set)
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2205$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2206$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2206 ac_cache_corrupted=: ;; 2207 ac_cache_corrupted=: ;;
2207 ,);; 2208 ,);;
2208 *) 2209 *)
2209 if test "x$ac_old_val" != "x$ac_new_val"; then 2210 if test "x$ac_old_val" != "x$ac_new_val"; then
2210 # differences in whitespace do not lead to failure. 2211 # differences in whitespace do not lead to failure.
2211 ac_old_val_w=`echo x $ac_old_val` 2212 ac_old_val_w=`echo x $ac_old_val`
2212 ac_new_val_w=`echo x $ac_new_val` 2213 ac_new_val_w=`echo x $ac_new_val`
2213 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2214 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2215$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2216$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2216 ac_cache_corrupted=: 2217 ac_cache_corrupted=:
2217 else 2218 else
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2219$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2220$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2220 eval $ac_var=\$ac_old_val 2221 eval $ac_var=\$ac_old_val
2221 fi 2222 fi
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2223$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2224$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2225$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2226$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2226 fi;; 2227 fi;;
2227 esac 2228 esac
2228 # Pass precious variables to config.status. 2229 # Pass precious variables to config.status.
2229 if test "$ac_new_set" = set; then 2230 if test "$ac_new_set" = set; then
2230 case $ac_new_val in 2231 case $ac_new_val in
2231 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2232 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2232 *) ac_arg=$ac_var=$ac_new_val ;; 2233 *) ac_arg=$ac_var=$ac_new_val ;;
2233 esac 2234 esac
2234 case " $ac_configure_args " in 2235 case " $ac_configure_args " in
2235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2236 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2237 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2237 esac 2238 esac
2238 fi 2239 fi
2239done 2240done
2240if $ac_cache_corrupted; then 2241if $ac_cache_corrupted; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2244$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2245$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2245 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2246 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2246fi 2247fi
2247## -------------------- ## 2248## -------------------- ##
2248## Main body of script. ## 2249## Main body of script. ##
2249## -------------------- ## 2250## -------------------- ##
2250 2251
2251ac_ext=c 2252ac_ext=c
2252ac_cpp='$CPP $CPPFLAGS' 2253ac_cpp='$CPP $CPPFLAGS'
2253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2255ac_compiler_gnu=$ac_cv_c_compiler_gnu 2256ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256 2257
2257 2258
2258ac_config_headers="$ac_config_headers config.h" 2259ac_config_headers="$ac_config_headers config.h"
2259 2260
2260 2261
2261case "$srcdir" in 2262case "$srcdir" in
2262/*) ;; 2263/*) ;;
2263*) srcdir=`cd $srcdir && pwd`;; 2264*) srcdir=`cd $srcdir && pwd`;;
2264esac 2265esac
2265 2266
 2267. $srcdir/VERSION
 2268
2266 2269
2267# Check whether --with-defshell was given. 2270# Check whether --with-defshell was given.
2268if test "${with_defshell+set}" = set; then : 2271if test "${with_defshell+set}" = set; then :
2269 withval=$with_defshell; case "${withval}" in 2272 withval=$with_defshell; case "${withval}" in
2270yes) as_fn_error "bad value ${withval} given for bmake DEFSHELL" "$LINENO" 5 ;; 2273yes) as_fn_error "bad value ${withval} given for bmake DEFSHELL" "$LINENO" 5 ;;
2271no) ;; 2274no) ;;
2272*) case "$with_defshell" in 2275*) case "$with_defshell" in
2273 sh) DEFSHELL_INDEX=DEFSHELL_INDEX_SH;; # it's the default anyway 2276 sh) DEFSHELL_INDEX=DEFSHELL_INDEX_SH;; # it's the default anyway
2274 ksh) DEFSHELL_INDEX=DEFSHELL_INDEX_KSH;; 2277 ksh) DEFSHELL_INDEX=DEFSHELL_INDEX_KSH;;
2275 csh) DEFSHELL_INDEX=DEFSHELL_INDEX_CSH;; # kidding right? 2278 csh) DEFSHELL_INDEX=DEFSHELL_INDEX_CSH;; # kidding right?
2276 *) defshell_path=$with_defshell;; # better be sh compatible! 2279 *) defshell_path=$with_defshell;; # better be sh compatible!
2277 esac 2280 esac
2278 ;; 2281 ;;
2279 esac 2282 esac
2280fi 2283fi
2281 2284
2282use_meta=yes 2285use_meta=yes
2283 2286
2284# Check whether --with-meta was given. 2287# Check whether --with-meta was given.
2285if test "${with_meta+set}" = set; then : 2288if test "${with_meta+set}" = set; then :
2286 withval=$with_meta; case "${withval}" in 2289 withval=$with_meta; case "${withval}" in
2287yes|no) use_meta=${withval};; 2290yes|no) use_meta=${withval};;
2288*) as_fn_error "bad value ${withval} given for meta" "$LINENO" 5 ;; 2291*) as_fn_error "bad value ${withval} given for meta" "$LINENO" 5 ;;
2289esac 2292esac
2290fi 2293fi
2291 2294
2292 2295
2293# Check whether --with-filemon was given. 2296# Check whether --with-filemon was given.
2294if test "${with_filemon+set}" = set; then : 2297if test "${with_filemon+set}" = set; then :
2295 withval=$with_filemon; case "/${withval}" in 2298 withval=$with_filemon; case "/${withval}" in
2296/no|*/filemon.h) filemon_h="${withval}";; 2299/no|*/filemon.h) filemon_h="${withval}";;
2297*/filemon*) filemon_h="${withval}/filemon.h";; 2300*/filemon*) filemon_h="${withval}/filemon.h";;
2298*) as_fn_error "bad value ${withval} given for filemon" "$LINENO" 5 ;; 2301*) as_fn_error "bad value ${withval} given for filemon" "$LINENO" 5 ;;
2299esac 2302esac
2300else 2303else
2301 2304
2302OS=`uname -s` 2305OS=`uname -s`
2303for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/filemon" "$srcdir/../filemon" "$srcdir/../../sys/dev/filemon" 2306for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/filemon" "$srcdir/../filemon" "$srcdir/../../sys/dev/filemon"
2304do 2307do
2305 for x in "/$OS" "" 2308 for x in "/$OS" ""
2306 do 2309 do
2307 filemon_h="$d$x/filemon.h" 2310 filemon_h="$d$x/filemon.h"
2308 test -s "$filemon_h" && break 2311 test -s "$filemon_h" && break
2309 done 2312 done
2310 test -s "$filemon_h" && break 2313 test -s "$filemon_h" && break
2311done 2314done
2312test -s "${filemon_h:-/dev/null}" || filemon_h=no 2315test -s "${filemon_h:-/dev/null}" || filemon_h=no
2313 2316
2314fi 2317fi
2315 2318
2316case "$use_meta" in 2319case "$use_meta" in
2317yes) 2320yes)
2318 case "$filemon_h" in 2321 case "$filemon_h" in
2319 *.h) echo "Using: filemon=$filemon_h" >&6;; 2322 *.h) echo "Using: filemon=$filemon_h" >&6;;
2320 esac 2323 esac
2321 ;; 2324 ;;
2322esac 2325esac
2323ac_ext=c 2326ac_ext=c
2324ac_cpp='$CPP $CPPFLAGS' 2327ac_cpp='$CPP $CPPFLAGS'
2325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2327ac_compiler_gnu=$ac_cv_c_compiler_gnu 2330ac_compiler_gnu=$ac_cv_c_compiler_gnu
2328if test -n "$ac_tool_prefix"; then 2331if test -n "$ac_tool_prefix"; then
2329 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2332 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2330set dummy ${ac_tool_prefix}gcc; ac_word=$2 2333set dummy ${ac_tool_prefix}gcc; ac_word=$2
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2332$as_echo_n "checking for $ac_word... " >&6; } 2335$as_echo_n "checking for $ac_word... " >&6; }
2333if test "${ac_cv_prog_CC+set}" = set; then : 2336if test "${ac_cv_prog_CC+set}" = set; then :
2334 $as_echo_n "(cached) " >&6 2337 $as_echo_n "(cached) " >&6
2335else 2338else
2336 if test -n "$CC"; then 2339 if test -n "$CC"; then
2337 ac_cv_prog_CC="$CC" # Let the user override the test. 2340 ac_cv_prog_CC="$CC" # Let the user override the test.
2338else 2341else
2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340for as_dir in $PATH 2343for as_dir in $PATH
2341do 2344do
2342 IFS=$as_save_IFS 2345 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=. 2346 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do 2347 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2349 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 break 2 2351 break 2
2349 fi 2352 fi
2350done 2353done
2351 done 2354 done
2352IFS=$as_save_IFS 2355IFS=$as_save_IFS
2353 2356
2354fi 2357fi
2355fi 2358fi
2356CC=$ac_cv_prog_CC 2359CC=$ac_cv_prog_CC
2357if test -n "$CC"; then 2360if test -n "$CC"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2359$as_echo "$CC" >&6; } 2362$as_echo "$CC" >&6; }
2360else 2363else
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2362$as_echo "no" >&6; } 2365$as_echo "no" >&6; }
2363fi 2366fi
2364 2367
2365 2368
2366fi 2369fi
2367if test -z "$ac_cv_prog_CC"; then 2370if test -z "$ac_cv_prog_CC"; then
2368 ac_ct_CC=$CC 2371 ac_ct_CC=$CC
2369 # Extract the first word of "gcc", so it can be a program name with args. 2372 # Extract the first word of "gcc", so it can be a program name with args.
2370set dummy gcc; ac_word=$2 2373set dummy gcc; ac_word=$2
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2372$as_echo_n "checking for $ac_word... " >&6; } 2375$as_echo_n "checking for $ac_word... " >&6; }
2373if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2376if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2374 $as_echo_n "(cached) " >&6 2377 $as_echo_n "(cached) " >&6
2375else 2378else
2376 if test -n "$ac_ct_CC"; then 2379 if test -n "$ac_ct_CC"; then
2377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2380 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2378else 2381else
2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380for as_dir in $PATH 2383for as_dir in $PATH
2381do 2384do
2382 IFS=$as_save_IFS 2385 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=. 2386 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do 2387 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2386 ac_cv_prog_ac_ct_CC="gcc" 2389 ac_cv_prog_ac_ct_CC="gcc"
2387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 break 2 2391 break 2
2389 fi 2392 fi
2390done 2393done
2391 done 2394 done
2392IFS=$as_save_IFS 2395IFS=$as_save_IFS
2393 2396
2394fi 2397fi
2395fi 2398fi
2396ac_ct_CC=$ac_cv_prog_ac_ct_CC 2399ac_ct_CC=$ac_cv_prog_ac_ct_CC
2397if test -n "$ac_ct_CC"; then 2400if test -n "$ac_ct_CC"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2399$as_echo "$ac_ct_CC" >&6; } 2402$as_echo "$ac_ct_CC" >&6; }
2400else 2403else
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2402$as_echo "no" >&6; } 2405$as_echo "no" >&6; }
2403fi 2406fi
2404 2407
2405 if test "x$ac_ct_CC" = x; then 2408 if test "x$ac_ct_CC" = x; then
2406 CC="" 2409 CC=""
2407 else 2410 else
2408 case $cross_compiling:$ac_tool_warned in 2411 case $cross_compiling:$ac_tool_warned in
2409yes:) 2412yes:)
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2412ac_tool_warned=yes ;; 2415ac_tool_warned=yes ;;
2413esac 2416esac
2414 CC=$ac_ct_CC 2417 CC=$ac_ct_CC
2415 fi 2418 fi
2416else 2419else
2417 CC="$ac_cv_prog_CC" 2420 CC="$ac_cv_prog_CC"
2418fi 2421fi
2419 2422
2420if test -z "$CC"; then 2423if test -z "$CC"; then
2421 if test -n "$ac_tool_prefix"; then 2424 if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2425 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2423set dummy ${ac_tool_prefix}cc; ac_word=$2 2426set dummy ${ac_tool_prefix}cc; ac_word=$2
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425$as_echo_n "checking for $ac_word... " >&6; } 2428$as_echo_n "checking for $ac_word... " >&6; }
2426if test "${ac_cv_prog_CC+set}" = set; then : 2429if test "${ac_cv_prog_CC+set}" = set; then :
2427 $as_echo_n "(cached) " >&6 2430 $as_echo_n "(cached) " >&6
2428else 2431else
2429 if test -n "$CC"; then 2432 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test. 2433 ac_cv_prog_CC="$CC" # Let the user override the test.
2431else 2434else
2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH 2436for as_dir in $PATH
2434do 2437do
2435 IFS=$as_save_IFS 2438 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=. 2439 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do 2440 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2439 ac_cv_prog_CC="${ac_tool_prefix}cc" 2442 ac_cv_prog_CC="${ac_tool_prefix}cc"
2440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 break 2 2444 break 2
2442 fi 2445 fi
2443done 2446done
2444 done 2447 done
2445IFS=$as_save_IFS 2448IFS=$as_save_IFS
2446 2449
2447fi 2450fi
2448fi 2451fi
2449CC=$ac_cv_prog_CC 2452CC=$ac_cv_prog_CC
2450if test -n "$CC"; then 2453if test -n "$CC"; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2452$as_echo "$CC" >&6; } 2455$as_echo "$CC" >&6; }
2453else 2456else
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455$as_echo "no" >&6; } 2458$as_echo "no" >&6; }
2456fi 2459fi
2457 2460
2458 2461
2459 fi 2462 fi
2460fi 2463fi
2461if test -z "$CC"; then 2464if test -z "$CC"; then
2462 # Extract the first word of "cc", so it can be a program name with args. 2465 # Extract the first word of "cc", so it can be a program name with args.
2463set dummy cc; ac_word=$2 2466set dummy cc; ac_word=$2
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465$as_echo_n "checking for $ac_word... " >&6; } 2468$as_echo_n "checking for $ac_word... " >&6; }
2466if test "${ac_cv_prog_CC+set}" = set; then : 2469if test "${ac_cv_prog_CC+set}" = set; then :
2467 $as_echo_n "(cached) " >&6 2470 $as_echo_n "(cached) " >&6
2468else 2471else
2469 if test -n "$CC"; then 2472 if test -n "$CC"; then
2470 ac_cv_prog_CC="$CC" # Let the user override the test. 2473 ac_cv_prog_CC="$CC" # Let the user override the test.
2471else 2474else
2472 ac_prog_rejected=no 2475 ac_prog_rejected=no
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH 2477for as_dir in $PATH
2475do 2478do
2476 IFS=$as_save_IFS 2479 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=. 2480 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do 2481 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2481 ac_prog_rejected=yes 2484 ac_prog_rejected=yes
2482 continue 2485 continue
2483 fi 2486 fi
2484 ac_cv_prog_CC="cc" 2487 ac_cv_prog_CC="cc"
2485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 break 2 2489 break 2
2487 fi 2490 fi
2488done 2491done
2489 done 2492 done
2490IFS=$as_save_IFS 2493IFS=$as_save_IFS
2491 2494
2492if test $ac_prog_rejected = yes; then 2495if test $ac_prog_rejected = yes; then
2493 # We found a bogon in the path, so make sure we never use it. 2496 # We found a bogon in the path, so make sure we never use it.
2494 set dummy $ac_cv_prog_CC 2497 set dummy $ac_cv_prog_CC
2495 shift 2498 shift
2496 if test $# != 0; then 2499 if test $# != 0; then
2497 # We chose a different compiler from the bogus one. 2500 # We chose a different compiler from the bogus one.
2498 # However, it has the same basename, so the bogon will be chosen 2501 # However, it has the same basename, so the bogon will be chosen
2499 # first if we set CC to just the basename; use the full file name. 2502 # first if we set CC to just the basename; use the full file name.
2500 shift 2503 shift
2501 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2504 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2502 fi 2505 fi
2503fi 2506fi
2504fi 2507fi
2505fi 2508fi
2506CC=$ac_cv_prog_CC 2509CC=$ac_cv_prog_CC
2507if test -n "$CC"; then 2510if test -n "$CC"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2509$as_echo "$CC" >&6; } 2512$as_echo "$CC" >&6; }
2510else 2513else
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2512$as_echo "no" >&6; } 2515$as_echo "no" >&6; }
2513fi 2516fi
2514 2517
2515 2518
2516fi 2519fi
2517if test -z "$CC"; then 2520if test -z "$CC"; then
2518 if test -n "$ac_tool_prefix"; then 2521 if test -n "$ac_tool_prefix"; then
2519 for ac_prog in cl.exe 2522 for ac_prog in cl.exe
2520 do 2523 do
2521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2522set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2525set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524$as_echo_n "checking for $ac_word... " >&6; } 2527$as_echo_n "checking for $ac_word... " >&6; }
2525if test "${ac_cv_prog_CC+set}" = set; then : 2528if test "${ac_cv_prog_CC+set}" = set; then :
2526 $as_echo_n "(cached) " >&6 2529 $as_echo_n "(cached) " >&6
2527else 2530else
2528 if test -n "$CC"; then 2531 if test -n "$CC"; then
2529 ac_cv_prog_CC="$CC" # Let the user override the test. 2532 ac_cv_prog_CC="$CC" # Let the user override the test.
2530else 2533else
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH 2535for as_dir in $PATH
2533do 2536do
2534 IFS=$as_save_IFS 2537 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=. 2538 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do 2539 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2538 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2541 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 break 2 2543 break 2
2541 fi 2544 fi
2542done 2545done
2543 done 2546 done
2544IFS=$as_save_IFS 2547IFS=$as_save_IFS
2545 2548
2546fi 2549fi
2547fi 2550fi
2548CC=$ac_cv_prog_CC 2551CC=$ac_cv_prog_CC
2549if test -n "$CC"; then 2552if test -n "$CC"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2551$as_echo "$CC" >&6; } 2554$as_echo "$CC" >&6; }
2552else 2555else
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554$as_echo "no" >&6; } 2557$as_echo "no" >&6; }
2555fi 2558fi
2556 2559
2557 2560
2558 test -n "$CC" && break 2561 test -n "$CC" && break
2559 done 2562 done
2560fi 2563fi
2561if test -z "$CC"; then 2564if test -z "$CC"; then
2562 ac_ct_CC=$CC 2565 ac_ct_CC=$CC
2563 for ac_prog in cl.exe 2566 for ac_prog in cl.exe
2564do 2567do
2565 # Extract the first word of "$ac_prog", so it can be a program name with args. 2568 # Extract the first word of "$ac_prog", so it can be a program name with args.
2566set dummy $ac_prog; ac_word=$2 2569set dummy $ac_prog; ac_word=$2
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568$as_echo_n "checking for $ac_word... " >&6; } 2571$as_echo_n "checking for $ac_word... " >&6; }
2569if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2572if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2570 $as_echo_n "(cached) " >&6 2573 $as_echo_n "(cached) " >&6
2571else 2574else
2572 if test -n "$ac_ct_CC"; then 2575 if test -n "$ac_ct_CC"; then
2573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2574else 2577else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH 2579for as_dir in $PATH
2577do 2580do
2578 IFS=$as_save_IFS 2581 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=. 2582 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do 2583 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_ac_ct_CC="$ac_prog" 2585 ac_cv_prog_ac_ct_CC="$ac_prog"
2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2 2587 break 2
2585 fi 2588 fi
2586done 2589done
2587 done 2590 done
2588IFS=$as_save_IFS 2591IFS=$as_save_IFS
2589 2592
2590fi 2593fi
2591fi 2594fi
2592ac_ct_CC=$ac_cv_prog_ac_ct_CC 2595ac_ct_CC=$ac_cv_prog_ac_ct_CC
2593if test -n "$ac_ct_CC"; then 2596if test -n "$ac_ct_CC"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2595$as_echo "$ac_ct_CC" >&6; } 2598$as_echo "$ac_ct_CC" >&6; }
2596else 2599else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598$as_echo "no" >&6; } 2601$as_echo "no" >&6; }
2599fi 2602fi
2600 2603
2601 2604
2602 test -n "$ac_ct_CC" && break 2605 test -n "$ac_ct_CC" && break
2603done 2606done
2604 2607
2605 if test "x$ac_ct_CC" = x; then 2608 if test "x$ac_ct_CC" = x; then
2606 CC="" 2609 CC=""
2607 else 2610 else
2608 case $cross_compiling:$ac_tool_warned in 2611 case $cross_compiling:$ac_tool_warned in
2609yes:) 2612yes:)
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2612ac_tool_warned=yes ;; 2615ac_tool_warned=yes ;;
2613esac 2616esac
2614 CC=$ac_ct_CC 2617 CC=$ac_ct_CC
2615 fi 2618 fi
2616fi 2619fi
2617 2620
2618fi 2621fi
2619 2622
2620 2623
2621test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2624test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623as_fn_error "no acceptable C compiler found in \$PATH 2626as_fn_error "no acceptable C compiler found in \$PATH
2624See \`config.log' for more details." "$LINENO" 5; } 2627See \`config.log' for more details." "$LINENO" 5; }
2625 2628
2626# Provide some information about the compiler. 2629# Provide some information about the compiler.
2627$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2630$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2628set X $ac_compile 2631set X $ac_compile
2629ac_compiler=$2 2632ac_compiler=$2
2630for ac_option in --version -v -V -qversion; do 2633for ac_option in --version -v -V -qversion; do
2631 { { ac_try="$ac_compiler $ac_option >&5" 2634 { { ac_try="$ac_compiler $ac_option >&5"
2632case "(($ac_try" in 2635case "(($ac_try" in
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;; 2637 *) ac_try_echo=$ac_try;;
2635esac 2638esac
2636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2637$as_echo "$ac_try_echo"; } >&5 2640$as_echo "$ac_try_echo"; } >&5
2638 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2641 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2639 ac_status=$? 2642 ac_status=$?
2640 if test -s conftest.err; then 2643 if test -s conftest.err; then
2641 sed '10a\ 2644 sed '10a\
2642... rest of stderr output deleted ... 2645... rest of stderr output deleted ...
2643 10q' conftest.err >conftest.er1 2646 10q' conftest.err >conftest.er1
2644 cat conftest.er1 >&5 2647 cat conftest.er1 >&5
2645 rm -f conftest.er1 conftest.err 2648 rm -f conftest.er1 conftest.err
2646 fi 2649 fi
2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648 test $ac_status = 0; } 2651 test $ac_status = 0; }
2649done 2652done
2650 2653
2651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652/* end confdefs.h. */ 2655/* end confdefs.h. */
2653#include <stdio.h> 2656#include <stdio.h>
2654int 2657int
2655main () 2658main ()
2656{ 2659{
2657FILE *f = fopen ("conftest.out", "w"); 2660FILE *f = fopen ("conftest.out", "w");
2658 return ferror (f) || fclose (f) != 0; 2661 return ferror (f) || fclose (f) != 0;
2659 2662
2660 ; 2663 ;
2661 return 0; 2664 return 0;
2662} 2665}
2663_ACEOF 2666_ACEOF
2664ac_clean_files_save=$ac_clean_files 2667ac_clean_files_save=$ac_clean_files
2665ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 2668ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2666# Try to create an executable without -o first, disregard a.out. 2669# Try to create an executable without -o first, disregard a.out.
2667# It will help us diagnose broken compilers, and finding out an intuition 2670# It will help us diagnose broken compilers, and finding out an intuition
2668# of exeext. 2671# of exeext.
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2670$as_echo_n "checking for C compiler default output file name... " >&6; } 2673$as_echo_n "checking for C compiler default output file name... " >&6; }
2671ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2674ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2672 2675
2673# The possible output files: 2676# The possible output files:
2674ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2677ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2675 2678
2676ac_rmfiles= 2679ac_rmfiles=
2677for ac_file in $ac_files 2680for ac_file in $ac_files
2678do 2681do
2679 case $ac_file in 2682 case $ac_file in
2680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2681 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2684 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2682 esac 2685 esac
2683done 2686done
2684rm -f $ac_rmfiles 2687rm -f $ac_rmfiles
2685 2688
2686if { { ac_try="$ac_link_default" 2689if { { ac_try="$ac_link_default"
2687case "(($ac_try" in 2690case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;; 2692 *) ac_try_echo=$ac_try;;
2690esac 2693esac
2691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692$as_echo "$ac_try_echo"; } >&5 2695$as_echo "$ac_try_echo"; } >&5
2693 (eval "$ac_link_default") 2>&5 2696 (eval "$ac_link_default") 2>&5
2694 ac_status=$? 2697 ac_status=$?
2695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2696 test $ac_status = 0; }; then : 2699 test $ac_status = 0; }; then :
2697 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2700 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2698# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2701# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2699# in a Makefile. We should not override ac_cv_exeext if it was cached, 2702# in a Makefile. We should not override ac_cv_exeext if it was cached,
2700# so that the user can short-circuit this test for compilers unknown to 2703# so that the user can short-circuit this test for compilers unknown to
2701# Autoconf. 2704# Autoconf.
2702for ac_file in $ac_files '' 2705for ac_file in $ac_files ''
2703do 2706do
2704 test -f "$ac_file" || continue 2707 test -f "$ac_file" || continue
2705 case $ac_file in 2708 case $ac_file in
2706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2707 ;; 2710 ;;
2708 [ab].out ) 2711 [ab].out )
2709 # We found the default executable, but exeext='' is most 2712 # We found the default executable, but exeext='' is most
2710 # certainly right. 2713 # certainly right.
2711 break;; 2714 break;;
2712 *.* ) 2715 *.* )
2713 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2716 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2714 then :; else 2717 then :; else
2715 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2718 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2716 fi 2719 fi
2717 # We set ac_cv_exeext here because the later test for it is not 2720 # We set ac_cv_exeext here because the later test for it is not
2718 # safe: cross compilers may not add the suffix if given an `-o' 2721 # safe: cross compilers may not add the suffix if given an `-o'
2719 # argument, so we may need to know it at that point already. 2722 # argument, so we may need to know it at that point already.
2720 # Even if this section looks crufty: it has the advantage of 2723 # Even if this section looks crufty: it has the advantage of
2721 # actually working. 2724 # actually working.
2722 break;; 2725 break;;
2723 * ) 2726 * )
2724 break;; 2727 break;;
2725 esac 2728 esac
2726done 2729done
2727test "$ac_cv_exeext" = no && ac_cv_exeext= 2730test "$ac_cv_exeext" = no && ac_cv_exeext=
2728 2731
2729else 2732else
2730 ac_file='' 2733 ac_file=''
2731fi 2734fi
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2733$as_echo "$ac_file" >&6; } 2736$as_echo "$ac_file" >&6; }
2734if test -z "$ac_file"; then : 2737if test -z "$ac_file"; then :
2735 $as_echo "$as_me: failed program was:" >&5 2738 $as_echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5 2739sed 's/^/| /' conftest.$ac_ext >&5
2737 2740
2738{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2741{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2740{ as_fn_set_status 77 2743{ as_fn_set_status 77
2741as_fn_error "C compiler cannot create executables 2744as_fn_error "C compiler cannot create executables
2742See \`config.log' for more details." "$LINENO" 5; }; } 2745See \`config.log' for more details." "$LINENO" 5; }; }
2743fi 2746fi
2744ac_exeext=$ac_cv_exeext 2747ac_exeext=$ac_cv_exeext
2745 2748
2746# Check that the compiler produces executables we can run. If not, either 2749# Check that the compiler produces executables we can run. If not, either
2747# the compiler is broken, or we cross compile. 2750# the compiler is broken, or we cross compile.
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2749$as_echo_n "checking whether the C compiler works... " >&6; } 2752$as_echo_n "checking whether the C compiler works... " >&6; }
2750# If not cross compiling, check that we can run a simple program. 2753# If not cross compiling, check that we can run a simple program.
2751if test "$cross_compiling" != yes; then 2754if test "$cross_compiling" != yes; then
2752 if { ac_try='./$ac_file' 2755 if { ac_try='./$ac_file'
2753 { { case "(($ac_try" in 2756 { { case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;; 2758 *) ac_try_echo=$ac_try;;
2756esac 2759esac
2757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2758$as_echo "$ac_try_echo"; } >&5 2761$as_echo "$ac_try_echo"; } >&5
2759 (eval "$ac_try") 2>&5 2762 (eval "$ac_try") 2>&5
2760 ac_status=$? 2763 ac_status=$?
2761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2762 test $ac_status = 0; }; }; then 2765 test $ac_status = 0; }; }; then
2763 cross_compiling=no 2766 cross_compiling=no
2764 else 2767 else
2765 if test "$cross_compiling" = maybe; then 2768 if test "$cross_compiling" = maybe; then
2766 cross_compiling=yes 2769 cross_compiling=yes
2767 else 2770 else
2768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2770as_fn_error "cannot run C compiled programs. 2773as_fn_error "cannot run C compiled programs.
2771If you meant to cross compile, use \`--host'. 2774If you meant to cross compile, use \`--host'.
2772See \`config.log' for more details." "$LINENO" 5; } 2775See \`config.log' for more details." "$LINENO" 5; }
2773 fi 2776 fi
2774 fi 2777 fi
2775fi 2778fi
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2777$as_echo "yes" >&6; } 2780$as_echo "yes" >&6; }
2778 2781
2779rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 2782rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2780ac_clean_files=$ac_clean_files_save 2783ac_clean_files=$ac_clean_files_save
2781# Check that the compiler produces executables we can run. If not, either 2784# Check that the compiler produces executables we can run. If not, either
2782# the compiler is broken, or we cross compile. 2785# the compiler is broken, or we cross compile.
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2784$as_echo_n "checking whether we are cross compiling... " >&6; } 2787$as_echo_n "checking whether we are cross compiling... " >&6; }
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2786$as_echo "$cross_compiling" >&6; } 2789$as_echo "$cross_compiling" >&6; }
2787 2790
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2789$as_echo_n "checking for suffix of executables... " >&6; } 2792$as_echo_n "checking for suffix of executables... " >&6; }
2790if { { ac_try="$ac_link" 2793if { { ac_try="$ac_link"
2791case "(($ac_try" in 2794case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;; 2796 *) ac_try_echo=$ac_try;;
2794esac 2797esac
2795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2796$as_echo "$ac_try_echo"; } >&5 2799$as_echo "$ac_try_echo"; } >&5
2797 (eval "$ac_link") 2>&5 2800 (eval "$ac_link") 2>&5
2798 ac_status=$? 2801 ac_status=$?
2799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2800 test $ac_status = 0; }; then : 2803 test $ac_status = 0; }; then :
2801 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2804 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2802# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2805# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2803# work properly (i.e., refer to `conftest.exe'), while it won't with 2806# work properly (i.e., refer to `conftest.exe'), while it won't with
2804# `rm'. 2807# `rm'.
2805for ac_file in conftest.exe conftest conftest.*; do 2808for ac_file in conftest.exe conftest conftest.*; do
2806 test -f "$ac_file" || continue 2809 test -f "$ac_file" || continue
2807 case $ac_file in 2810 case $ac_file in
2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2809 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2812 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2810 break;; 2813 break;;
2811 * ) break;; 2814 * ) break;;
2812 esac 2815 esac
2813done 2816done
2814else 2817else
2815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2817as_fn_error "cannot compute suffix of executables: cannot compile and link 2820as_fn_error "cannot compute suffix of executables: cannot compile and link
2818See \`config.log' for more details." "$LINENO" 5; } 2821See \`config.log' for more details." "$LINENO" 5; }
2819fi 2822fi
2820rm -f conftest$ac_cv_exeext 2823rm -f conftest$ac_cv_exeext
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2822$as_echo "$ac_cv_exeext" >&6; } 2825$as_echo "$ac_cv_exeext" >&6; }
2823 2826
2824rm -f conftest.$ac_ext 2827rm -f conftest.$ac_ext
2825EXEEXT=$ac_cv_exeext 2828EXEEXT=$ac_cv_exeext
2826ac_exeext=$EXEEXT 2829ac_exeext=$EXEEXT
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2828$as_echo_n "checking for suffix of object files... " >&6; } 2831$as_echo_n "checking for suffix of object files... " >&6; }
2829if test "${ac_cv_objext+set}" = set; then : 2832if test "${ac_cv_objext+set}" = set; then :
2830 $as_echo_n "(cached) " >&6 2833 $as_echo_n "(cached) " >&6
2831else 2834else
2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833/* end confdefs.h. */ 2836/* end confdefs.h. */
2834 2837
2835int 2838int
2836main () 2839main ()
2837{ 2840{
2838 2841
2839 ; 2842 ;
2840 return 0; 2843 return 0;
2841} 2844}
2842_ACEOF 2845_ACEOF
2843rm -f conftest.o conftest.obj 2846rm -f conftest.o conftest.obj
2844if { { ac_try="$ac_compile" 2847if { { ac_try="$ac_compile"
2845case "(($ac_try" in 2848case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;; 2850 *) ac_try_echo=$ac_try;;
2848esac 2851esac
2849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2850$as_echo "$ac_try_echo"; } >&5 2853$as_echo "$ac_try_echo"; } >&5
2851 (eval "$ac_compile") 2>&5 2854 (eval "$ac_compile") 2>&5
2852 ac_status=$? 2855 ac_status=$?
2853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2854 test $ac_status = 0; }; then : 2857 test $ac_status = 0; }; then :
2855 for ac_file in conftest.o conftest.obj conftest.*; do 2858 for ac_file in conftest.o conftest.obj conftest.*; do
2856 test -f "$ac_file" || continue; 2859 test -f "$ac_file" || continue;
2857 case $ac_file in 2860 case $ac_file in
2858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2859 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2860 break;; 2863 break;;
2861 esac 2864 esac
2862done 2865done
2863else 2866else
2864 $as_echo "$as_me: failed program was:" >&5 2867 $as_echo "$as_me: failed program was:" >&5
2865sed 's/^/| /' conftest.$ac_ext >&5 2868sed 's/^/| /' conftest.$ac_ext >&5
2866 2869
2867{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2870{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2869as_fn_error "cannot compute suffix of object files: cannot compile 2872as_fn_error "cannot compute suffix of object files: cannot compile
2870See \`config.log' for more details." "$LINENO" 5; } 2873See \`config.log' for more details." "$LINENO" 5; }
2871fi 2874fi
2872rm -f conftest.$ac_cv_objext conftest.$ac_ext 2875rm -f conftest.$ac_cv_objext conftest.$ac_ext
2873fi 2876fi
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2875$as_echo "$ac_cv_objext" >&6; } 2878$as_echo "$ac_cv_objext" >&6; }
2876OBJEXT=$ac_cv_objext 2879OBJEXT=$ac_cv_objext
2877ac_objext=$OBJEXT 2880ac_objext=$OBJEXT
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2879$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2882$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2880if test "${ac_cv_c_compiler_gnu+set}" = set; then : 2883if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2881 $as_echo_n "(cached) " >&6 2884 $as_echo_n "(cached) " >&6
2882else 2885else
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884/* end confdefs.h. */ 2887/* end confdefs.h. */
2885 2888
2886int 2889int
2887main () 2890main ()
2888{ 2891{
2889#ifndef __GNUC__ 2892#ifndef __GNUC__
2890 choke me 2893 choke me
2891#endif 2894#endif
2892 2895
2893 ; 2896 ;
2894 return 0; 2897 return 0;
2895} 2898}
2896_ACEOF 2899_ACEOF
2897if ac_fn_c_try_compile "$LINENO"; then : 2900if ac_fn_c_try_compile "$LINENO"; then :
2898 ac_compiler_gnu=yes 2901 ac_compiler_gnu=yes
2899else 2902else
2900 ac_compiler_gnu=no 2903 ac_compiler_gnu=no
2901fi 2904fi
2902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903ac_cv_c_compiler_gnu=$ac_compiler_gnu 2906ac_cv_c_compiler_gnu=$ac_compiler_gnu
2904 2907
2905fi 2908fi
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2907$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2910$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2908if test $ac_compiler_gnu = yes; then 2911if test $ac_compiler_gnu = yes; then
2909 GCC=yes 2912 GCC=yes
2910else 2913else
2911 GCC= 2914 GCC=
2912fi 2915fi
2913ac_test_CFLAGS=${CFLAGS+set} 2916ac_test_CFLAGS=${CFLAGS+set}
2914ac_save_CFLAGS=$CFLAGS 2917ac_save_CFLAGS=$CFLAGS
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2916$as_echo_n "checking whether $CC accepts -g... " >&6; } 2919$as_echo_n "checking whether $CC accepts -g... " >&6; }
2917if test "${ac_cv_prog_cc_g+set}" = set; then : 2920if test "${ac_cv_prog_cc_g+set}" = set; then :
2918 $as_echo_n "(cached) " >&6 2921 $as_echo_n "(cached) " >&6
2919else 2922else
2920 ac_save_c_werror_flag=$ac_c_werror_flag 2923 ac_save_c_werror_flag=$ac_c_werror_flag
2921 ac_c_werror_flag=yes 2924 ac_c_werror_flag=yes
2922 ac_cv_prog_cc_g=no 2925 ac_cv_prog_cc_g=no
2923 CFLAGS="-g" 2926 CFLAGS="-g"
2924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2925/* end confdefs.h. */ 2928/* end confdefs.h. */
2926 2929
2927int 2930int
2928main () 2931main ()
2929{ 2932{
2930 2933
2931 ; 2934 ;
2932 return 0; 2935 return 0;
2933} 2936}
2934_ACEOF 2937_ACEOF
2935if ac_fn_c_try_compile "$LINENO"; then : 2938if ac_fn_c_try_compile "$LINENO"; then :
2936 ac_cv_prog_cc_g=yes 2939 ac_cv_prog_cc_g=yes
2937else 2940else
2938 CFLAGS="" 2941 CFLAGS=""
2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940/* end confdefs.h. */ 2943/* end confdefs.h. */
2941 2944
2942int 2945int
2943main () 2946main ()
2944{ 2947{
2945 2948
2946 ; 2949 ;
2947 return 0; 2950 return 0;
2948} 2951}
2949_ACEOF 2952_ACEOF
2950if ac_fn_c_try_compile "$LINENO"; then : 2953if ac_fn_c_try_compile "$LINENO"; then :
2951 2954
2952else 2955else
2953 ac_c_werror_flag=$ac_save_c_werror_flag 2956 ac_c_werror_flag=$ac_save_c_werror_flag
2954 CFLAGS="-g" 2957 CFLAGS="-g"
2955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2956/* end confdefs.h. */ 2959/* end confdefs.h. */
2957 2960
2958int 2961int
2959main () 2962main ()
2960{ 2963{
2961 2964
2962 ; 2965 ;
2963 return 0; 2966 return 0;
2964} 2967}
2965_ACEOF 2968_ACEOF
2966if ac_fn_c_try_compile "$LINENO"; then : 2969if ac_fn_c_try_compile "$LINENO"; then :
2967 ac_cv_prog_cc_g=yes 2970 ac_cv_prog_cc_g=yes
2968fi 2971fi
2969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970fi 2973fi
2971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2972fi 2975fi
2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974 ac_c_werror_flag=$ac_save_c_werror_flag 2977 ac_c_werror_flag=$ac_save_c_werror_flag
2975fi 2978fi
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2977$as_echo "$ac_cv_prog_cc_g" >&6; } 2980$as_echo "$ac_cv_prog_cc_g" >&6; }
2978if test "$ac_test_CFLAGS" = set; then 2981if test "$ac_test_CFLAGS" = set; then
2979 CFLAGS=$ac_save_CFLAGS 2982 CFLAGS=$ac_save_CFLAGS
2980elif test $ac_cv_prog_cc_g = yes; then 2983elif test $ac_cv_prog_cc_g = yes; then
2981 if test "$GCC" = yes; then 2984 if test "$GCC" = yes; then
2982 CFLAGS="-g -O2" 2985 CFLAGS="-g -O2"
2983 else 2986 else
2984 CFLAGS="-g" 2987 CFLAGS="-g"
2985 fi 2988 fi
2986else 2989else
2987 if test "$GCC" = yes; then 2990 if test "$GCC" = yes; then
2988 CFLAGS="-O2" 2991 CFLAGS="-O2"
2989 else 2992 else
2990 CFLAGS= 2993 CFLAGS=
2991 fi 2994 fi
2992fi 2995fi
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2994$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2997$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2995if test "${ac_cv_prog_cc_c89+set}" = set; then : 2998if test "${ac_cv_prog_cc_c89+set}" = set; then :
2996 $as_echo_n "(cached) " >&6 2999 $as_echo_n "(cached) " >&6
2997else 3000else
2998 ac_cv_prog_cc_c89=no 3001 ac_cv_prog_cc_c89=no
2999ac_save_CC=$CC 3002ac_save_CC=$CC
3000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001/* end confdefs.h. */ 3004/* end confdefs.h. */
3002#include <stdarg.h> 3005#include <stdarg.h>
3003#include <stdio.h> 3006#include <stdio.h>
3004#include <sys/types.h> 3007#include <sys/types.h>
3005#include <sys/stat.h> 3008#include <sys/stat.h>
3006/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3009/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3007struct buf { int x; }; 3010struct buf { int x; };
3008FILE * (*rcsopen) (struct buf *, struct stat *, int); 3011FILE * (*rcsopen) (struct buf *, struct stat *, int);
3009static char *e (p, i) 3012static char *e (p, i)
3010 char **p; 3013 char **p;
3011 int i; 3014 int i;
3012{ 3015{
3013 return p[i]; 3016 return p[i];
3014} 3017}
3015static char *f (char * (*g) (char **, int), char **p, ...) 3018static char *f (char * (*g) (char **, int), char **p, ...)
3016{ 3019{
3017 char *s; 3020 char *s;
3018 va_list v; 3021 va_list v;
3019 va_start (v,p); 3022 va_start (v,p);
3020 s = g (p, va_arg (v,int)); 3023 s = g (p, va_arg (v,int));
3021 va_end (v); 3024 va_end (v);
3022 return s; 3025 return s;
3023} 3026}
3024 3027
3025/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3028/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3026 function prototypes and stuff, but not '\xHH' hex character constants. 3029 function prototypes and stuff, but not '\xHH' hex character constants.
3027 These don't provoke an error unfortunately, instead are silently treated 3030 These don't provoke an error unfortunately, instead are silently treated
3028 as 'x'. The following induces an error, until -std is added to get 3031 as 'x'. The following induces an error, until -std is added to get
3029 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3032 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3030 array size at least. It's necessary to write '\x00'==0 to get something 3033 array size at least. It's necessary to write '\x00'==0 to get something
3031 that's true only with -std. */ 3034 that's true only with -std. */
3032int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3035int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3033 3036
3034/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3037/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3035 inside strings and character constants. */ 3038 inside strings and character constants. */
3036#define FOO(x) 'x' 3039#define FOO(x) 'x'
3037int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3040int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3038 3041
3039int test (int i, double x); 3042int test (int i, double x);
3040struct s1 {int (*f) (int a);}; 3043struct s1 {int (*f) (int a);};
3041struct s2 {int (*f) (double a);}; 3044struct s2 {int (*f) (double a);};
3042int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3045int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3043int argc; 3046int argc;
3044char **argv; 3047char **argv;
3045int 3048int
3046main () 3049main ()
3047{ 3050{
3048return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3051return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3049 ; 3052 ;
3050 return 0; 3053 return 0;
3051} 3054}
3052_ACEOF 3055_ACEOF
3053for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3056for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3054 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3057 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3055do 3058do
3056 CC="$ac_save_CC $ac_arg" 3059 CC="$ac_save_CC $ac_arg"
3057 if ac_fn_c_try_compile "$LINENO"; then : 3060 if ac_fn_c_try_compile "$LINENO"; then :
3058 ac_cv_prog_cc_c89=$ac_arg 3061 ac_cv_prog_cc_c89=$ac_arg
3059fi 3062fi
3060rm -f core conftest.err conftest.$ac_objext 3063rm -f core conftest.err conftest.$ac_objext
3061 test "x$ac_cv_prog_cc_c89" != "xno" && break 3064 test "x$ac_cv_prog_cc_c89" != "xno" && break
3062done 3065done
3063rm -f conftest.$ac_ext 3066rm -f conftest.$ac_ext
3064CC=$ac_save_CC 3067CC=$ac_save_CC
3065 3068
3066fi 3069fi
3067# AC_CACHE_VAL 3070# AC_CACHE_VAL
3068case "x$ac_cv_prog_cc_c89" in 3071case "x$ac_cv_prog_cc_c89" in
3069 x) 3072 x)
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3071$as_echo "none needed" >&6; } ;; 3074$as_echo "none needed" >&6; } ;;
3072 xno) 3075 xno)
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3074$as_echo "unsupported" >&6; } ;; 3077$as_echo "unsupported" >&6; } ;;
3075 *) 3078 *)
3076 CC="$CC $ac_cv_prog_cc_c89" 3079 CC="$CC $ac_cv_prog_cc_c89"
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3078$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3081$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3079esac 3082esac
3080if test "x$ac_cv_prog_cc_c89" != xno; then : 3083if test "x$ac_cv_prog_cc_c89" != xno; then :
3081 3084
3082fi 3085fi
3083 3086
3084ac_ext=c 3087ac_ext=c
3085ac_cpp='$CPP $CPPFLAGS' 3088ac_cpp='$CPP $CPPFLAGS'
3086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088ac_compiler_gnu=$ac_cv_c_compiler_gnu 3091ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089 3092
3090 3093
3091ac_ext=c 3094ac_ext=c
3092ac_cpp='$CPP $CPPFLAGS' 3095ac_cpp='$CPP $CPPFLAGS'
3093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095ac_compiler_gnu=$ac_cv_c_compiler_gnu 3098ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3097$as_echo_n "checking how to run the C preprocessor... " >&6; } 3100$as_echo_n "checking how to run the C preprocessor... " >&6; }
3098# On Suns, sometimes $CPP names a directory. 3101# On Suns, sometimes $CPP names a directory.
3099if test -n "$CPP" && test -d "$CPP"; then 3102if test -n "$CPP" && test -d "$CPP"; then
3100 CPP= 3103 CPP=
3101fi 3104fi
3102if test -z "$CPP"; then 3105if test -z "$CPP"; then
3103 if test "${ac_cv_prog_CPP+set}" = set; then : 3106 if test "${ac_cv_prog_CPP+set}" = set; then :
3104 $as_echo_n "(cached) " >&6 3107 $as_echo_n "(cached) " >&6
3105else 3108else
3106 # Double quotes because CPP needs to be expanded 3109 # Double quotes because CPP needs to be expanded
3107 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3110 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3108 do 3111 do
3109 ac_preproc_ok=false 3112 ac_preproc_ok=false
3110for ac_c_preproc_warn_flag in '' yes 3113for ac_c_preproc_warn_flag in '' yes
3111do 3114do
3112 # Use a header file that comes with gcc, so configuring glibc 3115 # Use a header file that comes with gcc, so configuring glibc
3113 # with a fresh cross-compiler works. 3116 # with a fresh cross-compiler works.
3114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3115 # <limits.h> exists even on freestanding compilers. 3118 # <limits.h> exists even on freestanding compilers.
3116 # On the NeXT, cc -E runs the code through the compiler's parser, 3119 # On the NeXT, cc -E runs the code through the compiler's parser,
3117 # not just through cpp. "Syntax error" is here to catch this case. 3120 # not just through cpp. "Syntax error" is here to catch this case.
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119/* end confdefs.h. */ 3122/* end confdefs.h. */
3120#ifdef __STDC__ 3123#ifdef __STDC__
3121# include <limits.h> 3124# include <limits.h>
3122#else 3125#else
3123# include <assert.h> 3126# include <assert.h>
3124#endif 3127#endif
3125 Syntax error 3128 Syntax error
3126_ACEOF 3129_ACEOF
3127if ac_fn_c_try_cpp "$LINENO"; then : 3130if ac_fn_c_try_cpp "$LINENO"; then :
3128 3131
3129else 3132else
3130 # Broken: fails on valid input. 3133 # Broken: fails on valid input.
3131continue 3134continue
3132fi 3135fi
3133rm -f conftest.err conftest.$ac_ext 3136rm -f conftest.err conftest.$ac_ext
3134 3137
3135 # OK, works on sane cases. Now check whether nonexistent headers 3138 # OK, works on sane cases. Now check whether nonexistent headers
3136 # can be detected and how. 3139 # can be detected and how.
3137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138/* end confdefs.h. */ 3141/* end confdefs.h. */
3139#include <ac_nonexistent.h> 3142#include <ac_nonexistent.h>
3140_ACEOF 3143_ACEOF
3141if ac_fn_c_try_cpp "$LINENO"; then : 3144if ac_fn_c_try_cpp "$LINENO"; then :
3142 # Broken: success on invalid input. 3145 # Broken: success on invalid input.
3143continue 3146continue
3144else 3147else
3145 # Passes both tests. 3148 # Passes both tests.
3146ac_preproc_ok=: 3149ac_preproc_ok=:
3147break 3150break
3148fi 3151fi
3149rm -f conftest.err conftest.$ac_ext 3152rm -f conftest.err conftest.$ac_ext
3150 3153
3151done 3154done
3152# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3153rm -f conftest.err conftest.$ac_ext 3156rm -f conftest.err conftest.$ac_ext
3154if $ac_preproc_ok; then : 3157if $ac_preproc_ok; then :
3155 break 3158 break
3156fi 3159fi
3157 3160
3158 done 3161 done
3159 ac_cv_prog_CPP=$CPP 3162 ac_cv_prog_CPP=$CPP
3160 3163
3161fi 3164fi
3162 CPP=$ac_cv_prog_CPP 3165 CPP=$ac_cv_prog_CPP
3163else 3166else
3164 ac_cv_prog_CPP=$CPP 3167 ac_cv_prog_CPP=$CPP
3165fi 3168fi
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3167$as_echo "$CPP" >&6; } 3170$as_echo "$CPP" >&6; }
3168ac_preproc_ok=false 3171ac_preproc_ok=false
3169for ac_c_preproc_warn_flag in '' yes 3172for ac_c_preproc_warn_flag in '' yes
3170do 3173do
3171 # Use a header file that comes with gcc, so configuring glibc 3174 # Use a header file that comes with gcc, so configuring glibc
3172 # with a fresh cross-compiler works. 3175 # with a fresh cross-compiler works.
3173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3174 # <limits.h> exists even on freestanding compilers. 3177 # <limits.h> exists even on freestanding compilers.
3175 # On the NeXT, cc -E runs the code through the compiler's parser, 3178 # On the NeXT, cc -E runs the code through the compiler's parser,
3176 # not just through cpp. "Syntax error" is here to catch this case. 3179 # not just through cpp. "Syntax error" is here to catch this case.
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178/* end confdefs.h. */ 3181/* end confdefs.h. */
3179#ifdef __STDC__ 3182#ifdef __STDC__
3180# include <limits.h> 3183# include <limits.h>
3181#else 3184#else
3182# include <assert.h> 3185# include <assert.h>
3183#endif 3186#endif
3184 Syntax error 3187 Syntax error
3185_ACEOF 3188_ACEOF
3186if ac_fn_c_try_cpp "$LINENO"; then : 3189if ac_fn_c_try_cpp "$LINENO"; then :
3187 3190
3188else 3191else
3189 # Broken: fails on valid input. 3192 # Broken: fails on valid input.
3190continue 3193continue
3191fi 3194fi
3192rm -f conftest.err conftest.$ac_ext 3195rm -f conftest.err conftest.$ac_ext
3193 3196
3194 # OK, works on sane cases. Now check whether nonexistent headers 3197 # OK, works on sane cases. Now check whether nonexistent headers
3195 # can be detected and how. 3198 # can be detected and how.
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197/* end confdefs.h. */ 3200/* end confdefs.h. */
3198#include <ac_nonexistent.h> 3201#include <ac_nonexistent.h>
3199_ACEOF 3202_ACEOF
3200if ac_fn_c_try_cpp "$LINENO"; then : 3203if ac_fn_c_try_cpp "$LINENO"; then :
3201 # Broken: success on invalid input. 3204 # Broken: success on invalid input.
3202continue 3205continue
3203else 3206else
3204 # Passes both tests. 3207 # Passes both tests.
3205ac_preproc_ok=: 3208ac_preproc_ok=:
3206break 3209break
3207fi 3210fi
3208rm -f conftest.err conftest.$ac_ext 3211rm -f conftest.err conftest.$ac_ext
3209 3212
3210done 3213done
3211# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3212rm -f conftest.err conftest.$ac_ext 3215rm -f conftest.err conftest.$ac_ext
3213if $ac_preproc_ok; then : 3216if $ac_preproc_ok; then :
3214 3217
3215else 3218else
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218as_fn_error "C preprocessor \"$CPP\" fails sanity check 3221as_fn_error "C preprocessor \"$CPP\" fails sanity check
3219See \`config.log' for more details." "$LINENO" 5; } 3222See \`config.log' for more details." "$LINENO" 5; }
3220fi 3223fi
3221 3224
3222ac_ext=c 3225ac_ext=c
3223ac_cpp='$CPP $CPPFLAGS' 3226ac_cpp='$CPP $CPPFLAGS'
3224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226ac_compiler_gnu=$ac_cv_c_compiler_gnu 3229ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227 3230
3228 3231
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3230$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3233$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3231if test "${ac_cv_path_GREP+set}" = set; then : 3234if test "${ac_cv_path_GREP+set}" = set; then :
3232 $as_echo_n "(cached) " >&6 3235 $as_echo_n "(cached) " >&6
3233else 3236else
3234 if test -z "$GREP"; then 3237 if test -z "$GREP"; then
3235 ac_path_GREP_found=false 3238 ac_path_GREP_found=false
3236 # Loop through the user's path and test for each of PROGNAME-LIST 3239 # Loop through the user's path and test for each of PROGNAME-LIST
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3241for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3239do 3242do
3240 IFS=$as_save_IFS 3243 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=. 3244 test -z "$as_dir" && as_dir=.
3242 for ac_prog in grep ggrep; do 3245 for ac_prog in grep ggrep; do
3243 for ac_exec_ext in '' $ac_executable_extensions; do 3246 for ac_exec_ext in '' $ac_executable_extensions; do
3244 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3247 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3245 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3248 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3246# Check for GNU ac_path_GREP and select it if it is found. 3249# Check for GNU ac_path_GREP and select it if it is found.
3247 # Check for GNU $ac_path_GREP 3250 # Check for GNU $ac_path_GREP
3248case `"$ac_path_GREP" --version 2>&1` in 3251case `"$ac_path_GREP" --version 2>&1` in
3249*GNU*) 3252*GNU*)
3250 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3253 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3251*) 3254*)
3252 ac_count=0 3255 ac_count=0
3253 $as_echo_n 0123456789 >"conftest.in" 3256 $as_echo_n 0123456789 >"conftest.in"
3254 while : 3257 while :
3255 do 3258 do
3256 cat "conftest.in" "conftest.in" >"conftest.tmp" 3259 cat "conftest.in" "conftest.in" >"conftest.tmp"
3257 mv "conftest.tmp" "conftest.in" 3260 mv "conftest.tmp" "conftest.in"
3258 cp "conftest.in" "conftest.nl" 3261 cp "conftest.in" "conftest.nl"
3259 $as_echo 'GREP' >> "conftest.nl" 3262 $as_echo 'GREP' >> "conftest.nl"
3260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3263 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3262 as_fn_arith $ac_count + 1 && ac_count=$as_val 3265 as_fn_arith $ac_count + 1 && ac_count=$as_val
3263 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3266 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3264 # Best one so far, save it but keep looking for a better one 3267 # Best one so far, save it but keep looking for a better one

cvs diff -r1.13 -r1.14 pkgsrc/devel/bmake/files/configure.in (switch to unified diff)

--- pkgsrc/devel/bmake/files/configure.in 2015/05/19 22:01:19 1.13
+++ pkgsrc/devel/bmake/files/configure.in 2017/08/15 15:54:06 1.14
@@ -1,388 +1,392 @@ @@ -1,388 +1,392 @@
1dnl 1dnl
2dnl RCSid: 2dnl RCSid:
3dnl $Id: configure.in,v 1.13 2015/05/19 22:01:19 joerg Exp $ 3dnl $Id: configure.in,v 1.14 2017/08/15 15:54:06 brook Exp $
4dnl 4dnl
5dnl Process this file with autoconf to produce a configure script 5dnl Process this file with autoconf to produce a configure script
6dnl 6dnl
7AC_PREREQ(2.50) 7AC_PREREQ(2.50)
8AC_INIT([bmake], [20140214], [sjg@NetBSD.org]) 8AC_INIT([bmake], [20140214], [sjg@NetBSD.org])
9AC_CONFIG_HEADERS(config.h) 9AC_CONFIG_HEADERS(config.h)
10 10
11dnl make srcdir absolute 11dnl make srcdir absolute
12case "$srcdir" in 12case "$srcdir" in
13/*) ;; 13/*) ;;
14*) srcdir=`cd $srcdir && pwd`;; 14*) srcdir=`cd $srcdir && pwd`;;
15esac 15esac
16 16
 17dnl get _MAKE_VERSION
 18. $srcdir/VERSION
 19
17dnl 20dnl
18AC_ARG_WITH(defshell, 21AC_ARG_WITH(defshell,
19[ --with-defshell=SHELL use SHELL by default - must be sh compatible, use sh or ksh to pick the internal definitions], 22[ --with-defshell=SHELL use SHELL by default - must be sh compatible, use sh or ksh to pick the internal definitions],
20[case "${withval}" in 23[case "${withval}" in
21yes) AC_MSG_ERROR(bad value ${withval} given for bmake DEFSHELL) ;; 24yes) AC_MSG_ERROR(bad value ${withval} given for bmake DEFSHELL) ;;
22no) ;; 25no) ;;
23*) case "$with_defshell" in 26*) case "$with_defshell" in
24 sh) DEFSHELL_INDEX=DEFSHELL_INDEX_SH;; # it's the default anyway 27 sh) DEFSHELL_INDEX=DEFSHELL_INDEX_SH;; # it's the default anyway
25 ksh) DEFSHELL_INDEX=DEFSHELL_INDEX_KSH;; 28 ksh) DEFSHELL_INDEX=DEFSHELL_INDEX_KSH;;
26 csh) DEFSHELL_INDEX=DEFSHELL_INDEX_CSH;; # kidding right? 29 csh) DEFSHELL_INDEX=DEFSHELL_INDEX_CSH;; # kidding right?
27 *) defshell_path=$with_defshell;; # better be sh compatible! 30 *) defshell_path=$with_defshell;; # better be sh compatible!
28 esac 31 esac
29 ;; 32 ;;
30 esac]) 33 esac])
31dnl 34dnl
32use_meta=yes 35use_meta=yes
33AC_ARG_WITH(meta, 36AC_ARG_WITH(meta,
34[ --without-meta dissable use of meta-mode], 37[ --without-meta dissable use of meta-mode],
35[case "${withval}" in 38[case "${withval}" in
36yes|no) use_meta=${withval};; 39yes|no) use_meta=${withval};;
37*) AC_MSG_ERROR(bad value ${withval} given for meta) ;; 40*) AC_MSG_ERROR(bad value ${withval} given for meta) ;;
38esac]) 41esac])
39dnl 42dnl
40AC_ARG_WITH(filemon, 43AC_ARG_WITH(filemon,
41[ --with-filemon=path/filemon.h indicate path to filemon.h for meta-mode], 44[ --with-filemon=path/filemon.h indicate path to filemon.h for meta-mode],
42[ case "/${withval}" in 45[ case "/${withval}" in
43/no|*/filemon.h) filemon_h="${withval}";; 46/no|*/filemon.h) filemon_h="${withval}";;
44*/filemon*) filemon_h="${withval}/filemon.h";; 47*/filemon*) filemon_h="${withval}/filemon.h";;
45*) AC_MSG_ERROR(bad value ${withval} given for filemon) ;; 48*) AC_MSG_ERROR(bad value ${withval} given for filemon) ;;
46esac], 49esac],
47[ 50[
48OS=`uname -s` 51OS=`uname -s`
49for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/filemon" "$srcdir/../filemon" "$srcdir/../../sys/dev/filemon" 52for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/filemon" "$srcdir/../filemon" "$srcdir/../../sys/dev/filemon"
50do 53do
51 for x in "/$OS" "" 54 for x in "/$OS" ""
52 do 55 do
53 filemon_h="$d$x/filemon.h" 56 filemon_h="$d$x/filemon.h"
54 test -s "$filemon_h" && break 57 test -s "$filemon_h" && break
55 done 58 done
56 test -s "$filemon_h" && break 59 test -s "$filemon_h" && break
57done 60done
58test -s "${filemon_h:-/dev/null}" || filemon_h=no 61test -s "${filemon_h:-/dev/null}" || filemon_h=no
59]) 62])
60dnl echo "Note: use_meta=$use_meta filemon_h=$filemon_h" >&6 63dnl echo "Note: use_meta=$use_meta filemon_h=$filemon_h" >&6
61case "$use_meta" in 64case "$use_meta" in
62yes) 65yes)
63 case "$filemon_h" in 66 case "$filemon_h" in
64 *.h) echo "Using: filemon=$filemon_h" >&6;; 67 *.h) echo "Using: filemon=$filemon_h" >&6;;
65 esac 68 esac
66 ;; 69 ;;
67esac 70esac
68dnl 71dnl
69dnl Check for OS problems 72dnl Check for OS problems
70dnl Solaris's signal.h only privides sigset_t etc if one of 73dnl Solaris's signal.h only privides sigset_t etc if one of
71dnl _EXTENSIONS_ _POSIX_C_SOURCE or _XOPEN_SOURCE are defined. 74dnl _EXTENSIONS_ _POSIX_C_SOURCE or _XOPEN_SOURCE are defined.
72dnl The later two seem to cause more problems than they solve so if we 75dnl The later two seem to cause more problems than they solve so if we
73dnl see _EXTENSIONS_ we use it. 76dnl see _EXTENSIONS_ we use it.
74AC_USE_SYSTEM_EXTENSIONS 77AC_USE_SYSTEM_EXTENSIONS
75dnl Checks for programs. 78dnl Checks for programs.
76AC_PROG_CC 79AC_PROG_CC
77AC_PROG_GCC_TRADITIONAL 80AC_PROG_GCC_TRADITIONAL
78AC_PROG_INSTALL 81AC_PROG_INSTALL
79dnl Executable suffix - normally empty; .exe on os2. 82dnl Executable suffix - normally empty; .exe on os2.
80AC_SUBST(ac_exe_suffix)dnl 83AC_SUBST(ac_exe_suffix)dnl
81dnl 84dnl
82dnl Hurd refuses to define PATH_MAX or MAXPATHLEN 85dnl Hurd refuses to define PATH_MAX or MAXPATHLEN
83if test -x /usr/bin/getconf; then 86if test -x /usr/bin/getconf; then
84 bmake_path_max=`getconf PATH_MAX / 2> /dev/null` 87 bmake_path_max=`getconf PATH_MAX / 2> /dev/null`
85 # only a numeric response is useful 88 # only a numeric response is useful
86 test ${bmake_path_max:-0} -gt 0 2> /dev/null || bmake_path_max= 89 test ${bmake_path_max:-0} -gt 0 2> /dev/null || bmake_path_max=
87fi 90fi
88bmake_path_max=${bmake_path_max:-1024} 91bmake_path_max=${bmake_path_max:-1024}
89if test $bmake_path_max -gt 1024; then 92if test $bmake_path_max -gt 1024; then
90 # this is all we expect 93 # this is all we expect
91 bmake_path_max=1024 94 bmake_path_max=1024
92fi 95fi
93echo "Using: BMAKE_PATH_MAX=$bmake_path_max" >&6 96echo "Using: BMAKE_PATH_MAX=$bmake_path_max" >&6
94AC_SUBST(bmake_path_max)dnl 97AC_SUBST(bmake_path_max)dnl
95dnl 98dnl
96dnl AC_C_CROSS 99dnl AC_C_CROSS
97dnl 100dnl
98 101
99dnl Checks for header files. 102dnl Checks for header files.
100AC_HEADER_STDC 103AC_HEADER_STDC
101AC_HEADER_SYS_WAIT 104AC_HEADER_SYS_WAIT
102AC_HEADER_DIRENT 105AC_HEADER_DIRENT
103dnl Keep this list sorted 106dnl Keep this list sorted
104AC_CHECK_HEADERS( \ 107AC_CHECK_HEADERS( \
105 ar.h \ 108 ar.h \
106 err.h \ 109 err.h \
107 fcntl.h \ 110 fcntl.h \
108 paths.h \ 111 paths.h \
109 poll.h \ 112 poll.h \
110 ranlib.h \ 113 ranlib.h \
111 string.h \ 114 string.h \
112 sys/mman.h \ 115 sys/mman.h \
113 sys/select.h \ 116 sys/select.h \
114 sys/socket.h \ 117 sys/socket.h \
115 sys/sysctl.h \ 118 sys/sysctl.h \
116 sys/time.h \ 119 sys/time.h \
117 sys/uio.h \ 120 sys/uio.h \
118 unistd.h \ 121 unistd.h \
119 utime.h \ 122 utime.h \
120 ) 123 )
121 124
122dnl Both *BSD and Linux have sys/cdefs.h, most do not. 125dnl Both *BSD and Linux have sys/cdefs.h, most do not.
123dnl If it is missing, we add -I${srcdir}/missing to CFLAGS 126dnl If it is missing, we add -I${srcdir}/missing to CFLAGS
124dnl also if sys/cdefs.h does not have __RCSID we need to use ours 127dnl also if sys/cdefs.h does not have __RCSID we need to use ours
125dnl but we need to include the host's one too *sigh* 128dnl but we need to include the host's one too *sigh*
126AC_CHECK_HEADER(sys/cdefs.h, 129AC_CHECK_HEADER(sys/cdefs.h,
127echo $ECHO_N "checking whether sys/cdefs.h is compatible... $ECHO_C" >&6 130echo $ECHO_N "checking whether sys/cdefs.h is compatible... $ECHO_C" >&6
128AC_EGREP_CPP(yes, 131AC_EGREP_CPP(yes,
129[#include <sys/cdefs.h> 132[#include <sys/cdefs.h>
130#ifdef __RCSID 133#ifdef __RCSID
131yes 134yes
132#endif 135#endif
133], 136],
134echo yes >&6, 137echo yes >&6,
135echo no >&6; CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd` -DNEED_HOST_CDEFS_H"), 138echo no >&6; CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd` -DNEED_HOST_CDEFS_H"),
136CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd`") 139CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd`")
137 140
138dnl Checks for typedefs, structures, and compiler characteristics. 141dnl Checks for typedefs, structures, and compiler characteristics.
139AC_C___ATTRIBUTE__ 142AC_C___ATTRIBUTE__
140AC_C_BIGENDIAN 143AC_C_BIGENDIAN
141AC_C_CONST 144AC_C_CONST
142AC_TYPE_OFF_T 145AC_TYPE_OFF_T
143AC_TYPE_PID_T 146AC_TYPE_PID_T
144AC_TYPE_SIZE_T 147AC_TYPE_SIZE_T
145AC_DECL_SYS_SIGLIST 148AC_DECL_SYS_SIGLIST
146AC_HEADER_TIME 149AC_HEADER_TIME
147AC_STRUCT_TM 150AC_STRUCT_TM
148 151
149dnl Checks for library functions. 152dnl Checks for library functions.
150AC_TYPE_SIGNAL 153AC_TYPE_SIGNAL
151AC_FUNC_VFORK 154AC_FUNC_VFORK
152AC_FUNC_VPRINTF 155AC_FUNC_VPRINTF
153AC_FUNC_WAIT3 156AC_FUNC_WAIT3
154dnl Keep this list sorted 157dnl Keep this list sorted
155AC_CHECK_FUNCS( \ 158AC_CHECK_FUNCS( \
156 err \ 159 err \
157 errx \ 160 errx \
158 getcwd \ 161 getcwd \
159 getenv \ 162 getenv \
160 getopt \ 163 getopt \
161 getwd \ 164 getwd \
162 killpg \ 165 killpg \
163 mmap \ 166 mmap \
164 putenv \ 167 putenv \
165 select \ 168 select \
166 setenv \ 169 setenv \
167 setpgid \ 170 setpgid \
168 setsid \ 171 setsid \
169 sigaction \ 172 sigaction \
170 sigvec \ 173 sigvec \
171 snprintf \ 174 snprintf \
172 strerror \ 175 strerror \
173 strftime \ 176 strftime \
174 strsep \ 177 strsep \
175 strtod \ 178 strtod \
176 strtol \ 179 strtol \
177 sysctl \ 180 sysctl \
178 unsetenv \ 181 unsetenv \
179 vsnprintf \ 182 vsnprintf \
180 wait3 \ 183 wait3 \
181 wait4 \ 184 wait4 \
182 waitpid \ 185 waitpid \
183 warn \ 186 warn \
184 warnx \ 187 warnx \
185 ) 188 )
186 189
187dnl functions which we may need to provide 190dnl functions which we may need to provide
188AC_REPLACE_FUNCS( \ 191AC_REPLACE_FUNCS( \
189 realpath \ 192 realpath \
190 dirname \ 193 dirname \
191 stresep \ 194 stresep \
192 strlcpy \ 195 strlcpy \
193 ) 196 )
194 197
195AC_CHECK_LIB([util], [emalloc], 198AC_CHECK_LIB([util], [emalloc],
196 [ AC_CHECK_LIB([util], [erealloc], 199 [ AC_CHECK_LIB([util], [erealloc],
197 [ AC_CHECK_LIB([util], [estrdup], 200 [ AC_CHECK_LIB([util], [estrdup],
198 [ AC_CHECK_LIB([util], [estrndup], 201 [ AC_CHECK_LIB([util], [estrndup],
199 [ LIBS="$LIBS -lutil" 202 [ LIBS="$LIBS -lutil"
200 CPPFLAGS="$CPPFLAGS -DUSE_EMALLOC" ])])])]) 203 CPPFLAGS="$CPPFLAGS -DUSE_EMALLOC" ])])])])
201 204
202dnl 205dnl
203dnl Structures 206dnl Structures
204dnl 207dnl
205AC_HEADER_STAT 208AC_HEADER_STAT
206AC_STRUCT_ST_RDEV 209AC_STRUCT_ST_RDEV
207dnl 210dnl
208echo "checking if compiler supports __func__" >&6 211echo "checking if compiler supports __func__" >&6
209AC_LANG(C) 212AC_LANG(C)
210AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[[const char *func = __func__;]])],, 213AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[[const char *func = __func__;]])],,
211 AC_DEFINE(__func__, __FUNCTION__, C99 function name)) 214 AC_DEFINE(__func__, __FUNCTION__, C99 function name))
212dnl 215dnl
213dnl we want this for unit-tests/Makefile 216dnl we want this for unit-tests/Makefile
214echo $ECHO_N "checking if diff -u works... $ECHO_C" >&6 217echo $ECHO_N "checking if diff -u works... $ECHO_C" >&6
215if diff -u /dev/null /dev/null > /dev/null 2>&1; then 218if diff -u /dev/null /dev/null > /dev/null 2>&1; then
216 diff_u=-u 219 diff_u=-u
217 echo yes >&6 220 echo yes >&6
218else 221else
219 diff_u= 222 diff_u=
220 echo no >&6 223 echo no >&6
221fi 224fi
222dnl 225dnl
223dnl AC_* don't quite cut it. 226dnl AC_* don't quite cut it.
224dnl  227dnl
225echo "checking for MACHINE & MACHINE_ARCH..." >&6 228echo "checking for MACHINE & MACHINE_ARCH..." >&6
226cat > conftest.$ac_ext <<EOF 229cat > conftest.$ac_ext <<EOF
227#include "confdefs.h" 230#include "confdefs.h"
228#include <sys/param.h> 231#include <sys/param.h>
229#ifdef MACHINE 232#ifdef MACHINE
230machine=MACHINE 233machine=MACHINE
231#endif 234#endif
232#ifdef MACHINE_ARCH 235#ifdef MACHINE_ARCH
233machine_arch=MACHINE_ARCH 236machine_arch=MACHINE_ARCH
234#endif 237#endif
235EOF 238EOF
236 239
237default_machine=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |  240default_machine=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
238 egrep machine= | tr -d ' "'` 241 egrep machine= | tr -d ' "'`
239rm -rf conftest* 242rm -rf conftest*
240if test "$default_machine"; then 243if test "$default_machine"; then
241 eval "$default_machine" 244 eval "$default_machine"
242fi 245fi
243machine=${machine:-`$srcdir/machine.sh`} 246machine=${machine:-`$srcdir/machine.sh`}
244machine_arch=${machine_arch:-`$srcdir/machine.sh arch`} 247machine_arch=${machine_arch:-`$srcdir/machine.sh arch`}
245echo "defaults: MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6 248echo "defaults: MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
246dnl 249dnl
247dnl now allow overrides 250dnl now allow overrides
248dnl 251dnl
249AC_ARG_WITH(machine, 252AC_ARG_WITH(machine,
250[ --with-machine=MACHINE explicitly set MACHINE], 253[ --with-machine=MACHINE explicitly set MACHINE],
251[case "${withval}" in 254[case "${withval}" in
252yes) AC_MSG_ERROR(bad value ${withval} given for bmake MACHINE) ;; 255yes) AC_MSG_ERROR(bad value ${withval} given for bmake MACHINE) ;;
253no) ;; 256no) ;;
254generic) machine=`$srcdir/machine.sh`;; 257generic) machine=`$srcdir/machine.sh`;;
255*) machine=$with_machine;; 258*) machine=$with_machine;;
256esac]) 259esac])
257force_machine= 260force_machine=
258AC_ARG_WITH(force_machine, 261AC_ARG_WITH(force_machine,
259[ --with-force-machine=MACHINE set FORCE_MACHINE], 262[ --with-force-machine=MACHINE set FORCE_MACHINE],
260[case "${withval}" in 263[case "${withval}" in
261yes) force_machine=FORCE_;; 264yes) force_machine=FORCE_;;
262no) ;; 265no) ;;
263*) force_machine=FORCE_; machine=$with_force_machine;; 266*) force_machine=FORCE_; machine=$with_force_machine;;
264esac]) 267esac])
265dnl 268dnl
266force_machine_arch= 269force_machine_arch=
267AC_ARG_WITH(force_machine_arch, 270AC_ARG_WITH(force_machine_arch,
268[ --with-force-machine-arch=MACHINE set FORCE_MACHINE_ARCH], 271[ --with-force-machine-arch=MACHINE set FORCE_MACHINE_ARCH],
269[case "${withval}" in 272[case "${withval}" in
270yes) force_machine_arch=FORCE_;; 273yes) force_machine_arch=FORCE_;;
271no) ;; 274no) ;;
272*) force_machine_arch=FORCE_; machine_arch=$with_force_machine;; 275*) force_machine_arch=FORCE_; machine_arch=$with_force_machine;;
273esac]) 276esac])
274dnl 277dnl
275AC_ARG_WITH(machine_arch, 278AC_ARG_WITH(machine_arch,
276[ --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH], 279[ --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH],
277[case "${withval}" in 280[case "${withval}" in
278yes) AC_MSG_ERROR(bad value ${withval} given for bmake MACHINE_ARCH) ;; 281yes) AC_MSG_ERROR(bad value ${withval} given for bmake MACHINE_ARCH) ;;
279no) ;; 282no) ;;
280*) machine_arch=$with_machine_arch;; 283*) machine_arch=$with_machine_arch;;
281esac]) 284esac])
282dnl 285dnl
283dnl Tell them what we ended up with 286dnl Tell them what we ended up with
284dnl 287dnl
285echo "Using: ${force_machine}MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6 288echo "Using: ${force_machine}MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
286dnl 289dnl
287dnl Allow folk to control _PATH_DEFSYSPATH 290dnl Allow folk to control _PATH_DEFSYSPATH
288dnl 291dnl
289default_sys_path=\${prefix}/share/mk 292default_sys_path=\${prefix}/share/mk
290AC_ARG_WITH(default-sys-path, 293AC_ARG_WITH(default-sys-path,
291[ --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH 294[ --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH
292 MAKESYSPATH is a ':' separated list of directories  295 MAKESYSPATH is a ':' separated list of directories
293 that bmake will search for system .mk files.  296 that bmake will search for system .mk files.
294 _PATH_DEFSYSPATH is its default value.], 297 _PATH_DEFSYSPATH is its default value.],
295[case "${withval}" in 298[case "${withval}" in
296yes) AC_MSG_ERROR(bad value ${withval} given for bmake _PATH_DEFSYSPATH) ;; 299yes) AC_MSG_ERROR(bad value ${withval} given for bmake _PATH_DEFSYSPATH) ;;
297no) ;; 300no) ;;
298*) default_sys_path="$with_default_sys_path" 301*) default_sys_path="$with_default_sys_path"
299 ;; 302 ;;
300esac]) 303esac])
301dnl 304dnl
302dnl Some folk don't like this one 305dnl Some folk don't like this one
303dnl 306dnl
304AC_ARG_WITH(path-objdirprefix, 307AC_ARG_WITH(path-objdirprefix,
305[ --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX], 308[ --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX],
306[case "${withval}" in 309[case "${withval}" in
307yes) AC_MSG_ERROR(bad value ${withval} given for bmake _PATH_OBJDIRPREFIX) ;; 310yes) AC_MSG_ERROR(bad value ${withval} given for bmake _PATH_OBJDIRPREFIX) ;;
308no) CPPFLAGS="$CPPFLAGS -DNO_PATH_OBJDIRPREFIX" ;; 311no) CPPFLAGS="$CPPFLAGS -DNO_PATH_OBJDIRPREFIX" ;;
309*) CPPFLAGS="$CPPFLAGS \"-D_PATH_OBJDIRPREFIX=\\\"$with_path-objdir\\\"\"" ;; 312*) CPPFLAGS="$CPPFLAGS \"-D_PATH_OBJDIRPREFIX=\\\"$with_path-objdir\\\"\"" ;;
310esac]) 313esac])
311dnl 314dnl
312dnl And this can be handy to do with out. 315dnl And this can be handy to do with out.
313dnl 316dnl
314AC_ARG_ENABLE(pwd-override, 317AC_ARG_ENABLE(pwd-override,
315[ --disable-pwd-override disable \$PWD overriding getcwd()], 318[ --disable-pwd-override disable \$PWD overriding getcwd()],
316[case "${enableval}" in 319[case "${enableval}" in
317yes) ;; 320yes) ;;
318no) CPPFLAGS="$CPPFLAGS -DNO_PWD_OVERRIDE" ;; 321no) CPPFLAGS="$CPPFLAGS -DNO_PWD_OVERRIDE" ;;
319*) AC_MSG_ERROR(bad value ${enableval} given for pwd-override option) ;; 322*) AC_MSG_ERROR(bad value ${enableval} given for pwd-override option) ;;
320esac]) 323esac])
321dnl 324dnl
322dnl Just for grins 325dnl Just for grins
323dnl 326dnl
324AC_ARG_ENABLE(check-make-chdir, 327AC_ARG_ENABLE(check-make-chdir,
325[ --disable-check-make-chdir disable make trying to guess  328[ --disable-check-make-chdir disable make trying to guess
326 when it should automatically cd \${.CURDIR}], 329 when it should automatically cd \${.CURDIR}],
327[case "${enableval}" in 330[case "${enableval}" in
328yes) ;; 331yes) ;;
329no) CPPFLAGS="$CPPFLAGS -DNO_CHECK_MAKE_CHDIR" ;; 332no) CPPFLAGS="$CPPFLAGS -DNO_CHECK_MAKE_CHDIR" ;;
330*) AC_MSG_ERROR(bad value ${enableval} given for check-make-chdir option) ;; 333*) AC_MSG_ERROR(bad value ${enableval} given for check-make-chdir option) ;;
331esac]) 334esac])
332dnl 335dnl
333dnl On non-BSD systems, bootstrap won't work without mk 336dnl On non-BSD systems, bootstrap won't work without mk
334dnl 337dnl
335AC_ARG_WITH(mksrc, 338AC_ARG_WITH(mksrc,
336[ --with-mksrc=PATH tell makefile.boot where to find mk src], 339[ --with-mksrc=PATH tell makefile.boot where to find mk src],
337[case "${withval}" in 340[case "${withval}" in
338""|yes|no) ;; 341""|yes|no) ;;
339*) test -s $withval/install-mk && mksrc=$withval || 342*) test -s $withval/install-mk && mksrc=$withval ||
340AC_MSG_ERROR(bad value ${withval} given for mksrc cannot find install-mk) 343AC_MSG_ERROR(bad value ${withval} given for mksrc cannot find install-mk)
341;; 344;;
342esac 345esac
343]) 346])
344dnl 347dnl
345dnl Now make sure we have a value 348dnl Now make sure we have a value
346dnl 349dnl
347srcdir=`cd $srcdir && pwd` 350srcdir=`cd $srcdir && pwd`
348for mksrc in $mksrc $srcdir/mk $srcdir/../mk mk 351for mksrc in $mksrc $srcdir/mk $srcdir/../mk mk
349do 352do
350 test -s $mksrc/install-mk || continue 353 test -s $mksrc/install-mk || continue
351 mksrc=`cd $mksrc && pwd` 354 mksrc=`cd $mksrc && pwd`
352 break 355 break
353done 356done
354mksrc=`echo $mksrc | sed "s,$srcdir,\\\${srcdir},"` 357mksrc=`echo $mksrc | sed "s,$srcdir,\\\${srcdir},"`
355echo "Using: MKSRC=$mksrc" 1>&6 358echo "Using: MKSRC=$mksrc" 1>&6
356dnl On some systems we want a different default shell by default 359dnl On some systems we want a different default shell by default
357if test -x /usr/xpg4/bin/sh; then 360if test -x /usr/xpg4/bin/sh; then
358 defshell_path=${defshell_path:-/usr/xpg4/bin/sh} 361 defshell_path=${defshell_path:-/usr/xpg4/bin/sh}
359fi 362fi
360if test -n "$defshell_path"; then 363if test -n "$defshell_path"; then
361 echo "Using: SHELL=$defshell_path" >&6 364 echo "Using: SHELL=$defshell_path" >&6
362 AC_DEFINE_UNQUOTED(DEFSHELL_CUSTOM, "$defshell_path", Path of default shell) 365 AC_DEFINE_UNQUOTED(DEFSHELL_CUSTOM, "$defshell_path", Path of default shell)
363fi 366fi
364if test -n "$DEFSHELL_INDEX"; then 367if test -n "$DEFSHELL_INDEX"; then
365 AC_DEFINE_UNQUOTED(DEFSHELL_INDEX, $DEFSHELL_INDEX, Shell spec to use by default) 368 AC_DEFINE_UNQUOTED(DEFSHELL_INDEX, $DEFSHELL_INDEX, Shell spec to use by default)
366fi  369fi
367dnl 370dnl
368AC_SUBST(machine) 371AC_SUBST(machine)
369AC_SUBST(force_machine) 372AC_SUBST(force_machine)
370AC_SUBST(machine_arch) 373AC_SUBST(machine_arch)
371AC_SUBST(mksrc) 374AC_SUBST(mksrc)
372AC_SUBST(default_sys_path) 375AC_SUBST(default_sys_path)
373AC_SUBST(INSTALL) 376AC_SUBST(INSTALL)
374AC_SUBST(GCC) 377AC_SUBST(GCC)
375AC_SUBST(diff_u) 378AC_SUBST(diff_u)
376AC_SUBST(use_meta) 379AC_SUBST(use_meta)
377AC_SUBST(filemon_h) 380AC_SUBST(filemon_h)
 381AC_SUBST(_MAKE_VERSION)
378AC_OUTPUT(makefile Makefile.config make-bootstrap.sh unit-tests/Makefile) 382AC_OUTPUT(makefile Makefile.config make-bootstrap.sh unit-tests/Makefile)
379 383
380cat <<EOF 384cat <<EOF
381 385
382You can now run 386You can now run
383 387
384 sh ./make-bootstrap.sh 388 sh ./make-bootstrap.sh
385 389
386to produce a fully functional bmake. 390to produce a fully functional bmake.
387 391
388EOF 392EOF

cvs diff -r1.5 -r1.6 pkgsrc/devel/bmake/files/make-bootstrap.sh.in (switch to unified diff)

--- pkgsrc/devel/bmake/files/make-bootstrap.sh.in 2016/01/24 16:14:44 1.5
+++ pkgsrc/devel/bmake/files/make-bootstrap.sh.in 2017/08/15 15:54:06 1.6
@@ -1,84 +1,84 @@ @@ -1,84 +1,84 @@
1#!/bin/sh 1#!/bin/sh
2 2
3set -e 3set -e
4 4
5srcdir=@srcdir@ 5srcdir=@srcdir@
6 6
7DEFAULT_SYS_PATH="@default_sys_path@" 7DEFAULT_SYS_PATH="@default_sys_path@"
8 8
9case "@use_meta@" in 9case "@use_meta@" in
10yes) XDEFS="-DUSE_META ${XDEFS}";; 10yes) XDEFS="-DUSE_META ${XDEFS}";;
11esac 11esac
12 12
13CC="@CC@" 13CC="@CC@"
14CFLAGS="@CFLAGS@ -I. -I${srcdir} @DEFS@ @CPPFLAGS@ -DMAKE_NATIVE ${XDEFS} -DBMAKE_PATH_MAX=@bmake_path_max@" 14CFLAGS="@CFLAGS@ -I. -I${srcdir} @DEFS@ @CPPFLAGS@ -DMAKE_NATIVE ${XDEFS} -DBMAKE_PATH_MAX=@bmake_path_max@"
15 15
16MAKE_VERSION=`sed -n '/^MAKE_VERSION=/s,.*=[^0-9]*,,p' $srcdir/Makefile` 16MAKE_VERSION=@_MAKE_VERSION@
17 17
18MDEFS="-DMAKE_VERSION=\"$MAKE_VERSION\" \ 18MDEFS="-DMAKE_VERSION=\"$MAKE_VERSION\" \
19-D@force_machine@MACHINE=\"@machine@\" -DPKGSRC_MACHINE_ARCH=\"@machine_arch@\" \ 19-D@force_machine@MACHINE=\"@machine@\" -DPKGSRC_MACHINE_ARCH=\"@machine_arch@\" \
20-D_PATH_DEFSYSPATH=\"${DEFAULT_SYS_PATH}\"" 20-D_PATH_DEFSYSPATH=\"${DEFAULT_SYS_PATH}\""
21 21
22 22
23LDFLAGS="@LDFLAGS@" 23LDFLAGS="@LDFLAGS@"
24LIBS="@LIBS@" 24LIBS="@LIBS@"
25 25
26do_compile2() { 26do_compile2() {
27 obj="$1"; shift 27 obj="$1"; shift
28 src="$1"; shift 28 src="$1"; shift
29 echo ${CC} -c ${CFLAGS} "$@" -o "$obj" "$src" 29 echo ${CC} -c ${CFLAGS} "$@" -o "$obj" "$src"
30 ${CC} -c ${CFLAGS} "$@" -o "$obj" "$src" 30 ${CC} -c ${CFLAGS} "$@" -o "$obj" "$src"
31} 31}
32 32
33do_compile() { 33do_compile() {
34 obj="$1"; shift 34 obj="$1"; shift
35 src=`basename "$obj" .o`.c 35 src=`basename "$obj" .o`.c
36 36
37 for d in "$srcdir" "$srcdir/lst.lib" 37 for d in "$srcdir" "$srcdir/lst.lib"
38 do 38 do
39 test -s "$d/$src" || continue 39 test -s "$d/$src" || continue
40 40
41 do_compile2 "$obj" "$d/$src" "$@" || exit 1 41 do_compile2 "$obj" "$d/$src" "$@" || exit 1
42 return 42 return
43 done 43 done
44 echo "Unknown object file '$obj'" >&2 44 echo "Unknown object file '$obj'" >&2
45 exit 1 45 exit 1
46} 46}
47 47
48do_link() { 48do_link() {
49 output="$1"; shift 49 output="$1"; shift
50 echo ${CC} ${LDSTATIC} ${LDFLAGS} -o "$output" "$@" ${LIBS} 50 echo ${CC} ${LDSTATIC} ${LDFLAGS} -o "$output" "$@" ${LIBS}
51 ${CC} ${LDSTATIC} ${LDFLAGS} -o "$output" "$@" ${LIBS} 51 ${CC} ${LDSTATIC} ${LDFLAGS} -o "$output" "$@" ${LIBS}
52} 52}
53 53
54BASE_OBJECTS="arch.o buf.o compat.o cond.o dir.o for.o getopt hash.o \ 54BASE_OBJECTS="arch.o buf.o compat.o cond.o dir.o for.o getopt hash.o \
55job.o make.o make_malloc.o parse.o sigcompat.o str.o strlist.o \ 55job.o make.o make_malloc.o parse.o sigcompat.o str.o strlist.o \
56suff.o targ.o trace.o var.o util.o" 56suff.o targ.o trace.o var.o util.o"
57 57
58LST_OBJECTS="lstAppend.o lstDupl.o lstInit.o lstOpen.o \ 58LST_OBJECTS="lstAppend.o lstDupl.o lstInit.o lstOpen.o \
59lstAtEnd.o lstEnQueue.o lstInsert.o lstAtFront.o lstIsAtEnd.o \ 59lstAtEnd.o lstEnQueue.o lstInsert.o lstAtFront.o lstIsAtEnd.o \
60lstClose.o lstFind.o lstIsEmpty.o lstRemove.o lstConcat.o \ 60lstClose.o lstFind.o lstIsEmpty.o lstRemove.o lstConcat.o \
61lstFindFrom.o lstLast.o lstReplace.o lstFirst.o lstDatum.o \ 61lstFindFrom.o lstLast.o lstReplace.o lstFirst.o lstDatum.o \
62lstForEach.o lstMember.o lstSucc.o lstDeQueue.o lstForEachFrom.o \ 62lstForEach.o lstMember.o lstSucc.o lstDeQueue.o lstForEachFrom.o \
63lstDestroy.o lstNext.o lstPrev.o" 63lstDestroy.o lstNext.o lstPrev.o"
64 64
65LIB_OBJECTS="@LIBOBJS@" 65LIB_OBJECTS="@LIBOBJS@"
66 66
67do_compile main.o ${MDEFS} 67do_compile main.o ${MDEFS}
68 68
69for o in ${BASE_OBJECTS} ${LST_OBJECTS} ${LIB_OBJECTS} 69for o in ${BASE_OBJECTS} ${LST_OBJECTS} ${LIB_OBJECTS}
70do 70do
71 do_compile "$o" 71 do_compile "$o"
72done 72done
73 73
74case "@use_meta@" in 74case "@use_meta@" in
75yes) 75yes)
76 case "@filemon_h@" in 76 case "@filemon_h@" in
77 */filemon.h) FDEFS="-DHAVE_FILEMON_H -I`dirname @filemon_h@`";; 77 */filemon.h) FDEFS="-DHAVE_FILEMON_H -I`dirname @filemon_h@`";;
78 esac 78 esac
79 do_compile meta.o ${FDEFS} 79 do_compile meta.o ${FDEFS}
80 BASE_OBJECTS="meta.o ${BASE_OBJECTS}" 80 BASE_OBJECTS="meta.o ${BASE_OBJECTS}"
81 ;; 81 ;;
82esac 82esac
83 83
84do_link bmake main.o ${BASE_OBJECTS} ${LST_OBJECTS} ${LIB_OBJECTS} 84do_link bmake main.o ${BASE_OBJECTS} ${LST_OBJECTS} ${LIB_OBJECTS}