~ubuntu-branches/ubuntu/gutsy/aide/gutsy-proposed

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Marc Haber
  • Date: 2006-10-20 07:39:25 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20061020073925-0qp33f39socewrj4
Tags: 0.12-2
* first try at dotlocking the cron job. This might be a possible
  solution for #245423.
* Update French (fr) debconf translation.
  Thanks to Gregory Colpart. Closes: #393294
* Update Spanish (es) debconf translation.
  Thanks to Rudy Godoy. Closes: #393781

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
    esac
165
165
fi
166
166
 
 
167
# Check whether static linking has explicitly been disabled
 
168
AC_ARG_ENABLE(static,[  --disable-static        Disable static linking (lowers the security of aide)], [aide_static_choice=$enableval], [aide_static_choice=yes])
 
169
 
 
170
if test "$aide_static_choice" != "yes"; then
 
171
        LD_STATIC_FLAG=""
 
172
fi
 
173
 
167
174
CFLAGS="$CFLAGS $LD_STATIC_FLAG"
168
175
CPPFLAGS="$CPPFLAGS $LD_STATIC_FLAG"
169
176
 
185
192
AC_HEADER_STDC
186
193
AC_CHECK_FUNCS(strtoll strtoimax readdir)
187
194
AIDE_CHECK_READDIR_R_ARGS
188
 
AC_CHECK_FUNCS(stricmp ustat)
 
195
AC_CHECK_FUNCS(stricmp strnstr ustat)
189
196
 
190
197
AC_ARG_WITH(mmap,
191
198
        AC_HELP_STRING([--without-mmap],
194
201
        [AC_CHECK_FUNCS(mmap)]
195
202
)
196
203
 
197
 
AC_CHECK_FUNCS(snprintf vsnprintf)
 
204
AC_CHECK_FUNCS(posix_fadvice snprintf vsnprintf)
198
205
 
199
206
AC_CACHE_CHECK(for ISO C99 compliant snprintf,ac_cv_func_snprintf_c99,
200
207
        [AC_TRY_RUN([
323
330
        [with_zlib=yes]
324
331
)
325
332
 
 
333
AC_ARG_WITH([curl],
 
334
        AC_HELP_STRING([--with-curl],
 
335
                [use curl for http,https and ftp backends]),
 
336
        ,
 
337
        [with_curl=no]
 
338
)
 
339
 
326
340
 
327
341
AC_MSG_CHECKING(for acl-support)
328
342
AC_ARG_WITH(sun-acl,
469
483
  AC_DEFINE(WITH_ZLIB,1,[use zlib])
470
484
fi
471
485
 
 
486
if test x$with_curl = xyes; then
 
487
        AC_PATH_PROG(curlconfig, "curl-config")
 
488
        if test "_$curlconfig" != _ ; then
 
489
                CURL_CFLAGS=`$curlconfig --cflags`
 
490
                CURL_LIBS=`$curlconfig --libs`
 
491
        else
 
492
                AC_MSG_ERROR([You don't have curl properly installed. Install it or try --without-curl.])
 
493
        fi
 
494
  AC_CHECK_HEADERS(curl/curl.h,,
 
495
        [AC_MSG_ERROR([You don't have curl properly installed. Install it or try --without-curl.])])
 
496
#  save_LDFLAGS=$LDFLAGS
 
497
        CFLAGS="$CFLAGS $CURL_CFLAGS"
 
498
  LDFLAGS="$LDFLAGS $CURL_LIBS $LD_STATIC_FLAG"
 
499
  AC_CHECK_LIB(curl,curl_easy_init,havecurl=yes,
 
500
        [AC_MSG_ERROR([You don't have curl properly installed. Install it or try --without-curl.])]
 
501
)
 
502
#  LDFLAGS=$save_LDFLAGS
 
503
  AC_DEFINE(WITH_CURL,1,[use curl])
 
504
        compoptionstring="${compoptionstring}WITH_CURL\\n"],
 
505
fi
 
506
 
472
507
AC_ARG_WITH([gnu-regexp],
473
508
        AC_HELP_STRING([--with-gnu-regexp],
474
509
                [use the bundled GNU regexp library. use only if necessary]),