~ubuntu-branches/ubuntu/dapper/freeradius/dapper-updates

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Paul Hampson
  • Date: 2004-12-29 20:19:42 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041229201942-uj2e95la965uthc7
Tags: 1.0.1-2
* freeradius-dialupadmin Suggests php4-mysql | php4-pgsql
   Closes: #279419
* Added a two-second pause to restart in init.d script
   Closes: #262635
* FreeRADIUS module packages now depend on the same source
  version of the main FreeRADIUS package.
   Closes: #284353
* FreeRADIUS-dialupadmin's default paths in admin.conf are
  now correct.
   Closes: #280942
* FreeRADIUS-dialupadmin's help.php3 can now find README.
   Closes: #280941
* Fixes stolen from 1.0.2 CVS:
  - Bug fix to make udpfromto code work
  - radrelay shouldn't dump core if it can't read a VP from the
    detail file.
  - Only initialize the random pool once.
  - In rlm_sql, don't escape characters twice.
  - In rlm_ldap, only claim Auth-Type if a plain text password is present.
  - Locking fixes in threading code
  - Fix building on gcc-4.0 by not trying to access static auth_port from
    other files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
ac_help="$ac_help
214
214
  --with-experimental-modules      Use experimental and unstable modules. (default=no) "
215
215
ac_help="$ac_help
 
216
  --with-openssl-includes=DIR      Directory to look for OpenSSL include files"
 
217
ac_help="$ac_help
 
218
  --with-openssl-libraries=DIR     Directory to look for OpenSSL library files"
 
219
ac_help="$ac_help
216
220
  --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO"
217
221
ac_help="$ac_help
218
222
  --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO"
 
223
ac_help="$ac_help
 
224
  --with-udpfromto        Compile in UDPFROMTO support. (default=no)"
219
225
 
220
226
# Initialize some variables set by options.
221
227
# The variables have the same names as the options, with
727
733
 
728
734
 
729
735
 
730
 
# From configure.in Revision: 1.177.2.11 
731
 
RADIUSD_MAJOR_VERSION=0
732
 
RADIUSD_MINOR_VERSION=9.3
 
736
# From configure.in Revision: 1.198.2.8 
 
737
RADIUSD_MAJOR_VERSION=1
 
738
RADIUSD_MINOR_VERSION=0.1
733
739
RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
734
740
 
735
741
 
736
742
# Extract the first word of "gcc", so it can be a program name with args.
737
743
set dummy gcc; ac_word=$2
738
744
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
739
 
echo "configure:740: checking for $ac_word" >&5
 
745
echo "configure:746: checking for $ac_word" >&5
740
746
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
741
747
  echo $ac_n "(cached) $ac_c" 1>&6
742
748
else
766
772
  # Extract the first word of "cc", so it can be a program name with args.
767
773
set dummy cc; ac_word=$2
768
774
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
769
 
echo "configure:770: checking for $ac_word" >&5
 
775
echo "configure:776: checking for $ac_word" >&5
770
776
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
771
777
  echo $ac_n "(cached) $ac_c" 1>&6
772
778
else
817
823
      # Extract the first word of "cl", so it can be a program name with args.
818
824
set dummy cl; ac_word=$2
819
825
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
820
 
echo "configure:821: checking for $ac_word" >&5
 
826
echo "configure:827: checking for $ac_word" >&5
821
827
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
822
828
  echo $ac_n "(cached) $ac_c" 1>&6
823
829
else
849
855
fi
850
856
 
851
857
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
852
 
echo "configure:853: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
858
echo "configure:859: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
853
859
 
854
860
ac_ext=c
855
861
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
860
866
 
861
867
cat > conftest.$ac_ext << EOF
862
868
 
863
 
#line 864 "configure"
 
869
#line 870 "configure"
864
870
#include "confdefs.h"
865
871
 
866
872
main(){return(0);}
867
873
EOF
868
 
if { (eval echo configure:869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
874
if { (eval echo configure:875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
869
875
  ac_cv_prog_cc_works=yes
870
876
  # If we can't run a trivial program, we are probably using a cross compiler.
871
877
  if (./conftest; exit) 2>/dev/null; then
891
897
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
892
898
fi
893
899
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
894
 
echo "configure:895: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
900
echo "configure:901: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
895
901
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
896
902
cross_compiling=$ac_cv_prog_cc_cross
897
903
 
898
904
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
899
 
echo "configure:900: checking whether we are using GNU C" >&5
 
905
echo "configure:906: checking whether we are using GNU C" >&5
900
906
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
901
907
  echo $ac_n "(cached) $ac_c" 1>&6
902
908
else
905
911
  yes;
906
912
#endif
907
913
EOF
908
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
914
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
909
915
  ac_cv_prog_gcc=yes
910
916
else
911
917
  ac_cv_prog_gcc=no
924
930
ac_save_CFLAGS="$CFLAGS"
925
931
CFLAGS=
926
932
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
927
 
echo "configure:928: checking whether ${CC-cc} accepts -g" >&5
 
933
echo "configure:934: checking whether ${CC-cc} accepts -g" >&5
928
934
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
929
935
  echo $ac_n "(cached) $ac_c" 1>&6
930
936
else
956
962
fi
957
963
 
958
964
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
959
 
echo "configure:960: checking how to run the C preprocessor" >&5
 
965
echo "configure:966: checking how to run the C preprocessor" >&5
960
966
# On Suns, sometimes $CPP names a directory.
961
967
if test -n "$CPP" && test -d "$CPP"; then
962
968
  CPP=
971
977
  # On the NeXT, cc -E runs the code through the compiler's parser,
972
978
  # not just through cpp.
973
979
  cat > conftest.$ac_ext <<EOF
974
 
#line 975 "configure"
 
980
#line 981 "configure"
975
981
#include "confdefs.h"
976
982
#include <assert.h>
977
983
Syntax Error
978
984
EOF
979
985
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
980
 
{ (eval echo configure:981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
986
{ (eval echo configure:987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
981
987
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
982
988
if test -z "$ac_err"; then
983
989
  :
988
994
  rm -rf conftest*
989
995
  CPP="${CC-cc} -E -traditional-cpp"
990
996
  cat > conftest.$ac_ext <<EOF
991
 
#line 992 "configure"
 
997
#line 998 "configure"
992
998
#include "confdefs.h"
993
999
#include <assert.h>
994
1000
Syntax Error
995
1001
EOF
996
1002
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
997
 
{ (eval echo configure:998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1003
{ (eval echo configure:1004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
998
1004
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
999
1005
if test -z "$ac_err"; then
1000
1006
  :
1005
1011
  rm -rf conftest*
1006
1012
  CPP="${CC-cc} -nologo -E"
1007
1013
  cat > conftest.$ac_ext <<EOF
1008
 
#line 1009 "configure"
 
1014
#line 1015 "configure"
1009
1015
#include "confdefs.h"
1010
1016
#include <assert.h>
1011
1017
Syntax Error
1012
1018
EOF
1013
1019
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1014
 
{ (eval echo configure:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1020
{ (eval echo configure:1021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1015
1021
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1016
1022
if test -z "$ac_err"; then
1017
1023
  :
1037
1043
 
1038
1044
if test $ac_cv_prog_gcc = yes; then
1039
1045
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1040
 
echo "configure:1041: checking whether ${CC-cc} needs -traditional" >&5
 
1046
echo "configure:1047: checking whether ${CC-cc} needs -traditional" >&5
1041
1047
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1042
1048
  echo $ac_n "(cached) $ac_c" 1>&6
1043
1049
else
1044
1050
    ac_pattern="Autoconf.*'x'"
1045
1051
  cat > conftest.$ac_ext <<EOF
1046
 
#line 1047 "configure"
 
1052
#line 1053 "configure"
1047
1053
#include "confdefs.h"
1048
1054
#include <sgtty.h>
1049
1055
Autoconf TIOCGETP
1061
1067
 
1062
1068
  if test $ac_cv_prog_gcc_traditional = no; then
1063
1069
    cat > conftest.$ac_ext <<EOF
1064
 
#line 1065 "configure"
 
1070
#line 1071 "configure"
1065
1071
#include "confdefs.h"
1066
1072
#include <termio.h>
1067
1073
Autoconf TCGETA
1083
1089
fi
1084
1090
 
1085
1091
echo $ac_n "checking whether we are using SUNPro C""... $ac_c" 1>&6
1086
 
echo "configure:1087: checking whether we are using SUNPro C" >&5
 
1092
echo "configure:1093: checking whether we are using SUNPro C" >&5
1087
1093
if eval "test \"`echo '$''{'ac_cv_prog_suncc'+set}'`\" = set"; then
1088
1094
  echo $ac_n "(cached) $ac_c" 1>&6
1089
1095
else
1092
1098
  yes;
1093
1099
#endif
1094
1100
EOF
1095
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
1101
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1096
1102
  ac_cv_prog_suncc=yes
1097
1103
else
1098
1104
  ac_cv_prog_suncc=no
1103
1109
# Extract the first word of "ranlib", so it can be a program name with args.
1104
1110
set dummy ranlib; ac_word=$2
1105
1111
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106
 
echo "configure:1107: checking for $ac_word" >&5
 
1112
echo "configure:1113: checking for $ac_word" >&5
1107
1113
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1108
1114
  echo $ac_n "(cached) $ac_c" 1>&6
1109
1115
else
1131
1137
fi
1132
1138
 
1133
1139
 
 
1140
abs_top_builddir=`pwd`
 
1141
 
 
1142
 
1134
1143
 
1135
1144
PACKAGE=freeradius
1136
1145
 
1137
1146
echo $ac_n "checking for AIX""... $ac_c" 1>&6
1138
 
echo "configure:1139: checking for AIX" >&5
 
1147
echo "configure:1148: checking for AIX" >&5
1139
1148
cat > conftest.$ac_ext <<EOF
1140
 
#line 1141 "configure"
 
1149
#line 1150 "configure"
1141
1150
#include "confdefs.h"
1142
1151
#ifdef _AIX
1143
1152
  yes
1162
1171
# Extract the first word of "gmake", so it can be a program name with args.
1163
1172
set dummy gmake; ac_word=$2
1164
1173
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165
 
echo "configure:1166: checking for $ac_word" >&5
 
1174
echo "configure:1175: checking for $ac_word" >&5
1166
1175
if eval "test \"`echo '$''{'ac_cv_prog_GMAKE'+set}'`\" = set"; then
1167
1176
  echo $ac_n "(cached) $ac_c" 1>&6
1168
1177
else
1193
1202
  # Extract the first word of "make", so it can be a program name with args.
1194
1203
set dummy make; ac_word=$2
1195
1204
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1196
 
echo "configure:1197: checking for $ac_word" >&5
 
1205
echo "configure:1206: checking for $ac_word" >&5
1197
1206
if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1198
1207
  echo $ac_n "(cached) $ac_c" 1>&6
1199
1208
else
1230
1239
  # Extract the first word of "gmake", so it can be a program name with args.
1231
1240
set dummy gmake; ac_word=$2
1232
1241
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1233
 
echo "configure:1234: checking for $ac_word" >&5
 
1242
echo "configure:1243: checking for $ac_word" >&5
1234
1243
if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1235
1244
  echo $ac_n "(cached) $ac_c" 1>&6
1236
1245
else
1313
1322
   save_LDFLAGS="$LDFLAGS"
1314
1323
   test -z "$withval" || LDFLAGS="$LDFLAGS -L$withval"
1315
1324
   echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
1316
 
echo "configure:1317: checking for lt_dlinit in -lltdl" >&5
 
1325
echo "configure:1326: checking for lt_dlinit in -lltdl" >&5
1317
1326
ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-%__p_%'`
1318
1327
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1319
1328
  echo $ac_n "(cached) $ac_c" 1>&6
1321
1330
  ac_save_LIBS="$LIBS"
1322
1331
LIBS="-lltdl  $LIBS"
1323
1332
cat > conftest.$ac_ext <<EOF
1324
 
#line 1325 "configure"
 
1333
#line 1334 "configure"
1325
1334
#include "confdefs.h"
1326
1335
/* Override any gcc2 internal prototype to avoid an error.  */
1327
1336
/* We use char because int might match the return type of a gcc2
1332
1341
lt_dlinit()
1333
1342
; return 0; }
1334
1343
EOF
1335
 
if { (eval echo configure:1336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1344
if { (eval echo configure:1345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1336
1345
  rm -rf conftest*
1337
1346
  eval "ac_cv_lib_$ac_lib_var=yes"
1338
1347
else
1361
1370
           CPPFLAGS="$CPPFLAGS -I$withval"
1362
1371
           ac_safe=`echo "ltdl.h" | sed 'y%./+-%__p_%'`
1363
1372
echo $ac_n "checking for ltdl.h""... $ac_c" 1>&6
1364
 
echo "configure:1365: checking for ltdl.h" >&5
 
1373
echo "configure:1374: checking for ltdl.h" >&5
1365
1374
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1366
1375
  echo $ac_n "(cached) $ac_c" 1>&6
1367
1376
else
1368
1377
  cat > conftest.$ac_ext <<EOF
1369
 
#line 1370 "configure"
 
1378
#line 1379 "configure"
1370
1379
#include "confdefs.h"
1371
1380
#include <ltdl.h>
1372
1381
EOF
1373
1382
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1374
 
{ (eval echo configure:1375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1383
{ (eval echo configure:1384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1375
1384
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1376
1385
if test -z "$ac_err"; then
1377
1386
  rm -rf conftest*
1437
1446
fi
1438
1447
 
1439
1448
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1440
 
echo "configure:1441: checking for Cygwin environment" >&5
 
1449
echo "configure:1450: checking for Cygwin environment" >&5
1441
1450
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1442
1451
  echo $ac_n "(cached) $ac_c" 1>&6
1443
1452
else
1444
1453
  cat > conftest.$ac_ext <<EOF
1445
 
#line 1446 "configure"
 
1454
#line 1455 "configure"
1446
1455
#include "confdefs.h"
1447
1456
 
1448
1457
int main() {
1453
1462
return __CYGWIN__;
1454
1463
; return 0; }
1455
1464
EOF
1456
 
if { (eval echo configure:1457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1465
if { (eval echo configure:1466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1457
1466
  rm -rf conftest*
1458
1467
  ac_cv_cygwin=yes
1459
1468
else
1470
1479
CYGWIN=
1471
1480
test "$ac_cv_cygwin" = yes && CYGWIN=yes
1472
1481
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1473
 
echo "configure:1474: checking for mingw32 environment" >&5
 
1482
echo "configure:1483: checking for mingw32 environment" >&5
1474
1483
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1475
1484
  echo $ac_n "(cached) $ac_c" 1>&6
1476
1485
else
1477
1486
  cat > conftest.$ac_ext <<EOF
1478
 
#line 1479 "configure"
 
1487
#line 1488 "configure"
1479
1488
#include "confdefs.h"
1480
1489
 
1481
1490
int main() {
1482
1491
return __MINGW32__;
1483
1492
; return 0; }
1484
1493
EOF
1485
 
if { (eval echo configure:1486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1494
if { (eval echo configure:1495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1486
1495
  rm -rf conftest*
1487
1496
  ac_cv_mingw32=yes
1488
1497
else
1574
1583
fi
1575
1584
 
1576
1585
echo $ac_n "checking host system type""... $ac_c" 1>&6
1577
 
echo "configure:1578: checking host system type" >&5
 
1586
echo "configure:1587: checking host system type" >&5
1578
1587
 
1579
1588
host_alias=$host
1580
1589
case "$host_alias" in
1595
1604
echo "$ac_t""$host" 1>&6
1596
1605
 
1597
1606
echo $ac_n "checking build system type""... $ac_c" 1>&6
1598
 
echo "configure:1599: checking build system type" >&5
 
1607
echo "configure:1608: checking build system type" >&5
1599
1608
 
1600
1609
build_alias=$build
1601
1610
case "$build_alias" in
1624
1633
if test "$GCC" = yes; then
1625
1634
  # Check if gcc -print-prog-name=ld gives a path.
1626
1635
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1627
 
echo "configure:1628: checking for ld used by GCC" >&5
 
1636
echo "configure:1637: checking for ld used by GCC" >&5
1628
1637
  case $host in
1629
1638
  *-*-mingw*)
1630
1639
    # gcc leaves a trailing carriage return which upsets mingw
1654
1663
  esac
1655
1664
elif test "$with_gnu_ld" = yes; then
1656
1665
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1657
 
echo "configure:1658: checking for GNU ld" >&5
 
1666
echo "configure:1667: checking for GNU ld" >&5
1658
1667
else
1659
1668
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1660
 
echo "configure:1661: checking for non-GNU ld" >&5
 
1669
echo "configure:1670: checking for non-GNU ld" >&5
1661
1670
fi
1662
1671
if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1663
1672
  echo $ac_n "(cached) $ac_c" 1>&6
1692
1701
fi
1693
1702
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1694
1703
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1695
 
echo "configure:1696: checking if the linker ($LD) is GNU ld" >&5
 
1704
echo "configure:1705: checking if the linker ($LD) is GNU ld" >&5
1696
1705
if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1697
1706
  echo $ac_n "(cached) $ac_c" 1>&6
1698
1707
else
1709
1718
 
1710
1719
 
1711
1720
echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1712
 
echo "configure:1713: checking for $LD option to reload object files" >&5
 
1721
echo "configure:1722: checking for $LD option to reload object files" >&5
1713
1722
if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1714
1723
  echo $ac_n "(cached) $ac_c" 1>&6
1715
1724
else
1721
1730
test -n "$reload_flag" && reload_flag=" $reload_flag"
1722
1731
 
1723
1732
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1724
 
echo "configure:1725: checking for BSD-compatible nm" >&5
 
1733
echo "configure:1734: checking for BSD-compatible nm" >&5
1725
1734
if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1726
1735
  echo $ac_n "(cached) $ac_c" 1>&6
1727
1736
else
1759
1768
echo "$ac_t""$NM" 1>&6
1760
1769
 
1761
1770
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1762
 
echo "configure:1763: checking whether ln -s works" >&5
 
1771
echo "configure:1772: checking whether ln -s works" >&5
1763
1772
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1764
1773
  echo $ac_n "(cached) $ac_c" 1>&6
1765
1774
else
1780
1789
fi
1781
1790
 
1782
1791
echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1783
 
echo "configure:1784: checking how to recognise dependant libraries" >&5
 
1792
echo "configure:1793: checking how to recognise dependant libraries" >&5
1784
1793
if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1785
1794
  echo $ac_n "(cached) $ac_c" 1>&6
1786
1795
else
1963
1972
deplibs_check_method=$lt_cv_deplibs_check_method
1964
1973
 
1965
1974
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1966
 
echo "configure:1967: checking for object suffix" >&5
 
1975
echo "configure:1976: checking for object suffix" >&5
1967
1976
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1968
1977
  echo $ac_n "(cached) $ac_c" 1>&6
1969
1978
else
1970
1979
  rm -f conftest*
1971
1980
echo 'int i = 1;' > conftest.$ac_ext
1972
 
if { (eval echo configure:1973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1981
if { (eval echo configure:1982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1973
1982
  for ac_file in conftest.*; do
1974
1983
    case $ac_file in
1975
1984
    *.c) ;;
1989
1998
 
1990
1999
 
1991
2000
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1992
 
echo "configure:1993: checking for executable suffix" >&5
 
2001
echo "configure:2002: checking for executable suffix" >&5
1993
2002
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1994
2003
  echo $ac_n "(cached) $ac_c" 1>&6
1995
2004
else
1999
2008
  rm -f conftest*
2000
2009
  echo 'int main () { return 0; }' > conftest.$ac_ext
2001
2010
  ac_cv_exeext=
2002
 
  if { (eval echo configure:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
 
2011
  if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2003
2012
    for file in conftest.*; do
2004
2013
      case $file in
2005
 
      *.c | *.o | *.obj) ;;
 
2014
      *.$ac_ext | *.c | *.o | *.obj) ;;
2006
2015
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2007
2016
      esac
2008
2017
    done
2030
2039
 
2031
2040
# Check for command to grab the raw symbol name followed by C symbol from nm.
2032
2041
echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2033
 
echo "configure:2034: checking command to parse $NM output" >&5
 
2042
echo "configure:2043: checking command to parse $NM output" >&5
2034
2043
if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2035
2044
  echo $ac_n "(cached) $ac_c" 1>&6
2036
2045
else
2110
2119
int main(){nm_test_var='a';nm_test_func();return(0);}
2111
2120
EOF
2112
2121
 
2113
 
  if { (eval echo configure:2114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2122
  if { (eval echo configure:2123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2114
2123
    # Now try to grab the symbols.
2115
2124
    nlist=conftest.nm
2116
 
    if { (eval echo configure:2117: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
 
2125
    if { (eval echo configure:2126: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2117
2126
      # Try sorting and uniquifying the output.
2118
2127
      if sort "$nlist" | uniq > "$nlist"T; then
2119
2128
        mv -f "$nlist"T "$nlist"
2164
2173
          save_CFLAGS="$CFLAGS"
2165
2174
          LIBS="conftstm.$ac_objext"
2166
2175
          CFLAGS="$CFLAGS$no_builtin_flag"
2167
 
          if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
2176
          if { (eval echo configure:2177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2168
2177
            pipe_works=yes
2169
2178
          fi
2170
2179
          LIBS="$save_LIBS"
2213
2222
do
2214
2223
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2215
2224
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2216
 
echo "configure:2217: checking for $ac_hdr" >&5
 
2225
echo "configure:2226: checking for $ac_hdr" >&5
2217
2226
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2218
2227
  echo $ac_n "(cached) $ac_c" 1>&6
2219
2228
else
2220
2229
  cat > conftest.$ac_ext <<EOF
2221
 
#line 2222 "configure"
 
2230
#line 2231 "configure"
2222
2231
#include "confdefs.h"
2223
2232
#include <$ac_hdr>
2224
2233
EOF
2225
2234
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2226
 
{ (eval echo configure:2227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2235
{ (eval echo configure:2236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2227
2236
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2228
2237
if test -z "$ac_err"; then
2229
2238
  rm -rf conftest*
2258
2267
file_magic*)
2259
2268
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2260
2269
    echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2261
 
echo "configure:2262: checking for ${ac_tool_prefix}file" >&5
 
2270
echo "configure:2271: checking for ${ac_tool_prefix}file" >&5
2262
2271
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2263
2272
  echo $ac_n "(cached) $ac_c" 1>&6
2264
2273
else
2320
2329
if test -z "$lt_cv_path_MAGIC_CMD"; then
2321
2330
  if test -n "$ac_tool_prefix"; then
2322
2331
    echo $ac_n "checking for file""... $ac_c" 1>&6
2323
 
echo "configure:2324: checking for file" >&5
 
2332
echo "configure:2333: checking for file" >&5
2324
2333
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2325
2334
  echo $ac_n "(cached) $ac_c" 1>&6
2326
2335
else
2391
2400
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2392
2401
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2393
2402
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2394
 
echo "configure:2395: checking for $ac_word" >&5
 
2403
echo "configure:2404: checking for $ac_word" >&5
2395
2404
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2396
2405
  echo $ac_n "(cached) $ac_c" 1>&6
2397
2406
else
2423
2432
  # Extract the first word of "ranlib", so it can be a program name with args.
2424
2433
set dummy ranlib; ac_word=$2
2425
2434
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2426
 
echo "configure:2427: checking for $ac_word" >&5
 
2435
echo "configure:2436: checking for $ac_word" >&5
2427
2436
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2428
2437
  echo $ac_n "(cached) $ac_c" 1>&6
2429
2438
else
2458
2467
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2459
2468
set dummy ${ac_tool_prefix}strip; ac_word=$2
2460
2469
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2461
 
echo "configure:2462: checking for $ac_word" >&5
 
2470
echo "configure:2471: checking for $ac_word" >&5
2462
2471
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2463
2472
  echo $ac_n "(cached) $ac_c" 1>&6
2464
2473
else
2490
2499
  # Extract the first word of "strip", so it can be a program name with args.
2491
2500
set dummy strip; ac_word=$2
2492
2501
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2493
 
echo "configure:2494: checking for $ac_word" >&5
 
2502
echo "configure:2503: checking for $ac_word" >&5
2494
2503
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2495
2504
  echo $ac_n "(cached) $ac_c" 1>&6
2496
2505
else
2539
2548
case $host in
2540
2549
*-*-irix6*)
2541
2550
  # Find out which ABI we are using.
2542
 
  echo '#line 2543 "configure"' > conftest.$ac_ext
2543
 
  if { (eval echo configure:2544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2551
  echo '#line 2552 "configure"' > conftest.$ac_ext
 
2552
  if { (eval echo configure:2553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2544
2553
    case `/usr/bin/file conftest.$ac_objext` in
2545
2554
    *32-bit*)
2546
2555
      LD="${LD-ld} -32"
2561
2570
  SAVE_CFLAGS="$CFLAGS"
2562
2571
  CFLAGS="$CFLAGS -belf"
2563
2572
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2564
 
echo "configure:2565: checking whether the C compiler needs -belf" >&5
 
2573
echo "configure:2574: checking whether the C compiler needs -belf" >&5
2565
2574
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2566
2575
  echo $ac_n "(cached) $ac_c" 1>&6
2567
2576
else
2574
2583
cross_compiling=$ac_cv_prog_cc_cross
2575
2584
 
2576
2585
     cat > conftest.$ac_ext <<EOF
2577
 
#line 2578 "configure"
 
2586
#line 2587 "configure"
2578
2587
#include "confdefs.h"
2579
2588
 
2580
2589
int main() {
2581
2590
 
2582
2591
; return 0; }
2583
2592
EOF
2584
 
if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2593
if { (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2585
2594
  rm -rf conftest*
2586
2595
  lt_cv_cc_needs_belf=yes
2587
2596
else
2703
2712
## FIXME: this should be a separate macro
2704
2713
##
2705
2714
echo $ac_n "checking for objdir""... $ac_c" 1>&6
2706
 
echo "configure:2707: checking for objdir" >&5
 
2715
echo "configure:2716: checking for objdir" >&5
2707
2716
rm -f .libs 2>/dev/null
2708
2717
mkdir .libs 2>/dev/null
2709
2718
if test -d .libs; then
2734
2743
# in isolation, and that seeing it set (from the cache) indicates that
2735
2744
# the associated values are set (in the cache) correctly too.
2736
2745
echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2737
 
echo "configure:2738: checking for $compiler option to produce PIC" >&5
 
2746
echo "configure:2747: checking for $compiler option to produce PIC" >&5
2738
2747
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2739
2748
  echo $ac_n "(cached) $ac_c" 1>&6
2740
2749
else
2886
2895
 
2887
2896
  # Check to make sure the pic_flag actually works.
2888
2897
  echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2889
 
echo "configure:2890: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
 
2898
echo "configure:2899: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2890
2899
  if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2891
2900
  echo $ac_n "(cached) $ac_c" 1>&6
2892
2901
else
2893
2902
      save_CFLAGS="$CFLAGS"
2894
2903
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2895
2904
    cat > conftest.$ac_ext <<EOF
2896
 
#line 2897 "configure"
 
2905
#line 2906 "configure"
2897
2906
#include "confdefs.h"
2898
2907
 
2899
2908
int main() {
2900
2909
 
2901
2910
; return 0; }
2902
2911
EOF
2903
 
if { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2912
if { (eval echo configure:2913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2904
2913
  rm -rf conftest*
2905
2914
        case $host_os in
2906
2915
      hpux9* | hpux10* | hpux11*)
2956
2965
## FIXME: this should be a separate macro
2957
2966
##
2958
2967
echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2959
 
echo "configure:2960: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
 
2968
echo "configure:2969: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2960
2969
if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2961
2970
  echo $ac_n "(cached) $ac_c" 1>&6
2962
2971
else
2964
2973
  save_LDFLAGS="$LDFLAGS"
2965
2974
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2966
2975
  cat > conftest.$ac_ext <<EOF
2967
 
#line 2968 "configure"
 
2976
#line 2977 "configure"
2968
2977
#include "confdefs.h"
2969
2978
 
2970
2979
int main() {
2971
2980
 
2972
2981
; return 0; }
2973
2982
EOF
2974
 
if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2983
if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2975
2984
  rm -rf conftest*
2976
2985
  lt_cv_prog_cc_static_works=yes
2977
2986
else
3002
3011
##
3003
3012
# Check to see if options -o and -c are simultaneously supported by compiler
3004
3013
echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
3005
 
echo "configure:3006: checking if $compiler supports -c -o file.$ac_objext" >&5
 
3014
echo "configure:3015: checking if $compiler supports -c -o file.$ac_objext" >&5
3006
3015
if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
3007
3016
  echo $ac_n "(cached) $ac_c" 1>&6
3008
3017
else
3021
3030
save_CFLAGS="$CFLAGS"
3022
3031
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3023
3032
compiler_c_o=no
3024
 
if { (eval echo configure:3025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
 
3033
if { (eval echo configure:3034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3025
3034
  # The compiler can only warn and ignore the option if not recognized
3026
3035
  # So say no if there are warnings
3027
3036
  if test -s out/conftest.err; then
3050
3059
if test x"$compiler_c_o" = x"yes"; then
3051
3060
  # Check to see if we can write to a .lo
3052
3061
  echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
3053
 
echo "configure:3054: checking if $compiler supports -c -o file.lo" >&5
 
3062
echo "configure:3063: checking if $compiler supports -c -o file.lo" >&5
3054
3063
  if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
3055
3064
  echo $ac_n "(cached) $ac_c" 1>&6
3056
3065
else
3061
3070
  save_objext="$ac_objext"
3062
3071
  ac_objext=lo
3063
3072
  cat > conftest.$ac_ext <<EOF
3064
 
#line 3065 "configure"
 
3073
#line 3074 "configure"
3065
3074
#include "confdefs.h"
3066
3075
 
3067
3076
int main() {
3068
3077
int some_variable = 0;
3069
3078
; return 0; }
3070
3079
EOF
3071
 
if { (eval echo configure:3072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3080
if { (eval echo configure:3081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3072
3081
  rm -rf conftest*
3073
3082
      # The compiler can only warn and ignore the option if not recognized
3074
3083
    # So say no if there are warnings
3103
3112
if test "$compiler_c_o" = no && test "$need_locks" != no; then
3104
3113
  # do not overwrite the value of need_locks provided by the user
3105
3114
  echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3106
 
echo "configure:3107: checking if we can lock with hard links" >&5
 
3115
echo "configure:3116: checking if we can lock with hard links" >&5
3107
3116
  hard_links=yes
3108
3117
  $rm conftest*
3109
3118
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
3126
3135
if test "$GCC" = yes; then
3127
3136
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3128
3137
  echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3129
 
echo "configure:3130: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
3138
echo "configure:3139: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3130
3139
  echo "int some_variable = 0;" > conftest.$ac_ext
3131
3140
  save_CFLAGS="$CFLAGS"
3132
3141
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3133
3142
  compiler_rtti_exceptions=no
3134
3143
  cat > conftest.$ac_ext <<EOF
3135
 
#line 3136 "configure"
 
3144
#line 3145 "configure"
3136
3145
#include "confdefs.h"
3137
3146
 
3138
3147
int main() {
3139
3148
int some_variable = 0;
3140
3149
; return 0; }
3141
3150
EOF
3142
 
if { (eval echo configure:3143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3151
if { (eval echo configure:3152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3143
3152
  rm -rf conftest*
3144
3153
      # The compiler can only warn and ignore the option if not recognized
3145
3154
    # So say no if there are warnings
3170
3179
##
3171
3180
# See if the linker supports building shared libraries.
3172
3181
echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3173
 
echo "configure:3174: checking whether the linker ($LD) supports shared libraries" >&5
 
3182
echo "configure:3183: checking whether the linker ($LD) supports shared libraries" >&5
3174
3183
 
3175
3184
allow_undefined_flag=
3176
3185
no_undefined_flag=
3858
3867
##
3859
3868
# Check hardcoding attributes.
3860
3869
echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3861
 
echo "configure:3862: checking how to hardcode library paths into programs" >&5
 
3870
echo "configure:3871: checking how to hardcode library paths into programs" >&5
3862
3871
hardcode_action=
3863
3872
if test -n "$hardcode_libdir_flag_spec" || \
3864
3873
   test -n "$runpath_var"; then
3890
3899
striplib=
3891
3900
old_striplib=
3892
3901
echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3893
 
echo "configure:3894: checking whether stripping libraries is possible" >&5
 
3902
echo "configure:3903: checking whether stripping libraries is possible" >&5
3894
3903
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3895
3904
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3896
3905
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3908
3917
##
3909
3918
# PORTME Fill in your ld.so characteristics
3910
3919
echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3911
 
echo "configure:3912: checking dynamic linker characteristics" >&5
 
3920
echo "configure:3921: checking dynamic linker characteristics" >&5
3912
3921
library_names_spec=
3913
3922
libname_spec='lib$name'
3914
3923
soname_spec=
4309
4318
##
4310
4319
# Report the final consequences.
4311
4320
echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4312
 
echo "configure:4313: checking if libtool supports shared libraries" >&5
 
4321
echo "configure:4322: checking if libtool supports shared libraries" >&5
4313
4322
echo "$ac_t""$can_build_shared" 1>&6
4314
4323
##
4315
4324
## END FIXME
4317
4326
## FIXME: this should be a separate macro
4318
4327
##
4319
4328
echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
4320
 
echo "configure:4321: checking whether to build shared libraries" >&5
 
4329
echo "configure:4330: checking whether to build shared libraries" >&5
4321
4330
test "$can_build_shared" = "no" && enable_shared=no
4322
4331
 
4323
4332
# On AIX, shared libraries and static libraries use the same namespace, and
4344
4353
## FIXME: this should be a separate macro
4345
4354
##
4346
4355
echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
4347
 
echo "configure:4348: checking whether to build static libraries" >&5
 
4356
echo "configure:4357: checking whether to build static libraries" >&5
4348
4357
# Make sure either enable_shared or enable_static is yes.
4349
4358
test "$enable_shared" = yes || enable_static=yes
4350
4359
echo "$ac_t""$enable_static" 1>&6
4387
4396
 
4388
4397
  *)
4389
4398
    echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4390
 
echo "configure:4391: checking for shl_load" >&5
 
4399
echo "configure:4400: checking for shl_load" >&5
4391
4400
if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4392
4401
  echo $ac_n "(cached) $ac_c" 1>&6
4393
4402
else
4394
4403
  cat > conftest.$ac_ext <<EOF
4395
 
#line 4396 "configure"
 
4404
#line 4405 "configure"
4396
4405
#include "confdefs.h"
4397
4406
/* System header to define __stub macros and hopefully few prototypes,
4398
4407
    which can conflict with char shl_load(); below.  */
4415
4424
 
4416
4425
; return 0; }
4417
4426
EOF
4418
 
if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4427
if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4419
4428
  rm -rf conftest*
4420
4429
  eval "ac_cv_func_shl_load=yes"
4421
4430
else
4433
4442
else
4434
4443
  echo "$ac_t""no" 1>&6
4435
4444
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4436
 
echo "configure:4437: checking for shl_load in -ldld" >&5
 
4445
echo "configure:4446: checking for shl_load in -ldld" >&5
4437
4446
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4438
4447
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4439
4448
  echo $ac_n "(cached) $ac_c" 1>&6
4441
4450
  ac_save_LIBS="$LIBS"
4442
4451
LIBS="-ldld  $LIBS"
4443
4452
cat > conftest.$ac_ext <<EOF
4444
 
#line 4445 "configure"
 
4453
#line 4454 "configure"
4445
4454
#include "confdefs.h"
4446
4455
/* Override any gcc2 internal prototype to avoid an error.  */
4447
4456
/* We use char because int might match the return type of a gcc2
4452
4461
shl_load()
4453
4462
; return 0; }
4454
4463
EOF
4455
 
if { (eval echo configure:4456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4464
if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4456
4465
  rm -rf conftest*
4457
4466
  eval "ac_cv_lib_$ac_lib_var=yes"
4458
4467
else
4471
4480
else
4472
4481
  echo "$ac_t""no" 1>&6
4473
4482
echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4474
 
echo "configure:4475: checking for dlopen" >&5
 
4483
echo "configure:4484: checking for dlopen" >&5
4475
4484
if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4476
4485
  echo $ac_n "(cached) $ac_c" 1>&6
4477
4486
else
4478
4487
  cat > conftest.$ac_ext <<EOF
4479
 
#line 4480 "configure"
 
4488
#line 4489 "configure"
4480
4489
#include "confdefs.h"
4481
4490
/* System header to define __stub macros and hopefully few prototypes,
4482
4491
    which can conflict with char dlopen(); below.  */
4499
4508
 
4500
4509
; return 0; }
4501
4510
EOF
4502
 
if { (eval echo configure:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4511
if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4503
4512
  rm -rf conftest*
4504
4513
  eval "ac_cv_func_dlopen=yes"
4505
4514
else
4517
4526
else
4518
4527
  echo "$ac_t""no" 1>&6
4519
4528
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4520
 
echo "configure:4521: checking for dlopen in -ldl" >&5
 
4529
echo "configure:4530: checking for dlopen in -ldl" >&5
4521
4530
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4522
4531
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4523
4532
  echo $ac_n "(cached) $ac_c" 1>&6
4525
4534
  ac_save_LIBS="$LIBS"
4526
4535
LIBS="-ldl  $LIBS"
4527
4536
cat > conftest.$ac_ext <<EOF
4528
 
#line 4529 "configure"
 
4537
#line 4538 "configure"
4529
4538
#include "confdefs.h"
4530
4539
/* Override any gcc2 internal prototype to avoid an error.  */
4531
4540
/* We use char because int might match the return type of a gcc2
4536
4545
dlopen()
4537
4546
; return 0; }
4538
4547
EOF
4539
 
if { (eval echo configure:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4548
if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4540
4549
  rm -rf conftest*
4541
4550
  eval "ac_cv_lib_$ac_lib_var=yes"
4542
4551
else
4555
4564
else
4556
4565
  echo "$ac_t""no" 1>&6
4557
4566
echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4558
 
echo "configure:4559: checking for dlopen in -lsvld" >&5
 
4567
echo "configure:4568: checking for dlopen in -lsvld" >&5
4559
4568
ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4560
4569
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4561
4570
  echo $ac_n "(cached) $ac_c" 1>&6
4563
4572
  ac_save_LIBS="$LIBS"
4564
4573
LIBS="-lsvld  $LIBS"
4565
4574
cat > conftest.$ac_ext <<EOF
4566
 
#line 4567 "configure"
 
4575
#line 4576 "configure"
4567
4576
#include "confdefs.h"
4568
4577
/* Override any gcc2 internal prototype to avoid an error.  */
4569
4578
/* We use char because int might match the return type of a gcc2
4574
4583
dlopen()
4575
4584
; return 0; }
4576
4585
EOF
4577
 
if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4586
if { (eval echo configure:4587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4578
4587
  rm -rf conftest*
4579
4588
  eval "ac_cv_lib_$ac_lib_var=yes"
4580
4589
else
4593
4602
else
4594
4603
  echo "$ac_t""no" 1>&6
4595
4604
echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4596
 
echo "configure:4597: checking for dld_link in -ldld" >&5
 
4605
echo "configure:4606: checking for dld_link in -ldld" >&5
4597
4606
ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4598
4607
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4599
4608
  echo $ac_n "(cached) $ac_c" 1>&6
4601
4610
  ac_save_LIBS="$LIBS"
4602
4611
LIBS="-ldld  $LIBS"
4603
4612
cat > conftest.$ac_ext <<EOF
4604
 
#line 4605 "configure"
 
4613
#line 4614 "configure"
4605
4614
#include "confdefs.h"
4606
4615
/* Override any gcc2 internal prototype to avoid an error.  */
4607
4616
/* We use char because int might match the return type of a gcc2
4612
4621
dld_link()
4613
4622
; return 0; }
4614
4623
EOF
4615
 
if { (eval echo configure:4616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4624
if { (eval echo configure:4625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4616
4625
  rm -rf conftest*
4617
4626
  eval "ac_cv_lib_$ac_lib_var=yes"
4618
4627
else
4668
4677
    LIBS="$lt_cv_dlopen_libs $LIBS"
4669
4678
 
4670
4679
    echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4671
 
echo "configure:4672: checking whether a program can dlopen itself" >&5
 
4680
echo "configure:4681: checking whether a program can dlopen itself" >&5
4672
4681
if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4673
4682
  echo $ac_n "(cached) $ac_c" 1>&6
4674
4683
else
4678
4687
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4679
4688
  lt_status=$lt_dlunknown
4680
4689
  cat > conftest.$ac_ext <<EOF
4681
 
#line 4682 "configure"
 
4690
#line 4691 "configure"
4682
4691
#include "confdefs.h"
4683
4692
 
4684
4693
#if HAVE_DLFCN_H
4739
4748
    exit (status);
4740
4749
}
4741
4750
EOF
4742
 
  if { (eval echo configure:4743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
4751
  if { (eval echo configure:4752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4743
4752
    (./conftest; exit; ) 2>/dev/null
4744
4753
    lt_status=$?
4745
4754
    case x$lt_status in
4762
4771
    if test "x$lt_cv_dlopen_self" = xyes; then
4763
4772
      LDFLAGS="$LDFLAGS $link_static_flag"
4764
4773
      echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4765
 
echo "configure:4766: checking whether a statically linked program can dlopen itself" >&5
 
4774
echo "configure:4775: checking whether a statically linked program can dlopen itself" >&5
4766
4775
if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4767
4776
  echo $ac_n "(cached) $ac_c" 1>&6
4768
4777
else
4772
4781
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4773
4782
  lt_status=$lt_dlunknown
4774
4783
  cat > conftest.$ac_ext <<EOF
4775
 
#line 4776 "configure"
 
4784
#line 4785 "configure"
4776
4785
#include "confdefs.h"
4777
4786
 
4778
4787
#if HAVE_DLFCN_H
4833
4842
    exit (status);
4834
4843
}
4835
4844
EOF
4836
 
  if { (eval echo configure:4837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
4845
  if { (eval echo configure:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4837
4846
    (./conftest; exit; ) 2>/dev/null
4838
4847
    lt_status=$?
4839
4848
    case x$lt_status in
4884
4893
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
4885
4894
    # to ld, don't add -lc before -lgcc.
4886
4895
    echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4887
 
echo "configure:4888: checking whether -lc should be explicitly linked in" >&5
 
4896
echo "configure:4897: checking whether -lc should be explicitly linked in" >&5
4888
4897
    if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4889
4898
  echo $ac_n "(cached) $ac_c" 1>&6
4890
4899
else
4891
4900
  $rm conftest*
4892
4901
    echo 'static int dummy;' > conftest.$ac_ext
4893
4902
 
4894
 
    if { (eval echo configure:4895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
4903
    if { (eval echo configure:4904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4895
4904
      soname=conftest
4896
4905
      lib=conftest
4897
4906
      libobjs=conftest.$ac_objext
4904
4913
      libname=conftest
4905
4914
      save_allow_undefined_flag=$allow_undefined_flag
4906
4915
      allow_undefined_flag=
4907
 
      if { (eval echo configure:4908: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
 
4916
      if { (eval echo configure:4917: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
4908
4917
      then
4909
4918
        lt_cv_archive_cmds_need_lc=no
4910
4919
      else
5487
5496
   # Extract the first word of "libtool", so it can be a program name with args.
5488
5497
set dummy libtool; ac_word=$2
5489
5498
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5490
 
echo "configure:5491: checking for $ac_word" >&5
 
5499
echo "configure:5500: checking for $ac_word" >&5
5491
5500
if eval "test \"`echo '$''{'ac_cv_path_LIBTOOL'+set}'`\" = set"; then
5492
5501
  echo $ac_n "(cached) $ac_c" 1>&6
5493
5502
else
5547
5556
 
5548
5557
logdir='${localstatedir}/log/radius'
5549
5558
echo $ac_n "checking logdir""... $ac_c" 1>&6
5550
 
echo "configure:5551: checking logdir" >&5
 
5559
echo "configure:5560: checking logdir" >&5
5551
5560
# Check whether --with-logdir or --without-logdir was given.
5552
5561
if test "${with_logdir+set}" = set; then
5553
5562
  withval="$with_logdir"
5569
5578
 
5570
5579
radacctdir='${logdir}/radacct'
5571
5580
echo $ac_n "checking radacctdir""... $ac_c" 1>&6
5572
 
echo "configure:5573: checking radacctdir" >&5
 
5581
echo "configure:5582: checking radacctdir" >&5
5573
5582
# Check whether --with-radacctdir or --without-radacctdir was given.
5574
5583
if test "${with_radacctdir+set}" = set; then
5575
5584
  withval="$with_radacctdir"
5591
5600
 
5592
5601
raddbdir='${sysconfdir}/raddb'
5593
5602
echo $ac_n "checking raddbdir""... $ac_c" 1>&6
5594
 
echo "configure:5595: checking raddbdir" >&5
 
5603
echo "configure:5604: checking raddbdir" >&5
5595
5604
# Check whether --with-raddbdir or --without-raddbdir was given.
5596
5605
if test "${with_raddbdir+set}" = set; then
5597
5606
  withval="$with_raddbdir"
5720
5729
fi
5721
5730
 
5722
5731
 
 
5732
# Check whether --with-openssl-includes or --without-openssl-includes was given.
 
5733
if test "${with_openssl_includes+set}" = set; then
 
5734
  withval="$with_openssl_includes"
 
5735
   case "$withval" in
 
5736
    *) OPENSSL_INCLUDE="$withval"
 
5737
        ;;
 
5738
  esac 
 
5739
 
 
5740
fi
 
5741
 
 
5742
 
 
5743
 
 
5744
# Check whether --with-openssl-libraries or --without-openssl-libraries was given.
 
5745
if test "${with_openssl_libraries+set}" = set; then
 
5746
  withval="$with_openssl_libraries"
 
5747
   case "$withval" in
 
5748
    *) OPENSSL_LIBS="$withval"
 
5749
        ;;
 
5750
  esac 
 
5751
 
 
5752
fi
 
5753
 
 
5754
 
 
5755
 
 
5756
 
5723
5757
 
5724
5758
# Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
5725
5759
if test "${with_rlm_FOO_lib_dir+set}" = set; then
5744
5778
 
5745
5779
 
5746
5780
 
 
5781
WITH_UDPFROMTO=no
 
5782
# Check whether --with-udpfromto or --without-udpfromto was given.
 
5783
if test "${with_udpfromto+set}" = set; then
 
5784
  withval="$with_udpfromto"
 
5785
   case "$withval" in
 
5786
    yes)
 
5787
        WITH_UDPFROMTO=yes
 
5788
        ;;
 
5789
    *)
 
5790
        WITH_UDPFROMTO=no
 
5791
  esac 
 
5792
 
 
5793
fi
 
5794
 
 
5795
 
 
5796
if test "x$WITH_UDPFROMTO" = "xyes"; then
 
5797
        cat >> confdefs.h <<\EOF
 
5798
#define WITH_UDPFROMTO 1
 
5799
EOF
 
5800
 
 
5801
fi
 
5802
 
5747
5803
 
5748
5804
CHECKRAD=checkrad.pl
5749
5805
# Extract the first word of "perl", so it can be a program name with args.
5750
5806
set dummy perl; ac_word=$2
5751
5807
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5752
 
echo "configure:5753: checking for $ac_word" >&5
 
5808
echo "configure:5809: checking for $ac_word" >&5
5753
5809
if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
5754
5810
  echo $ac_n "(cached) $ac_c" 1>&6
5755
5811
else
5788
5844
# Extract the first word of "snmpget", so it can be a program name with args.
5789
5845
set dummy snmpget; ac_word=$2
5790
5846
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5791
 
echo "configure:5792: checking for $ac_word" >&5
 
5847
echo "configure:5848: checking for $ac_word" >&5
5792
5848
if eval "test \"`echo '$''{'ac_cv_path_SNMPGET'+set}'`\" = set"; then
5793
5849
  echo $ac_n "(cached) $ac_c" 1>&6
5794
5850
else
5827
5883
# Extract the first word of "snmpwalk", so it can be a program name with args.
5828
5884
set dummy snmpwalk; ac_word=$2
5829
5885
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5830
 
echo "configure:5831: checking for $ac_word" >&5
 
5886
echo "configure:5887: checking for $ac_word" >&5
5831
5887
if eval "test \"`echo '$''{'ac_cv_path_SNMPWALK'+set}'`\" = set"; then
5832
5888
  echo $ac_n "(cached) $ac_c" 1>&6
5833
5889
else
5866
5922
# Extract the first word of "rusers", so it can be a program name with args.
5867
5923
set dummy rusers; ac_word=$2
5868
5924
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5869
 
echo "configure:5870: checking for $ac_word" >&5
 
5925
echo "configure:5926: checking for $ac_word" >&5
5870
5926
if eval "test \"`echo '$''{'ac_cv_path_RUSERS'+set}'`\" = set"; then
5871
5927
  echo $ac_n "(cached) $ac_c" 1>&6
5872
5928
else
5902
5958
 
5903
5959
missing_dir=`cd $ac_aux_dir && pwd`
5904
5960
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
5905
 
echo "configure:5906: checking for working aclocal" >&5
 
5961
echo "configure:5962: checking for working aclocal" >&5
5906
5962
# Run test in a subshell; some versions of sh will print an error if
5907
5963
# an executable is not found, even if stderr is redirected.
5908
5964
# Redirect stdin to placate older versions of autoconf.  Sigh.
5915
5971
fi
5916
5972
 
5917
5973
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
5918
 
echo "configure:5919: checking for working autoconf" >&5
 
5974
echo "configure:5975: checking for working autoconf" >&5
5919
5975
# Run test in a subshell; some versions of sh will print an error if
5920
5976
# an executable is not found, even if stderr is redirected.
5921
5977
# Redirect stdin to placate older versions of autoconf.  Sigh.
5928
5984
fi
5929
5985
 
5930
5986
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
5931
 
echo "configure:5932: checking for working autoheader" >&5
 
5987
echo "configure:5988: checking for working autoheader" >&5
5932
5988
# Run test in a subshell; some versions of sh will print an error if
5933
5989
# an executable is not found, even if stderr is redirected.
5934
5990
# Redirect stdin to placate older versions of autoconf.  Sigh.
5944
6000
# Extract the first word of "locate", so it can be a program name with args.
5945
6001
set dummy locate; ac_word=$2
5946
6002
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5947
 
echo "configure:5948: checking for $ac_word" >&5
 
6003
echo "configure:6004: checking for $ac_word" >&5
5948
6004
if eval "test \"`echo '$''{'ac_cv_path_LOCATE'+set}'`\" = set"; then
5949
6005
  echo $ac_n "(cached) $ac_c" 1>&6
5950
6006
else
5979
6035
# Extract the first word of "dirname", so it can be a program name with args.
5980
6036
set dummy dirname; ac_word=$2
5981
6037
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5982
 
echo "configure:5983: checking for $ac_word" >&5
 
6038
echo "configure:6039: checking for $ac_word" >&5
5983
6039
if eval "test \"`echo '$''{'ac_cv_path_DIRNAME'+set}'`\" = set"; then
5984
6040
  echo $ac_n "(cached) $ac_c" 1>&6
5985
6041
else
6014
6070
# Extract the first word of "grep", so it can be a program name with args.
6015
6071
set dummy grep; ac_word=$2
6016
6072
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6017
 
echo "configure:6018: checking for $ac_word" >&5
 
6073
echo "configure:6074: checking for $ac_word" >&5
6018
6074
if eval "test \"`echo '$''{'ac_cv_path_GREP'+set}'`\" = set"; then
6019
6075
  echo $ac_n "(cached) $ac_c" 1>&6
6020
6076
else
6058
6114
do
6059
6115
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6060
6116
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6061
 
echo "configure:6062: checking for $ac_hdr" >&5
 
6117
echo "configure:6118: checking for $ac_hdr" >&5
6062
6118
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6063
6119
  echo $ac_n "(cached) $ac_c" 1>&6
6064
6120
else
6065
6121
  cat > conftest.$ac_ext <<EOF
6066
 
#line 6067 "configure"
 
6122
#line 6123 "configure"
6067
6123
#include "confdefs.h"
6068
6124
#include <$ac_hdr>
6069
6125
EOF
6070
6126
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6071
 
{ (eval echo configure:6072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
6127
{ (eval echo configure:6128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6072
6128
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6073
6129
if test -z "$ac_err"; then
6074
6130
  rm -rf conftest*
6097
6153
 
6098
6154
 
6099
6155
  echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
6100
 
echo "configure:6101: checking for pthread_create in -lpthread" >&5
 
6156
echo "configure:6157: checking for pthread_create in -lpthread" >&5
6101
6157
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
6102
6158
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6103
6159
  echo $ac_n "(cached) $ac_c" 1>&6
6105
6161
  ac_save_LIBS="$LIBS"
6106
6162
LIBS="-lpthread  $LIBS"
6107
6163
cat > conftest.$ac_ext <<EOF
6108
 
#line 6109 "configure"
 
6164
#line 6165 "configure"
6109
6165
#include "confdefs.h"
6110
6166
/* Override any gcc2 internal prototype to avoid an error.  */
6111
6167
/* We use char because int might match the return type of a gcc2
6116
6172
pthread_create()
6117
6173
; return 0; }
6118
6174
EOF
6119
 
if { (eval echo configure:6120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6175
if { (eval echo configure:6176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6120
6176
  rm -rf conftest*
6121
6177
  eval "ac_cv_lib_$ac_lib_var=yes"
6122
6178
else
6136
6192
else
6137
6193
  echo "$ac_t""no" 1>&6
6138
6194
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
6139
 
echo "configure:6140: checking for pthread_create in -lc_r" >&5
 
6195
echo "configure:6196: checking for pthread_create in -lc_r" >&5
6140
6196
ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
6141
6197
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6142
6198
  echo $ac_n "(cached) $ac_c" 1>&6
6144
6200
  ac_save_LIBS="$LIBS"
6145
6201
LIBS="-lc_r  $LIBS"
6146
6202
cat > conftest.$ac_ext <<EOF
6147
 
#line 6148 "configure"
 
6203
#line 6204 "configure"
6148
6204
#include "confdefs.h"
6149
6205
/* Override any gcc2 internal prototype to avoid an error.  */
6150
6206
/* We use char because int might match the return type of a gcc2
6155
6211
pthread_create()
6156
6212
; return 0; }
6157
6213
EOF
6158
 
if { (eval echo configure:6159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6214
if { (eval echo configure:6215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6159
6215
  rm -rf conftest*
6160
6216
  eval "ac_cv_lib_$ac_lib_var=yes"
6161
6217
else
6190
6246
              
6191
6247
  
6192
6248
echo $ac_n "checking for library containing sem_init""... $ac_c" 1>&6
6193
 
echo "configure:6194: checking for library containing sem_init" >&5
 
6249
echo "configure:6250: checking for library containing sem_init" >&5
6194
6250
if eval "test \"`echo '$''{'ac_cv_search_sem_init'+set}'`\" = set"; then
6195
6251
  echo $ac_n "(cached) $ac_c" 1>&6
6196
6252
else
6197
6253
  ac_func_search_save_LIBS="$LIBS"
6198
6254
ac_cv_search_sem_init="no"
6199
6255
cat > conftest.$ac_ext <<EOF
6200
 
#line 6201 "configure"
 
6256
#line 6257 "configure"
6201
6257
#include "confdefs.h"
6202
6258
/* Override any gcc2 internal prototype to avoid an error.  */
6203
6259
/* We use char because int might match the return type of a gcc2
6208
6264
sem_init()
6209
6265
; return 0; }
6210
6266
EOF
6211
 
if { (eval echo configure:6212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6267
if { (eval echo configure:6268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6212
6268
  rm -rf conftest*
6213
6269
  ac_cv_search_sem_init="none required"
6214
6270
else
6219
6275
test "$ac_cv_search_sem_init" = "no" && for i in pthread sem posix4 rt; do
6220
6276
LIBS="-l$i  $ac_func_search_save_LIBS"
6221
6277
cat > conftest.$ac_ext <<EOF
6222
 
#line 6223 "configure"
 
6278
#line 6279 "configure"
6223
6279
#include "confdefs.h"
6224
6280
/* Override any gcc2 internal prototype to avoid an error.  */
6225
6281
/* We use char because int might match the return type of a gcc2
6230
6286
sem_init()
6231
6287
; return 0; }
6232
6288
EOF
6233
 
if { (eval echo configure:6234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6289
if { (eval echo configure:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6234
6290
  rm -rf conftest*
6235
6291
  ac_cv_search_sem_init="-l$i"
6236
6292
break
6254
6310
fi
6255
6311
 
6256
6312
echo $ac_n "checking for getsockname in -lsocket""... $ac_c" 1>&6
6257
 
echo "configure:6258: checking for getsockname in -lsocket" >&5
 
6313
echo "configure:6314: checking for getsockname in -lsocket" >&5
6258
6314
ac_lib_var=`echo socket'_'getsockname | sed 'y%./+-%__p_%'`
6259
6315
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6260
6316
  echo $ac_n "(cached) $ac_c" 1>&6
6262
6318
  ac_save_LIBS="$LIBS"
6263
6319
LIBS="-lsocket  $LIBS"
6264
6320
cat > conftest.$ac_ext <<EOF
6265
 
#line 6266 "configure"
 
6321
#line 6322 "configure"
6266
6322
#include "confdefs.h"
6267
6323
/* Override any gcc2 internal prototype to avoid an error.  */
6268
6324
/* We use char because int might match the return type of a gcc2
6273
6329
getsockname()
6274
6330
; return 0; }
6275
6331
EOF
6276
 
if { (eval echo configure:6277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6332
if { (eval echo configure:6333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6277
6333
  rm -rf conftest*
6278
6334
  eval "ac_cv_lib_$ac_lib_var=yes"
6279
6335
else
6302
6358
 
6303
6359
 
6304
6360
echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
6305
 
echo "configure:6306: checking for inet_aton in -lresolv" >&5
 
6361
echo "configure:6362: checking for inet_aton in -lresolv" >&5
6306
6362
ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
6307
6363
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6308
6364
  echo $ac_n "(cached) $ac_c" 1>&6
6310
6366
  ac_save_LIBS="$LIBS"
6311
6367
LIBS="-lresolv  $LIBS"
6312
6368
cat > conftest.$ac_ext <<EOF
6313
 
#line 6314 "configure"
 
6369
#line 6370 "configure"
6314
6370
#include "confdefs.h"
6315
6371
/* Override any gcc2 internal prototype to avoid an error.  */
6316
6372
/* We use char because int might match the return type of a gcc2
6321
6377
inet_aton()
6322
6378
; return 0; }
6323
6379
EOF
6324
 
if { (eval echo configure:6325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6380
if { (eval echo configure:6381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6325
6381
  rm -rf conftest*
6326
6382
  eval "ac_cv_lib_$ac_lib_var=yes"
6327
6383
else
6350
6406
 
6351
6407
 
6352
6408
echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
6353
 
echo "configure:6354: checking for inet_ntoa in -lnsl" >&5
 
6409
echo "configure:6410: checking for inet_ntoa in -lnsl" >&5
6354
6410
ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
6355
6411
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6356
6412
  echo $ac_n "(cached) $ac_c" 1>&6
6358
6414
  ac_save_LIBS="$LIBS"
6359
6415
LIBS="-lnsl  $LIBS"
6360
6416
cat > conftest.$ac_ext <<EOF
6361
 
#line 6362 "configure"
 
6417
#line 6418 "configure"
6362
6418
#include "confdefs.h"
6363
6419
/* Override any gcc2 internal prototype to avoid an error.  */
6364
6420
/* We use char because int might match the return type of a gcc2
6369
6425
inet_ntoa()
6370
6426
; return 0; }
6371
6427
EOF
6372
 
if { (eval echo configure:6373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6428
if { (eval echo configure:6429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6373
6429
  rm -rf conftest*
6374
6430
  eval "ac_cv_lib_$ac_lib_var=yes"
6375
6431
else
6398
6454
 
6399
6455
 
6400
6456
 
 
6457
case "$host" in
 
6458
*-interix*)
 
6459
        CFLAGS="$CFLAGS -D_ALL_SOURCE"
 
6460
        ;;
 
6461
esac
 
6462
 
6401
6463
ac_header_dirent=no
6402
6464
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
6403
6465
do
6404
6466
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6405
6467
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
6406
 
echo "configure:6407: checking for $ac_hdr that defines DIR" >&5
 
6468
echo "configure:6469: checking for $ac_hdr that defines DIR" >&5
6407
6469
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
6408
6470
  echo $ac_n "(cached) $ac_c" 1>&6
6409
6471
else
6410
6472
  cat > conftest.$ac_ext <<EOF
6411
 
#line 6412 "configure"
 
6473
#line 6474 "configure"
6412
6474
#include "confdefs.h"
6413
6475
#include <sys/types.h>
6414
6476
#include <$ac_hdr>
6416
6478
DIR *dirp = 0;
6417
6479
; return 0; }
6418
6480
EOF
6419
 
if { (eval echo configure:6420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
6481
if { (eval echo configure:6482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6420
6482
  rm -rf conftest*
6421
6483
  eval "ac_cv_header_dirent_$ac_safe=yes"
6422
6484
else
6441
6503
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6442
6504
if test $ac_header_dirent = dirent.h; then
6443
6505
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
6444
 
echo "configure:6445: checking for opendir in -ldir" >&5
 
6506
echo "configure:6507: checking for opendir in -ldir" >&5
6445
6507
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
6446
6508
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6447
6509
  echo $ac_n "(cached) $ac_c" 1>&6
6449
6511
  ac_save_LIBS="$LIBS"
6450
6512
LIBS="-ldir  $LIBS"
6451
6513
cat > conftest.$ac_ext <<EOF
6452
 
#line 6453 "configure"
 
6514
#line 6515 "configure"
6453
6515
#include "confdefs.h"
6454
6516
/* Override any gcc2 internal prototype to avoid an error.  */
6455
6517
/* We use char because int might match the return type of a gcc2
6460
6522
opendir()
6461
6523
; return 0; }
6462
6524
EOF
6463
 
if { (eval echo configure:6464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6525
if { (eval echo configure:6526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6464
6526
  rm -rf conftest*
6465
6527
  eval "ac_cv_lib_$ac_lib_var=yes"
6466
6528
else
6482
6544
 
6483
6545
else
6484
6546
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
6485
 
echo "configure:6486: checking for opendir in -lx" >&5
 
6547
echo "configure:6548: checking for opendir in -lx" >&5
6486
6548
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
6487
6549
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6488
6550
  echo $ac_n "(cached) $ac_c" 1>&6
6490
6552
  ac_save_LIBS="$LIBS"
6491
6553
LIBS="-lx  $LIBS"
6492
6554
cat > conftest.$ac_ext <<EOF
6493
 
#line 6494 "configure"
 
6555
#line 6556 "configure"
6494
6556
#include "confdefs.h"
6495
6557
/* Override any gcc2 internal prototype to avoid an error.  */
6496
6558
/* We use char because int might match the return type of a gcc2
6501
6563
opendir()
6502
6564
; return 0; }
6503
6565
EOF
6504
 
if { (eval echo configure:6505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6566
if { (eval echo configure:6567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6505
6567
  rm -rf conftest*
6506
6568
  eval "ac_cv_lib_$ac_lib_var=yes"
6507
6569
else
6524
6586
fi
6525
6587
 
6526
6588
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
6527
 
echo "configure:6528: checking for ANSI C header files" >&5
 
6589
echo "configure:6590: checking for ANSI C header files" >&5
6528
6590
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
6529
6591
  echo $ac_n "(cached) $ac_c" 1>&6
6530
6592
else
6531
6593
  cat > conftest.$ac_ext <<EOF
6532
 
#line 6533 "configure"
 
6594
#line 6595 "configure"
6533
6595
#include "confdefs.h"
6534
6596
#include <stdlib.h>
6535
6597
#include <stdarg.h>
6537
6599
#include <float.h>
6538
6600
EOF
6539
6601
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6540
 
{ (eval echo configure:6541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
6602
{ (eval echo configure:6603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6541
6603
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6542
6604
if test -z "$ac_err"; then
6543
6605
  rm -rf conftest*
6554
6616
if test $ac_cv_header_stdc = yes; then
6555
6617
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6556
6618
cat > conftest.$ac_ext <<EOF
6557
 
#line 6558 "configure"
 
6619
#line 6620 "configure"
6558
6620
#include "confdefs.h"
6559
6621
#include <string.h>
6560
6622
EOF
6572
6634
if test $ac_cv_header_stdc = yes; then
6573
6635
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6574
6636
cat > conftest.$ac_ext <<EOF
6575
 
#line 6576 "configure"
 
6637
#line 6638 "configure"
6576
6638
#include "confdefs.h"
6577
6639
#include <stdlib.h>
6578
6640
EOF
6593
6655
  :
6594
6656
else
6595
6657
  cat > conftest.$ac_ext <<EOF
6596
 
#line 6597 "configure"
 
6658
#line 6659 "configure"
6597
6659
#include "confdefs.h"
6598
6660
#include <ctype.h>
6599
6661
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6604
6666
exit (0); }
6605
6667
 
6606
6668
EOF
6607
 
if { (eval echo configure:6608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
6669
if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6608
6670
then
6609
6671
  :
6610
6672
else
6628
6690
fi
6629
6691
 
6630
6692
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
6631
 
echo "configure:6632: checking whether time.h and sys/time.h may both be included" >&5
 
6693
echo "configure:6694: checking whether time.h and sys/time.h may both be included" >&5
6632
6694
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
6633
6695
  echo $ac_n "(cached) $ac_c" 1>&6
6634
6696
else
6635
6697
  cat > conftest.$ac_ext <<EOF
6636
 
#line 6637 "configure"
 
6698
#line 6699 "configure"
6637
6699
#include "confdefs.h"
6638
6700
#include <sys/types.h>
6639
6701
#include <sys/time.h>
6642
6704
struct tm *tp;
6643
6705
; return 0; }
6644
6706
EOF
6645
 
if { (eval echo configure:6646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
6707
if { (eval echo configure:6708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6646
6708
  rm -rf conftest*
6647
6709
  ac_cv_header_time=yes
6648
6710
else
6663
6725
fi
6664
6726
 
6665
6727
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
6666
 
echo "configure:6667: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
6728
echo "configure:6729: checking for sys/wait.h that is POSIX.1 compatible" >&5
6667
6729
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
6668
6730
  echo $ac_n "(cached) $ac_c" 1>&6
6669
6731
else
6670
6732
  cat > conftest.$ac_ext <<EOF
6671
 
#line 6672 "configure"
 
6733
#line 6734 "configure"
6672
6734
#include "confdefs.h"
6673
6735
#include <sys/types.h>
6674
6736
#include <sys/wait.h>
6684
6746
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6685
6747
; return 0; }
6686
6748
EOF
6687
 
if { (eval echo configure:6688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
6749
if { (eval echo configure:6750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6688
6750
  rm -rf conftest*
6689
6751
  ac_cv_header_sys_wait_h=yes
6690
6752
else
6738
6800
do
6739
6801
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6740
6802
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6741
 
echo "configure:6742: checking for $ac_hdr" >&5
 
6803
echo "configure:6804: checking for $ac_hdr" >&5
6742
6804
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6743
6805
  echo $ac_n "(cached) $ac_c" 1>&6
6744
6806
else
6745
6807
  cat > conftest.$ac_ext <<EOF
6746
 
#line 6747 "configure"
 
6808
#line 6809 "configure"
6747
6809
#include "confdefs.h"
6748
6810
#include <$ac_hdr>
6749
6811
EOF
6750
6812
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6751
 
{ (eval echo configure:6752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
6813
{ (eval echo configure:6814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6752
6814
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6753
6815
if test -z "$ac_err"; then
6754
6816
  rm -rf conftest*
6778
6840
REGEX=no
6779
6841
ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
6780
6842
echo $ac_n "checking for regex.h""... $ac_c" 1>&6
6781
 
echo "configure:6782: checking for regex.h" >&5
 
6843
echo "configure:6844: checking for regex.h" >&5
6782
6844
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6783
6845
  echo $ac_n "(cached) $ac_c" 1>&6
6784
6846
else
6785
6847
  cat > conftest.$ac_ext <<EOF
6786
 
#line 6787 "configure"
 
6848
#line 6849 "configure"
6787
6849
#include "confdefs.h"
6788
6850
#include <regex.h>
6789
6851
EOF
6790
6852
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6791
 
{ (eval echo configure:6792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
6853
{ (eval echo configure:6854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6792
6854
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6793
6855
if test -z "$ac_err"; then
6794
6856
  rm -rf conftest*
6816
6878
  REGEX_EXTENDED=no
6817
6879
  REGEX=yes
6818
6880
  cat > conftest.$ac_ext <<EOF
6819
 
#line 6820 "configure"
 
6881
#line 6882 "configure"
6820
6882
#include "confdefs.h"
6821
6883
#include <regex.h>
6822
6884
     #ifdef REG_EXTENDED
6854
6916
 
6855
6917
fi
6856
6918
 
 
6919
smart_try_dir="$OPENSSL_INCLUDE"
 
6920
CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
 
6921
 
 
6922
 
 
6923
ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
 
6924
echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
 
6925
echo "configure:6926: checking for openssl/ssl.h" >&5
 
6926
 
 
6927
smart_include=
 
6928
smart_include_dir=
 
6929
 
 
6930
  old_CFLAGS="$CFLAGS"
 
6931
  cat > conftest.$ac_ext <<EOF
 
6932
#line 6933 "configure"
 
6933
#include "confdefs.h"
 
6934
 
 
6935
                  #include <openssl/ssl.h>
 
6936
int main() {
 
6937
 int a = 1;
 
6938
; return 0; }
 
6939
EOF
 
6940
if { (eval echo configure:6941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
6941
  rm -rf conftest*
 
6942
  smart_include=" "
 
6943
else
 
6944
  echo "configure: failed program was:" >&5
 
6945
  cat conftest.$ac_ext >&5
 
6946
  rm -rf conftest*
 
6947
  smart_include=
 
6948
fi
 
6949
rm -f conftest*
 
6950
 
 
6951
  if test "x$smart_include" = "x"; then
 
6952
    
 
6953
 
 
6954
if test "x$LOCATE" != "x"; then
 
6955
        DIRS=
 
6956
  file=openssl/ssl.h
 
6957
 
 
6958
  for x in `${LOCATE} $file 2>/dev/null`; do
 
6959
                                        base=`echo $x | sed "s%/${file}%%"`
 
6960
    if test "x$x" = "x$base"; then
 
6961
      continue;
 
6962
    fi
 
6963
 
 
6964
    dir=`${DIRNAME} $x 2>/dev/null`
 
6965
                exclude=`echo ${dir} | ${GREP} /home`
 
6966
    if test "x$exclude" != "x"; then
 
6967
      continue
 
6968
    fi
 
6969
 
 
6970
                    already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
 
6971
    if test "x$already" = "x"; then
 
6972
      DIRS="$DIRS $dir"
 
6973
    fi
 
6974
  done
 
6975
fi
 
6976
 
 
6977
eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
 
6978
 
 
6979
 
 
6980
    for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
 
6981
      CFLAGS="$old_CFLAGS -I$try"
 
6982
 
 
6983
      cat > conftest.$ac_ext <<EOF
 
6984
#line 6985 "configure"
 
6985
#include "confdefs.h"
 
6986
 
 
6987
                       #include <openssl/ssl.h>
 
6988
int main() {
 
6989
 int a = 1;
 
6990
; return 0; }
 
6991
EOF
 
6992
if { (eval echo configure:6993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
6993
  rm -rf conftest*
 
6994
  smart_include="-I$try"
 
6995
else
 
6996
  echo "configure: failed program was:" >&5
 
6997
  cat conftest.$ac_ext >&5
 
6998
  rm -rf conftest*
 
6999
  smart_include=
 
7000
fi
 
7001
rm -f conftest*
 
7002
 
 
7003
      if test "x$smart_include" != "x"; then
 
7004
        break;
 
7005
      fi
 
7006
    done
 
7007
    CFLAGS="$old_CFLAGS"
 
7008
  fi
 
7009
 
 
7010
        if test "x$smart_include" != "x"; then
 
7011
    echo "$ac_t""yes" 1>&6
 
7012
    eval "ac_cv_header_$ac_safe=yes"
 
7013
    CFLAGS="$old_CFLAGS $smart_include"
 
7014
    SMART_CFLAGS="$SMART_CFLAGS $smart_include"
 
7015
  else
 
7016
    echo "$ac_t""no" 1>&6 
 
7017
fi
 
7018
 
 
7019
if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
 
7020
  cat >> confdefs.h <<\EOF
 
7021
#define HAVE_OPENSSL_SSL_H 1
 
7022
EOF
 
7023
 
 
7024
  old_CPPFLAGS="$CPPFLAGS"
 
7025
  if test "x$OPENSSL_INCLUDE" != "x"; then
 
7026
      CPPFLAGS="-I$OPENSSL_INCLUDE $CPPFLAGS"
 
7027
  fi
 
7028
  for ac_hdr in \
 
7029
          openssl/err.h \
 
7030
          openssl/crypto.h \
 
7031
          openssl/rand.h \
 
7032
          openssl/engine.h
 
7033
  
 
7034
do
 
7035
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
7036
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
7037
echo "configure:7038: checking for $ac_hdr" >&5
 
7038
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 
7039
  echo $ac_n "(cached) $ac_c" 1>&6
 
7040
else
 
7041
  cat > conftest.$ac_ext <<EOF
 
7042
#line 7043 "configure"
 
7043
#include "confdefs.h"
 
7044
#include <$ac_hdr>
 
7045
EOF
 
7046
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
7047
{ (eval echo configure:7048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
7048
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
7049
if test -z "$ac_err"; then
 
7050
  rm -rf conftest*
 
7051
  eval "ac_cv_header_$ac_safe=yes"
 
7052
else
 
7053
  echo "$ac_err" >&5
 
7054
  echo "configure: failed program was:" >&5
 
7055
  cat conftest.$ac_ext >&5
 
7056
  rm -rf conftest*
 
7057
  eval "ac_cv_header_$ac_safe=no"
 
7058
fi
 
7059
rm -f conftest*
 
7060
fi
 
7061
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
7062
  echo "$ac_t""yes" 1>&6
 
7063
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
7064
  cat >> confdefs.h <<EOF
 
7065
#define $ac_tr_hdr 1
 
7066
EOF
 
7067
 
 
7068
else
 
7069
  echo "$ac_t""no" 1>&6
 
7070
fi
 
7071
done
 
7072
 
 
7073
  CPPFLAGS="$old_CPPFLAGS"
 
7074
 
 
7075
  echo $ac_n "checking for OpenSSL version >= 0.9.7""... $ac_c" 1>&6
 
7076
echo "configure:7077: checking for OpenSSL version >= 0.9.7" >&5
 
7077
       old_CPPFLAGS=$CPPFLAGS
 
7078
       if test "x$OPENSSL_INCLUDE" != "x"; then
 
7079
           CPPFLAGS="-I$OPENSSL_INCLUDE"
 
7080
           fi
 
7081
       cat > conftest.$ac_ext <<EOF
 
7082
#line 7083 "configure"
 
7083
#include "confdefs.h"
 
7084
#include <openssl/crypto.h>
 
7085
       #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
 
7086
        yes
 
7087
       #endif
 
7088
       
 
7089
EOF
 
7090
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7091
  egrep "yes" >/dev/null 2>&1; then
 
7092
  rm -rf conftest*
 
7093
  goodssl="yes"
 
7094
fi
 
7095
rm -f conftest*
 
7096
 
 
7097
           if test "x$goodssl" != "xyes"; then
 
7098
             echo "$ac_t""no" 1>&6
 
7099
             OPENSSL_INCLUDE=
 
7100
             OPENSSL_LIBS=
 
7101
           else
 
7102
             echo "$ac_t""yes" 1>&6
 
7103
 
 
7104
             # Look for the OpenSSL libraries.
 
7105
             smart_try_dir=$OPENSSL_LIBS
 
7106
             
 
7107
 
 
7108
sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
 
7109
sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
 
7110
echo $ac_n "checking for DH_new in -lcrypto""... $ac_c" 1>&6
 
7111
echo "configure:7112: checking for DH_new in -lcrypto" >&5
 
7112
 
 
7113
smart_lib=
 
7114
smart_lib_dir=
 
7115
 
 
7116
  old_LIBS="$LIBS"
 
7117
  LIBS="$LIBS -lcrypto"
 
7118
  cat > conftest.$ac_ext <<EOF
 
7119
#line 7120 "configure"
 
7120
#include "confdefs.h"
 
7121
extern char DH_new();
 
7122
int main() {
 
7123
 DH_new()
 
7124
; return 0; }
 
7125
EOF
 
7126
if { (eval echo configure:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7127
  rm -rf conftest*
 
7128
  smart_lib="-lcrypto"
 
7129
else
 
7130
  echo "configure: failed program was:" >&5
 
7131
  cat conftest.$ac_ext >&5
 
7132
fi
 
7133
rm -f conftest*
 
7134
 
 
7135
  if test "x$smart_lib" = "x"; then
 
7136
    
 
7137
 
 
7138
if test "x$LOCATE" != "x"; then
 
7139
        DIRS=
 
7140
  file=libcrypto${libltdl_cv_shlibext}
 
7141
 
 
7142
  for x in `${LOCATE} $file 2>/dev/null`; do
 
7143
                                        base=`echo $x | sed "s%/${file}%%"`
 
7144
    if test "x$x" = "x$base"; then
 
7145
      continue;
 
7146
    fi
 
7147
 
 
7148
    dir=`${DIRNAME} $x 2>/dev/null`
 
7149
                exclude=`echo ${dir} | ${GREP} /home`
 
7150
    if test "x$exclude" != "x"; then
 
7151
      continue
 
7152
    fi
 
7153
 
 
7154
                    already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
 
7155
    if test "x$already" = "x"; then
 
7156
      DIRS="$DIRS $dir"
 
7157
    fi
 
7158
  done
 
7159
fi
 
7160
 
 
7161
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
 
7162
 
 
7163
    
 
7164
 
 
7165
if test "x$LOCATE" != "x"; then
 
7166
        DIRS=
 
7167
  file=libcrypto.a
 
7168
 
 
7169
  for x in `${LOCATE} $file 2>/dev/null`; do
 
7170
                                        base=`echo $x | sed "s%/${file}%%"`
 
7171
    if test "x$x" = "x$base"; then
 
7172
      continue;
 
7173
    fi
 
7174
 
 
7175
    dir=`${DIRNAME} $x 2>/dev/null`
 
7176
                exclude=`echo ${dir} | ${GREP} /home`
 
7177
    if test "x$exclude" != "x"; then
 
7178
      continue
 
7179
    fi
 
7180
 
 
7181
                    already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
 
7182
    if test "x$already" = "x"; then
 
7183
      DIRS="$DIRS $dir"
 
7184
    fi
 
7185
  done
 
7186
fi
 
7187
 
 
7188
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
 
7189
 
 
7190
 
 
7191
    for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
 
7192
      LIBS="$old_LIBS -L$try -lcrypto"
 
7193
 
 
7194
      cat > conftest.$ac_ext <<EOF
 
7195
#line 7196 "configure"
 
7196
#include "confdefs.h"
 
7197
extern char DH_new();
 
7198
int main() {
 
7199
 DH_new()
 
7200
; return 0; }
 
7201
EOF
 
7202
if { (eval echo configure:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7203
  rm -rf conftest*
 
7204
  smart_lib="-L$try -lcrypto"
 
7205
else
 
7206
  echo "configure: failed program was:" >&5
 
7207
  cat conftest.$ac_ext >&5
 
7208
fi
 
7209
rm -f conftest*
 
7210
      if test "x$smart_lib" != "x"; then
 
7211
        break;
 
7212
      fi
 
7213
    done
 
7214
    LIBS="$old_LIBS"
 
7215
  fi
 
7216
 
 
7217
        if test "x$smart_lib" != "x"; then
 
7218
    echo "$ac_t""yes" 1>&6
 
7219
    eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
 
7220
    LIBS="$old_LIBS $smart_lib"
 
7221
    SMART_LIBS="$SMART_LIBS $smart_lib"
 
7222
  else
 
7223
    echo "$ac_t""no" 1>&6 
 
7224
fi
 
7225
 
 
7226
             if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
 
7227
               
 
7228
 
 
7229
sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
 
7230
sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
 
7231
echo $ac_n "checking for SSL_new in -lssl""... $ac_c" 1>&6
 
7232
echo "configure:7233: checking for SSL_new in -lssl" >&5
 
7233
 
 
7234
smart_lib=
 
7235
smart_lib_dir=
 
7236
 
 
7237
  old_LIBS="$LIBS"
 
7238
  LIBS="$LIBS -lssl"
 
7239
  cat > conftest.$ac_ext <<EOF
 
7240
#line 7241 "configure"
 
7241
#include "confdefs.h"
 
7242
extern char SSL_new();
 
7243
int main() {
 
7244
 SSL_new()
 
7245
; return 0; }
 
7246
EOF
 
7247
if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7248
  rm -rf conftest*
 
7249
  smart_lib="-lssl"
 
7250
else
 
7251
  echo "configure: failed program was:" >&5
 
7252
  cat conftest.$ac_ext >&5
 
7253
fi
 
7254
rm -f conftest*
 
7255
 
 
7256
  if test "x$smart_lib" = "x"; then
 
7257
    
 
7258
 
 
7259
if test "x$LOCATE" != "x"; then
 
7260
        DIRS=
 
7261
  file=libssl${libltdl_cv_shlibext}
 
7262
 
 
7263
  for x in `${LOCATE} $file 2>/dev/null`; do
 
7264
                                        base=`echo $x | sed "s%/${file}%%"`
 
7265
    if test "x$x" = "x$base"; then
 
7266
      continue;
 
7267
    fi
 
7268
 
 
7269
    dir=`${DIRNAME} $x 2>/dev/null`
 
7270
                exclude=`echo ${dir} | ${GREP} /home`
 
7271
    if test "x$exclude" != "x"; then
 
7272
      continue
 
7273
    fi
 
7274
 
 
7275
                    already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
 
7276
    if test "x$already" = "x"; then
 
7277
      DIRS="$DIRS $dir"
 
7278
    fi
 
7279
  done
 
7280
fi
 
7281
 
 
7282
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
 
7283
 
 
7284
    
 
7285
 
 
7286
if test "x$LOCATE" != "x"; then
 
7287
        DIRS=
 
7288
  file=libssl.a
 
7289
 
 
7290
  for x in `${LOCATE} $file 2>/dev/null`; do
 
7291
                                        base=`echo $x | sed "s%/${file}%%"`
 
7292
    if test "x$x" = "x$base"; then
 
7293
      continue;
 
7294
    fi
 
7295
 
 
7296
    dir=`${DIRNAME} $x 2>/dev/null`
 
7297
                exclude=`echo ${dir} | ${GREP} /home`
 
7298
    if test "x$exclude" != "x"; then
 
7299
      continue
 
7300
    fi
 
7301
 
 
7302
                    already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
 
7303
    if test "x$already" = "x"; then
 
7304
      DIRS="$DIRS $dir"
 
7305
    fi
 
7306
  done
 
7307
fi
 
7308
 
 
7309
eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
 
7310
 
 
7311
 
 
7312
    for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
 
7313
      LIBS="$old_LIBS -L$try -lssl"
 
7314
 
 
7315
      cat > conftest.$ac_ext <<EOF
 
7316
#line 7317 "configure"
 
7317
#include "confdefs.h"
 
7318
extern char SSL_new();
 
7319
int main() {
 
7320
 SSL_new()
 
7321
; return 0; }
 
7322
EOF
 
7323
if { (eval echo configure:7324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7324
  rm -rf conftest*
 
7325
  smart_lib="-L$try -lssl"
 
7326
else
 
7327
  echo "configure: failed program was:" >&5
 
7328
  cat conftest.$ac_ext >&5
 
7329
fi
 
7330
rm -f conftest*
 
7331
      if test "x$smart_lib" != "x"; then
 
7332
        break;
 
7333
      fi
 
7334
    done
 
7335
    LIBS="$old_LIBS"
 
7336
  fi
 
7337
 
 
7338
        if test "x$smart_lib" != "x"; then
 
7339
    echo "$ac_t""yes" 1>&6
 
7340
    eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
 
7341
    LIBS="$old_LIBS $smart_lib"
 
7342
    SMART_LIBS="$SMART_LIBS $smart_lib"
 
7343
  else
 
7344
    echo "$ac_t""no" 1>&6 
 
7345
fi
 
7346
 
 
7347
               if test "x$ac_cv_lib_ssl_SSL_new" != "xyes"; then
 
7348
                 OPENSSL_INCLUDE=
 
7349
                 OPENSSL_LIBS=
 
7350
               fi
 
7351
               export OPENSSL_INCLUDE OPENSSL_LIBS
 
7352
             fi
 
7353
           fi
 
7354
       CPPFLAGS=$old_CPPFLAGS
 
7355
fi
6857
7356
 
6858
7357
 
6859
7358
echo $ac_n "checking for off_t""... $ac_c" 1>&6
6860
 
echo "configure:6861: checking for off_t" >&5
 
7359
echo "configure:7360: checking for off_t" >&5
6861
7360
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6862
7361
  echo $ac_n "(cached) $ac_c" 1>&6
6863
7362
else
6864
7363
  cat > conftest.$ac_ext <<EOF
6865
 
#line 6866 "configure"
 
7364
#line 7365 "configure"
6866
7365
#include "confdefs.h"
6867
7366
#include <sys/types.h>
6868
7367
#if STDC_HEADERS
6890
7389
fi
6891
7390
 
6892
7391
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6893
 
echo "configure:6894: checking for pid_t" >&5
 
7392
echo "configure:7393: checking for pid_t" >&5
6894
7393
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6895
7394
  echo $ac_n "(cached) $ac_c" 1>&6
6896
7395
else
6897
7396
  cat > conftest.$ac_ext <<EOF
6898
 
#line 6899 "configure"
 
7397
#line 7398 "configure"
6899
7398
#include "confdefs.h"
6900
7399
#include <sys/types.h>
6901
7400
#if STDC_HEADERS
6923
7422
fi
6924
7423
 
6925
7424
echo $ac_n "checking for size_t""... $ac_c" 1>&6
6926
 
echo "configure:6927: checking for size_t" >&5
 
7425
echo "configure:7426: checking for size_t" >&5
6927
7426
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6928
7427
  echo $ac_n "(cached) $ac_c" 1>&6
6929
7428
else
6930
7429
  cat > conftest.$ac_ext <<EOF
6931
 
#line 6932 "configure"
 
7430
#line 7431 "configure"
6932
7431
#include "confdefs.h"
6933
7432
#include <sys/types.h>
6934
7433
#if STDC_HEADERS
6956
7455
fi
6957
7456
 
6958
7457
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6959
 
echo "configure:6960: checking for uid_t in sys/types.h" >&5
 
7458
echo "configure:7459: checking for uid_t in sys/types.h" >&5
6960
7459
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6961
7460
  echo $ac_n "(cached) $ac_c" 1>&6
6962
7461
else
6963
7462
  cat > conftest.$ac_ext <<EOF
6964
 
#line 6965 "configure"
 
7463
#line 7464 "configure"
6965
7464
#include "confdefs.h"
6966
7465
#include <sys/types.h>
6967
7466
EOF
6992
7491
 
6993
7492
 
6994
7493
  echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
6995
 
echo "configure:6996: checking for socklen_t" >&5
 
7494
echo "configure:7495: checking for socklen_t" >&5
6996
7495
if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
6997
7496
  echo $ac_n "(cached) $ac_c" 1>&6
6998
7497
else
6999
7498
   ac_cv_type_socklen_t=no
7000
7499
      cat > conftest.$ac_ext <<EOF
7001
 
#line 7002 "configure"
 
7500
#line 7501 "configure"
7002
7501
#include "confdefs.h"
7003
7502
#ifdef HAVE_SYS_TYPES_H
7004
7503
#include <sys/types.h>
7011
7510
socklen_t foo
7012
7511
; return 0; }
7013
7512
EOF
7014
 
if { (eval echo configure:7015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
7513
if { (eval echo configure:7514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7015
7514
  rm -rf conftest*
7016
7515
  ac_cv_type_socklen_t=yes
7017
7516
else
7035
7534
 
7036
7535
 
7037
7536
  echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
7038
 
echo "configure:7039: checking for uint8_t" >&5
 
7537
echo "configure:7538: checking for uint8_t" >&5
7039
7538
if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
7040
7539
  echo $ac_n "(cached) $ac_c" 1>&6
7041
7540
else
7042
7541
   ac_cv_type_uint8_t=no
7043
7542
      cat > conftest.$ac_ext <<EOF
7044
 
#line 7045 "configure"
 
7543
#line 7544 "configure"
7045
7544
#include "confdefs.h"
7046
7545
#ifdef HAVE_INTTYPES_H
7047
7546
#include <inttypes.h>
7054
7553
uint8_t foo
7055
7554
; return 0; }
7056
7555
EOF
7057
 
if { (eval echo configure:7058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
7556
if { (eval echo configure:7557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7058
7557
  rm -rf conftest*
7059
7558
  ac_cv_type_uint8_t=yes
7060
7559
else
7078
7577
 
7079
7578
 
7080
7579
  echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
7081
 
echo "configure:7082: checking for uint16_t" >&5
 
7580
echo "configure:7581: checking for uint16_t" >&5
7082
7581
if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
7083
7582
  echo $ac_n "(cached) $ac_c" 1>&6
7084
7583
else
7085
7584
   ac_cv_type_uint16_t=no
7086
7585
      cat > conftest.$ac_ext <<EOF
7087
 
#line 7088 "configure"
 
7586
#line 7587 "configure"
7088
7587
#include "confdefs.h"
7089
7588
#ifdef HAVE_INTTYPES_H
7090
7589
#include <inttypes.h>
7097
7596
uint16_t foo
7098
7597
; return 0; }
7099
7598
EOF
7100
 
if { (eval echo configure:7101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
7599
if { (eval echo configure:7600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7101
7600
  rm -rf conftest*
7102
7601
  ac_cv_type_uint16_t=yes
7103
7602
else
7121
7620
 
7122
7621
 
7123
7622
  echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
7124
 
echo "configure:7125: checking for uint32_t" >&5
 
7623
echo "configure:7624: checking for uint32_t" >&5
7125
7624
if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
7126
7625
  echo $ac_n "(cached) $ac_c" 1>&6
7127
7626
else
7128
7627
   ac_cv_type_uint32_t=no
7129
7628
      cat > conftest.$ac_ext <<EOF
7130
 
#line 7131 "configure"
 
7629
#line 7630 "configure"
7131
7630
#include "confdefs.h"
7132
7631
#ifdef HAVE_INTTYPES_H
7133
7632
#include <inttypes.h>
7140
7639
uint32_t foo
7141
7640
; return 0; }
7142
7641
EOF
7143
 
if { (eval echo configure:7144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
7642
if { (eval echo configure:7643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7144
7643
  rm -rf conftest*
7145
7644
  ac_cv_type_uint32_t=yes
7146
7645
else
7179
7678
        gmtime_r \
7180
7679
        strsep \
7181
7680
        inet_aton \
 
7681
        inet_pton \
 
7682
        inet_ntop \
7182
7683
        gethostname \
7183
7684
        setlinebuf \
7184
7685
        setvbuf \
7185
 
        getusershell
 
7686
        getusershell \
 
7687
        initgroups
7186
7688
 
7187
7689
do
7188
7690
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7189
 
echo "configure:7190: checking for $ac_func" >&5
 
7691
echo "configure:7692: checking for $ac_func" >&5
7190
7692
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7191
7693
  echo $ac_n "(cached) $ac_c" 1>&6
7192
7694
else
7193
7695
  cat > conftest.$ac_ext <<EOF
7194
 
#line 7195 "configure"
 
7696
#line 7697 "configure"
7195
7697
#include "confdefs.h"
7196
7698
/* System header to define __stub macros and hopefully few prototypes,
7197
7699
    which can conflict with char $ac_func(); below.  */
7214
7716
 
7215
7717
; return 0; }
7216
7718
EOF
7217
 
if { (eval echo configure:7218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7719
if { (eval echo configure:7720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7218
7720
  rm -rf conftest*
7219
7721
  eval "ac_cv_func_$ac_func=yes"
7220
7722
else
7250
7752
 
7251
7753
do
7252
7754
echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
7253
 
echo "configure:7254: checking whether $ac_func must be declared" >&5
 
7755
echo "configure:7756: checking whether $ac_func must be declared" >&5
7254
7756
if eval "test \"`echo '$''{'radius_cv_decl_needed_$ac_func'+set}'`\" = set"; then
7255
7757
  echo $ac_n "(cached) $ac_c" 1>&6
7256
7758
else
7257
7759
  cat > conftest.$ac_ext <<EOF
7258
 
#line 7259 "configure"
 
7760
#line 7761 "configure"
7259
7761
#include "confdefs.h"
7260
7762
 
7261
7763
#include <stdio.h>
7310
7812
char *(*pfn) = (char *(*)) $ac_func
7311
7813
; return 0; }
7312
7814
EOF
7313
 
if { (eval echo configure:7314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
7815
if { (eval echo configure:7816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7314
7816
  rm -rf conftest*
7315
7817
  eval "radius_cv_decl_needed_$ac_func=no"
7316
7818
else
7337
7839
 
7338
7840
 
7339
7841
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
7340
 
echo "configure:7341: checking return type of signal handlers" >&5
 
7842
echo "configure:7843: checking return type of signal handlers" >&5
7341
7843
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
7342
7844
  echo $ac_n "(cached) $ac_c" 1>&6
7343
7845
else
7344
7846
  cat > conftest.$ac_ext <<EOF
7345
 
#line 7346 "configure"
 
7847
#line 7848 "configure"
7346
7848
#include "confdefs.h"
7347
7849
#include <sys/types.h>
7348
7850
#include <signal.h>
7359
7861
int i;
7360
7862
; return 0; }
7361
7863
EOF
7362
 
if { (eval echo configure:7363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
7864
if { (eval echo configure:7865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7363
7865
  rm -rf conftest*
7364
7866
  ac_cv_type_signal=void
7365
7867
else
7382
7884
then
7383
7885
 
7384
7886
  echo $ac_n "checking for ut_xtime in struct utmpx""... $ac_c" 1>&6
7385
 
echo "configure:7386: checking for ut_xtime in struct utmpx" >&5
 
7887
echo "configure:7888: checking for ut_xtime in struct utmpx" >&5
7386
7888
 
7387
7889
 
7388
7890
  cat > conftest.$ac_ext <<EOF
7389
 
#line 7390 "configure"
 
7891
#line 7892 "configure"
7390
7892
#include "confdefs.h"
7391
7893
 
7392
7894
#include <utmpx.h>
7398
7900
 int foo = offsetof(struct utmpx, ut_xtime) 
7399
7901
; return 0; }
7400
7902
EOF
7401
 
if { (eval echo configure:7402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
7903
if { (eval echo configure:7904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7402
7904
  rm -rf conftest*
7403
7905
  has_element=" "
7404
7906
else
7428
7930
fi
7429
7931
 
7430
7932
 
 
7933
  echo $ac_n "checking for ipi_addr in struct in_pktinfo""... $ac_c" 1>&6
 
7934
echo "configure:7935: checking for ipi_addr in struct in_pktinfo" >&5
 
7935
 
 
7936
 
 
7937
  cat > conftest.$ac_ext <<EOF
 
7938
#line 7939 "configure"
 
7939
#include "confdefs.h"
 
7940
 
 
7941
#include <netinet/in.h>
 
7942
#ifndef offsetof
 
7943
#define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
 
7944
#endif
 
7945
 
 
7946
int main() {
 
7947
 int foo = offsetof(struct in_pktinfo, ipi_addr) 
 
7948
; return 0; }
 
7949
EOF
 
7950
if { (eval echo configure:7951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
7951
  rm -rf conftest*
 
7952
  has_element=" "
 
7953
else
 
7954
  echo "configure: failed program was:" >&5
 
7955
  cat conftest.$ac_ext >&5
 
7956
  rm -rf conftest*
 
7957
  has_element=
 
7958
fi
 
7959
rm -f conftest*
 
7960
 
 
7961
  ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
 
7962
  if test "x$has_element" != "x"; then
 
7963
    echo "$ac_t""yes" 1>&6
 
7964
    eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
 
7965
  else
 
7966
    echo "$ac_t""no" 1>&6 
 
7967
    eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
 
7968
 fi
 
7969
 
 
7970
if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
 
7971
then
 
7972
        cat >> confdefs.h <<\EOF
 
7973
#define HAVE_IP_PKTINFO 1
 
7974
EOF
 
7975
 
 
7976
fi
 
7977
 
 
7978
 
7431
7979
echo $ac_n "checking for working const""... $ac_c" 1>&6
7432
 
echo "configure:7433: checking for working const" >&5
 
7980
echo "configure:7981: checking for working const" >&5
7433
7981
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7434
7982
  echo $ac_n "(cached) $ac_c" 1>&6
7435
7983
else
7436
7984
  cat > conftest.$ac_ext <<EOF
7437
 
#line 7438 "configure"
 
7985
#line 7986 "configure"
7438
7986
#include "confdefs.h"
7439
7987
 
7440
7988
int main() {
7483
8031
 
7484
8032
; return 0; }
7485
8033
EOF
7486
 
if { (eval echo configure:7487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
8034
if { (eval echo configure:8035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7487
8035
  rm -rf conftest*
7488
8036
  ac_cv_c_const=yes
7489
8037
else
7505
8053
 
7506
8054
 
7507
8055
echo $ac_n "checking type of OS""... $ac_c" 1>&6
7508
 
echo "configure:7509: checking type of OS" >&5
 
8056
echo "configure:8057: checking type of OS" >&5
7509
8057
OS=`uname -s`
7510
8058
echo "$ac_t""$OS" 1>&6
7511
8059
if test "$OS" = "OS/2"; then
7520
8068
fi
7521
8069
 
7522
8070
echo $ac_n "checking for developer gcc flags""... $ac_c" 1>&6
7523
 
echo "configure:7524: checking for developer gcc flags" >&5
 
8071
echo "configure:8072: checking for developer gcc flags" >&5
7524
8072
if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
7525
 
  devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
 
8073
  devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
7526
8074
  CFLAGS="$CFLAGS $devflags"
7527
8075
  INSTALLSTRIP=""
7528
8076
  echo "$ac_t""yes.  Using $devflags" 1>&6
7535
8083
 
7536
8084
 
7537
8085
echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7538
 
echo "configure:7539: checking for crypt in -lcrypt" >&5
 
8086
echo "configure:8087: checking for crypt in -lcrypt" >&5
7539
8087
ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7540
8088
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7541
8089
  echo $ac_n "(cached) $ac_c" 1>&6
7543
8091
  ac_save_LIBS="$LIBS"
7544
8092
LIBS="-lcrypt  $LIBS"
7545
8093
cat > conftest.$ac_ext <<EOF
7546
 
#line 7547 "configure"
 
8094
#line 8095 "configure"
7547
8095
#include "confdefs.h"
7548
8096
/* Override any gcc2 internal prototype to avoid an error.  */
7549
8097
/* We use char because int might match the return type of a gcc2
7554
8102
crypt()
7555
8103
; return 0; }
7556
8104
EOF
7557
 
if { (eval echo configure:7558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8105
if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7558
8106
  rm -rf conftest*
7559
8107
  eval "ac_cv_lib_$ac_lib_var=yes"
7560
8108
else
7582
8130
 
7583
8131
else
7584
8132
  echo $ac_n "checking for crypt""... $ac_c" 1>&6
7585
 
echo "configure:7586: checking for crypt" >&5
 
8133
echo "configure:8134: checking for crypt" >&5
7586
8134
if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
7587
8135
  echo $ac_n "(cached) $ac_c" 1>&6
7588
8136
else
7589
8137
  cat > conftest.$ac_ext <<EOF
7590
 
#line 7591 "configure"
 
8138
#line 8139 "configure"
7591
8139
#include "confdefs.h"
7592
8140
/* System header to define __stub macros and hopefully few prototypes,
7593
8141
    which can conflict with char crypt(); below.  */
7610
8158
 
7611
8159
; return 0; }
7612
8160
EOF
7613
 
if { (eval echo configure:7614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8161
if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7614
8162
  rm -rf conftest*
7615
8163
  eval "ac_cv_func_crypt=yes"
7616
8164
else
7635
8183
fi
7636
8184
 
7637
8185
echo $ac_n "checking for setkey in -lcipher""... $ac_c" 1>&6
7638
 
echo "configure:7639: checking for setkey in -lcipher" >&5
 
8186
echo "configure:8187: checking for setkey in -lcipher" >&5
7639
8187
ac_lib_var=`echo cipher'_'setkey | sed 'y%./+-%__p_%'`
7640
8188
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7641
8189
  echo $ac_n "(cached) $ac_c" 1>&6
7643
8191
  ac_save_LIBS="$LIBS"
7644
8192
LIBS="-lcipher  $LIBS"
7645
8193
cat > conftest.$ac_ext <<EOF
7646
 
#line 7647 "configure"
 
8194
#line 8195 "configure"
7647
8195
#include "confdefs.h"
7648
8196
/* Override any gcc2 internal prototype to avoid an error.  */
7649
8197
/* We use char because int might match the return type of a gcc2
7654
8202
setkey()
7655
8203
; return 0; }
7656
8204
EOF
7657
 
if { (eval echo configure:7658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8205
if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7658
8206
  rm -rf conftest*
7659
8207
  eval "ac_cv_lib_$ac_lib_var=yes"
7660
8208
else
7683
8231
        
7684
8232
 
7685
8233
echo $ac_n "checking for asn1.h,snmp.h,snmp_impl.h""... $ac_c" 1>&6
7686
 
echo "configure:7687: checking for asn1.h,snmp.h,snmp_impl.h" >&5
 
8234
echo "configure:8235: checking for asn1.h,snmp.h,snmp_impl.h" >&5
7687
8235
 
7688
8236
cat > conftest.$ac_ext <<EOF
7689
 
#line 7690 "configure"
 
8237
#line 8238 "configure"
7690
8238
#include "confdefs.h"
7691
8239
 
7692
8240
#ifdef HAVE_SYS_TYPES_H
7704
8252
#ifdef HAVE_UNISTD_H
7705
8253
#include <unistd.h>
7706
8254
#endif
 
8255
#include <ucd-snmp/ucd-snmp-config.h>
7707
8256
#include <ucd-snmp/asn1.h>
7708
8257
#include <ucd-snmp/snmp.h>
7709
8258
#include <ucd-snmp/snmp_impl.h>
7711
8260
 int a = 1;
7712
8261
; return 0; }
7713
8262
EOF
7714
 
if { (eval echo configure:7715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
8263
if { (eval echo configure:8264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7715
8264
  rm -rf conftest*
7716
8265
  SNMP_INCLUDE="";ucdsnmp=yes
7717
8266
else
7727
8276
  for try in /usr/include /usr/local/include $snmp_include_dir; do
7728
8277
    CFLAGS="$old_CFLAGS -I$try"
7729
8278
    cat > conftest.$ac_ext <<EOF
7730
 
#line 7731 "configure"
 
8279
#line 8280 "configure"
7731
8280
#include "confdefs.h"
7732
8281
 
7733
8282
#ifdef HAVE_SYS_TYPES_H
7745
8294
#ifdef HAVE_UNISTD_H
7746
8295
#include <unistd.h>
7747
8296
#endif
 
8297
#include <ucd-snmp/ucd-snmp-config.h>
7748
8298
#include <ucd-snmp/asn1.h>
7749
8299
#include <ucd-snmp/snmp.h>
7750
8300
#include <ucd-snmp/snmp_impl.h>
7752
8302
 int a = 1;
7753
8303
; return 0; }
7754
8304
EOF
7755
 
if { (eval echo configure:7756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
8305
if { (eval echo configure:8306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7756
8306
  rm -rf conftest*
7757
8307
  SNMP_INCLUDE="-I$try";ucdsnmp=yes
7758
8308
else
7774
8324
  for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
7775
8325
    CFLAGS="$old_CFLAGS -I$try"
7776
8326
cat > conftest.$ac_ext <<EOF
7777
 
#line 7778 "configure"
 
8327
#line 8328 "configure"
7778
8328
#include "confdefs.h"
7779
8329
 
7780
8330
#ifdef HAVE_SYS_TYPES_H
7799
8349
 int a = 1;
7800
8350
; return 0; }
7801
8351
EOF
7802
 
if { (eval echo configure:7803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
8352
if { (eval echo configure:8353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7803
8353
  rm -rf conftest*
7804
8354
  SNMP_INCLUDE="";ucdsnmp=no
7805
8355
else
7821
8371
  for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
7822
8372
    CFLAGS="$old_CFLAGS -I$try"
7823
8373
    cat > conftest.$ac_ext <<EOF
7824
 
#line 7825 "configure"
 
8374
#line 8375 "configure"
7825
8375
#include "confdefs.h"
7826
8376
 
7827
8377
#ifdef HAVE_SYS_TYPES_H
7846
8396
 int a = 1;
7847
8397
; return 0; }
7848
8398
EOF
7849
 
if { (eval echo configure:7850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
8399
if { (eval echo configure:8400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7850
8400
  rm -rf conftest*
7851
8401
  SNMP_INCLUDE="-I$try";ucdsnmp=no
7852
8402
else
7880
8430
 
7881
8431
  fi
7882
8432
  echo $ac_n "checking for snmp_build_var_op in -lsnmp""... $ac_c" 1>&6
7883
 
echo "configure:7884: checking for snmp_build_var_op in -lsnmp" >&5
 
8433
echo "configure:8434: checking for snmp_build_var_op in -lsnmp" >&5
7884
8434
 
7885
8435
  old_LIBS="$LIBS"
7886
8436
  LIBS="$old_LIBS -lsnmp"
7887
8437
  cat > conftest.$ac_ext <<EOF
7888
 
#line 7889 "configure"
 
8438
#line 8439 "configure"
7889
8439
#include "confdefs.h"
7890
8440
extern char snmp_build_var_op();
7891
8441
int main() {
7892
8442
 snmp_build_var_op()
7893
8443
; return 0; }
7894
8444
EOF
7895
 
if { (eval echo configure:7896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8445
if { (eval echo configure:8446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7896
8446
  rm -rf conftest*
7897
8447
  SNMP_LIBS="-lsnmp"
7898
8448
else
7907
8457
    for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
7908
8458
      LIBS="$old_LIBS -L$try -lsnmp"
7909
8459
      cat > conftest.$ac_ext <<EOF
7910
 
#line 7911 "configure"
 
8460
#line 8461 "configure"
7911
8461
#include "confdefs.h"
7912
8462
extern char snmp_build_var_op();
7913
8463
int main() {
7914
8464
 snmp_build_var_op()
7915
8465
; return 0; }
7916
8466
EOF
7917
 
if { (eval echo configure:7918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8467
if { (eval echo configure:8468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7918
8468
  rm -rf conftest*
7919
8469
  SNMP_LIBS="-L$try -lsnmp"
7920
8470
else
7929
8479
      fi
7930
8480
      LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
7931
8481
      cat > conftest.$ac_ext <<EOF
7932
 
#line 7933 "configure"
 
8482
#line 8483 "configure"
7933
8483
#include "confdefs.h"
7934
8484
extern char snmp_build_var_op();
7935
8485
int main() {
7936
8486
 snmp_build_var_op()
7937
8487
; return 0; }
7938
8488
EOF
7939
 
if { (eval echo configure:7940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8489
if { (eval echo configure:8490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7940
8490
  rm -rf conftest*
7941
8491
  SNMP_LIBS="-L$try -lsnmp -lcrypto"
7942
8492
else
7974
8524
 
7975
8525
gethostbyaddrrstyle=""
7976
8526
echo $ac_n "checking gethostbyaddr_r() syntax""... $ac_c" 1>&6
7977
 
echo "configure:7978: checking gethostbyaddr_r() syntax" >&5
 
8527
echo "configure:8528: checking gethostbyaddr_r() syntax" >&5
7978
8528
case "$host" in
7979
8529
*-freebsd*)
7980
8530
        cat >> confdefs.h <<\EOF
7987
8537
esac
7988
8538
if test "x$gethostbyaddrrstyle" = "x"; then
7989
8539
        cat > conftest.$ac_ext <<EOF
7990
 
#line 7991 "configure"
 
8540
#line 8541 "configure"
7991
8541
#include "confdefs.h"
7992
8542
 
7993
8543
#include <stdio.h>
7997
8547
 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL) 
7998
8548
; return 0; }
7999
8549
EOF
8000
 
if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8550
if { (eval echo configure:8551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8001
8551
  rm -rf conftest*
8002
8552
  
8003
8553
        cat >> confdefs.h <<\EOF
8014
8564
fi
8015
8565
if test "x$gethostbyaddrrstyle" = "x"; then
8016
8566
        cat > conftest.$ac_ext <<EOF
8017
 
#line 8018 "configure"
 
8567
#line 8568 "configure"
8018
8568
#include "confdefs.h"
8019
8569
 
8020
8570
#include <stdio.h>
8024
8574
 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)  
8025
8575
; return 0; }
8026
8576
EOF
8027
 
if { (eval echo configure:8028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8577
if { (eval echo configure:8578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8028
8578
  rm -rf conftest*
8029
8579
  
8030
8580
                cat >> confdefs.h <<\EOF
8041
8591
fi
8042
8592
if test "x$gethostbyaddrrstyle" = "x"; then
8043
8593
        cat > conftest.$ac_ext <<EOF
8044
 
#line 8045 "configure"
 
8594
#line 8595 "configure"
8045
8595
#include "confdefs.h"
8046
8596
 
8047
8597
#include <stdio.h>
8051
8601
 gethostbyaddr(NULL, 0, 0)  
8052
8602
; return 0; }
8053
8603
EOF
8054
 
if { (eval echo configure:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8604
if { (eval echo configure:8605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8055
8605
  rm -rf conftest*
8056
8606
  
8057
8607
                cat >> confdefs.h <<\EOF
8059
8609
EOF
8060
8610
 
8061
8611
                gethostbyaddrrstyle=BSD
8062
 
                echo "configure: warning:  ****** BSD Style gethostbyaddr might NOT be thread-safe! ****** " 1>&2
8063
8612
        
8064
8613
else
8065
8614
  echo "configure: failed program was:" >&5
8074
8623
        echo "$ac_t""${gethostbyaddrrstyle}-style" 1>&6
8075
8624
fi
8076
8625
 
 
8626
if test "x$gethostbyaddrrstyle" = "xBSD"; then
 
8627
        echo "configure: warning:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " 1>&2
 
8628
fi
 
8629
 
8077
8630
gethostbynamerstyle=""
8078
8631
echo $ac_n "checking gethostbyname_r() syntax""... $ac_c" 1>&6
8079
 
echo "configure:8080: checking gethostbyname_r() syntax" >&5
 
8632
echo "configure:8633: checking gethostbyname_r() syntax" >&5
8080
8633
cat > conftest.$ac_ext <<EOF
8081
 
#line 8082 "configure"
 
8634
#line 8635 "configure"
8082
8635
#include "confdefs.h"
8083
8636
 
8084
8637
#include <stdio.h>
8088
8641
 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL) 
8089
8642
; return 0; }
8090
8643
EOF
8091
 
if { (eval echo configure:8092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8644
if { (eval echo configure:8645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8092
8645
  rm -rf conftest*
8093
8646
  
8094
8647
        cat >> confdefs.h <<\EOF
8104
8657
rm -f conftest*
8105
8658
if test "x$gethostbynamerstyle" = "x"; then
8106
8659
        cat > conftest.$ac_ext <<EOF
8107
 
#line 8108 "configure"
 
8660
#line 8661 "configure"
8108
8661
#include "confdefs.h"
8109
8662
 
8110
8663
#include <stdio.h>
8114
8667
 gethostbyname_r(NULL, NULL, NULL, 0, NULL)  
8115
8668
; return 0; }
8116
8669
EOF
8117
 
if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8670
if { (eval echo configure:8671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8118
8671
  rm -rf conftest*
8119
8672
  
8120
8673
                cat >> confdefs.h <<\EOF
8131
8684
fi
8132
8685
if test "x$gethostbynamerstyle" = "x"; then
8133
8686
        cat > conftest.$ac_ext <<EOF
8134
 
#line 8135 "configure"
 
8687
#line 8688 "configure"
8135
8688
#include "confdefs.h"
8136
8689
 
8137
8690
#include <stdio.h>
8141
8694
 gethostbyname(NULL)  
8142
8695
; return 0; }
8143
8696
EOF
8144
 
if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8697
if { (eval echo configure:8698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8145
8698
  rm -rf conftest*
8146
8699
  
8147
8700
                cat >> confdefs.h <<\EOF
8149
8702
EOF
8150
8703
 
8151
8704
                gethostbynamerstyle=BSD
8152
 
                echo "configure: warning:  ****** BSD Style gethostbyname might NOT be thread-safe! ****** " 1>&2
8153
8705
        
8154
8706
else
8155
8707
  echo "configure: failed program was:" >&5
8164
8716
        echo "$ac_t""${gethostbynamerstyle}-style" 1>&6
8165
8717
fi
8166
8718
 
 
8719
if test "x$gethostbynamerstyle" = "xBSD"; then
 
8720
        echo "configure: warning:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " 1>&2
 
8721
fi
 
8722
 
 
8723
ctimerstyle=""
 
8724
echo $ac_n "checking ctime_r() syntax""... $ac_c" 1>&6
 
8725
echo "configure:8726: checking ctime_r() syntax" >&5
 
8726
cat > conftest.$ac_ext <<EOF
 
8727
#line 8728 "configure"
 
8728
#include "confdefs.h"
 
8729
 
 
8730
#include <time.h>
 
8731
 
 
8732
int main() {
 
8733
 ctime_r(NULL, NULL, 0) 
 
8734
; return 0; }
 
8735
EOF
 
8736
if { (eval echo configure:8737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8737
  rm -rf conftest*
 
8738
  
 
8739
        cat >> confdefs.h <<\EOF
 
8740
#define CTIMERSTYLE SOLARISSTYLE
 
8741
EOF
 
8742
 
 
8743
        ctimerstyle="SOLARIS"
 
8744
 
 
8745
else
 
8746
  echo "configure: failed program was:" >&5
 
8747
  cat conftest.$ac_ext >&5
 
8748
fi
 
8749
rm -f conftest*
 
8750
if test "x$ctimerstyle" = "x"; then
 
8751
        cat > conftest.$ac_ext <<EOF
 
8752
#line 8753 "configure"
 
8753
#include "confdefs.h"
 
8754
 
 
8755
#include <time.h>
 
8756
 
 
8757
int main() {
 
8758
 ctime_r(NULL, NULL) 
 
8759
; return 0; }
 
8760
EOF
 
8761
if { (eval echo configure:8762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8762
  rm -rf conftest*
 
8763
  
 
8764
                cat >> confdefs.h <<\EOF
 
8765
#define CTIMERSTYLE POSIXSTYLE
 
8766
EOF
 
8767
 
 
8768
                ctimerstyle="POSIX"
 
8769
        
 
8770
else
 
8771
  echo "configure: failed program was:" >&5
 
8772
  cat conftest.$ac_ext >&5
 
8773
fi
 
8774
rm -f conftest*
 
8775
fi
 
8776
 
 
8777
if test "x$ctimerstyle" = "x"; then
 
8778
        echo "$ac_t""none!  It must not exist, here." 1>&6
 
8779
else
 
8780
        echo "$ac_t""${ctimerstyle}-style" 1>&6
 
8781
fi
 
8782
 
 
8783
 
8167
8784
if test x"$rad_enable_largefiles" = xyes ; then
8168
8785
    echo $ac_n "checking for largefile linkage""... $ac_c" 1>&6
8169
 
echo "configure:8170: checking for largefile linkage" >&5
 
8786
echo "configure:8787: checking for largefile linkage" >&5
8170
8787
    case "$host" in
8171
8788
    *-aix4.01*)
8172
8789
        echo "$ac_t""no" 1>&6
8203
8820
        # Extract the first word of "getconf", so it can be a program name with args.
8204
8821
set dummy getconf; ac_word=$2
8205
8822
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8206
 
echo "configure:8207: checking for $ac_word" >&5
 
8823
echo "configure:8824: checking for $ac_word" >&5
8207
8824
if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then
8208
8825
  echo $ac_n "(cached) $ac_c" 1>&6
8209
8826
else
8255
8872
fi
8256
8873
 
8257
8874
 
 
8875
 
 
8876
 
8258
8877
top_builddir=`pwd`
8259
8878
export top_builddir
8260
8879
echo "$ac_t""top_builddir=$top_builddir" 1>&6
8261
8880
 
8262
8881
 
8263
8882
 
8264
 
 
8265
8883
if test "x$INCLTDL" != "x";then
8266
8884
  INCLTDL='-I${top_builddir}/''libltdl'
8267
8885
fi
8459
9077
s%@CC@%$CC%g
8460
9078
s%@CPP@%$CPP%g
8461
9079
s%@RANLIB@%$RANLIB%g
 
9080
s%@abs_top_builddir@%$abs_top_builddir%g
8462
9081
s%@GMAKE@%$GMAKE%g
8463
9082
s%@MAKE@%$MAKE%g
8464
9083
s%@subdirs@%$subdirs%g
8482
9101
s%@logdir@%$logdir%g
8483
9102
s%@radacctdir@%$radacctdir%g
8484
9103
s%@raddbdir@%$raddbdir%g
 
9104
s%@OPENSSL_INCLUDE@%$OPENSSL_INCLUDE%g
 
9105
s%@OPENSSL_LIBS@%$OPENSSL_LIBS%g
8485
9106
s%@PERL@%$PERL%g
8486
9107
s%@SNMPGET@%$SNMPGET%g
8487
9108
s%@SNMPWALK@%$SNMPWALK%g
8502
9123
s%@LFS_CFLAGS@%$LFS_CFLAGS%g
8503
9124
s%@LFS_LDFLAGS@%$LFS_LDFLAGS%g
8504
9125
s%@LFS_LIBS@%$LFS_LIBS%g
8505
 
s%@top_builddir@%$top_builddir%g
 
9126
s%@HOSTINFO@%$HOSTINFO%g
8506
9127
s%@LIBLTDL@%$LIBLTDL%g
8507
9128
s%@INCLTDL@%$INCLTDL%g
8508
9129
s%@MODULES@%$MODULES%g
8831
9452
      fi
8832
9453
    fi
8833
9454
 
8834
 
    cd $ac_popdir
 
9455
    cd "$ac_popdir"
8835
9456
  done
8836
9457
fi
8837
9458
 
8840
9461
 
8841
9462
 
8842
9463
 
8843
 
 
8844
9464
echo timestamp > src/include/stamp-h
8845
9465
(cd ./src/include && /bin/sh ./build-radpaths-h)
8846
9466
(cd ./src/main   && chmod +x checkrad.pl radlast radtest)
8847
9467
(cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd)
8848
9468
 
8849
 
cat >> src/include/autoconf.h <<EOF
8850
 
 
8851
 
#define HOSTINFO        "$host"
8852
 
#define RADIUSD_VERSION "$RADIUSD_VERSION"
8853
 
EOF
8854
 
 
8855
 
 
8856
 
 
8857
 
 
8858
 
 
8859
 
host=$host
 
9469
 
 
9470
 
 
9471