-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
1030 lines (967 loc) · 33.7 KB
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
dnl configure.in for BitchX 1.0
dnl Copyright (c) 1999-2001 David Walluck
dnl All rights reserved.
AC_PREREQ(2.49b)
AC_REVISION($Revision: 1.1.1.1 $)
AC_INIT
AC_CONFIG_SRCDIR([$srcdir/source/irc.c])
topdir="`pwd`"
AC_SUBST(topdir)
AC_CONFIG_HEADERS(include/defs.h)
dnl Get the version number from source/irc.c.
dnl Maybe it's better to set the VERSION in here instead.
VERSION=`sed -n -e 's/";$//' -e '/ const char irc_version.. = "/s///p' -e '/const char irc_version/q' < $srcdir/source/irc.c 2>/dev/null`
if test x"$VERSION" = x""; then
VERSION="BitchX-1.0"
fi
_VERSION_="BitchX"
VERSION_NUMBER="`echo "$VERSION" | sed 's/BitchX-//'`"
AC_DEFINE_UNQUOTED(VERSION_NUMBER, "$VERSION_NUMBER", Define BitchX version number here.)
AC_SUBST(VERSION_NUMBER)
echo Welcome to the "$VERSION" configuration
echo
dnl Checks for programs.
dnl _AC_EMXOS2
dnl _AC_CYGWIN
AC_PROG_CC
AC_PROG_INSTALL
AM_SANITY_CHECK
AC_PROG_LN_S
AC_ARG_PROGRAM
AC_CHECK_PROG(MAKE, gmake, gmake)
if test x"$MAKE" = x""; then
AC_CHECK_PROG(MAKE, make, make)
fi
AC_SUBST(MAKE)
AC_PROG_MAKE_SET
AC_PROG_GCC_TRADITIONAL
AC_ISC_POSIX
AC_AIX
AC_PROG_AWK
dnl Checks for libraries.
AC_CHECK_LIB(sun, getpwnam, LIBS="-lsun $LIBS",)
AC_CHECK_LIB(dgc, inet_addr, LIBS="-ldgc $LIBS",)
AC_CHECK_LIB(resolv, res_mkquery, LIBS="-lresolv $LIBS"; AC_DEFINE(HAVE_RESOLV, 1, Define this if you have the resolv library.),)
AC_CHECK_LIB(c, res_mkquery, AC_DEFINE(HAVE_RESOLV, 1, Define this if you have the resolv library.),)
AC_CHECK_LIB(crypt, crypt, LIBS="-lcrypt $LIBS"; AC_DEFINE(HAVE_CRYPT, 1, Define this if you have a crypt implementation in -lcrypt),)
AC_CHECK_LIB(m, pow, LIBS="-lm $LIBS",)
dnl Checks for header files.
AC_HEADER_DIRENT
AC_CHECK_HEADERS(arpa/inet.h net/if.h sys/time.h sys/fcntl.h fcntl.h sys/file.h sys/syslimits.h netinet/in_systm.h sys/in_systm.h netdb.h sys/un.h sys/filio.h regex.h resolv.h arpa/nameser.h dirent.h sys/ndir.h sys/dir.h ndir.h)
dnl Checks for declarations.
AC_CHECK_DECLARATION(stpcpy, stpcpy, stpcpy, string.h, STPCPY_DECLARED)
AC_CHECK_DECLARATION(getpgid, getpgid, [" getpgid"], unistd.h, GETPGID_DECLARED)
AC_CHECK_DECLARATION(killpg, killpg, killpg, signal.h, KILLPG_DECLARED)
AC_CHECK_DECLARATION(getpass, getpass, getpass, unistd.h, GETPASS_DECLARED)
AC_CHECK_DECLARATION(errno, errno, [int?( | )_?_?errno], errno.h, ERRNO_DECLARED)
AC_CHECK_DECLARATION(struct linger, struct_linger, [struct( | )*linger], sys/socket.h, STRUCT_LINGER_DECLARED)
AC_CHECK_DECLARATION(sun_len, sun_len, sun_len, sys/un.h, HAVE_SUN_LEN)
AC_CHECK_DECLARATION(bcopy, bcopy, bcopy, string.h, BCOPY_DECLARED)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_PROG_CC_STDC
AC_C_CONST
AC_TYPE_UID_T
AC_C_INLINE
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SIGNAL
AC_DECL_SYS_SIGLIST
AC_HEADER_TIME
AC_CHECK_SIZEOF(unsigned int, 4)
if test x"$ac_cv_sizeof_unsigned_int" = x"4"; then
AC_DEFINE(UNSIGNED_INT32, 1, Define this if an unsigned long is 32 bits.)
else
AC_CHECK_SIZEOF(unsigned long, 4)
if test x"$ac_cv_sizeof_unsigned_long" = x"4"; then
AC_DEFINE(UNSIGNED_LONG32, 1, Define this if an unsigned int is 32 bits.)
else
AC_DEFINE(UNKNOWN_32INT, 1, Define this if you are unsure what is 32 bits.)
fi
fi
dnl Checks for library functions.
AC_FUNC_ALLOCA
if test x"$cross_compiling" != x"yes"; then
AC_FUNC_GETPGRP
AC_FUNC_SETPGRP
fi
AC_FUNC_STRFTIME
AC_CHECK_FUNCS(socket gethostname gettimeofday strtoul strlcpy strlcat stpcpy vsnprintf snprintf setsid strerror uname getrusage sysconf getpgid killpg getlogin realpath fchdir getpass fpathconf getpwent setvbuf select mkstemp memmove scandir)
dnl Need these for Solaris
AC_CHECK_FUNC(gethostbyname,,
AC_CHECK_LIB(nsl, gethostbyname, LIBS="-lnsl $LIBS",))
AC_CHECK_FUNC(connect,,
AC_CHECK_LIB(socket, connect, LIBS="-lsocket $LIBS",))
AC_CHECK_FUNC(inet_aton, AC_DEFINE(HAVE_INET_ATON, 1, Define this if inet_aton is in the system), AC_CHECK_LIB(resolv, inet_aton, LIBS="-lresolv $LIBS" ; AC_DEFINE(HAVE_INET_ATON, 1, Define this if inet_aton is in the system.),))
dnl Checking this produces a warning from autoconf.
if test x"$cross_compiling" = x"no"; then
AC_FUNC_SETVBUF_REVERSED
else
AC_MSG_RESULT(cross-compiling - assuming setvbuf params are not reversed)
fi
dnl Check for non-blocking type. This is from ircii-2.8.2's configure.in.
dnl (c) 1993 Matthew Green
dnl (c) 1999 David Walluck
AC_CACHE_CHECK(for non-blocking type, ac_cv_non_blocking_type,
[ changequote(<<, >>)dnl
<<
precode='#include <sys/types.h>
#include <sys/socket.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/file.h>
#include <signal.h>
typedef void (*sighandler_t)(int);
sighandler_t signal(int signum, sighandler_t handler);
int alarmed(void)
{
exit(1);
}
int main()
{
char b[12], x[32];
int f, l = sizeof(x);
f = socket(AF_INET, SOCK_DGRAM, 0);
if (f >= 0 && (fcntl(f, F_SETFL,'
postcode=') != -1))
{
signal(SIGALRM, (sighandler_t)alarmed);
alarm(3);
recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
alarm(0);
exit(0);
}
exit(1);
}'
>>
changequote([, ])dnl
code="$precode O_NONBLOCK $postcode"
AC_TRY_RUN($code,
ac_cv_non_blocking_type="posix",
code="$precode O_NDELAY $postcode"
AC_TRY_RUN($code,
ac_cv_non_blocking_type="bsd",
code="$precode FIONBIO $postcode"
AC_TRY_RUN($code,
ac_cv_non_blocking_type="unknown",
ac_cv_non_blocking_type="cross-compiling",
:),
:),
:)])
case "$ac_cv_non_blocking_type" in
posix)
AC_DEFINE(NBLOCK_POSIX, 1, Define this if your non-blocking type is posix.)
;;
bsd)
AC_DEFINE(NBLOCK_BSD, 1, Define this if your non-blocking type is bsd.)
;;
sysv)
AC_DEFINE(NBLOCK_SYSV, 1, Define this if your non-blocking type is sysv.)
;;
unknown)
AC_MSG_WARN(cannot find a working non-blocking system)
;;
cross)
AC_MSG_WARN(cross-compiling: assuming non-blocking is posix)
AC_DEFINE(NBLOCK_POSIX, 1, Define this if your non-blocking type is posix.)
;;
esac
AH_VERBATIM([NON_BLOCKING_CONNECTS],
[/*
* Are we doing non-blocking connects? Note: SOCKS support precludes us from
* using this feature.
*/
#if (defined(NBLOCK_POSIX) || defined(NBLOCK_BSD) || defined(NBLOCK_SYSV)) && !defined(SOCKS)
#define NON_BLOCKING_CONNECTS
#endif])
dnl This is all stolen from perl-4.036's Configure. larry is god.
dnl Well, most of it. Couple of tweaks to make it work better.
dnl This fails on cygwin, and probably emxos2, because the header files aren't
dnl in the standard "/usr/include" location. There's got to be a better way.
AC_CACHE_CHECK(for a list of signal names, ac_cv_signal_names,
[ if test x"$ac_cv_decl_sys_siglist" != x"yes"; then
if test -f "$srcdir/include/sig.inc"; then
rm -f $srcdir/include/sig.inc
fi
set X `cat $oldincludedir/signal.h $oldincludedir/sys/signal.h \
$oldincludedir/linux/signal.h 2>&1 | sed 's/^#[ ]*/#/' | \
$AWK '$1 ~ /^#define$/ && $2 ~ /^SIG[A-Z0-9]*$/ && $3 ~ /^[1-9][0-9]*$/ {
[sig[$3] = substr($2,4,20)]
if (max < $3 && $3 < 60) {
max = $3
}
}
END {
for (i=1; i<=max; i++) {
[if (sig[i] == "")]
printf "%d", i
else
[printf "%s", sig[i]]
if (i < max)
printf " "
}
printf "\n"
}
'`
shift
case "$#" in
0)
set X `kill -l 2> /dev/null`
shift
case "$#" in
0)
if test -f /bin/csh; then
set X `/bin/csh -cf 'kill -l'`
shift
case "$#" in
0)
set HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM
;;
esac
fi
;;
esac
;;
esac
sig_name="ZERO $*"
[ echo "$sig_name" | sed -e 's/$/"};/' -e 's/ /", "/g' -e 's/^/char *sys_siglist[] = { "/' -e 's/};/, NULL};/' > $srcdir/include/sig.inc ]
if test -f "$srcdir/include/sig.inc"; then
ac_cv_signal_names="yes"
else
ac_cv_signal_names="none"
fi
else
ac_cv_signal_names="yes"
fi
])
if test x"$ac_cv_signal_names" = x"none"; then
AC_MSG_WARN(something is wrong. Check to see that the file "$srcdir/include/sig.inc" exists.)
fi
dnl Check for GTK support.
AC_MSG_CHECKING(whether to enable GTK support)
AC_ARG_WITH(gtk,
[ --with-gtk Enable GTK support],
[ case "$withval" in
yes)
AC_MSG_RESULT(yes)
AM_PATH_GLIB(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(cannot find GLIB)))
AM_PATH_GTK(1.2.0,,AC_MSG_ERROR(AC_MSG_ERROR(cannot fing GTK)), gthread)
AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR(cannot find pthread.h))
AC_CHECK_LIB(pthread, pthread_attr_init, PTHREAD_LIBS="-lpthread",
AC_CHECK_LIB(pthreads, pthread_attr_init, PTHREAD_LIBS="-lpthreads",
AC_CHECK_LIB(c_r, pthread_attr_init, PTHREAD_LIBS="-lc_r",
AC_MSG_ERROR(cannot find pthreads))))
AM_PATH_GDK_IMLIB(1.9.4, AC_DEFINE(USE_IMLIB, 1, Define this if you want imlib support.), AC_MSG_ERROR(cannot find imlib))
AM_PATH_GNOME(1.0.0, AC_DEFINE(USE_GNOME, 1, Define this if you want GNOME support.)
[AC_TRY_RUN([
int main()
{
int major = 1;
int minor = 0;
int micro = 10;
if ($gnome_major_version > major || $gnome_minor_version > minor || $gnome_micro_version >= micro)
exit(0);
exit(1);
}
],[
if test x"$gnome_micro_version" = x"10"; then
AC_MSG_ERROR(GNOME $gnome_major_version.$gnome_minor_version.$gnome_micro_version is broken. Please upgrade gnome-libs.)
fi
AC_DEFINE(HAVE_NEW_ZVT, 1, Define this if your ZVT is newer than 1.0.10.)], , AC_MSG_WARN(cross-compiling: assuming new ZVT); AC_DEFINE(HAVE_NEW_ZVT, 1, Define this if your ZVT is newer than 1.0.10.))],
AC_MSG_ERROR(GNOME not found or too old))
AC_MSG_CHECKING(for ZVT)
ZVT_LIBS="`$GNOME_CONFIG $gnome_config_args --libs-only-l zvt`"
if test x"$ZVT_LIBS" != x""; then
AC_MSG_RESULT(yes)
AC_DEFINE(USE_ZVT, 1, Define this if you want ZVT support.)
AC_MSG_CHECKING(whether ZVT depends on gnome-libs)
AC_TRY_RUN([
int main()
{
int major = 1;
int minor = 2;
int micro = 0;
if ($gnome_major_version >= major && $gnome_minor_version >= minor)
exit(0);
exit(1);
}],[ AC_MSG_RESULT(no)
NEED_GNOME=0
], [AC_MSG_RESULT(yes)
NEED_GNOME=1
], [AC_MSG_WARN(cross-compiling: assuming yes)
NEED_GNOME=1
])
else
AC_MSG_RESULT(no)
AC_MSG_ERROR(cannot find ZVT)
fi
if test x"$NEED_GNOME" = x"1"; then
G_CFLAGS="$GLIB_CFLAGS $GTK_CFLAGS $GDK_IMLIB_CFLAGS $GNOME_CFLAGS $ZVT_CFLAGS"
G_LIBS="$GLIB_LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS $GNOME_LIBS $ZVT_LIBS"
else
G_CFLAGS="$GLIB_CFLAGS $GTK_CFLAGS $GDK_IMLIB_CFLAGS $ZVT_CFLAGS"
G_LIBS="$GLIB_LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS $ZVT_LIBS"
fi
CFLAGS="$CFLAGS $G_CFLAGS"
LIBS="$G_LIBS $LIBS"
VERSION="gtk$VERSION"
_VERSION_="gtk$_VERSION_"
AC_DEFINE(GTK, 1, Define this if you want GTK support.)
X_O="X.o"
AC_SUBST(X_O)
gtk=1
GUI_SRCS="gtkbitchx.c"
;;
no)
AC_MSG_RESULT(no)
;;
esac ],
AC_MSG_RESULT(no)
)
dnl Check for Win32 GUI support.
AC_MSG_CHECKING(whether to enable Win32 GUI support)
AC_ARG_WITH(win,
[ --with-win Enable Win32 GUI support],
[ case "$withval" in
yes)
AC_MSG_RESULT(yes)
VERSION="Win$VERSION"
_VERSION_="Win$_VERSION_"
dnl Here we could just use LDFLAGS="-mwindows", but I prefer this way
dnl so that we know exactly what's going on.
LIBS="-luser32 -lgdi32 -Wl,--subsystem,windows $LIBS"
win32=1
GUI_SRCS="winbitchx.c"
;;
no)
AC_MSG_RESULT(no)
;;
esac ],
AC_MSG_RESULT(no)
)
AH_VERBATIM([WIN32],
[/* WIN32 is true if we are building a GUI client under Windows NT */
#if defined(GUI) && defined(WINNT)
#define WIN32 1
#endif])
dnl Check for PM support.
AC_MSG_CHECKING(whether to enable OS/2 PM support)
AC_ARG_WITH(pm,
[ --with-pm Enable OS/2 PM support],
[ case "$withval" in
yes)
AC_MSG_RESULT(yes)
VERSION="PM$VERSION"
_VERSION_="PM$_VERSION_"
AC_DEFINE(__EMXPM__, 1, Define this is you want OS/2 PM support.)
LIBS="pmbitchx.def pmbitchx.res -ldw $LIBS"
pm=1
GUI_SRCS="pmbitchx.c"
;;
no)
AC_MSG_RESULT(no)
;;
esac ],
AC_MSG_RESULT(no)
)
dnl Check for sound support.
AC_MSG_CHECKING(whether to enable sound support)
AC_ARG_ENABLE(sound,
[ --enable-sound Enable sound support (Currently requires GUI BitchX)],
[ case "$enableval" in
yes)
AC_MSG_RESULT(yes)
AC_DEFINE(SOUND, 1, Define this is you want sound support via ESD.)
if test x"$pm" = x"1"; then
LIBS="-lmmpm $LIBS"
else
if test x"$gtk" = x"1"; then
AM_PATH_ESD(0.2.5, CFLAGS="$CFLAGS $ESD_CFLAGS"; LIBS="$LIBS $ESD_LIBS", AC_MSG_ERROR(AC_MSG_ERROR(cannot find ESD)))
AM_PATH_AUDIOFILE(0.1.5, CFLAGS="$CFLAGS $AUDIOFILE_CFLAGS"; LIBS="$LIBS $AUDIOFILE_LIBS", AC_MSG_ERROR(AC_MSG_ERROR(cannot find AUDIOFILE)))
else
if test x"$win32" = x"1"; then
: dnl -lmmsystem already included in link
else
AC_MSG_RESULT(no)
AC_MSG_ERROR(sound support can only be enabled in GUI BitchX.)
fi
fi
fi
;;
no)
AC_MSG_RESULT(no)
;;
esac ],
AC_MSG_RESULT(no)
)
dnl Check for SSL support.
AC_MSG_CHECKING(whether to enable SSL support)
AC_ARG_WITH(ssl,
[ --with-ssl=PFX Enable SSL support (Prefix is optional)],
[ case "$withval" in
yes)
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_SSL, 1, Define this is the system has SSL support.)
LIBS="$LIBS -lssl -lcrypto"
AC_CHECK_LIB(ssl, SSL_accept,,AC_MSG_ERROR(Could not find OpenSSL.))
;;
no)
AC_MSG_RESULT(no)
;;
*)
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_SSL, 1, Define this is the system has SSL support.)
LIBS="$LIBS -L${withval}/lib -lssl -lcrypto"
CFLAGS="$CFLAGS -I${withval}/include"
AC_CHECK_LIB(ssl, SSL_accept,,AC_MSG_ERROR(Could not find OpenSSL.))
;;
esac ],
AC_MSG_RESULT(no)
)
dnl Now that we've checked for PM and GTK support, make sure
dnl that we "#define GUI" and and that we don't build wserv or
dnl scr-bx for PMBitchX or GTKBitchX, and substitue the BitchX
dnl version now that we have the correct one.
if test -n "$gtk" -o -n "$pm" -o -n "$win32"; then
AC_DEFINE(GUI, 1, Define this if you want GUI support (PM or GTK or Win32).)
gui=1
else
if test -z "$CYGWIN" -a -z "$EMXOS2" -a -z "$MINGWIN32"; then
EXTRAS="wserv scr-bx"
INSTALL_EXTRAS="installwserv installscr-bx"
fi
fi
AC_SUBST(VERSION)
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", Define long BitchX version here.)
AC_SUBST(_VERSION_)
AC_DEFINE_UNQUOTED(_VERSION_, "$_VERSION_", Define short BitchX version here.)
AC_SUBST(EXTRAS)
AC_SUBST(INSTALL_EXTRAS)
dnl Check for setupterm/tgetent. *DO NOT* check on CYGWIN or EMXOS2 because
dnl term support is built-in.
if test -z "$CYGWIN" -a -z "$EMXOS2" -a -z "$MINGWIN32"; then
AC_MSG_CHECKING(whether to use use tgetent or setupterm)
AC_ARG_WITH(tgetent,
[ --with-tgetent Use tgetent (termcap) instead of setupterm (ncurses) ],
[ AC_MSG_RESULT(tgetent)
AC_CHECK_LIB(tinfo, tgetent, tinfo=1; LIBS="-ltinfo $LIBS",
AC_CHECK_LIB(mytinfo, tgetent, tinfo=1; LIBS="-lmytinfo $LIBS",
AC_CHECK_LIB(termcap, tgetent, termcap=1; LIBS="-ltermcap $LIBS",
AC_CHECK_LIB(termlib, tgetent, termlib=1; LIBS="-ltermlib $LIBS",
AC_CHECK_LIB(curses, tgetent, curses=1; LIBS="-lcurses $LIBS",
AC_MSG_WARN(cannot find tgetent - trying setupterm)
AC_CHECK_LIB(ncurses, setupterm, ncurses=1; LIBS="-lncurses $LIBS",
AC_CHECK_LIB(curses, setupterm, ncurses=1; LIBS="-lcurses $LIBS",
AC_CHECK_LIB(tinfo, setupterm, tinfo=1; LIBS="-ltinfo $LIBS",
AC_MSG_ERROR(cannot find tgetent or setupterm)))))))))],
[ AC_MSG_RESULT(setupterm)
AC_CHECK_LIB(ncurses, setupterm, ncurses=1; LIBS="-lncurses $LIBS",
AC_CHECK_LIB(curses, setupterm, curses=1; LIBS="-lcurses $LIBS",
AC_CHECK_LIB(tinfo, tgetent, tinfo=1; LIBS="-ltinfo $LIBS",
AC_CHECK_LIB(mytinfo, tgetent, tinfo=1; LIBS="-lmytinfo $LIBS",
AC_CHECK_LIB(tinfo, setupterm, tinfo=1; LIBS="-ltinfo $LIBS",
AC_MSG_WARN(cannot find setupterm - trying tgetent)
AC_CHECK_LIB(termlib, tgetent, termlib=1; LIBS="-ltermlib $LIBS",
AC_CHECK_LIB(termcap, tgetent, termcap=1; LIBS="-ltermcap $LIBS",
AC_CHECK_LIB(curses, tgetent, curses=1; LIBS="-lcurses $LIBS",
AC_MSG_ERROR(cannot find setupterm or tgetent)))))))))])
dnl Check for tputs and tparm.
if test x"$ncurses" = x"1"; then
AC_CHECK_DECLARATION(tparm, tparm, [tparm( | |)], ncurses.h, TPARM_DECLARED)
AC_CHECK_LIB(ncurses, tparm, AC_DEFINE(HAVE_TPARM, 1, Define this if you have the tparm function in an included lib.),)
AC_CHECK_HEADERS(ncurses.h ncurses/termcap.h termcap.h)
AC_CHECK_DECLARATION(tputs, tputs, [tputs( | |)], ncurses/termcap.h, TPUTS_DECLARED)
AC_CHECK_DECLARATION(tputs, tputs, [tputs( | |)], termcap.h, TPUTS_DECLARED)
AC_CHECK_LIB(ncurses, tputs, AC_DEFINE(HAVE_TPUTS, 1, Define this if you have the tputs function in an included lib.),)
fi
if test x"$curses" = x"1"; then
AC_CHECK_HEADERS(curses.h termcap.h)
AC_CHECK_DECLARATION(tparm, tparm, [tparm( | |)], curses.h, TPARM_DECLARED)
AC_CHECK_LIB(curses, tparm, AC_DEFINE(HAVE_TPARM, 1, Define this if you have the tparm function in an included lib.),)
AC_CHECK_DECLARATION(tputs, tputs, [tputs( | |)], curses.h, TPUTS_DECLARED)
AC_CHECK_LIB(curses, tputs, AC_DEFINE(HAVE_TPUTS, 1, Define this if you have the tputs function in an included lib.),)
AC_CHECK_DECLARATION(tputs, tputs, [tputs( | |)], termcap.h, TPUTS_DECLARED)
fi
if test x"$termcap" = x"1"; then
AC_CHECK_HEADER(termcap.h)
AC_CHECK_DECLARATION(tparm, tparm, [tparm( | |)], termcap.h, TPARM_DECLARED)
AC_CHECK_LIB(termcap, tparm, AC_DEFINE(HAVE_TPARM, 1, Define this if you have the tparm function in an included lib.),)
AC_CHECK_DECLARATION(tputs, tputs, [tputs( | |)], termcap.h, TPUTS_DECLARED)
AC_CHECK_LIB(termcap, tputs, AC_DEFINE(HAVE_TPUTS, 1, Define this if you have the tputs function in an included lib.),)
fi
fi
if test x"$ncurses" = x"1" -o x"$tinfo" = x"1"; then
AC_DEFINE(HAVE_TERMINFO, 1, Define this if you have terminfo support.)
fi
dnl Check for Tcl.
AC_MSG_CHECKING(whether to enable Tcl support)
AC_ARG_WITH(tcl,
[ --with-tcl Enable Tcl support],
[ case "$withval" in
yes)
AC_MSG_RESULT(yes)
AC_DEFINE(WANT_TCL, 1, Define this if you want Tcl support.)
dnl For some reason, panasync's system needs this check.
AC_CHECK_SHLIB
AC_CHECK_HEADER(tcl.h, AC_DEFINE(HAVE_TCL_H, 1, Define if you have the <tcl.h> header file.),
AC_MSG_CHECKING(for alternate tcl.h)
for startdir in /usr/include /usr/local /opt
do
for file in `(find $startdir -name tcl.h | sort -r) 2>/dev/null`
do
if test "$TCL_INC" = ""; then
genname=`echo $file | grep generic`
if test "$genname" = ""; then
TCL_INC=`echo $file | sed [email protected]@@`
TCL_INC="-I$TCL_INC"
AC_MSG_RESULT(yes)
fi
fi
done
done
if test "$TCL_INC" = ""; then
AC_MSG_RESULT(no)
AC_MSG_ERROR(cannot find tcl.h)
fi
CFLAGS="$CFLAGS $TCL_INC")
dnl A lot of people can't seem to install Tcl correctly, for whatever
dnl reason, including cygwin.
AC_CHECK_LIB(tcl, Tcl_SetVar, TCL_LIBS="-ltcl",
AC_MSG_CHECKING(for alternate libtcl)
for startdir in /lib /usr/lib /usr/local /opt
do
for file in `(find $startdir -name "libtcl*" | sort -r) 2>/dev/null`
do
if test "$TCL_LIBS" = ""; then
for num in 1 2 3 4 5 6 7 8 9
do
testname=`echo $file | cut -f $num -d / | grep libtcl`
stubname=`echo $testname | grep libtclstub`
if test "$stubname" = ""; then
if test "$testname" != ""; then
[[tcllib=`echo $testname | sed [email protected].[0-9]@@`]]
tcllib=`echo $tcllib | sed [email protected]@@`
tcllib=`echo $tcllib | sed [email protected]@@`
tcllib=`echo $tcllib | sed s@libtcl@tcl@`
tclpath=`echo $file | sed s@"$testname"@@`
TCL_LIBS="-l$tcllib -L$tclpath"
AC_MSG_RESULT(yes)
fi
fi
done
fi
done
done)
if test "$TCL_LIBS" = ""; then
AC_MSG_RESULT(no)
AC_MSG_ERROR(cannot find Tcl)
fi
LIBS="$TCL_LIBS $LIBS"
AC_SUBST(TCL_LIBS)
AC_MSG_CHECKING(for $srcdir/source/tcl.c)
if test -f "$srcdir/source/tcl.c"; then
AC_MSG_RESULT(yes)
TCL_SRCS="\$(srcdir)/tcl.c"
AC_SUBST(TCL_SRCS)
TCL_OBJS="tcl.o"
AC_SUBST(TCL_OBJS)
dnl If we have tcl.c, then remove tcl.o, or tcl.c may not get
dnl compiled
rm -f source/tcl.o
dnl To be safe, remove tcl.o from here, too.
rm -f $srcdir/source/tcl.o
else
AC_MSG_RESULT(no)
TCL_SRCS=""
AC_SUBST(TCL_SRCS)
AC_MSG_CHECKING(for source/tcl.o)
if test -f "source/tcl.o"; then
dnl tcl.o already here, so don't over-write with tcl-linux.o.
got_tcl_objs=1
else
mkdir source 2>/dev/null
cp -f $srcdir/tcl-linux.o source/tcl.o 2>/dev/null
if test -f "source/tcl.o"; then
got_tcl_objs=1
fi
fi
if test x"$got_tcl_objs" = x"1"; then
AC_MSG_RESULT(yes)
TCL_OBJS="tcl.o"
AC_SUBST(TCL_OBJS)
else
AC_MSG_RESULT(no)
AC_MSG_ERROR(cannot find "$srcdir/source/tcl.c" or "source/tcl.o")
fi
fi
;;
no)
AC_MSG_RESULT(no)
;;
esac ],
AC_MSG_RESULT(no)
)
dnl Work out UNIX mail dir and check for QMAIL support.
AC_MSG_CHECKING(for unix mail directory)
AC_ARG_WITH(maildir,
[ --with-maildir=PATH Enable QMAIL support],
[ case "$withval" in
no)
AC_MSG_RESULT(none)
;;
*)
AC_MSG_RESULT($withval)
AC_DEFINE(HAVE_QMAIL, 1, Define this if you want QMAIL support.)
AC_DEFINE_UNQUOTED(UNIX_MAIL, "$withval", Define your maildir here.)
;;
esac ],
for mdir in /var/spool/mail /usr/spool/mail /var/mail /usr/mail; do
if test -d "$mdir"; then
AC_MSG_RESULT($mdir)
AC_DEFINE_UNQUOTED(UNIX_MAIL, "$mdir", Define your maildir here.)
break
fi
done
if test ! -d "$mdir"; then
AC_MSG_RESULT(none)
fi
)
dnl Check for default server list.
AC_MSG_CHECKING(for default server list)
AC_ARG_WITH(default-server,
[ --with-default-server=SERVERNAME[:PORT:PASSWORD:NICK:SERVERNETWORK]
Connect to SERVERNAME by default
Additional servers can be separated by a comma],
[ case "$withval" in
yes)
AC_MSG_RESULT(none)
;;
no)
AC_MSG_RESULT(none)
;;
*)
addl_servers="`echo "$withval" | sed -e 's/,/ /g'`"
AC_MSG_RESULT($addl_servers)
AC_DEFINE_UNQUOTED(DEFAULT_SERVER, "$addl_servers", Define a list of default servers here.)
;;
esac ],
AC_MSG_RESULT(none)
)
AC_MSG_CHECKING(whether to enable IPv6 support)
AC_ARG_ENABLE(ipv6,
[ --enable-ipv6 Enable IPv6 support (Linux only)],
[ case "$enableval" in
yes)
case "$(uname -s)" in
Linux)
if test -d "/usr/inet6/include"; then
CFLAGS="$CFLAGS -I/usr/inet6/include"
LIBS="-L/usr/inet6/lib -linet6 $LIBS"
AC_MSG_RESULT(yes (libinet6))
AC_DEFINE(IPV6, 1, Define this if you want IPV6 support.)
else
if test -d "/usr/local/v6/lib"; then
LIBS="-L/usr/local/v6/lib -linet6 $LIBS"
AC_MSG_RESULT(yes (freebsd+kame))
AC_DEFINE(IPV6, 1, Define this if you want IPV6 support.)
else
AC_TRY_RUN([
int main()
{
#if !defined(__GLIBC__) || (__GLIBC__ < 2)
#define NO_GLIBC_2 1
#endif
if (NO_GLIBC_2)
exit(0);
else
exit(1);
}],[ AC_MSG_RESULT(yes (glibc2))
AC_DEFINE(IPV6, 1, Define this if you want IPV6 support.)
], [AC_MSG_RESULT(no)], [AC_MSG_WARN(cross-compiling: assuming no ipv6)])
fi
fi
;;
*)
AC_MSG_RESULT(no (ipv6 support can currently be enabled on Linux only))
;;
esac
;;
no)
AC_MSG_RESULT(no)
;;
esac ],
AC_MSG_RESULT(no)
)
dnl Check for SOCKS support.
AC_MSG_CHECKING(whether to enable SOCKS support)
AC_ARG_WITH(socks,
[ --with-socks=4|5 Enable external SOCKS4/SOCKS5 support],
[ case "$withval" in
yes)
AC_MSG_ERROR(please specify SOCKS4 or SOCKS5)
;;
no)
AC_MSG_RESULT(no)
;;
5)
AC_MSG_RESULT(yes)
AC_DEFINE(SOCKS, 1, Define this if you want SOCKS support.)
AC_CHECK_LIB(socks5, SOCKSconnect, LIBS="-lsocks5 $LIBS", AC_MSG_ERROR(cannot find SOCKS5))
;;
4)
AC_MSG_RESULT(yes)
AC_DEFINE(SOCKS, 1, Define this if you want SOCKS support.)
CFLAGS="$CFLAGS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dgetpeername=Rgetpeername -Dbind=Rbind -Daccept=Raccept -Dlisten=Rlisten -Dselect=Rselect"
AC_CHECK_LIB(socks, Rconnect, LIBS="-lsocks $LIBS", AC_MSG_ERROR(cannot find SOCKS4))
;;
esac ],
AC_MSG_RESULT(no)
)
dnl Check for CD-ROM support.
AC_MSG_CHECKING(whether to enable CD-ROM support)
AC_ARG_ENABLE(cdrom,
[ --enable-cdrom Enable CD-ROM support (tested on Linux only)],
[ case "$enableval" in
yes)
case "$(uname -s)" in
Linux)
AC_MSG_RESULT(yes)
CD_SRCS="cdrom.c"
CD_OBJS="cdrom.o"
AC_SUBST(CD_SRCS)
AC_SUBST(CD_OBJS)
AC_DEFINE(WANT_CD, 1, Define this if you want CD-ROM support.)
;;
*)
AC_MSG_RESULT(no (cdrom support can currently be enabled on Linux only))
;;
esac
;;
no)
AC_MSG_RESULT(no)
;;
esac ],
AC_MSG_RESULT(no)
)
dnl Check for dmalloc.
AC_MSG_CHECKING(whether to enable dmalloc debugging support)
AC_ARG_ENABLE(debug,
[ --enable-debug Enable dmalloc debugging support (console BX only)],
[ case "$enableval" in
yes)
if test x"$gui" != x"1"; then
AC_MSG_RESULT(yes)
AC_CHECK_LIB(dmalloc, dmalloc_debug, CFLAGS="$CFLAGS -O -g -DMEM_DEBUG" LIBS="-ldmalloc $LIBS", AC_MSG_ERROR(cannot find dmalloc))
else
AC_MSG_RESULT(no)
fi
;;
no)
AC_MSG_RESULT(no)
;;
esac ],
AC_MSG_RESULT(no)
)
dnl Check for plugin support and which plugins to build.
AC_MSG_CHECKING(whether to enable plugin support)
AC_ARG_WITH(plugins,
[ --with-plugins[=LIST] Enable plugin support
LIST is a comma separated list of plugins to build
If none are specified, all available plugins are built],
[ case "$withval" in
yes | all)
AC_MSG_RESULT(yes)
AC_CHECK_SHLIB
AC_CHECK_PLUGIN_SUPPORT
addl_plugins="`sed -n -e '/^#PLUGINS = /s///p' -e '/^#PLUGINS/q' < $srcdir/dll/Makefile.in`"
AC_CHECK_PLUGINS
;;
no)
AC_MSG_RESULT(not building with plugin support - you will not be able to use plugins)
;;
*)
AC_MSG_RESULT(yes)
AC_CHECK_SHLIB
AC_CHECK_PLUGIN_SUPPORT
addl_plugins="`echo "$withval" | sed -e 's/,/ /g'`"
AC_CHECK_PLUGINS
;;
esac ],
AC_MSG_RESULT(not building with plugin support - you will not be able to use plugins)
)
if test -z "$SHLIB_LD"; then
SHLIB_LD="$CC -shared"
fi
if test -z "$SHLIB_SUFFIX"; then
SHLIB_SUFFIX=".so"
fi
AC_SUBST(SHLIB_CFLAGS)
AC_SUBST(SHLIB_LD)
AC_SUBST(SHLIB_SUFFIX)
dnl Finish up
dnl Add -Wall to our CFLAGS if we're using gcc
if test x"$GCC" = x"yes" -a -z "`echo "$CFLAGS" | grep \\\-Wall`"; then
CFLAGS="$CFLAGS -Wall"
fi
LIBS="`echo "$LIBS" | sed -e 's/-rdynamic//g'`"
dnl Remove dupes in LIBS and CFLAGS
NEW_LIBS=""
for LIB_IN in $LIBS; do
for LIB_OUT in $NEW_LIBS; do
if test x"$LIB_OUT" = x"$LIB_IN"; then
LIB_IN=""
break
fi
done
NEW_LIBS="$NEW_LIBS $LIB_IN"
done
LIBS="$NEW_LIBS"
NEW_CFLAGS=""
for CFLAG_IN in $CFLAGS; do
for CFLAG_OUT in $NEW_CFLAGS; do
if test x"$CFLAG_OUT" = x"$CFLAG_IN"; then
CFLAG_IN=""
break
fi
done
NEW_CFLAGS="$NEW_CFLAGS $CFLAG_IN"
done
CFLAGS="$NEW_CFLAGS"
RM="rm -f"
CP="cp -f"
MV="mv -f"
GZIP_ENV="--best"
BZIP2="-9 --repetitive-best"
dnl Should I keep this or not?
if test -n "$CYGWIN" -o -n "$EMXOS2" -o -n "$MINGWIN32"; then
bindir="\$(IRCLIB)"
INSTALL_IRC="\$(IRCLIB)/\$(_VERSION_)\$(EXEEXT)"
IRCLIB="\${prefix}/BitchX"
IRCPATH="\$(DEFAULT_CTOOLZ_DIR):\$(DEFAULT_CTOOLZ_DIR)/plugins:.:\$(PLUGINDIR):\$(INSTALL_SCRIPT):\$(IRCLIB)"
TRANSLATION_PATH="\$(IRCLIB)/translation"
HELPDIR="\$(IRCLIB)/help"
INSTALL_WSERV="\$(IRCLIB)/wserv\$(EXEEXT)"
INSTALL_SCRBX="\$(IRCLIB)/scr-bx\$(EXEEXT)"
INSTALL_SCRIPT="\$(IRCLIB)/script"
INSTALL_HELP_CMD="cp -pfr bitchx-docs/* \$(HELPDIR)"
PLUGINDIR="\$(IRCLIB)/plugins"
DEFAULT_CTOOLZ_DIR="/PROGRA~1/BitchX"
DEFAULT_MSGLOGFILE="BitchX.awy"
DEFAULT_BITCHX_HELP_FILE="BitchX.hlp"
DEFAULT_SCRIPT_HELP_FILE="BitchX.hlp"
DEFAULT_BITCHX_KICK_FILE="BitchX.kck"
DEFAULT_BITCHX_QUIT_FILE="BitchX.qt"
DEFAULT_BITCHX_IRCNAME_FILE="BitchX.nam"
WINNT_INSTALL="\$(INSTALL_DATA) \$(top_srcdir)/doc/BitchX.ico \$(IRCLIB); \$(INSTALL_DATA) \$(top_srcdir)/doc/BitchX.bat \$(IRCLIB); \$(INSTALL_DATA) \$(top_srcdir)/doc/bx-rc \$(IRCLIB); \$(MV) \$(IRCLIB)/\$(VERSION)\$(EXEEXT) \$(IRCLIB)/\$(_VERSION_)\$(EXEEXT); \$(RM) \$(IRCLIB)/\$(_VERSION_).old"
HINT_FILE="BitchX.hnt"
mandir="\$(IRCLIB)"
else
INSTALL_IRC="\${bindir}/\$(_VERSION_)\$(EXEEXT)"
IRCLIB="\${libdir}/bx"
IRCPATH="\$(DEFAULT_CTOOLZ_DIR):\$(DEFAULT_CTOOLZ_DIR)/plugins:.:\$(PLUGINDIR):\$(INSTALL_SCRIPT):\$(IRCLIB)"
TRANSLATION_PATH="\$(IRCLIB)/translation"
HELPDIR="\$(IRCLIB)/help"
INSTALL_WSERV="\$(IRCLIB)/wserv\$(EXEEXT)"
INSTALL_SCRBX="\${bindir}/scr-bx\$(EXEEXT)"
INSTALL_SCRIPT="\$(IRCLIB)/script"
INSTALL_HELP_CMD="cp -pfr bitchx-docs/* \$(HELPDIR)"
PLUGINDIR="\$(IRCLIB)/plugins"
DEFAULT_CTOOLZ_DIR="~/.BitchX"
DEFAULT_MSGLOGFILE="BitchX.away"
DEFAULT_BITCHX_HELP_FILE="BitchX.help"
DEFAULT_SCRIPT_HELP_FILE="BitchX.help"
DEFAULT_BITCHX_KICK_FILE="BitchX.kick"
DEFAULT_BITCHX_QUIT_FILE="BitchX.quit"
DEFAULT_BITCHX_IRCNAME_FILE="BitchX.ircnames"
HINT_FILE="BitchX.hints"
fi
dnl Maybe someday we can #define these here
dnl AC_DEFINE_UNQUOTED(DEFAULT_HELP_PATH, "$HELPDIR", BitchX help directory.)
dnl AC_DEFINE_UNQUOTED(IRCLIB, "$IRCLIB", BitchX library path.)
dnl AC_DEFINE_UNQUOTED(IRCPATH, "$IRCPATH", BitchX path.)
dnl AC_DEFINE_UNQUOTED(SHLIB_SUFFIX, "$SHLIB_SUFFIX", Plugin suffix.)
dnl AC_DEFINE_UNQUOTED(PLUGINDIR, "$PLUGINDIR", Plugin directory.)
dnl AC_DEFINE_UNQUOTED(SCRIPT_PATH, "$INSTALL_SCRIPT", Script Directory.)
dnl AC_DEFINE_UNQUOTED(WSERV_PATH, "$INSTALL_WSERV", Wserv path.)
dnl AC_DEFINE_UNQUOTED(TRANSLATION_PATH, "$TRANSLATION_PATH", Translation path.)
INCLUDES="-I. -I\$(topdir)/include -I\$(top_srcdir)/include -I\$(srcdir) -I\$(srcdir)/include"
AC_SUBST(RM)
AC_SUBST(CP)
AC_SUBST(MV)
AC_SUBST(GZIP_ENV)
AC_SUBST(BZIP2)
AC_SUBST(INSTALL_IRC)
AC_SUBST(IRCLIB)
AC_SUBST(IRCPATH)
AC_SUBST(TRANSLATION_PATH)
AC_SUBST(HELPDIR)
AC_SUBST(INSTALL_WSERV)
AC_SUBST(INSTALL_SCRBX)
AC_SUBST(INSTALL_SCRIPT)
AC_SUBST(INSTALL_HELP_CMD)
AC_SUBST(PLUGINDIR)
AC_SUBST(INCLUDES)
AC_SUBST(GUI_SRCS)
AC_SUBST(HAVE_INET_ATON)
AC_DEFINE_UNQUOTED(DEFAULT_CTOOLZ_DIR, "$DEFAULT_CTOOLZ_DIR", Default CToolZ directory.)
AC_SUBST(DEFAULT_CTOOLZ_DIR, "$DEFAULT_CTOOLZ_DIR")
AC_DEFINE_UNQUOTED(DEFAULT_MSGLOGFILE, "$DEFAULT_MSGLOGFILE", Default MsgLog file.)
AC_SUBST(DEFAULT_MSGLOGFILE)
AC_DEFINE_UNQUOTED(DEFAULT_BITCHX_HELP_FILE, "$DEFAULT_BITCHX_HELP_FILE", Default BitchX help file.)
AC_SUBST(DEFAULT_BITCHX_HELP_FILE)
AC_DEFINE_UNQUOTED(DEFAULT_SCRIPT_HELP_FILE, "$DEFAULT_SCRIPT_HELP_FILE", Default BitchX script file.)
AC_SUBST(DEFAULT_SCRIPT_HELP_FILE)
AC_DEFINE_UNQUOTED(DEFAULT_BITCHX_KICK_FILE, "$DEFAULT_BITCHX_KICK_FILE", Default BitchX kick file.)
AC_SUBST(DEFAULT_BITCHX_KICK_FILE)
AC_DEFINE_UNQUOTED(DEFAULT_BITCHX_QUIT_FILE, "$DEFAULT_BITCHX_QUIT_FILE", Default BitchX quit file.)
AC_SUBST(DEFAULT_BITCHX_QUIT_FILE)
AC_DEFINE_UNQUOTED(DEFAULT_BITCHX_IRCNAME_FILE, "$DEFAULT_BITCHX_IRCNAME_FILE", Default BitchX ircname file.)
AC_SUBST(DEFAULT_BITCHX_IRCNAME_FILE)
AC_SUBST(HINT_FILE)
AC_SUBST(WINNT_INSTALL)
AC_CONFIG_FILES([
Makefile
BitchX.spec
gtkBitchX.spec
bx-conf/Makefile
doc/BitchX.bat
doc/Makefile
dll/Makefile
dll/abot/Makefile
dll/acro/Makefile
dll/aim/Makefile
dll/aim/toc/Makefile
dll/amp/Makefile
dll/arcfour/Makefile
dll/autocycle/Makefile
dll/aim/Makefile