-----------------------------------------------------------------------------
MANIFEST | 261 -
Makefile | 62
README.WIN | 6
aclocal.m4 | 1416 ++++---
config.guess | 123
config.sub | 72
configure | 6768 ++++++++++++++++++++++++------------
configure.in | 119
doc/CHANGES | 85
doc/CREDITS | 71
doc/DEBUG_REFS | 16
doc/INSTALL | 105
doc/TODO | 143
doc/WHATSNEW | 5
doc/filtering | 15
doc/mailcap.sample | 8
doc/tin.1 | 260 -
doc/tin.5 | 248 -
doc/tinews.1 | 59
doc/tools.txt | 11
doc/url_handler.1 | 169
include/autoconf.hin | 39
include/bool.h | 2
include/bugrep.h | 2
include/debug.h | 58
include/extern.h | 29
include/keymap.h | 6
include/newsrc.h | 18
include/nntplib.h | 46
include/policy.h | 46
include/proto.h | 61
include/rfc2046.h | 10
include/stpwatch.h | 2
include/tcurses.h | 2
include/tin.h | 147
include/tinrc.h | 2
include/tnntp.h | 12
include/trace.h | 2
include/version.h | 15
libcanlock/Build | 43
libcanlock/CHANGES | 59
libcanlock/HOWTO | 40
libcanlock/MANIFEST | 25
libcanlock/Makefile.in | 50
libcanlock/README | 65
libcanlock/base64.c | 324 -
libcanlock/base64.h | 2
libcanlock/canlock.h | 10
libcanlock/canlock_md5.c | 81
libcanlock/canlock_misc.c | 55
libcanlock/canlock_sha1.c | 81
libcanlock/canlocktest.c | 106
libcanlock/endian.c | 115
libcanlock/hmac_md5.c | 75
libcanlock/hmac_md5.h | 1
libcanlock/hmac_sha1.c | 74
libcanlock/hmac_sha1.h | 1
libcanlock/hmactest.c | 154
libcanlock/include/base64.h | 42
libcanlock/include/canlock.h | 8
libcanlock/include/hmac_sha1.h | 2
libcanlock/include/sha1.h | 50
libcanlock/main.c | 424 --
libcanlock/md5.c | 253 -
libcanlock/md5.h | 30
libcanlock/sha1.c | 265 -
libcanlock/sha1.h | 29
libcanlock/src/base64.c | 136
libcanlock/src/canlock.c | 186
libcanlock/src/hmac_sha1.c | 119
libcanlock/src/sha1.c | 353 +
libcanlock/t/canlocktest.c | 110
libcanlock/t/canlocktest.shouldbe | 15
libcanlock/t/hmactest.c | 115
libcanlock/t/hmactest.shouldbe | 24
mkdirs.sh | 19
pcre/version.sh | 12
po/de.gmo |binary
po/de.po | 1375 +++----
po/en_GB.gmo |binary
po/en_GB.po | 1355 +++----
po/et.gmo |binary
po/et.po | 1382 +++----
po/fr.gmo |binary
po/fr.po | 1371 +++----
po/ru.gmo |binary
po/ru.po | 1365 +++----
po/rw.gmo |binary
po/rw.po | 1392 +++----
po/sv.gmo |binary
po/sv.po | 1360 +++----
po/tin.pot | 1361 +++----
po/tr.gmo |binary
po/tr.po | 1392 +++----
src/Makefile.in | 50
src/active.c | 152
src/art.c | 468 +-
src/attrib.c | 336 +
src/auth.c | 222 -
src/charset.c | 10
src/color.c | 8
src/config.c | 62
src/cook.c | 25
src/curses.c | 4
src/debug.c | 188 -
src/envarg.c | 2
src/feed.c | 15
src/filter.c | 74
src/global.c | 2
src/group.c | 20
src/hashstr.c | 2
src/header.c | 21
src/help.c | 11
src/inews.c | 46
src/init.c | 98
src/joinpath.c | 20
src/keymap.c | 32
src/lang.c | 21
src/list.c | 42
src/lock.c | 4
src/mail.c | 129
src/main.c | 58
src/makecfg.c | 2
src/memory.c | 163
src/mimetypes.c | 48
src/misc.c | 68
src/my_tmpfile.c | 37
src/newsrc.c | 340 -
src/nntplib.c | 346 +
src/nrctbl.c | 30
src/options_menu.c | 37
src/page.c | 36
src/pgp.c | 10
src/post.c | 197 -
src/prompt.c | 2
src/read.c | 3
src/refs.c | 222 -
src/regex.c | 15
src/rfc1524.c | 2
src/rfc2045.c | 20
src/rfc2046.c | 21
src/rfc2047.c | 233 -
src/save.c | 53
src/screen.c | 6
src/search.c | 8
src/select.c | 71
src/sigfile.c | 26
src/signal.c | 24
src/strftime.c | 2
src/string.c | 26
src/tags.c | 20
src/tcurses.c | 4
src/thread.c | 10
src/tincfg.tbl | 8
src/trace.c | 2
src/version.c | 11
src/xface.c | 42
src/xref.c | 307 +
tin.spec | 2
tools/tinews.pl | 260 +
tools/url_handler.pl | 139
161 files changed, 17462 insertions(+), 13940 deletions(-)
-----------------------------------------------------------------------------
diff -Nurp tin-1.9.2/MANIFEST tin-1.9.3/MANIFEST
--- tin-1.9.2/MANIFEST 2007-02-01 15:09:13.000000000 +0100
+++ tin-1.9.3/MANIFEST 2008-05-06 19:24:22.000000000 +0200
@@ -1,149 +1,152 @@
-MANIFEST for tin-1.9.2 (Thu Feb 1 15:09:13 CET 2007)
+MANIFEST for tin-1.9.3 (Tue May 6 19:24:19 CEST 2008)
----------------------------------------------------
- 13104 ./Makefile
- 7558 ./MANIFEST
+ 13263 ./Makefile
+ 7531 ./MANIFEST
1440 ./README
564 ./README.MAC
- 1006 ./README.WIN
- 155443 ./aclocal.m4
+ 992 ./README.WIN
+ 162131 ./aclocal.m4
882 ./conf-tin
- 44469 ./config.guess
- 32587 ./config.sub
- 505380 ./configure
- 31023 ./configure.in
+ 44556 ./config.guess
+ 33560 ./config.sub
+ 570607 ./configure
+ 32105 ./configure.in
7123 ./install.sh
- 838 ./mkdirs.sh
+ 1320 ./mkdirs.sh
1505 ./tin.spec
18847 ./doc/ABOUT-NLS
- 5299 ./doc/CHANGES
+ 9312 ./doc/CHANGES
252172 ./doc/CHANGES.old
- 4956 ./doc/CREDITS
- 1469 ./doc/DEBUG_REFS
- 30011 ./doc/INSTALL
- 33061 ./doc/TODO
- 232 ./doc/WHATSNEW
+ 4995 ./doc/CREDITS
+ 1305 ./doc/DEBUG_REFS
+ 30210 ./doc/INSTALL
+ 34207 ./doc/TODO
+ 448 ./doc/WHATSNEW
2618 ./doc/art_handling.txt
1700 ./doc/article.txt
3862 ./doc/auth.txt
5377 ./doc/config-anomalies
- 11237 ./doc/filtering
+ 11272 ./doc/filtering
35304 ./doc/good-netkeeping-seal
3803 ./doc/internals.txt
23621 ./doc/iso2asc.txt
3476 ./doc/keymap.sample
- 572 ./doc/mailcap.sample
+ 633 ./doc/mailcap.sample
+ 5870 ./doc/mbox.5
3365 ./doc/mime.types
+ 4168 ./doc/mmdf.5
+ 2128 ./doc/newsoverview.5
1541 ./doc/nov_tests
5155 ./doc/opt-case.1
+ 6963 ./doc/plp_snprintf.3
3984 ./doc/pgp.txt
2726 ./doc/rcvars.txt
1525 ./doc/reading-mail.txt
4947 ./doc/umlaute.txt
4246 ./doc/umlauts.txt
+ 5536 ./doc/url_handler.1
+ 119550 ./doc/tin.1
+ 73457 ./doc/tin.5
4675 ./doc/tin.defaults
- 11541 ./doc/tinews.1
- 2237 ./doc/tools.txt
- 5870 ./doc/mbox.5
- 4168 ./doc/mmdf.5
- 2128 ./doc/newsoverview.5
- 6963 ./doc/plp_snprintf.3
- 118450 ./doc/tin.1
- 73027 ./doc/tin.5
+ 13098 ./doc/tinews.1
+ 2418 ./doc/tools.txt
4733 ./doc/w2r.1
2196 ./doc/wildmat.3
344 ./tools/expiretover
3815 ./tools/metamutt
2787 ./tools/opt-case.pl
1410 ./tools/tinlock
- 25305 ./tools/tinews.pl
+ 31444 ./tools/tinews.pl
+ 3815 ./tools/url_handler.pl
1654 ./tools/url_handler.sh
3347 ./tools/w2r.pl
1661 ./tools/expand_aliases.tgz
2778 ./include/bool.h
1947 ./include/bugrep.h
- 59085 ./include/extern.h
- 13574 ./include/keymap.h
- 6340 ./include/newsrc.h
- 8397 ./include/nntplib.h
+ 2173 ./include/debug.h
+ 59475 ./include/extern.h
+ 13620 ./include/keymap.h
+ 6331 ./include/newsrc.h
+ 7720 ./include/nntplib.h
665 ./include/plp_snprintf.h
- 12520 ./include/policy.h
- 30892 ./include/proto.h
- 5047 ./include/rfc2046.h
+ 12654 ./include/policy.h
+ 30878 ./include/proto.h
+ 5118 ./include/rfc2046.h
3373 ./include/stpwatch.h
5756 ./include/tcurses.h
- 59588 ./include/tin.h
+ 60221 ./include/tin.h
13568 ./include/tinrc.h
- 4405 ./include/tnntp.h
+ 4346 ./include/tnntp.h
2264 ./include/trace.h
- 2508 ./include/version.h
- 25899 ./src/active.c
- 59717 ./src/art.c
- 32522 ./src/attrib.c
- 12972 ./src/auth.c
- 12425 ./src/charset.c
- 8220 ./src/color.c
- 59004 ./src/config.c
- 21665 ./src/cook.c
- 26667 ./src/curses.c
- 10378 ./src/debug.c
+ 2352 ./include/version.h
+ 28855 ./src/active.c
+ 65981 ./src/art.c
+ 35764 ./src/attrib.c
+ 15596 ./src/auth.c
+ 12440 ./src/charset.c
+ 8232 ./src/color.c
+ 58768 ./src/config.c
+ 21786 ./src/cook.c
+ 26680 ./src/curses.c
+ 10819 ./src/debug.c
3408 ./src/envarg.c
- 27169 ./src/feed.c
- 56748 ./src/filter.c
+ 27256 ./src/feed.c
+ 57128 ./src/filter.c
18114 ./src/getline.c
9070 ./src/global.c
- 47404 ./src/group.c
+ 47414 ./src/group.c
3900 ./src/hashstr.c
- 8351 ./src/header.c
- 28708 ./src/help.c
- 13665 ./src/inews.c
- 33383 ./src/init.c
- 2145 ./src/joinpath.c
- 89717 ./src/keymap.c
- 118045 ./src/lang.c
+ 8209 ./src/header.c
+ 28743 ./src/help.c
+ 13735 ./src/inews.c
+ 34015 ./src/init.c
+ 2439 ./src/joinpath.c
+ 89926 ./src/keymap.c
+ 118213 ./src/lang.c
4486 ./src/langinfo.c
- 7102 ./src/list.c
- 6759 ./src/lock.c
- 13415 ./src/mail.c
- 22105 ./src/main.c
+ 7691 ./src/list.c
+ 6667 ./src/lock.c
+ 16155 ./src/mail.c
+ 22769 ./src/main.c
10814 ./src/makecfg.c
- 12418 ./src/memory.c
- 5187 ./src/mimetypes.c
- 89340 ./src/misc.c
- 39712 ./src/newsrc.c
- 45995 ./src/nntplib.c
- 7192 ./src/nrctbl.c
- 42537 ./src/options_menu.c
- 58375 ./src/page.c
+ 13008 ./src/memory.c
+ 5283 ./src/mimetypes.c
+ 89806 ./src/misc.c
+ 36823 ./src/newsrc.c
+ 49418 ./src/nntplib.c
+ 7452 ./src/nrctbl.c
+ 42789 ./src/options_menu.c
+ 58392 ./src/page.c
24138 ./src/parsdate.y
16966 ./src/plp_snprintf.c
- 12713 ./src/pgp.c
- 132521 ./src/post.c
+ 12765 ./src/pgp.c
+ 135370 ./src/post.c
18446 ./src/prompt.c
- 10071 ./src/read.c
- 25559 ./src/refs.c
- 5276 ./src/regex.c
+ 10070 ./src/read.c
+ 26130 ./src/refs.c
+ 5472 ./src/regex.c
14475 ./src/rfc1524.c
- 15046 ./src/rfc2045.c
- 29853 ./src/rfc2046.c
- 32609 ./src/rfc2047.c
- 37062 ./src/save.c
+ 15070 ./src/rfc2045.c
+ 29921 ./src/rfc2046.c
+ 34980 ./src/rfc2047.c
+ 37203 ./src/save.c
11358 ./src/screen.c
- 16533 ./src/search.c
- 30804 ./src/select.c
- 7590 ./src/sigfile.c
- 12476 ./src/signal.c
+ 16550 ./src/search.c
+ 30472 ./src/select.c
+ 7706 ./src/sigfile.c
+ 12712 ./src/signal.c
7215 ./src/strftime.c
- 23476 ./src/string.c
- 13852 ./src/tags.c
- 16965 ./src/tcurses.c
+ 23681 ./src/string.c
+ 13907 ./src/tags.c
+ 17052 ./src/tcurses.c
3071 ./src/tmpfile.c
- 3364 ./src/my_tmpfile.c
- 40413 ./src/thread.c
+ 3691 ./src/my_tmpfile.c
+ 40411 ./src/thread.c
2472 ./src/trace.c
- 4347 ./src/version.c
+ 4303 ./src/version.c
5453 ./src/wildmat.c
- 7153 ./src/xface.c
- 7784 ./src/xref.c
+ 7296 ./src/xface.c
+ 12278 ./src/xref.c
422 ./pcre/AUTHORS
2515 ./pcre/COPYING
118928 ./pcre/ChangeLog
@@ -157,6 +160,7 @@ MANIFEST for tin-1.9.2 (Thu Feb 1 15:09
6161 ./pcre/RunTest.in
225 ./pcre/config.h
8703 ./pcre/configure.in
+ 395 ./pcre/version.sh
6369 ./pcre/dftables.c
1171 ./pcre/pcre-config.in
12396 ./pcre/pcre.h
@@ -210,32 +214,25 @@ MANIFEST for tin-1.9.2 (Thu Feb 1 15:09
108966 ./pcre/testdata/testoutput7
53056 ./pcre/testdata/testoutput8
28769 ./pcre/testdata/testoutput9
- 19917 ./include/autoconf.hin
- 21083 ./src/Makefile.in
- 7705 ./src/tincfg.tbl
- 946 ./libcanlock/Build
- 882 ./libcanlock/CHANGES
- 2357 ./libcanlock/HOWTO
- 789 ./libcanlock/MANIFEST
- 1351 ./libcanlock/README
- 10829 ./libcanlock/base64.c
- 160 ./libcanlock/base64.h
- 550 ./libcanlock/canlock.h
- 1990 ./libcanlock/canlock_md5.c
- 1158 ./libcanlock/canlock_misc.c
- 2015 ./libcanlock/canlock_sha1.c
- 3095 ./libcanlock/canlocktest.c
- 3254 ./libcanlock/endian.c
- 1598 ./libcanlock/hmac_md5.c
- 81 ./libcanlock/hmac_md5.h
- 1645 ./libcanlock/hmac_sha1.c
- 82 ./libcanlock/hmac_sha1.h
- 4345 ./libcanlock/hmactest.c
- 8348 ./libcanlock/main.c
- 8087 ./libcanlock/md5.c
- 640 ./libcanlock/md5.h
- 7324 ./libcanlock/sha1.c
- 677 ./libcanlock/sha1.h
+ 20248 ./include/autoconf.hin
+ 21368 ./src/Makefile.in
+ 7769 ./src/tincfg.tbl
+ 1929 ./libcanlock/CHANGES
+ 2464 ./libcanlock/HOWTO
+ 1259 ./libcanlock/README
+ 1297 ./libcanlock/Makefile.in
+ 3700 ./libcanlock/src/base64.c
+ 5234 ./libcanlock/src/canlock.c
+ 3656 ./libcanlock/src/hmac_sha1.c
+ 12514 ./libcanlock/src/sha1.c
+ 1873 ./libcanlock/include/base64.h
+ 390 ./libcanlock/include/canlock.h
+ 119 ./libcanlock/include/hmac_sha1.h
+ 1208 ./libcanlock/include/sha1.h
+ 2889 ./libcanlock/t/canlocktest.c
+ 3135 ./libcanlock/t/hmactest.c
+ 766 ./libcanlock/t/canlocktest.shouldbe
+ 1021 ./libcanlock/t/hmactest.shouldbe
9850 ./intl/bindtextdom.c
72 ./intl/ChangeLog
13325 ./intl/config.charset
@@ -269,21 +266,21 @@ MANIFEST for tin-1.9.2 (Thu Feb 1 15:09
41 ./intl/VERSION
4962 ./po/Makefile.inn
847 ./po/POTFILES.in
- 123927 ./po/tin.pot
- 167511 ./po/de.gmo
- 200881 ./po/de.po
+ 123781 ./po/tin.pot
+ 168215 ./po/de.gmo
+ 201048 ./po/de.po
7359 ./po/en_GB.gmo
- 126523 ./po/en_GB.po
- 157684 ./po/et.gmo
- 191031 ./po/et.po
- 160588 ./po/fr.gmo
- 196829 ./po/fr.po
- 128200 ./po/ru.gmo
- 178642 ./po/ru.po
+ 126376 ./po/en_GB.po
+ 156704 ./po/et.gmo
+ 191381 ./po/et.po
+ 159977 ./po/fr.gmo
+ 196667 ./po/fr.po
+ 127797 ./po/ru.gmo
+ 178497 ./po/ru.po
2081 ./po/rw.gmo
- 170003 ./po/rw.po
- 23145 ./po/sv.gmo
- 131244 ./po/sv.po
- 5889 ./po/tr.gmo
- 190760 ./po/tr.po
-7885201 total
+ 170145 ./po/rw.po
+ 23009 ./po/sv.gmo
+ 131090 ./po/sv.po
+ 4671 ./po/tr.gmo
+ 190954 ./po/tr.po
+8001358 total
diff -Nurp tin-1.9.2/Makefile tin-1.9.3/Makefile
--- tin-1.9.2/Makefile 2007-02-01 15:09:12.000000000 +0100
+++ tin-1.9.3/Makefile 2008-05-06 19:24:18.000000000 +0200
@@ -1,15 +1,15 @@
# Top level Makefile for tin
# - for configuration options read the doc/INSTALL file.
#
-# Updated: 2006-12-21
+# Updated: 2007-09-24
#
PROJECT = tin
LVER = 1
PVER = 9
-SVER = 2
+SVER = 3
VER = $(LVER).$(PVER).$(SVER)
-DVER = 20070201
+DVER = 20080506
EXE = tin
# directory structure
@@ -27,6 +27,7 @@ INTLDIR = ./intl
HFILES = \
$(INCDIR)/bool.h \
$(INCDIR)/bugrep.h \
+ $(INCDIR)/debug.h \
$(INCDIR)/extern.h \
$(INCDIR)/keymap.h \
$(INCDIR)/newsrc.h \
@@ -132,23 +133,24 @@ DOC = \
$(DOCDIR)/iso2asc.txt \
$(DOCDIR)/keymap.sample \
$(DOCDIR)/mailcap.sample \
+ $(DOCDIR)/mbox.5 \
$(DOCDIR)/mime.types \
+ $(DOCDIR)/mmdf.5 \
+ $(DOCDIR)/newsoverview.5 \
$(DOCDIR)/nov_tests \
$(DOCDIR)/opt-case.1 \
+ $(DOCDIR)/plp_snprintf.3 \
$(DOCDIR)/pgp.txt \
$(DOCDIR)/rcvars.txt \
$(DOCDIR)/reading-mail.txt \
$(DOCDIR)/umlaute.txt \
$(DOCDIR)/umlauts.txt \
+ $(DOCDIR)/url_handler.1 \
+ $(DOCDIR)/tin.1 \
+ $(DOCDIR)/tin.5 \
$(DOCDIR)/tin.defaults \
$(DOCDIR)/tinews.1 \
$(DOCDIR)/tools.txt \
- $(DOCDIR)/mbox.5 \
- $(DOCDIR)/mmdf.5 \
- $(DOCDIR)/newsoverview.5 \
- $(DOCDIR)/plp_snprintf.3 \
- $(DOCDIR)/tin.1 \
- $(DOCDIR)/tin.5 \
$(DOCDIR)/w2r.1 \
$(DOCDIR)/wildmat.3
@@ -158,6 +160,7 @@ TOL = \
$(TOLDIR)/opt-case.pl \
$(TOLDIR)/tinlock \
$(TOLDIR)/tinews.pl \
+ $(TOLDIR)/url_handler.pl \
$(TOLDIR)/url_handler.sh \
$(TOLDIR)/w2r.pl \
$(TOLDIR)/expand_aliases.tgz
@@ -192,6 +195,7 @@ PCRE = \
$(PCREDIR)/RunTest.in \
$(PCREDIR)/config.h \
$(PCREDIR)/configure.in \
+ $(PCREDIR)/version.sh \
$(PCREDIR)/dftables.c \
$(PCREDIR)/pcre-config.in \
$(PCREDIR)/pcre.h \
@@ -247,29 +251,22 @@ PCRE = \
$(PCREDIR)/testdata/testoutput9
CAN = \
- $(CANDIR)/Build \
$(CANDIR)/CHANGES \
$(CANDIR)/HOWTO \
- $(CANDIR)/MANIFEST \
$(CANDIR)/README \
- $(CANDIR)/base64.c \
- $(CANDIR)/base64.h \
- $(CANDIR)/canlock.h \
- $(CANDIR)/canlock_md5.c \
- $(CANDIR)/canlock_misc.c \
- $(CANDIR)/canlock_sha1.c \
- $(CANDIR)/canlocktest.c \
- $(CANDIR)/endian.c \
- $(CANDIR)/hmac_md5.c \
- $(CANDIR)/hmac_md5.h \
- $(CANDIR)/hmac_sha1.c \
- $(CANDIR)/hmac_sha1.h \
- $(CANDIR)/hmactest.c \
- $(CANDIR)/main.c \
- $(CANDIR)/md5.c \
- $(CANDIR)/md5.h \
- $(CANDIR)/sha1.c \
- $(CANDIR)/sha1.h
+ $(CANDIR)/Makefile.in \
+ $(CANDIR)/src/base64.c \
+ $(CANDIR)/src/canlock.c \
+ $(CANDIR)/src/hmac_sha1.c \
+ $(CANDIR)/src/sha1.c \
+ $(CANDIR)/include/base64.h \
+ $(CANDIR)/include/canlock.h \
+ $(CANDIR)/include/hmac_sha1.h \
+ $(CANDIR)/include/sha1.h \
+ $(CANDIR)/t/canlocktest.c \
+ $(CANDIR)/t/hmactest.c \
+ $(CANDIR)/t/canlocktest.shouldbe \
+ $(CANDIR)/t/hmactest.shouldbe
MISC = \
$(INCDIR)/autoconf.hin \
@@ -393,7 +390,7 @@ clean:
@-if $(TEST) -r $(INTLDIR)/Makefile ; then $(CD) $(INTLDIR) && $(MAKE) clean ; fi
@-if $(TEST) -r $(PODIR)/Makefile ; then $(CD) $(PODIR) && $(MAKE) clean ; fi
@-if $(TEST) -r $(SRCDIR)/Makefile ; then $(CD) $(SRCDIR) && $(MAKE) clean ; fi
- @-if $(TEST) -r $(CANDIR)/hmactest ; then $(CD) $(CANDIR) && ./Build clean ; fi
+ @-if $(TEST) -r $(CANDIR)/Makefile ; then $(CD) $(CANDIR) && $(MAKE) clean ; fi
man:
@$(MAKE) manpage
@@ -430,10 +427,11 @@ chmod:
$(TOLDIR)/opt-case.pl \
$(TOLDIR)/tinlock \
$(TOLDIR)/tinews.pl \
+ $(TOLDIR)/url_handler.pl \
$(TOLDIR)/url_handler.sh \
$(TOLDIR)/w2r.pl \
$(PCREDIR)/perltest \
- $(CANDIR)/Build
+ $(PCREDIR)/version.sh
tar:
@$(ECHO) "Generating gzipped tar file..."
@@ -493,6 +491,7 @@ distclean:
@-if $(TEST) -r $(PODIR)/Makefile ; then $(CD) $(PODIR) && $(MAKE) distclean ; fi
@-if $(TEST) -r $(INTLDIR)/Makefile ; then $(CD) $(INTLDIR) && $(MAKE) distclean ; fi
@-if $(TEST) -r $(PCREDIR)/Makefile ; then $(CD) $(PCREDIR) && $(MAKE) distclean ; fi
+ @-if $(TEST) -r $(CANDIR)/Makefile ; then $(CD) $(CANDIR) && $(MAKE) distclean ; fi
@-$(RM) -f \
$(TOPDIR)/config.cache \
$(TOPDIR)/config.log \
@@ -501,6 +500,7 @@ distclean:
$(INCDIR)/autoconf.h \
$(SRCDIR)/Makefile \
$(PCREDIR)/Makefile \
+ $(CANDIR)/Makefile \
$(INTLDIR)/po2tbl.sed
configure: configure.in aclocal.m4
diff -Nurp tin-1.9.2/README.WIN tin-1.9.3/README.WIN
--- tin-1.9.2/README.WIN 2006-12-21 14:41:15.000000000 +0100
+++ tin-1.9.3/README.WIN 2008-05-06 18:55:51.000000000 +0200
@@ -7,7 +7,7 @@ Compile Tin For Windows
- system
- Windows NT
- - Cygwin (http://sources.redhat.com/cygwin/)
+ - Cygwin
- Cygwin >= 1.1.x
- ncurses
@@ -18,7 +18,7 @@ Compile Tin For Windows
- configure
- export CC=gcc
- - ./configure --enable-nntp-only --disable-locale
+ - ./configure --enable-nntp-only --disable-nls
- make
- cd src
@@ -37,4 +37,4 @@ Compile Tin For Windows
set HOME=c:\home
set USER=username
- tested with
- 1.5.8 release 20010221 "Blue Water"
+ 1.9.3 release 20080506 "Dalintober"
diff -Nurp tin-1.9.2/aclocal.m4 tin-1.9.3/aclocal.m4
--- tin-1.9.2/aclocal.m4 2006-12-22 02:38:22.000000000 +0100
+++ tin-1.9.3/aclocal.m4 2008-03-31 22:21:34.000000000 +0200
@@ -2,10 +2,10 @@ dnl Project : tin - a Usenet reader
dnl Module : aclocal.m4
dnl Author : Thomas E. Dickey
dnl Created : 1995-08-24
-dnl Updated : 2006-12-21
+dnl Updated : 2008-03-27
dnl Notes :
dnl
-dnl Copyright (c) 1995-2007 Thomas E. Dickey
+dnl Copyright (c) 1995-2008 Thomas E. Dickey
dnl All rights reserved.
dnl
dnl Redistribution and use in source and binary forms, with or without
@@ -146,7 +146,7 @@ strdup strtoul tsearch __argz_count __ar
AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
])dnl
dnl ---------------------------------------------------------------------------
-dnl AM_ICONV version: 4 updated: 2005/06/20 05:31:53
+dnl AM_ICONV version: 12 updated: 2007/07/30 19:12:03
dnl --------
dnl Inserted as requested by gettext 0.10.40
dnl File from /usr/share/aclocal
@@ -155,6 +155,11 @@ dnl ====================
dnl serial AM2
dnl
dnl From Bruno Haible.
+dnl
+dnl ====================
+dnl Modified to use CF_FIND_LINKAGE and CF_ADD_SEARCHPATH, to broaden the
+dnl range of locations searched. Retain the same cache-variable naming to
+dnl allow reuse with the other gettext macros -Thomas E Dickey
AC_DEFUN([AM_ICONV],
[
dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
@@ -163,41 +168,22 @@ AC_DEFUN([AM_ICONV],
AC_ARG_WITH([libiconv-prefix],
[ --with-libiconv-prefix=DIR
search for libiconv in DIR/include and DIR/lib], [
- for dir in `echo "$withval" | tr : ' '`; do
- if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
- if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
- done
+ CF_ADD_OPTIONAL_PATH($withval, libiconv)
])
AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
- am_cv_func_iconv="no, consider installing GNU libiconv"
- am_cv_lib_iconv=no
- AC_TRY_LINK([#include
-#include ],
- [iconv_t cd = iconv_open("","");
- iconv(cd,NULL,NULL,NULL,NULL);
- iconv_close(cd);],
- am_cv_func_iconv=yes)
- if test "$am_cv_func_iconv" != yes; then
- am_save_LIBS="$LIBS"
- LIBS="$LIBS -liconv"
- AC_TRY_LINK([#include
-#include ],
- [iconv_t cd = iconv_open("","");
- iconv(cd,NULL,NULL,NULL,NULL);
- iconv_close(cd);],
- am_cv_lib_iconv=yes
- am_cv_func_iconv=yes)
- LIBS="$am_save_LIBS"
- fi
- ])
+ CF_FIND_LINKAGE(CF__ICONV_HEAD,
+ CF__ICONV_BODY,
+ iconv,
+ am_cv_func_iconv=yes,
+ am_cv_func_iconv=["no, consider installing GNU libiconv"])])
+
if test "$am_cv_func_iconv" = yes; then
AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
- AC_MSG_CHECKING([for iconv declaration])
- AC_CACHE_VAL(am_cv_proto_iconv, [
- AC_TRY_COMPILE([
-#include
-#include
+
+ AC_CACHE_CHECK([if the declaration of iconv() needs const.],
+ am_cv_proto_iconv_const,[
+ AC_TRY_COMPILE(CF__ICONV_HEAD [
extern
#ifdef __cplusplus
"C"
@@ -207,18 +193,28 @@ size_t iconv (iconv_t cd, char * *inbuf,
#else
size_t iconv();
#endif
-], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
- am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
- am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
- AC_MSG_RESULT([$]{ac_t:-
- }[$]am_cv_proto_iconv)
+],[], am_cv_proto_iconv_const=no,
+ am_cv_proto_iconv_const=yes)])
+
+ if test "$am_cv_proto_iconv_const" = yes ; then
+ am_cv_proto_iconv_arg1="const"
+ else
+ am_cv_proto_iconv_arg1=""
+ fi
+
AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
[Define as const if the declaration of iconv() needs const.])
fi
+
LIBICONV=
- if test "$am_cv_lib_iconv" = yes; then
- LIBICONV="-liconv"
+ if test "$cf_cv_find_linkage_iconv" = yes; then
+ CF_ADD_INCDIR($cf_cv_header_path_iconv)
+ if test -n "$cf_cv_library_file_iconv" ; then
+ LIBICONV="-liconv"
+ CF_ADD_LIBDIR($cf_cv_library_path_iconv)
+ fi
fi
+
AC_SUBST(LIBICONV)
])dnl
dnl ---------------------------------------------------------------------------
@@ -415,7 +411,7 @@ fi
AC_SUBST($1)dnl
])dnl
dnl ---------------------------------------------------------------------------
-dnl AM_WITH_NLS version: 18 updated: 2006/01/22 20:26:00
+dnl AM_WITH_NLS version: 22 updated: 2007/07/29 13:35:20
dnl -----------
dnl Inserted as requested by gettext 0.10.40
dnl File from /usr/share/aclocal
@@ -423,6 +419,11 @@ dnl gettext.m4
dnl ====================
dnl Macro to add for using GNU gettext.
dnl Ulrich Drepper , 1995.
+dnl ====================
+dnl Modified to use CF_FIND_LINKAGE and CF_ADD_SEARCHPATH, to broaden the
+dnl range of locations searched. Retain the same cache-variable naming to
+dnl allow reuse with the other gettext macros -Thomas E Dickey
+dnl ====================
dnl
dnl This file can be copied and used freely without restrictions. It can
dnl be used in projects which are not available under the GNU General Public
@@ -466,208 +467,199 @@ dnl but we keep it in order not to force
dnl maintainers.
dnl
AC_DEFUN([AM_WITH_NLS],
- [AC_MSG_CHECKING([whether NLS is requested])
- dnl Default is enabled NLS
- ifelse([$4],,[
- AC_ARG_ENABLE(nls,
- [ --disable-nls do not use Native Language Support],
- USE_NLS=$enableval, USE_NLS=yes)],[
- AC_ARG_ENABLE(nls,
- [ --enable-nls use Native Language Support],
- USE_NLS=$enableval, USE_NLS=no)])
- AC_MSG_RESULT($USE_NLS)
- AC_SUBST(USE_NLS)
-
- BUILD_INCLUDED_LIBINTL=no
- USE_INCLUDED_LIBINTL=no
- INTLLIBS=
-
- dnl If we use NLS figure out what method
- if test "$USE_NLS" = "yes"; then
- AC_DEFINE(ENABLE_NLS, 1,
- [Define to 1 if translation of program messages to the user's native language
- is requested.])
- AC_MSG_CHECKING([whether included gettext is requested])
- AC_ARG_WITH(included-gettext,
- [ --with-included-gettext use the GNU gettext library included here],
- nls_cv_force_use_gnu_gettext=$withval,
- nls_cv_force_use_gnu_gettext=no)
- AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
-
- nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
- if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
- dnl User does not insist on using GNU NLS library. Figure out what
- dnl to use. If GNU gettext is available we use this. Else we have
- dnl to fall back to GNU NLS library.
- CATOBJEXT=NONE
-
- dnl Add a version number to the cache macros.
- define(gt_cv_func_gnugettext_libc, [gt_cv_func_gnugettext]ifelse([$2], need-ngettext, 2, 1)[_libc])
- define(gt_cv_func_gnugettext_libintl, [gt_cv_func_gnugettext]ifelse([$2], need-ngettext, 2, 1)[_libintl])
-
- CF_FIND_HEADER(libintl.h,gettext,
- [AC_DEFINE(HAVE_LIBINTL_H)
- AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
- [AC_TRY_LINK([#include
-extern int _nl_msg_cat_cntr;],
- [bindtextdomain ("", "");
-return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr],
- gt_cv_func_gnugettext_libc=yes,
- gt_cv_func_gnugettext_libc=no)])
-
- if test "$gt_cv_func_gnugettext_libc" != "yes"; then
- CF_FIND_LINKAGE([#include
-extern int _nl_msg_cat_cntr;],
- [bindtextdomain ("", "");
-return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr],
-intl,
- gt_cv_func_gnugettext_libintl=yes,
- gt_cv_func_gnugettext_libintl=no)
- fi
-
- dnl If an already present or preinstalled GNU gettext() is found,
- dnl use it. But if this macro is used in GNU gettext, and GNU
- dnl gettext is already preinstalled in libintl, we update this
- dnl libintl. (Cf. the install rule in intl/Makefile.in.)
- if test "$gt_cv_func_gnugettext_libc" = "yes" \
- || { test "$gt_cv_func_gnugettext_libintl" = "yes" \
- && test "$PACKAGE" != gettext; }; then
- AC_DEFINE(HAVE_GETTEXT, 1,
- [Define if the GNU gettext() function is already present or preinstalled.])
-
- if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
- dnl If iconv() is in a separate libiconv library, then anyone
- dnl linking with libintl{.a,.so} also needs to link with
- dnl libiconv.
- INTLLIBS="-lintl $LIBICONV"
- fi
-
- gt_save_LIBS="$LIBS"
- LIBS="$LIBS $INTLLIBS"
- AC_CHECK_FUNCS(dcgettext)
- LIBS="$gt_save_LIBS"
-
- dnl Search for GNU msgfmt in the PATH.
- AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
- [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1], :)
- AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
-
- dnl Search for GNU xgettext in the PATH.
- AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
- [$ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1], :)
+[AC_MSG_CHECKING([whether NLS is requested])
+ dnl Default is enabled NLS
+ ifelse([$4],,[
+ AC_ARG_ENABLE(nls,
+ [ --disable-nls do not use Native Language Support],
+ USE_NLS=$enableval, USE_NLS=yes)],[
+ AC_ARG_ENABLE(nls,
+ [ --enable-nls use Native Language Support],
+ USE_NLS=$enableval, USE_NLS=no)])
+ AC_MSG_RESULT($USE_NLS)
+ AC_SUBST(USE_NLS)
+
+ BUILD_INCLUDED_LIBINTL=no
+ USE_INCLUDED_LIBINTL=no
+ INTLLIBS=
+
+ dnl If we use NLS figure out what method
+ if test "$USE_NLS" = "yes"; then
+ AC_DEFINE(ENABLE_NLS, 1,
+ [Define to 1 if translation of program messages to the user's native language
+ is requested.])
+ AC_MSG_CHECKING([whether included gettext is requested])
+ AC_ARG_WITH(included-gettext,
+ [ --with-included-gettext use the GNU gettext library included here],
+ nls_cv_force_use_gnu_gettext=$withval,
+ nls_cv_force_use_gnu_gettext=no)
+ AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
+
+ nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
+ if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
+ dnl User does not insist on using GNU NLS library. Figure out what
+ dnl to use. If GNU gettext is available we use this. Else we have
+ dnl to fall back to GNU NLS library.
+ CATOBJEXT=NONE
+
+ AC_CACHE_CHECK([for libintl.h and gettext()], cf_cv_func_gettext,[
+ CF_FIND_LINKAGE(CF__INTL_HEAD,
+ CF__INTL_BODY,
+ intl,
+ cf_cv_func_gettext=yes,
+ cf_cv_func_gettext=no)
+ ])
+
+ if test "$cf_cv_func_gettext" = yes ; then
+ AC_DEFINE(HAVE_LIBINTL_H)
+
+ dnl If an already present or preinstalled GNU gettext() is found,
+ dnl use it. But if this macro is used in GNU gettext, and GNU
+ dnl gettext is already preinstalled in libintl, we update this
+ dnl libintl. (Cf. the install rule in intl/Makefile.in.)
+ if test "$PACKAGE" != gettext; then
+ AC_DEFINE(HAVE_GETTEXT, 1,
+ [Define if the GNU gettext() function is already present or preinstalled.])
+
+ CF_ADD_INCDIR($cf_cv_header_path_intl)
+
+ if test -n "$cf_cv_library_file_intl" ; then
+ dnl If iconv() is in a separate libiconv library, then anyone
+ dnl linking with libintl{.a,.so} also needs to link with
+ dnl libiconv.
+ INTLLIBS="$cf_cv_library_file_intl $LIBICONV"
+ CF_ADD_LIBDIR($cf_cv_library_path_intl,INTLLIBS)
+ fi
- CATOBJEXT=.gmo
- fi
- ])
+ gt_save_LIBS="$LIBS"
+ LIBS="$LIBS $INTLLIBS"
+ AC_CHECK_FUNCS(dcgettext)
+ LIBS="$gt_save_LIBS"
+
+ dnl Search for GNU msgfmt in the PATH.
+ AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
+ [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1], :)
+ AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
+
+ dnl Search for GNU xgettext in the PATH.
+ AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
+ [$ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1], :)
- if test "$CATOBJEXT" = "NONE"; then
- dnl GNU gettext is not found in the C library.
- dnl Fall back on GNU gettext library.
- nls_cv_use_gnu_gettext=yes
+ CATOBJEXT=.gmo
fi
fi
- if test "$nls_cv_use_gnu_gettext" = "yes"; then
- if test ! -d $srcdir/intl ; then
- AC_MSG_ERROR(no NLS library is packaged with this application)
- fi
- dnl Mark actions used to generate GNU NLS library.
- INTLOBJS="\$(GETTOBJS)"
- AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
- [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1], :)
- AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
- AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
- [$ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1], :)
- AC_SUBST(MSGFMT)
- BUILD_INCLUDED_LIBINTL=yes
- USE_INCLUDED_LIBINTL=yes
- CATOBJEXT=.gmo
- INTLLIBS="ifelse([$3],[],\$(top_builddir)/intl,[$3])/libintl.ifelse([$1], use-libtool, [l], [])a $LIBICONV"
- LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
+ if test "$CATOBJEXT" = "NONE"; then
+ dnl GNU gettext is not found in the C library.
+ dnl Fall back on GNU gettext library.
+ nls_cv_use_gnu_gettext=yes
fi
+ fi
- dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
- dnl Test whether we really found GNU msgfmt.
- if test "$GMSGFMT" != ":"; then
- dnl If it is no GNU msgfmt we define it as : so that the
- dnl Makefiles still can work.
- if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
- : ;
- else
- AC_MSG_RESULT(
- [found msgfmt program is not GNU msgfmt; ignore it])
- GMSGFMT=":"
- fi
+ if test "$nls_cv_use_gnu_gettext" = "yes"; then
+ if test ! -d $srcdir/intl ; then
+ AC_MSG_ERROR(no NLS library is packaged with this application)
fi
+ dnl Mark actions used to generate GNU NLS library.
+ INTLOBJS="\$(GETTOBJS)"
+ AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
+ [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1], :)
+ AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
+ AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
+ [$ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1], :)
+ AC_SUBST(MSGFMT)
+ BUILD_INCLUDED_LIBINTL=yes
+ USE_INCLUDED_LIBINTL=yes
+ CATOBJEXT=.gmo
+ INTLLIBS="ifelse([$3],[],\$(top_builddir)/intl,[$3])/libintl.ifelse([$1], use-libtool, [l], [])a $LIBICONV"
+ LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
+ fi
- dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
- dnl Test whether we really found GNU xgettext.
- if test "$XGETTEXT" != ":"; then
- dnl If it is no GNU xgettext we define it as : so that the
- dnl Makefiles still can work.
- if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
- : ;
- else
- AC_MSG_RESULT(
- [found xgettext program is not GNU xgettext; ignore it])
- XGETTEXT=":"
- fi
+ dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
+ dnl Test whether we really found GNU msgfmt.
+ if test "$GMSGFMT" != ":"; then
+ dnl If it is no GNU msgfmt we define it as : so that the
+ dnl Makefiles still can work.
+ if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
+ : ;
+ else
+ AC_MSG_RESULT(
+ [found msgfmt program is not GNU msgfmt; ignore it])
+ GMSGFMT=":"
fi
+ fi
- dnl We need to process the po/ directory.
- POSUB=po
+ dnl This could go away some day; the PATH_PROG_WITH_TEST already does it.
+ dnl Test whether we really found GNU xgettext.
+ if test "$XGETTEXT" != ":"; then
+ dnl If it is no GNU xgettext we define it as : so that the
+ dnl Makefiles still can work.
+ if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
+ : ;
+ else
+ AC_MSG_RESULT(
+ [found xgettext program is not GNU xgettext; ignore it])
+ XGETTEXT=":"
+ fi
fi
- AC_OUTPUT_COMMANDS(
- [for ac_file in $CONFIG_FILES; do
- # Support "outfile[:infile[:infile...]]"
- case "$ac_file" in
- *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
- esac
- # PO directories have a Makefile.in generated from Makefile.inn.
- case "$ac_file" in */[Mm]akefile.in)
- # Adjust a relative srcdir.
- ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
- ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
- ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
- ac_base=`basename $ac_file .in`
- # In autoconf-2.13 it is called $ac_given_srcdir.
- # In autoconf-2.50 it is called $srcdir.
- test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
- case "$ac_given_srcdir" in
- .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
- /*) top_srcdir="$ac_given_srcdir" ;;
- *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
- esac
- if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
- rm -f "$ac_dir/POTFILES"
- test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
- sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
- test -n "$as_me" && echo "$as_me: creating $ac_dir/$ac_base" || echo "creating $ac_dir/$ac_base"
- sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/$ac_base.in" > "$ac_dir/$ac_base"
- fi
- ;;
+ dnl We need to process the po/ directory.
+ POSUB=po
+ fi
+
+ AC_OUTPUT_COMMANDS(
+ [for ac_file in $CONFIG_FILES; do
+
+ # Support "outfile[:infile[:infile...]]"
+ case "$ac_file" in
+ *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
+ esac
+
+ # PO directories have a Makefile.in generated from Makefile.inn.
+ case "$ac_file" in */[Mm]akefile.in)
+ # Adjust a relative srcdir.
+ ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
+ ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
+ ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
+ ac_base=`basename $ac_file .in`
+ # In autoconf-2.13 it is called $ac_given_srcdir.
+ # In autoconf-2.50 it is called $srcdir.
+ test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
+
+ case "$ac_given_srcdir" in
+ .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
+ /*) top_srcdir="$ac_given_srcdir" ;;
+ *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
- done])
+ if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
+ rm -f "$ac_dir/POTFILES"
+ test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
+ sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
+ test -n "$as_me" && echo "$as_me: creating $ac_dir/$ac_base" || echo "creating $ac_dir/$ac_base"
+ sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/$ac_base.in" > "$ac_dir/$ac_base"
+ fi
+ ;;
+ esac
+ done])
- dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
- dnl to 'yes' because some of the testsuite requires it.
- if test "$PACKAGE" = gettext; then
- BUILD_INCLUDED_LIBINTL=yes
- fi
+ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
+ dnl to 'yes' because some of the testsuite requires it.
+ if test "$PACKAGE" = gettext; then
+ BUILD_INCLUDED_LIBINTL=yes
+ fi
- dnl intl/plural.c is generated from intl/plural.y. It requires bison,
- dnl because plural.y uses bison specific features. It requires at least
- dnl bison-1.26 because earlier versions generate a plural.c that doesn't
- dnl compile.
- dnl bison is only needed for the maintainer (who touches plural.y). But in
- dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
- dnl the rule in general Makefile. Now, some people carelessly touch the
- dnl files or have a broken "make" program, hence the plural.c rule will
- dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
- dnl present or too old.
- if test "$nls_cv_use_gnu_gettext" = "yes"; then
+ dnl intl/plural.c is generated from intl/plural.y. It requires bison,
+ dnl because plural.y uses bison specific features. It requires at least
+ dnl bison-1.26 because earlier versions generate a plural.c that doesn't
+ dnl compile.
+ dnl bison is only needed for the maintainer (who touches plural.y). But in
+ dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
+ dnl the rule in general Makefile. Now, some people carelessly touch the
+ dnl files or have a broken "make" program, hence the plural.c rule will
+ dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
+ dnl present or too old.
+ if test "$nls_cv_use_gnu_gettext" = "yes"; then
AC_CHECK_PROGS([INTLBISON], [bison])
if test -z "$INTLBISON"; then
ac_verc_fail=yes
@@ -683,48 +675,48 @@ changequote([,])dnl
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
esac
- AC_MSG_RESULT([$ac_prog_version])
+ AC_MSG_RESULT([$ac_prog_version])
fi
if test $ac_verc_fail = yes; then
INTLBISON=:
fi
- fi
+ fi
- dnl These rules are solely for the distribution goal. While doing this
- dnl we only have to keep exactly one list of the available catalogs
- dnl in configure.in.
- for lang in $ALL_LINGUAS; do
- GMOFILES="$GMOFILES $lang.gmo"
- POFILES="$POFILES $lang.po"
- done
+ dnl These rules are solely for the distribution goal. While doing this
+ dnl we only have to keep exactly one list of the available catalogs
+ dnl in configure.in.
+ for lang in $ALL_LINGUAS; do
+ GMOFILES="$GMOFILES $lang.gmo"
+ POFILES="$POFILES $lang.po"
+ done
- dnl Make all variables we use known to autoconf.
- AC_SUBST(BUILD_INCLUDED_LIBINTL)
- AC_SUBST(USE_INCLUDED_LIBINTL)
- AC_SUBST(CATALOGS)
- AC_SUBST(CATOBJEXT)
- AC_SUBST(GMOFILES)
- AC_SUBST(INTLLIBS)
- AC_SUBST(INTLOBJS)
- AC_SUBST(POFILES)
- AC_SUBST(POSUB)
-
- dnl For backward compatibility. Some configure.ins may be using this.
- nls_cv_header_intl=
- nls_cv_header_libgt=
-
- dnl For backward compatibility. Some Makefiles may be using this.
- DATADIRNAME=share
- AC_SUBST(DATADIRNAME)
-
- dnl For backward compatibility. Some Makefiles may be using this.
- INSTOBJEXT=.mo
- AC_SUBST(INSTOBJEXT)
-
- dnl For backward compatibility. Some Makefiles may be using this.
- GENCAT=gencat
- AC_SUBST(GENCAT)
- ])dnl
+ dnl Make all variables we use known to autoconf.
+ AC_SUBST(BUILD_INCLUDED_LIBINTL)
+ AC_SUBST(USE_INCLUDED_LIBINTL)
+ AC_SUBST(CATALOGS)
+ AC_SUBST(CATOBJEXT)
+ AC_SUBST(GMOFILES)
+ AC_SUBST(INTLLIBS)
+ AC_SUBST(INTLOBJS)
+ AC_SUBST(POFILES)
+ AC_SUBST(POSUB)
+
+ dnl For backward compatibility. Some configure.ins may be using this.
+ nls_cv_header_intl=
+ nls_cv_header_libgt=
+
+ dnl For backward compatibility. Some Makefiles may be using this.
+ DATADIRNAME=share
+ AC_SUBST(DATADIRNAME)
+
+ dnl For backward compatibility. Some Makefiles may be using this.
+ INSTOBJEXT=.mo
+ AC_SUBST(INSTOBJEXT)
+
+ dnl For backward compatibility. Some Makefiles may be using this.
+ GENCAT=gencat
+ AC_SUBST(GENCAT)
+])dnl
dnl ---------------------------------------------------------------------------
dnl CF_ADD_CFLAGS version: 7 updated: 2004/04/25 17:48:30
dnl -------------
@@ -808,42 +800,167 @@ AC_SUBST(EXTRA_CPPFLAGS)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_ADD_INCDIR version: 4 updated: 2002/12/21 14:25:52
+dnl CF_ADD_INCDIR version: 9 updated: 2008/02/09 13:15:34
dnl -------------
dnl Add an include-directory to $CPPFLAGS. Don't add /usr/include, since it's
dnl redundant. We don't normally need to add -I/usr/local/include for gcc,
dnl but old versions (and some misinstalled ones) need that. To make things
-dnl worse, gcc 3.x gives error messages if -I/usr/local/include is added to
+dnl worse, gcc 3.x may give error messages if -I/usr/local/include is added to
dnl the include-path).
AC_DEFUN([CF_ADD_INCDIR],
[
-for cf_add_incdir in $1
-do
- while true
+if test -n "$1" ; then
+ for cf_add_incdir in $1
+ do
+ while test $cf_add_incdir != /usr/include
do
- case $cf_add_incdir in
- /usr/include) # (vi
- ;;
- /usr/local/include) # (vi
+ if test -d $cf_add_incdir
+ then
+ cf_have_incdir=no
+ if test -n "$CFLAGS$CPPFLAGS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
+ if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
+ cf_have_incdir=yes; break
+ fi
+ done
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ if test "$cf_add_incdir" = /usr/local/include ; then
if test "$GCC" = yes
then
- cf_save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
- AC_TRY_COMPILE([#include ],
- [printf("Hello")],
- [],
- [CPPFLAGS="$cf_save_CPPFLAGS"])
+ cf_save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
+ AC_TRY_COMPILE([#include ],
+ [printf("Hello")],
+ [],
+ [cf_have_incdir=yes])
+ CPPFLAGS=$cf_save_CPPFLAGS
fi
- ;;
- *) # (vi
- CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
- ;;
- esac
- cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
- test "$cf_top_incdir" = "$cf_add_incdir" && break
- cf_add_incdir="$cf_top_incdir"
+ fi
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ CF_VERBOSE(adding $cf_add_incdir to include-path)
+ ifelse($2,,CPPFLAGS,$2)="-I$cf_add_incdir $ifelse($2,,CPPFLAGS,[$]$2)"
+
+ cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
+ test "$cf_top_incdir" = "$cf_add_incdir" && break
+ cf_add_incdir="$cf_top_incdir"
+ else
+ break
+ fi
+ fi
done
+ done
+fi
+])dnl
+dnl ---------------------------------------------------------------------------
+dnl CF_ADD_LIBDIR version: 6 updated: 2008/02/09 13:15:34
+dnl -------------
+dnl Adds to the library-path
+dnl
+dnl Some machines have trouble with multiple -L options.
+dnl
+dnl $1 is the (list of) directory(s) to add
+dnl $2 is the optional name of the variable to update (default LDFLAGS)
+dnl
+AC_DEFUN([CF_ADD_LIBDIR],
+[
+if test -n "$1" ; then
+ for cf_add_libdir in $1
+ do
+ if test $cf_add_libdir = /usr/lib ; then
+ :
+ elif test -d $cf_add_libdir
+ then
+ cf_have_libdir=no
+ if test -n "$LDFLAGS$LIBS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_libdir in $LDFLAGS $LIBS ; do
+ if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
+ cf_have_libdir=yes; break
+ fi
+ done
+ fi
+ if test "$cf_have_libdir" = no ; then
+ CF_VERBOSE(adding $cf_add_libdir to library-path)
+ ifelse($2,,LDFLAGS,$2)="-L$cf_add_libdir $ifelse($2,,LDFLAGS,[$]$2)"
+ fi
+ fi
+ done
+fi
+])dnl
+dnl ---------------------------------------------------------------------------
+dnl CF_ADD_OPTIONAL_PATH version: 1 updated: 2007/07/29 12:33:33
+dnl --------------------
+dnl Add an optional search-path to the compile/link variables.
+dnl See CF_WITH_PATH
+dnl
+dnl $1 = shell variable containing the result of --with-XXX=[DIR]
+dnl $2 = module to look for.
+AC_DEFUN([CF_ADD_OPTIONAL_PATH],[
+ case "$1" in #(vi
+ no) #(vi
+ ;;
+ yes) #(vi
+ ;;
+ *)
+ CF_ADD_SEARCHPATH([$1], [AC_MSG_ERROR(cannot find $2 under $1)])
+ ;;
+ esac
+])dnl
+dnl ---------------------------------------------------------------------------
+dnl CF_ADD_SEARCHPATH version: 4 updated: 2007/07/29 13:35:20
+dnl -----------------
+dnl Set $CPPFLAGS and $LDFLAGS with the directories given via the parameter.
+dnl They can be either the common root of include- and lib-directories, or the
+dnl lib-directory (to allow for things like lib64 directories).
+dnl See also CF_FIND_LINKAGE.
+dnl
+dnl $1 is the list of colon-separated directory names to search.
+dnl $2 is the action to take if a parameter does not yield a directory.
+AC_DEFUN([CF_ADD_SEARCHPATH],
+[
+for cf_searchpath in `echo "$1" | tr : ' '`; do
+ if test -d $cf_searchpath/include; then
+ CF_ADD_INCDIR($cf_searchpath/include)
+ elif test -d $cf_searchpath/../include ; then
+ CF_ADD_INCDIR($cf_searchpath/../include)
+ ifelse([$2],,,[else
+$2])
+ fi
+ if test -d $cf_searchpath/lib; then
+ CF_ADD_LIBDIR($cf_searchpath/lib)
+ elif test -d $cf_searchpath ; then
+ CF_ADD_LIBDIR($cf_searchpath)
+ ifelse([$2],,,[else
+$2])
+ fi
done
+])
+dnl ---------------------------------------------------------------------------
+dnl CF_ADD_SUBDIR_PATH version: 2 updated: 2007/07/29 10:12:59
+dnl ------------------
+dnl Append to a search-list for a nonstandard header/lib-file
+dnl $1 = the variable to return as result
+dnl $2 = the package name
+dnl $3 = the subdirectory, e.g., bin, include or lib
+dnl $4 = the directory under which we will test for subdirectories
+dnl $5 = a directory that we do not want $4 to match
+AC_DEFUN([CF_ADD_SUBDIR_PATH],
+[
+test "$4" != "$5" && \
+test -d "$4" && \
+ifelse([$5],NONE,,[(test $5 = NONE || test -d $5) &&]) {
+ test -n "$verbose" && echo " ... testing for $3-directories under $4"
+ test -d $4/$3 && $1="[$]$1 $4/$3"
+ test -d $4/$3/$2 && $1="[$]$1 $4/$3/$2"
+ test -d $4/$3/$2/$3 && $1="[$]$1 $4/$3/$2/$3"
+ test -d $4/$2/$3 && $1="[$]$1 $4/$2/$3"
+ test -d $4/$2/$3/$2 && $1="[$]$1 $4/$2/$3/$2"
+}
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_ANSI_CC_CHECK version: 9 updated: 2001/12/30 17:53:34
@@ -898,7 +1015,7 @@ fi
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_ANSI_CC_REQD version: 3 updated: 1997/09/06 13:40:44
+dnl CF_ANSI_CC_REQD version: 4 updated: 2008/03/23 14:48:54
dnl ---------------
dnl For programs that must use an ANSI compiler, obtain compiler options that
dnl will make it recognize prototypes. We'll do preprocessor checks in other
@@ -907,7 +1024,7 @@ dnl the preprocessor.
AC_DEFUN([CF_ANSI_CC_REQD],
[AC_REQUIRE([CF_ANSI_CC_CHECK])
if test "$cf_cv_ansi_cc" = "no"; then
- AC_ERROR(
+ AC_MSG_ERROR(
[Your compiler does not appear to recognize prototypes.
You have the following choices:
a. adjust your compiler options
@@ -951,7 +1068,7 @@ ifelse($3,,[ :]dnl
])dnl
])])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_ARG_WITH version: 3 updated: 2000/07/20 00:41:18
+dnl CF_ARG_WITH version: 4 updated: 2008/03/23 14:48:54
dnl -----------
dnl Restricted form of AC_ARG_WITH that requires user to specify a value
dnl $1 = option name
@@ -967,7 +1084,7 @@ ifelse($4,,[test -n "$withval" && \
])dnl
case "$withval" in #(vi
yes)
- AC_ERROR(expected a value for --with-$1)
+ AC_MSG_ERROR(expected a value for --with-$1)
;; #(vi
no) withval=""
;;
@@ -975,7 +1092,7 @@ esac
$3="$withval"
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_BUILD_CC version: 5 updated: 2005/09/24 17:55:52
+dnl CF_BUILD_CC version: 6 updated: 2006/10/14 15:23:15
dnl -----------
dnl If we're cross-compiling, allow the user to override the tools and their
dnl options. The configure script is oriented toward identifying the host
@@ -1007,7 +1124,7 @@ if test "$cross_compiling" = yes ; then
AC_ARG_WITH(build-cpp,
[ --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)],
[BUILD_CPP="$withval"],
- [BUILD_CPP='$(BUILD_CC) -E'])
+ [BUILD_CPP='${BUILD_CC} -E'])
AC_MSG_RESULT($BUILD_CPP)
AC_MSG_CHECKING(for native build C flags)
@@ -1030,7 +1147,7 @@ if test "$cross_compiling" = yes ; then
AC_MSG_CHECKING(for native build linker-libraries)
AC_ARG_WITH(build-libs,
- [ --with-build-libs=XXX the build libraries ($(BUILD_LIBS)],
+ [ --with-build-libs=XXX the build libraries (${BUILD_LIBS})],
[BUILD_LIBS="$withval"])
AC_MSG_RESULT($BUILD_LIBS)
@@ -1038,20 +1155,20 @@ if test "$cross_compiling" = yes ; then
BUILD_EXEEXT=
BUILD_OBJEXT=o
- : ${BUILD_CC:='$(CC)'}
+ : ${BUILD_CC:='${CC}'}
- if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '$(CC)' ) ; then
+ if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
AC_MSG_ERROR([Cross-build requires two compilers.
Use --with-build-cc to specify the native compiler.])
fi
else
- : ${BUILD_CC:='$(CC)'}
- : ${BUILD_CPP:='$(CPP)'}
- : ${BUILD_CFLAGS:='$(CFLAGS)'}
- : ${BUILD_CPPFLAGS:='$(CPPFLAGS)'}
- : ${BUILD_LDFLAGS:='$(LDFLAGS)'}
- : ${BUILD_LIBS:='$(LIBS)'}
+ : ${BUILD_CC:='${CC}'}
+ : ${BUILD_CPP:='${CPP}'}
+ : ${BUILD_CFLAGS:='${CFLAGS}'}
+ : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
+ : ${BUILD_LDFLAGS:='${LDFLAGS}'}
+ : ${BUILD_LIBS:='${LIBS}'}
: ${BUILD_EXEEXT:='$x'}
: ${BUILD_OBJEXT:='o'}
fi
@@ -1192,7 +1309,12 @@ PCREDIR_LIBS=
PCREDIR_CPPFLAGS=
case .$cf_pcre_home in #(vi
.no) #(vi
- # setup to compile the bundled PCRE:
+ # setup to compile the bundled PCRE. "version.sh" is not provided by
+ # upstream; the user of this macro must provide it.
+# . $srcdir/pcre/version.sh
+ AC_SUBST(PCRE_MAJOR)
+ AC_SUBST(PCRE_MINOR)
+ AC_SUBST(PCRE_DATE)
AC_SUBST(PCRE_DEFINES)
;;
.yes) #(vi
@@ -1253,7 +1375,7 @@ AC_MSG_RESULT($cf_result)
test $cf_result = yes && AC_DEFINE_UNQUOTED(DECL_$2)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_CHECK_CACHE version: 10 updated: 2004/05/23 13:03:31
+dnl CF_CHECK_CACHE version: 11 updated: 2008/03/23 14:45:59
dnl --------------
dnl Check if we're accidentally using a cache from a different machine.
dnl Derive the system name, as a check for reusing the autoconf cache.
@@ -1284,7 +1406,7 @@ test -n "$cf_cv_system_name" && AC_MSG_R
if test ".$system_name" != ".$cf_cv_system_name" ; then
AC_MSG_RESULT(Cached system name ($system_name) does not agree with actual ($cf_cv_system_name))
- AC_ERROR("Please remove config.cache and try again.")
+ AC_MSG_ERROR("Please remove config.cache and try again.")
fi
])dnl
dnl ---------------------------------------------------------------------------
@@ -1495,7 +1617,7 @@ else
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_COREFILE version: 2 updated: 1997/08/28 23:57:55
+dnl CF_COREFILE version: 3 updated: 2007/04/28 09:15:55
dnl -----------
dnl Check if the application can dump core (for debugging).
AC_DEFUN([CF_COREFILE],
@@ -1520,13 +1642,13 @@ int main()
/* Nicholas d'Alterio (nagd@ic.ac.uk) reports that the check for ability to
* core dump causes the machine to crash - reason unknown (gcc 2.7.2)
*/
- exit(1);
+ ${cf_cv_main_return-return}(1);
#else
int pid, status;
if (found())
unlink("core");
if (found())
- exit(1);
+ ${cf_cv_main_return-return}(1);
if ((pid = fork()) != 0) {
while (wait(&status) <= 0)
;
@@ -1535,9 +1657,9 @@ int main()
}
if (found()) {
unlink("core");
- exit(0);
+ ${cf_cv_main_return-return}(0);
}
- exit(1);
+ ${cf_cv_main_return-return}(1);
#endif
}],
[cf_cv_corefile=yes],
@@ -1635,7 +1757,7 @@ fi
AC_CHECK_HEADERS($cf_cv_ncurses_header)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_CURSES_LIBS version: 24 updated: 2006/02/04 19:44:43
+dnl CF_CURSES_LIBS version: 27 updated: 2008/03/23 14:48:54
dnl --------------
dnl Look for the curses libraries. Older curses implementations may require
dnl termcap/termlib to be linked as well. Call CF_CURSES_CPPFLAGS first.
@@ -1644,92 +1766,94 @@ AC_DEFUN([CF_CURSES_LIBS],[
AC_REQUIRE([CF_CURSES_CPPFLAGS])dnl
AC_MSG_CHECKING(if we have identified curses libraries)
AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
- [initscr(); tgoto("?", 0,0)],
- cf_result=yes,
- cf_result=no)
+ [initscr(); tgoto("?", 0,0)],
+ cf_result=yes,
+ cf_result=no)
AC_MSG_RESULT($cf_result)
if test "$cf_result" = no ; then
case $host_os in #(vi
freebsd*) #(vi
- AC_CHECK_LIB(mytinfo,tgoto,[LIBS="-lmytinfo $LIBS"])
- ;;
+ AC_CHECK_LIB(mytinfo,tgoto,[LIBS="-lmytinfo $LIBS"])
+ ;;
hpux10.*) #(vi
- AC_CHECK_LIB(cur_colr,initscr,[
- LIBS="-lcur_colr $LIBS"
- ac_cv_func_initscr=yes
- ],[
- AC_CHECK_LIB(Hcurses,initscr,[
- # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
- LIBS="-lHcurses $LIBS"
- CPPFLAGS="-D__HP_CURSES -D_HP_CURSES $CPPFLAGS"
- ac_cv_func_initscr=yes
- ])])
- ;;
+ AC_CHECK_LIB(cur_colr,initscr,[
+ LIBS="-lcur_colr $LIBS"
+ ac_cv_func_initscr=yes
+ ],[
+ AC_CHECK_LIB(Hcurses,initscr,[
+ # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
+ LIBS="-lHcurses $LIBS"
+ CPPFLAGS="-D__HP_CURSES -D_HP_CURSES $CPPFLAGS"
+ ac_cv_func_initscr=yes
+ ])])
+ ;;
linux*) # Suse Linux does not follow /usr/lib convention
- LIBS="$LIBS -L/lib"
- ;;
+ CF_ADD_LIBDIR(/lib)
+ ;;
sunos3*|sunos4*)
- test -d /usr/5lib && \
- LIBS="$LIBS -L/usr/5lib -lcurses -ltermcap"
- ac_cv_func_initscr=yes
- ;;
+ if test -d /usr/5lib ; then
+ CF_ADD_LIBDIR(/usr/5lib)
+ LIBS="$LIBS -lcurses -ltermcap"
+ fi
+ ac_cv_func_initscr=yes
+ ;;
esac
if test ".$ac_cv_func_initscr" != .yes ; then
- cf_save_LIBS="$LIBS"
- cf_term_lib=""
- cf_curs_lib=""
-
- if test ".${cf_cv_ncurses_version-no}" != .no
- then
- cf_check_list="ncurses curses cursesX"
- else
- cf_check_list="cursesX curses ncurses"
- fi
+ cf_save_LIBS="$LIBS"
+ cf_term_lib=""
+ cf_curs_lib=""
+
+ if test ".${cf_cv_ncurses_version-no}" != .no
+ then
+ cf_check_list="ncurses curses cursesX"
+ else
+ cf_check_list="cursesX curses ncurses"
+ fi
- # Check for library containing tgoto. Do this before curses library
- # because it may be needed to link the test-case for initscr.
- AC_CHECK_FUNC(tgoto,[cf_term_lib=predefined],[
- for cf_term_lib in $cf_check_list termcap termlib unknown
- do
- AC_CHECK_LIB($cf_term_lib,tgoto,[break])
- done
- ])
+ # Check for library containing tgoto. Do this before curses library
+ # because it may be needed to link the test-case for initscr.
+ AC_CHECK_FUNC(tgoto,[cf_term_lib=predefined],[
+ for cf_term_lib in $cf_check_list termcap termlib unknown
+ do
+ AC_CHECK_LIB($cf_term_lib,tgoto,[break])
+ done
+ ])
- # Check for library containing initscr
- test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
- for cf_curs_lib in $cf_check_list xcurses jcurses unknown
- do
- AC_CHECK_LIB($cf_curs_lib,initscr,[break])
- done
- test $cf_curs_lib = unknown && AC_ERROR(no curses library found)
+ # Check for library containing initscr
+ test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
+ for cf_curs_lib in $cf_check_list xcurses jcurses unknown
+ do
+ AC_CHECK_LIB($cf_curs_lib,initscr,[break])
+ done
+ test $cf_curs_lib = unknown && AC_MSG_ERROR(no curses library found)
- LIBS="-l$cf_curs_lib $cf_save_LIBS"
- if test "$cf_term_lib" = unknown ; then
- AC_MSG_CHECKING(if we can link with $cf_curs_lib library)
- AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
- [initscr()],
- [cf_result=yes],
- [cf_result=no])
- AC_MSG_RESULT($cf_result)
- test $cf_result = no && AC_ERROR(Cannot link curses library)
- elif test "$cf_curs_lib" = "$cf_term_lib" ; then
- :
- elif test "$cf_term_lib" != predefined ; then
- AC_MSG_CHECKING(if we need both $cf_curs_lib and $cf_term_lib libraries)
- AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
- [initscr(); tgoto((char *)0, 0, 0);],
- [cf_result=no],
- [
- LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
- AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
- [initscr()],
- [cf_result=yes],
- [cf_result=error])
- ])
- AC_MSG_RESULT($cf_result)
- fi
+ LIBS="-l$cf_curs_lib $cf_save_LIBS"
+ if test "$cf_term_lib" = unknown ; then
+ AC_MSG_CHECKING(if we can link with $cf_curs_lib library)
+ AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
+ [initscr()],
+ [cf_result=yes],
+ [cf_result=no])
+ AC_MSG_RESULT($cf_result)
+ test $cf_result = no && AC_MSG_ERROR(Cannot link curses library)
+ elif test "$cf_curs_lib" = "$cf_term_lib" ; then
+ :
+ elif test "$cf_term_lib" != predefined ; then
+ AC_MSG_CHECKING(if we need both $cf_curs_lib and $cf_term_lib libraries)
+ AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
+ [initscr(); tgoto((char *)0, 0, 0);],
+ [cf_result=no],
+ [
+ LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
+ AC_TRY_LINK([#include <${cf_cv_ncurses_header-curses.h}>],
+ [initscr()],
+ [cf_result=yes],
+ [cf_result=error])
+ ])
+ AC_MSG_RESULT($cf_result)
+ fi
fi
fi
@@ -2004,7 +2128,7 @@ AC_DEFUN([CF_ERRNO],
CF_CHECK_ERRNO(errno)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_FIND_HEADER version: 1 updated: 2006/01/22 20:26:00
+dnl CF_FIND_HEADER version: 2 updated: 2007/07/29 11:32:00
dnl --------------
dnl Find a header file, searching for it if it is not already in the include
dnl path.
@@ -2021,7 +2145,7 @@ CF_HEADER_PATH(cf_search,$2)
for cf_incdir in $cf_search
do
if test -f $cf_incdir/$1 ; then
- CF_ADD_CFLAGS(-I$cf_incdir)
+ CF_ADD_INCDIR($cf_incdir)
CF_VERBOSE(... found in $cf_incdir)
cf_find_header=yes
break
@@ -2036,7 +2160,7 @@ $4])
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_FIND_IPV6_LIBS version: 6 updated: 2002/11/09 09:05:18
+dnl CF_FIND_IPV6_LIBS version: 7 updated: 2007/07/29 13:35:20
dnl -----------------
dnl Based on the IPV6 stack type, look for the corresponding library.
AC_DEFUN([CF_FIND_IPV6_LIBS],[
@@ -2092,7 +2216,7 @@ if test "$cf_ipv6lib" != "none"; then
cf_header=$cf_incdir/netinet/ip6.h
if test -f $cf_header
then
- CPPFLAGS="$CPPFLAGS -I$cf_incdir"
+ CF_ADD_INCDIR($cf_incdir)
test -n "$verbose" && echo " ... found $cf_header" 1>&AC_FD_MSG
break
fi
@@ -2197,7 +2321,7 @@ done
])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_FIND_LIBRARY version: 8 updated: 2004/11/23 20:14:58
+dnl CF_FIND_LIBRARY version: 9 updated: 2008/03/23 14:48:54
dnl ---------------
dnl Look for a non-standard library, given parameters for AC_TRY_LINK. We
dnl prefer a standard location, and use -L options only if we do not find the
@@ -2242,47 +2366,120 @@ AC_DEFUN([CF_FIND_LIBRARY],
eval 'cf_found_library=[$]cf_cv_have_lib_'$1
ifelse($6,,[
if test $cf_found_library = no ; then
- AC_ERROR(Cannot link $1 library)
+ AC_MSG_ERROR(Cannot link $1 library)
fi
])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_FIND_LINKAGE version: 1 updated: 2006/01/22 20:26:00
+dnl CF_FIND_LINKAGE version: 12 updated: 2007/07/29 20:13:53
dnl ---------------
-dnl Find a library, searching for it if it is not already in the library path.
-dnl
-dnl $1 = headers for library entrypoint
-dnl $2 = code fragment for library entrypoint
-dnl $3 = the library name without the "-l" option or ".so" suffix.
-dnl $4 = action to perform if successful
-dnl $5 = action to perform if not successful
+dnl Find a library (specifically the linkage used in the code fragment),
+dnl searching for it if it is not already in the library path.
+dnl See also CF_ADD_SEARCHPATH.
+dnl
+dnl Parameters (4-on are optional):
+dnl $1 = headers for library entrypoint
+dnl $2 = code fragment for library entrypoint
+dnl $3 = the library name without the "-l" option or ".so" suffix.
+dnl $4 = action to perform if successful (default: update CPPFLAGS, etc)
+dnl $5 = action to perform if not successful
+dnl $6 = module name, if not the same as the library name
+dnl $7 = extra libraries
+dnl
+dnl Sets these variables:
+dnl $cf_cv_find_linkage_$3 - yes/no according to whether linkage is found
+dnl $cf_cv_header_path_$3 - include-directory if needed
+dnl $cf_cv_library_path_$3 - library-directory if needed
+dnl $cf_cv_library_file_$3 - library-file if needed, e.g., -l$3
AC_DEFUN([CF_FIND_LINKAGE],[
+
+# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
+# will be set on completion of the AC_TRY_LINK below.
+cf_cv_header_path_$3=
+cf_cv_library_path_$3=
+
+CF_MSG_LOG([Starting [FIND_LINKAGE]($3,$6)])
+
AC_TRY_LINK([$1],[$2],
- cf_find_linkage=yes,[
- cf_find_linkage=no
-CF_LIBRARY_PATH(cf_search,$3)
-cf_save_LIBS="$LIBS"
-cf_save_LDFLAGS="$LDFLAGS"
-for cf_libdir in $cf_search
-do
- if test -d $cf_libdir ; then
- LIBS="-l$3 $cf_save_LIBS"
- LDFLAGS="$cf_save_LDFLAGS -L$cf_libdir"
- AC_TRY_LINK([$1],[$2],[
- CF_VERBOSE(... found in $cf_libdir)
- cf_find_linkage=yes
- break],[
- LIBS="$cf_save_LIBS"
- LDFLAGS="$cf_save_LDFLAGS"])
- fi
- CF_VERBOSE(... tested $cf_libdir)
-done
-])
+ cf_cv_find_linkage_$3=yes,[
+ cf_cv_find_linkage_$3=no
+
+ CF_MSG_LOG([Searching for headers in [FIND_LINKAGE]($3,$6)])
+
+ cf_save_CPPFLAGS="$CPPFLAGS"
+ cf_test_CPPFLAGS="$CPPFLAGS"
+
+ CF_HEADER_PATH(cf_search,ifelse([$6],,[$3],[$6]))
+ for cf_cv_header_path_$3 in $cf_search
+ do
+ if test -d $cf_cv_header_path_$3 ; then
+ CF_VERBOSE(... testing $cf_cv_header_path_$3)
+ CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_$3"
+ AC_TRY_COMPILE([$1],[$2],[
+ CF_VERBOSE(... found $3 headers in $cf_cv_header_path_$3)
+ cf_cv_find_linkage_$3=maybe
+ cf_test_CPPFLAGS="$CPPFLAGS"
+ break],[
+ CPPFLAGS="$cf_save_CPPFLAGS"
+ ])
+ fi
+ done
+
+ if test "$cf_cv_find_linkage_$3" = maybe ; then
-if test "$cf_find_linkage" = yes ; then
-ifelse([$4],,:,[$4])
-ifelse([$5],,,[else
-$5])
+ CF_MSG_LOG([Searching for $3 library in [FIND_LINKAGE]($3,$6)])
+
+ cf_save_LIBS="$LIBS"
+ cf_save_LDFLAGS="$LDFLAGS"
+
+ ifelse([$6],,,[
+ CPPFLAGS="$cf_test_CPPFLAGS"
+ LIBS="-l$3 $7 $cf_save_LIBS"
+ AC_TRY_LINK([$1],[$2],[
+ CF_VERBOSE(... found $3 library in system)
+ cf_cv_find_linkage_$3=yes])
+ CPPFLAGS="$cf_save_CPPFLAGS"
+ LIBS="$cf_save_LIBS"
+ ])
+
+ if test "$cf_cv_find_linkage_$3" != yes ; then
+ CF_LIBRARY_PATH(cf_search,$3)
+ for cf_cv_library_path_$3 in $cf_search
+ do
+ if test -d $cf_cv_library_path_$3 ; then
+ CF_VERBOSE(... testing $cf_cv_library_path_$3)
+ CPPFLAGS="$cf_test_CPPFLAGS"
+ LIBS="-l$3 $7 $cf_save_LIBS"
+ LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_$3"
+ AC_TRY_LINK([$1],[$2],[
+ CF_VERBOSE(... found $3 library in $cf_cv_library_path_$3)
+ cf_cv_find_linkage_$3=yes
+ cf_cv_library_file_$3="-l$3"
+ break],[
+ CPPFLAGS="$cf_save_CPPFLAGS"
+ LIBS="$cf_save_LIBS"
+ LDFLAGS="$cf_save_LDFLAGS"
+ ])
+ fi
+ done
+ LIBS="$cf_save_LIBS"
+ CPPFLAGS="$cf_save_CPPFLAGS"
+ LDFLAGS="$cf_save_LDFLAGS"
+ fi
+
+ else
+ cf_cv_find_linkage_$3=no
+ fi
+ ],$7)
+
+if test "$cf_cv_find_linkage_$3" = yes ; then
+ifelse([$4],,[
+ CF_ADD_INCDIR($cf_cv_header_path_$3)
+ CF_ADD_LIBDIR($cf_cv_library_path_$3)
+ LIBS="-l$3 $LIBS"
+],[$4])
+else
+ifelse([$5],,AC_MSG_WARN(Cannot find $3 library),[$5])
fi
])dnl
dnl ---------------------------------------------------------------------------
@@ -2323,7 +2520,7 @@ linux*|gnu*)
esac
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_FUNC_FORK version: 2 updated: 1997/08/28 23:57:55
+dnl CF_FUNC_FORK version: 3 updated: 2007/04/28 09:15:55
dnl ------------
dnl Check if 'fork()' is available, and working. Amiga (and possibly other
dnl machines) have a non-working 'fork()' entrypoint.
@@ -2334,8 +2531,8 @@ AC_TRY_RUN([
int main()
{
if (fork() < 0)
- exit(1);
- exit(0);
+ ${cf_cv_main_return-return}(1);
+ ${cf_cv_main_return-return}(0);
}], [cf_cv_func_fork=yes],
[cf_cv_func_fork=no],
[cf_cv_func_fork=unknown])
@@ -2344,7 +2541,7 @@ AC_MSG_RESULT($cf_cv_func_fork)
test $cf_cv_func_fork = yes && AC_DEFINE(HAVE_FORK)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_FUNC_GETADDRINFO version: 5 updated: 2000/09/28 06:18:08
+dnl CF_FUNC_GETADDRINFO version: 6 updated: 2007/04/28 09:15:55
dnl -------------------
dnl Look for a working version of getaddrinfo(), for IPV6 support.
AC_DEFUN([CF_FUNC_GETADDRINFO],[
@@ -2417,12 +2614,12 @@ int main()
if (aitop)
freeaddrinfo(aitop);
- exit(0);
+ ${cf_cv_main_return-return}(0);
bad:
if (aitop)
freeaddrinfo(aitop);
- exit(1);
+ ${cf_cv_main_return-return}(1);
}
],
[cf_cv_getaddrinfo=yes],
@@ -2435,7 +2632,7 @@ if test "$cf_cv_getaddrinfo" = yes ; the
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_FUNC_MEMMOVE version: 5 updated: 2000/08/12 23:18:52
+dnl CF_FUNC_MEMMOVE version: 7 updated: 2006/12/16 12:33:30
dnl ---------------
dnl Check for memmove, or a bcopy that can handle overlapping copy. If neither
dnl is found, add our own version of memmove to the list of objects.
@@ -2451,7 +2648,7 @@ int main() {
bcopy(data, temp, sizeof(data));
bcopy(temp+10, temp, 15);
bcopy(temp+5, temp+15, 10);
- exit (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
+ ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
}
],
[cf_cv_good_bcopy=yes],
@@ -2466,7 +2663,7 @@ int main() {
fi
])])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_FUNC_SYSTEM version: 3 updated: 1997/10/22 22:02:10
+dnl CF_FUNC_SYSTEM version: 4 updated: 2007/04/28 09:15:55
dnl --------------
dnl Check if the 'system()' function returns a usable status, or if not, try
dnl to use the status returned by a SIGCHLD.
@@ -2492,7 +2689,7 @@ RETSIGTYPE signal_handler (int sig)
int system_status;
wait (&wait_status);
system_status = WEXITSTATUS(wait_status); /* should be nonzero */
- exit(system_status != 23);
+ ${cf_cv_main_return-return}(system_status != 23);
}
int main()
@@ -2502,12 +2699,12 @@ int main()
*/
signal (SIGCHLD, signal_handler);
system("exit 23");
- exit(1);
+ ${cf_cv_main_return-return}(1);
}
],
[cf_cv_system_status=no],
[AC_TRY_RUN(
- [int main() { exit(system("exit 23") != (23 << 8)); }],
+ [int main() { ${cf_cv_main_return-return}(system("exit 23") != (23 << 8)); }],
[cf_cv_system_status=yes],
[cf_cv_system_status=unknown],
[cf_cv_system_status=unknown])],
@@ -2531,7 +2728,7 @@ if test "$GCC" = yes ; then
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_GCC_WARNINGS version: 20 updated: 2005/08/06 18:37:29
+dnl CF_GCC_WARNINGS version: 22 updated: 2007/07/29 09:55:12
dnl ---------------
dnl Check if the compiler supports useful warning options. There's a few that
dnl we don't use, simply because they're too noisy:
@@ -2556,7 +2753,7 @@ AC_REQUIRE([CF_GCC_VERSION])
CF_INTEL_COMPILER(GCC,INTEL_COMPILER,CFLAGS)
cat > conftest.$ac_ext <cf_makeflags.tmp </dev/null`
+ cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[[ ]]*$,,'`
case "$cf_result" in
.*k)
cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
@@ -2876,12 +3073,12 @@ CF_EOF
AC_SUBST(cf_cv_makeflags)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_MSG_LOG version: 3 updated: 1997/09/07 14:05:52
+dnl CF_MSG_LOG version: 4 updated: 2007/07/29 09:55:12
dnl ----------
dnl Write a debug message to config.log, along with the line number in the
dnl configure script.
AC_DEFUN([CF_MSG_LOG],[
-echo "(line __oline__) testing $* ..." 1>&AC_FD_CC
+echo "${as_me-configure}:__oline__: testing $* ..." 1>&AC_FD_CC
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_NCURSES_BROKEN version: 6 updated: 1998/04/27 20:32:34
@@ -2913,7 +3110,7 @@ fi
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_NCURSES_CC_CHECK version: 3 updated: 2003/01/12 18:59:28
+dnl CF_NCURSES_CC_CHECK version: 4 updated: 2007/07/29 10:39:05
dnl -------------------
dnl Check if we can compile with ncurses' header file
dnl $1 is the cache variable to set
@@ -2942,11 +3139,11 @@ printf("old\n");
#endif
#endif
]
- ,[$1=$cf_header]
+ ,[$1=$2]
,[$1=no])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_NCURSES_CPPFLAGS version: 18 updated: 2005/12/31 13:26:39
+dnl CF_NCURSES_CPPFLAGS version: 19 updated: 2007/07/29 13:35:20
dnl -------------------
dnl Look for the SVr4 curses clone 'ncurses' in the standard places, adjusting
dnl the CPPFLAGS variable so we can include its header.
@@ -2974,8 +3171,9 @@ AC_PROVIDE([CF_CURSES_CPPFLAGS])dnl
cf_ncuhdr_root=ifelse($1,,ncurses,$1)
test -n "$cf_cv_curses_dir" && \
-test "$cf_cv_curses_dir" != "no" && \
-CPPFLAGS="-I$cf_cv_curses_dir/include -I$cf_cv_curses_dir/include/$cf_ncuhdr_root $CPPFLAGS"
+test "$cf_cv_curses_dir" != "no" && { \
+ CF_ADD_INCDIR($cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root)
+}
AC_CACHE_CHECK(for $cf_ncuhdr_root header in include-path, cf_cv_ncurses_h,[
cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
@@ -2996,7 +3194,7 @@ AC_DEFINE(NCURSES)
CF_NCURSES_VERSION
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_NCURSES_HEADER version: 1 updated: 2005/12/31 13:28:37
+dnl CF_NCURSES_HEADER version: 2 updated: 2008/03/23 14:48:54
dnl -----------------
dnl Find a "curses" header file, e.g,. "curses.h", or one of the more common
dnl variations of ncurses' installs.
@@ -3031,7 +3229,7 @@ AC_CACHE_CHECK(for $cf_ncuhdr_root inclu
CPPFLAGS="$cf_save2_CPPFLAGS"
test "$cf_cv_ncurses_h2" != no && break
done
- test "$cf_cv_ncurses_h2" = no && AC_ERROR(not found)
+ test "$cf_cv_ncurses_h2" = no && AC_MSG_ERROR(not found)
])
CF_DIRNAME(cf_1st_incdir,$cf_cv_ncurses_h2)
@@ -3062,7 +3260,7 @@ esac
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_NCURSES_LIBS version: 12 updated: 2004/04/27 16:26:05
+dnl CF_NCURSES_LIBS version: 13 updated: 2007/07/29 10:29:20
dnl ---------------
dnl Look for the ncurses library. This is a little complicated on Linux,
dnl because it may be linked with the gpm (general purpose mouse) library.
@@ -3102,7 +3300,8 @@ LIBS="$cf_ncurses_LIBS $LIBS"
if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
then
- LIBS="-L$cf_cv_curses_dir/lib -l$cf_nculib_root $LIBS"
+ CF_ADD_LIBDIR($cf_cv_curses_dir/lib)
+ LIBS="-l$cf_nculib_root $LIBS"
else
CF_FIND_LIBRARY($cf_nculib_root,$cf_nculib_root,
[#include <${cf_cv_ncurses_header-curses.h}>],
@@ -3130,7 +3329,7 @@ CF_UPPER(cf_nculib_ROOT,HAVE_LIB$cf_ncul
AC_DEFINE_UNQUOTED($cf_nculib_ROOT)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_NCURSES_VERSION version: 11 updated: 2003/11/06 19:59:57
+dnl CF_NCURSES_VERSION version: 12 updated: 2007/04/28 09:15:55
dnl ------------------
dnl Check for the version of ncurses, to aid in reporting bugs, etc.
dnl Call CF_CURSES_CPPFLAGS first, or CF_NCURSES_CPPFLAGS. We don't use
@@ -3161,7 +3360,7 @@ int main()
make an error
# endif
#endif
- exit(0);
+ ${cf_cv_main_return-return}(0);
}],[
cf_cv_ncurses_version=`cat $cf_tempfile`],,[
@@ -3235,6 +3434,35 @@ LIBS="$LIBS $cf_cv_netlibs"
test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&AC_FD_MSG
])dnl
dnl ---------------------------------------------------------------------------
+dnl CF_NO_LEAKS_OPTION version: 4 updated: 2006/12/16 14:24:05
+dnl ------------------
+dnl see CF_WITH_NO_LEAKS
+AC_DEFUN([CF_NO_LEAKS_OPTION],[
+AC_MSG_CHECKING(if you want to use $1 for testing)
+AC_ARG_WITH($1,
+ [$2],
+ [AC_DEFINE($3)ifelse([$4],,[
+ $4
+])
+ : ${with_cflags:=-g}
+ : ${with_no_leaks:=yes}
+ with_$1=yes],
+ [with_$1=])
+AC_MSG_RESULT(${with_$1:-no})
+
+case .$with_cflags in #(vi
+.*-g*)
+ case .$CFLAGS in #(vi
+ .*-g*) #(vi
+ ;;
+ *)
+ CF_ADD_CFLAGS([-g])
+ ;;
+ esac
+ ;;
+esac
+])dnl
+dnl ---------------------------------------------------------------------------
dnl CF_OUR_MESSAGES version: 7 updated: 2004/09/12 19:45:55
dnl ---------------
dnl Check if we use the messages included with this program
@@ -3365,7 +3593,7 @@ fi
AC_MSG_RESULT($DEFAULT_MAILER)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_PATH_SYNTAX version: 11 updated: 2006/09/02 08:55:46
+dnl CF_PATH_SYNTAX version: 12 updated: 2008/03/23 14:45:59
dnl --------------
dnl Check the argument to see that it looks like a pathname. Rewrite it if it
dnl begins with one of the prefix/exec_prefix variables, and then again if the
@@ -3397,16 +3625,28 @@ case ".[$]$1" in #(vi
$1=`echo [$]$1 | sed -e s%NONE%$cf_path_syntax%`
;;
*)
- ifelse($2,,[AC_ERROR([expected a pathname, not \"[$]$1\"])],$2)
+ ifelse($2,,[AC_MSG_ERROR([expected a pathname, not \"[$]$1\"])],$2)
;;
esac
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_PDCURSES_X11 version: 6 updated: 2002/10/27 18:21:42
+dnl CF_PDCURSES_X11 version: 8 updated: 2008/03/23 14:48:54
dnl ---------------
dnl Configure for PDCurses' X11 library
AC_DEFUN([CF_PDCURSES_X11],[
AC_REQUIRE([CF_X_ATHENA])
+
+AC_PATH_PROGS(XCURSES_CONFIG,xcurses-config,none)
+
+if test "$XCURSES_CONFIG" != none ; then
+
+CPPFLAGS="`$XCURSES_CONFIG --cflags` $CPPFLAGS"
+LIBS="`$XCURSES_CONFIG --libs` $LIBS"
+
+cf_cv_lib_XCurses=yes
+
+else
+
LDFLAGS="$LDFLAGS $X_LIBS"
CF_CHECK_CFLAGS($X_CFLAGS)
AC_CHECK_LIB(X11,XOpenDisplay,
@@ -3421,12 +3661,15 @@ char *XCursesProgramName = "test";
[cf_cv_lib_XCurses=yes],
[cf_cv_lib_XCurses=no])
])
+
+fi
+
if test $cf_cv_lib_XCurses = yes ; then
AC_DEFINE(UNIX)
AC_DEFINE(XCURSES)
AC_DEFINE(HAVE_XCURSES)
else
- AC_ERROR(Cannot link with XCurses)
+ AC_MSG_ERROR(Cannot link with XCurses)
fi
])dnl
dnl ---------------------------------------------------------------------------
@@ -3779,7 +4022,7 @@ AC_MSG_RESULT($cf_cv_sig_args)
AC_DEFINE_UNQUOTED(SIG_ARGS,$cf_cv_sig_args)
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_SIG_CONST version: 2 updated: 1997/08/28 23:57:55
+dnl CF_SIG_CONST version: 3 updated: 2007/04/28 09:15:55
dnl ------------
dnl Check for systems where the special signal constants aren't prototyped
dnl (there's a lot of them, and the compiler can generate a lot of warning
@@ -3812,9 +4055,9 @@ int main()
#define SIG_IGN NEW_IGN
#define SIG_ERR NEW_ERR
|| NEW_DFL != SIG_DFL)
- exit(1);
+ ${cf_cv_main_return-return}(1);
signal(SIGINT, SIG_DFL);
- exit(0);
+ ${cf_cv_main_return-return}(0);
}],
[cf_cv_sig_const=yes],
[cf_cv_sig_const=no],
@@ -3895,69 +4138,53 @@ if test "$cf_cv_sizechange" != no ; then
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_SOCKS version: 3 updated: 2001/01/01 09:54:40
+dnl CF_SOCKS version: 6 updated: 2008/03/23 14:48:54
dnl --------
dnl Check for socks library
dnl $1 = the [optional] directory in which the library may be found
AC_DEFUN([CF_SOCKS],[
-case "$1" in #(vi
-no|yes) #(vi
- ;;
-*)
- if test -d $1 ; then
- if test -d $1/include ; then
- CPPFLAGS="$CPPFLAGS -I$1/include"
- LIBS="$LIBS -L$1/lib"
- else
- LIBS="$LIBS -L$1"
- test -d $1/../include && CPPFLAGS="$CPPFLAGS -I$1/../include"
- fi
+ CF_ADD_OPTIONAL_PATH($1, [socks library])
+ CF_FIND_LINKAGE([
+#include
+],[
+ Raccept((char *)0)
+],
+ socks,
+ cf_cv_have_socks=yes,
+ cf_cv_have_socks=no)
+
+ if test "$cf_cv_have_socks" = yes ; then
+ AC_DEFINE(SOCKS)
+
+ AC_DEFINE(accept,Raccept)
+ AC_DEFINE(bind,Rbind)
+ AC_DEFINE(connect,Rconnect)
+ AC_DEFINE(getpeername,Rgetpeername)
+ AC_DEFINE(getsockname,Rgetsockname)
+ AC_DEFINE(listen,Rlisten)
+ AC_DEFINE(recvfrom,Rrecvfrom)
+ AC_DEFINE(select,Rselect)
+
+ CF_ADD_INCDIR($cf_cv_header_path_socks)
+ CF_ADD_LIBDIR($cf_cv_library_path_socks)
+ LIBS="$LIBS -lsocks"
else
- AC_MSG_WARN(expected a directory: $1)
+ AC_MSG_ERROR(cannot link with socks library)
fi
- ;;
-esac
-LIBS="$LIBS -lsocks"
-AC_DEFINE(SOCKS)
-AC_DEFINE(accept,Raccept)
-AC_DEFINE(bind,Rbind)
-AC_DEFINE(connect,Rconnect)
-AC_DEFINE(getpeername,Rgetpeername)
-AC_DEFINE(getsockname,Rgetsockname)
-AC_DEFINE(listen,Rlisten)
-AC_DEFINE(recvfrom,Rrecvfrom)
-AC_DEFINE(select,Rselect)
-AC_TRY_LINK([
-#include ],[
- accept((char *)0)],,
- [AC_ERROR(Cannot link with socks library)])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_SOCKS5 version: 7 updated: 2001/01/01 09:54:40
+dnl CF_SOCKS5 version: 10 updated: 2008/03/23 14:48:54
dnl ---------
dnl Check for socks5 configuration
dnl $1 = the [optional] directory in which the library may be found
AC_DEFUN([CF_SOCKS5],[
-case "$1" in #(vi
-no|yes) #(vi
- ;;
-*)
- if test -d $1 ; then
- if test -d $1/include ; then
- CPPFLAGS="$CPPFLAGS -I$1/include"
- LIBS="$LIBS -L$1/lib"
- else
- LIBS="$LIBS -L$1"
- test -d $1/../include && CPPFLAGS="$CPPFLAGS -I$1/../include"
- fi
- else
- AC_MSG_WARN(expected a directory: $1)
- fi
- ;;
-esac
+ CF_ADD_OPTIONAL_PATH($1, [socks5 library])
+
LIBS="$LIBS -lsocks5"
+
AC_DEFINE(USE_SOCKS5)
AC_DEFINE(SOCKS)
+
AC_MSG_CHECKING(if the socks library uses socks4 prefix)
cf_use_socks4=error
AC_TRY_LINK([
@@ -3968,8 +4195,9 @@ AC_TRY_LINK([
[AC_TRY_LINK([#include ],
[SOCKSinit((char *)0)],
[cf_use_socks4=no],
- [AC_ERROR(Cannot link with socks5 library)])])
+ [AC_MSG_ERROR(Cannot link with socks5 library)])])
AC_MSG_RESULT($cf_use_socks4)
+
if test "$cf_use_socks4" = "yes" ; then
AC_DEFINE(accept,Raccept)
AC_DEFINE(bind,Rbind)
@@ -3985,6 +4213,7 @@ else
AC_DEFINE(getsockname,SOCKSgetsockname)
AC_DEFINE(recvfrom,SOCKSrecvfrom)
fi
+
AC_MSG_CHECKING(if socks5p.h is available)
AC_TRY_COMPILE([
#define INCLUDE_PROTOTYPES
@@ -3993,6 +4222,7 @@ AC_TRY_COMPILE([
[cf_use_socks5p_h=yes],
[cf_use_socks5p_h=no])
AC_MSG_RESULT($cf_use_socks5p_h)
+
test "$cf_use_socks5p_h" = yes && AC_DEFINE(INCLUDE_PROTOTYPES)
])dnl
dnl ---------------------------------------------------------------------------
@@ -4040,7 +4270,7 @@ if test "$ac_cv_header_termios_h" = yes
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_SUBDIR_PATH version: 3 updated: 2002/12/29 18:30:46
+dnl CF_SUBDIR_PATH version: 5 updated: 2007/07/29 09:55:12
dnl --------------
dnl Construct a search-list for a nonstandard header/lib-file
dnl $1 = the variable to return as result
@@ -4049,59 +4279,11 @@ dnl $3 = the subdirectory, e.g., bin, in
AC_DEFUN([CF_SUBDIR_PATH],
[$1=""
-test -d [$]HOME && {
- test -n "$verbose" && echo " ... testing $3-directories under [$]HOME"
- test -d [$]HOME/$3 && $1="[$]$1 [$]HOME/$3"
- test -d [$]HOME/$3/$2 && $1="[$]$1 [$]HOME/$3/$2"
- test -d [$]HOME/$3/$2/$3 && $1="[$]$1 [$]HOME/$3/$2/$3"
-}
-
-# For other stuff under the home directory, it should be sufficient to put
-# a symbolic link for $HOME/$2 to the actual package location:
-test -d [$]HOME/$2 && {
- test -n "$verbose" && echo " ... testing $3-directories under [$]HOME/$2"
- test -d [$]HOME/$2/$3 && $1="[$]$1 [$]HOME/$2/$3"
- test -d [$]HOME/$2/$3/$2 && $1="[$]$1 [$]HOME/$2/$3/$2"
-}
-
-test "$prefix" != /usr/local && \
-test -d /usr/local && {
- test -n "$verbose" && echo " ... testing $3-directories under /usr/local"
- test -d /usr/local/$3 && $1="[$]$1 /usr/local/$3"
- test -d /usr/local/$3/$2 && $1="[$]$1 /usr/local/$3/$2"
- test -d /usr/local/$3/$2/$3 && $1="[$]$1 /usr/local/$3/$2/$3"
- test -d /usr/local/$2/$3 && $1="[$]$1 /usr/local/$2/$3"
- test -d /usr/local/$2/$3/$2 && $1="[$]$1 /usr/local/$2/$3/$2"
-}
-
-test "$prefix" != NONE && \
-test -d $prefix && {
- test -n "$verbose" && echo " ... testing $3-directories under $prefix"
- test -d $prefix/$3 && $1="[$]$1 $prefix/$3"
- test -d $prefix/$3/$2 && $1="[$]$1 $prefix/$3/$2"
- test -d $prefix/$3/$2/$3 && $1="[$]$1 $prefix/$3/$2/$3"
- test -d $prefix/$2/$3 && $1="[$]$1 $prefix/$2/$3"
- test -d $prefix/$2/$3/$2 && $1="[$]$1 $prefix/$2/$3/$2"
-}
-
-test "$prefix" != /opt && \
-test -d /opt && {
- test -n "$verbose" && echo " ... testing $3-directories under /opt"
- test -d /opt/$3 && $1="[$]$1 /opt/$3"
- test -d /opt/$3/$2 && $1="[$]$1 /opt/$3/$2"
- test -d /opt/$3/$2/$3 && $1="[$]$1 /opt/$3/$2/$3"
- test -d /opt/$2/$3 && $1="[$]$1 /opt/$2/$3"
- test -d /opt/$2/$3/$2 && $1="[$]$1 /opt/$2/$3/$2"
-}
-
-test "$prefix" != /usr && \
-test -d /usr && {
- test -n "$verbose" && echo " ... testing $3-directories under /usr"
- test -d /usr/$3 && $1="[$]$1 /usr/$3"
- test -d /usr/$3/$2 && $1="[$]$1 /usr/$3/$2"
- test -d /usr/$3/$2/$3 && $1="[$]$1 /usr/$3/$2/$3"
- test -d /usr/$2/$3 && $1="[$]$1 /usr/$2/$3"
-}
+CF_ADD_SUBDIR_PATH($1,$2,$3,/usr,$prefix)
+CF_ADD_SUBDIR_PATH($1,$2,$3,$prefix,NONE)
+CF_ADD_SUBDIR_PATH($1,$2,$3,/usr/local,$prefix)
+CF_ADD_SUBDIR_PATH($1,$2,$3,/opt,$prefix)
+CF_ADD_SUBDIR_PATH($1,$2,$3,[$]HOME,$prefix)
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_SUBST version: 4 updated: 2006/06/17 12:33:03
@@ -4192,9 +4374,11 @@ AC_MSG_RESULT($cf_cv_sys_select_timeval)
test $cf_cv_sys_select_timeval = yes && AC_DEFINE(NEED_TIMEVAL_FIX)
])
dnl ---------------------------------------------------------------------------
-dnl CF_TERMCAP_LIBS version: 10 updated: 2001/10/18 20:42:39
+dnl CF_TERMCAP_LIBS version: 11 updated: 2006/10/28 15:15:38
dnl ---------------
dnl Look for termcap libraries, or the equivalent in terminfo.
+dnl
+dnl The optional parameter may be "ncurses", "ncursesw".
AC_DEFUN([CF_TERMCAP_LIBS],
[
AC_CACHE_VAL(cf_cv_termlib,[
@@ -4208,8 +4392,7 @@ AC_TRY_LINK([],[char *x=(char*)tgoto("",
ifelse([$1],,,[
case "$1" in # (vi
ncurses*)
- CF_NCURSES_CPPFLAGS($1)
- CF_NCURSES_LIBS($1)
+ CF_NCURSES_CONFIG($1)
cf_cv_termlib=terminfo
;;
esac
@@ -4331,7 +4514,7 @@ ncursesw/term.h)
esac
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_TIOCGWINSZ version: 3 updated: 1997/11/29 01:04:53
+dnl CF_TIOCGWINSZ version: 4 updated: 2007/04/28 09:15:55
dnl -------------
dnl On some systems ioctl(fd, TIOCGWINSZ, &size) will always return {0,0} until
dnl ioctl(fd, TIOCSWINSZ, &size) is called to explicitly set the size of the
@@ -4359,16 +4542,16 @@ int main()
if (ioctl (0, TIOCGSIZE, &size) == 0
&& size.ts_lines > 0
&& size.ts_cols > 0)
- exit(0);
+ ${cf_cv_main_return-return}(0);
#else
struct winsize size;
if (ioctl(0, TIOCGWINSZ, &size) == 0
&& size.ws_row > 0
&& size.ws_col > 0)
- exit(0);
+ ${cf_cv_main_return-return}(0);
#endif
}
- exit(0); /* we cannot guarantee this is run interactively */
+ ${cf_cv_main_return-return}(0); /* we cannot guarantee this is run interactively */
}],
[cf_cv_use_tiocgwinsz=yes],
[cf_cv_use_tiocgwinsz=no],
@@ -4555,11 +4738,12 @@ AC_DEFUN([CF_UPPER],
$1=`echo "$2" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_VERBOSE version: 2 updated: 1997/09/05 10:45:14
+dnl CF_VERBOSE version: 3 updated: 2007/07/29 09:55:12
dnl ----------
dnl Use AC_VERBOSE w/o the warnings
AC_DEFUN([CF_VERBOSE],
[test -n "$verbose" && echo " $1" 1>&AC_FD_MSG
+CF_MSG_LOG([$1])
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_WAIT_HEADERS version: 2 updated: 1997/10/21 19:45:33
@@ -4605,24 +4789,22 @@ AC_ARG_WITH(curses-dir,
[cf_cv_curses_dir=no])
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_DBMALLOC version: 4 updated: 2004/02/28 05:49:27
+dnl CF_WITH_DBMALLOC version: 6 updated: 2006/12/16 14:24:05
dnl ----------------
dnl Configure-option for dbmalloc. The optional parameter is used to override
dnl the updating of $LIBS, e.g., to avoid conflict with subsequent tests.
AC_DEFUN([CF_WITH_DBMALLOC],[
-AC_MSG_CHECKING(if you want to link with dbmalloc for testing)
-AC_ARG_WITH(dbmalloc,
- [ --with-dbmalloc use Conor Cahill's dbmalloc library],
- [with_dbmalloc=$withval],
- [with_dbmalloc=no])
-AC_MSG_RESULT($with_dbmalloc)
+CF_NO_LEAKS_OPTION(dbmalloc,
+ [ --with-dbmalloc test: use Conor Cahill's dbmalloc library],
+ [USE_DBMALLOC])
+
if test "$with_dbmalloc" = yes ; then
AC_CHECK_HEADER(dbmalloc.h,
[AC_CHECK_LIB(dbmalloc,[debug_malloc]ifelse($1,,[],[,$1]))])
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_DFTENV version: 3 updated: 1998/04/01 11:39:13
+dnl CF_WITH_DFTENV version: 4 updated: 2008/03/23 14:48:54
dnl --------------
dnl Wrapper for AC_ARG_WITH to inherit/override an environment variable's
dnl "#define" in the compile.
@@ -4635,31 +4817,29 @@ AC_DEFUN([CF_WITH_DFTENV],
ifelse($4,,[withval="${$3}"],[withval="${$3-$4}"]))dnl
case "$withval" in #(vi
yes|no)
- AC_ERROR(expected a value for --with-$1)
+ AC_MSG_ERROR(expected a value for --with-$1)
;;
esac
$3="$withval"
AC_DEFINE_UNQUOTED($3,"[$]$3")dnl
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_DMALLOC version: 4 updated: 2004/02/28 05:49:27
+dnl CF_WITH_DMALLOC version: 6 updated: 2006/12/16 14:24:05
dnl ---------------
dnl Configure-option for dmalloc. The optional parameter is used to override
dnl the updating of $LIBS, e.g., to avoid conflict with subsequent tests.
AC_DEFUN([CF_WITH_DMALLOC],[
-AC_MSG_CHECKING(if you want to link with dmalloc for testing)
-AC_ARG_WITH(dmalloc,
- [ --with-dmalloc use Gray Watson's dmalloc library],
- [with_dmalloc=$withval],
- [with_dmalloc=no])
-AC_MSG_RESULT($with_dmalloc)
+CF_NO_LEAKS_OPTION(dmalloc,
+ [ --with-dmalloc test: use Gray Watson's dmalloc library],
+ [USE_DMALLOC])
+
if test "$with_dmalloc" = yes ; then
AC_CHECK_HEADER(dmalloc.h,
[AC_CHECK_LIB(dmalloc,[dmalloc_debug]ifelse($1,,[],[,$1]))])
fi
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_PATH version: 7 updated: 2006/08/03 15:20:08
+dnl CF_WITH_PATH version: 8 updated: 2007/05/13 13:16:35
dnl ------------
dnl Wrapper for AC_ARG_WITH to ensure that user supplies a pathname, not just
dnl defaulting to yes/no.
@@ -4673,12 +4853,14 @@ dnl
AC_DEFUN([CF_WITH_PATH],
[AC_ARG_WITH($1,[$2 ](default: ifelse($4,,empty,$4)),,
ifelse($4,,[withval="${$3}"],[withval="${$3-ifelse($5,,$4,$5)}"]))dnl
+if ifelse($5,,true,[test -n "$5"]) ; then
CF_PATH_SYNTAX(withval)
+fi
$3="$withval"
AC_SUBST($3)dnl
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_WITH_PROGRAM version: 5 updated: 2001/07/22 23:07:22
+dnl CF_WITH_PROGRAM version: 6 updated: 2008/03/23 14:48:54
dnl ---------------
dnl Wrapper for AC_PATH_PROG, with command-line option.
dnl Params:
@@ -4693,7 +4875,7 @@ define([cf_have_name], HAVE_[]translit($
AC_ARG_WITH($1,[$2],ifelse($3,,
[case "$withval" in #(vi
yes[)]
- AC_ERROR(expected a value for --with-$1)
+ AC_MSG_ERROR(expected a value for --with-$1)
;; #(vi
no[)]
;; #(vi
@@ -4759,7 +4941,7 @@ AC_TRY_LINK([
test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
])dnl
dnl ---------------------------------------------------------------------------
-dnl CF_XOPEN_SOURCE version: 24 updated: 2006/04/02 16:41:09
+dnl CF_XOPEN_SOURCE version: 25 updated: 2007/01/29 18:36:38
dnl ---------------
dnl Try to get _XOPEN_SOURCE defined properly that we can use POSIX functions,
dnl or adapt to the vendor's definitions to get equivalent functionality,
@@ -4793,7 +4975,7 @@ hpux*) #(vi
irix[[56]].*) #(vi
CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
;;
-linux*|gnu*) #(vi
+linux*|gnu*|k*bsd*-gnu) #(vi
CF_GNU_SOURCE
;;
mirbsd*) #(vi
@@ -4945,7 +5127,7 @@ elif test "$cf_x_athena_include" != defa
fi
])
dnl ---------------------------------------------------------------------------
-dnl CF_X_ATHENA_LIBS version: 3 updated: 2003/02/16 15:24:54
+dnl CF_X_ATHENA_LIBS version: 7 updated: 2008/03/23 14:46:03
dnl ----------------
dnl Normally invoked by CF_X_ATHENA, with $1 set to the appropriate flavor of
dnl the Athena widgets, e.g., Xaw, Xaw3d, neXtaw.
@@ -4975,25 +5157,21 @@ do
LIBS="$cf_lib $LIBS"
AC_MSG_CHECKING(for $cf_test in $cf_lib)
fi
- cf_SAVE="$LIBS"
- LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
AC_TRY_LINK([],[$cf_test()],
[cf_result=yes],
[cf_result=no])
AC_MSG_RESULT($cf_result)
if test "$cf_result" = yes ; then
cf_x_athena_lib="$cf_lib"
- LIBS="$cf_SAVE"
break
- else
- LIBS="$cf_save"
fi
+ LIBS="$cf_save"
fi
done
done
if test -z "$cf_x_athena_lib" ; then
- AC_ERROR(
+ AC_MSG_ERROR(
[Unable to successfully link Athena library (-l$cf_x_athena_root) with test program])
fi
@@ -5001,7 +5179,7 @@ CF_UPPER(cf_x_athena_LIBS,HAVE_LIB_$cf_x
AC_DEFINE_UNQUOTED($cf_x_athena_LIBS)
])
dnl ---------------------------------------------------------------------------
-dnl CF_X_TOOLKIT version: 10 updated: 2004/04/25 15:37:17
+dnl CF_X_TOOLKIT version: 12 updated: 2008/03/23 15:04:54
dnl ------------
dnl Check for X Toolkit libraries
dnl
@@ -5026,17 +5204,53 @@ AC_CHECK_FUNC(XtAppInitialize,,[
AC_CHECK_LIB(Xt, XtAppInitialize,
[AC_DEFINE(HAVE_LIBXT)
cf_have_X_LIBS=Xt
- LIBS="-lXt $X_PRE_LIBS $LIBS"],,
+ LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"],,
[$X_PRE_LIBS $LIBS $X_EXTRA_LIBS])])
if test $cf_have_X_LIBS = no ; then
- AC_WARN(
+ AC_MSG_WARN(
[Unable to successfully link X Toolkit library (-lXt) with
test program. You will have to check and add the proper libraries by hand
to makefile.])
fi
])dnl
dnl ---------------------------------------------------------------------------
+dnl CF__ICONV_BODY version: 2 updated: 2007/07/26 17:35:47
+dnl --------------
+dnl Test-code needed for iconv compile-checks
+define([CF__ICONV_BODY],[
+ iconv_t cd = iconv_open("","");
+ iconv(cd,NULL,NULL,NULL,NULL);
+ iconv_close(cd);]
+)dnl
+dnl ---------------------------------------------------------------------------
+dnl CF__ICONV_HEAD version: 1 updated: 2007/07/26 15:57:03
+dnl --------------
+dnl Header-files needed for iconv compile-checks
+define([CF__ICONV_HEAD],[
+#include
+#include ]
+)dnl
+dnl ---------------------------------------------------------------------------
+dnl CF__INTL_BODY version: 1 updated: 2007/07/26 17:35:47
+dnl -------------
+dnl Test-code needed for libintl compile-checks
+dnl $1 = parameter 2 from AM_WITH_NLS
+define([CF__INTL_BODY],[
+ bindtextdomain ("", "");
+ return (int) gettext ("")
+ ifelse([$1], need-ngettext, [ + (int) ngettext ("", "", 0)], [])
+ [ + _nl_msg_cat_cntr]
+])
+dnl ---------------------------------------------------------------------------
+dnl CF__INTL_HEAD version: 1 updated: 2007/07/26 17:35:47
+dnl -------------
+dnl Header-files needed for libintl compile-checks
+define([CF__INTL_HEAD],[
+#include
+extern int _nl_msg_cat_cntr;
+])dnl
+dnl ---------------------------------------------------------------------------
dnl jm_GLIBC21 version: 3 updated: 2002/10/27 23:21:42
dnl ----------
dnl Inserted as requested by gettext 0.10.40
diff -Nurp tin-1.9.2/config.guess tin-1.9.3/config.guess
--- tin-1.9.2/config.guess 2007-01-29 02:53:00.000000000 +0100
+++ tin-1.9.3/config.guess 2008-04-14 20:45:24.000000000 +0200
@@ -1,9 +1,10 @@
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+# Free Software Foundation, Inc.
-timestamp='2007-01-15'
+timestamp='2008-04-14'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -55,8 +56,8 @@ version="\
GNU config.guess ($timestamp)
Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
-Free Software Foundation, Inc.
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -179,7 +180,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
fi
;;
*)
- os=netbsd
+ os=netbsd
;;
esac
# The OS release
@@ -329,7 +330,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
- i86pc:SunOS:5.*:*)
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
sun4*:SunOS:6*:*)
@@ -374,23 +375,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
# MiNT. But MiNT is downward compatible to TOS, so this should
# be no problem.
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
+ echo m68k-atari-mint${UNAME_RELEASE}
exit ;;
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
echo m68k-atari-mint${UNAME_RELEASE}
- exit ;;
+ exit ;;
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE}
+ echo m68k-atari-mint${UNAME_RELEASE}
exit ;;
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
- echo m68k-milan-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-milan-mint${UNAME_RELEASE}
+ exit ;;
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
- echo m68k-hades-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-hades-mint${UNAME_RELEASE}
+ exit ;;
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
- echo m68k-unknown-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-unknown-mint${UNAME_RELEASE}
+ exit ;;
m68k:machten:*:*)
echo m68k-apple-machten${UNAME_RELEASE}
exit ;;
@@ -460,8 +461,8 @@ EOF
echo m88k-motorola-sysv3
exit ;;
AViiON:dgux:*:*)
- # DG/UX returns AViiON for all architectures
- UNAME_PROCESSOR=`/usr/bin/uname -p`
+ # DG/UX returns AViiON for all architectures
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
then
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
@@ -531,7 +532,7 @@ EOF
echo rs6000-ibm-aix3.2
fi
exit ;;
- *:AIX:*:[45])
+ *:AIX:*:[456])
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
IBM_ARCH=rs6000
@@ -574,8 +575,8 @@ EOF
9000/[678][0-9][0-9])
if [ -x /usr/bin/getconf ]; then
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
- case "${sc_cpu_version}" in
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+ case "${sc_cpu_version}" in
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
532) # CPU_PA_RISC2_0
@@ -710,22 +711,22 @@ EOF
exit ;;
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
echo c1-convex-bsd
- exit ;;
+ exit ;;
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
if getsysinfo -f scalar_acc
then echo c32-convex-bsd
else echo c2-convex-bsd
fi
- exit ;;
+ exit ;;
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
echo c34-convex-bsd
- exit ;;
+ exit ;;
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
echo c38-convex-bsd
- exit ;;
+ exit ;;
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
echo c4-convex-bsd
- exit ;;
+ exit ;;
CRAY*Y-MP:*:*:*)
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
exit ;;
@@ -752,7 +753,7 @@ EOF
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
- exit ;;
+ exit ;;
5000:UNIX_System_V:4.*:*)
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
@@ -790,12 +791,18 @@ EOF
i*:PW*:*)
echo ${UNAME_MACHINE}-pc-pw32
exit ;;
- x86:Interix*:[3456]*)
- echo i586-pc-interix${UNAME_RELEASE}
- exit ;;
- EM64T:Interix*:[3456]* | authenticamd:Interix*:[3456]*)
- echo x86_64-unknown-interix${UNAME_RELEASE}
- exit ;;
+ *:Interix*:[3456]*)
+ case ${UNAME_MACHINE} in
+ x86)
+ echo i586-pc-interix${UNAME_RELEASE}
+ exit ;;
+ EM64T | authenticamd)
+ echo x86_64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ IA64)
+ echo ia64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ esac ;;
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
echo i${UNAME_MACHINE}-pc-mks
exit ;;
@@ -829,7 +836,13 @@ EOF
echo ${UNAME_MACHINE}-pc-minix
exit ;;
arm*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ eval $set_cc_for_build
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null | grep -q __ARM_EABI__
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ fi
exit ;;
avr32*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
@@ -916,7 +929,7 @@ EOF
EV6) UNAME_MACHINE=alphaev6 ;;
EV67) UNAME_MACHINE=alphaev67 ;;
EV68*) UNAME_MACHINE=alphaev68 ;;
- esac
+ esac
objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
@@ -950,8 +963,8 @@ EOF
x86_64:Linux:*:*)
echo x86_64-unknown-linux-gnu
exit ;;
- xtensa:Linux:*:*)
- echo xtensa-unknown-linux-gnu
+ xtensa*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
i*86:Linux:*:*)
# The BFD linker knows what the default object file format is, so
@@ -964,16 +977,13 @@ EOF
s/.*supported targets: *//
s/ .*//
p'`
- case "$ld_supported_targets" in
+ case "$ld_supported_targets" in
elf32-i386)
TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
;;
a.out-i386-linux)
echo "${UNAME_MACHINE}-pc-linux-gnuaout"
exit ;;
- coff-i386)
- echo "${UNAME_MACHINE}-pc-linux-gnucoff"
- exit ;;
"")
# Either a pre-BFD a.out linker (linux-gnuoldld) or
# one that does not give us useful --help.
@@ -1023,11 +1033,11 @@ EOF
echo i386-sequent-sysv4
exit ;;
i*86:UNIX_SV:4.2MP:2.*)
- # Unixware is an offshoot of SVR4, but it has its own version
- # number series starting with 2...
- # I am not positive that other SVR4 systems won't match this,
+ # Unixware is an offshoot of SVR4, but it has its own version
+ # number series starting with 2...
+ # I am not positive that other SVR4 systems won't match this,
# I just have to hope. -- rms.
- # Use sysv4.2uw... so that sysv4* matches it.
+ # Use sysv4.2uw... so that sysv4* matches it.
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
exit ;;
i*86:OS/2:*:*)
@@ -1087,10 +1097,10 @@ EOF
exit ;;
pc:*:*:*)
# Left here for compatibility:
- # uname -m prints for DJGPP always 'pc', but it prints nothing about
- # the processor, so we play safe by assuming i386.
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
+ # the processor, so we play safe by assuming i386.
echo i386-pc-msdosdjgpp
- exit ;;
+ exit ;;
Intel:Mach:3*:*)
echo i386-pc-mach3
exit ;;
@@ -1125,8 +1135,8 @@ EOF
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
- && { echo i486-ncr-sysv4; exit; } ;;
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4; exit; } ;;
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
echo m68k-unknown-lynxos${UNAME_RELEASE}
exit ;;
@@ -1160,9 +1170,9 @@ EOF
fi
exit ;;
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
- # says
- echo i586-unisys-sysv4
- exit ;;
+ # says
+ echo i586-unisys-sysv4
+ exit ;;
*:UNIX_System_V:4*:FTX*)
# From Gerald Hewes .
# How about differentiating between stratus architectures? -djm
@@ -1192,7 +1202,7 @@ EOF
else
echo mips-unknown-sysv${UNAME_RELEASE}
fi
- exit ;;
+ exit ;;
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
echo powerpc-be-beos
exit ;;
@@ -1202,6 +1212,9 @@ EOF
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
echo i586-pc-beos
exit ;;
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
+ echo i586-pc-haiku
+ exit ;;
SX-4:SUPER-UX:*:*)
echo sx4-nec-superux${UNAME_RELEASE}
exit ;;
@@ -1470,9 +1483,9 @@ This script, last modified $timestamp, h
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
- http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
and
- http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
If the version you run ($0) is already up to date, please
send the following data and any information you think might be
diff -Nurp tin-1.9.2/config.sub tin-1.9.3/config.sub
--- tin-1.9.2/config.sub 2007-01-29 02:51:25.000000000 +0100
+++ tin-1.9.3/config.sub 2008-04-14 20:45:09.000000000 +0200
@@ -1,9 +1,10 @@
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+# Free Software Foundation, Inc.
-timestamp='2007-01-18'
+timestamp='2008-04-14'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
@@ -71,8 +72,8 @@ Report bugs and patches to &6
-echo "configure:632: checking for X" >&5
+echo "configure:634: checking for X" >&5
# Check whether --with-x or --without-x was given.
@@ -691,12 +693,12 @@ if test "$ac_x_includes" = NO; then
# First, try using that file with no special directory specified.
cat > conftest.$ac_ext <
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -765,14 +767,14 @@ if test "$ac_x_libraries" = NO; then
ac_save_LIBS="$LIBS"
LIBS="-l$x_direct_test_library $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
LIBS="$ac_save_LIBS"
# We can link X programs with no special library path.
@@ -863,7 +865,7 @@ fi
PACKAGE=tin
-VERSION=1.9.2
+VERSION=1.9.3
cat >> confdefs.h <&6
-echo "configure:907: checking host system type" >&5
+echo "configure:909: checking host system type" >&5
host_alias=$host
case "$host_alias" in
@@ -958,6 +960,7 @@ if test "${with_install_prefix+set}" = s
else
withval="${DESTDIR-/}"
fi
+if true ; then
if test "x$prefix" != xNONE; then
cf_path_syntax="$prefix"
@@ -988,6 +991,7 @@ case ".$withval" in #(vi
;;
esac
+fi
DESTDIR="$withval"
case ".$DESTDIR" in # (vi
@@ -1005,7 +1009,7 @@ case "$host_os" in
# Extract the first word of "xlc", so it can be a program name with args.
set dummy xlc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1009: checking for $ac_word" >&5
+echo "configure:1013: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_XLC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1055,7 +1059,7 @@ save_CFLAGS="$CFLAGS"
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1059: checking for $ac_word" >&5
+echo "configure:1063: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1085,7 +1089,7 @@ if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1089: checking for $ac_word" >&5
+echo "configure:1093: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1136,7 +1140,7 @@ fi
# Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1140: checking for $ac_word" >&5
+echo "configure:1144: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1168,7 +1172,7 @@ fi
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1172: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+echo "configure:1176: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@@ -1179,12 +1183,12 @@ cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext << EOF
-#line 1183 "configure"
+#line 1187 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
-if { (eval echo configure:1188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
@@ -1210,12 +1214,12 @@ if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:1214: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:1218: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:1219: checking whether we are using GNU C" >&5
+echo "configure:1223: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1224,7 +1228,7 @@ else
yes;
#endif
EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
@@ -1243,7 +1247,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:1247: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:1251: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1275,7 +1279,7 @@ else
fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:1279: checking how to run the C preprocessor" >&5
+echo "configure:1283: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
@@ -1290,13 +1294,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
@@ -1307,13 +1311,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
@@ -1324,13 +1328,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
@@ -1356,13 +1360,13 @@ echo "$ac_t""$CPP" 1>&6
if test $ac_cv_prog_gcc = yes; then
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
-echo "configure:1360: checking whether ${CC-cc} needs -traditional" >&5
+echo "configure:1364: checking whether ${CC-cc} needs -traditional" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_pattern="Autoconf.*'x'"
cat > conftest.$ac_ext <
Autoconf TIOCGETP
@@ -1380,7 +1384,7 @@ rm -f conftest*
if test $ac_cv_prog_gcc_traditional = no; then
cat > conftest.$ac_ext <
Autoconf TCGETA
@@ -1402,7 +1406,7 @@ echo "$ac_t""$ac_cv_prog_gcc_traditional
fi
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
-echo "configure:1406: checking whether ${MAKE-make} sets \${MAKE}" >&5
+echo "configure:1410: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -1440,7 +1444,7 @@ fi
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
-echo "configure:1444: checking for a BSD compatible install" >&5
+echo "configure:1448: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -1517,14 +1521,14 @@ EOF
do
rm -f y.tab.ch
echo $ac_n "checking for $cf_prog""... $ac_c" 1>&6
-echo "configure:1521: checking for $cf_prog" >&5
+echo "configure:1525: checking for $cf_prog" >&5
cf_command="$cf_prog conftest.y"
cf_result=no
- if { (eval echo configure:1524: \"$cf_command\") 1>&5; (eval $cf_command) 2>&5; } && test -s y.tab.c ; then
+ if { (eval echo configure:1528: \"$cf_command\") 1>&5; (eval $cf_command) 2>&5; } && test -s y.tab.c ; then
mv y.tab.c conftest.c
rm -f y.tab.h
if test "$cf_prog" = 'bison -y' ; then
- if { (eval echo configure:1528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest ; then
+ if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest ; then
cf_result=yes
fi
else
@@ -1548,7 +1552,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1552: checking for $ac_word" >&5
+echo "configure:1556: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1579,9 +1583,9 @@ done
test -n "$LINT" || LINT=":"
echo $ac_n "checking for AIX""... $ac_c" 1>&6
-echo "configure:1583: checking for AIX" >&5
+echo "configure:1587: checking for AIX" >&5
cat > conftest.$ac_ext <&6
-echo "configure:1608: checking if $CC -U and -D options work together" >&5
+echo "configure:1612: checking if $CC -U and -D options work together" >&5
if eval "test \"`echo '$''{'cf_cv_cc_u_d_options'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1612,7 +1616,7 @@ else
cf_save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="-UU_D_OPTIONS -DU_D_OPTIONS -DD_U_OPTIONS -UD_U_OPTIONS"
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_cc_u_d_options=yes
@@ -1669,16 +1673,16 @@ hpux*) #(vi
irix[56].*) #(vi
CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
;;
-linux*|gnu*) #(vi
+linux*|gnu*|k*bsd*-gnu) #(vi
echo $ac_n "checking if we must define _GNU_SOURCE""... $ac_c" 1>&6
-echo "configure:1676: checking if we must define _GNU_SOURCE" >&5
+echo "configure:1680: checking if we must define _GNU_SOURCE" >&5
if eval "test \"`echo '$''{'cf_cv_gnu_source'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
int main() {
@@ -1688,7 +1692,7 @@ make an error
#endif
; return 0; }
EOF
-if { (eval echo configure:1692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_gnu_source=no
else
@@ -1698,7 +1702,7 @@ else
cf_save="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
cat > conftest.$ac_ext <
int main() {
@@ -1708,7 +1712,7 @@ make an error
#endif
; return 0; }
EOF
-if { (eval echo configure:1712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_gnu_source=no
else
@@ -1752,13 +1756,13 @@ solaris*) #(vi
;;
*)
echo $ac_n "checking if we should define _XOPEN_SOURCE""... $ac_c" 1>&6
-echo "configure:1756: checking if we should define _XOPEN_SOURCE" >&5
+echo "configure:1760: checking if we should define _XOPEN_SOURCE" >&5
if eval "test \"`echo '$''{'cf_cv_xopen_source'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
int main() {
@@ -1768,7 +1772,7 @@ make an error
#endif
; return 0; }
EOF
-if { (eval echo configure:1772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_xopen_source=no
else
@@ -1778,7 +1782,7 @@ else
cf_save="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
cat > conftest.$ac_ext <
int main() {
@@ -1788,7 +1792,7 @@ make an error
#endif
; return 0; }
EOF
-if { (eval echo configure:1792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_xopen_source=no
else
@@ -1843,16 +1847,16 @@ cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAG
echo $ac_n "checking if we should define _POSIX_C_SOURCE""... $ac_c" 1>&6
-echo "configure:1847: checking if we should define _POSIX_C_SOURCE" >&5
+echo "configure:1851: checking if we should define _POSIX_C_SOURCE" >&5
if eval "test \"`echo '$''{'cf_cv_posix_c_source'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
-echo "(line 1853) testing if the symbol is already defined go no further ..." 1>&5
+echo "${as_me-configure}:1857: testing if the symbol is already defined go no further ..." 1>&5
cat > conftest.$ac_ext <
int main() {
@@ -1862,7 +1866,7 @@ make an error
#endif
; return 0; }
EOF
-if { (eval echo configure:1866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_posix_c_source=no
else
@@ -1884,7 +1888,7 @@ else
esac
if test "$cf_want_posix_source" = yes ; then
cat > conftest.$ac_ext <
int main() {
@@ -1894,7 +1898,7 @@ make an error
#endif
; return 0; }
EOF
-if { (eval echo configure:1898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
:
else
echo "configure: failed program was:" >&5
@@ -1905,15 +1909,15 @@ fi
rm -f conftest*
fi
-echo "(line 1909) testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
+echo "${as_me-configure}:1913: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
CFLAGS="$cf_trim_CFLAGS"
CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
-echo "(line 1914) testing if the second compile does not leave our definition intact error ..." 1>&5
+echo "${as_me-configure}:1918: testing if the second compile does not leave our definition intact error ..." 1>&5
cat > conftest.$ac_ext <
int main() {
@@ -1923,7 +1927,7 @@ make an error
#endif
; return 0; }
EOF
-if { (eval echo configure:1927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
:
else
echo "configure: failed program was:" >&5
@@ -1959,7 +1963,7 @@ esac
echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
-echo "configure:1963: checking for strerror in -lcposix" >&5
+echo "configure:1967: checking for strerror in -lcposix" >&5
ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -1967,7 +1971,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lcposix $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -2002,7 +2006,7 @@ fi
echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
-echo "configure:2006: checking for ${CC-cc} option to accept ANSI C" >&5
+echo "configure:2010: checking for ${CC-cc} option to accept ANSI C" >&5
if eval "test \"`echo '$''{'cf_cv_ansi_cc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2098,7 +2102,7 @@ fi
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_ansi_cc="$cf_arg"; break
else
@@ -2222,12 +2226,12 @@ You have the following choices:
fi
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
-echo "configure:2226: checking for Cygwin environment" >&5
+echo "configure:2230: checking for Cygwin environment" >&5
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_cygwin=yes
else
@@ -2255,19 +2259,19 @@ echo "$ac_t""$ac_cv_cygwin" 1>&6
CYGWIN=
test "$ac_cv_cygwin" = yes && CYGWIN=yes
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
-echo "configure:2259: checking for mingw32 environment" >&5
+echo "configure:2263: checking for mingw32 environment" >&5
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_mingw32=yes
else
@@ -2299,7 +2303,7 @@ esac
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
-echo "configure:2303: checking for executable suffix" >&5
+echo "configure:2307: checking for executable suffix" >&5
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2309,7 +2313,7 @@ else
rm -f conftest*
echo 'int main () { return 0; }' > conftest.$ac_ext
ac_cv_exeext=
- if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+ if { (eval echo configure:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
for file in conftest.*; do
case $file in
*.c | *.o | *.obj) ;;
@@ -2330,13 +2334,13 @@ echo "$ac_t""${ac_cv_exeext}" 1>&6
ac_exeext=$EXEEXT
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
-echo "configure:2334: checking for object suffix" >&5
+echo "configure:2338: checking for object suffix" >&5
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
rm -f conftest*
echo 'int i = 1;' > conftest.$ac_ext
-if { (eval echo configure:2340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
for ac_file in conftest.*; do
case $ac_file in
*.c) ;;
@@ -2371,7 +2375,7 @@ LIB_PREFIX=$LIB_PREFIX
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
-echo "configure:2375: checking whether ln -s works" >&5
+echo "configure:2379: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2415,7 +2419,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2419: checking for $ac_word" >&5
+echo "configure:2423: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2447,24 +2451,24 @@ done
fi
echo $ac_n "checking for native build C compiler""... $ac_c" 1>&6
-echo "configure:2451: checking for native build C compiler" >&5
+echo "configure:2455: checking for native build C compiler" >&5
echo "$ac_t""$BUILD_CC" 1>&6
echo $ac_n "checking for native build C preprocessor""... $ac_c" 1>&6
-echo "configure:2455: checking for native build C preprocessor" >&5
+echo "configure:2459: checking for native build C preprocessor" >&5
# Check whether --with-build-cpp or --without-build-cpp was given.
if test "${with_build_cpp+set}" = set; then
withval="$with_build_cpp"
BUILD_CPP="$withval"
else
- BUILD_CPP='$(BUILD_CC) -E'
+ BUILD_CPP='${BUILD_CC} -E'
fi
echo "$ac_t""$BUILD_CPP" 1>&6
echo $ac_n "checking for native build C flags""... $ac_c" 1>&6
-echo "configure:2468: checking for native build C flags" >&5
+echo "configure:2472: checking for native build C flags" >&5
# Check whether --with-build-cflags or --without-build-cflags was given.
if test "${with_build_cflags+set}" = set; then
@@ -2475,7 +2479,7 @@ fi
echo "$ac_t""$BUILD_CFLAGS" 1>&6
echo $ac_n "checking for native build C preprocessor-flags""... $ac_c" 1>&6
-echo "configure:2479: checking for native build C preprocessor-flags" >&5
+echo "configure:2483: checking for native build C preprocessor-flags" >&5
# Check whether --with-build-cppflags or --without-build-cppflags was given.
if test "${with_build_cppflags+set}" = set; then
@@ -2486,7 +2490,7 @@ fi
echo "$ac_t""$BUILD_CPPFLAGS" 1>&6
echo $ac_n "checking for native build linker-flags""... $ac_c" 1>&6
-echo "configure:2490: checking for native build linker-flags" >&5
+echo "configure:2494: checking for native build linker-flags" >&5
# Check whether --with-build-ldflags or --without-build-ldflags was given.
if test "${with_build_ldflags+set}" = set; then
@@ -2497,7 +2501,7 @@ fi
echo "$ac_t""$BUILD_LDFLAGS" 1>&6
echo $ac_n "checking for native build linker-libraries""... $ac_c" 1>&6
-echo "configure:2501: checking for native build linker-libraries" >&5
+echo "configure:2505: checking for native build linker-libraries" >&5
# Check whether --with-build-libs or --without-build-libs was given.
if test "${with_build_libs+set}" = set; then
@@ -2511,20 +2515,20 @@ fi
BUILD_EXEEXT=
BUILD_OBJEXT=o
- : ${BUILD_CC:='$(CC)'}
+ : ${BUILD_CC:='${CC}'}
- if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '$(CC)' ) ; then
+ if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
{ echo "configure: error: Cross-build requires two compilers.
Use --with-build-cc to specify the native compiler." 1>&2; exit 1; }
fi
else
- : ${BUILD_CC:='$(CC)'}
- : ${BUILD_CPP:='$(CPP)'}
- : ${BUILD_CFLAGS:='$(CFLAGS)'}
- : ${BUILD_CPPFLAGS:='$(CPPFLAGS)'}
- : ${BUILD_LDFLAGS:='$(LDFLAGS)'}
- : ${BUILD_LIBS:='$(LIBS)'}
+ : ${BUILD_CC:='${CC}'}
+ : ${BUILD_CPP:='${CPP}'}
+ : ${BUILD_CFLAGS:='${CFLAGS}'}
+ : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
+ : ${BUILD_LDFLAGS:='${LDFLAGS}'}
+ : ${BUILD_LIBS:='${LIBS}'}
: ${BUILD_EXEEXT:='$x'}
: ${BUILD_OBJEXT:='o'}
fi
@@ -2540,7 +2544,7 @@ fi
echo $ac_n "checking build system type""... $ac_c" 1>&6
-echo "configure:2544: checking build system type" >&5
+echo "configure:2548: checking build system type" >&5
build_alias=$build
case "$build_alias" in
@@ -2566,7 +2570,7 @@ fi
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2570: checking for $ac_word" >&5
+echo "configure:2574: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2598,7 +2602,7 @@ if test -n "$ac_tool_prefix"; then
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2602: checking for $ac_word" >&5
+echo "configure:2606: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2633,7 +2637,7 @@ fi
# Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
set dummy ${ac_tool_prefix}ld; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2637: checking for $ac_word" >&5
+echo "configure:2641: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2665,7 +2669,7 @@ if test -n "$ac_tool_prefix"; then
# Extract the first word of "ld", so it can be a program name with args.
set dummy ld; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2669: checking for $ac_word" >&5
+echo "configure:2673: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2700,7 +2704,7 @@ fi
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2704: checking for $ac_word" >&5
+echo "configure:2708: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2732,7 +2736,7 @@ if test -n "$ac_tool_prefix"; then
# Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2736: checking for $ac_word" >&5
+echo "configure:2740: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2769,7 +2773,7 @@ if eval "test \"`echo '$''{'cf_cv_subst_
else
echo $ac_n "checking for archiver options (symbol AR_OPTS)""... $ac_c" 1>&6
-echo "configure:2773: checking for archiver options (symbol AR_OPTS)" >&5
+echo "configure:2777: checking for archiver options (symbol AR_OPTS)" >&5
if test -z "$AR_OPTS" ; then
AR_OPTS=rv
@@ -2786,19 +2790,16 @@ fi
case "$host_cpu:$host_vendor:$host_os" in
# check for MacOS X, exclude Darwin on ix86
- powerpc:apple:darwin*) #
- cat >> confdefs.h <<\EOF
-#define MAC_OS_X 1
-EOF
-
- ;;
- # check for cygwin enviroment
+# powerpc:apple:darwin*) #(vi
+# AC_DEFINE(MAC_OS_X)
+# ;;
+ # check for cygwin environment
# -DSTATIC is needed for pcre
*:*:*cygwin*) #(vi
PCRE_DEFINES="$PCRE_DEFINES -DSTATIC"
;;
- # SEIUX doesn't have any usefull preprocessor symbol
- mips:sei:seiux*)
+ # SEIUX doesn't have any useful preprocessor symbol
+ mips:sei:seiux*) #(vi
cat >> confdefs.h <<\EOF
#define SEIUX 1
EOF
@@ -2820,7 +2821,7 @@ if test "${with_ispell+set}" = set; then
*)
# user supplied option-value for "--with-ispell=path"
echo $ac_n "checking for ispell""... $ac_c" 1>&6
-echo "configure:2824: checking for ispell" >&5
+echo "configure:2825: checking for ispell" >&5
ac_cv_path_PATH_ISPELL="$withval"
cat >> confdefs.h <&6
-echo "configure:2841: checking for $ac_word" >&5
+echo "configure:2842: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PATH_ISPELL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2894,7 +2895,7 @@ if test "${with_metamail+set}" = set; th
*)
# user supplied option-value for "--with-metamail=path"
echo $ac_n "checking for metamail""... $ac_c" 1>&6
-echo "configure:2898: checking for metamail" >&5
+echo "configure:2899: checking for metamail" >&5
ac_cv_path_PATH_METAMAIL="$withval"
cat >> confdefs.h <&6
-echo "configure:2915: checking for $ac_word" >&5
+echo "configure:2916: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PATH_METAMAIL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2968,7 +2969,7 @@ if test "${with_sum+set}" = set; then
*)
# user supplied option-value for "--with-sum=path"
echo $ac_n "checking for sum""... $ac_c" 1>&6
-echo "configure:2972: checking for sum" >&5
+echo "configure:2973: checking for sum" >&5
ac_cv_path_PATH_SUM="$withval"
cat >> confdefs.h <&6
-echo "configure:2989: checking for $ac_word" >&5
+echo "configure:2990: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PATH_SUM'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3032,12 +3033,12 @@ fi
if test $ac_cv_path_PATH_SUM
then
echo $ac_n "checking if $ac_cv_path_PATH_SUM takes -r""... $ac_c" 1>&6
-echo "configure:3036: checking if $ac_cv_path_PATH_SUM takes -r" >&5
+echo "configure:3037: checking if $ac_cv_path_PATH_SUM takes -r" >&5
if eval "test \"`echo '$''{'ac_cv_prog_sum_r'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
-if { ac_try='$ac_cv_path_PATH_SUM -r config.log 1>&5'; { (eval echo configure:3041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
+if { ac_try='$ac_cv_path_PATH_SUM -r config.log 1>&5'; { (eval echo configure:3042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
then
ac_cv_prog_sum_r=yes
else
@@ -3067,7 +3068,7 @@ fi
echo $ac_n "checking for default editor""... $ac_c" 1>&6
-echo "configure:3071: checking for default editor" >&5
+echo "configure:3072: checking for default editor" >&5
# Check whether --with-editor or --without-editor was given.
if test "${with_editor+set}" = set; then
@@ -3095,7 +3096,7 @@ if test -z "$DEFAULT_EDITOR" ; then
# Extract the first word of "vi", so it can be a program name with args.
set dummy vi; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3099: checking for $ac_word" >&5
+echo "configure:3100: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_DEFAULT_EDITOR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3140,7 +3141,7 @@ EOF
# Extract the first word of "sendmail", so it can be a program name with args.
set dummy sendmail; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3144: checking for $ac_word" >&5
+echo "configure:3145: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_DEFAULT_MAILER'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3194,7 +3195,7 @@ if test -z "$DEFAULT_MAILER" ; then
# Extract the first word of "mailx", so it can be a program name with args.
set dummy mailx; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3198: checking for $ac_word" >&5
+echo "configure:3199: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_DEFAULT_MAILER'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3231,7 +3232,7 @@ if test -z "$DEFAULT_MAILER" ; then
# Extract the first word of "mail", so it can be a program name with args.
set dummy mail; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3235: checking for $ac_word" >&5
+echo "configure:3236: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_DEFAULT_MAILER'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3265,7 +3266,7 @@ fi
fi
echo $ac_n "checking for default mailer""... $ac_c" 1>&6
-echo "configure:3269: checking for default mailer" >&5
+echo "configure:3270: checking for default mailer" >&5
if test -n "$DEFAULT_MAILER" ; then
case $cf_cv_system_name in #(vi
@@ -3292,7 +3293,7 @@ echo "$ac_t""$DEFAULT_MAILER" 1>&6
echo $ac_n "checking for incoming-mail directory""... $ac_c" 1>&6
-echo "configure:3296: checking for incoming-mail directory" >&5
+echo "configure:3297: checking for incoming-mail directory" >&5
# Check whether --with-mailbox or --without-mailbox was given.
if test "${with_mailbox+set}" = set; then
@@ -3338,7 +3339,7 @@ echo "$ac_t""$DEFAULT_MAILBOX" 1>&6
## PGP Support
echo $ac_n "checking if you want PGP/GPG-Support""... $ac_c" 1>&6
-echo "configure:3342: checking if you want PGP/GPG-Support" >&5
+echo "configure:3343: checking if you want PGP/GPG-Support" >&5
# Check whether --enable-pgp-gpg or --disable-pgp-gpg was given.
if test "${enable_pgp_gpg+set}" = set; then
@@ -3370,7 +3371,7 @@ if test "${with_pgp+set}" = set; then
*)
# user supplied option-value for "--with-pgp=path"
echo $ac_n "checking for pgp""... $ac_c" 1>&6
-echo "configure:3374: checking for pgp" >&5
+echo "configure:3375: checking for pgp" >&5
ac_cv_path_PATH_PGP="$withval"
cat >> confdefs.h <&6
-echo "configure:3391: checking for $ac_word" >&5
+echo "configure:3392: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PATH_PGP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3445,7 +3446,7 @@ if test "${with_pgpk+set}" = set; then
*)
# user supplied option-value for "--with-pgpk=path"
echo $ac_n "checking for pgpk""... $ac_c" 1>&6
-echo "configure:3449: checking for pgpk" >&5
+echo "configure:3450: checking for pgpk" >&5
ac_cv_path_PATH_PGPK="$withval"
cat >> confdefs.h <&6
-echo "configure:3466: checking for $ac_word" >&5
+echo "configure:3467: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PATH_PGPK'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3520,7 +3521,7 @@ if test "${with_gpg+set}" = set; then
*)
# user supplied option-value for "--with-gpg=path"
echo $ac_n "checking for gpg""... $ac_c" 1>&6
-echo "configure:3524: checking for gpg" >&5
+echo "configure:3525: checking for gpg" >&5
ac_cv_path_PATH_GPG="$withval"
cat >> confdefs.h <&6
-echo "configure:3541: checking for $ac_word" >&5
+echo "configure:3542: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PATH_GPG'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3582,6 +3583,81 @@ fi
fi
+## slrnface
+
+# Check whether --with-slrnface or --without-slrnface was given.
+if test "${with_slrnface+set}" = set; then
+ withval="$with_slrnface"
+ case "$withval" in #(vi
+ yes)
+ { echo "configure: error: expected a value for --with-slrnface" 1>&2; exit 1; }
+ ;; #(vi
+ no)
+ ;; #(vi
+ *)
+ # user supplied option-value for "--with-slrnface=path"
+ echo $ac_n "checking for slrnface""... $ac_c" 1>&6
+echo "configure:3601: checking for slrnface" >&5
+ ac_cv_path_PATH_SLRNFACE="$withval"
+ cat >> confdefs.h <> confdefs.h <<\EOF
+#define HAVE_SLRNFACE 1
+EOF
+ echo "$ac_t""$withval" 1>&6
+ ;;
+ esac
+else
+
+ # user did not specify "--with-slrnface"; do automatic check
+ # Extract the first word of "slrnface", so it can be a program name with args.
+set dummy slrnface; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:3618: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_path_PATH_SLRNFACE'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ case "$PATH_SLRNFACE" in
+ /*)
+ ac_cv_path_PATH_SLRNFACE="$PATH_SLRNFACE" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ ac_cv_path_PATH_SLRNFACE="$PATH_SLRNFACE" # Let the user override the test with a dos path.
+ ;;
+ *)
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$PATH"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_path_PATH_SLRNFACE="$ac_dir/$ac_word"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ ;;
+esac
+fi
+PATH_SLRNFACE="$ac_cv_path_PATH_SLRNFACE"
+if test -n "$PATH_SLRNFACE"; then
+ echo "$ac_t""$PATH_SLRNFACE" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+ if test -n "$PATH_SLRNFACE"; then
+ cat >> confdefs.h <> confdefs.h <<\EOF
+#define HAVE_SLRNFACE 1
+EOF
+ fi
+
+fi
+
+
## Default shell
# Check whether --with-shell or --without-shell was given.
@@ -3594,13 +3670,13 @@ fi
echo $ac_n "checking for the default shell program""... $ac_c" 1>&6
-echo "configure:3598: checking for the default shell program" >&5
+echo "configure:3674: checking for the default shell program" >&5
cf_shell_progs="$cf_cv_default_shell"
if test -z "$cf_shell_progs" ; then
cf_shell_progs="sh ksh bash zsh pdksh mksh jsh keysh ash dash"
# TIN preferred default shell for BSD systems is csh. Others are sh.
cat > conftest.$ac_ext <
@@ -3613,7 +3689,7 @@ make an error
; return 0; }
EOF
-if { (eval echo configure:3617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:3693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
$cf_shell_progs="csh tcsh $cf_shell_progs"
else
@@ -3623,11 +3699,11 @@ fi
rm -f conftest*
fi
-echo "(line 3627) testing paths of shell programs: $cf_shell_progs ..." 1>&5
+echo "${as_me-configure}:3703: testing paths of shell programs: $cf_shell_progs ..." 1>&5
if test -s /etc/shells && test `egrep -c -v '^(#| | |$)' /etc/shells` -gt 0; then
-echo "(line 3631) testing /etc/shells ..." 1>&5
+echo "${as_me-configure}:3707: testing /etc/shells ..." 1>&5
for cf_prog in $cf_shell_progs
do
@@ -3662,14 +3738,14 @@ echo "(line 3631) testing /etc/shells ..
echo "$ac_t""$DEFAULT_SHELL" 1>&6
else
-echo "(line 3666) testing $PATH ..." 1>&5
+echo "${as_me-configure}:3742: testing $PATH ..." 1>&5
for ac_prog in $cf_shell_progs
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3673: checking for $ac_word" >&5
+echo "configure:3749: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_DEFAULT_SHELL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3722,7 +3798,7 @@ EOF
### check for this early, since it'll override several options
echo $ac_n "checking if NNTP-support will be used""... $ac_c" 1>&6
-echo "configure:3726: checking if NNTP-support will be used" >&5
+echo "configure:3802: checking if NNTP-support will be used" >&5
# Check whether --enable-nntp or --disable-nntp was given.
if test "${enable_nntp+set}" = set; then
@@ -3744,7 +3820,7 @@ echo "$ac_t""$enableval" 1>&6
USE_SPOOLDIR=yes
if test "$USE_NNTP" = "yes" ; then
echo $ac_n "checking whether to be NNTP_ONLY""... $ac_c" 1>&6
-echo "configure:3748: checking whether to be NNTP_ONLY" >&5
+echo "configure:3824: checking whether to be NNTP_ONLY" >&5
# Check whether --enable-nntp-only or --disable-nntp-only was given.
if test "${enable_nntp_only+set}" = set; then
@@ -3776,7 +3852,7 @@ fi
### use option --enable-debug to compile-in test/development code
echo $ac_n "checking if you want to compile-in debug support""... $ac_c" 1>&6
-echo "configure:3780: checking if you want to compile-in debug support" >&5
+echo "configure:3856: checking if you want to compile-in debug support" >&5
# Check whether --enable-debug or --disable-debug was given.
if test "${enable_debug+set}" = set; then
@@ -3803,7 +3879,7 @@ echo "$ac_t""$enableval" 1>&6
### use option --disable-echo to suppress full display compiling commands
echo $ac_n "checking if you want to see long compiling messages""... $ac_c" 1>&6
-echo "configure:3807: checking if you want to see long compiling messages" >&5
+echo "configure:3883: checking if you want to see long compiling messages" >&5
# Check whether --enable-echo or --disable-echo was given.
if test "${enable_echo+set}" = set; then
@@ -3848,7 +3924,7 @@ echo "$ac_t""$enableval" 1>&6
### use option --enable-prototypes to turn on optional prototypes
echo $ac_n "checking if you want to compile with fallback prototypes""... $ac_c" 1>&6
-echo "configure:3852: checking if you want to compile with fallback prototypes" >&5
+echo "configure:3928: checking if you want to compile with fallback prototypes" >&5
# Check whether --enable-prototypes or --disable-prototypes was given.
if test "${enable_prototypes+set}" = set; then
@@ -3872,7 +3948,7 @@ EXTRA_CFLAGS=""
if test -n "$GCC"
then
echo $ac_n "checking if you want to turn on gcc warnings""... $ac_c" 1>&6
-echo "configure:3876: checking if you want to turn on gcc warnings" >&5
+echo "configure:3952: checking if you want to turn on gcc warnings" >&5
# Check whether --enable-warnings or --disable-warnings was given.
if test "${enable_warnings+set}" = set; then
@@ -3898,7 +3974,7 @@ then
GCC_VERSION=none
if test "$GCC" = yes ; then
echo $ac_n "checking version of $CC""... $ac_c" 1>&6
-echo "configure:3902: checking version of $CC" >&5
+echo "configure:3978: checking version of $CC" >&5
GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
test -z "$GCC_VERSION" && GCC_VERSION=unknown
echo "$ac_t""$GCC_VERSION" 1>&6
@@ -3913,11 +3989,11 @@ if test "$GCC" = yes ; then
case $host_os in
linux*|gnu*)
echo $ac_n "checking if this is really Intel C compiler""... $ac_c" 1>&6
-echo "configure:3917: checking if this is really Intel C compiler" >&5
+echo "configure:3993: checking if this is really Intel C compiler" >&5
cf_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -no-gcc"
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:4009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
INTEL_COMPILER=yes
cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
@@ -3947,7 +4023,7 @@ fi
cat > conftest.$ac_ext <&6
-echo "configure:3970: checking for $CC warning options" >&5
+echo "configure:4046: checking for $CC warning options" >&5
cf_save_CFLAGS="$CFLAGS"
EXTRA_CFLAGS="-Wall"
- for cf_opt in \
+ for cf_opt in \
wd1419 \
wd1682 \
wd1683 \
@@ -3982,7 +4058,7 @@ echo "configure:3970: checking for $CC w
wd981
do
CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
- if { (eval echo configure:3986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ if { (eval echo configure:4062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
test -n "$verbose" && echo "$ac_t""... -$cf_opt" 1>&6
EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
fi
@@ -3992,7 +4068,7 @@ echo "configure:3970: checking for $CC w
elif test "$GCC" = yes
then
echo "checking for $CC warning options" 1>&6
-echo "configure:3996: checking for $CC warning options" >&5
+echo "configure:4072: checking for $CC warning options" >&5
cf_save_CFLAGS="$CFLAGS"
EXTRA_CFLAGS="-W -Wall"
cf_warn_CONST=""
@@ -4011,7 +4087,7 @@ echo "configure:3996: checking for $CC w
Wundef $cf_warn_CONST
do
CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
- if { (eval echo configure:4015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ if { (eval echo configure:4091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
test -n "$verbose" && echo "$ac_t""... -$cf_opt" 1>&6
case $cf_opt in #(vi
Wcast-qual) #(vi
@@ -4022,6 +4098,9 @@ echo "configure:3996: checking for $CC w
3.3*)
test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
+echo "${as_me-configure}:4102: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
+
+
continue;;
esac
;;
@@ -4042,7 +4121,7 @@ fi
if test "$USE_SPOOLDIR" = "yes"; then
## options for directories
echo $ac_n "checking for news-library path""... $ac_c" 1>&6
-echo "configure:4046: checking for news-library path" >&5
+echo "configure:4125: checking for news-library path" >&5
# Check whether --with-libdir or --without-libdir was given.
if test "${with_libdir+set}" = set; then
@@ -4051,6 +4130,7 @@ if test "${with_libdir+set}" = set; then
else
withval="${NEWSLIBDIR-/usr/lib/news}"
fi
+if true ; then
if test "x$prefix" != xNONE; then
cf_path_syntax="$prefix"
@@ -4081,12 +4161,13 @@ case ".$withval" in #(vi
;;
esac
+fi
NEWSLIBDIR="$withval"
echo "$ac_t""$NEWSLIBDIR" 1>&6
echo $ac_n "checking for news spool-directory path""... $ac_c" 1>&6
-echo "configure:4090: checking for news spool-directory path" >&5
+echo "configure:4171: checking for news spool-directory path" >&5
# Check whether --with-spooldir or --without-spooldir was given.
if test "${with_spooldir+set}" = set; then
@@ -4095,6 +4176,7 @@ if test "${with_spooldir+set}" = set; th
else
withval="${SPOOLDIR-/var/spool/news}"
fi
+if true ; then
if test "x$prefix" != xNONE; then
cf_path_syntax="$prefix"
@@ -4125,12 +4207,13 @@ case ".$withval" in #(vi
;;
esac
+fi
SPOOLDIR="$withval"
echo "$ac_t""$SPOOLDIR" 1>&6
echo $ac_n "checking for news overview-directory path""... $ac_c" 1>&6
-echo "configure:4134: checking for news overview-directory path" >&5
+echo "configure:4217: checking for news overview-directory path" >&5
# Check whether --with-nov-dir or --without-nov-dir was given.
if test "${with_nov_dir+set}" = set; then
@@ -4139,6 +4222,7 @@ if test "${with_nov_dir+set}" = set; the
else
withval="${NOVROOTDIR-$SPOOLDIR}"
fi
+if true ; then
if test "x$prefix" != xNONE; then
cf_path_syntax="$prefix"
@@ -4169,12 +4253,13 @@ case ".$withval" in #(vi
;;
esac
+fi
NOVROOTDIR="$withval"
echo "$ac_t""$NOVROOTDIR" 1>&6
echo $ac_n "checking for overview filename""... $ac_c" 1>&6
-echo "configure:4178: checking for overview filename" >&5
+echo "configure:4263: checking for overview filename" >&5
# Check whether --with-nov-fname or --without-nov-fname was given.
if test "${with_nov_fname+set}" = set; then
@@ -4210,7 +4295,7 @@ fi
## TODO: kick the --with-inews-dir= stuff, the check below should be enough
## (requires some code rework in tin)
echo $ac_n "checking for directory containing \"inews\"""... $ac_c" 1>&6
-echo "configure:4214: checking for directory containing \"inews\"" >&5
+echo "configure:4299: checking for directory containing \"inews\"" >&5
# Check whether --with-inews-dir or --without-inews-dir was given.
if test "${with_inews_dir+set}" = set; then
@@ -4219,6 +4304,7 @@ if test "${with_inews_dir+set}" = set; t
else
withval="${INEWSDIR-$INEWSPATH}"
fi
+if true ; then
if test "x$prefix" != xNONE; then
cf_path_syntax="$prefix"
@@ -4249,6 +4335,7 @@ case ".$withval" in #(vi
;;
esac
+fi
INEWSDIR="$withval"
INEWSDIR=`echo $INEWSDIR |sed -e 's,/$,,'`
@@ -4257,7 +4344,7 @@ echo "$ac_t""$INEWSDIR" 1>&6
# Extract the first word of "inews", so it can be a program name with args.
set dummy inews; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4261: checking for $ac_word" >&5
+echo "configure:4348: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_INEWS'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4310,43 +4397,10 @@ EOF
fi
fi
-## !NNTP_ONLY
-if test "$USE_SPOOLDIR" = "yes"; then
- ## options for libraries
- echo $ac_n "checking for optional INN-NNTP library""... $ac_c" 1>&6
-echo "configure:4318: checking for optional INN-NNTP library" >&5
-
-# Check whether --with-inn-nntplib or --without-inn-nntplib was given.
-if test "${with_inn_nntplib+set}" = set; then
- withval="$with_inn_nntplib"
- :
-else
- withval="${INN_NNTPLIB}"
-fi
-test -n "$withval" && \
-case "$withval" in #(vi
-yes)
- { echo "configure: error: expected a value for --with-inn-nntplib" 1>&2; exit 1; }
- ;; #(vi
-no) withval=""
- ;;
-esac
-INN_NNTPLIB="$withval"
-
- cat >> confdefs.h <&6
-else
- INN_NNTPLIB=""
-fi
-
-
### Look for network libraries first, since some functions (such as gethostname)
### are used in a lot of places.
echo $ac_n "checking if you want socks library""... $ac_c" 1>&6
-echo "configure:4350: checking if you want socks library" >&5
+echo "configure:4404: checking if you want socks library" >&5
if eval "test \"`echo '$''{'cf_cv_use_libsocks'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4366,7 +4420,7 @@ fi
echo "$ac_t""$cf_cv_use_libsocks" 1>&6
echo $ac_n "checking if you want socks5 library""... $ac_c" 1>&6
-echo "configure:4370: checking if you want socks5 library" >&5
+echo "configure:4424: checking if you want socks5 library" >&5
if eval "test \"`echo '$''{'cf_cv_use_libsocks5'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4387,185 +4441,764 @@ echo "$ac_t""$cf_cv_use_libsocks5" 1>&6
if test "x$cf_cv_use_libsocks" != xno ; then
-case "$cf_cv_use_libsocks" in #(vi
-no|yes) #(vi
- ;;
-*)
- if test -d $cf_cv_use_libsocks ; then
- if test -d $cf_cv_use_libsocks/include ; then
- CPPFLAGS="$CPPFLAGS -I$cf_cv_use_libsocks/include"
- LIBS="$LIBS -L$cf_cv_use_libsocks/lib"
- else
- LIBS="$LIBS -L$cf_cv_use_libsocks"
- test -d $cf_cv_use_libsocks/../include && CPPFLAGS="$CPPFLAGS -I$cf_cv_use_libsocks/../include"
- fi
- else
- echo "configure: warning: expected a directory: $cf_cv_use_libsocks" 1>&2
- fi
- ;;
-esac
-LIBS="$LIBS -lsocks"
-cat >> confdefs.h <<\EOF
-#define SOCKS 1
-EOF
-
-cat >> confdefs.h <<\EOF
-#define accept Raccept
-EOF
-
-cat >> confdefs.h <<\EOF
-#define bind Rbind
-EOF
-
-cat >> confdefs.h <<\EOF
-#define connect Rconnect
-EOF
-
-cat >> confdefs.h <<\EOF
-#define getpeername Rgetpeername
-EOF
-
-cat >> confdefs.h <<\EOF
-#define getsockname Rgetsockname
-EOF
-
-cat >> confdefs.h <<\EOF
-#define listen Rlisten
-EOF
-
-cat >> confdefs.h <<\EOF
-#define recvfrom Rrecvfrom
-EOF
-
-cat >> confdefs.h <<\EOF
-#define select Rselect
-EOF
+
+ case "$cf_cv_use_libsocks" in #(vi
+ no) #(vi
+ ;;
+ yes) #(vi
+ ;;
+ *)
+
+for cf_searchpath in `echo "$cf_cv_use_libsocks" | tr : ' '`; do
+ if test -d $cf_searchpath/include; then
+
+if test -n "$cf_searchpath/include" ; then
+ for cf_add_incdir in $cf_searchpath/include
+ do
+ while test $cf_add_incdir != /usr/include
+ do
+ if test -d $cf_add_incdir
+ then
+ cf_have_incdir=no
+ if test -n "$CFLAGS$CPPFLAGS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
+ if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
+ cf_have_incdir=yes; break
+ fi
+ done
+ fi
-cat > conftest.$ac_ext < conftest.$ac_ext <
int main() {
-
- accept((char *)0)
+printf("Hello")
; return 0; }
EOF
-if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- { echo "configure: error: Cannot link with socks library" 1>&2; exit 1; }
+ cf_have_incdir=yes
fi
rm -f conftest*
+ CPPFLAGS=$cf_save_CPPFLAGS
+ fi
+ fi
+ fi
-else
-
-cf_test_netlibs=no
-echo $ac_n "checking for network libraries""... $ac_c" 1>&6
-echo "configure:4469: checking for network libraries" >&5
-if eval "test \"`echo '$''{'cf_cv_netlibs'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
-
-echo "$ac_t""working..." 1>&6
-cf_cv_netlibs=""
-cf_test_netlibs=yes
-for ac_func in gethostname
-do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:4480: checking for $ac_func" >&5
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char $ac_func();
+ if test "$cf_have_incdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
-int main() {
+echo "${as_me-configure}:4504: testing adding $cf_add_incdir to include-path ..." 1>&5
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
-choke me
-#else
-$ac_func();
-#endif
-; return 0; }
-EOF
-if { (eval echo configure:4508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
+ CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
+
+ cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
+ test "$cf_top_incdir" = "$cf_add_incdir" && break
+ cf_add_incdir="$cf_top_incdir"
+ else
+ break
+ fi
+ fi
+ done
+ done
fi
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <&6
+ elif test -d $cf_searchpath/../include ; then
+
+if test -n "$cf_searchpath/../include" ; then
+ for cf_add_incdir in $cf_searchpath/../include
+ do
+ while test $cf_add_incdir != /usr/include
+ do
+ if test -d $cf_add_incdir
+ then
+ cf_have_incdir=no
+ if test -n "$CFLAGS$CPPFLAGS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
+ if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
+ cf_have_incdir=yes; break
+ fi
+ done
+ fi
-echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6
-echo "configure:4531: checking for gethostname in -lnsl" >&5
-ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lnsl $cf_cv_netlibs $LIBS"
-cat > conftest.$ac_ext < conftest.$ac_ext <
int main() {
-gethostname()
+printf("Hello")
; return 0; }
EOF
-if { (eval echo configure:4550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
+if { (eval echo configure:4553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ :
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ cf_have_incdir=yes
fi
rm -f conftest*
-LIBS="$ac_save_LIBS"
+ CPPFLAGS=$cf_save_CPPFLAGS
+ fi
+ fi
+ fi
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
-
-
-cf_tr_func=`echo "gethostname" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
+ if test "$cf_have_incdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
- cat >> confdefs.h <&5
+
+
+ CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
+
+ cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
+ test "$cf_top_incdir" = "$cf_add_incdir" && break
+ cf_add_incdir="$cf_top_incdir"
+ else
+ break
+ fi
+ fi
+ done
+ done
+fi
+
+ else
+{ echo "configure: error: cannot find socks library under $cf_cv_use_libsocks" 1>&2; exit 1; }
+ fi
+ if test -d $cf_searchpath/lib; then
+
+if test -n "$cf_searchpath/lib" ; then
+ for cf_add_libdir in $cf_searchpath/lib
+ do
+ if test $cf_add_libdir = /usr/lib ; then
+ :
+ elif test -d $cf_add_libdir
+ then
+ cf_have_libdir=no
+ if test -n "$LDFLAGS$LIBS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_libdir in $LDFLAGS $LIBS ; do
+ if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
+ cf_have_libdir=yes; break
+ fi
+ done
+ fi
+ if test "$cf_have_libdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
+
+echo "${as_me-configure}:4610: testing adding $cf_add_libdir to library-path ..." 1>&5
+
+
+ LDFLAGS="-L$cf_add_libdir $LDFLAGS"
+ fi
+ fi
+ done
+fi
+
+ elif test -d $cf_searchpath ; then
+
+if test -n "$cf_searchpath" ; then
+ for cf_add_libdir in $cf_searchpath
+ do
+ if test $cf_add_libdir = /usr/lib ; then
+ :
+ elif test -d $cf_add_libdir
+ then
+ cf_have_libdir=no
+ if test -n "$LDFLAGS$LIBS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_libdir in $LDFLAGS $LIBS ; do
+ if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
+ cf_have_libdir=yes; break
+ fi
+ done
+ fi
+ if test "$cf_have_libdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
+
+echo "${as_me-configure}:4640: testing adding $cf_add_libdir to library-path ..." 1>&5
+
+
+ LDFLAGS="-L$cf_add_libdir $LDFLAGS"
+ fi
+ fi
+ done
+fi
+
+ else
+{ echo "configure: error: cannot find socks library under $cf_cv_use_libsocks" 1>&2; exit 1; }
+ fi
+done
+
+ ;;
+ esac
+
+
+
+# If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
+# will be set on completion of the AC_TRY_LINK below.
+cf_cv_header_path_socks=
+cf_cv_library_path_socks=
+
+
+echo "${as_me-configure}:4665: testing Starting FIND_LINKAGE(socks,) ..." 1>&5
+
+
+cat > conftest.$ac_ext <
+
+int main() {
+
+ Raccept((char *)0)
+
+; return 0; }
+EOF
+if { (eval echo configure:4680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ cf_cv_find_linkage_socks=yes
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+
+ cf_cv_find_linkage_socks=no
+
+
+echo "${as_me-configure}:4691: testing Searching for headers in FIND_LINKAGE(socks,) ..." 1>&5
+
+
+ cf_save_CPPFLAGS="$CPPFLAGS"
+ cf_test_CPPFLAGS="$CPPFLAGS"
+
+ cf_search=""
+
+
+test "/usr" != "$prefix" && \
+test -d "/usr" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under /usr"
+ test -d /usr/include && cf_search="$cf_search /usr/include"
+ test -d /usr/include/socks && cf_search="$cf_search /usr/include/socks"
+ test -d /usr/include/socks/include && cf_search="$cf_search /usr/include/socks/include"
+ test -d /usr/socks/include && cf_search="$cf_search /usr/socks/include"
+ test -d /usr/socks/include/socks && cf_search="$cf_search /usr/socks/include/socks"
+}
+
+
+test "$prefix" != "NONE" && \
+test -d "$prefix" && \
+ {
+ test -n "$verbose" && echo " ... testing for include-directories under $prefix"
+ test -d $prefix/include && cf_search="$cf_search $prefix/include"
+ test -d $prefix/include/socks && cf_search="$cf_search $prefix/include/socks"
+ test -d $prefix/include/socks/include && cf_search="$cf_search $prefix/include/socks/include"
+ test -d $prefix/socks/include && cf_search="$cf_search $prefix/socks/include"
+ test -d $prefix/socks/include/socks && cf_search="$cf_search $prefix/socks/include/socks"
+}
+
+
+test "/usr/local" != "$prefix" && \
+test -d "/usr/local" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
+ test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
+ test -d /usr/local/include/socks && cf_search="$cf_search /usr/local/include/socks"
+ test -d /usr/local/include/socks/include && cf_search="$cf_search /usr/local/include/socks/include"
+ test -d /usr/local/socks/include && cf_search="$cf_search /usr/local/socks/include"
+ test -d /usr/local/socks/include/socks && cf_search="$cf_search /usr/local/socks/include/socks"
+}
+
+
+test "/opt" != "$prefix" && \
+test -d "/opt" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under /opt"
+ test -d /opt/include && cf_search="$cf_search /opt/include"
+ test -d /opt/include/socks && cf_search="$cf_search /opt/include/socks"
+ test -d /opt/include/socks/include && cf_search="$cf_search /opt/include/socks/include"
+ test -d /opt/socks/include && cf_search="$cf_search /opt/socks/include"
+ test -d /opt/socks/include/socks && cf_search="$cf_search /opt/socks/include/socks"
+}
+
+
+test "$HOME" != "$prefix" && \
+test -d "$HOME" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under $HOME"
+ test -d $HOME/include && cf_search="$cf_search $HOME/include"
+ test -d $HOME/include/socks && cf_search="$cf_search $HOME/include/socks"
+ test -d $HOME/include/socks/include && cf_search="$cf_search $HOME/include/socks/include"
+ test -d $HOME/socks/include && cf_search="$cf_search $HOME/socks/include"
+ test -d $HOME/socks/include/socks && cf_search="$cf_search $HOME/socks/include/socks"
+}
+
+
+test "$includedir" != NONE && \
+test "$includedir" != "/usr/include" && \
+test -d "$includedir" && {
+ test -d $includedir && cf_search="$cf_search $includedir"
+ test -d $includedir/socks && cf_search="$cf_search $includedir/socks"
+}
+
+test "$oldincludedir" != NONE && \
+test "$oldincludedir" != "/usr/include" && \
+test -d "$oldincludedir" && {
+ test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
+ test -d $oldincludedir/socks && cf_search="$cf_search $oldincludedir/socks"
+}
+
+
+ for cf_cv_header_path_socks in $cf_search
+ do
+ if test -d $cf_cv_header_path_socks ; then
+ test -n "$verbose" && echo " ... testing $cf_cv_header_path_socks" 1>&6
+
+echo "${as_me-configure}:4780: testing ... testing $cf_cv_header_path_socks ..." 1>&5
+
+
+ CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_socks"
+ cat > conftest.$ac_ext <
+
+int main() {
+
+ Raccept((char *)0)
+
+; return 0; }
+EOF
+if { (eval echo configure:4796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+
+ test -n "$verbose" && echo " ... found socks headers in $cf_cv_header_path_socks" 1>&6
+
+echo "${as_me-configure}:4801: testing ... found socks headers in $cf_cv_header_path_socks ..." 1>&5
+
+
+ cf_cv_find_linkage_socks=maybe
+ cf_test_CPPFLAGS="$CPPFLAGS"
+ break
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+
+ CPPFLAGS="$cf_save_CPPFLAGS"
+
+fi
+rm -f conftest*
+ fi
+ done
+
+ if test "$cf_cv_find_linkage_socks" = maybe ; then
+
+
+echo "${as_me-configure}:4822: testing Searching for socks library in FIND_LINKAGE(socks,) ..." 1>&5
+
+
+ cf_save_LIBS="$LIBS"
+ cf_save_LDFLAGS="$LDFLAGS"
+
+
+
+ if test "$cf_cv_find_linkage_socks" != yes ; then
+ cf_search=""
+
+
+test "/usr" != "$prefix" && \
+test -d "/usr" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under /usr"
+ test -d /usr/lib && cf_search="$cf_search /usr/lib"
+ test -d /usr/lib/socks && cf_search="$cf_search /usr/lib/socks"
+ test -d /usr/lib/socks/lib && cf_search="$cf_search /usr/lib/socks/lib"
+ test -d /usr/socks/lib && cf_search="$cf_search /usr/socks/lib"
+ test -d /usr/socks/lib/socks && cf_search="$cf_search /usr/socks/lib/socks"
+}
+
+
+test "$prefix" != "NONE" && \
+test -d "$prefix" && \
+ {
+ test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
+ test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
+ test -d $prefix/lib/socks && cf_search="$cf_search $prefix/lib/socks"
+ test -d $prefix/lib/socks/lib && cf_search="$cf_search $prefix/lib/socks/lib"
+ test -d $prefix/socks/lib && cf_search="$cf_search $prefix/socks/lib"
+ test -d $prefix/socks/lib/socks && cf_search="$cf_search $prefix/socks/lib/socks"
+}
+
+
+test "/usr/local" != "$prefix" && \
+test -d "/usr/local" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
+ test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
+ test -d /usr/local/lib/socks && cf_search="$cf_search /usr/local/lib/socks"
+ test -d /usr/local/lib/socks/lib && cf_search="$cf_search /usr/local/lib/socks/lib"
+ test -d /usr/local/socks/lib && cf_search="$cf_search /usr/local/socks/lib"
+ test -d /usr/local/socks/lib/socks && cf_search="$cf_search /usr/local/socks/lib/socks"
+}
+
+
+test "/opt" != "$prefix" && \
+test -d "/opt" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under /opt"
+ test -d /opt/lib && cf_search="$cf_search /opt/lib"
+ test -d /opt/lib/socks && cf_search="$cf_search /opt/lib/socks"
+ test -d /opt/lib/socks/lib && cf_search="$cf_search /opt/lib/socks/lib"
+ test -d /opt/socks/lib && cf_search="$cf_search /opt/socks/lib"
+ test -d /opt/socks/lib/socks && cf_search="$cf_search /opt/socks/lib/socks"
+}
+
+
+test "$HOME" != "$prefix" && \
+test -d "$HOME" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
+ test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
+ test -d $HOME/lib/socks && cf_search="$cf_search $HOME/lib/socks"
+ test -d $HOME/lib/socks/lib && cf_search="$cf_search $HOME/lib/socks/lib"
+ test -d $HOME/socks/lib && cf_search="$cf_search $HOME/socks/lib"
+ test -d $HOME/socks/lib/socks && cf_search="$cf_search $HOME/socks/lib/socks"
+}
+
+
+ for cf_cv_library_path_socks in $cf_search
+ do
+ if test -d $cf_cv_library_path_socks ; then
+ test -n "$verbose" && echo " ... testing $cf_cv_library_path_socks" 1>&6
+
+echo "${as_me-configure}:4899: testing ... testing $cf_cv_library_path_socks ..." 1>&5
+
+
+ CPPFLAGS="$cf_test_CPPFLAGS"
+ LIBS="-lsocks $cf_save_LIBS"
+ LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_socks"
+ cat > conftest.$ac_ext <
+
+int main() {
+
+ Raccept((char *)0)
+
+; return 0; }
+EOF
+if { (eval echo configure:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+
+ test -n "$verbose" && echo " ... found socks library in $cf_cv_library_path_socks" 1>&6
+
+echo "${as_me-configure}:4922: testing ... found socks library in $cf_cv_library_path_socks ..." 1>&5
+
+
+ cf_cv_find_linkage_socks=yes
+ cf_cv_library_file_socks="-lsocks"
+ break
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+
+ CPPFLAGS="$cf_save_CPPFLAGS"
+ LIBS="$cf_save_LIBS"
+ LDFLAGS="$cf_save_LDFLAGS"
+
+fi
+rm -f conftest*
+ fi
+ done
+ LIBS="$cf_save_LIBS"
+ CPPFLAGS="$cf_save_CPPFLAGS"
+ LDFLAGS="$cf_save_LDFLAGS"
+ fi
+
+ else
+ cf_cv_find_linkage_socks=no
+ fi
+
+fi
+rm -f conftest*
+
+if test "$cf_cv_find_linkage_socks" = yes ; then
+cf_cv_have_socks=yes
+else
+cf_cv_have_socks=no
+fi
+
+
+ if test "$cf_cv_have_socks" = yes ; then
+ cat >> confdefs.h <<\EOF
+#define SOCKS 1
+EOF
+
+
+ cat >> confdefs.h <<\EOF
+#define accept Raccept
+EOF
+
+ cat >> confdefs.h <<\EOF
+#define bind Rbind
+EOF
+
+ cat >> confdefs.h <<\EOF
+#define connect Rconnect
+EOF
+
+ cat >> confdefs.h <<\EOF
+#define getpeername Rgetpeername
+EOF
+
+ cat >> confdefs.h <<\EOF
+#define getsockname Rgetsockname
+EOF
+
+ cat >> confdefs.h <<\EOF
+#define listen Rlisten
+EOF
+
+ cat >> confdefs.h <<\EOF
+#define recvfrom Rrecvfrom
+EOF
+
+ cat >> confdefs.h <<\EOF
+#define select Rselect
+EOF
+
+
+
+if test -n "$cf_cv_header_path_socks" ; then
+ for cf_add_incdir in $cf_cv_header_path_socks
+ do
+ while test $cf_add_incdir != /usr/include
+ do
+ if test -d $cf_add_incdir
+ then
+ cf_have_incdir=no
+ if test -n "$CFLAGS$CPPFLAGS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
+ if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
+ cf_have_incdir=yes; break
+ fi
+ done
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ if test "$cf_add_incdir" = /usr/local/include ; then
+ if test "$GCC" = yes
+ then
+ cf_save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
+ cat > conftest.$ac_ext <
+int main() {
+printf("Hello")
+; return 0; }
+EOF
+if { (eval echo configure:5031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ :
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ cf_have_incdir=yes
+fi
+rm -f conftest*
+ CPPFLAGS=$cf_save_CPPFLAGS
+ fi
+ fi
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
+
+echo "${as_me-configure}:5048: testing adding $cf_add_incdir to include-path ..." 1>&5
+
+
+ CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
+
+ cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
+ test "$cf_top_incdir" = "$cf_add_incdir" && break
+ cf_add_incdir="$cf_top_incdir"
+ else
+ break
+ fi
+ fi
+ done
+ done
+fi
+
+
+if test -n "$cf_cv_library_path_socks" ; then
+ for cf_add_libdir in $cf_cv_library_path_socks
+ do
+ if test $cf_add_libdir = /usr/lib ; then
+ :
+ elif test -d $cf_add_libdir
+ then
+ cf_have_libdir=no
+ if test -n "$LDFLAGS$LIBS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_libdir in $LDFLAGS $LIBS ; do
+ if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
+ cf_have_libdir=yes; break
+ fi
+ done
+ fi
+ if test "$cf_have_libdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
+
+echo "${as_me-configure}:5084: testing adding $cf_add_libdir to library-path ..." 1>&5
+
+
+ LDFLAGS="-L$cf_add_libdir $LDFLAGS"
+ fi
+ fi
+ done
+fi
+
+ LIBS="$LIBS -lsocks"
+ else
+ { echo "configure: error: cannot link with socks library" 1>&2; exit 1; }
+ fi
+
+else
+
+cf_test_netlibs=no
+echo $ac_n "checking for network libraries""... $ac_c" 1>&6
+echo "configure:5102: checking for network libraries" >&5
+if eval "test \"`echo '$''{'cf_cv_netlibs'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+
+echo "$ac_t""working..." 1>&6
+cf_cv_netlibs=""
+cf_test_netlibs=yes
+for ac_func in gethostname
+do
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+echo "configure:5113: checking for $ac_func" >&5
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char $ac_func();
+
+int main() {
+
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+choke me
+#else
+$ac_func();
+#endif
+
+; return 0; }
+EOF
+if { (eval echo configure:5141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_func_$ac_func=no"
+fi
+rm -f conftest*
+fi
+
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ cat >> confdefs.h <&6
+
+echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6
+echo "configure:5164: checking for gethostname in -lnsl" >&5
+ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-lnsl $cf_cv_netlibs $LIBS"
+cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=no"
+fi
+rm -f conftest*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+
+
+cf_tr_func=`echo "gethostname" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
+
+ cat >> confdefs.h <&6
-echo "configure:4583: checking for gethostname in -lsocket" >&5
+echo "configure:5216: checking for gethostname in -lsocket" >&5
ac_lib_var=`echo socket'_'gethostname | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -4587,7 +5220,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $cf_cv_netlibs $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -4643,7 +5276,7 @@ done
# I don't know the entrypoints - 97/7/22 TD
# AC_HAVE_LIBRARY(inet,cf_cv_netlibs="-linet $cf_cv_netlibs")
echo $ac_n "checking for main in -linet""... $ac_c" 1>&6
-echo "configure:4647: checking for main in -linet" >&5
+echo "configure:5280: checking for main in -linet" >&5
ac_lib_var=`echo inet'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -4651,14 +5284,14 @@ else
ac_save_LIBS="$LIBS"
LIBS="-linet $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -4683,12 +5316,12 @@ if test "$ac_cv_func_lsocket" != no ; th
for ac_func in socket
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:4687: checking for $ac_func" >&5
+echo "configure:5320: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -4734,7 +5367,7 @@ else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
-echo "configure:4738: checking for socket in -lsocket" >&5
+echo "configure:5371: checking for socket in -lsocket" >&5
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -4742,7 +5375,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $cf_cv_netlibs $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -4786,7 +5419,7 @@ else
echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
-echo "configure:4790: checking for socket in -lbsd" >&5
+echo "configure:5423: checking for socket in -lbsd" >&5
ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -4794,7 +5427,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lbsd $cf_cv_netlibs $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -4850,12 +5483,12 @@ fi
for ac_func in gethostbyname
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:4854: checking for $ac_func" >&5
+echo "configure:5487: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -4901,7 +5534,7 @@ else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
-echo "configure:4905: checking for gethostbyname in -lnsl" >&5
+echo "configure:5538: checking for gethostbyname in -lnsl" >&5
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -4909,7 +5542,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lnsl $cf_cv_netlibs $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -4961,12 +5594,12 @@ done
for ac_func in strcasecmp
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:4965: checking for $ac_func" >&5
+echo "configure:5598: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -5012,7 +5645,7 @@ else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
-echo "configure:5016: checking for strcasecmp in -lresolv" >&5
+echo "configure:5649: checking for strcasecmp in -lresolv" >&5
ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -5020,7 +5653,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lresolv $cf_cv_netlibs $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -5076,24 +5709,221 @@ test $cf_test_netlibs = no && echo "$cf_
if test "x$cf_cv_use_libsocks5" != xno ; then
-case "$cf_cv_use_libsocks5" in #(vi
-no|yes) #(vi
- ;;
-*)
- if test -d $cf_cv_use_libsocks5 ; then
- if test -d $cf_cv_use_libsocks5/include ; then
- CPPFLAGS="$CPPFLAGS -I$cf_cv_use_libsocks5/include"
- LIBS="$LIBS -L$cf_cv_use_libsocks5/lib"
- else
- LIBS="$LIBS -L$cf_cv_use_libsocks5"
- test -d $cf_cv_use_libsocks5/../include && CPPFLAGS="$CPPFLAGS -I$cf_cv_use_libsocks5/../include"
+
+ case "$cf_cv_use_libsocks5" in #(vi
+ no) #(vi
+ ;;
+ yes) #(vi
+ ;;
+ *)
+
+for cf_searchpath in `echo "$cf_cv_use_libsocks5" | tr : ' '`; do
+ if test -d $cf_searchpath/include; then
+
+if test -n "$cf_searchpath/include" ; then
+ for cf_add_incdir in $cf_searchpath/include
+ do
+ while test $cf_add_incdir != /usr/include
+ do
+ if test -d $cf_add_incdir
+ then
+ cf_have_incdir=no
+ if test -n "$CFLAGS$CPPFLAGS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
+ if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
+ cf_have_incdir=yes; break
+ fi
+ done
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ if test "$cf_add_incdir" = /usr/local/include ; then
+ if test "$GCC" = yes
+ then
+ cf_save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
+ cat > conftest.$ac_ext <
+int main() {
+printf("Hello")
+; return 0; }
+EOF
+if { (eval echo configure:5755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ :
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ cf_have_incdir=yes
+fi
+rm -f conftest*
+ CPPFLAGS=$cf_save_CPPFLAGS
+ fi
+ fi
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
+
+echo "${as_me-configure}:5772: testing adding $cf_add_incdir to include-path ..." 1>&5
+
+
+ CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
+
+ cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
+ test "$cf_top_incdir" = "$cf_add_incdir" && break
+ cf_add_incdir="$cf_top_incdir"
+ else
+ break
+ fi
+ fi
+ done
+ done
+fi
+
+ elif test -d $cf_searchpath/../include ; then
+
+if test -n "$cf_searchpath/../include" ; then
+ for cf_add_incdir in $cf_searchpath/../include
+ do
+ while test $cf_add_incdir != /usr/include
+ do
+ if test -d $cf_add_incdir
+ then
+ cf_have_incdir=no
+ if test -n "$CFLAGS$CPPFLAGS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
+ if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
+ cf_have_incdir=yes; break
+ fi
+ done
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ if test "$cf_add_incdir" = /usr/local/include ; then
+ if test "$GCC" = yes
+ then
+ cf_save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
+ cat > conftest.$ac_ext <
+int main() {
+printf("Hello")
+; return 0; }
+EOF
+if { (eval echo configure:5821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ :
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ cf_have_incdir=yes
+fi
+rm -f conftest*
+ CPPFLAGS=$cf_save_CPPFLAGS
+ fi
+ fi
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
+
+echo "${as_me-configure}:5838: testing adding $cf_add_incdir to include-path ..." 1>&5
+
+
+ CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
+
+ cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
+ test "$cf_top_incdir" = "$cf_add_incdir" && break
+ cf_add_incdir="$cf_top_incdir"
+ else
+ break
+ fi
+ fi
+ done
+ done
+fi
+
+ else
+{ echo "configure: error: cannot find socks5 library under $cf_cv_use_libsocks5" 1>&2; exit 1; }
+ fi
+ if test -d $cf_searchpath/lib; then
+
+if test -n "$cf_searchpath/lib" ; then
+ for cf_add_libdir in $cf_searchpath/lib
+ do
+ if test $cf_add_libdir = /usr/lib ; then
+ :
+ elif test -d $cf_add_libdir
+ then
+ cf_have_libdir=no
+ if test -n "$LDFLAGS$LIBS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_libdir in $LDFLAGS $LIBS ; do
+ if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
+ cf_have_libdir=yes; break
+ fi
+ done
+ fi
+ if test "$cf_have_libdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
+
+echo "${as_me-configure}:5878: testing adding $cf_add_libdir to library-path ..." 1>&5
+
+
+ LDFLAGS="-L$cf_add_libdir $LDFLAGS"
+ fi
fi
- else
- echo "configure: warning: expected a directory: $cf_cv_use_libsocks5" 1>&2
- fi
- ;;
-esac
+ done
+fi
+
+ elif test -d $cf_searchpath ; then
+
+if test -n "$cf_searchpath" ; then
+ for cf_add_libdir in $cf_searchpath
+ do
+ if test $cf_add_libdir = /usr/lib ; then
+ :
+ elif test -d $cf_add_libdir
+ then
+ cf_have_libdir=no
+ if test -n "$LDFLAGS$LIBS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_libdir in $LDFLAGS $LIBS ; do
+ if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
+ cf_have_libdir=yes; break
+ fi
+ done
+ fi
+ if test "$cf_have_libdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
+
+echo "${as_me-configure}:5908: testing adding $cf_add_libdir to library-path ..." 1>&5
+
+
+ LDFLAGS="-L$cf_add_libdir $LDFLAGS"
+ fi
+ fi
+ done
+fi
+
+ else
+{ echo "configure: error: cannot find socks5 library under $cf_cv_use_libsocks5" 1>&2; exit 1; }
+ fi
+done
+
+ ;;
+ esac
+
+
LIBS="$LIBS -lsocks5"
+
cat >> confdefs.h <<\EOF
#define USE_SOCKS5 1
EOF
@@ -5102,11 +5932,12 @@ cat >> confdefs.h <<\EOF
#define SOCKS 1
EOF
+
echo $ac_n "checking if the socks library uses socks4 prefix""... $ac_c" 1>&6
-echo "configure:5107: checking if the socks library uses socks4 prefix" >&5
+echo "configure:5938: checking if the socks library uses socks4 prefix" >&5
cf_use_socks4=error
cat > conftest.$ac_ext <
@@ -5115,7 +5946,7 @@ int main() {
Rinit((char *)0)
; return 0; }
EOF
-if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define USE_SOCKS4_PREFIX 1
@@ -5127,14 +5958,14 @@ else
cat conftest.$ac_ext >&5
rm -rf conftest*
cat > conftest.$ac_ext <
int main() {
SOCKSinit((char *)0)
; return 0; }
EOF
-if { (eval echo configure:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_use_socks4=no
else
@@ -5147,6 +5978,7 @@ rm -f conftest*
fi
rm -f conftest*
echo "$ac_t""$cf_use_socks4" 1>&6
+
if test "$cf_use_socks4" = "yes" ; then
cat >> confdefs.h <<\EOF
#define accept Raccept
@@ -5198,10 +6030,11 @@ EOF
EOF
fi
+
echo $ac_n "checking if socks5p.h is available""... $ac_c" 1>&6
-echo "configure:5203: checking if socks5p.h is available" >&5
+echo "configure:6036: checking if socks5p.h is available" >&5
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_use_socks5p_h=yes
else
@@ -5222,6 +6055,7 @@ else
fi
rm -f conftest*
echo "$ac_t""$cf_use_socks5p_h" 1>&6
+
test "$cf_use_socks5p_h" = yes && cat >> confdefs.h <<\EOF
#define INCLUDE_PROTOTYPES 1
EOF
@@ -5237,17 +6071,17 @@ for ac_hdr in unistd.h fcntl.h sys/file.
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:5241: checking for $ac_hdr" >&5
+echo "configure:6075: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:5251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:6085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -5274,12 +6108,12 @@ fi
done
echo $ac_n "checking for fcntl""... $ac_c" 1>&6
-echo "configure:5278: checking for fcntl" >&5
+echo "configure:6112: checking for fcntl" >&5
if eval "test \"`echo '$''{'ac_cv_func_fcntl'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_fcntl=yes"
else
@@ -5322,12 +6156,12 @@ else
fi
echo $ac_n "checking for lockf""... $ac_c" 1>&6
-echo "configure:5326: checking for lockf" >&5
+echo "configure:6160: checking for lockf" >&5
if eval "test \"`echo '$''{'ac_cv_func_lockf'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_lockf=yes"
else
@@ -5370,12 +6204,12 @@ else
fi
echo $ac_n "checking for flock""... $ac_c" 1>&6
-echo "configure:5374: checking for flock" >&5
+echo "configure:6208: checking for flock" >&5
if eval "test \"`echo '$''{'ac_cv_func_flock'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_flock=yes"
else
@@ -5419,7 +6253,7 @@ fi
echo $ac_n "checking for file-locking functions""... $ac_c" 1>&6
-echo "configure:5423: checking for file-locking functions" >&5
+echo "configure:6257: checking for file-locking functions" >&5
if eval "test \"`echo '$''{'cf_cv_lockfile'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -5431,7 +6265,7 @@ if eval 'test ${ac_cv_func_'$cf_lock'+se
case $cf_lock in #(vi
fcntl) #(vi
cat > conftest.$ac_ext <
@@ -5459,7 +6293,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:5463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
:
else
echo "configure: failed program was:" >&5
@@ -5471,7 +6305,7 @@ rm -f conftest*
;;
lockf) #(vi
cat > conftest.$ac_ext <
@@ -5491,7 +6325,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:5495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
:
else
echo "configure: failed program was:" >&5
@@ -5503,7 +6337,7 @@ rm -f conftest*
;;
flock)
cat > conftest.$ac_ext <
@@ -5526,7 +6360,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:5530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
:
else
echo "configure: failed program was:" >&5
@@ -5546,8 +6380,8 @@ fi
echo "$ac_t""$cf_cv_lockfile" 1>&6
-echo $ac_n "checking which locking method should be used""... $ac_c" 1>&6
-echo "configure:5551: checking which locking method should be used" >&5
+echo $ac_n "checking which locking method will be used""... $ac_c" 1>&6
+echo "configure:6385: checking which locking method will be used" >&5
### fcntl() is preferred, if the user just disables fcntl()
### without specifying an alternative lockf() is preferred
@@ -5611,12 +6445,13 @@ used_locking=`echo "$used_locking" | sed
EOF
else
- echo "configure: warning: None of fcntl()" 1>&2
+ echo "$ac_t""none" 1>&6;
+ echo "configure: warning: None of fcntl(), lockf(), flock() available" 1>&2
fi
echo $ac_n "checking for screen type""... $ac_c" 1>&6
-echo "configure:5620: checking for screen type" >&5
+echo "configure:6455: checking for screen type" >&5
# Check whether --with-screen or --without-screen was given.
if test "${with_screen+set}" = set; then
@@ -5632,7 +6467,7 @@ use_curses=no
use_ncurses=no
echo $ac_n "checking if you specified curses install-directory""... $ac_c" 1>&6
-echo "configure:5636: checking if you specified curses install-directory" >&5
+echo "configure:6471: checking if you specified curses install-directory" >&5
# Check whether --with-curses-dir or --without-curses-dir was given.
@@ -5695,7 +6530,7 @@ pdcurses) #(vi
;;
none)
echo $ac_n "checking if you want to use ncurses library""... $ac_c" 1>&6
-echo "configure:5699: checking if you want to use ncurses library" >&5
+echo "configure:6534: checking if you want to use ncurses library" >&5
# Check whether --with-ncurses or --without-ncurses was given.
if test "${with_ncurses+set}" = set; then
@@ -5708,7 +6543,7 @@ fi
echo "$ac_t""$use_ncurses" 1>&6
echo $ac_n "checking if you want curses rather than termcap interface""... $ac_c" 1>&6
-echo "configure:5712: checking if you want curses rather than termcap interface" >&5
+echo "configure:6547: checking if you want curses rather than termcap interface" >&5
# Check whether --enable-curses or --disable-curses was given.
if test "${enable_curses+set}" = set; then
@@ -5741,11 +6576,76 @@ EOF
cf_ncuhdr_root=ncurses
test -n "$cf_cv_curses_dir" && \
-test "$cf_cv_curses_dir" != "no" && \
-CPPFLAGS="-I$cf_cv_curses_dir/include -I$cf_cv_curses_dir/include/$cf_ncuhdr_root $CPPFLAGS"
+test "$cf_cv_curses_dir" != "no" && { \
+
+if test -n "$cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
+ for cf_add_incdir in $cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root
+ do
+ while test $cf_add_incdir != /usr/include
+ do
+ if test -d $cf_add_incdir
+ then
+ cf_have_incdir=no
+ if test -n "$CFLAGS$CPPFLAGS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
+ if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
+ cf_have_incdir=yes; break
+ fi
+ done
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ if test "$cf_add_incdir" = /usr/local/include ; then
+ if test "$GCC" = yes
+ then
+ cf_save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
+ cat > conftest.$ac_ext <
+int main() {
+printf("Hello")
+; return 0; }
+EOF
+if { (eval echo configure:6613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ :
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ cf_have_incdir=yes
+fi
+rm -f conftest*
+ CPPFLAGS=$cf_save_CPPFLAGS
+ fi
+ fi
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
+
+echo "${as_me-configure}:6630: testing adding $cf_add_incdir to include-path ..." 1>&5
+
+
+ CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
+
+ cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
+ test "$cf_top_incdir" = "$cf_add_incdir" && break
+ cf_add_incdir="$cf_top_incdir"
+ else
+ break
+ fi
+ fi
+ done
+ done
+fi
+
+}
echo $ac_n "checking for $cf_ncuhdr_root header in include-path""... $ac_c" 1>&6
-echo "configure:5749: checking for $cf_ncuhdr_root header in include-path" >&5
+echo "configure:6649: checking for $cf_ncuhdr_root header in include-path" >&5
if eval "test \"`echo '$''{'cf_cv_ncurses_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -5756,7 +6656,7 @@ else
do
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_ncurses_h=$cf_header
@@ -5803,7 +6703,7 @@ if test "$cf_cv_ncurses_h" != no ; then
else
echo $ac_n "checking for $cf_ncuhdr_root include-path""... $ac_c" 1>&6
-echo "configure:5807: checking for $cf_ncuhdr_root include-path" >&5
+echo "configure:6707: checking for $cf_ncuhdr_root include-path" >&5
if eval "test \"`echo '$''{'cf_cv_ncurses_h2'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -5811,34 +6711,23 @@ else
test -n "$verbose" && echo
cf_search=""
-test -d $HOME && {
- test -n "$verbose" && echo " ... testing include-directories under $HOME"
- test -d $HOME/include && cf_search="$cf_search $HOME/include"
- test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
- test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
-}
-# For other stuff under the home directory, it should be sufficient to put
-# a symbolic link for $HOME/$cf_ncuhdr_root to the actual package location:
-test -d $HOME/$cf_ncuhdr_root && {
- test -n "$verbose" && echo " ... testing include-directories under $HOME/$cf_ncuhdr_root"
- test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
- test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
+test "/usr" != "$prefix" && \
+test -d "/usr" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under /usr"
+ test -d /usr/include && cf_search="$cf_search /usr/include"
+ test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
+ test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
+ test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
+ test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
}
-test "$prefix" != /usr/local && \
-test -d /usr/local && {
- test -n "$verbose" && echo " ... testing include-directories under /usr/local"
- test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
- test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
- test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
- test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
- test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
-}
-test "$prefix" != NONE && \
-test -d $prefix && {
- test -n "$verbose" && echo " ... testing include-directories under $prefix"
+test "$prefix" != "NONE" && \
+test -d "$prefix" && \
+ {
+ test -n "$verbose" && echo " ... testing for include-directories under $prefix"
test -d $prefix/include && cf_search="$cf_search $prefix/include"
test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
@@ -5846,25 +6735,43 @@ test -d $prefix && {
test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
}
-test "$prefix" != /opt && \
-test -d /opt && {
- test -n "$verbose" && echo " ... testing include-directories under /opt"
- test -d /opt/include && cf_search="$cf_search /opt/include"
- test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
- test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
- test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
- test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
-}
-
-test "$prefix" != /usr && \
-test -d /usr && {
- test -n "$verbose" && echo " ... testing include-directories under /usr"
- test -d /usr/include && cf_search="$cf_search /usr/include"
- test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
- test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
- test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
+
+test "/usr/local" != "$prefix" && \
+test -d "/usr/local" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
+ test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
+ test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
+ test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
+ test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
+ test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
+}
+
+
+test "/opt" != "$prefix" && \
+test -d "/opt" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under /opt"
+ test -d /opt/include && cf_search="$cf_search /opt/include"
+ test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
+ test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
+ test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
+ test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
+}
+
+
+test "$HOME" != "$prefix" && \
+test -d "$HOME" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under $HOME"
+ test -d $HOME/include && cf_search="$cf_search $HOME/include"
+ test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
+ test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
+ test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
+ test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
}
+
test "$includedir" != NONE && \
test "$includedir" != "/usr/include" && \
test -d "$includedir" && {
@@ -5885,46 +6792,69 @@ test -d "$oldincludedir" && {
for cf_incdir in $cf_search
do
-for cf_add_incdir in $cf_incdir
-do
- while true
+if test -n "$cf_incdir" ; then
+ for cf_add_incdir in $cf_incdir
+ do
+ while test $cf_add_incdir != /usr/include
do
- case $cf_add_incdir in
- /usr/include) # (vi
- ;;
- /usr/local/include) # (vi
+ if test -d $cf_add_incdir
+ then
+ cf_have_incdir=no
+ if test -n "$CFLAGS$CPPFLAGS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
+ if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
+ cf_have_incdir=yes; break
+ fi
+ done
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ if test "$cf_add_incdir" = /usr/local/include ; then
if test "$GCC" = yes
then
- cf_save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
- cat > conftest.$ac_ext < conftest.$ac_ext <
int main() {
printf("Hello")
; return 0; }
EOF
-if { (eval echo configure:5909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- CPPFLAGS="$cf_save_CPPFLAGS"
+ cf_have_incdir=yes
fi
rm -f conftest*
+ CPPFLAGS=$cf_save_CPPFLAGS
fi
- ;;
- *) # (vi
- CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
- ;;
- esac
- cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
- test "$cf_top_incdir" = "$cf_add_incdir" && break
- cf_add_incdir="$cf_top_incdir"
+ fi
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
+
+echo "${as_me-configure}:6844: testing adding $cf_add_incdir to include-path ..." 1>&5
+
+
+ CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
+
+ cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
+ test "$cf_top_incdir" = "$cf_add_incdir" && break
+ cf_add_incdir="$cf_top_incdir"
+ else
+ break
+ fi
+ fi
done
-done
+ done
+fi
for cf_header in \
ncurses.h \
@@ -5932,7 +6862,7 @@ done
do
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_ncurses_h2=$cf_header
@@ -5987,46 +6917,69 @@ echo "$ac_t""$cf_cv_ncurses_h2" 1>&6
cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
fi
-for cf_add_incdir in $cf_1st_incdir
-do
- while true
+if test -n "$cf_1st_incdir" ; then
+ for cf_add_incdir in $cf_1st_incdir
+ do
+ while test $cf_add_incdir != /usr/include
do
- case $cf_add_incdir in
- /usr/include) # (vi
- ;;
- /usr/local/include) # (vi
+ if test -d $cf_add_incdir
+ then
+ cf_have_incdir=no
+ if test -n "$CFLAGS$CPPFLAGS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
+ if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
+ cf_have_incdir=yes; break
+ fi
+ done
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ if test "$cf_add_incdir" = /usr/local/include ; then
if test "$GCC" = yes
then
- cf_save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
- cat > conftest.$ac_ext < conftest.$ac_ext <
int main() {
printf("Hello")
; return 0; }
EOF
-if { (eval echo configure:6011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- CPPFLAGS="$cf_save_CPPFLAGS"
+ cf_have_incdir=yes
fi
rm -f conftest*
+ CPPFLAGS=$cf_save_CPPFLAGS
fi
- ;;
- *) # (vi
- CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
- ;;
- esac
- cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
- test "$cf_top_incdir" = "$cf_add_incdir" && break
- cf_add_incdir="$cf_top_incdir"
+ fi
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
+
+echo "${as_me-configure}:6969: testing adding $cf_add_incdir to include-path ..." 1>&5
+
+
+ CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
+
+ cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
+ test "$cf_top_incdir" = "$cf_add_incdir" && break
+ cf_add_incdir="$cf_top_incdir"
+ else
+ break
+ fi
+ fi
done
-done
+ done
+fi
fi
@@ -6060,7 +7013,7 @@ esac
echo $ac_n "checking for terminfo header""... $ac_c" 1>&6
-echo "configure:6064: checking for terminfo header" >&5
+echo "configure:7017: checking for terminfo header" >&5
if eval "test \"`echo '$''{'cf_cv_term_header'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -6077,7 +7030,7 @@ esac
for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
do
cat > conftest.$ac_ext <
#include <${cf_cv_ncurses_header-curses.h}>
@@ -6087,7 +7040,7 @@ int main() {
int x = auto_left_margin
; return 0; }
EOF
-if { (eval echo configure:6091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_term_header="$cf_test"
@@ -6142,7 +7095,7 @@ EOF
echo $ac_n "checking for ncurses version""... $ac_c" 1>&6
-echo "configure:6146: checking for ncurses version" >&5
+echo "configure:7099: checking for ncurses version" >&5
if eval "test \"`echo '$''{'cf_cv_ncurses_version'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -6168,7 +7121,7 @@ Autoconf "old"
#endif
EOF
cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
- { (eval echo configure:6172: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
+ { (eval echo configure:7125: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
if test -f conftest.out ; then
cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
@@ -6177,7 +7130,7 @@ EOF
else
cat > conftest.$ac_ext <
@@ -6198,10 +7151,10 @@ int main()
make an error
# endif
#endif
- exit(0);
+ ${cf_cv_main_return-return}(0);
}
EOF
-if { (eval echo configure:6205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:7158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
cf_cv_ncurses_version=`cat $cf_tempfile`
@@ -6232,7 +7185,7 @@ cf_nculib_root=ncurses
cf_ncurses_LIBS=""
cf_ncurses_SAVE="$LIBS"
echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
-echo "configure:6236: checking for Gpm_Open in -lgpm" >&5
+echo "configure:7189: checking for Gpm_Open in -lgpm" >&5
ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -6240,7 +7193,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lgpm $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -6267,7 +7220,7 @@ fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
echo $ac_n "checking for initscr in -lgpm""... $ac_c" 1>&6
-echo "configure:6271: checking for initscr in -lgpm" >&5
+echo "configure:7224: checking for initscr in -lgpm" >&5
ac_lib_var=`echo gpm'_'initscr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -6275,7 +7228,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lgpm $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -6318,7 +7271,7 @@ freebsd*)
# version of ncurses (but it should do no harm, since it's static).
if test "$cf_nculib_root" = ncurses ; then
echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
-echo "configure:6322: checking for tgoto in -lmytinfo" >&5
+echo "configure:7275: checking for tgoto in -lmytinfo" >&5
ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -6326,7 +7279,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lmytinfo $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -6365,18 +7318,47 @@ LIBS="$cf_ncurses_LIBS $LIBS"
if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
then
- LIBS="-L$cf_cv_curses_dir/lib -l$cf_nculib_root $LIBS"
+
+if test -n "$cf_cv_curses_dir/lib" ; then
+ for cf_add_libdir in $cf_cv_curses_dir/lib
+ do
+ if test $cf_add_libdir = /usr/lib ; then
+ :
+ elif test -d $cf_add_libdir
+ then
+ cf_have_libdir=no
+ if test -n "$LDFLAGS$LIBS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_libdir in $LDFLAGS $LIBS ; do
+ if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
+ cf_have_libdir=yes; break
+ fi
+ done
+ fi
+ if test "$cf_have_libdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
+
+echo "${as_me-configure}:7342: testing adding $cf_add_libdir to library-path ..." 1>&5
+
+
+ LDFLAGS="-L$cf_add_libdir $LDFLAGS"
+ fi
+ fi
+ done
+fi
+
+ LIBS="-l$cf_nculib_root $LIBS"
else
eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
cf_libdir=""
echo $ac_n "checking for initscr""... $ac_c" 1>&6
-echo "configure:6375: checking for initscr" >&5
+echo "configure:7357: checking for initscr" >&5
if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_initscr=yes"
else
@@ -6419,17 +7401,17 @@ else
cf_save_LIBS="$LIBS"
echo $ac_n "checking for initscr in -l$cf_nculib_root""... $ac_c" 1>&6
-echo "configure:6423: checking for initscr in -l$cf_nculib_root" >&5
+echo "configure:7405: checking for initscr in -l$cf_nculib_root" >&5
LIBS="-l$cf_nculib_root $LIBS"
cat > conftest.$ac_ext <
int main() {
initscr()
; return 0; }
EOF
-if { (eval echo configure:6433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
@@ -6441,34 +7423,23 @@ else
echo "$ac_t""no" 1>&6
cf_search=""
-test -d $HOME && {
- test -n "$verbose" && echo " ... testing lib-directories under $HOME"
- test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
- test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
- test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
-}
-# For other stuff under the home directory, it should be sufficient to put
-# a symbolic link for $HOME/$cf_nculib_root to the actual package location:
-test -d $HOME/$cf_nculib_root && {
- test -n "$verbose" && echo " ... testing lib-directories under $HOME/$cf_nculib_root"
- test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
- test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
+test "/usr" != "$prefix" && \
+test -d "/usr" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under /usr"
+ test -d /usr/lib && cf_search="$cf_search /usr/lib"
+ test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
+ test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
+ test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
+ test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
}
-test "$prefix" != /usr/local && \
-test -d /usr/local && {
- test -n "$verbose" && echo " ... testing lib-directories under /usr/local"
- test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
- test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
- test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
- test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
- test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
-}
-test "$prefix" != NONE && \
-test -d $prefix && {
- test -n "$verbose" && echo " ... testing lib-directories under $prefix"
+test "$prefix" != "NONE" && \
+test -d "$prefix" && \
+ {
+ test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
@@ -6476,39 +7447,57 @@ test -d $prefix && {
test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
}
-test "$prefix" != /opt && \
-test -d /opt && {
- test -n "$verbose" && echo " ... testing lib-directories under /opt"
- test -d /opt/lib && cf_search="$cf_search /opt/lib"
- test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
- test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
- test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
- test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
-}
-
-test "$prefix" != /usr && \
-test -d /usr && {
- test -n "$verbose" && echo " ... testing lib-directories under /usr"
- test -d /usr/lib && cf_search="$cf_search /usr/lib"
- test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
- test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
- test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
+
+test "/usr/local" != "$prefix" && \
+test -d "/usr/local" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
+ test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
+ test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
+ test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
+ test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
+ test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
+}
+
+
+test "/opt" != "$prefix" && \
+test -d "/opt" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under /opt"
+ test -d /opt/lib && cf_search="$cf_search /opt/lib"
+ test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
+ test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
+ test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
+ test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
+}
+
+
+test "$HOME" != "$prefix" && \
+test -d "$HOME" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
+ test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
+ test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
+ test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
+ test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
+ test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
}
+
for cf_libdir in $cf_search
do
echo $ac_n "checking for -l$cf_nculib_root in $cf_libdir""... $ac_c" 1>&6
-echo "configure:6502: checking for -l$cf_nculib_root in $cf_libdir" >&5
+echo "configure:7491: checking for -l$cf_nculib_root in $cf_libdir" >&5
LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
cat > conftest.$ac_ext <
int main() {
initscr()
; return 0; }
EOF
-if { (eval echo configure:6512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
@@ -6539,7 +7528,7 @@ fi
if test -n "$cf_ncurses_LIBS" ; then
echo $ac_n "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS""... $ac_c" 1>&6
-echo "configure:6543: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
+echo "configure:7532: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
cf_ncurses_SAVE="$LIBS"
for p in $cf_ncurses_LIBS ; do
q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
@@ -6548,14 +7537,14 @@ echo "configure:6543: checking if we can
fi
done
cat > conftest.$ac_ext <
int main() {
initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
; return 0; }
EOF
-if { (eval echo configure:6559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
else
@@ -6582,9 +7571,9 @@ EOF
for cf_hdr in stdlib.h wchar.h wctype.h
do
echo $ac_n "checking for $cf_hdr""... $ac_c" 1>&6
-echo "configure:6586: checking for $cf_hdr" >&5
+echo "configure:7575: checking for $cf_hdr" >&5
cat > conftest.$ac_ext <
@@ -6592,7 +7581,7 @@ echo "configure:6586: checking for $cf_h
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:6596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:7585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -6619,12 +7608,12 @@ done
echo $ac_n "checking for wide char and multibyte support""... $ac_c" 1>&6
-echo "configure:6623: checking for wide char and multibyte support" >&5
+echo "configure:7612: checking for wide char and multibyte support" >&5
if eval "test \"`echo '$''{'am_cv_multibyte_able'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#ifdef HAVE_STDLIB_H
@@ -6660,7 +7649,7 @@ char icb[5] = {0xa4, 0xa4, 0xa4, 0xe5, 0
wcsncat(wcb2, wcb, 5);
; return 0; }
EOF
-if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
am_cv_multibyte_able=yes
else
@@ -6670,7 +7659,7 @@ else
cf_save_LIBS="$LIBS"
LIBS="-lutf8 $LIBS"
cat > conftest.$ac_ext <
int main() {
@@ -6696,7 +7685,7 @@ char icb[5] = {0xa4, 0xa4, 0xa4, 0xe5, 0
wcsncat(wcb2, wcb, 5);
; return 0; }
EOF
-if { (eval echo configure:6700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
am_cv_multibyte_able=libutf8
else
@@ -6733,11 +7722,76 @@ EOF
cf_ncuhdr_root=ncursesw
test -n "$cf_cv_curses_dir" && \
-test "$cf_cv_curses_dir" != "no" && \
-CPPFLAGS="-I$cf_cv_curses_dir/include -I$cf_cv_curses_dir/include/$cf_ncuhdr_root $CPPFLAGS"
+test "$cf_cv_curses_dir" != "no" && { \
+
+if test -n "$cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
+ for cf_add_incdir in $cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root
+ do
+ while test $cf_add_incdir != /usr/include
+ do
+ if test -d $cf_add_incdir
+ then
+ cf_have_incdir=no
+ if test -n "$CFLAGS$CPPFLAGS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
+ if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
+ cf_have_incdir=yes; break
+ fi
+ done
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ if test "$cf_add_incdir" = /usr/local/include ; then
+ if test "$GCC" = yes
+ then
+ cf_save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
+ cat > conftest.$ac_ext <
+int main() {
+printf("Hello")
+; return 0; }
+EOF
+if { (eval echo configure:7759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ :
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ cf_have_incdir=yes
+fi
+rm -f conftest*
+ CPPFLAGS=$cf_save_CPPFLAGS
+ fi
+ fi
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
+
+echo "${as_me-configure}:7776: testing adding $cf_add_incdir to include-path ..." 1>&5
+
+
+ CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
+
+ cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
+ test "$cf_top_incdir" = "$cf_add_incdir" && break
+ cf_add_incdir="$cf_top_incdir"
+ else
+ break
+ fi
+ fi
+ done
+ done
+fi
+
+}
echo $ac_n "checking for $cf_ncuhdr_root header in include-path""... $ac_c" 1>&6
-echo "configure:6741: checking for $cf_ncuhdr_root header in include-path" >&5
+echo "configure:7795: checking for $cf_ncuhdr_root header in include-path" >&5
if eval "test \"`echo '$''{'cf_cv_ncurses_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -6748,7 +7802,7 @@ else
do
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_ncurses_h=$cf_header
@@ -6803,7 +7857,7 @@ if test "$cf_cv_ncurses_h" != no ; then
else
echo $ac_n "checking for $cf_ncuhdr_root include-path""... $ac_c" 1>&6
-echo "configure:6807: checking for $cf_ncuhdr_root include-path" >&5
+echo "configure:7861: checking for $cf_ncuhdr_root include-path" >&5
if eval "test \"`echo '$''{'cf_cv_ncurses_h2'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -6811,34 +7865,23 @@ else
test -n "$verbose" && echo
cf_search=""
-test -d $HOME && {
- test -n "$verbose" && echo " ... testing include-directories under $HOME"
- test -d $HOME/include && cf_search="$cf_search $HOME/include"
- test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
- test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
-}
-# For other stuff under the home directory, it should be sufficient to put
-# a symbolic link for $HOME/$cf_ncuhdr_root to the actual package location:
-test -d $HOME/$cf_ncuhdr_root && {
- test -n "$verbose" && echo " ... testing include-directories under $HOME/$cf_ncuhdr_root"
- test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
- test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
+test "/usr" != "$prefix" && \
+test -d "/usr" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under /usr"
+ test -d /usr/include && cf_search="$cf_search /usr/include"
+ test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
+ test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
+ test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
+ test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
}
-test "$prefix" != /usr/local && \
-test -d /usr/local && {
- test -n "$verbose" && echo " ... testing include-directories under /usr/local"
- test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
- test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
- test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
- test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
- test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
-}
-test "$prefix" != NONE && \
-test -d $prefix && {
- test -n "$verbose" && echo " ... testing include-directories under $prefix"
+test "$prefix" != "NONE" && \
+test -d "$prefix" && \
+ {
+ test -n "$verbose" && echo " ... testing for include-directories under $prefix"
test -d $prefix/include && cf_search="$cf_search $prefix/include"
test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
@@ -6846,25 +7889,43 @@ test -d $prefix && {
test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
}
-test "$prefix" != /opt && \
-test -d /opt && {
- test -n "$verbose" && echo " ... testing include-directories under /opt"
- test -d /opt/include && cf_search="$cf_search /opt/include"
- test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
- test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
- test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
- test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
-}
-
-test "$prefix" != /usr && \
-test -d /usr && {
- test -n "$verbose" && echo " ... testing include-directories under /usr"
- test -d /usr/include && cf_search="$cf_search /usr/include"
- test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
- test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
- test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
+
+test "/usr/local" != "$prefix" && \
+test -d "/usr/local" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
+ test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
+ test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
+ test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
+ test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
+ test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
+}
+
+
+test "/opt" != "$prefix" && \
+test -d "/opt" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under /opt"
+ test -d /opt/include && cf_search="$cf_search /opt/include"
+ test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
+ test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
+ test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
+ test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
+}
+
+
+test "$HOME" != "$prefix" && \
+test -d "$HOME" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under $HOME"
+ test -d $HOME/include && cf_search="$cf_search $HOME/include"
+ test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
+ test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
+ test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
+ test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
}
+
test "$includedir" != NONE && \
test "$includedir" != "/usr/include" && \
test -d "$includedir" && {
@@ -6885,46 +7946,69 @@ test -d "$oldincludedir" && {
for cf_incdir in $cf_search
do
-for cf_add_incdir in $cf_incdir
-do
- while true
+if test -n "$cf_incdir" ; then
+ for cf_add_incdir in $cf_incdir
+ do
+ while test $cf_add_incdir != /usr/include
do
- case $cf_add_incdir in
- /usr/include) # (vi
- ;;
- /usr/local/include) # (vi
+ if test -d $cf_add_incdir
+ then
+ cf_have_incdir=no
+ if test -n "$CFLAGS$CPPFLAGS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
+ if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
+ cf_have_incdir=yes; break
+ fi
+ done
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ if test "$cf_add_incdir" = /usr/local/include ; then
if test "$GCC" = yes
then
- cf_save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
- cat > conftest.$ac_ext < conftest.$ac_ext <
int main() {
printf("Hello")
; return 0; }
EOF
-if { (eval echo configure:6909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- CPPFLAGS="$cf_save_CPPFLAGS"
+ cf_have_incdir=yes
fi
rm -f conftest*
+ CPPFLAGS=$cf_save_CPPFLAGS
fi
- ;;
- *) # (vi
- CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
- ;;
- esac
- cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
- test "$cf_top_incdir" = "$cf_add_incdir" && break
- cf_add_incdir="$cf_top_incdir"
+ fi
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
+
+echo "${as_me-configure}:7998: testing adding $cf_add_incdir to include-path ..." 1>&5
+
+
+ CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
+
+ cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
+ test "$cf_top_incdir" = "$cf_add_incdir" && break
+ cf_add_incdir="$cf_top_incdir"
+ else
+ break
+ fi
+ fi
done
-done
+ done
+fi
for cf_header in \
ncurses.h \
@@ -6932,7 +8016,7 @@ done
do
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_ncurses_h2=$cf_header
@@ -6987,46 +8071,69 @@ echo "$ac_t""$cf_cv_ncurses_h2" 1>&6
cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
fi
-for cf_add_incdir in $cf_1st_incdir
-do
- while true
+if test -n "$cf_1st_incdir" ; then
+ for cf_add_incdir in $cf_1st_incdir
+ do
+ while test $cf_add_incdir != /usr/include
do
- case $cf_add_incdir in
- /usr/include) # (vi
- ;;
- /usr/local/include) # (vi
+ if test -d $cf_add_incdir
+ then
+ cf_have_incdir=no
+ if test -n "$CFLAGS$CPPFLAGS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
+ if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
+ cf_have_incdir=yes; break
+ fi
+ done
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ if test "$cf_add_incdir" = /usr/local/include ; then
if test "$GCC" = yes
then
- cf_save_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
- cat > conftest.$ac_ext < conftest.$ac_ext <
int main() {
printf("Hello")
; return 0; }
EOF
-if { (eval echo configure:7011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
:
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
- CPPFLAGS="$cf_save_CPPFLAGS"
+ cf_have_incdir=yes
fi
rm -f conftest*
+ CPPFLAGS=$cf_save_CPPFLAGS
fi
- ;;
- *) # (vi
- CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
- ;;
- esac
- cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
- test "$cf_top_incdir" = "$cf_add_incdir" && break
- cf_add_incdir="$cf_top_incdir"
+ fi
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
+
+echo "${as_me-configure}:8123: testing adding $cf_add_incdir to include-path ..." 1>&5
+
+
+ CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
+
+ cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
+ test "$cf_top_incdir" = "$cf_add_incdir" && break
+ cf_add_incdir="$cf_top_incdir"
+ else
+ break
+ fi
+ fi
done
-done
+ done
+fi
fi
@@ -7060,7 +8167,7 @@ esac
echo $ac_n "checking for terminfo header""... $ac_c" 1>&6
-echo "configure:7064: checking for terminfo header" >&5
+echo "configure:8171: checking for terminfo header" >&5
if eval "test \"`echo '$''{'cf_cv_term_header'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -7077,7 +8184,7 @@ esac
for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
do
cat > conftest.$ac_ext <
#include <${cf_cv_ncurses_header-curses.h}>
@@ -7087,7 +8194,7 @@ int main() {
int x = auto_left_margin
; return 0; }
EOF
-if { (eval echo configure:7091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_term_header="$cf_test"
@@ -7142,7 +8249,7 @@ EOF
echo $ac_n "checking for ncurses version""... $ac_c" 1>&6
-echo "configure:7146: checking for ncurses version" >&5
+echo "configure:8253: checking for ncurses version" >&5
if eval "test \"`echo '$''{'cf_cv_ncurses_version'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -7168,7 +8275,7 @@ Autoconf "old"
#endif
EOF
cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
- { (eval echo configure:7172: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
+ { (eval echo configure:8279: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
if test -f conftest.out ; then
cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
@@ -7177,7 +8284,7 @@ EOF
else
cat > conftest.$ac_ext <
@@ -7198,10 +8305,10 @@ int main()
make an error
# endif
#endif
- exit(0);
+ ${cf_cv_main_return-return}(0);
}
EOF
-if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:8312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
cf_cv_ncurses_version=`cat $cf_tempfile`
@@ -7232,7 +8339,7 @@ cf_nculib_root=ncursesw
cf_ncurses_LIBS=""
cf_ncurses_SAVE="$LIBS"
echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
-echo "configure:7236: checking for Gpm_Open in -lgpm" >&5
+echo "configure:8343: checking for Gpm_Open in -lgpm" >&5
ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -7240,7 +8347,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lgpm $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -7267,7 +8374,7 @@ fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
echo $ac_n "checking for initscr in -lgpm""... $ac_c" 1>&6
-echo "configure:7271: checking for initscr in -lgpm" >&5
+echo "configure:8378: checking for initscr in -lgpm" >&5
ac_lib_var=`echo gpm'_'initscr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -7275,7 +8382,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lgpm $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -7318,7 +8425,7 @@ freebsd*)
# version of ncurses (but it should do no harm, since it's static).
if test "$cf_nculib_root" = ncurses ; then
echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
-echo "configure:7322: checking for tgoto in -lmytinfo" >&5
+echo "configure:8429: checking for tgoto in -lmytinfo" >&5
ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -7326,7 +8433,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lmytinfo $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -7365,18 +8472,47 @@ LIBS="$cf_ncurses_LIBS $LIBS"
if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
then
- LIBS="-L$cf_cv_curses_dir/lib -l$cf_nculib_root $LIBS"
+
+if test -n "$cf_cv_curses_dir/lib" ; then
+ for cf_add_libdir in $cf_cv_curses_dir/lib
+ do
+ if test $cf_add_libdir = /usr/lib ; then
+ :
+ elif test -d $cf_add_libdir
+ then
+ cf_have_libdir=no
+ if test -n "$LDFLAGS$LIBS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_libdir in $LDFLAGS $LIBS ; do
+ if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
+ cf_have_libdir=yes; break
+ fi
+ done
+ fi
+ if test "$cf_have_libdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
+
+echo "${as_me-configure}:8496: testing adding $cf_add_libdir to library-path ..." 1>&5
+
+
+ LDFLAGS="-L$cf_add_libdir $LDFLAGS"
+ fi
+ fi
+ done
+fi
+
+ LIBS="-l$cf_nculib_root $LIBS"
else
eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
cf_libdir=""
echo $ac_n "checking for initscr""... $ac_c" 1>&6
-echo "configure:7375: checking for initscr" >&5
+echo "configure:8511: checking for initscr" >&5
if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_initscr=yes"
else
@@ -7419,17 +8555,17 @@ else
cf_save_LIBS="$LIBS"
echo $ac_n "checking for initscr in -l$cf_nculib_root""... $ac_c" 1>&6
-echo "configure:7423: checking for initscr in -l$cf_nculib_root" >&5
+echo "configure:8559: checking for initscr in -l$cf_nculib_root" >&5
LIBS="-l$cf_nculib_root $LIBS"
cat > conftest.$ac_ext <
int main() {
initscr()
; return 0; }
EOF
-if { (eval echo configure:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
@@ -7441,34 +8577,23 @@ else
echo "$ac_t""no" 1>&6
cf_search=""
-test -d $HOME && {
- test -n "$verbose" && echo " ... testing lib-directories under $HOME"
- test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
- test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
- test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
-}
-# For other stuff under the home directory, it should be sufficient to put
-# a symbolic link for $HOME/$cf_nculib_root to the actual package location:
-test -d $HOME/$cf_nculib_root && {
- test -n "$verbose" && echo " ... testing lib-directories under $HOME/$cf_nculib_root"
- test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
- test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
+test "/usr" != "$prefix" && \
+test -d "/usr" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under /usr"
+ test -d /usr/lib && cf_search="$cf_search /usr/lib"
+ test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
+ test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
+ test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
+ test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
}
-test "$prefix" != /usr/local && \
-test -d /usr/local && {
- test -n "$verbose" && echo " ... testing lib-directories under /usr/local"
- test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
- test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
- test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
- test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
- test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
-}
-test "$prefix" != NONE && \
-test -d $prefix && {
- test -n "$verbose" && echo " ... testing lib-directories under $prefix"
+test "$prefix" != "NONE" && \
+test -d "$prefix" && \
+ {
+ test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
@@ -7476,39 +8601,57 @@ test -d $prefix && {
test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
}
-test "$prefix" != /opt && \
-test -d /opt && {
- test -n "$verbose" && echo " ... testing lib-directories under /opt"
- test -d /opt/lib && cf_search="$cf_search /opt/lib"
- test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
- test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
- test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
- test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
-}
-
-test "$prefix" != /usr && \
-test -d /usr && {
- test -n "$verbose" && echo " ... testing lib-directories under /usr"
- test -d /usr/lib && cf_search="$cf_search /usr/lib"
- test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
- test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
- test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
+
+test "/usr/local" != "$prefix" && \
+test -d "/usr/local" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
+ test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
+ test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
+ test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
+ test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
+ test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
+}
+
+
+test "/opt" != "$prefix" && \
+test -d "/opt" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under /opt"
+ test -d /opt/lib && cf_search="$cf_search /opt/lib"
+ test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
+ test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
+ test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
+ test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
+}
+
+
+test "$HOME" != "$prefix" && \
+test -d "$HOME" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
+ test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
+ test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
+ test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
+ test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
+ test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
}
+
for cf_libdir in $cf_search
do
echo $ac_n "checking for -l$cf_nculib_root in $cf_libdir""... $ac_c" 1>&6
-echo "configure:7502: checking for -l$cf_nculib_root in $cf_libdir" >&5
+echo "configure:8645: checking for -l$cf_nculib_root in $cf_libdir" >&5
LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
cat > conftest.$ac_ext <
int main() {
initscr()
; return 0; }
EOF
-if { (eval echo configure:7512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
@@ -7539,7 +8682,7 @@ fi
if test -n "$cf_ncurses_LIBS" ; then
echo $ac_n "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS""... $ac_c" 1>&6
-echo "configure:7543: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
+echo "configure:8686: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
cf_ncurses_SAVE="$LIBS"
for p in $cf_ncurses_LIBS ; do
q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
@@ -7548,14 +8691,14 @@ echo "configure:7543: checking if we can
fi
done
cat > conftest.$ac_ext <
int main() {
initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
; return 0; }
EOF
-if { (eval echo configure:7559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
else
@@ -7578,7 +8721,7 @@ EOF
echo $ac_n "checking for ncurses version""... $ac_c" 1>&6
-echo "configure:7582: checking for ncurses version" >&5
+echo "configure:8725: checking for ncurses version" >&5
if eval "test \"`echo '$''{'cf_cv_ncurses_version'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -7604,7 +8747,7 @@ Autoconf "old"
#endif
EOF
cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
- { (eval echo configure:7608: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
+ { (eval echo configure:8751: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
if test -f conftest.out ; then
cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
@@ -7613,7 +8756,7 @@ EOF
else
cat > conftest.$ac_ext <
@@ -7634,10 +8777,10 @@ int main()
make an error
# endif
#endif
- exit(0);
+ ${cf_cv_main_return-return}(0);
}
EOF
-if { (eval echo configure:7641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:8784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
cf_cv_ncurses_version=`cat $cf_tempfile`
@@ -7660,13 +8803,13 @@ EOF
echo $ac_n "checking if we must define _XOPEN_SOURCE_EXTENDED""... $ac_c" 1>&6
-echo "configure:7664: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
+echo "configure:8807: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
if eval "test \"`echo '$''{'cf_cv_need_xopen_extension'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
@@ -7678,7 +8821,7 @@ int main() {
getbegyx(stdscr, y1, x1)
; return 0; }
EOF
-if { (eval echo configure:7682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_need_xopen_extension=no
else
@@ -7686,7 +8829,7 @@ else
cat conftest.$ac_ext >&5
rm -rf conftest*
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_need_xopen_extension=yes
else
@@ -7722,7 +8865,7 @@ test $cf_cv_need_xopen_extension = yes &
echo $ac_n "checking for extra include directories""... $ac_c" 1>&6
-echo "configure:7726: checking for extra include directories" >&5
+echo "configure:8869: checking for extra include directories" >&5
if eval "test \"`echo '$''{'cf_cv_curses_incdir'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -7747,7 +8890,7 @@ test "$cf_cv_curses_incdir" != no && CPP
echo $ac_n "checking if we have identified curses headers""... $ac_c" 1>&6
-echo "configure:7751: checking if we have identified curses headers" >&5
+echo "configure:8894: checking if we have identified curses headers" >&5
if eval "test \"`echo '$''{'cf_cv_ncurses_header'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -7760,14 +8903,14 @@ for cf_header in \
ncurses/ncurses.h
do
cat > conftest.$ac_ext <
int main() {
initscr(); tgoto("?", 0,0)
; return 0; }
EOF
-if { (eval echo configure:7771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_ncurses_header=$cf_header; break
else
@@ -7790,17 +8933,17 @@ for ac_hdr in $cf_cv_ncurses_header
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:7794: checking for $ac_hdr" >&5
+echo "configure:8937: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:7804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -7829,7 +8972,7 @@ done
echo $ac_n "checking for terminfo header""... $ac_c" 1>&6
-echo "configure:7833: checking for terminfo header" >&5
+echo "configure:8976: checking for terminfo header" >&5
if eval "test \"`echo '$''{'cf_cv_term_header'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -7846,7 +8989,7 @@ esac
for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
do
cat > conftest.$ac_ext <
#include <${cf_cv_ncurses_header-curses.h}>
@@ -7856,7 +8999,7 @@ int main() {
int x = auto_left_margin
; return 0; }
EOF
-if { (eval echo configure:7860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_term_header="$cf_test"
@@ -7906,16 +9049,16 @@ esac
echo $ac_n "checking if we have identified curses libraries""... $ac_c" 1>&6
-echo "configure:7910: checking if we have identified curses libraries" >&5
+echo "configure:9053: checking if we have identified curses libraries" >&5
cat > conftest.$ac_ext <
int main() {
initscr(); tgoto("?", 0,0)
; return 0; }
EOF
-if { (eval echo configure:7919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_result=yes
else
@@ -7930,8 +9073,8 @@ echo "$ac_t""$cf_result" 1>&6
if test "$cf_result" = no ; then
case $host_os in #(vi
freebsd*) #(vi
- echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
-echo "configure:7935: checking for tgoto in -lmytinfo" >&5
+ echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
+echo "configure:9078: checking for tgoto in -lmytinfo" >&5
ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -7939,7 +9082,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lmytinfo $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -7970,10 +9113,10 @@ else
echo "$ac_t""no" 1>&6
fi
- ;;
+ ;;
hpux10.*) #(vi
- echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
-echo "configure:7977: checking for initscr in -lcur_colr" >&5
+ echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
+echo "configure:9120: checking for initscr in -lcur_colr" >&5
ac_lib_var=`echo cur_colr'_'initscr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -7981,7 +9124,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lcur_colr $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -8008,14 +9151,14 @@ fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- LIBS="-lcur_colr $LIBS"
- ac_cv_func_initscr=yes
-
+ LIBS="-lcur_colr $LIBS"
+ ac_cv_func_initscr=yes
+
else
echo "$ac_t""no" 1>&6
- echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
-echo "configure:8019: checking for initscr in -lHcurses" >&5
+ echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
+echo "configure:9162: checking for initscr in -lHcurses" >&5
ac_lib_var=`echo Hcurses'_'initscr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -8023,7 +9166,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lHcurses $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -8050,49 +9193,107 @@ fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
- # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
- LIBS="-lHcurses $LIBS"
- CPPFLAGS="-D__HP_CURSES -D_HP_CURSES $CPPFLAGS"
- ac_cv_func_initscr=yes
-
+ # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
+ LIBS="-lHcurses $LIBS"
+ CPPFLAGS="-D__HP_CURSES -D_HP_CURSES $CPPFLAGS"
+ ac_cv_func_initscr=yes
+
else
echo "$ac_t""no" 1>&6
fi
fi
- ;;
+ ;;
linux*) # Suse Linux does not follow /usr/lib convention
- LIBS="$LIBS -L/lib"
- ;;
+
+if test -n "/lib" ; then
+ for cf_add_libdir in /lib
+ do
+ if test $cf_add_libdir = /usr/lib ; then
+ :
+ elif test -d $cf_add_libdir
+ then
+ cf_have_libdir=no
+ if test -n "$LDFLAGS$LIBS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_libdir in $LDFLAGS $LIBS ; do
+ if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
+ cf_have_libdir=yes; break
+ fi
+ done
+ fi
+ if test "$cf_have_libdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
+
+echo "${as_me-configure}:9230: testing adding $cf_add_libdir to library-path ..." 1>&5
+
+
+ LDFLAGS="-L$cf_add_libdir $LDFLAGS"
+ fi
+ fi
+ done
+fi
+
+ ;;
sunos3*|sunos4*)
- test -d /usr/5lib && \
- LIBS="$LIBS -L/usr/5lib -lcurses -ltermcap"
- ac_cv_func_initscr=yes
- ;;
+ if test -d /usr/5lib ; then
+
+if test -n "/usr/5lib" ; then
+ for cf_add_libdir in /usr/5lib
+ do
+ if test $cf_add_libdir = /usr/lib ; then
+ :
+ elif test -d $cf_add_libdir
+ then
+ cf_have_libdir=no
+ if test -n "$LDFLAGS$LIBS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_libdir in $LDFLAGS $LIBS ; do
+ if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
+ cf_have_libdir=yes; break
+ fi
+ done
+ fi
+ if test "$cf_have_libdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
+
+echo "${as_me-configure}:9262: testing adding $cf_add_libdir to library-path ..." 1>&5
+
+
+ LDFLAGS="-L$cf_add_libdir $LDFLAGS"
+ fi
+ fi
+ done
+fi
+
+ LIBS="$LIBS -lcurses -ltermcap"
+ fi
+ ac_cv_func_initscr=yes
+ ;;
esac
if test ".$ac_cv_func_initscr" != .yes ; then
- cf_save_LIBS="$LIBS"
- cf_term_lib=""
- cf_curs_lib=""
-
- if test ".${cf_cv_ncurses_version-no}" != .no
- then
- cf_check_list="ncurses curses cursesX"
- else
- cf_check_list="cursesX curses ncurses"
- fi
+ cf_save_LIBS="$LIBS"
+ cf_term_lib=""
+ cf_curs_lib=""
+
+ if test ".${cf_cv_ncurses_version-no}" != .no
+ then
+ cf_check_list="ncurses curses cursesX"
+ else
+ cf_check_list="cursesX curses ncurses"
+ fi
- # Check for library containing tgoto. Do this before curses library
- # because it may be needed to link the test-case for initscr.
- echo $ac_n "checking for tgoto""... $ac_c" 1>&6
-echo "configure:8091: checking for tgoto" >&5
+ # Check for library containing tgoto. Do this before curses library
+ # because it may be needed to link the test-case for initscr.
+ echo $ac_n "checking for tgoto""... $ac_c" 1>&6
+echo "configure:9292: checking for tgoto" >&5
if eval "test \"`echo '$''{'ac_cv_func_tgoto'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_tgoto=yes"
else
@@ -8133,10 +9334,10 @@ if eval "test \"`echo '$ac_cv_func_'tgot
else
echo "$ac_t""no" 1>&6
- for cf_term_lib in $cf_check_list termcap termlib unknown
- do
- echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
-echo "configure:8140: checking for tgoto in -l$cf_term_lib" >&5
+ for cf_term_lib in $cf_check_list termcap termlib unknown
+ do
+ echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
+echo "configure:9341: checking for tgoto in -l$cf_term_lib" >&5
ac_lib_var=`echo $cf_term_lib'_'tgoto | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -8144,7 +9345,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-l$cf_term_lib $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -8175,17 +9376,17 @@ else
echo "$ac_t""no" 1>&6
fi
- done
-
+ done
+
fi
- # Check for library containing initscr
- test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
- for cf_curs_lib in $cf_check_list xcurses jcurses unknown
- do
- echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
-echo "configure:8189: checking for initscr in -l$cf_curs_lib" >&5
+ # Check for library containing initscr
+ test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
+ for cf_curs_lib in $cf_check_list xcurses jcurses unknown
+ do
+ echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
+echo "configure:9390: checking for initscr in -l$cf_curs_lib" >&5
ac_lib_var=`echo $cf_curs_lib'_'initscr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -8193,7 +9394,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-l$cf_curs_lib $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -8224,22 +9425,22 @@ else
echo "$ac_t""no" 1>&6
fi
- done
- test $cf_curs_lib = unknown && { echo "configure: error: no curses library found" 1>&2; exit 1; }
+ done
+ test $cf_curs_lib = unknown && { echo "configure: error: no curses library found" 1>&2; exit 1; }
- LIBS="-l$cf_curs_lib $cf_save_LIBS"
- if test "$cf_term_lib" = unknown ; then
- echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
-echo "configure:8234: checking if we can link with $cf_curs_lib library" >&5
- cat > conftest.$ac_ext <&6
+echo "configure:9435: checking if we can link with $cf_curs_lib library" >&5
+ cat > conftest.$ac_ext <
int main() {
initscr()
; return 0; }
EOF
-if { (eval echo configure:8243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_result=yes
else
@@ -8249,22 +9450,22 @@ else
cf_result=no
fi
rm -f conftest*
- echo "$ac_t""$cf_result" 1>&6
- test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
- elif test "$cf_curs_lib" = "$cf_term_lib" ; then
- :
- elif test "$cf_term_lib" != predefined ; then
- echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
-echo "configure:8259: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
- cat > conftest.$ac_ext <&6
+ test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
+ elif test "$cf_curs_lib" = "$cf_term_lib" ; then
+ :
+ elif test "$cf_term_lib" != predefined ; then
+ echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
+echo "configure:9460: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
+ cat > conftest.$ac_ext <
int main() {
initscr(); tgoto((char *)0, 0, 0);
; return 0; }
EOF
-if { (eval echo configure:8268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_result=no
else
@@ -8272,16 +9473,16 @@ else
cat conftest.$ac_ext >&5
rm -rf conftest*
- LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
- cat > conftest.$ac_ext < conftest.$ac_ext <
int main() {
initscr()
; return 0; }
EOF
-if { (eval echo configure:8285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_result=yes
else
@@ -8291,18 +9492,18 @@ else
cf_result=error
fi
rm -f conftest*
-
+
fi
rm -f conftest*
- echo "$ac_t""$cf_result" 1>&6
- fi
+ echo "$ac_t""$cf_result" 1>&6
+ fi
fi
fi
echo $ac_n "checking for ncurses version""... $ac_c" 1>&6
-echo "configure:8306: checking for ncurses version" >&5
+echo "configure:9507: checking for ncurses version" >&5
if eval "test \"`echo '$''{'cf_cv_ncurses_version'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -8328,7 +9529,7 @@ Autoconf "old"
#endif
EOF
cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
- { (eval echo configure:8332: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
+ { (eval echo configure:9533: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
if test -f conftest.out ; then
cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
@@ -8337,7 +9538,7 @@ EOF
else
cat > conftest.$ac_ext <
@@ -8358,10 +9559,10 @@ int main()
make an error
# endif
#endif
- exit(0);
+ ${cf_cv_main_return-return}(0);
}
EOF
-if { (eval echo configure:8365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
cf_cv_ncurses_version=`cat $cf_tempfile`
@@ -8384,13 +9585,13 @@ EOF
echo $ac_n "checking if we must define _XOPEN_SOURCE_EXTENDED""... $ac_c" 1>&6
-echo "configure:8388: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
+echo "configure:9589: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
if eval "test \"`echo '$''{'cf_cv_need_xopen_extension'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
@@ -8402,7 +9603,7 @@ int main() {
getbegyx(stdscr, y1, x1)
; return 0; }
EOF
-if { (eval echo configure:8406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_need_xopen_extension=no
else
@@ -8410,7 +9611,7 @@ else
cat conftest.$ac_ext >&5
rm -rf conftest*
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_need_xopen_extension=yes
else
@@ -8446,7 +9647,7 @@ fi
## substitute externally-installed PCRE library for our bundled version
echo $ac_n "checking if you want to use installed version of pcre""... $ac_c" 1>&6
-echo "configure:8450: checking if you want to use installed version of pcre" >&5
+echo "configure:9651: checking if you want to use installed version of pcre" >&5
# Check whether --with-pcre or --without-pcre was given.
if test "${with_pcre+set}" = set; then
@@ -8464,7 +9665,12 @@ PCREDIR_LIBS=
PCREDIR_CPPFLAGS=
case .$cf_pcre_home in #(vi
.no) #(vi
- # setup to compile the bundled PCRE:
+ # setup to compile the bundled PCRE. "version.sh" is not provided by
+ # upstream; the user of this macro must provide it.
+# . $srcdir/pcre/version.sh
+
+
+
;;
.yes) #(vi
@@ -8520,120 +9726,308 @@ fi
## debugging libraries (do this after other libraries)
debug_malloc=none
-echo $ac_n "checking if you want to link with dbmalloc for testing""... $ac_c" 1>&6
-echo "configure:8525: checking if you want to link with dbmalloc for testing" >&5
+
+echo $ac_n "checking if you want to use dbmalloc for testing""... $ac_c" 1>&6
+echo "configure:9732: checking if you want to use dbmalloc for testing" >&5
# Check whether --with-dbmalloc or --without-dbmalloc was given.
if test "${with_dbmalloc+set}" = set; then
withval="$with_dbmalloc"
- with_dbmalloc=$withval
+ cat >> confdefs.h <<\EOF
+#define USE_DBMALLOC 1
+EOF
+
+
+
+ : ${with_cflags:=-g}
+ : ${with_no_leaks:=yes}
+ with_dbmalloc=yes
+else
+ with_dbmalloc=
+fi
+
+echo "$ac_t""${with_dbmalloc:-no}" 1>&6
+
+case .$with_cflags in #(vi
+.*-g*)
+ case .$CFLAGS in #(vi
+ .*-g*) #(vi
+ ;;
+ *)
+
+cf_fix_cppflags=no
+cf_new_cflags=
+cf_new_cppflags=
+cf_new_extra_cppflags=
+
+for cf_add_cflags in -g
+do
+case $cf_fix_cppflags in
+no)
+ case $cf_add_cflags in #(vi
+ -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
+ case $cf_add_cflags in
+ -D*)
+ cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
+
+ test "${cf_add_cflags}" != "${cf_tst_cflags}" \
+ && test -z "${cf_tst_cflags}" \
+ && cf_fix_cppflags=yes
+
+ if test $cf_fix_cppflags = yes ; then
+ cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
+ continue
+ elif test "${cf_tst_cflags}" = "\"'" ; then
+ cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
+ continue
+ fi
+ ;;
+ esac
+ case "$CPPFLAGS" in
+ *$cf_add_cflags) #(vi
+ ;;
+ *) #(vi
+ cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
+ ;;
+ esac
+ ;;
+ *)
+ cf_new_cflags="$cf_new_cflags $cf_add_cflags"
+ ;;
+ esac
+ ;;
+yes)
+ cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
+
+ cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
+
+ test "${cf_add_cflags}" != "${cf_tst_cflags}" \
+ && test -z "${cf_tst_cflags}" \
+ && cf_fix_cppflags=no
+ ;;
+esac
+done
+
+if test -n "$cf_new_cflags" ; then
+
+ CFLAGS="$CFLAGS $cf_new_cflags"
+fi
+
+if test -n "$cf_new_cppflags" ; then
+
+ CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
+fi
+
+if test -n "$cf_new_extra_cppflags" ; then
+
+ EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
+fi
+
+
+
+
+ ;;
+ esac
+ ;;
+esac
+
+
+if test "$with_dbmalloc" = yes ; then
+ ac_safe=`echo "dbmalloc.h" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for dbmalloc.h""... $ac_c" 1>&6
+echo "configure:9839: checking for dbmalloc.h" >&5
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <
+EOF
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:9849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+if test -z "$ac_err"; then
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=yes"
+else
+ echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=no"
+fi
+rm -f conftest*
+fi
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ echo $ac_n "checking for debug_malloc in -ldbmalloc""... $ac_c" 1>&6
+echo "configure:9866: checking for debug_malloc in -ldbmalloc" >&5
+ac_lib_var=`echo dbmalloc'_'debug_malloc | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-ldbmalloc $LIBS"
+cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=no"
+fi
+rm -f conftest*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ debug_malloc=DBMALLOC
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+fi
+
+
+
+echo $ac_n "checking if you want to use dmalloc for testing""... $ac_c" 1>&6
+echo "configure:9914: checking if you want to use dmalloc for testing" >&5
+
+# Check whether --with-dmalloc or --without-dmalloc was given.
+if test "${with_dmalloc+set}" = set; then
+ withval="$with_dmalloc"
+ cat >> confdefs.h <<\EOF
+#define USE_DMALLOC 1
+EOF
+
+
+
+ : ${with_cflags:=-g}
+ : ${with_no_leaks:=yes}
+ with_dmalloc=yes
else
- with_dbmalloc=no
+ with_dmalloc=
fi
-echo "$ac_t""$with_dbmalloc" 1>&6
-if test "$with_dbmalloc" = yes ; then
- ac_safe=`echo "dbmalloc.h" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for dbmalloc.h""... $ac_c" 1>&6
-echo "configure:8539: checking for dbmalloc.h" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- cat > conftest.$ac_ext <
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
-else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
-fi
-rm -f conftest*
+echo "$ac_t""${with_dmalloc:-no}" 1>&6
+
+case .$with_cflags in #(vi
+.*-g*)
+ case .$CFLAGS in #(vi
+ .*-g*) #(vi
+ ;;
+ *)
+
+cf_fix_cppflags=no
+cf_new_cflags=
+cf_new_cppflags=
+cf_new_extra_cppflags=
+
+for cf_add_cflags in -g
+do
+case $cf_fix_cppflags in
+no)
+ case $cf_add_cflags in #(vi
+ -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
+ case $cf_add_cflags in
+ -D*)
+ cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
+
+ test "${cf_add_cflags}" != "${cf_tst_cflags}" \
+ && test -z "${cf_tst_cflags}" \
+ && cf_fix_cppflags=yes
+
+ if test $cf_fix_cppflags = yes ; then
+ cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
+ continue
+ elif test "${cf_tst_cflags}" = "\"'" ; then
+ cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
+ continue
+ fi
+ ;;
+ esac
+ case "$CPPFLAGS" in
+ *$cf_add_cflags) #(vi
+ ;;
+ *) #(vi
+ cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
+ ;;
+ esac
+ ;;
+ *)
+ cf_new_cflags="$cf_new_cflags $cf_add_cflags"
+ ;;
+ esac
+ ;;
+yes)
+ cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
+
+ cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
+
+ test "${cf_add_cflags}" != "${cf_tst_cflags}" \
+ && test -z "${cf_tst_cflags}" \
+ && cf_fix_cppflags=no
+ ;;
+esac
+done
+
+if test -n "$cf_new_cflags" ; then
+
+ CFLAGS="$CFLAGS $cf_new_cflags"
fi
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- echo $ac_n "checking for debug_malloc in -ldbmalloc""... $ac_c" 1>&6
-echo "configure:8566: checking for debug_malloc in -ldbmalloc" >&5
-ac_lib_var=`echo dbmalloc'_'debug_malloc | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-ldbmalloc $LIBS"
-cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+if test -n "$cf_new_cppflags" ; then
+
+ CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- debug_malloc=DBMALLOC
-else
- echo "$ac_t""no" 1>&6
+if test -n "$cf_new_extra_cppflags" ; then
+
+ EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
fi
-else
- echo "$ac_t""no" 1>&6
-fi
-fi
-echo $ac_n "checking if you want to link with dmalloc for testing""... $ac_c" 1>&6
-echo "configure:8613: checking if you want to link with dmalloc for testing" >&5
+ ;;
+ esac
+ ;;
+esac
-# Check whether --with-dmalloc or --without-dmalloc was given.
-if test "${with_dmalloc+set}" = set; then
- withval="$with_dmalloc"
- with_dmalloc=$withval
-else
- with_dmalloc=no
-fi
-echo "$ac_t""$with_dmalloc" 1>&6
if test "$with_dmalloc" = yes ; then
ac_safe=`echo "dmalloc.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for dmalloc.h""... $ac_c" 1>&6
-echo "configure:8627: checking for dmalloc.h" >&5
+echo "configure:10021: checking for dmalloc.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:10031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -8650,7 +10044,7 @@ fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
echo $ac_n "checking for dmalloc_debug in -ldmalloc""... $ac_c" 1>&6
-echo "configure:8654: checking for dmalloc_debug in -ldmalloc" >&5
+echo "configure:10048: checking for dmalloc_debug in -ldmalloc" >&5
ac_lib_var=`echo dmalloc'_'dmalloc_debug | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -8658,7 +10052,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ldmalloc $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -8696,31 +10090,18 @@ fi
fi
-echo $ac_n "checking if you want debugging-trace""... $ac_c" 1>&6
-echo "configure:8701: checking if you want debugging-trace" >&5
# Check whether --with-trace or --without-trace was given.
if test "${with_trace+set}" = set; then
withval="$with_trace"
- use_trace=yes
-else
- use_trace=no
-fi
-
-echo "$ac_t""$use_trace" 1>&6
-if test "$use_trace" = yes ; then
- cat >> confdefs.h <<\EOF
-#define USE_TRACE 1
-EOF
-
- EXTRAOBJS="$EXTRAOBJS trace.o"
+
echo $ac_n "checking for _tracef""... $ac_c" 1>&6
-echo "configure:8719: checking for _tracef" >&5
+echo "configure:10100: checking for _tracef" >&5
if eval "test \"`echo '$''{'ac_cv_func__tracef'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func__tracef=yes"
else
@@ -8765,7 +10146,7 @@ else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for _tracef in -l${cf_with_screen}_g""... $ac_c" 1>&6
-echo "configure:8769: checking for _tracef in -l${cf_with_screen}_g" >&5
+echo "configure:10150: checking for _tracef in -l${cf_with_screen}_g" >&5
ac_lib_var=`echo ${cf_with_screen}_g'_'_tracef | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -8773,7 +10154,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-l${cf_with_screen}_g $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -8805,18 +10186,30 @@ EOF
LIBS=`echo "$LIBS" | sed -e s/-l${cf_with_screen}// -e s/-lcurses//`
LIBS="-l${cf_with_screen}_g $LIBS"
+ use_trace=yes
+ cat >> confdefs.h <<\EOF
+#define USE_TRACE 1
+EOF
+
+ EXTRAOBJS="$EXTRAOBJS trace.o"
else
echo "$ac_t""no" 1>&6
+use_trace=no
fi
fi
+else
+ use_trace=no
fi
+#AC_MSG_CHECKING(if you want debugging-trace)
+#AC_MSG_RESULT($use_trace)
+
## options for miscellaneous definitions
echo $ac_n "checking for domain-name""... $ac_c" 1>&6
-echo "configure:8820: checking for domain-name" >&5
+echo "configure:10213: checking for domain-name" >&5
# Check whether --with-domain-name or --without-domain-name was given.
if test "${with_domain_name+set}" = set; then
@@ -8845,7 +10238,7 @@ echo "$ac_t""$DOMAIN_NAME" 1>&6
if test "$USE_NNTP" = "yes" ; then
echo $ac_n "checking for NNTP default-server""... $ac_c" 1>&6
-echo "configure:8849: checking for NNTP default-server" >&5
+echo "configure:10242: checking for NNTP default-server" >&5
# Check whether --with-nntp-default-server or --without-nntp-default-server was given.
if test "${with_nntp_default_server+set}" = set; then
@@ -8911,7 +10304,7 @@ EOF
## optional features
echo $ac_n "checking whether to use MH style mail handling for mailgroups""... $ac_c" 1>&6
-echo "configure:8915: checking whether to use MH style mail handling for mailgroups" >&5
+echo "configure:10308: checking whether to use MH style mail handling for mailgroups" >&5
# Check whether --enable-mh-mail-handling or --disable-mh-mail-handling was given.
if test "${enable_mh_mail_handling+set}" = set; then
@@ -8929,8 +10322,146 @@ fi
echo "$ac_t""$enableval" 1>&6
+CAN_MAKEFILE=
+CANDIR_MAKE=
+echo $ac_n "checking whether to use Cancel-Locks""... $ac_c" 1>&6
+echo "configure:10329: checking whether to use Cancel-Locks" >&5
+
+# Check whether --enable-cancel-locks or --disable-cancel-locks was given.
+if test "${enable_cancel_locks+set}" = set; then
+ enableval="$enable_cancel_locks"
+ test "$enableval" != yes && enableval=no
+ if test "$enableval" != "no" ; then
+ CANLIBS='-L../libcanlock -lcanlock'
+ CAN_MAKEFILE="libcanlock/Makefile"
+ cat >> confdefs.h <<\EOF
+#define USE_CANLOCK 1
+EOF
+
+ else
+ CANDIR_MAKE='#'
+ CANLIBS=''
+ fi
+else
+ enableval=no
+ CANDIR_MAKE='#'
+ CANLIBS=''
+
+fi
+
+echo "$ac_t""$enableval" 1>&6
+
+
+
+## gsasl - used for AUTH SASL PLAIN
+GSASL_LIBS=
+ac_safe=`echo "gsasl.h" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for gsasl.h""... $ac_c" 1>&6
+echo "configure:10361: checking for gsasl.h" >&5
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ cat > conftest.$ac_ext <
+EOF
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (eval echo configure:10371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+if test -z "$ac_err"; then
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=yes"
+else
+ echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_header_$ac_safe=no"
+fi
+rm -f conftest*
+fi
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ echo $ac_n "checking for gsasl_check_version in -lgsasl""... $ac_c" 1>&6
+echo "configure:10388: checking for gsasl_check_version in -lgsasl" >&5
+ac_lib_var=`echo gsasl'_'gsasl_check_version | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-lgsasl $LIBS"
+cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=no"
+fi
+rm -f conftest*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ gsasl=yes
+else
+ echo "$ac_t""no" 1>&6
+gsasl=no
+fi
+
+else
+ echo "$ac_t""no" 1>&6
+gsasl=no
+fi
+
+if test "$gsasl" = "yes"; then
+
+# Check whether --enable-gsasl or --disable-gsasl was given.
+if test "${enable_gsasl+set}" = set; then
+ enableval="$enable_gsasl"
+ test "$enableval" != no && enableval=yes
+ if test "$enableval" != "yes" ; then
+ USE_SASL=no
+ else
+ USE_SASL=yes
+ cat >> confdefs.h <<\EOF
+#define USE_SASL 1
+EOF
+
+ GSASL_LIBS='-lgsasl'
+ fi
+else
+ enableval=yes
+ USE_SASL=yes
+ cat >> confdefs.h <<\EOF
+#define USE_SASL 1
+EOF
+
+ GSASL_LIBS='-lgsasl'
+
+fi
+
+fi
+
+
+
echo $ac_n "checking whether to enable 8-bit keycodes""... $ac_c" 1>&6
-echo "configure:8934: checking whether to enable 8-bit keycodes" >&5
+echo "configure:10465: checking whether to enable 8-bit keycodes" >&5
# Check whether --enable-8bit-keys or --disable-8bit-keys was given.
if test "${enable_8bit_keys+set}" = set; then
@@ -8956,7 +10487,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking whether to enable ANSI-color""... $ac_c" 1>&6
-echo "configure:8960: checking whether to enable ANSI-color" >&5
+echo "configure:10491: checking whether to enable ANSI-color" >&5
# Check whether --enable-color or --disable-color was given.
if test "${enable_color+set}" = set; then
@@ -8973,7 +10504,7 @@ use_color=$enableval
echo "$ac_t""$use_color" 1>&6
echo $ac_n "checking whether to enable posting-etiquette""... $ac_c" 1>&6
-echo "configure:8977: checking whether to enable posting-etiquette" >&5
+echo "configure:10508: checking whether to enable posting-etiquette" >&5
# Check whether --enable-etiquette or --disable-etiquette was given.
if test "${enable_etiquette+set}" = set; then
@@ -8992,7 +10523,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking whether to strictly observe RFC2047 and break long lines""... $ac_c" 1>&6
-echo "configure:8996: checking whether to strictly observe RFC2047 and break long lines" >&5
+echo "configure:10527: checking whether to strictly observe RFC2047 and break long lines" >&5
# Check whether --enable-break-long-lines or --disable-break-long-lines was given.
if test "${enable_break_long_lines+set}" = set; then
@@ -9011,7 +10542,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking whether to force MM_CHARSET obeyance when decoding mime""... $ac_c" 1>&6
-echo "configure:9015: checking whether to force MM_CHARSET obeyance when decoding mime" >&5
+echo "configure:10546: checking whether to force MM_CHARSET obeyance when decoding mime" >&5
# Check whether --enable-mime-strict-charset or --disable-mime-strict-charset was given.
if test "${enable_mime_strict_charset+set}" = set; then
@@ -9037,7 +10568,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking for MIME character-set""... $ac_c" 1>&6
-echo "configure:9041: checking for MIME character-set" >&5
+echo "configure:10572: checking for MIME character-set" >&5
# Check whether --with-mime-default-charset or --without-mime-default-charset was given.
if test "${with_mime_default_charset+set}" = set; then
@@ -9059,7 +10590,7 @@ EOF
echo "$ac_t""$MM_CHARSET" 1>&6
echo $ac_n "checking for default ISO/ASCII table""... $ac_c" 1>&6
-echo "configure:9063: checking for default ISO/ASCII table" >&5
+echo "configure:10594: checking for default ISO/ASCII table" >&5
# Check whether --with-iso-to-ascii or --without-iso-to-ascii was given.
if test "${with_iso_to_ascii+set}" = set; then
@@ -9081,7 +10612,7 @@ EOF
echo "$ac_t""$DEFAULT_ISO2ASC" 1>&6
echo $ac_n "checking whether to enable locale support""... $ac_c" 1>&6
-echo "configure:9085: checking whether to enable locale support" >&5
+echo "configure:10616: checking whether to enable locale support" >&5
# Check whether --enable-locale or --disable-locale was given.
if test "${enable_locale+set}" = set; then
@@ -9096,11 +10627,16 @@ EOF
else
enableval=yes
fi
-
+#, # TODO fixme!
+# [ case "$host_os" in
+# *cygwin*)
+# AC_DEFINE(NO_LOCALE)
+# ;;
+# esac])
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking whether to enable posting""... $ac_c" 1>&6
-echo "configure:9104: checking whether to enable posting" >&5
+echo "configure:10640: checking whether to enable posting" >&5
# Check whether --enable-posting or --disable-posting was given.
if test "${enable_posting+set}" = set; then
@@ -9119,7 +10655,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking whether to enable shell escape""... $ac_c" 1>&6
-echo "configure:9123: checking whether to enable shell escape" >&5
+echo "configure:10659: checking whether to enable shell escape" >&5
# Check whether --enable-shell-escape or --disable-shell-escape was given.
if test "${enable_shell_escape+set}" = set; then
@@ -9138,7 +10674,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking whether to have fascist newsadmin""... $ac_c" 1>&6
-echo "configure:9142: checking whether to have fascist newsadmin" >&5
+echo "configure:10678: checking whether to have fascist newsadmin" >&5
# Check whether --enable-fascist-newsadmin or --disable-fascist-newsadmin was given.
if test "${enable_fascist_newsadmin+set}" = set; then
@@ -9157,7 +10693,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking whether to enable inverse video and highlighting""... $ac_c" 1>&6
-echo "configure:9161: checking whether to enable inverse video and highlighting" >&5
+echo "configure:10697: checking whether to enable inverse video and highlighting" >&5
# Check whether --enable-inverse-video or --disable-inverse-video was given.
if test "${enable_inverse_video+set}" = set; then
@@ -9176,7 +10712,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking whether to enable piping support""... $ac_c" 1>&6
-echo "configure:9180: checking whether to enable piping support" >&5
+echo "configure:10716: checking whether to enable piping support" >&5
# Check whether --enable-piping or --disable-piping was given.
if test "${enable_piping+set}" = set; then
@@ -9195,7 +10731,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking whether to enable printer support""... $ac_c" 1>&6
-echo "configure:9199: checking whether to enable printer support" >&5
+echo "configure:10735: checking whether to enable printer support" >&5
# Check whether --enable-printing or --disable-printing was given.
if test "${enable_printing+set}" = set; then
@@ -9214,7 +10750,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking whether to unique tmp-files by appending .pid""... $ac_c" 1>&6
-echo "configure:9218: checking whether to unique tmp-files by appending .pid" >&5
+echo "configure:10754: checking whether to unique tmp-files by appending .pid" >&5
# Check whether --enable-append-pid or --disable-append-pid was given.
if test "${enable_append_pid+set}" = set; then
@@ -9240,7 +10776,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking whether to fallback to XHDR XREF if XOVER isn't supported""... $ac_c" 1>&6
-echo "configure:9244: checking whether to fallback to XHDR XREF if XOVER isn't supported" >&5
+echo "configure:10780: checking whether to fallback to XHDR XREF if XOVER isn't supported" >&5
# Check whether --enable-xhdr-xref or --disable-xhdr-xref was given.
if test "${enable_xhdr_xref+set}" = set; then
@@ -9267,7 +10803,7 @@ echo "$ac_t""$enableval" 1>&6
### bypass a bug in old versions of leafnode & NNTPcache
echo $ac_n "checking whether to send a GROUP command before a LISTGROUP""... $ac_c" 1>&6
-echo "configure:9271: checking whether to send a GROUP command before a LISTGROUP" >&5
+echo "configure:10807: checking whether to send a GROUP command before a LISTGROUP" >&5
# Check whether --enable-broken-listgroup-fix or --disable-broken-listgroup-fix was given.
if test "${enable_broken_listgroup_fix+set}" = set; then
@@ -9287,7 +10823,7 @@ echo "$ac_t""$enableval" 1>&6
### on some old systems the WIFEXITED()/WEXITSTATUS() macros do not work
echo $ac_n "checking whether to ignore system()s return value""... $ac_c" 1>&6
-echo "configure:9291: checking whether to ignore system()s return value" >&5
+echo "configure:10827: checking whether to ignore system()s return value" >&5
# Check whether --enable-broken-system-fix or --disable-broken-system-fix was given.
if test "${enable_broken_system_fix+set}" = set; then
@@ -9307,7 +10843,7 @@ echo "$ac_t""$enableval" 1>&6
### checks for the location of the system-wide default setting file
echo $ac_n "checking for directory containing tin.defaults file""... $ac_c" 1>&6
-echo "configure:9311: checking for directory containing tin.defaults file" >&5
+echo "configure:10847: checking for directory containing tin.defaults file" >&5
# Check whether --with-defaults-dir or --without-defaults-dir was given.
if test "${with_defaults_dir+set}" = set; then
@@ -9316,6 +10852,7 @@ if test "${with_defaults_dir+set}" = set
else
withval="${TIN_DEFAULTS_DIR-/etc/tin}"
fi
+if true ; then
if test "x$prefix" != xNONE; then
cf_path_syntax="$prefix"
@@ -9346,6 +10883,7 @@ case ".$withval" in #(vi
;;
esac
+fi
TIN_DEFAULTS_DIR="$withval"
echo "$ac_t""$TIN_DEFAULTS_DIR" 1>&6
@@ -9356,7 +10894,7 @@ EOF
### check for ipv6 support
echo $ac_n "checking whether to enable IPv6""... $ac_c" 1>&6
-echo "configure:9360: checking whether to enable IPv6" >&5
+echo "configure:10898: checking whether to enable IPv6" >&5
# Check whether --enable-ipv6 or --disable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then
@@ -9377,7 +10915,7 @@ if test "$enableval" = "yes"; then
echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
-echo "configure:9381: checking ipv6 stack type" >&5
+echo "configure:10919: checking ipv6 stack type" >&5
if eval "test \"`echo '$''{'cf_cv_ipv6type'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -9397,7 +10935,7 @@ do
;;
inria) #(vi
cat > conftest.$ac_ext <
@@ -9415,7 +10953,7 @@ rm -f conftest*
;;
kame) #(vi
cat > conftest.$ac_ext <
@@ -9433,7 +10971,7 @@ rm -f conftest*
;;
linux-glibc) #(vi
cat > conftest.$ac_ext <
@@ -9460,7 +10998,7 @@ rm -f conftest*
;;
toshiba) #(vi
cat > conftest.$ac_ext <
@@ -9478,7 +11016,7 @@ rm -f conftest*
;;
v6d) #(vi
cat > conftest.$ac_ext <
@@ -9496,7 +11034,7 @@ rm -f conftest*
;;
zeta)
cat > conftest.$ac_ext <
@@ -9529,7 +11067,7 @@ cf_ipv6lib=none
cf_ipv6dir=none
echo $ac_n "checking for IPv6 library if required""... $ac_c" 1>&6
-echo "configure:9533: checking for IPv6 library if required" >&5
+echo "configure:11071: checking for IPv6 library if required" >&5
case $cf_cv_ipv6type in #(vi
solaris) #(vi
;;
@@ -9563,7 +11101,7 @@ echo "$ac_t""$cf_ipv6lib" 1>&6
if test "$cf_ipv6lib" != "none"; then
cat > conftest.$ac_ext <
@@ -9574,7 +11112,7 @@ int main() {
getaddrinfo(0, 0, 0, 0)
; return 0; }
EOF
-if { (eval echo configure:9578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:11116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
:
else
echo "configure: failed program was:" >&5
@@ -9583,34 +11121,23 @@ else
cf_search=""
-test -d $HOME && {
- test -n "$verbose" && echo " ... testing include-directories under $HOME"
- test -d $HOME/include && cf_search="$cf_search $HOME/include"
- test -d $HOME/include/$cf_ipv6dir && cf_search="$cf_search $HOME/include/$cf_ipv6dir"
- test -d $HOME/include/$cf_ipv6dir/include && cf_search="$cf_search $HOME/include/$cf_ipv6dir/include"
-}
-# For other stuff under the home directory, it should be sufficient to put
-# a symbolic link for $HOME/$cf_ipv6dir to the actual package location:
-test -d $HOME/$cf_ipv6dir && {
- test -n "$verbose" && echo " ... testing include-directories under $HOME/$cf_ipv6dir"
- test -d $HOME/$cf_ipv6dir/include && cf_search="$cf_search $HOME/$cf_ipv6dir/include"
- test -d $HOME/$cf_ipv6dir/include/$cf_ipv6dir && cf_search="$cf_search $HOME/$cf_ipv6dir/include/$cf_ipv6dir"
+test "/usr" != "$prefix" && \
+test -d "/usr" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under /usr"
+ test -d /usr/include && cf_search="$cf_search /usr/include"
+ test -d /usr/include/$cf_ipv6dir && cf_search="$cf_search /usr/include/$cf_ipv6dir"
+ test -d /usr/include/$cf_ipv6dir/include && cf_search="$cf_search /usr/include/$cf_ipv6dir/include"
+ test -d /usr/$cf_ipv6dir/include && cf_search="$cf_search /usr/$cf_ipv6dir/include"
+ test -d /usr/$cf_ipv6dir/include/$cf_ipv6dir && cf_search="$cf_search /usr/$cf_ipv6dir/include/$cf_ipv6dir"
}
-test "$prefix" != /usr/local && \
-test -d /usr/local && {
- test -n "$verbose" && echo " ... testing include-directories under /usr/local"
- test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
- test -d /usr/local/include/$cf_ipv6dir && cf_search="$cf_search /usr/local/include/$cf_ipv6dir"
- test -d /usr/local/include/$cf_ipv6dir/include && cf_search="$cf_search /usr/local/include/$cf_ipv6dir/include"
- test -d /usr/local/$cf_ipv6dir/include && cf_search="$cf_search /usr/local/$cf_ipv6dir/include"
- test -d /usr/local/$cf_ipv6dir/include/$cf_ipv6dir && cf_search="$cf_search /usr/local/$cf_ipv6dir/include/$cf_ipv6dir"
-}
-test "$prefix" != NONE && \
-test -d $prefix && {
- test -n "$verbose" && echo " ... testing include-directories under $prefix"
+test "$prefix" != "NONE" && \
+test -d "$prefix" && \
+ {
+ test -n "$verbose" && echo " ... testing for include-directories under $prefix"
test -d $prefix/include && cf_search="$cf_search $prefix/include"
test -d $prefix/include/$cf_ipv6dir && cf_search="$cf_search $prefix/include/$cf_ipv6dir"
test -d $prefix/include/$cf_ipv6dir/include && cf_search="$cf_search $prefix/include/$cf_ipv6dir/include"
@@ -9618,25 +11145,43 @@ test -d $prefix && {
test -d $prefix/$cf_ipv6dir/include/$cf_ipv6dir && cf_search="$cf_search $prefix/$cf_ipv6dir/include/$cf_ipv6dir"
}
-test "$prefix" != /opt && \
-test -d /opt && {
- test -n "$verbose" && echo " ... testing include-directories under /opt"
- test -d /opt/include && cf_search="$cf_search /opt/include"
- test -d /opt/include/$cf_ipv6dir && cf_search="$cf_search /opt/include/$cf_ipv6dir"
- test -d /opt/include/$cf_ipv6dir/include && cf_search="$cf_search /opt/include/$cf_ipv6dir/include"
- test -d /opt/$cf_ipv6dir/include && cf_search="$cf_search /opt/$cf_ipv6dir/include"
- test -d /opt/$cf_ipv6dir/include/$cf_ipv6dir && cf_search="$cf_search /opt/$cf_ipv6dir/include/$cf_ipv6dir"
-}
-
-test "$prefix" != /usr && \
-test -d /usr && {
- test -n "$verbose" && echo " ... testing include-directories under /usr"
- test -d /usr/include && cf_search="$cf_search /usr/include"
- test -d /usr/include/$cf_ipv6dir && cf_search="$cf_search /usr/include/$cf_ipv6dir"
- test -d /usr/include/$cf_ipv6dir/include && cf_search="$cf_search /usr/include/$cf_ipv6dir/include"
- test -d /usr/$cf_ipv6dir/include && cf_search="$cf_search /usr/$cf_ipv6dir/include"
+
+test "/usr/local" != "$prefix" && \
+test -d "/usr/local" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
+ test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
+ test -d /usr/local/include/$cf_ipv6dir && cf_search="$cf_search /usr/local/include/$cf_ipv6dir"
+ test -d /usr/local/include/$cf_ipv6dir/include && cf_search="$cf_search /usr/local/include/$cf_ipv6dir/include"
+ test -d /usr/local/$cf_ipv6dir/include && cf_search="$cf_search /usr/local/$cf_ipv6dir/include"
+ test -d /usr/local/$cf_ipv6dir/include/$cf_ipv6dir && cf_search="$cf_search /usr/local/$cf_ipv6dir/include/$cf_ipv6dir"
+}
+
+
+test "/opt" != "$prefix" && \
+test -d "/opt" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under /opt"
+ test -d /opt/include && cf_search="$cf_search /opt/include"
+ test -d /opt/include/$cf_ipv6dir && cf_search="$cf_search /opt/include/$cf_ipv6dir"
+ test -d /opt/include/$cf_ipv6dir/include && cf_search="$cf_search /opt/include/$cf_ipv6dir/include"
+ test -d /opt/$cf_ipv6dir/include && cf_search="$cf_search /opt/$cf_ipv6dir/include"
+ test -d /opt/$cf_ipv6dir/include/$cf_ipv6dir && cf_search="$cf_search /opt/$cf_ipv6dir/include/$cf_ipv6dir"
+}
+
+
+test "$HOME" != "$prefix" && \
+test -d "$HOME" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for include-directories under $HOME"
+ test -d $HOME/include && cf_search="$cf_search $HOME/include"
+ test -d $HOME/include/$cf_ipv6dir && cf_search="$cf_search $HOME/include/$cf_ipv6dir"
+ test -d $HOME/include/$cf_ipv6dir/include && cf_search="$cf_search $HOME/include/$cf_ipv6dir/include"
+ test -d $HOME/$cf_ipv6dir/include && cf_search="$cf_search $HOME/$cf_ipv6dir/include"
+ test -d $HOME/$cf_ipv6dir/include/$cf_ipv6dir && cf_search="$cf_search $HOME/$cf_ipv6dir/include/$cf_ipv6dir"
}
+
test "$includedir" != NONE && \
test "$includedir" != "/usr/include" && \
test -d "$includedir" && {
@@ -9652,12 +11197,76 @@ test -d "$oldincludedir" && {
}
- for cf_incdir in $cf_search
- do
- cf_header=$cf_incdir/netinet/ip6.h
- if test -f $cf_header
- then
- CPPFLAGS="$CPPFLAGS -I$cf_incdir"
+ for cf_incdir in $cf_search
+ do
+ cf_header=$cf_incdir/netinet/ip6.h
+ if test -f $cf_header
+ then
+
+if test -n "$cf_incdir" ; then
+ for cf_add_incdir in $cf_incdir
+ do
+ while test $cf_add_incdir != /usr/include
+ do
+ if test -d $cf_add_incdir
+ then
+ cf_have_incdir=no
+ if test -n "$CFLAGS$CPPFLAGS" ; then
+ # a loop is needed to ensure we can add subdirs of existing dirs
+ for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
+ if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
+ cf_have_incdir=yes; break
+ fi
+ done
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ if test "$cf_add_incdir" = /usr/local/include ; then
+ if test "$GCC" = yes
+ then
+ cf_save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
+ cat > conftest.$ac_ext <
+int main() {
+printf("Hello")
+; return 0; }
+EOF
+if { (eval echo configure:11238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ :
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ cf_have_incdir=yes
+fi
+rm -f conftest*
+ CPPFLAGS=$cf_save_CPPFLAGS
+ fi
+ fi
+ fi
+
+ if test "$cf_have_incdir" = no ; then
+ test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
+
+echo "${as_me-configure}:11255: testing adding $cf_add_incdir to include-path ..." 1>&5
+
+
+ CPPFLAGS="-I$cf_add_incdir $CPPFLAGS"
+
+ cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
+ test "$cf_top_incdir" = "$cf_add_incdir" && break
+ cf_add_incdir="$cf_top_incdir"
+ else
+ break
+ fi
+ fi
+ done
+ done
+fi
+
test -n "$verbose" && echo " ... found $cf_header" 1>&6
break
fi
@@ -9671,12 +11280,12 @@ rm -f conftest*
eval 'cf_cv_have_lib_'$cf_ipv6lib'=no'
cf_libdir=""
echo $ac_n "checking for getaddrinfo""... $ac_c" 1>&6
-echo "configure:9675: checking for getaddrinfo" >&5
+echo "configure:11284: checking for getaddrinfo" >&5
if eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:11312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_getaddrinfo=yes"
else
@@ -9719,10 +11328,10 @@ else
cf_save_LIBS="$LIBS"
echo $ac_n "checking for getaddrinfo in -l$cf_ipv6lib""... $ac_c" 1>&6
-echo "configure:9723: checking for getaddrinfo in -l$cf_ipv6lib" >&5
+echo "configure:11332: checking for getaddrinfo in -l$cf_ipv6lib" >&5
LIBS="-l$cf_ipv6lib $LIBS"
cat > conftest.$ac_ext <
@@ -9733,7 +11342,7 @@ int main() {
getaddrinfo(0, 0, 0, 0)
; return 0; }
EOF
-if { (eval echo configure:9737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:11346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
eval 'cf_cv_have_lib_'$cf_ipv6lib'=yes'
@@ -9745,34 +11354,23 @@ else
echo "$ac_t""no" 1>&6
cf_search=""
-test -d $HOME && {
- test -n "$verbose" && echo " ... testing lib-directories under $HOME"
- test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
- test -d $HOME/lib/$cf_ipv6dir && cf_search="$cf_search $HOME/lib/$cf_ipv6dir"
- test -d $HOME/lib/$cf_ipv6dir/lib && cf_search="$cf_search $HOME/lib/$cf_ipv6dir/lib"
-}
-# For other stuff under the home directory, it should be sufficient to put
-# a symbolic link for $HOME/$cf_ipv6dir to the actual package location:
-test -d $HOME/$cf_ipv6dir && {
- test -n "$verbose" && echo " ... testing lib-directories under $HOME/$cf_ipv6dir"
- test -d $HOME/$cf_ipv6dir/lib && cf_search="$cf_search $HOME/$cf_ipv6dir/lib"
- test -d $HOME/$cf_ipv6dir/lib/$cf_ipv6dir && cf_search="$cf_search $HOME/$cf_ipv6dir/lib/$cf_ipv6dir"
+test "/usr" != "$prefix" && \
+test -d "/usr" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under /usr"
+ test -d /usr/lib && cf_search="$cf_search /usr/lib"
+ test -d /usr/lib/$cf_ipv6dir && cf_search="$cf_search /usr/lib/$cf_ipv6dir"
+ test -d /usr/lib/$cf_ipv6dir/lib && cf_search="$cf_search /usr/lib/$cf_ipv6dir/lib"
+ test -d /usr/$cf_ipv6dir/lib && cf_search="$cf_search /usr/$cf_ipv6dir/lib"
+ test -d /usr/$cf_ipv6dir/lib/$cf_ipv6dir && cf_search="$cf_search /usr/$cf_ipv6dir/lib/$cf_ipv6dir"
}
-test "$prefix" != /usr/local && \
-test -d /usr/local && {
- test -n "$verbose" && echo " ... testing lib-directories under /usr/local"
- test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
- test -d /usr/local/lib/$cf_ipv6dir && cf_search="$cf_search /usr/local/lib/$cf_ipv6dir"
- test -d /usr/local/lib/$cf_ipv6dir/lib && cf_search="$cf_search /usr/local/lib/$cf_ipv6dir/lib"
- test -d /usr/local/$cf_ipv6dir/lib && cf_search="$cf_search /usr/local/$cf_ipv6dir/lib"
- test -d /usr/local/$cf_ipv6dir/lib/$cf_ipv6dir && cf_search="$cf_search /usr/local/$cf_ipv6dir/lib/$cf_ipv6dir"
-}
-test "$prefix" != NONE && \
-test -d $prefix && {
- test -n "$verbose" && echo " ... testing lib-directories under $prefix"
+test "$prefix" != "NONE" && \
+test -d "$prefix" && \
+ {
+ test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
test -d $prefix/lib/$cf_ipv6dir && cf_search="$cf_search $prefix/lib/$cf_ipv6dir"
test -d $prefix/lib/$cf_ipv6dir/lib && cf_search="$cf_search $prefix/lib/$cf_ipv6dir/lib"
@@ -9780,32 +11378,50 @@ test -d $prefix && {
test -d $prefix/$cf_ipv6dir/lib/$cf_ipv6dir && cf_search="$cf_search $prefix/$cf_ipv6dir/lib/$cf_ipv6dir"
}
-test "$prefix" != /opt && \
-test -d /opt && {
- test -n "$verbose" && echo " ... testing lib-directories under /opt"
- test -d /opt/lib && cf_search="$cf_search /opt/lib"
- test -d /opt/lib/$cf_ipv6dir && cf_search="$cf_search /opt/lib/$cf_ipv6dir"
- test -d /opt/lib/$cf_ipv6dir/lib && cf_search="$cf_search /opt/lib/$cf_ipv6dir/lib"
- test -d /opt/$cf_ipv6dir/lib && cf_search="$cf_search /opt/$cf_ipv6dir/lib"
- test -d /opt/$cf_ipv6dir/lib/$cf_ipv6dir && cf_search="$cf_search /opt/$cf_ipv6dir/lib/$cf_ipv6dir"
-}
-
-test "$prefix" != /usr && \
-test -d /usr && {
- test -n "$verbose" && echo " ... testing lib-directories under /usr"
- test -d /usr/lib && cf_search="$cf_search /usr/lib"
- test -d /usr/lib/$cf_ipv6dir && cf_search="$cf_search /usr/lib/$cf_ipv6dir"
- test -d /usr/lib/$cf_ipv6dir/lib && cf_search="$cf_search /usr/lib/$cf_ipv6dir/lib"
- test -d /usr/$cf_ipv6dir/lib && cf_search="$cf_search /usr/$cf_ipv6dir/lib"
+
+test "/usr/local" != "$prefix" && \
+test -d "/usr/local" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
+ test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
+ test -d /usr/local/lib/$cf_ipv6dir && cf_search="$cf_search /usr/local/lib/$cf_ipv6dir"
+ test -d /usr/local/lib/$cf_ipv6dir/lib && cf_search="$cf_search /usr/local/lib/$cf_ipv6dir/lib"
+ test -d /usr/local/$cf_ipv6dir/lib && cf_search="$cf_search /usr/local/$cf_ipv6dir/lib"
+ test -d /usr/local/$cf_ipv6dir/lib/$cf_ipv6dir && cf_search="$cf_search /usr/local/$cf_ipv6dir/lib/$cf_ipv6dir"
+}
+
+
+test "/opt" != "$prefix" && \
+test -d "/opt" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under /opt"
+ test -d /opt/lib && cf_search="$cf_search /opt/lib"
+ test -d /opt/lib/$cf_ipv6dir && cf_search="$cf_search /opt/lib/$cf_ipv6dir"
+ test -d /opt/lib/$cf_ipv6dir/lib && cf_search="$cf_search /opt/lib/$cf_ipv6dir/lib"
+ test -d /opt/$cf_ipv6dir/lib && cf_search="$cf_search /opt/$cf_ipv6dir/lib"
+ test -d /opt/$cf_ipv6dir/lib/$cf_ipv6dir && cf_search="$cf_search /opt/$cf_ipv6dir/lib/$cf_ipv6dir"
+}
+
+
+test "$HOME" != "$prefix" && \
+test -d "$HOME" && \
+(test $prefix = NONE || test -d $prefix) && {
+ test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
+ test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
+ test -d $HOME/lib/$cf_ipv6dir && cf_search="$cf_search $HOME/lib/$cf_ipv6dir"
+ test -d $HOME/lib/$cf_ipv6dir/lib && cf_search="$cf_search $HOME/lib/$cf_ipv6dir/lib"
+ test -d $HOME/$cf_ipv6dir/lib && cf_search="$cf_search $HOME/$cf_ipv6dir/lib"
+ test -d $HOME/$cf_ipv6dir/lib/$cf_ipv6dir && cf_search="$cf_search $HOME/$cf_ipv6dir/lib/$cf_ipv6dir"
}
+
for cf_libdir in $cf_search
do
echo $ac_n "checking for -l$cf_ipv6lib in $cf_libdir""... $ac_c" 1>&6
-echo "configure:9806: checking for -l$cf_ipv6lib in $cf_libdir" >&5
+echo "configure:11422: checking for -l$cf_ipv6lib in $cf_libdir" >&5
LIBS="-L$cf_libdir -l$cf_ipv6lib $cf_save_LIBS"
cat > conftest.$ac_ext <
@@ -9816,7 +11432,7 @@ int main() {
getaddrinfo(0, 0, 0, 0)
; return 0; }
EOF
-if { (eval echo configure:9820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:11436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
eval 'cf_cv_have_lib_'$cf_ipv6lib'=yes'
@@ -9849,7 +11465,7 @@ fi
echo $ac_n "checking working getaddrinfo""... $ac_c" 1>&6
-echo "configure:9853: checking working getaddrinfo" >&5
+echo "configure:11469: checking working getaddrinfo" >&5
if eval "test \"`echo '$''{'cf_cv_getaddrinfo'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -9858,7 +11474,7 @@ if test "$cross_compiling" = yes; then
cf_cv_getaddrinfo=unknown
else
cat > conftest.$ac_ext <
@@ -9928,16 +11544,16 @@ int main()
if (aitop)
freeaddrinfo(aitop);
- exit(0);
+ ${cf_cv_main_return-return}(0);
bad:
if (aitop)
freeaddrinfo(aitop);
- exit(1);
+ ${cf_cv_main_return-return}(1);
}
EOF
-if { (eval echo configure:9941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:11557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
cf_cv_getaddrinfo=yes
else
@@ -9981,12 +11597,12 @@ fi
for ac_func in getaddrinfo getnameinfo
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:9985: checking for $ac_func" >&5
+echo "configure:11601: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:11629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -10038,7 +11654,7 @@ done
### checks for operator characteristics (should be the last option)
echo $ac_n "checking whether to make a coffee while compiling""... $ac_c" 1>&6
-echo "configure:10042: checking whether to make a coffee while compiling" >&5
+echo "configure:11658: checking whether to make a coffee while compiling" >&5
# Check whether --with-coffee or --without-coffee was given.
if test "${with_coffee+set}" = set; then
@@ -10063,20 +11679,20 @@ fi
### checks for compiler characteristics
echo $ac_n "checking for makeflags variable""... $ac_c" 1>&6
-echo "configure:10067: checking for makeflags variable" >&5
+echo "configure:11683: checking for makeflags variable" >&5
if eval "test \"`echo '$''{'cf_cv_makeflags'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cf_cv_makeflags=''
- for cf_option in '-$(MAKEFLAGS)' '$(MFLAGS)'
+ for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
do
cat >cf_makeflags.tmp </dev/null`
+ cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
case "$cf_result" in
.*k)
cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
@@ -10109,12 +11725,12 @@ ac_link='${CC-cc} -o conftest${ac_exeext
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking for working const""... $ac_c" 1>&6
-echo "configure:10113: checking for working const" >&5
+echo "configure:11729: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
@@ -10184,21 +11800,21 @@ EOF
fi
echo $ac_n "checking for inline""... $ac_c" 1>&6
-echo "configure:10188: checking for inline" >&5
+echo "configure:11804: checking for inline" >&5
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_inline=$ac_kw; break
else
@@ -10225,13 +11841,13 @@ esac
echo $ac_n "checking for ansi token expansion/substitution""... $ac_c" 1>&6
-echo "configure:10229: checking for ansi token expansion/substitution" >&5
+echo "configure:11845: checking for ansi token expansion/substitution" >&5
if eval "test \"`echo '$''{'cf_cv_cpp_expands'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_cpp_expands=yes
else
@@ -10260,13 +11876,13 @@ EOF
echo $ac_n "checking for ansi token concatenation""... $ac_c" 1>&6
-echo "configure:10264: checking for ansi token concatenation" >&5
+echo "configure:11880: checking for ansi token concatenation" >&5
if eval "test \"`echo '$''{'cf_cv_cpp_concats'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_cpp_concats=yes
else
@@ -10295,20 +11911,20 @@ EOF
echo $ac_n "checking if nested parameters work""... $ac_c" 1>&6
-echo "configure:10299: checking if nested parameters work" >&5
+echo "configure:11915: checking if nested parameters work" >&5
if eval "test \"`echo '$''{'cf_cv_nested_params'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_nested_params=yes
else
@@ -10331,12 +11947,12 @@ EOF
### Checks for header files.
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:10335: checking for ANSI C header files" >&5
+echo "configure:11951: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#include
@@ -10344,7 +11960,7 @@ else
#include
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:11964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -10361,7 +11977,7 @@ rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <
EOF
@@ -10379,7 +11995,7 @@ fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <
EOF
@@ -10400,7 +12016,7 @@ if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@@ -10411,7 +12027,7 @@ if (XOR (islower (i), ISLOWER (i)) || to
exit (0); }
EOF
-if { (eval echo configure:10415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:12031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
:
else
@@ -10439,12 +12055,12 @@ for ac_hdr in dirent.h sys/ndir.h sys/di
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
-echo "configure:10443: checking for $ac_hdr that defines DIR" >&5
+echo "configure:12059: checking for $ac_hdr that defines DIR" >&5
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#include <$ac_hdr>
@@ -10452,7 +12068,7 @@ int main() {
DIR *dirp = 0;
; return 0; }
EOF
-if { (eval echo configure:10456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:12072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_header_dirent_$ac_safe=yes"
else
@@ -10477,7 +12093,7 @@ done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
-echo "configure:10481: checking for opendir in -ldir" >&5
+echo "configure:12097: checking for opendir in -ldir" >&5
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -10485,7 +12101,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ldir $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:12116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -10518,7 +12134,7 @@ fi
else
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
-echo "configure:10522: checking for opendir in -lx" >&5
+echo "configure:12138: checking for opendir in -lx" >&5
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -10526,7 +12142,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lx $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:12157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -10560,12 +12176,12 @@ fi
fi
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
-echo "configure:10564: checking whether time.h and sys/time.h may both be included" >&5
+echo "configure:12180: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#include
@@ -10574,7 +12190,7 @@ int main() {
struct tm *tp;
; return 0; }
EOF
-if { (eval echo configure:10578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:12194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_time=yes
else
@@ -10595,12 +12211,12 @@ EOF
fi
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
-echo "configure:10599: checking for sys/wait.h that is POSIX.1 compatible" >&5
+echo "configure:12215: checking for sys/wait.h that is POSIX.1 compatible" >&5
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#include
@@ -10616,7 +12232,7 @@ wait (&s);
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
; return 0; }
EOF
-if { (eval echo configure:10620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:12236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_sys_wait_h=yes
else
@@ -10695,9 +12311,9 @@ for cf_hdr in \
do
echo $ac_n "checking for $cf_hdr""... $ac_c" 1>&6
-echo "configure:10699: checking for $cf_hdr" >&5
+echo "configure:12315: checking for $cf_hdr" >&5
cat > conftest.$ac_ext <
@@ -10705,7 +12321,7 @@ echo "configure:10699: checking for $cf_
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:12325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -10741,17 +12357,17 @@ unistd.h \
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:10745: checking for $ac_hdr" >&5
+echo "configure:12361: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:12371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -10782,17 +12398,17 @@ if test "$ISC" = yes ; then
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:10786: checking for $ac_hdr" >&5
+echo "configure:12402: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:10796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:12412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -10827,16 +12443,16 @@ if test "$ac_cv_header_termios_h" = yes
esac
if test "$termios_bad" = maybe ; then
echo $ac_n "checking whether termios.h needs _POSIX_SOURCE""... $ac_c" 1>&6
-echo "configure:10831: checking whether termios.h needs _POSIX_SOURCE" >&5
+echo "configure:12447: checking whether termios.h needs _POSIX_SOURCE" >&5
cat > conftest.$ac_ext <
int main() {
struct termios foo; int x = foo.c_iflag
; return 0; }
EOF
-if { (eval echo configure:10840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:12456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
termios_bad=no
else
@@ -10845,7 +12461,7 @@ else
rm -rf conftest*
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:12474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
termios_bad=unknown
else
@@ -10877,7 +12493,7 @@ fi
echo $ac_n "checking declaration of size-change""... $ac_c" 1>&6
-echo "configure:10881: checking declaration of size-change" >&5
+echo "configure:12497: checking declaration of size-change" >&5
if eval "test \"`echo '$''{'cf_cv_sizechange'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10891,7 +12507,7 @@ do
CPPFLAGS="$cf_save_CPPFLAGS"
test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
cat > conftest.$ac_ext <
#ifdef HAVE_TERMIOS_H
@@ -10930,7 +12546,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:10934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:12550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_sizechange=yes
else
@@ -10969,7 +12585,7 @@ fi
echo $ac_n "checking if sys/time.h conflicts with sys/select.h""... $ac_c" 1>&6
-echo "configure:10973: checking if sys/time.h conflicts with sys/select.h" >&5
+echo "configure:12589: checking if sys/time.h conflicts with sys/select.h" >&5
if eval "test \"`echo '$''{'cf_cv_sys_select_timeval'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10977,7 +12593,7 @@ else
for cf_opts in no yes
do
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:12625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_sys_select_timeval=$cf_opts
break
@@ -11029,12 +12645,12 @@ EOF
### Checks for Datatypes.
echo $ac_n "checking for gid_t""... $ac_c" 1>&6
-echo "configure:11033: checking for gid_t" >&5
+echo "configure:12649: checking for gid_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_gid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#if STDC_HEADERS
@@ -11062,12 +12678,12 @@ EOF
fi
echo $ac_n "checking for mode_t""... $ac_c" 1>&6
-echo "configure:11066: checking for mode_t" >&5
+echo "configure:12682: checking for mode_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#if STDC_HEADERS
@@ -11095,12 +12711,12 @@ EOF
fi
echo $ac_n "checking for off_t""... $ac_c" 1>&6
-echo "configure:11099: checking for off_t" >&5
+echo "configure:12715: checking for off_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#if STDC_HEADERS
@@ -11128,12 +12744,12 @@ EOF
fi
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
-echo "configure:11132: checking for pid_t" >&5
+echo "configure:12748: checking for pid_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#if STDC_HEADERS
@@ -11161,12 +12777,12 @@ EOF
fi
echo $ac_n "checking for size_t""... $ac_c" 1>&6
-echo "configure:11165: checking for size_t" >&5
+echo "configure:12781: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#if STDC_HEADERS
@@ -11194,12 +12810,12 @@ EOF
fi
echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
-echo "configure:11198: checking for ssize_t" >&5
+echo "configure:12814: checking for ssize_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#if STDC_HEADERS
@@ -11227,12 +12843,12 @@ EOF
fi
echo $ac_n "checking for time_t""... $ac_c" 1>&6
-echo "configure:11231: checking for time_t" >&5
+echo "configure:12847: checking for time_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#if STDC_HEADERS
@@ -11260,7 +12876,7 @@ EOF
fi
cat > conftest.$ac_ext <
EOF
@@ -11271,7 +12887,7 @@ else
rm -rf conftest*
cat > conftest.$ac_ext <
EOF
@@ -11282,12 +12898,12 @@ else
rm -rf conftest*
echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
-echo "configure:11286: checking for in_addr_t" >&5
+echo "configure:12902: checking for in_addr_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_in_addr_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#if STDC_HEADERS
@@ -11323,12 +12939,12 @@ fi
rm -f conftest*
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
-echo "configure:11327: checking for uid_t in sys/types.h" >&5
+echo "configure:12943: checking for uid_t in sys/types.h" >&5
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
EOF
@@ -11358,9 +12974,9 @@ fi
echo $ac_n "checking for quad_t""... $ac_c" 1>&6
-echo "configure:11362: checking for quad_t" >&5
+echo "configure:12978: checking for quad_t" >&5
cat > conftest.$ac_ext <
@@ -11373,7 +12989,7 @@ int main() {
quad_t x; x = 0
; return 0; }
EOF
-if { (eval echo configure:11377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:12993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_quad_t=yes
else
@@ -11392,9 +13008,9 @@ EOF
fi
echo $ac_n "checking for long long""... $ac_c" 1>&6
-echo "configure:11396: checking for long long" >&5
+echo "configure:13012: checking for long long" >&5
cat > conftest.$ac_ext <
@@ -11403,7 +13019,7 @@ int main() {
long long x; x = 0
; return 0; }
EOF
-if { (eval echo configure:11407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:13023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_long_long=yes
else
@@ -11422,9 +13038,9 @@ EOF
fi
echo $ac_n "checking for nl_item""... $ac_c" 1>&6
-echo "configure:11426: checking for nl_item" >&5
+echo "configure:13042: checking for nl_item" >&5
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:13059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_nl_item=yes
else
@@ -11461,7 +13077,7 @@ fi
# libuu/uudeview
# only define HAVE_LIBUU and HAVE_UUDEVIEW_H if both are found
echo $ac_n "checking for UUInitialize in -luu""... $ac_c" 1>&6
-echo "configure:11465: checking for UUInitialize in -luu" >&5
+echo "configure:13081: checking for UUInitialize in -luu" >&5
ac_lib_var=`echo uu'_'UUInitialize | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -11469,7 +13085,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-luu $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:13100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -11497,17 +13113,17 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_l
echo "$ac_t""yes" 1>&6
ac_safe=`echo "uudeview.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for uudeview.h""... $ac_c" 1>&6
-echo "configure:11501: checking for uudeview.h" >&5
+echo "configure:13117: checking for uudeview.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:11511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:13127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -11545,7 +13161,7 @@ fi
# libidn - Internationalized Domain Names
echo $ac_n "checking for stringprep_check_version in -lidn""... $ac_c" 1>&6
-echo "configure:11549: checking for stringprep_check_version in -lidn" >&5
+echo "configure:13165: checking for stringprep_check_version in -lidn" >&5
ac_lib_var=`echo idn'_'stringprep_check_version | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -11553,7 +13169,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lidn $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:13184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -11581,17 +13197,17 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_l
echo "$ac_t""yes" 1>&6
ac_safe=`echo "stringprep.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for stringprep.h""... $ac_c" 1>&6
-echo "configure:11585: checking for stringprep.h" >&5
+echo "configure:13201: checking for stringprep.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:11595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:13211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -11614,17 +13230,17 @@ EOF
ac_safe=`echo "idna.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for idna.h""... $ac_c" 1>&6
-echo "configure:11618: checking for idna.h" >&5
+echo "configure:13234: checking for idna.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:11628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:13244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -11646,7 +13262,7 @@ if eval "test \"`echo '$ac_cv_header_'$a
EOF
echo $ac_n "checking for idna_to_unicode_lzlz in -lidn""... $ac_c" 1>&6
-echo "configure:11650: checking for idna_to_unicode_lzlz in -lidn" >&5
+echo "configure:13266: checking for idna_to_unicode_lzlz in -lidn" >&5
ac_lib_var=`echo idn'_'idna_to_unicode_lzlz | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -11654,7 +13270,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lidn $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:13285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -11686,9 +13302,9 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_l
EOF
echo $ac_n "checking for IDNA_USE_STD3_ASCII_RULES""... $ac_c" 1>&6
-echo "configure:11690: checking for IDNA_USE_STD3_ASCII_RULES" >&5
+echo "configure:13306: checking for IDNA_USE_STD3_ASCII_RULES" >&5
cat > conftest.$ac_ext <
EOF
@@ -11737,17 +13353,17 @@ fi
# ICU - International Components for Unicode
ac_safe=`echo "unicode/unorm.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for unicode/unorm.h""... $ac_c" 1>&6
-echo "configure:11741: checking for unicode/unorm.h" >&5
+echo "configure:13357: checking for unicode/unorm.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:11751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:13367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -11766,17 +13382,17 @@ if eval "test \"`echo '$ac_cv_header_'$a
ac_safe=`echo "unicode/ustring.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for unicode/ustring.h""... $ac_c" 1>&6
-echo "configure:11770: checking for unicode/ustring.h" >&5
+echo "configure:13386: checking for unicode/ustring.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:11780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:13396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -11802,12 +13418,12 @@ EOF
EOF
echo $ac_n "checking for unorm_normalize in libicuuc""... $ac_c" 1>&6
-echo "configure:11806: checking for unorm_normalize in libicuuc" >&5
+echo "configure:13422: checking for unorm_normalize in libicuuc" >&5
cf_save_LIBS="$LIBS"
cf_try_icuuc="no"
LIBS="$LIBS -licuuc"
cat > conftest.$ac_ext <
int main() {
@@ -11817,7 +13433,7 @@ int main() {
needed = unorm_normalize(ustr, -1, UNORM_DEFAULT, 0, NULL, 0, &status);
; return 0; }
EOF
-if { (eval echo configure:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:13437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
@@ -11836,17 +13452,17 @@ rm -f conftest*
echo "$ac_t""$cf_try_icuuc" 1>&6
ac_safe=`echo "unicode/ubidi.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for unicode/ubidi.h""... $ac_c" 1>&6
-echo "configure:11840: checking for unicode/ubidi.h" >&5
+echo "configure:13456: checking for unicode/ubidi.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:11850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:13466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -11893,24 +13509,24 @@ else
cf_cv_termlib=none
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:13520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:13530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_termlib=terminfo
else
@@ -11922,6 +13538,9 @@ fi
rm -f conftest*
test -n "$verbose" && echo " using functions in predefined $cf_cv_termlib LIBS" 1>&6
+echo "${as_me-configure}:13542: testing using functions in predefined $cf_cv_termlib LIBS ..." 1>&5
+
+
else
echo "configure: failed program was:" >&5
@@ -11939,16 +13558,16 @@ if test "$cf_cv_termlib" = none; then
for cf_func in tigetstr tgetstr
do
echo $ac_n "checking for $cf_func in -l$cf_lib""... $ac_c" 1>&6
-echo "configure:11943: checking for $cf_func in -l$cf_lib" >&5
+echo "configure:13562: checking for $cf_func in -l$cf_lib" >&5
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:13571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_result=yes
else
@@ -11975,7 +13594,7 @@ fi
if test "$cf_cv_termlib" = none; then
# allow curses library for broken AIX system.
echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
-echo "configure:11979: checking for initscr in -lcurses" >&5
+echo "configure:13598: checking for initscr in -lcurses" >&5
ac_lib_var=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -11983,7 +13602,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lcurses $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:13617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -12015,7 +13634,7 @@ else
fi
echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
-echo "configure:12019: checking for tgoto in -ltermcap" >&5
+echo "configure:13638: checking for tgoto in -ltermcap" >&5
ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -12023,7 +13642,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ltermcap $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:13657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -12067,11 +13686,11 @@ fi
# terminfo-based termcap interfaces may be prototyped in ,
# which may/may not be compatible with
echo $ac_n "checking if we should include termcap.h""... $ac_c" 1>&6
-echo "configure:12071: checking if we should include termcap.h" >&5
+echo "configure:13690: checking if we should include termcap.h" >&5
cf_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -I$srcdir/include"
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:13707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_result=yes
else
@@ -12102,7 +13721,7 @@ EOF
echo $ac_n "checking for term.h""... $ac_c" 1>&6
-echo "configure:12106: checking for term.h" >&5
+echo "configure:13725: checking for term.h" >&5
if eval "test \"`echo '$''{'cf_cv_term_header'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -12115,7 +13734,7 @@ for cf_header in \
term.h
do
cat > conftest.$ac_ext <
@@ -12124,7 +13743,7 @@ int main() {
WINDOW *x
; return 0; }
EOF
-if { (eval echo configure:12128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:13747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_term_header=$cf_header
break
@@ -12165,7 +13784,7 @@ esac
echo $ac_n "checking if we should include curses.h or termcap.h""... $ac_c" 1>&6
-echo "configure:12169: checking if we should include curses.h or termcap.h" >&5
+echo "configure:13788: checking if we should include curses.h or termcap.h" >&5
if eval "test \"`echo '$''{'cf_cv_need_curses_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -12183,7 +13802,7 @@ do
test -n "$cf_t_opts" && CPPFLAGS="$CPPFLAGS -D$cf_t_opts"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:13814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
test "$cf_cv_need_curses_h" = no && {
cf_cv_need_curses_h=maybe
@@ -12204,7 +13823,7 @@ else
rm -rf conftest*
echo "Recompiling with corrected call (C:$cf_c_opts, T:$cf_t_opts)" >&5
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:13835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_need_curses_h=yes
cf_ok_c_opts=$cf_c_opts
@@ -12288,7 +13907,7 @@ esac
echo $ac_n "checking declaration of tputs 3rd param""... $ac_c" 1>&6
-echo "configure:12292: checking declaration of tputs 3rd param" >&5
+echo "configure:13911: checking declaration of tputs 3rd param" >&5
if eval "test \"`echo '$''{'cf_cv_type_outchar'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -12304,10 +13923,10 @@ for Q in int void; do
for R in int char; do
for S in "" const; do
-echo "(line 12308) testing loop variables P:$P, Q:$Q, R:$R, S:$S ..." 1>&5
+echo "${as_me-configure}:13927: testing loop variables P:$P, Q:$Q, R:$R, S:$S ..." 1>&5
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:13939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_type_outchar="$Q OutChar($R)"
cf_cv_found=yes
@@ -12371,14 +13990,14 @@ EOF
elif test ".$cf_cv_termlib" = .termcap ; then
# BSD 'tputs()' may need 'PC' to be set.
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:14001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define HAVE_EXTERN_TCAP_PC 1
@@ -12397,13 +14016,13 @@ fi
echo $ac_n "checking if external errno is declared""... $ac_c" 1>&6
-echo "configure:12401: checking if external errno is declared" >&5
+echo "configure:14020: checking if external errno is declared" >&5
if eval "test \"`echo '$''{'cf_cv_dcl_errno'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:14039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_dcl_errno=yes
else
@@ -12444,13 +14063,13 @@ fi
# It's possible (for near-UNIX clones) that the data doesn't exist
echo $ac_n "checking if external errno exists""... $ac_c" 1>&6
-echo "configure:12448: checking if external errno exists" >&5
+echo "configure:14067: checking if external errno exists" >&5
if eval "test \"`echo '$''{'cf_cv_have_errno'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:14083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_have_errno=yes
else
@@ -12492,12 +14111,12 @@ fi
for ac_func in strerror
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:12496: checking for $ac_func" >&5
+echo "configure:14115: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:14143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -12547,13 +14166,13 @@ else
echo $ac_n "checking if external sys_nerr is declared""... $ac_c" 1>&6
-echo "configure:12551: checking if external sys_nerr is declared" >&5
+echo "configure:14170: checking if external sys_nerr is declared" >&5
if eval "test \"`echo '$''{'cf_cv_dcl_sys_nerr'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:14189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_dcl_sys_nerr=yes
else
@@ -12594,13 +14213,13 @@ fi
# It's possible (for near-UNIX clones) that the data doesn't exist
echo $ac_n "checking if external sys_nerr exists""... $ac_c" 1>&6
-echo "configure:12598: checking if external sys_nerr exists" >&5
+echo "configure:14217: checking if external sys_nerr exists" >&5
if eval "test \"`echo '$''{'cf_cv_have_sys_nerr'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:14233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_have_sys_nerr=yes
else
@@ -12639,13 +14258,13 @@ fi
echo $ac_n "checking if external sys_errlist is declared""... $ac_c" 1>&6
-echo "configure:12643: checking if external sys_errlist is declared" >&5
+echo "configure:14262: checking if external sys_errlist is declared" >&5
if eval "test \"`echo '$''{'cf_cv_dcl_sys_errlist'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:14281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_dcl_sys_errlist=yes
else
@@ -12686,13 +14305,13 @@ fi
# It's possible (for near-UNIX clones) that the data doesn't exist
echo $ac_n "checking if external sys_errlist exists""... $ac_c" 1>&6
-echo "configure:12690: checking if external sys_errlist exists" >&5
+echo "configure:14309: checking if external sys_errlist exists" >&5
if eval "test \"`echo '$''{'cf_cv_have_sys_errlist'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:14325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_have_sys_errlist=yes
else
@@ -12754,7 +14373,6 @@ for ac_func in \
inet_aton \
is_xterm \
isascii \
- link \
lockf \
memcmp \
memcpy \
@@ -12798,12 +14416,12 @@ for ac_func in \
$cf_tc_funcs
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:12802: checking for $ac_func" >&5
+echo "configure:14420: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:14448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -12852,12 +14470,12 @@ done
echo $ac_n "checking for flock""... $ac_c" 1>&6
-echo "configure:12856: checking for flock" >&5
+echo "configure:14474: checking for flock" >&5
if eval "test \"`echo '$''{'ac_cv_func_flock'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:14502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_flock=yes"
else
@@ -12902,7 +14520,7 @@ else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for flock in -lbsd""... $ac_c" 1>&6
-echo "configure:12906: checking for flock in -lbsd" >&5
+echo "configure:14524: checking for flock in -lbsd" >&5
ac_lib_var=`echo bsd'_'flock | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -12910,7 +14528,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lbsd $LIBS"
cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:14543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -12950,12 +14568,12 @@ fi
echo $ac_n "checking for wide char and multibyte support""... $ac_c" 1>&6
-echo "configure:12954: checking for wide char and multibyte support" >&5
+echo "configure:14572: checking for wide char and multibyte support" >&5
if eval "test \"`echo '$''{'am_cv_multibyte_able'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#ifdef HAVE_STDLIB_H
@@ -12991,7 +14609,7 @@ char icb[5] = {0xa4, 0xa4, 0xa4, 0xe5, 0
wcsncat(wcb2, wcb, 5);
; return 0; }
EOF
-if { (eval echo configure:12995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:14613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
am_cv_multibyte_able=yes
else
@@ -13001,7 +14619,7 @@ else
cf_save_LIBS="$LIBS"
LIBS="-lutf8 $LIBS"
cat > conftest.$ac_ext <
int main() {
@@ -13027,7 +14645,7 @@ char icb[5] = {0xa4, 0xa4, 0xa4, 0xe5, 0
wcsncat(wcb2, wcb, 5);
; return 0; }
EOF
-if { (eval echo configure:13031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:14649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
am_cv_multibyte_able=libutf8
else
@@ -13061,9 +14679,9 @@ EOF
echo $ac_n "checking if gettimeofday takes two arguments""... $ac_c" 1>&6
-echo "configure:13065: checking if gettimeofday takes two arguments" >&5
+echo "configure:14683: checking if gettimeofday takes two arguments" >&5
cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:14697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_func_gettimeofday_2args=yes
else
@@ -13094,12 +14712,12 @@ EOF
fi
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
-echo "configure:13098: checking return type of signal handlers" >&5
+echo "configure:14716: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <
#include
@@ -13116,7 +14734,7 @@ int main() {
int i;
; return 0; }
EOF
-if { (eval echo configure:13120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:14738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_type_signal=void
else
@@ -13136,7 +14754,7 @@ EOF
echo $ac_n "checking declaration of signal arguments""... $ac_c" 1>&6
-echo "configure:13140: checking declaration of signal arguments" >&5
+echo "configure:14758: checking declaration of signal arguments" >&5
if eval "test \"`echo '$''{'cf_cv_sig_args'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -13145,7 +14763,7 @@ cf_cv_sig_args=
for cf_test in "int sig" "int sig, ..."
do
cat > conftest.$ac_ext <