-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
1050 lines (922 loc) · 23.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 Process this file with autoconf to produce a configure script.
dnl (c) 1999 Andreas Barth <[email protected]>
dnl (c) 1999 Matthias Andree <[email protected]>
dnl (c) 1999-2001 Dirk Meyer <[email protected]>
dnl gehört zum Packet unix-connect
dnl und unterliegt der GPL (siehe COPYING)
AC_INIT(mail-and-news)
dnl AC_CONFIG_HEADER(include/config.h)
dnl AC_DEFINE_UNQUOTED(CONFIG_FILE,$sysconfdir)
dnl checks for programs
AC_PROG_AWK
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_CC
AC_PROG_RANLIB
dnl checks for libraries
dnl Replace `main' with a function in -lreadline:
dnl AC_CHECK_LIB(readline, main)
dnl Replace `main' with a function in -ltermcap:
dnl AC_CHECK_LIB(termcap, main)
dnl checks for header files
dnl AC_HEADER_STDC
dnl AC_HEADER_MAJOR
dnl AC_CHECK_HEADERS(fcntl.h paths.h sgtty.h sys/file.h sys/ioctl.h syslog.h termio.h)
AC_HEADER_SYS_WAIT
AC_HEADER_DIRENT
AC_CHECK_HEADERS(string.h unistd.h limits.h sys/fcntl.h)
if eval "test \"`echo '$ac_cv_header_string_h'`\" = no"; then
AC_CHECK_HEADERS(strings.h)
fi
if eval "test \"`echo '$ac_cv_header_limits_h'`\" = no"; then
AC_CHECK_HEADERS(values.h)
fi
AC_CHECK_HEADERS(stdarg.h varargs.h sys/mkdev.h sys/sysmacros.h)
dnl checks for typedefs, structures and compiler characteristics
dnl AC_C_CONST
dnl AC_C_INLINE
dnl AC_TYPE_OFF_T
dnl AC_TYPE_PID_T
dnl AC_TYPE_SIZE_T
dnl AC_STRUCT_ST_RDEV
dnl AC_STRUCT_TM
dnl AC_STRUCT_TIMEZONE
dnl checks for library functions
dnl AC_PROG_GCC_TRADITIONAL
dnl AC_FUNC_MEMCMP
dnl AC_FUNC_SETPGRP
dnl AC_FUNC_SETVBUF_REVERSED
dnl AC_TYPE_SIGNAL
dnl AC_FUNC_STRFTIME
dnl AC_FUNC_VPRINTF
dnl AC_CHECK_FUNCS(getcwd getwd mkdir mktime rmdir strcspn strdup strerror strstr strtol)
AC_CHECK_FUNCS(asprintf)
AC_REPLACE_FUNCS(strdup stccpy snprintf vsnprintf)
dnl checks for system services
AC_MSG_CHECKING(Path)
AC_ARG_WITH(path,
[ --with-path=path Path innerhalb von UC (Default=PATH).],
[path=$withval],[path=$PATH])
AC_MSG_RESULT($path)
AC_SUBST(path)
AC_MSG_CHECKING(Unterverzeichnis für die Dateien)
AC_ARG_WITH(dir,
[ --with-dir=dir In welches Unterverzeichnis die Dateien kommen.],
[ ZCDIR="$withval"
if test x"$ZCDIR" != x; then
ZC="/$ZCDIR";
fi
],[
ZCDIR=zconnect
if test x"$ZCDIR" != x; then
ZC="/$ZCDIR";
fi
]
)
AC_MSG_RESULT($ZCDIR)
AC_SUBST(ZC)
AC_MSG_CHECKING(Unterverzeichnis für die Programme)
AC_ARG_WITH(execdir,
[ --with-execdir=dir In welches Verzeichnis die Programme kommen.],
[ BINDIR="$withval"
],[
BINDIR="$libexecdir$ZC"
])
AC_MSG_RESULT($BINDIR)
AC_SUBST(BINDIR)
AC_MSG_CHECKING(Unterverzeichnis für die Konfiguration)
AC_ARG_WITH(confdir,
[ --with-confdir=dir In welches Verzeichnis die Konfiguration kommt.],
[ ETCDIR="$withval"
],[
ETCDIR="$sysconfdir$ZC"
])
AC_MSG_RESULT($ETCDIR)
AC_SUBST(ETCDIR)
AC_MSG_CHECKING(spooldir)
AC_ARG_WITH(spooldir,
[ --with-spooldir=dir Spooldir.],
[ SPOOLDIR="$withval" ],[
if test -d /var/spool; then
SPOOLDIR=/var/spool/zconnect
else
SPOOLDIR=/usr/spool/zconnect
fi
]
)
AC_MSG_RESULT($SPOOLDIR)
AC_SUBST(SPOOLDIR)
AC_MSG_CHECKING(Benutzerkennung für Unix-Connect)
AC_ARG_WITH(user,
[ --with-user=user Benutzerkennung für Unix-Connect.],[
if test -f /etc/passwd ; then
if grep "^$withval:" /etc/passwd >/dev/null ; then
echo $withval
USER=$withval;
else
echo
echo "Es muß eine gültige Benutzerkennung gewählt werden"
exit 1;
fi
else
echo $withval
USER=$withval;
fi],
[ echo
echo "Es muß eine gültige Benutzerkennung gewählt werden"
exit 1]
)
AC_SUBST(USER)
AC_MSG_CHECKING(Gruppenkennung für Unix-Connect)
AC_ARG_WITH(group,
[ --with-group=group Gruppenkennung für Unix-Connect.],[
if test -f /etc/group ; then
if grep "^$withval:" /etc/group >/dev/null ; then
echo $withval
GROUP=$withval;
else
echo
echo "Es muß eine gültige Gruppe gewählt werden"
exit 1;
fi
else
echo $withval
GROUP=$withval;
fi],
[ echo
echo "Es muß eine gültige Gruppe gewählt werden"
exit 1]
)
AC_SUBST(GROUP)
AC_MSG_CHECKING(Welcher Typ ist das Gateway)
AC_ARG_WITH(box,
[ --with-box=typ point, gate, server
Point: Unix-Connect ist Enduser-System
Gate: Kein Teil des Z-Netzes
Server: Alles ist möglich (default).],
[ case "$withval" in
server)
AC_MSG_RESULT(Box)
INSTTYPE="box"
;;
point)
AC_MSG_RESULT(Point)
INSTTYPE="point"
;;
gate)
AC_MSG_RESULT(Gate)
INSTTYPE="gate"
;;
*)
AC_MSG_RESULT(Fehler!)
exit 1
;;
esac ],[
AC_MSG_RESULT(box)
INSTTYPE="box"]
)
AC_SUBST(INSTTYPE)
dnl Mail- und Newssystem
dnl in den zweiten Teil sollen mal Heuristiken eingebaut werden
AC_MSG_CHECKING(Mailsystem)
AC_ARG_WITH(mail,
[ --with-mail=typ Welches Mailsystem wird verwendet?],
[
if test -f "mail-and-news/$withval/RSMTP" ; then
MAIL=$withval
else
if test -f "mail-and-news/$withval/RSMTP.in" ; then
MAIL=$withval
else
echo "es gibt kein Mailsystem \"$withval\"."
AC_MSG_RESULT(Fehler!)
exit 1
fi
fi
], [MAIL='no'])
AC_MSG_RESULT($MAIL)
AC_SUBST(MAIL)
AC_MSG_CHECKING(Newssystem)
AC_ARG_WITH(news,
[ --with-news=typ Welches Newssystem wird verwendet?],
[
if test -d "mail-and-news/$withval" ; then
NEWS=$withval
else
echo "es gibt kein Newssystem \"$withval\"."
AC_MSG_RESULT(Fehler!)
exit 1
fi
], [NEWS='no'])
AC_MSG_RESULT($NEWS)
AC_SUBST(NEWS)
AC_MSG_CHECKING(APC einkompilieren)
AC_ARG_ENABLE(apc,
[ --with-apc APC einkompilieren (meist unnötig).],
[ case "$enableval" in
yes)
AC_MSG_RESULT(Ja)
AC_DEFINE(APC_A2B)
APCOBJS="apc_a2b.o atob.o"
;;
*)
AC_MSG_RESULT(Nein)
APCOBJS=""
;;
esac ],[
AC_MSG_RESULT(Nein)
APCOBJS=""
])
AC_SUBST(APCOBJS)
AC_MSG_CHECKING(Nachrichten zurückkonvertieren verbieten)
AC_ARG_ENABLE(full-gate,
[ --disable-full-gate Nachrichten zurückkonvertieren verbieten.],
[ case "$enableval" in
no)
AC_MSG_RESULT(Ja)
AC_DEFINE(DISABLE_FULL_GATE)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)]
)
AC_MSG_CHECKING(Fehler nicht in X-Header protokollieren)
AC_ARG_ENABLE(log-xheader,
[ --disable-log-xheader Fehler nicht in X-Header protokollieren.],
[ case "$enableval" in
no)
AC_MSG_RESULT(Ja)
AC_DEFINE(DISABLE_LOG_X_HEADER)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)]
)
AC_MSG_CHECKING(Nicht alle Header erzeugen)
AC_ARG_ENABLE(uucp-server,
[ --disable-uucp-server Nicht alle Header erzeugen, für reine Leafsites.],
[ case "$enableval" in
no)
AC_MSG_RESULT(Ja)
AC_DEFINE(DISABLE_UUCP_SERVER)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)]
)
AC_MSG_CHECKING(Umlaute in Mail mit us-ascii umschreiben)
AC_ARG_ENABLE(iso-in-mail,
[ --disable-iso-in-mail Umlaute in Mail mit us-ascii umschreiben.],
[ case "$enableval" in
no)
AC_MSG_RESULT(Ja)
AC_DEFINE(DISABLE_ISO_IN_MAIL)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)]
)
AC_MSG_CHECKING(Umlaute in News mit us-ascii umschreiben)
AC_ARG_ENABLE(iso-in-news,
[ --disable-iso-in-news Umlaute in News mit us-ascii umschreiben.],
[ case "$enableval" in
no)
AC_MSG_RESULT(Ja)
AC_DEFINE(DISABLE_ISO_IN_NEWS)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)]
)
AC_MSG_CHECKING(Sonderbehandlung des ROT-Headers für MAPS)
AC_ARG_ENABLE(rot-for-maps,
[ --disable-rot-for-maps Sonderbehandlung des ROT-Headers für MAPS.],
[ case "$enableval" in
no)
AC_MSG_RESULT(Ja)
AC_DEFINE(DISABLE_ROT_FOR_MAPS)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)]
)
AC_MSG_CHECKING(Sonderbehandlung für Usernamen im ROT-Header)
AC_ARG_ENABLE(nouser-in-rot,
[ --disable-nouser-in-rot Sonderbehandlung für Usernamen im ROT-Header.],
[ case "$enableval" in
no)
AC_MSG_RESULT(Ja)
AC_DEFINE(DISABLE_NOUSER_IN_ROT)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)]
)
AC_MSG_CHECKING(Checksummer der Seriennummer unterdrücken)
AC_ARG_ENABLE(janus-checksum,
[ --disable-janus-checksum Checksummer der Seriennummer unterdrücken.],
[ case "$enableval" in
no)
AC_MSG_RESULT(Ja)
AC_DEFINE(DISABLE_JANUS_CHECKSUM)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)]
)
EXTRA_CDIR="rsmtp"
AC_MSG_CHECKING(Batched SMTP lesen und Schreiben)
AC_ARG_ENABLE(rsmtp,
[ --disable-rsmtp Eigene Programme für Batched SMTP.],
[ case "$enableval" in
no)
AC_MSG_RESULT(Nein)
EXTRA_CDIR=""
AC_DEFINE(DISABLE_RSMTP)
;;
*)
AC_MSG_RESULT(Ja)
;;
esac ],[
AC_MSG_RESULT(Ja)]
)
AC_SUBST(EXTRA_CDIR)
ONLINE_LIB="gatelib.a"
ONLINE_DIR="online tools"
SHELL_DIR="shell"
AC_MSG_CHECKING(Onlinefunktionen für Janus und ZConnect)
AC_ARG_ENABLE(online,
[ --disable-online Onlinefunktionen für Janus und ZConnect.],
[ case "$enableval" in
no)
AC_MSG_RESULT(Nein)
ONLINE_LIB=""
ONLINE_DIR=""
SHELL_DIR=""
AC_DEFINE(DISABLE_ONLINE)
;;
*)
AC_MSG_RESULT(Ja)
;;
esac ],[
AC_MSG_RESULT(Ja)]
)
AC_SUBST(ONLINE_LIB)
AC_SUBST(ONLINE_DIR)
AC_SUBST(SHELL_DIR)
AC_MSG_CHECKING(Bang-Pfade)
AC_ARG_ENABLE(bang,
[ --enable-bang Bang-Pfade verwenden.],
[ case "$enableval" in
yes)
AC_MSG_RESULT(Ja)
AC_DEFINE(ENABLE_RCPT_WITH_BANG)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)
])
AC_MSG_CHECKING(Erzeuge U-X-Header)
AC_ARG_ENABLE(uxheader,
[ --enable-uxheader Erzeuge U-X-Header, veraltet.],
[ case "$enableval" in
yes)
AC_MSG_RESULT(Ja)
AC_DEFINE(ENABLE_U_X_HEADER)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)
])
AC_MSG_CHECKING(Ignoriere defekte Header)
AC_ARG_ENABLE(badheader,
[ --enable-badheader Ignoriere defekte Header.],
[ case "$enableval" in
yes)
AC_MSG_RESULT(Ja)
AC_DEFINE(ENABLE_IGNORE_BAD_HEADERS)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)
])
AC_MSG_CHECKING(Ignoriere ZModem Fehler)
AC_ARG_ENABLE(zmodemhack,
[ --enable-zmodemhack Ignoriere ZModem Fehler (gefährlich).],
[ case "$enableval" in
yes)
AC_MSG_RESULT(Ja)
AC_DEFINE(DIRTY_ZMODEM_HACK)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)
])
AC_MSG_CHECKING(Erzeuge ISO-Charset in ZConnect)
AC_ARG_ENABLE(iso-in-zconnect,
[ --enable-iso-in-zconnect Erzeuge ISO-Charset in ZConnect.],
[ case "$enableval" in
yes)
AC_MSG_RESULT(Ja)
AC_DEFINE(ENABLE_ISO_IN_ZCONNCT)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)
])
AC_MSG_CHECKING(Erzeuge Message-IDs für Points.)
AC_ARG_ENABLE(point-messageid,
[ --enable-point-messageid Erzeuge Message-IDs für Points.],
[ case "$enableval" in
yes)
AC_MSG_RESULT(Ja)
AC_DEFINE(ENABLE_POINT_MESSAGE_ID)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)
])
AC_MSG_CHECKING(Erzeuge Prüfsummen mit uuencode)
AC_ARG_ENABLE(uuencode-chksum,
[ --enable-uuencode-chksum Erzeuge Prüfsummen mit uuencode.],
[ case "$enableval" in
yes)
AC_MSG_RESULT(Ja)
AC_DEFINE(ENABLE_UUENCODE_CHKSUM)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)
])
AC_MSG_CHECKING(Verwende kurze Namen für Verzeichnisse)
AC_ARG_ENABLE(short-spooldir,
[ --enable-short-spooldir Verwende kurze Namen für Verzeichnisse.],
[ case "$enableval" in
yes)
AC_MSG_RESULT(Ja)
AC_DEFINE(ENABLE_SPOOLDIR_SHORTNAME)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)
])
AC_MSG_CHECKING(Lege eine Pause für langsame Modems ein.)
AC_ARG_ENABLE(slow-modem,
[ --enable-slow-modem Lege eine Pause für langsame Modems ein.],
[ case "$enableval" in
yes)
AC_MSG_RESULT(Ja)
AC_DEFINE(SLOW_MODEM)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)
])
AC_MSG_CHECKING(Erzeuge Spoolverzeichisse im Betrieb)
AC_ARG_ENABLE(auto-create,
[ --enable-auto-create Erzeuge Spoolverzeichisse im Betrieb.],
[ case "$enableval" in
yes)
AC_MSG_RESULT(Ja)
AC_DEFINE(ENABLE_AUTO_CREATE)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)
])
AC_MSG_CHECKING(Fälsche das Subject wenn es leer ist)
AC_ARG_ENABLE(online,
[ --enable-noempty-subject Fälsche das Subject wenn es leer ist.],
[ case "$enableval" in
no)
AC_MSG_RESULT(Ja)
AC_DEFINE(ENABLE_NOEMPTY_SUBJECT)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)]
)
AC_MSG_CHECKING(Berechne Zeit in Bruchteilen)
AC_ARG_ENABLE(difftime,
[ --enable-difftime Berechne Zeit in Bruchteilen.],
[ case "$enableval" in
yes)
AC_MSG_RESULT(Ja)
AC_DEFINE(ENABLE_DIFFTIME)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)
])
AC_MSG_CHECKING(Verwende Großschreibung im Passwort)
AC_ARG_ENABLE(caps-in-passwd,
[ --enable-caps-in-passwd Verwende Großschreibung im Passwort.],
[ case "$enableval" in
yes)
AC_MSG_RESULT(Ja)
AC_DEFINE(ENABLE_CAPS_IN_PASSWORD)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)
])
AC_MSG_CHECKING(Verwende neuen Onlinecode)
AC_ARG_ENABLE(testing,
[ --enable-testing Verwende neuen Onlinecode.],
[ case "$enableval" in
yes)
AC_MSG_RESULT(Ja)
AC_DEFINE(ENABLE_TESTING)
;;
*)
AC_MSG_RESULT(Nein)
;;
esac ],[
AC_MSG_RESULT(Nein)
])
dnl AC_MSG_CHECKING(Fileserver)
dnl AC_ARG_WITH(fileserver,
dnl [ --with-fileserver=dir Fileserverdir.],
dnl [
dnl Wenn Sie einen anonymous-FTP Server betreiben oder nuucp-Accounts auf
dnl Ihrem System haben, koennen Sie diese Verzeichnisse auch fuer ZCONNECT
dnl File-Requests zur Verfuegung stellen.
dnl
dnl EOF
dnl
dnl FILESERVER=nein
dnl QUERY="Moechten Sie den ZCONNECT File-Server installieren"; janein
dnl if [ $ERG = j ]; then
dnl FILESERVER=ja
dnl echo "Welches Verzeichnis ist das Wurzelverzeichnis des Fileservers?"
dnl read FILESDIR
dnl echo "Welches Verzeichnis ist das Uploadverzeichnis?"
dnl read FILESUPLOAD
dnl fi
AC_MSG_CHECKING(Dialcode)
AC_ARG_WITH(dialprae,
[ --with-dialprae=code Wählcode (Default=ATDT).],
[ATDT=$withval],[ATDT="ATDT"])
AC_MSG_RESULT($ATDT)
AC_SUBST(ATDT)
AC_MSG_CHECKING(Ortsvorwahl)
AC_ARG_WITH(ortswahl,
[ --with-ortswahl=code Ortsvorwahl (Default=0).],
[FERNWAHL=$withval],[FERNWAHL="0"])
AC_MSG_RESULT($FERNWAHL)
AC_SUBST(FERNWAHL)
AC_MSG_CHECKING(Auslandsvorwahl)
AC_ARG_WITH(intwahl,
[ --with-intwahl=code Internationale Vorwahl (Default=00).],
[INTERNATIONAL=$withval],[INTERNATIONAL="00"])
AC_MSG_RESULT($INTERNATIONAL)
AC_SUBST(INTERNATIONAL)
AC_CHECK_FUNCS(syslog)
if test $ac_cv_func_syslog = no; then
# syslog is not in the default libraries. See if it's in some other.
for lib in bsd socket inet; do
AC_CHECK_LIB($lib, syslog, [AC_DEFINE(HAVE_SYSLOG)
LIBS="$LIBS $lib"; break])
done
fi
AC_MSG_CHECKING(Systemname)
AC_ARG_WITH(sys,
[ --with-sys=sys Systemname.],[
SYS=$withval;],[SYS=`hostname | sed 's/\..*//'`])
AC_MSG_RESULT($SYS)
AC_SUBST(SYS)
AC_MSG_CHECKING(Domainname)
AC_ARG_WITH(domain,
[ --with-domain=domain Domainname.],[
DOMAIN=$withval;],[
if hostname | grep '\.' >/dev/null ; then
DOMAIN=`hostname | sed 's/^[[^\.]]*\.//'`
else
if hostname -f | grep '\.' >/dev/null ; then
DOMAIN=`hostname -f | sed 's/^[[^\.]]*\.//'`
else
echo "Kann Domainnamen nicht ermitteln."
echo "Bitte mit --with-domain angeben."
AC_MSG_RESULT(Fehler!)
exit 1
fi
fi
])
AC_MSG_RESULT($DOMAIN)
AC_SUBST(DOMAIN)
FQDN=$SYS.$DOMAIN
AC_SUBST(FQDN)
AC_PATH_PROGS(INEWS,inews,inews,/usr/local/bin:/usr/bin:/usr/lib/news:/usr/local/lib/news:/usr/news:/usr/local/news:/usr/lib/news/bin)
if test -x "$INEWS" ; then
echo "inews $INEWS."
else
echo "Kann inews nicht finden. uumlist wird nicht funktionieren."
fi
AC_ARG_WITH(sendmail,
[ --with-sendmail=file Sendmail-Programm.],[
SENDMAIL=$withval
if test x$SENDMAIL = xno ; then
echo "Unix/Connect braucht Sendmail."
exit 1
fi
])
AC_PATH_PROGS(SENDMAIL,sendmail,/usr/sbin/sendmail,$PATH:/usr/sbin:/usr/lib)
if test -x "$SENDMAIL" ; then
echo "Sendmail $SENDMAIL"
else
echo "Kann sendmail nicht finden. Bitte mit --with-sendmail einen sendmail-"
echo "kompatibles Programm angeben. Es muß die Option -t akzeptieren."
exit 1
fi
if test ! "$ONLINE_DIR" = "" ; then
dnl AC_MSG_CHECKING(Transferprogramme)
AC_ARG_WITH(zmodem,
[ --with-zmodem=file Z/Y/X-Modem-Sendebefehl.],[
LSZMODEM=$withval
])
AC_PATH_PROGS(LSZMODEM,lsz sz,/usr/local/bin/lsz,$PATH:/usr/local/bin:/usr/bin)
LRZMODEM=`echo "$LSZMODEM" | sed -e 's/sz$/rz/'`
if test ! -x "$LSZMODEM" -o ! -x "$LRZMODEM" ; then
cat << EOF
Kann ZMODEM-Transferprogramme nicht finden. Bitte mit --with-zmodem den
Pfad zum ZModem-Transferprogramm angeben. Es wird vorausgesetzt, dass
sich der Name des Empfaengers durch Ersatz von sz durch rz erzeugen laesst.
EOF
exit 1
fi
AC_SUBST(LRZMODEM)
AC_MSG_CHECKING(ob wir ein Omen Technology INC Zmodem haben)
if $LSZMODEM 2>&1 -h | grep -q -e 'Omen Technology' \
|| $LRZMODEM 2>&1 -h | grep -q -e 'Omen Technology' ; then
cat <<EOF
Die Transferprogramme von Omen Technology werden nicht
unterstuetzt. Gruende dafuer liegen u. a. in extrem restriktiven
Lizenzbedingungen und Ausspaehung von Daten durch unaufgefordert
verschickte Mails mit Transferprotokollen.
Bitte benutzen Sie stattdessen das freie lrzsz.
EOF
exit 1
fi
AC_MSG_RESULT([gut, ist es nicht.])
AC_MSG_CHECKING([ob unser ZModem auch als Y- oder XModem taugt])
changequote(98,99)
if test x`$LSZMODEM -h 2>&1 | grep -c -e '--[xy]modem'` != x2 \
-o x`$LRZMODEM -h 2>&1 | grep -c -e '--[xy]modem'` != x2 ; then
cat <<EOF
Warnung, das vorhandene ZModem sollte die Optionen
--xmodem und --ymodem akzeptieren.
oder Sie müssen die Konfiguratuonsdatei xprogs ändern.
EOF
changequote([, ])dnl
fi
AC_MSG_RESULT([scheint so])
AC_PATH_PROGS(LSBMODEM,lsb sb,/usr/local/bin/lsb,$PATH:/usr/local/bin:/usr/bin)
LRBMODEM=`echo "$LSBMODEM" | sed -e 's/sb$/rb/'`
if test ! -x "$LSBMODEM" -o ! -x "$LRBMODEM" ; then
cat << EOF
Warnung, Kann lsb,sb/lrb,rb nicht finden. Bitte \$LSBMODEM auf den Pfad setzen,
oder in der Konfiguratuonsdatei xprogs ändern.
EOF
fi
AC_SUBST(LRBMODEM)
AC_PATH_PROGS(LSXMODEM,lsx sx,/usr/local/bin/lsb,$PATH:/usr/local/bin:/usr/bin)
LRXMODEM=`echo "$LSXMODEM" | sed -e 's/sx$/rx/'`
if test ! -x "$LSXMODEM" -o ! -x "$LRXMODEM" ; then
cat << EOF
Warnung, Kann lsx,sx/lrx,rx nicht finden. Bitte \$LRXMODEM auf den Pfad setzen,
oder in der Konfiguratuonsdatei xprogs ändern.
EOF
fi
AC_SUBST(LRXMODEM)
AC_ARG_WITH(kermit,
[ --with-kermit=file Kermit-Befehl.],[
KERMIT=$withval])
if test x"$KERMIT" != xno ; then
AC_PATH_PROGS(KERMIT,gkermit kermit,/usr/local/bin/gkermit,$PATH:/usr/local/bin:/usr/bin)
fi
fi
if test "$NEWS" = "inn" ; then
dnl das folgende muß in der ersten Spalte beginnen, sonst wird es von
dnl makesubst nicht gefunden
AC_PATH_PROGS(INNSHELLVARS,innshellvars,innshellvars,/usr/local/bin:/usr/bin:/usr/lib/news:/usr/local/lib/news:/usr/news:/usr/local/news:/usr/lib/news/lib)
if test ! -f "$INNSHELLVARS" ; then
echo "Kann innshellvars nicht finden. send-zcon wird nicht funktionieren."
fi
fi
AC_MSG_CHECKING(various system-dependent things)
SYSUNAME="`uname -s | tr 'A-Z' 'a-z'`"
if test "$SYSUNAME" = "$HOST" ; then
cat <<EOF
Ah, der beruechtigte AT&T 'uname' Bug...
Ist dieses System
1) System V R4 oder hoeher
2) Interactive Unix 3.2
3) SCO Unix
4) ein anderes System V vor R4.0
EOF
while : ; do
readchar
case "$ERG" in
1) SYSUNAME=svr4; break;;
2) SYSUNAME=isc; break;;
3) SYSUNAME=sco; break;;
4) SYSUNAME=sysv; break;;
esac
done
fi
case "$SYSUNAME" in
freebsd)
echo "Konfiguriere fuer FreeBSD..."
SYSTYPE=freebsd
CFLAGS="$CFLAGS -pipe -Wall"
;;
netbsd)
echo "Konfiguriere fuer NetBSD..."
SYSTYPE=netbsd
CFLAGS="$CFLAGS -pipe -Wall"
;;
linux)
echo "Konfiguriere fuer Linux..."
SYSTYPE=linux
CFLAGS="$CFLAGS -pipe -Wall"
PATHADD=$PATHADD:/usr/lib/news/bin:/usr/local/lib/news/bin
;;
bsd/386)
echo "Konfiguriere fuer BSDI BSD/386..."
SYSTYPE=bsdi
CFLAGS="$CFLAGS -pipe -Wall"
;;
svr4)
SYSTYPE=svr4
CFLAGS="$CFLAGS -O"
;;
sco*)
echo "Konfiguriere fuer SCO UNIX..."
SYSTYPE=sco
LDFLAGS="$LDFLAGS -lPW"
;;
isc*)
echo "Konfiguriere fuer Interactive UNIX..."
SYSTYPE=isc
LDFLAGS="$LDFLAGS -cposix -lPW"
;;
unix)
echo "Konfiguriere fuer System V..."
SYSTYPE=sysv
LDFLAGS="$LDFLAGS -lPW"
;;
sunos)
echo "Konfiguriere fuer SunOS..."
echo "(ohne gcc sehe ich allerdings, offen gesagt, schwarz!)"
SYSTYPE=sunos
CFLAGS="$CFLAGS -O"
;;
*)
echo "Diesen Systemtyp kenne ich nicht, mal sehen ob POSIX"
echo "klappt..."
SYSTYPE=svr4
CFLAGS="$CFLAGS -O"
;;
esac
CPPFLAGS="$CPPFLAGS -I../include -I../hdlib"
dnl paranoid ....
gcc_warn="
-W
-Wall
-Waggregate-return
-Wbad-function-cast
-Wcast-align
-Wcast-qual
-Wchar-subscripts
-Wcomment
-Wconversion
-Wenum-clash
-Wformat
-Wid-clash-30
-Wimplicit
-Wimplicit-function-delcaration
-Wimplicit-int
-Winline
-Wlong-long
-Wmain
-Wmissing-declarations
-Wmissing-prototypes
-Wnested-externs
-Wno-import
-Wno-parentheses
-Wparentheses
-Wpointer-arith
-Wredundant-decls
-Wreturn-type
-Wshadow
-Wsign-compare
-Wstrict-prototypes
-Wswitch
-Wtraditional
-Wtrigraphs
-Wuninitialized
-Wunused
-Wwrite-strings
-pedantic
"
if test $SYSTYPE = linux; then
echo "Nachsicht für gcc eigene Stringfunktionen"
gcc_warn=`echo $gcc_warn|sed -e 's/-Wconversion//'`
fi
gcc_warn_ok=""
if test $ac_cv_prog_gcc = yes; then
for i in $gcc_warn
do
echo $ac_n "checking whether ${CC-cc} accepts $i""... $ac_c" 1>&6
echo 'void f(void); void f(void){}' > conftest.c
if test -z "`${CC-cc} ${CFLAGS} $i -c conftest.c 2>&1`"; then
gcc_warn_ok="$gcc_warn_ok $i"
echo "yes"
else
echo "no"
fi
rm -fr conftest*
done
fi
echo "$gcc_warn_ok"