~ubuntu-branches/ubuntu/jaunty/freeradius/jaunty-proposed

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2008-09-22 08:42:02 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20080922084202-eyjprg3z55481ha5
Tags: 2.1.0+dfsg-0ubuntu1
* New upstream release.
* Fixes FTBFS issue with new libtool.
* Fixes listen on random port. (LP: #261809)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
# From configure.in Revision: 1.261 .
 
2
# From configure.in Revision.
3
3
# Guess values for system-dependent variables and create Makefiles.
4
4
# Generated by GNU Autoconf 2.61.
5
5
#
851
851
AUTOHEADER
852
852
LOCATE
853
853
DIRNAME
 
854
LIBREADLINE
854
855
REGEX
855
856
REGEX_EXTENDED
856
857
OPENSSL_INCLUDE
858
859
PCAP_LIBS
859
860
LIBPREFIX
860
861
CRYPTLIB
861
 
SNMP_LIBS
862
 
SNMP_INCLUDE
863
862
HOSTINFO
864
863
LIBLTDL
865
864
INCLTDL
1485
1484
  --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1486
1485
  --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1487
1486
  --with-threads          Use threads, if available.  (default=yes)
1488
 
  --with-snmp             Compile in SNMP support. (default=yes)
1489
 
  --with-snmp-include-dir=DIR  Directory to look for include files used by SNMP
1490
1487
  --with-vmps             Compile in VMPS support. (default=yes)
1491
1488
  --with-dhcp             Compile in DHCP support. (default=no)
1492
1489
  --with-static-modules=QUOTED-MODULE-LIST
1497
1494
  --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1498
1495
  --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1499
1496
  --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1500
 
  --with-udpfromto        Compile in UDPFROMTO support. (default=yes)
 
1497
  --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1501
1498
 
1502
1499
Some influential environment variables:
1503
1500
  CC          C compiler command
5541
5538
  ;;
5542
5539
*-*-irix6*)
5543
5540
  # Find out which ABI we are using.
5544
 
  echo '#line 5544 "configure"' > conftest.$ac_ext
 
5541
  echo '#line 5541 "configure"' > conftest.$ac_ext
5545
5542
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546
5543
  (eval $ac_compile) 2>&5
5547
5544
  ac_status=$?
7325
7322
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7326
7323
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7327
7324
   -e 's:$: $lt_compiler_flag:'`
7328
 
   (eval echo "\"\$as_me:7328: $lt_compile\"" >&5)
 
7325
   (eval echo "\"\$as_me:7325: $lt_compile\"" >&5)
7329
7326
   (eval "$lt_compile" 2>conftest.err)
7330
7327
   ac_status=$?
7331
7328
   cat conftest.err >&5
7332
 
   echo "$as_me:7332: \$? = $ac_status" >&5
 
7329
   echo "$as_me:7329: \$? = $ac_status" >&5
7333
7330
   if (exit $ac_status) && test -s "$ac_outfile"; then
7334
7331
     # The compiler can only warn and ignore the option if not recognized
7335
7332
     # So say no if there are warnings other than the usual output.
7593
7590
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7594
7591
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7595
7592
   -e 's:$: $lt_compiler_flag:'`
7596
 
   (eval echo "\"\$as_me:7596: $lt_compile\"" >&5)
 
7593
   (eval echo "\"\$as_me:7593: $lt_compile\"" >&5)
7597
7594
   (eval "$lt_compile" 2>conftest.err)
7598
7595
   ac_status=$?
7599
7596
   cat conftest.err >&5
7600
 
   echo "$as_me:7600: \$? = $ac_status" >&5
 
7597
   echo "$as_me:7597: \$? = $ac_status" >&5
7601
7598
   if (exit $ac_status) && test -s "$ac_outfile"; then
7602
7599
     # The compiler can only warn and ignore the option if not recognized
7603
7600
     # So say no if there are warnings other than the usual output.
7697
7694
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7698
7695
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7699
7696
   -e 's:$: $lt_compiler_flag:'`
7700
 
   (eval echo "\"\$as_me:7700: $lt_compile\"" >&5)
 
7697
   (eval echo "\"\$as_me:7697: $lt_compile\"" >&5)
7701
7698
   (eval "$lt_compile" 2>out/conftest.err)
7702
7699
   ac_status=$?
7703
7700
   cat out/conftest.err >&5
7704
 
   echo "$as_me:7704: \$? = $ac_status" >&5
 
7701
   echo "$as_me:7701: \$? = $ac_status" >&5
7705
7702
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7706
7703
   then
7707
7704
     # The compiler can only warn and ignore the option if not recognized
10005
10002
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10006
10003
  lt_status=$lt_dlunknown
10007
10004
  cat > conftest.$ac_ext <<EOF
10008
 
#line 10008 "configure"
 
10005
#line 10005 "configure"
10009
10006
#include "confdefs.h"
10010
10007
 
10011
10008
#if HAVE_DLFCN_H
10105
10102
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10106
10103
  lt_status=$lt_dlunknown
10107
10104
  cat > conftest.$ac_ext <<EOF
10108
 
#line 10108 "configure"
 
10105
#line 10105 "configure"
10109
10106
#include "confdefs.h"
10110
10107
 
10111
10108
#if HAVE_DLFCN_H
12445
12442
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12446
12443
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12447
12444
   -e 's:$: $lt_compiler_flag:'`
12448
 
   (eval echo "\"\$as_me:12448: $lt_compile\"" >&5)
 
12445
   (eval echo "\"\$as_me:12445: $lt_compile\"" >&5)
12449
12446
   (eval "$lt_compile" 2>conftest.err)
12450
12447
   ac_status=$?
12451
12448
   cat conftest.err >&5
12452
 
   echo "$as_me:12452: \$? = $ac_status" >&5
 
12449
   echo "$as_me:12449: \$? = $ac_status" >&5
12453
12450
   if (exit $ac_status) && test -s "$ac_outfile"; then
12454
12451
     # The compiler can only warn and ignore the option if not recognized
12455
12452
     # So say no if there are warnings other than the usual output.
12549
12546
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12550
12547
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12551
12548
   -e 's:$: $lt_compiler_flag:'`
12552
 
   (eval echo "\"\$as_me:12552: $lt_compile\"" >&5)
 
12549
   (eval echo "\"\$as_me:12549: $lt_compile\"" >&5)
12553
12550
   (eval "$lt_compile" 2>out/conftest.err)
12554
12551
   ac_status=$?
12555
12552
   cat out/conftest.err >&5
12556
 
   echo "$as_me:12556: \$? = $ac_status" >&5
 
12553
   echo "$as_me:12553: \$? = $ac_status" >&5
12557
12554
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12558
12555
   then
12559
12556
     # The compiler can only warn and ignore the option if not recognized
14119
14116
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14120
14117
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14121
14118
   -e 's:$: $lt_compiler_flag:'`
14122
 
   (eval echo "\"\$as_me:14122: $lt_compile\"" >&5)
 
14119
   (eval echo "\"\$as_me:14119: $lt_compile\"" >&5)
14123
14120
   (eval "$lt_compile" 2>conftest.err)
14124
14121
   ac_status=$?
14125
14122
   cat conftest.err >&5
14126
 
   echo "$as_me:14126: \$? = $ac_status" >&5
 
14123
   echo "$as_me:14123: \$? = $ac_status" >&5
14127
14124
   if (exit $ac_status) && test -s "$ac_outfile"; then
14128
14125
     # The compiler can only warn and ignore the option if not recognized
14129
14126
     # So say no if there are warnings other than the usual output.
14223
14220
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14224
14221
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14225
14222
   -e 's:$: $lt_compiler_flag:'`
14226
 
   (eval echo "\"\$as_me:14226: $lt_compile\"" >&5)
 
14223
   (eval echo "\"\$as_me:14223: $lt_compile\"" >&5)
14227
14224
   (eval "$lt_compile" 2>out/conftest.err)
14228
14225
   ac_status=$?
14229
14226
   cat out/conftest.err >&5
14230
 
   echo "$as_me:14230: \$? = $ac_status" >&5
 
14227
   echo "$as_me:14227: \$? = $ac_status" >&5
14231
14228
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14232
14229
   then
14233
14230
     # The compiler can only warn and ignore the option if not recognized
16425
16422
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16426
16423
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16427
16424
   -e 's:$: $lt_compiler_flag:'`
16428
 
   (eval echo "\"\$as_me:16428: $lt_compile\"" >&5)
 
16425
   (eval echo "\"\$as_me:16425: $lt_compile\"" >&5)
16429
16426
   (eval "$lt_compile" 2>conftest.err)
16430
16427
   ac_status=$?
16431
16428
   cat conftest.err >&5
16432
 
   echo "$as_me:16432: \$? = $ac_status" >&5
 
16429
   echo "$as_me:16429: \$? = $ac_status" >&5
16433
16430
   if (exit $ac_status) && test -s "$ac_outfile"; then
16434
16431
     # The compiler can only warn and ignore the option if not recognized
16435
16432
     # So say no if there are warnings other than the usual output.
16693
16690
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16694
16691
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16695
16692
   -e 's:$: $lt_compiler_flag:'`
16696
 
   (eval echo "\"\$as_me:16696: $lt_compile\"" >&5)
 
16693
   (eval echo "\"\$as_me:16693: $lt_compile\"" >&5)
16697
16694
   (eval "$lt_compile" 2>conftest.err)
16698
16695
   ac_status=$?
16699
16696
   cat conftest.err >&5
16700
 
   echo "$as_me:16700: \$? = $ac_status" >&5
 
16697
   echo "$as_me:16697: \$? = $ac_status" >&5
16701
16698
   if (exit $ac_status) && test -s "$ac_outfile"; then
16702
16699
     # The compiler can only warn and ignore the option if not recognized
16703
16700
     # So say no if there are warnings other than the usual output.
16797
16794
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16798
16795
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16799
16796
   -e 's:$: $lt_compiler_flag:'`
16800
 
   (eval echo "\"\$as_me:16800: $lt_compile\"" >&5)
 
16797
   (eval echo "\"\$as_me:16797: $lt_compile\"" >&5)
16801
16798
   (eval "$lt_compile" 2>out/conftest.err)
16802
16799
   ac_status=$?
16803
16800
   cat out/conftest.err >&5
16804
 
   echo "$as_me:16804: \$? = $ac_status" >&5
 
16801
   echo "$as_me:16801: \$? = $ac_status" >&5
16805
16802
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16806
16803
   then
16807
16804
     # The compiler can only warn and ignore the option if not recognized
19679
19676
fi
19680
19677
 
19681
19678
 
19682
 
WITH_SNMP=yes
19683
 
 
19684
 
# Check whether --with-snmp was given.
19685
 
if test "${with_snmp+set}" = set; then
19686
 
  withval=$with_snmp;  case "$withval" in
19687
 
    yes)
19688
 
        ;;
19689
 
    *)
19690
 
        WITH_SNMP=no
19691
 
  esac
19692
 
 
19693
 
fi
19694
 
 
19695
 
 
19696
 
 
19697
 
# Check whether --with-snmp-include-dir was given.
19698
 
if test "${with_snmp_include_dir+set}" = set; then
19699
 
  withval=$with_snmp_include_dir;  case "$withval" in
19700
 
    *)
19701
 
        ;;
19702
 
  esac
19703
 
 
19704
 
fi
19705
 
 
19706
 
 
19707
19679
WITH_VMPS=yes
19708
19680
 
19709
19681
# Check whether --with-vmps was given.
19785
19757
    developer="yes"
19786
19758
fi
19787
19759
 
 
19760
if test "x$developer" != "xno" -a -d $srcdir/.git; then
 
19761
    developer="yes"
 
19762
fi
 
19763
 
19788
19764
EXPERIMENTAL=
19789
19765
 
19790
19766
# Check whether --with-experimental-modules was given.
21114
21090
fi
21115
21091
 
21116
21092
 
 
21093
{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
 
21094
echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
 
21095
if test "${ac_cv_lib_readline_readline+set}" = set; then
 
21096
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21097
else
 
21098
  ac_check_lib_save_LIBS=$LIBS
 
21099
LIBS="-lreadline  $LIBS"
 
21100
cat >conftest.$ac_ext <<_ACEOF
 
21101
/* confdefs.h.  */
 
21102
_ACEOF
 
21103
cat confdefs.h >>conftest.$ac_ext
 
21104
cat >>conftest.$ac_ext <<_ACEOF
 
21105
/* end confdefs.h.  */
 
21106
 
 
21107
/* Override any GCC internal prototype to avoid an error.
 
21108
   Use char because int might match the return type of a GCC
 
21109
   builtin and then its argument prototype would still apply.  */
 
21110
#ifdef __cplusplus
 
21111
extern "C"
 
21112
#endif
 
21113
char readline ();
 
21114
int
 
21115
main ()
 
21116
{
 
21117
return readline ();
 
21118
  ;
 
21119
  return 0;
 
21120
}
 
21121
_ACEOF
 
21122
rm -f conftest.$ac_objext conftest$ac_exeext
 
21123
if { (ac_try="$ac_link"
 
21124
case "(($ac_try" in
 
21125
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21126
  *) ac_try_echo=$ac_try;;
 
21127
esac
 
21128
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21129
  (eval "$ac_link") 2>conftest.er1
 
21130
  ac_status=$?
 
21131
  grep -v '^ *+' conftest.er1 >conftest.err
 
21132
  rm -f conftest.er1
 
21133
  cat conftest.err >&5
 
21134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21135
  (exit $ac_status); } && {
 
21136
         test -z "$ac_c_werror_flag" ||
 
21137
         test ! -s conftest.err
 
21138
       } && test -s conftest$ac_exeext &&
 
21139
       $as_test_x conftest$ac_exeext; then
 
21140
  ac_cv_lib_readline_readline=yes
 
21141
else
 
21142
  echo "$as_me: failed program was:" >&5
 
21143
sed 's/^/| /' conftest.$ac_ext >&5
 
21144
 
 
21145
        ac_cv_lib_readline_readline=no
 
21146
fi
 
21147
 
 
21148
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21149
      conftest$ac_exeext conftest.$ac_ext
 
21150
LIBS=$ac_check_lib_save_LIBS
 
21151
fi
 
21152
{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
 
21153
echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
 
21154
if test $ac_cv_lib_readline_readline = yes; then
 
21155
   LIBREADLINE="-lreadline"
 
21156
fi
 
21157
 
 
21158
 
21117
21159
 
21118
21160
case "$host" in
21119
21161
*-interix*)
21703
21745
 
21704
21746
 
21705
21747
 
 
21748
 
 
21749
 
21706
21750
for ac_header in \
21707
21751
        unistd.h \
21708
21752
        crypt.h \
21732
21776
        fcntl.h \
21733
21777
        sys/fcntl.h \
21734
21778
        sys/prctl.h \
 
21779
        sys/un.h \
 
21780
        readline/readline.h \
21735
21781
        glob.h \
21736
21782
        prot.h \
21737
21783
        pwd.h \
23283
23329
 
23284
23330
 
23285
23331
 
 
23332
 
23286
23333
for ac_func in \
23287
23334
        getopt_long \
23288
23335
        lockf \
23310
23357
        getnameinfo \
23311
23358
        closefrom \
23312
23359
        gettimeofday \
 
23360
        getpeereid \
23313
23361
        strlcat \
23314
23362
        strlcpy
23315
23363
 
23945
23993
fi
23946
23994
 
23947
23995
 
 
23996
    { echo "$as_me:$LINENO: checking for TLS" >&5
 
23997
echo $ECHO_N "checking for TLS... $ECHO_C" >&6; }
 
23998
    if test "$cross_compiling" = yes; then
 
23999
  have_tls=no
 
24000
else
 
24001
  cat >conftest.$ac_ext <<_ACEOF
 
24002
/* confdefs.h.  */
 
24003
_ACEOF
 
24004
cat confdefs.h >>conftest.$ac_ext
 
24005
cat >>conftest.$ac_ext <<_ACEOF
 
24006
/* end confdefs.h.  */
 
24007
 static __thread int val; int main() { return 0; }
 
24008
_ACEOF
 
24009
rm -f conftest$ac_exeext
 
24010
if { (ac_try="$ac_link"
 
24011
case "(($ac_try" in
 
24012
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24013
  *) ac_try_echo=$ac_try;;
 
24014
esac
 
24015
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24016
  (eval "$ac_link") 2>&5
 
24017
  ac_status=$?
 
24018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24019
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24020
  { (case "(($ac_try" in
 
24021
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24022
  *) ac_try_echo=$ac_try;;
 
24023
esac
 
24024
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24025
  (eval "$ac_try") 2>&5
 
24026
  ac_status=$?
 
24027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24028
  (exit $ac_status); }; }; then
 
24029
  have_tls=yes
 
24030
else
 
24031
  echo "$as_me: program exited with status $ac_status" >&5
 
24032
echo "$as_me: failed program was:" >&5
 
24033
sed 's/^/| /' conftest.$ac_ext >&5
 
24034
 
 
24035
( exit $ac_status )
 
24036
have_tls=no
 
24037
fi
 
24038
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24039
fi
 
24040
 
 
24041
 
 
24042
    { echo "$as_me:$LINENO: result: $have_tls" >&5
 
24043
echo "${ECHO_T}$have_tls" >&6; }
 
24044
    if test "$have_tls" = "yes"; then
 
24045
 
 
24046
cat >>confdefs.h <<\_ACEOF
 
24047
#define HAVE_THREAD_TLS 1
 
24048
_ACEOF
 
24049
 
 
24050
    fi
 
24051
 
 
24052
 
 
24053
 
23948
24054
{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23949
24055
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23950
24056
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
24177
24283
 
24178
24284
 
24179
24285
 
24180
 
if test "x$WITH_SNMP" = "xyes"; then
24181
 
 
24182
 
 
24183
 
 
24184
 
 
24185
 
{ echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24186
 
echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
24187
 
 
24188
 
cat >conftest.$ac_ext <<_ACEOF
24189
 
/* confdefs.h.  */
24190
 
_ACEOF
24191
 
cat confdefs.h >>conftest.$ac_ext
24192
 
cat >>conftest.$ac_ext <<_ACEOF
24193
 
/* end confdefs.h.  */
24194
 
 
24195
 
#ifdef HAVE_SYS_TYPES_H
24196
 
#include <sys/types.h>
24197
 
#endif
24198
 
#ifdef HAVE_STDINT_H
24199
 
#include <stdint.h>
24200
 
#endif
24201
 
#ifdef HAVE_STDIO_H
24202
 
#include <stdio.h>
24203
 
#endif
24204
 
#ifdef HAVE_NETDB_H
24205
 
#include <netdb.h>
24206
 
#endif
24207
 
#ifdef HAVE_UNISTD_H
24208
 
#include <unistd.h>
24209
 
#endif
24210
 
#include <ucd-snmp/ucd-snmp-config.h>
24211
 
#include <ucd-snmp/asn1.h>
24212
 
#include <ucd-snmp/snmp.h>
24213
 
#include <ucd-snmp/snmp_impl.h>
24214
 
int
24215
 
main ()
24216
 
{
24217
 
 int a = 1;
24218
 
  ;
24219
 
  return 0;
24220
 
}
24221
 
_ACEOF
24222
 
rm -f conftest.$ac_objext
24223
 
if { (ac_try="$ac_compile"
24224
 
case "(($ac_try" in
24225
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226
 
  *) ac_try_echo=$ac_try;;
24227
 
esac
24228
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24229
 
  (eval "$ac_compile") 2>conftest.er1
24230
 
  ac_status=$?
24231
 
  grep -v '^ *+' conftest.er1 >conftest.err
24232
 
  rm -f conftest.er1
24233
 
  cat conftest.err >&5
24234
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235
 
  (exit $ac_status); } && {
24236
 
         test -z "$ac_c_werror_flag" ||
24237
 
         test ! -s conftest.err
24238
 
       } && test -s conftest.$ac_objext; then
24239
 
  SNMP_INCLUDE="";ucdsnmp=yes
24240
 
else
24241
 
  echo "$as_me: failed program was:" >&5
24242
 
sed 's/^/| /' conftest.$ac_ext >&5
24243
 
 
24244
 
        ucdsnmp=
24245
 
fi
24246
 
 
24247
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24248
 
 
24249
 
if test "x$ucdsnmp" = "x"; then
24250
 
  old_CFLAGS="$CFLAGS"
24251
 
  for try in /usr/include /usr/local/include $snmp_include_dir; do
24252
 
    CFLAGS="$old_CFLAGS -I$try"
24253
 
    cat >conftest.$ac_ext <<_ACEOF
24254
 
/* confdefs.h.  */
24255
 
_ACEOF
24256
 
cat confdefs.h >>conftest.$ac_ext
24257
 
cat >>conftest.$ac_ext <<_ACEOF
24258
 
/* end confdefs.h.  */
24259
 
 
24260
 
#ifdef HAVE_SYS_TYPES_H
24261
 
#include <sys/types.h>
24262
 
#endif
24263
 
#ifdef HAVE_STDINT_H
24264
 
#include <stdint.h>
24265
 
#endif
24266
 
#ifdef HAVE_STDIO_H
24267
 
#include <stdio.h>
24268
 
#endif
24269
 
#ifdef HAVE_NETDB_H
24270
 
#include <netdb.h>
24271
 
#endif
24272
 
#ifdef HAVE_UNISTD_H
24273
 
#include <unistd.h>
24274
 
#endif
24275
 
#include <ucd-snmp/ucd-snmp-config.h>
24276
 
#include <ucd-snmp/asn1.h>
24277
 
#include <ucd-snmp/snmp.h>
24278
 
#include <ucd-snmp/snmp_impl.h>
24279
 
int
24280
 
main ()
24281
 
{
24282
 
 int a = 1;
24283
 
  ;
24284
 
  return 0;
24285
 
}
24286
 
_ACEOF
24287
 
rm -f conftest.$ac_objext
24288
 
if { (ac_try="$ac_compile"
24289
 
case "(($ac_try" in
24290
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24291
 
  *) ac_try_echo=$ac_try;;
24292
 
esac
24293
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24294
 
  (eval "$ac_compile") 2>conftest.er1
24295
 
  ac_status=$?
24296
 
  grep -v '^ *+' conftest.er1 >conftest.err
24297
 
  rm -f conftest.er1
24298
 
  cat conftest.err >&5
24299
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300
 
  (exit $ac_status); } && {
24301
 
         test -z "$ac_c_werror_flag" ||
24302
 
         test ! -s conftest.err
24303
 
       } && test -s conftest.$ac_objext; then
24304
 
  SNMP_INCLUDE="-I$try";ucdsnmp=yes
24305
 
else
24306
 
  echo "$as_me: failed program was:" >&5
24307
 
sed 's/^/| /' conftest.$ac_ext >&5
24308
 
 
24309
 
        ucdsnmp=
24310
 
fi
24311
 
 
24312
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24313
 
    if test "x$ucdsnmp" != "x"; then
24314
 
      break;
24315
 
    fi
24316
 
  done
24317
 
  CFLAGS="$old_CFLAGS"
24318
 
fi
24319
 
 
24320
 
if test "x$ucdsnmp" = "x"; then
24321
 
  old_CFLAGS="$CFLAGS"
24322
 
  for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24323
 
    CFLAGS="$old_CFLAGS -I$try"
24324
 
cat >conftest.$ac_ext <<_ACEOF
24325
 
/* confdefs.h.  */
24326
 
_ACEOF
24327
 
cat confdefs.h >>conftest.$ac_ext
24328
 
cat >>conftest.$ac_ext <<_ACEOF
24329
 
/* end confdefs.h.  */
24330
 
 
24331
 
#ifdef HAVE_SYS_TYPES_H
24332
 
#include <sys/types.h>
24333
 
#endif
24334
 
#ifdef HAVE_STDINT_H
24335
 
#include <stdint.h>
24336
 
#endif
24337
 
#ifdef HAVE_STDIO_H
24338
 
#include <stdio.h>
24339
 
#endif
24340
 
#ifdef HAVE_NETDB_H
24341
 
#include <netdb.h>
24342
 
#endif
24343
 
#ifdef HAVE_UNISTD_H
24344
 
#include <unistd.h>
24345
 
#endif
24346
 
#include <asn1.h>
24347
 
#include <snmp.h>
24348
 
#include <snmp_impl.h>
24349
 
int
24350
 
main ()
24351
 
{
24352
 
 int a = 1;
24353
 
  ;
24354
 
  return 0;
24355
 
}
24356
 
_ACEOF
24357
 
rm -f conftest.$ac_objext
24358
 
if { (ac_try="$ac_compile"
24359
 
case "(($ac_try" in
24360
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361
 
  *) ac_try_echo=$ac_try;;
24362
 
esac
24363
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24364
 
  (eval "$ac_compile") 2>conftest.er1
24365
 
  ac_status=$?
24366
 
  grep -v '^ *+' conftest.er1 >conftest.err
24367
 
  rm -f conftest.er1
24368
 
  cat conftest.err >&5
24369
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370
 
  (exit $ac_status); } && {
24371
 
         test -z "$ac_c_werror_flag" ||
24372
 
         test ! -s conftest.err
24373
 
       } && test -s conftest.$ac_objext; then
24374
 
  SNMP_INCLUDE="";ucdsnmp=no
24375
 
else
24376
 
  echo "$as_me: failed program was:" >&5
24377
 
sed 's/^/| /' conftest.$ac_ext >&5
24378
 
 
24379
 
        ucdsnmp=
24380
 
fi
24381
 
 
24382
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24383
 
    if test "x$ucdsnmp" != "x"; then
24384
 
      break;
24385
 
    fi
24386
 
  done
24387
 
  CFLAGS="$old_CFLAGS"
24388
 
fi
24389
 
 
24390
 
if test "x$ucdsnmp" = "x"; then
24391
 
  old_CFLAGS="$CFLAGS"
24392
 
  for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24393
 
    CFLAGS="$old_CFLAGS -I$try"
24394
 
    cat >conftest.$ac_ext <<_ACEOF
24395
 
/* confdefs.h.  */
24396
 
_ACEOF
24397
 
cat confdefs.h >>conftest.$ac_ext
24398
 
cat >>conftest.$ac_ext <<_ACEOF
24399
 
/* end confdefs.h.  */
24400
 
 
24401
 
#ifdef HAVE_SYS_TYPES_H
24402
 
#include <sys/types.h>
24403
 
#endif
24404
 
#ifdef HAVE_STDINT_H
24405
 
#include <stdint.h>
24406
 
#endif
24407
 
#ifdef HAVE_STDIO_H
24408
 
#include <stdio.h>
24409
 
#endif
24410
 
#ifdef HAVE_NETDB_H
24411
 
#include <netdb.h>
24412
 
#endif
24413
 
#ifdef HAVE_UNISTD_H
24414
 
#include <unistd.h>
24415
 
#endif
24416
 
#include <asn1.h>
24417
 
#include <snmp.h>
24418
 
#include <snmp_impl.h>
24419
 
int
24420
 
main ()
24421
 
{
24422
 
 int a = 1;
24423
 
  ;
24424
 
  return 0;
24425
 
}
24426
 
_ACEOF
24427
 
rm -f conftest.$ac_objext
24428
 
if { (ac_try="$ac_compile"
24429
 
case "(($ac_try" in
24430
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24431
 
  *) ac_try_echo=$ac_try;;
24432
 
esac
24433
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24434
 
  (eval "$ac_compile") 2>conftest.er1
24435
 
  ac_status=$?
24436
 
  grep -v '^ *+' conftest.er1 >conftest.err
24437
 
  rm -f conftest.er1
24438
 
  cat conftest.err >&5
24439
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440
 
  (exit $ac_status); } && {
24441
 
         test -z "$ac_c_werror_flag" ||
24442
 
         test ! -s conftest.err
24443
 
       } && test -s conftest.$ac_objext; then
24444
 
  SNMP_INCLUDE="-I$try";ucdsnmp=no
24445
 
else
24446
 
  echo "$as_me: failed program was:" >&5
24447
 
sed 's/^/| /' conftest.$ac_ext >&5
24448
 
 
24449
 
        ucdsnmp=
24450
 
fi
24451
 
 
24452
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24453
 
    if test "x$ucdsnmp" != "x"; then
24454
 
      break;
24455
 
    fi
24456
 
  done
24457
 
  CFLAGS="$old_CFLAGS"
24458
 
fi
24459
 
 
24460
 
if test "x$ucdsnmp" = "x"; then
24461
 
  { echo "$as_me:$LINENO: result: no" >&5
24462
 
echo "${ECHO_T}no" >&6; }
24463
 
else
24464
 
  if test "x$ucdsnmp" = "xyes"; then
24465
 
    { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24466
 
echo "${ECHO_T}(ucd-snmp)yes" >&6; }
24467
 
 
24468
 
cat >>confdefs.h <<\_ACEOF
24469
 
#define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24470
 
_ACEOF
24471
 
 
24472
 
  else
24473
 
    { echo "$as_me:$LINENO: result: yes" >&5
24474
 
echo "${ECHO_T}yes" >&6; }
24475
 
 
24476
 
cat >>confdefs.h <<\_ACEOF
24477
 
#define HAVE_ASN1_SNMP_SNMPIMPL_H
24478
 
_ACEOF
24479
 
 
24480
 
  fi
24481
 
  { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24482
 
echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
24483
 
 
24484
 
  old_LIBS="$LIBS"
24485
 
  LIBS="$old_LIBS -lsnmp"
24486
 
  cat >conftest.$ac_ext <<_ACEOF
24487
 
/* confdefs.h.  */
24488
 
_ACEOF
24489
 
cat confdefs.h >>conftest.$ac_ext
24490
 
cat >>conftest.$ac_ext <<_ACEOF
24491
 
/* end confdefs.h.  */
24492
 
extern char snmp_build_var_op();
24493
 
int
24494
 
main ()
24495
 
{
24496
 
 snmp_build_var_op()
24497
 
  ;
24498
 
  return 0;
24499
 
}
24500
 
_ACEOF
24501
 
rm -f conftest.$ac_objext conftest$ac_exeext
24502
 
if { (ac_try="$ac_link"
24503
 
case "(($ac_try" in
24504
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505
 
  *) ac_try_echo=$ac_try;;
24506
 
esac
24507
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24508
 
  (eval "$ac_link") 2>conftest.er1
24509
 
  ac_status=$?
24510
 
  grep -v '^ *+' conftest.er1 >conftest.err
24511
 
  rm -f conftest.er1
24512
 
  cat conftest.err >&5
24513
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514
 
  (exit $ac_status); } && {
24515
 
         test -z "$ac_c_werror_flag" ||
24516
 
         test ! -s conftest.err
24517
 
       } && test -s conftest$ac_exeext &&
24518
 
       $as_test_x conftest$ac_exeext; then
24519
 
  SNMP_LIBS="-lsnmp"
24520
 
else
24521
 
  echo "$as_me: failed program was:" >&5
24522
 
sed 's/^/| /' conftest.$ac_ext >&5
24523
 
 
24524
 
        SNMP_LIBS=
24525
 
fi
24526
 
 
24527
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24528
 
      conftest$ac_exeext conftest.$ac_ext
24529
 
 
24530
 
  if test "x$SNMP_LIBS" = "x"; then
24531
 
    for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24532
 
      LIBS="$old_LIBS -L$try -lsnmp"
24533
 
      cat >conftest.$ac_ext <<_ACEOF
24534
 
/* confdefs.h.  */
24535
 
_ACEOF
24536
 
cat confdefs.h >>conftest.$ac_ext
24537
 
cat >>conftest.$ac_ext <<_ACEOF
24538
 
/* end confdefs.h.  */
24539
 
extern char snmp_build_var_op();
24540
 
int
24541
 
main ()
24542
 
{
24543
 
 snmp_build_var_op()
24544
 
  ;
24545
 
  return 0;
24546
 
}
24547
 
_ACEOF
24548
 
rm -f conftest.$ac_objext conftest$ac_exeext
24549
 
if { (ac_try="$ac_link"
24550
 
case "(($ac_try" in
24551
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552
 
  *) ac_try_echo=$ac_try;;
24553
 
esac
24554
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555
 
  (eval "$ac_link") 2>conftest.er1
24556
 
  ac_status=$?
24557
 
  grep -v '^ *+' conftest.er1 >conftest.err
24558
 
  rm -f conftest.er1
24559
 
  cat conftest.err >&5
24560
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561
 
  (exit $ac_status); } && {
24562
 
         test -z "$ac_c_werror_flag" ||
24563
 
         test ! -s conftest.err
24564
 
       } && test -s conftest$ac_exeext &&
24565
 
       $as_test_x conftest$ac_exeext; then
24566
 
  SNMP_LIBS="-L$try -lsnmp"
24567
 
else
24568
 
  echo "$as_me: failed program was:" >&5
24569
 
sed 's/^/| /' conftest.$ac_ext >&5
24570
 
 
24571
 
        SNMP_LIBS=
24572
 
fi
24573
 
 
24574
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24575
 
      conftest$ac_exeext conftest.$ac_ext
24576
 
      if test "x$SNMP_LIBS" != "x"; then
24577
 
        break;
24578
 
      fi
24579
 
      LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24580
 
      cat >conftest.$ac_ext <<_ACEOF
24581
 
/* confdefs.h.  */
24582
 
_ACEOF
24583
 
cat confdefs.h >>conftest.$ac_ext
24584
 
cat >>conftest.$ac_ext <<_ACEOF
24585
 
/* end confdefs.h.  */
24586
 
extern char snmp_build_var_op();
24587
 
int
24588
 
main ()
24589
 
{
24590
 
 snmp_build_var_op()
24591
 
  ;
24592
 
  return 0;
24593
 
}
24594
 
_ACEOF
24595
 
rm -f conftest.$ac_objext conftest$ac_exeext
24596
 
if { (ac_try="$ac_link"
24597
 
case "(($ac_try" in
24598
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599
 
  *) ac_try_echo=$ac_try;;
24600
 
esac
24601
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602
 
  (eval "$ac_link") 2>conftest.er1
24603
 
  ac_status=$?
24604
 
  grep -v '^ *+' conftest.er1 >conftest.err
24605
 
  rm -f conftest.er1
24606
 
  cat conftest.err >&5
24607
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608
 
  (exit $ac_status); } && {
24609
 
         test -z "$ac_c_werror_flag" ||
24610
 
         test ! -s conftest.err
24611
 
       } && test -s conftest$ac_exeext &&
24612
 
       $as_test_x conftest$ac_exeext; then
24613
 
  SNMP_LIBS="-L$try -lsnmp -lcrypto"
24614
 
else
24615
 
  echo "$as_me: failed program was:" >&5
24616
 
sed 's/^/| /' conftest.$ac_ext >&5
24617
 
 
24618
 
        SNMP_LIBS=
24619
 
fi
24620
 
 
24621
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24622
 
      conftest$ac_exeext conftest.$ac_ext
24623
 
      if test "x$SNMP_LIBS" != "x"; then
24624
 
        break;
24625
 
      fi
24626
 
      LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24627
 
      cat >conftest.$ac_ext <<_ACEOF
24628
 
/* confdefs.h.  */
24629
 
_ACEOF
24630
 
cat confdefs.h >>conftest.$ac_ext
24631
 
cat >>conftest.$ac_ext <<_ACEOF
24632
 
/* end confdefs.h.  */
24633
 
extern char snmp_build_var_op();
24634
 
int
24635
 
main ()
24636
 
{
24637
 
 snmp_build_var_op()
24638
 
  ;
24639
 
  return 0;
24640
 
}
24641
 
_ACEOF
24642
 
rm -f conftest.$ac_objext conftest$ac_exeext
24643
 
if { (ac_try="$ac_link"
24644
 
case "(($ac_try" in
24645
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24646
 
  *) ac_try_echo=$ac_try;;
24647
 
esac
24648
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24649
 
  (eval "$ac_link") 2>conftest.er1
24650
 
  ac_status=$?
24651
 
  grep -v '^ *+' conftest.er1 >conftest.err
24652
 
  rm -f conftest.er1
24653
 
  cat conftest.err >&5
24654
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655
 
  (exit $ac_status); } && {
24656
 
         test -z "$ac_c_werror_flag" ||
24657
 
         test ! -s conftest.err
24658
 
       } && test -s conftest$ac_exeext &&
24659
 
       $as_test_x conftest$ac_exeext; then
24660
 
  SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24661
 
else
24662
 
  echo "$as_me: failed program was:" >&5
24663
 
sed 's/^/| /' conftest.$ac_ext >&5
24664
 
 
24665
 
        SNMP_LIBS=
24666
 
fi
24667
 
 
24668
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24669
 
      conftest$ac_exeext conftest.$ac_ext
24670
 
      if test "x$SNMP_LIBS" != "x"; then
24671
 
        break;
24672
 
      fi
24673
 
    done
24674
 
  fi
24675
 
  LIBS="$old_LIBS"
24676
 
 
24677
 
          CFLAGS="$old_CFLAGS"
24678
 
  if test "x$SNMP_LIBS" = "x"; then
24679
 
    { echo "$as_me:$LINENO: result: no" >&5
24680
 
echo "${ECHO_T}no" >&6; }
24681
 
    SNMP_INCLUDE=
24682
 
  else
24683
 
    { echo "$as_me:$LINENO: result: yes" >&5
24684
 
echo "${ECHO_T}yes" >&6; }
24685
 
 
24686
 
cat >>confdefs.h <<\_ACEOF
24687
 
#define WITH_SNMP
24688
 
_ACEOF
24689
 
 
24690
 
 
24691
 
cat >>confdefs.h <<\_ACEOF
24692
 
#define HAVE_LIBSNMP
24693
 
_ACEOF
24694
 
 
24695
 
  fi
24696
 
fi
24697
 
 
24698
 
fi
24699
 
 
24700
24286
 
24701
24287
cat >>confdefs.h <<\_ACEOF
24702
24288
#define GNUSTYLE 1
26074
25660
AUTOHEADER!$AUTOHEADER$ac_delim
26075
25661
LOCATE!$LOCATE$ac_delim
26076
25662
DIRNAME!$DIRNAME$ac_delim
 
25663
LIBREADLINE!$LIBREADLINE$ac_delim
26077
25664
REGEX!$REGEX$ac_delim
26078
25665
REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26079
25666
OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26081
25668
PCAP_LIBS!$PCAP_LIBS$ac_delim
26082
25669
LIBPREFIX!$LIBPREFIX$ac_delim
26083
25670
CRYPTLIB!$CRYPTLIB$ac_delim
26084
 
SNMP_LIBS!$SNMP_LIBS$ac_delim
26085
 
SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
26086
25671
HOSTINFO!$HOSTINFO$ac_delim
26087
25672
LIBLTDL!$LIBLTDL$ac_delim
26088
25673
INCLTDL!$INCLTDL$ac_delim
26089
25674
subdirs!$subdirs$ac_delim
26090
25675
MODULES!$MODULES$ac_delim
 
25676
INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26091
25677
_ACEOF
26092
25678
 
26093
25679
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26129
25715
ac_delim='%!_!# '
26130
25716
for ac_last_try in false false false false false :; do
26131
25717
  cat >conf$$subs.sed <<_ACEOF
26132
 
INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26133
25718
USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26134
25719
USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26135
25720
STATIC_MODULES!$STATIC_MODULES$ac_delim
26140
25725
LTLIBOBJS!$LTLIBOBJS$ac_delim
26141
25726
_ACEOF
26142
25727
 
26143
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
 
25728
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
26144
25729
    break
26145
25730
  elif $ac_last_try; then
26146
25731
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26541
26126
    "stamp-h":C) echo timestamp > src/include/stamp-h ;;
26542
26127
    "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26543
26128
    "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
26544
 
    "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
 
26129
    "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26545
26130
 
26546
26131
  esac
26547
26132
done # for ac_tag