~ubuntu-branches/ubuntu/natty/freeradius/natty-updates

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Josip Rodin
  • Date: 2009-11-23 03:57:37 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20091123035737-zsgtzhfych8hir68
Tags: 2.1.7+dfsg-1
* Adopting the package, closes: #536623.
* New upstream version, closes: #513484.
  + Fixes the blooper in unlang evaluation logic, closes: #526175.
* Used quilt (and added README.source), and moved upstream file patching
  into debian/patches/. The source is no longer in collab-maint git
  (to make it simpler for me to finally get this out the door), but
  kept the .gitignore should we need that again.
* Dropped the dialup_admin/bin/backup_radacct patch (integrated upstream).
* Dropped the raddb/Makefile patch (problem no longer exists upstream).
* Dropped the lib/packet.c lib/radius.c main/listen.c patches (was from
  upstream 2.0.5 anyway).
* Dropped references to otp.conf, it no longer exists upstream.
  Keep removing the conffile statoverride in prerm.
* Dropped references to snmp.conf, it no longer exists upstream.
  Keep removing the conffile statoverride in prerm.
* Ship /etc/freeradius/modules/* in the freeradius package.
* Stop shipping sites-enabled symlinks in the package and instead create
  them only on initial install, thanks to Matej Vela, closes: #533396.
* Add export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" to the init script
  at the request of John Morrissey, closes: #550143.
* Stop installing /var/run/freeradius in the package to silence Lintian.
  The init script already recreates it at will.
* Remove executable bit from example.pl to silence Lintian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
export CFLAGS LIBS LDFLAGS CPPFLAGS
25
25
AC_INIT(src/main/radiusd.c)
26
26
AC_CONFIG_HEADER(src/include/autoconf.h)
27
 
AC_REVISION($Revision: 1.262 $)dnl
 
27
AC_REVISION($Revision$)dnl
28
28
 
29
29
dnl # The version of the software
30
30
RADIUSD_VERSION=`cat VERSION`
72
72
                from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing.)
73
73
fi
74
74
 
75
 
dnl libltdl is installable
 
75
AC_ARG_WITH(system-libtldl,
 
76
[  --with-system-libtldl   Use the libtltdl installed in your system (default=use our own)],
 
77
[
 
78
LIBLTDL="-ltdl"
 
79
INCLTDL=
 
80
LTDL_SUBDIRS=
 
81
],
 
82
[
76
83
AC_LIBLTDL_INSTALLABLE
77
84
 
78
85
dnl tell Makefile to build ltdl if needed
79
86
if test x"$enable_ltdl_install" = x"yes"; then
80
87
  LTDL_SUBDIRS=libltdl
81
88
fi
 
89
])
82
90
AC_SUBST(LTDL_SUBDIRS)
83
91
 
84
92
dnl use system-wide libtool, if it exists
85
93
AC_ARG_WITH(system-libtool,
86
 
[  --with-system-libtool              try to use libtool installed in your system [default=use our own]],
 
94
[  --with-system-libtool   Use the libtool installed in your system (default=use our own)],
87
95
[ AC_PATH_PROG(LIBTOOL, libtool,,$PATH:/usr/local/bin) ],
88
96
[
89
97
  LIBTOOL="`pwd`/libtool"
224
232
  esac ]
225
233
)
226
234
 
227
 
dnl extra argument: --with-snmp
228
 
WITH_SNMP=yes
229
 
AC_ARG_WITH(snmp,
230
 
[  --with-snmp             Compile in SNMP support. (default=yes)],
231
 
[ case "$withval" in
232
 
    yes)
233
 
        ;;
234
 
    *)
235
 
        WITH_SNMP=no
236
 
  esac ]
237
 
)
238
 
 
239
 
dnl #
240
 
dnl # extra argument: --with-snmp-include-dir
241
 
dnl #
242
 
AC_ARG_WITH(snmp-include-dir,
243
 
[  --with-snmp-include-dir=DIR  Directory to look for include files used by SNMP],
244
 
[ case "$withval" in
245
 
    *)
246
 
        ;;
247
 
  esac ]
248
 
)
249
 
 
250
235
dnl extra argument: --with-vmps
251
236
WITH_VMPS=yes
252
237
AC_ARG_WITH(vmps,
314
299
  developer="yes"
315
300
fi
316
301
 
 
302
if test "x$developer" != "xno" -a -d $srcdir/.git; then
 
303
  dnl turn on the developer flag when taken from a git checkout (not a release)
 
304
  developer="yes"
 
305
fi
 
306
 
317
307
dnl extra argument: --with-experimental-modules
318
308
EXPERIMENTAL=
319
309
AC_ARG_WITH(experimental-modules,
413
403
dnl extra argument: --with-udpfromto
414
404
WITH_UDPFROMTO=no
415
405
AC_ARG_WITH(udpfromto,
416
 
[  --with-udpfromto        Compile in UDPFROMTO support. (default=yes)],
 
406
[  --with-udpfromto        Compile in UDPFROMTO support. (default=no)],
417
407
[ case "$withval" in
418
408
    yes)
419
409
        WITH_UDPFROMTO=yes
562
552
        ],
563
553
        [ AC_MSG_WARN([pcap library not found, silently disabling the RADIUS sniffer.]) ])
564
554
 
 
555
AC_LIB_READLINE
 
556
 
565
557
dnl #############################################################
566
558
dnl #
567
559
dnl #  3. Checks for header files
617
609
        fcntl.h \
618
610
        sys/fcntl.h \
619
611
        sys/prctl.h \
 
612
        sys/un.h \
620
613
        glob.h \
621
614
        prot.h \
622
615
        pwd.h \
840
833
        getnameinfo \
841
834
        closefrom \
842
835
        gettimeofday \
 
836
        getpeereid \
 
837
        setuid \
 
838
        setresuid \
 
839
        getresuid \
843
840
        strlcat \
844
841
        strlcpy
845
842
)
925
922
  AC_MSG_RESULT(no.)
926
923
fi
927
924
 
 
925
FR_TLS
 
926
 
928
927
dnl #############################################################
929
928
dnl #
930
929
dnl #  7. Checks for library functions
948
947
)
949
948
AC_SUBST(CRYPTLIB)
950
949
 
951
 
if test "x$WITH_SNMP" = "xyes"; then
952
 
  SNMP_CHECKS
953
 
fi
954
 
 
955
950
dnl Check the style of gethostbyaddr, in order of preference
956
951
dnl GNU (_r eight args)
957
952
AC_DEFINE(GNUSTYLE, [1], [GNU-Style get*byaddr_r])
1165
1160
AC_CONFIG_COMMANDS([stamp-h], [echo timestamp > src/include/stamp-h])
1166
1161
AC_CONFIG_COMMANDS([build-radpaths-h], [(cd ./src/include && /bin/sh ./build-radpaths-h)])
1167
1162
AC_CONFIG_COMMANDS([main-chmod], [(cd ./src/main   && chmod +x checkrad.pl radlast radtest)])
1168
 
AC_CONFIG_COMMANDS([scripts-chmod], [(cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd)])
 
1163
AC_CONFIG_COMMANDS([scripts-chmod], [(cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd)])
1169
1164
 
1170
1165
dnl #
1171
1166
dnl #  Substitute whatever libraries we found to be necessary
1195
1190
        ./scripts/radiusd.cron.monthly \
1196
1191
        ./scripts/cryptpasswd \
1197
1192
        ./raddb/dictionary \
 
1193
        ./raddb/radrelay.conf \
1198
1194
        ./raddb/radiusd.conf
1199
1195
)