~ubuntu-branches/ubuntu/warty/binkd/warty

« back to all changes in this revision

Viewing changes to mkfls/unix/configure

  • Committer: Bazaar Package Importer
  • Author(s): Marco d'Itri
  • Date: 2003-12-01 11:04:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20031201110412-bsri5sadmlwy3g54
Tags: 0.9.6-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
ac_help=
12
12
ac_default_prefix=/usr/local
13
13
# Any additions from configure.in:
 
14
ac_help="$ac_help
 
15
  --with-debug            produce debug info (default no)"
 
16
ac_help="$ac_help
 
17
  --with-https            https support (default no)"
 
18
ac_help="$ac_help
 
19
  --with-ntlm             NTLM authorization support (default no)"
 
20
ac_help="$ac_help
 
21
  --with-aso              Amiga Style Outbound (ASO) support (default no)"
14
22
 
15
23
# Initialize some variables set by options.
16
24
# The variables have the same names as the options, with
527
535
# Extract the first word of "$ac_prog", so it can be a program name with args.
528
536
set dummy $ac_prog; ac_word=$2
529
537
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
530
 
echo "configure:531: checking for $ac_word" >&5
 
538
echo "configure:539: checking for $ac_word" >&5
531
539
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
532
540
  echo $ac_n "(cached) $ac_c" 1>&6
533
541
else
559
567
# Extract the first word of "gcc", so it can be a program name with args.
560
568
set dummy gcc; ac_word=$2
561
569
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
562
 
echo "configure:563: checking for $ac_word" >&5
 
570
echo "configure:571: checking for $ac_word" >&5
563
571
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
564
572
  echo $ac_n "(cached) $ac_c" 1>&6
565
573
else
589
597
  # Extract the first word of "cc", so it can be a program name with args.
590
598
set dummy cc; ac_word=$2
591
599
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
592
 
echo "configure:593: checking for $ac_word" >&5
 
600
echo "configure:601: checking for $ac_word" >&5
593
601
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
594
602
  echo $ac_n "(cached) $ac_c" 1>&6
595
603
else
640
648
      # Extract the first word of "cl", so it can be a program name with args.
641
649
set dummy cl; ac_word=$2
642
650
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
643
 
echo "configure:644: checking for $ac_word" >&5
 
651
echo "configure:652: checking for $ac_word" >&5
644
652
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
645
653
  echo $ac_n "(cached) $ac_c" 1>&6
646
654
else
672
680
fi
673
681
 
674
682
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
675
 
echo "configure:676: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
683
echo "configure:684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
676
684
 
677
685
ac_ext=c
678
686
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
683
691
 
684
692
cat > conftest.$ac_ext << EOF
685
693
 
686
 
#line 687 "configure"
 
694
#line 695 "configure"
687
695
#include "confdefs.h"
688
696
 
689
697
main(){return(0);}
690
698
EOF
691
 
if { (eval echo configure:692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
699
if { (eval echo configure:700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
692
700
  ac_cv_prog_cc_works=yes
693
701
  # If we can't run a trivial program, we are probably using a cross compiler.
694
702
  if (./conftest; exit) 2>/dev/null; then
714
722
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
715
723
fi
716
724
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
717
 
echo "configure:718: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
725
echo "configure:726: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
718
726
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
719
727
cross_compiling=$ac_cv_prog_cc_cross
720
728
 
721
729
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
722
 
echo "configure:723: checking whether we are using GNU C" >&5
 
730
echo "configure:731: checking whether we are using GNU C" >&5
723
731
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
724
732
  echo $ac_n "(cached) $ac_c" 1>&6
725
733
else
728
736
  yes;
729
737
#endif
730
738
EOF
731
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
739
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
732
740
  ac_cv_prog_gcc=yes
733
741
else
734
742
  ac_cv_prog_gcc=no
747
755
ac_save_CFLAGS="$CFLAGS"
748
756
CFLAGS=
749
757
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
750
 
echo "configure:751: checking whether ${CC-cc} accepts -g" >&5
 
758
echo "configure:759: checking whether ${CC-cc} accepts -g" >&5
751
759
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
752
760
  echo $ac_n "(cached) $ac_c" 1>&6
753
761
else
809
817
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
810
818
# ./install, which can be erroneously created by make from ./install.sh.
811
819
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
812
 
echo "configure:813: checking for a BSD compatible install" >&5
 
820
echo "configure:821: checking for a BSD compatible install" >&5
813
821
if test -z "$INSTALL"; then
814
822
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
815
823
  echo $ac_n "(cached) $ac_c" 1>&6
862
870
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
863
871
 
864
872
 
 
873
CFLAGS=
 
874
 
865
875
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
866
 
echo "configure:867: checking how to run the C preprocessor" >&5
 
876
echo "configure:877: checking how to run the C preprocessor" >&5
867
877
# On Suns, sometimes $CPP names a directory.
868
878
if test -n "$CPP" && test -d "$CPP"; then
869
879
  CPP=
878
888
  # On the NeXT, cc -E runs the code through the compiler's parser,
879
889
  # not just through cpp.
880
890
  cat > conftest.$ac_ext <<EOF
881
 
#line 882 "configure"
 
891
#line 892 "configure"
882
892
#include "confdefs.h"
883
893
#include <assert.h>
884
894
Syntax Error
885
895
EOF
886
896
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
887
 
{ (eval echo configure:888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
897
{ (eval echo configure:898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
888
898
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
889
899
if test -z "$ac_err"; then
890
900
  :
895
905
  rm -rf conftest*
896
906
  CPP="${CC-cc} -E -traditional-cpp"
897
907
  cat > conftest.$ac_ext <<EOF
898
 
#line 899 "configure"
 
908
#line 909 "configure"
899
909
#include "confdefs.h"
900
910
#include <assert.h>
901
911
Syntax Error
902
912
EOF
903
913
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
904
 
{ (eval echo configure:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
914
{ (eval echo configure:915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
905
915
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
906
916
if test -z "$ac_err"; then
907
917
  :
912
922
  rm -rf conftest*
913
923
  CPP="${CC-cc} -nologo -E"
914
924
  cat > conftest.$ac_ext <<EOF
915
 
#line 916 "configure"
 
925
#line 926 "configure"
916
926
#include "confdefs.h"
917
927
#include <assert.h>
918
928
Syntax Error
919
929
EOF
920
930
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
921
 
{ (eval echo configure:922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
931
{ (eval echo configure:932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
922
932
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
923
933
if test -z "$ac_err"; then
924
934
  :
946
956
do
947
957
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
948
958
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
949
 
echo "configure:950: checking for $ac_hdr" >&5
 
959
echo "configure:960: checking for $ac_hdr" >&5
950
960
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
951
961
  echo $ac_n "(cached) $ac_c" 1>&6
952
962
else
953
963
  cat > conftest.$ac_ext <<EOF
954
 
#line 955 "configure"
 
964
#line 965 "configure"
955
965
#include "confdefs.h"
956
966
#include <$ac_hdr>
957
967
EOF
958
968
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
959
 
{ (eval echo configure:960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
969
{ (eval echo configure:970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
960
970
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
961
971
if test -z "$ac_err"; then
962
972
  rm -rf conftest*
986
996
do
987
997
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
988
998
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
989
 
echo "configure:990: checking for $ac_hdr" >&5
 
999
echo "configure:1000: checking for $ac_hdr" >&5
990
1000
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
991
1001
  echo $ac_n "(cached) $ac_c" 1>&6
992
1002
else
993
1003
  cat > conftest.$ac_ext <<EOF
994
 
#line 995 "configure"
 
1004
#line 1005 "configure"
995
1005
#include "confdefs.h"
996
1006
#include <$ac_hdr>
997
1007
EOF
998
1008
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
999
 
{ (eval echo configure:1000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1009
{ (eval echo configure:1010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1000
1010
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1001
1011
if test -z "$ac_err"; then
1002
1012
  rm -rf conftest*
1022
1032
fi
1023
1033
done
1024
1034
 
1025
 
for ac_hdr in arpa/inet.h sys/ioctl.h
 
1035
for ac_hdr in arpa/inet.h sys/ioctl.h sys/time.h
1026
1036
do
1027
1037
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1028
1038
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1029
 
echo "configure:1030: checking for $ac_hdr" >&5
 
1039
echo "configure:1040: checking for $ac_hdr" >&5
1030
1040
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1031
1041
  echo $ac_n "(cached) $ac_c" 1>&6
1032
1042
else
1033
1043
  cat > conftest.$ac_ext <<EOF
1034
 
#line 1035 "configure"
 
1044
#line 1045 "configure"
1035
1045
#include "confdefs.h"
1036
1046
#include <$ac_hdr>
1037
1047
EOF
1038
1048
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1039
 
{ (eval echo configure:1040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1049
{ (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1040
1050
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1041
1051
if test -z "$ac_err"; then
1042
1052
  rm -rf conftest*
1067
1077
for ac_func in snprintf vsyslog waitpid statvfs statfs uname daemon setsid
1068
1078
do
1069
1079
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1070
 
echo "configure:1071: checking for $ac_func" >&5
 
1080
echo "configure:1081: checking for $ac_func" >&5
1071
1081
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1072
1082
  echo $ac_n "(cached) $ac_c" 1>&6
1073
1083
else
1074
1084
  cat > conftest.$ac_ext <<EOF
1075
 
#line 1076 "configure"
 
1085
#line 1086 "configure"
1076
1086
#include "confdefs.h"
1077
1087
/* System header to define __stub macros and hopefully few prototypes,
1078
1088
    which can conflict with char $ac_func(); below.  */
1095
1105
 
1096
1106
; return 0; }
1097
1107
EOF
1098
 
if { (eval echo configure:1099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1108
if { (eval echo configure:1109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1099
1109
  rm -rf conftest*
1100
1110
  eval "ac_cv_func_$ac_func=yes"
1101
1111
else
1121
1131
 
1122
1132
 
1123
1133
echo $ac_n "checking for socket""... $ac_c" 1>&6
1124
 
echo "configure:1125: checking for socket" >&5
 
1134
echo "configure:1135: checking for socket" >&5
1125
1135
if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1126
1136
  echo $ac_n "(cached) $ac_c" 1>&6
1127
1137
else
1128
1138
  cat > conftest.$ac_ext <<EOF
1129
 
#line 1130 "configure"
 
1139
#line 1140 "configure"
1130
1140
#include "confdefs.h"
1131
1141
/* System header to define __stub macros and hopefully few prototypes,
1132
1142
    which can conflict with char socket(); below.  */
1149
1159
 
1150
1160
; return 0; }
1151
1161
EOF
1152
 
if { (eval echo configure:1153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1162
if { (eval echo configure:1163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1153
1163
  rm -rf conftest*
1154
1164
  eval "ac_cv_func_socket=yes"
1155
1165
else
1170
1180
 
1171
1181
case $ac_cv_func_socket in
1172
1182
 no) echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1173
 
echo "configure:1174: checking for socket in -lsocket" >&5
 
1183
echo "configure:1184: checking for socket in -lsocket" >&5
1174
1184
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1175
1185
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1176
1186
  echo $ac_n "(cached) $ac_c" 1>&6
1178
1188
  ac_save_LIBS="$LIBS"
1179
1189
LIBS="-lsocket  $LIBS"
1180
1190
cat > conftest.$ac_ext <<EOF
1181
 
#line 1182 "configure"
 
1191
#line 1192 "configure"
1182
1192
#include "confdefs.h"
1183
1193
/* Override any gcc2 internal prototype to avoid an error.  */
1184
1194
/* We use char because int might match the return type of a gcc2
1189
1199
socket()
1190
1200
; return 0; }
1191
1201
EOF
1192
 
if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1202
if { (eval echo configure:1203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1193
1203
  rm -rf conftest*
1194
1204
  eval "ac_cv_lib_$ac_lib_var=yes"
1195
1205
else
1218
1228
 ;;
1219
1229
esac
1220
1230
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1221
 
echo "configure:1222: checking for gethostbyname" >&5
 
1231
echo "configure:1232: checking for gethostbyname" >&5
1222
1232
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1223
1233
  echo $ac_n "(cached) $ac_c" 1>&6
1224
1234
else
1225
1235
  cat > conftest.$ac_ext <<EOF
1226
 
#line 1227 "configure"
 
1236
#line 1237 "configure"
1227
1237
#include "confdefs.h"
1228
1238
/* System header to define __stub macros and hopefully few prototypes,
1229
1239
    which can conflict with char gethostbyname(); below.  */
1246
1256
 
1247
1257
; return 0; }
1248
1258
EOF
1249
 
if { (eval echo configure:1250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1259
if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1250
1260
  rm -rf conftest*
1251
1261
  eval "ac_cv_func_gethostbyname=yes"
1252
1262
else
1267
1277
 
1268
1278
case $ac_cv_func_gethostbyname in
1269
1279
 no) echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1270
 
echo "configure:1271: checking for gethostbyname in -lnsl" >&5
 
1280
echo "configure:1281: checking for gethostbyname in -lnsl" >&5
1271
1281
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1272
1282
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1273
1283
  echo $ac_n "(cached) $ac_c" 1>&6
1275
1285
  ac_save_LIBS="$LIBS"
1276
1286
LIBS="-lnsl  $LIBS"
1277
1287
cat > conftest.$ac_ext <<EOF
1278
 
#line 1279 "configure"
 
1288
#line 1289 "configure"
1279
1289
#include "confdefs.h"
1280
1290
/* Override any gcc2 internal prototype to avoid an error.  */
1281
1291
/* We use char because int might match the return type of a gcc2
1286
1296
gethostbyname()
1287
1297
; return 0; }
1288
1298
EOF
1289
 
if { (eval echo configure:1290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1299
if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1290
1300
  rm -rf conftest*
1291
1301
  eval "ac_cv_lib_$ac_lib_var=yes"
1292
1302
else
1314
1324
fi
1315
1325
 ;;
1316
1326
esac
1317
 
echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
1318
 
echo "configure:1319: checking for setproctitle" >&5
1319
 
if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
 
1327
for ac_func in setproctitle
 
1328
do
 
1329
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 
1330
echo "configure:1331: checking for $ac_func" >&5
 
1331
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1320
1332
  echo $ac_n "(cached) $ac_c" 1>&6
1321
1333
else
1322
1334
  cat > conftest.$ac_ext <<EOF
1323
 
#line 1324 "configure"
 
1335
#line 1336 "configure"
1324
1336
#include "confdefs.h"
1325
1337
/* System header to define __stub macros and hopefully few prototypes,
1326
 
    which can conflict with char setproctitle(); below.  */
 
1338
    which can conflict with char $ac_func(); below.  */
1327
1339
#include <assert.h>
1328
1340
/* Override any gcc2 internal prototype to avoid an error.  */
1329
1341
/* We use char because int might match the return type of a gcc2
1330
1342
    builtin and then its argument prototype would still apply.  */
1331
 
char setproctitle();
 
1343
char $ac_func();
1332
1344
 
1333
1345
int main() {
1334
1346
 
1335
1347
/* The GNU C library defines this for functions which it implements
1336
1348
    to always fail with ENOSYS.  Some functions are actually named
1337
1349
    something starting with __ and the normal name is an alias.  */
1338
 
#if defined (__stub_setproctitle) || defined (__stub___setproctitle)
 
1350
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1339
1351
choke me
1340
1352
#else
1341
 
setproctitle();
 
1353
$ac_func();
1342
1354
#endif
1343
1355
 
1344
1356
; return 0; }
1345
1357
EOF
1346
 
if { (eval echo configure:1347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1358
if { (eval echo configure:1359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1347
1359
  rm -rf conftest*
1348
 
  eval "ac_cv_func_setproctitle=yes"
 
1360
  eval "ac_cv_func_$ac_func=yes"
1349
1361
else
1350
1362
  echo "configure: failed program was:" >&5
1351
1363
  cat conftest.$ac_ext >&5
1352
1364
  rm -rf conftest*
1353
 
  eval "ac_cv_func_setproctitle=no"
 
1365
  eval "ac_cv_func_$ac_func=no"
1354
1366
fi
1355
1367
rm -f conftest*
1356
1368
fi
1357
1369
 
1358
 
if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
 
1370
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1359
1371
  echo "$ac_t""yes" 1>&6
1360
 
  :
 
1372
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
 
1373
  cat >> confdefs.h <<EOF
 
1374
#define $ac_tr_func 1
 
1375
EOF
 
1376
 
1361
1377
else
1362
1378
  echo "$ac_t""no" 1>&6
1363
1379
fi
 
1380
done
1364
1381
 
1365
1382
case $ac_cv_func_setproctitle in
1366
1383
 no) echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
1367
 
echo "configure:1368: checking for setproctitle in -lutil" >&5
 
1384
echo "configure:1385: checking for setproctitle in -lutil" >&5
1368
1385
ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
1369
1386
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1370
1387
  echo $ac_n "(cached) $ac_c" 1>&6
1372
1389
  ac_save_LIBS="$LIBS"
1373
1390
LIBS="-lutil  $LIBS"
1374
1391
cat > conftest.$ac_ext <<EOF
1375
 
#line 1376 "configure"
 
1392
#line 1393 "configure"
1376
1393
#include "confdefs.h"
1377
1394
/* Override any gcc2 internal prototype to avoid an error.  */
1378
1395
/* We use char because int might match the return type of a gcc2
1383
1400
setproctitle()
1384
1401
; return 0; }
1385
1402
EOF
1386
 
if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1403
if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1387
1404
  rm -rf conftest*
1388
1405
  eval "ac_cv_lib_$ac_lib_var=yes"
1389
1406
else
1398
1415
fi
1399
1416
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1400
1417
  echo "$ac_t""yes" 1>&6
1401
 
    ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1402
 
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1403
 
  cat >> confdefs.h <<EOF
1404
 
#define $ac_tr_lib 1
 
1418
  cat >> confdefs.h <<\EOF
 
1419
#define HAVE_SETPROCTITLE 1
1405
1420
EOF
1406
 
 
1407
 
  LIBS="-lutil $LIBS"
1408
 
 
 
1421
 LIBS="$LIBS -lutil"
1409
1422
else
1410
1423
  echo "$ac_t""no" 1>&6
1411
1424
fi
1412
1425
 ;;
1413
1426
esac
1414
1427
echo $ac_n "checking size of short""... $ac_c" 1>&6
1415
 
echo "configure:1416: checking size of short" >&5
 
1428
echo "configure:1429: checking size of short" >&5
1416
1429
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1417
1430
  echo $ac_n "(cached) $ac_c" 1>&6
1418
1431
else
1420
1433
  ac_cv_sizeof_short=0
1421
1434
else
1422
1435
  cat > conftest.$ac_ext <<EOF
1423
 
#line 1424 "configure"
 
1436
#line 1437 "configure"
1424
1437
#include "confdefs.h"
1425
1438
#include <stdio.h>
1426
 
main()
 
1439
int main()
1427
1440
{
1428
1441
  FILE *f=fopen("conftestval", "w");
1429
 
  if (!f) exit(1);
 
1442
  if (!f) return(1);
1430
1443
  fprintf(f, "%d\n", sizeof(short));
1431
 
  exit(0);
 
1444
  return(0);
1432
1445
}
1433
1446
EOF
1434
 
if { (eval echo configure:1435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1447
if { (eval echo configure:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1435
1448
then
1436
1449
  ac_cv_sizeof_short=`cat conftestval`
1437
1450
else
1451
1464
 
1452
1465
 
1453
1466
echo $ac_n "checking size of int""... $ac_c" 1>&6
1454
 
echo "configure:1455: checking size of int" >&5
 
1467
echo "configure:1468: checking size of int" >&5
1455
1468
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1456
1469
  echo $ac_n "(cached) $ac_c" 1>&6
1457
1470
else
1459
1472
  ac_cv_sizeof_int=0
1460
1473
else
1461
1474
  cat > conftest.$ac_ext <<EOF
1462
 
#line 1463 "configure"
 
1475
#line 1476 "configure"
1463
1476
#include "confdefs.h"
1464
1477
#include <stdio.h>
1465
 
main()
 
1478
int main()
1466
1479
{
1467
1480
  FILE *f=fopen("conftestval", "w");
1468
 
  if (!f) exit(1);
 
1481
  if (!f) return(1);
1469
1482
  fprintf(f, "%d\n", sizeof(int));
1470
 
  exit(0);
 
1483
  return(0);
1471
1484
}
1472
1485
EOF
1473
 
if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1486
if { (eval echo configure:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1474
1487
then
1475
1488
  ac_cv_sizeof_int=`cat conftestval`
1476
1489
else
1490
1503
 
1491
1504
 
1492
1505
echo $ac_n "checking size of long""... $ac_c" 1>&6
1493
 
echo "configure:1494: checking size of long" >&5
 
1506
echo "configure:1507: checking size of long" >&5
1494
1507
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1495
1508
  echo $ac_n "(cached) $ac_c" 1>&6
1496
1509
else
1498
1511
  ac_cv_sizeof_long=0
1499
1512
else
1500
1513
  cat > conftest.$ac_ext <<EOF
1501
 
#line 1502 "configure"
 
1514
#line 1515 "configure"
1502
1515
#include "confdefs.h"
1503
1516
#include <stdio.h>
1504
 
main()
 
1517
int main()
1505
1518
{
1506
1519
  FILE *f=fopen("conftestval", "w");
1507
 
  if (!f) exit(1);
 
1520
  if (!f) return(1);
1508
1521
  fprintf(f, "%d\n", sizeof(long));
1509
 
  exit(0);
 
1522
  return(0);
1510
1523
}
1511
1524
EOF
1512
 
if { (eval echo configure:1513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1525
if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1513
1526
then
1514
1527
  ac_cv_sizeof_long=`cat conftestval`
1515
1528
else
1529
1542
 
1530
1543
 
1531
1544
 
 
1545
echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
 
1546
echo "configure:1547: checking for socklen_t" >&5
 
1547
cat > conftest.$ac_ext <<EOF
 
1548
#line 1549 "configure"
 
1549
#include "confdefs.h"
 
1550
#include <sys/types.h>
 
1551
#include <sys/socket.h>
 
1552
#include <netdb.h>
 
1553
int main() {
 
1554
socklen_t i
 
1555
; return 0; }
 
1556
EOF
 
1557
if { (eval echo configure:1558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1558
  rm -rf conftest*
 
1559
  cat >> confdefs.h <<\EOF
 
1560
#define HAVE_SOCKLEN_T 1
 
1561
EOF
 
1562
 echo "$ac_t""yes" 1>&6
 
1563
else
 
1564
  echo "configure: failed program was:" >&5
 
1565
  cat conftest.$ac_ext >&5
 
1566
  rm -rf conftest*
 
1567
  echo "$ac_t""no" 1>&6
 
1568
fi
 
1569
rm -f conftest*
 
1570
 
1532
1571
 
1533
1572
echo $ac_n "checking for reliable signals""... $ac_c" 1>&6
1534
 
echo "configure:1535: checking for reliable signals" >&5
 
1573
echo "configure:1574: checking for reliable signals" >&5
1535
1574
if test "$cross_compiling" = yes; then
1536
1575
  cat >> confdefs.h <<\EOF
1537
1576
#define SYS5SIGNALS 1
1540
1579
 
1541
1580
else
1542
1581
  cat > conftest.$ac_ext <<EOF
1543
 
#line 1544 "configure"
 
1582
#line 1583 "configure"
1544
1583
#include "confdefs.h"
1545
1584
 
1546
1585
#include <sys/types.h>
1574
1613
}
1575
1614
 
1576
1615
EOF
1577
 
if { (eval echo configure:1578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1616
if { (eval echo configure:1617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1578
1617
then
1579
1618
  echo "$ac_t""yes" 1>&6
1580
1619
else
1592
1631
 
1593
1632
 
1594
1633
echo $ac_n "checking for facilitynames""... $ac_c" 1>&6
1595
 
echo "configure:1596: checking for facilitynames" >&5
 
1634
echo "configure:1635: checking for facilitynames" >&5
1596
1635
cat > conftest.$ac_ext <<EOF
1597
 
#line 1598 "configure"
 
1636
#line 1637 "configure"
1598
1637
#include "confdefs.h"
1599
1638
 
1600
1639
#include <stdio.h>
1607
1646
 
1608
1647
; return 0; }
1609
1648
EOF
1610
 
if { (eval echo configure:1611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1649
if { (eval echo configure:1650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1611
1650
  rm -rf conftest*
1612
1651
  cat >> confdefs.h <<\EOF
1613
1652
#define HAVE_FACILITYNAMES 1
1623
1662
 
1624
1663
 
1625
1664
echo $ac_n "checking for TIOCNOTTY""... $ac_c" 1>&6
1626
 
echo "configure:1627: checking for TIOCNOTTY" >&5
 
1665
echo "configure:1666: checking for TIOCNOTTY" >&5
1627
1666
cat > conftest.$ac_ext <<EOF
1628
 
#line 1629 "configure"
 
1667
#line 1668 "configure"
1629
1668
#include "confdefs.h"
1630
1669
 
1631
1670
#include <sys/ioctl.h>
1636
1675
 
1637
1676
; return 0; }
1638
1677
EOF
1639
 
if { (eval echo configure:1640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1678
if { (eval echo configure:1679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1640
1679
  rm -rf conftest*
1641
1680
  cat >> confdefs.h <<\EOF
1642
1681
#define HAVE_TIOCNOTTY 1
1651
1690
rm -f conftest*
1652
1691
 
1653
1692
 
1654
 
echo $ac_n "checking for built-in setproctitle""... $ac_c" 1>&6
1655
 
echo "configure:1656: checking for built-in setproctitle" >&5
1656
 
cat > conftest.$ac_ext <<EOF
1657
 
#line 1658 "configure"
1658
 
#include "confdefs.h"
1659
 
 
1660
 
#include <sys/types.h>
1661
 
#include <libutil.h>
1662
 
 
1663
 
int main() {
1664
 
 
1665
 
  setproctitle("test");
1666
 
 
1667
 
; return 0; }
1668
 
EOF
1669
 
if { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1670
 
  rm -rf conftest*
 
1693
# Check whether --with-debug or --without-debug was given.
 
1694
if test "${with_debug+set}" = set; then
 
1695
  withval="$with_debug"
 
1696
  CFLAGS="-g $CFLAGS"
 
1697
else
 
1698
  CFLAGS="-O2 $CFLAGS"
 
1699
fi
 
1700
 
 
1701
 
 
1702
# Check whether --with-https or --without-https was given.
 
1703
if test "${with_https+set}" = set; then
 
1704
  withval="$with_https"
 
1705
  do_https=yes
 
1706
else
 
1707
  do_https=no
 
1708
fi
 
1709
 
 
1710
 
 
1711
# Check whether --with-ntlm or --without-ntlm was given.
 
1712
if test "${with_ntlm+set}" = set; then
 
1713
  withval="$with_ntlm"
 
1714
  do_ntlm=yes
 
1715
else
 
1716
  do_ntlm=no
 
1717
fi
 
1718
 
 
1719
 
 
1720
case x$do_https in
 
1721
  xyes)
 
1722
   cat >> confdefs.h <<\EOF
 
1723
#define HTTPS 1
 
1724
EOF
 
1725
 
 
1726
   HTTPS_SRC=https.c
 
1727
   ;;
 
1728
esac
 
1729
 
 
1730
case x$do_ntlm in
 
1731
  xyes)
 
1732
   cat >> confdefs.h <<\EOF
 
1733
#define NTLM 1
 
1734
EOF
 
1735
 
 
1736
   cat >> confdefs.h <<\EOF
 
1737
#define HTTPS 1
 
1738
EOF
 
1739
 
 
1740
   HTTPS_SRC="https.c ntlm/des_enc.c ntlm/helpers.c ntlm/ecb_enc.c ntlm/md4_dgst.c ntlm/set_key.c"
 
1741
   ;;
 
1742
esac
 
1743
 
 
1744
extrasub=s%@HTTPS_SRC@%$HTTPS_SRC%g
 
1745
 
 
1746
# Check whether --with-aso or --without-aso was given.
 
1747
if test "${with_aso+set}" = set; then
 
1748
  withval="$with_aso"
1671
1749
  cat >> confdefs.h <<\EOF
1672
 
#define HAVE_SETPROCTITLE 1
 
1750
#define AMIGADOS_4D_OUTBOUND 1
1673
1751
EOF
1674
 
 echo "$ac_t""yes" 1>&6
1675
 
else
1676
 
  echo "configure: failed program was:" >&5
1677
 
  cat conftest.$ac_ext >&5
1678
 
  rm -rf conftest*
1679
 
  echo "$ac_t""no" 1>&6
 
1752
 
1680
1753
fi
1681
 
rm -f conftest*
 
1754
 
1682
1755
 
1683
1756
 
1684
1757
trap '' 1 2 15