| 1 |
AC_INIT([dump],[0.4b55],[https://dump.sourceforge.io]) |
| 2 |
AC_PREREQ([2.71]) |
| 3 |
AM_INIT_AUTOMAKE |
| 4 |
AM_SILENT_RULES([no]) |
| 5 |
AC_CONFIG_MACRO_DIR([m4]) |
| 6 |
|
| 7 |
AC_CONFIG_HEADERS([config.h]) |
| 8 |
|
| 9 |
dnl |
| 10 |
dnl Check for programs |
| 11 |
dnl |
| 12 |
AC_PROG_MAKE_SET |
| 13 |
AC_PROG_LN_S |
| 14 |
PKG_PROG_PKG_CONFIG |
| 15 |
AC_PROG_CC |
| 16 |
AC_PROG_CXX |
| 17 |
AC_PROG_INSTALL |
| 18 |
|
| 19 |
AC_USE_SYSTEM_EXTENSIONS |
| 20 |
AC_SYS_LARGEFILE |
| 21 |
AC_CANONICAL_HOST |
| 22 |
|
| 23 |
dnl Has to be after AC_PROG_CC and other core compiler checks. |
| 24 |
LT_INIT |
| 25 |
|
| 26 |
AC_CHECK_HEADERS([sys/types.h]) |
| 27 |
AC_CONFIG_FILES([ |
| 28 |
dump.lsm |
| 29 |
Makefile |
| 30 |
common/Makefile |
| 31 |
compat/lib/Makefile |
| 32 |
dump/Makefile |
| 33 |
restore/Makefile |
| 34 |
rmt/Makefile |
| 35 |
faketape/Makefile |
| 36 |
]) |
| 37 |
|
| 38 |
dnl Used when generating the man pages. Should refresh for each release. |
| 39 |
AC_SUBST([DATE], ["10 Jun 2026"]) |
| 40 |
|
| 41 |
CPPFLAGS="${CPPFLAGS} -D_USE_BSD_SIGNAL "'-D_PATH_DUMPDATES=\"$(DUMPDATESPATH)\" -D_DUMP_VERSION=\"$(VERSION)\"' |
| 42 |
|
| 43 |
CFLAGS="${CFLAGS} -W -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wcast-qual -Wdiscarded-qualifiers -Wwrite-strings" |
| 44 |
CXXFLAGS="${CXXFLAGS} -W -Wall -std=c++20" |
| 45 |
|
| 46 |
dnl |
| 47 |
dnl Handle --disable-werror |
| 48 |
dnl |
| 49 |
AC_MSG_CHECKING([whether to disable werror]) |
| 50 |
AC_ARG_ENABLE([werror], [AS_HELP_STRING([--enable-werror],[Use Werror during compilation @<:@default=no@:>@])]) |
| 51 |
if test "$enable_werror" = "no" |
| 52 |
then |
| 53 |
WERROR_FLAGS="" |
| 54 |
AC_MSG_RESULT([yes]) |
| 55 |
else |
| 56 |
WERROR_FLAGS="-Werror" |
| 57 |
AC_MSG_RESULT([no]) |
| 58 |
fi |
| 59 |
AC_SUBST([WERROR_FLAGS]) |
| 60 |
|
| 61 |
dnl |
| 62 |
dnl Handle --enable-static-progs |
| 63 |
dnl |
| 64 |
AC_MSG_CHECKING([whether to build static binaries]) |
| 65 |
AC_ARG_ENABLE([static-progs], [AS_HELP_STRING([--enable-static-progs],[link dump and restore statically @<:@default=no@:>@])]) |
| 66 |
if test "$enable_static_progs" = "yes" |
| 67 |
then |
| 68 |
LDFLAGS="$LDFLAGS -static" |
| 69 |
PKG_CONFIG="$PKG_CONFIG --static" |
| 70 |
AC_MSG_RESULT([yes]) |
| 71 |
else |
| 72 |
AC_MSG_RESULT([no]) |
| 73 |
fi |
| 74 |
|
| 75 |
dnl |
| 76 |
dnl Handle --enable-rmt |
| 77 |
dnl |
| 78 |
AC_MSG_CHECKING([whether to build rmt]) |
| 79 |
BUILD_RMT=yes |
| 80 |
AC_ARG_ENABLE([rmt], [AS_HELP_STRING([--enable-rmt],[compile and install rmt @<:@default=yes@:>@])]) |
| 81 |
if test "$enable_rmt" = "no"; then |
| 82 |
BUILD_RMT=no |
| 83 |
fi |
| 84 |
AM_CONDITIONAL([BUILD_RMT], [test "$BUILD_RMT" = "yes"]) |
| 85 |
AC_MSG_RESULT([$BUILD_RMT]) |
| 86 |
|
| 87 |
dnl |
| 88 |
dnl Handle --enable-ermt |
| 89 |
dnl |
| 90 |
AC_MSG_CHECKING([whether to build ermt]) |
| 91 |
BUILD_ERMT=no |
| 92 |
AC_ARG_ENABLE([ermt], [AS_HELP_STRING([--enable-ermt],[compile ermt, an encrypting version of rmt @<:@default=no@:>@])]) |
| 93 |
if test "$enable_ermt" = "yes"; then |
| 94 |
if test "$BUILD_RMT" != "yes"; then |
| 95 |
AC_MSG_ERROR([ermt requires --enable-rmt]) |
| 96 |
fi |
| 97 |
BUILD_ERMT=yes |
| 98 |
fi |
| 99 |
AM_CONDITIONAL([BUILD_ERMT], [test "$BUILD_ERMT" = "yes"]) |
| 100 |
AC_MSG_RESULT([$BUILD_ERMT]) |
| 101 |
|
| 102 |
dnl |
| 103 |
dnl Handle --enable-readline |
| 104 |
dnl |
| 105 |
AC_ARG_ENABLE([readline], [AS_HELP_STRING([--enable-readline],[enable readline support in restore @<:@default=yes@:>@])], |
| 106 |
if test "$enableval" = "no" |
| 107 |
then |
| 108 |
READLINE="" |
| 109 |
echo "Not including readline support" |
| 110 |
else |
| 111 |
READLINE="yes" |
| 112 |
AC_DEFINE([HAVE_READLINE],1,[Define if you want to include readline support.]) |
| 113 |
echo "Including readline support" |
| 114 |
fi |
| 115 |
, |
| 116 |
READLINE="yes" |
| 117 |
AC_DEFINE([HAVE_READLINE],1,[Define if you want to include readline support.]) |
| 118 |
echo "Including readline support by default" |
| 119 |
) |
| 120 |
|
| 121 |
dnl |
| 122 |
dnl Handle --enable-qfa |
| 123 |
dnl |
| 124 |
AC_ARG_ENABLE([qfa], [AS_HELP_STRING([--enable-qfa],[enable Quick File Access support @<:@default=yes@:>@])], |
| 125 |
if test "$enableval" = "yes" |
| 126 |
then |
| 127 |
AC_DEFINE([USE_QFA],1,[Define this if you want Quick File Access support.]) |
| 128 |
echo "Enabling Quick File Access support" |
| 129 |
else |
| 130 |
echo "Not enabling Quick File Access support" |
| 131 |
fi |
| 132 |
, |
| 133 |
AC_DEFINE([USE_QFA],1,[Define this if you want Quick File Access support.]) |
| 134 |
echo "Enabling Quick File Access support by default" |
| 135 |
) |
| 136 |
|
| 137 |
dnl |
| 138 |
dnl Handle --enable-macosx |
| 139 |
dnl |
| 140 |
AC_ARG_ENABLE([macosx], [AS_HELP_STRING([--enable-macosx],[include Mac OSX restore compatibility @<:@default=no@:>@])], |
| 141 |
if test "$enableval" = "yes" |
| 142 |
then |
| 143 |
AC_DEFINE([DUMP_MACOSX],1,[Define this if you want to include Mac OSX restore compatibility.]) |
| 144 |
echo "Including Mac OSX restore compatibility code" |
| 145 |
else |
| 146 |
echo "Not including Mac OSX restore compatibility code" |
| 147 |
fi |
| 148 |
, |
| 149 |
echo "Not including Mac OSX restore compatibility code by default" |
| 150 |
) |
| 151 |
|
| 152 |
dnl |
| 153 |
dnl Handle --enable-selinux |
| 154 |
dnl |
| 155 |
AC_ARG_ENABLE([selinux], [AS_HELP_STRING([--enable-selinux],[restore can translate SELinux EAs @<:@default=auto@:>@])]) |
| 156 |
if test "$enable_selinux" != "no"; then |
| 157 |
found_selinux="yes" |
| 158 |
PKG_CHECK_MODULES([SELINUX], [libselinux], [], [ |
| 159 |
found_selinux="no" |
| 160 |
if test "$enable_selinux" = "yes"; then |
| 161 |
AC_MSG_ERROR([SELinux support requested, but not found]) |
| 162 |
fi |
| 163 |
]) |
| 164 |
if test "$found_selinux" != "no"; then |
| 165 |
AC_DEFINE([TRANSSELINUX], 1, [Support SELinux labels]) |
| 166 |
fi |
| 167 |
fi |
| 168 |
|
| 169 |
dnl |
| 170 |
dnl set $(DUMPDATESPATH) from --with-dumpdatespath |
| 171 |
dnl |
| 172 |
AC_ARG_WITH([dumpdatespath], [AS_HELP_STRING([--with-dumpdatespath=PATH],[select path for dumpdates file])], |
| 173 |
AC_MSG_RESULT(DUMPDATESPATH is $withval) |
| 174 |
DUMPDATESPATH=$withval, |
| 175 |
DUMPDATESPATH="${sysconfdir}/dumpdates" |
| 176 |
echo "DUMPDATESPATH defaults to $DUMPDATESPATH" |
| 177 |
)dnl |
| 178 |
AC_SUBST(DUMPDATESPATH) |
| 179 |
|
| 180 |
dnl |
| 181 |
dnl set _PATH_RMT from --with-rmtpath |
| 182 |
dnl |
| 183 |
AC_ARG_WITH([rmtpath], [AS_HELP_STRING([--with-rmtpath=PATH],[select path for rmt program])], |
| 184 |
RMTPATH=$withval, |
| 185 |
RMTPATH='/etc/rmt') |
| 186 |
AC_SUBST(RMTPATH) |
| 187 |
CPPFLAGS="${CPPFLAGS} "'-D_PATH_RMT=\"$(RMTPATH)\"' |
| 188 |
|
| 189 |
dnl |
| 190 |
dnl Check for Ext2fs headers and libraries |
| 191 |
dnl |
| 192 |
PKG_CHECK_MODULES(EXT2FS, [ext2fs]) |
| 193 |
PKG_CHECK_MODULES(COM_ERR, [com_err]) |
| 194 |
|
| 195 |
dnl |
| 196 |
dnl Check for ext2fs_read_inode_full |
| 197 |
dnl |
| 198 |
AC_CHECK_LIB(ext2fs, ext2fs_read_inode_full, [rif=yes], [rif=no]) |
| 199 |
if test "$rif" = yes; then |
| 200 |
AC_DEFINE([HAVE_EXT2FS_READ_INODE_FULL],1,[Define this if your ext2fs libs have the ext2fs_read_inode_full function.]) |
| 201 |
fi |
| 202 |
|
| 203 |
dnl |
| 204 |
dnl Try to use ext2_fs.h header from libext2fs instead of from the kernel |
| 205 |
dnl |
| 206 |
AC_CHECK_HEADERS([ext2fs/ext2_fs.h]) |
| 207 |
|
| 208 |
dnl |
| 209 |
dnl Check for ext2_ino_t type |
| 210 |
dnl |
| 211 |
AC_MSG_CHECKING(for ext2_ino_t type in libext2fs headers) |
| 212 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> |
| 213 |
#ifdef HAVE_EXT2FS_EXT2_FS_H |
| 214 |
#include <ext2fs/ext2_fs.h> |
| 215 |
#else |
| 216 |
#include <linux/ext2_fs.h> |
| 217 |
#endif |
| 218 |
#include <ext2fs/ext2fs.h>]], [[ext2_ino_t ino = 0;]])],[AC_DEFINE([HAVE_EXT2_INO_T],1,[Define if we have the ext2_ino_t type (from e2fsprogs 1.20+).]) |
| 219 |
AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]) |
| 220 |
|
| 221 |
dnl |
| 222 |
dnl Check for s_journal_inum field in ext2_super_block struct |
| 223 |
dnl |
| 224 |
AC_MSG_CHECKING(for s_journal_inum field in ext2_super_block struct) |
| 225 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> |
| 226 |
#ifdef HAVE_EXT2FS_EXT2_FS_H |
| 227 |
#include <ext2fs/ext2_fs.h> |
| 228 |
#else |
| 229 |
#include <linux/ext2_fs.h> |
| 230 |
#endif |
| 231 |
#include <ext2fs/ext2fs.h>]], [[struct ext2_super_block es; es.s_journal_inum = 0;]])],[AC_DEFINE([HAVE_EXT2_JOURNAL_INUM],1,[Define if we have the s_journal_inum field in struct ext2_super_block.]) |
| 232 |
AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]) |
| 233 |
|
| 234 |
dnl |
| 235 |
dnl Check if SEEK_HOLE and SEEK_DATA is supported by lseek |
| 236 |
dnl |
| 237 |
AC_MSG_CHECKING(if SEEK_HOLE and SEEK_DATA is supported by lseek) |
| 238 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], |
| 239 |
[[int sh = SEEK_HOLE; int sd = SEEK_DATA;]])],[AC_DEFINE([HAVE_SEEK_HOLE],1,[Define if SEEK_HOLE and SEEK_DATA are supported by lseek.]) |
| 240 |
AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]) |
| 241 |
|
| 242 |
dnl |
| 243 |
dnl Check for blkid headers libraries |
| 244 |
dnl blkid should always be available on linux so require it unless explicitly disabled |
| 245 |
dnl |
| 246 |
AC_ARG_ENABLE([blkid], [AS_HELP_STRING([--disable-blkid],[enable blkid support])],[enable_blkid=$enableval],[ |
| 247 |
case "$host_os" in |
| 248 |
linux*) |
| 249 |
enable_blkid=yes |
| 250 |
;; |
| 251 |
*) |
| 252 |
enable_blkid= |
| 253 |
;; |
| 254 |
esac |
| 255 |
]) |
| 256 |
if test "$enable_blkid" != "no"; then |
| 257 |
PKG_CHECK_MODULES([BLKID], [blkid], [], [ |
| 258 |
found_blkid="no" |
| 259 |
if test "$enable_blkid" = "yes"; then |
| 260 |
AC_MSG_ERROR([blkid support requested, but not found]) |
| 261 |
fi |
| 262 |
]) |
| 263 |
if test "$found_blkid" != "no"; then |
| 264 |
AC_DEFINE([HAVE_BLKID], 1, [Define this if you have the blkid library.]) |
| 265 |
fi |
| 266 |
fi |
| 267 |
|
| 268 |
AC_ARG_ENABLE([uuid], [AS_HELP_STRING([--disable-uuid],[enable uuid support])]) |
| 269 |
if test "$enable_uuid" != "no"; then |
| 270 |
PKG_CHECK_MODULES([UUID], [uuid], [], [ |
| 271 |
found_uuid="no" |
| 272 |
if test "$enable_uuid" = "yes"; then |
| 273 |
AC_MSG_ERROR([uuid support requested, but not found]) |
| 274 |
fi |
| 275 |
]) |
| 276 |
if test "$found_uuid" != "no"; then |
| 277 |
AC_DEFINE([HAVE_UUID], 1, [Define this if you have the uuid library.]) |
| 278 |
fi |
| 279 |
fi |
| 280 |
|
| 281 |
dnl |
| 282 |
dnl Check for ncurses or termcap libraries |
| 283 |
dnl |
| 284 |
AC_CHECK_LIB(ncurses, tgetent, [ncurses_lib=yes], [ncurses_lib=no]) |
| 285 |
AC_CHECK_LIB(termcap, tgetent, [termcap_lib=yes], [termcap_lib=no]) |
| 286 |
AC_CHECK_LIB(tinfo, tgetent, [tinfo_lib=yes], [tinfo_lib=no]) |
| 287 |
|
| 288 |
if test "$ncurses_lib" = no -a "$termcap_lib" = no -a "$tinfo_lib" = no; then |
| 289 |
if test "$READLINE" = "yes"; then |
| 290 |
AC_MSG_ERROR(You need to install the ncurses or termcap library or configure without --enable-readline) |
| 291 |
fi |
| 292 |
fi |
| 293 |
if test "$tinfo_lib" = yes; then |
| 294 |
rdllib="-ltinfo" |
| 295 |
elif test "$ncurses_lib" = yes; then |
| 296 |
rdllib="-lncurses" |
| 297 |
elif test "$termcap_lib" = yes; then |
| 298 |
rdllib="-ltermcap" |
| 299 |
fi |
| 300 |
|
| 301 |
dnl |
| 302 |
dnl Check for readline headers and libraries |
| 303 |
dnl |
| 304 |
AC_CHECK_HEADER(readline/readline.h, [readline_h=yes], [readline_h=no]) |
| 305 |
AC_CHECK_LIB(readline, readline, [readline_lib=yes], [readline_lib=no], $rdllib) |
| 306 |
if test "$readline_h" = no -o "$readline_lib" = no; then |
| 307 |
if test "$READLINE" = "yes"; then |
| 308 |
AC_MSG_ERROR(You need to install the GNU readline library or configure without --enable-readline) |
| 309 |
fi |
| 310 |
fi |
| 311 |
if test "$READLINE" = yes; then |
| 312 |
READLINE="-lreadline $rdllib" |
| 313 |
fi |
| 314 |
AC_SUBST(READLINE) |
| 315 |
|
| 316 |
dnl |
| 317 |
dnl Check for rl_completion_matches |
| 318 |
dnl |
| 319 |
AC_CHECK_LIB(readline, rl_completion_matches, [rlcm=yes], [rlcm=no], [$rdllib]) |
| 320 |
if test "$rlcm" = yes; then |
| 321 |
AC_DEFINE([HAVE_READLINE_RLCM],1,[Define this if your readline libs have the rl_completion_matches library.]) |
| 322 |
fi |
| 323 |
|
| 324 |
dnl |
| 325 |
dnl Check for rl_completion_append_character |
| 326 |
dnl |
| 327 |
AC_CHECK_LIB(readline, rl_completion_append_character, [rcac=yes], [rcac=no], [$rdllib]) |
| 328 |
if test "$rcac" = yes; then |
| 329 |
AC_DEFINE([HAVE_READLINE_CAC],1,[Define this if your readline libs have the rl_completion_append_character variable.]) |
| 330 |
fi |
| 331 |
|
| 332 |
dnl |
| 333 |
dnl Check for zlib headers and libraries |
| 334 |
dnl |
| 335 |
AC_ARG_ENABLE([zlib], [AS_HELP_STRING([--disable-zlib],[enable zlib compression support])]) |
| 336 |
if test "$enable_zlib" != "no"; then |
| 337 |
PKG_CHECK_MODULES([ZLIB], [zlib], [], [ |
| 338 |
found_zlib="no" |
| 339 |
if test "$enable_zlib" = "yes"; then |
| 340 |
AC_MSG_ERROR([zlib support requested, but not found]) |
| 341 |
fi |
| 342 |
]) |
| 343 |
if test "$found_zlib" != "no"; then |
| 344 |
AC_DEFINE([HAVE_ZLIB], 1, [Include zlib support]) |
| 345 |
fi |
| 346 |
fi |
| 347 |
|
| 348 |
dnl |
| 349 |
dnl Check for bzlib headers and libraries |
| 350 |
dnl |
| 351 |
AC_ARG_ENABLE([bzip2], [AS_HELP_STRING([--disable-bzip2],[enable bzip2 compression support])]) |
| 352 |
BZLIB= |
| 353 |
if test "$enable_bzip2" != "no"; then |
| 354 |
AC_CHECK_HEADER(bzlib.h, [bzlib_h=yes], [bzlib_h=no]) |
| 355 |
AC_CHECK_LIB(bz2, BZ2_bzBuffToBuffCompress, [bzlib_lib=yes], [bzlib_lib=no]) |
| 356 |
|
| 357 |
if test "$bzlib_h" = yes -a "$bzlib_lib" = yes; then |
| 358 |
BZLIB="-lbz2" |
| 359 |
AC_DEFINE([HAVE_BZLIB], 1, [Define this if you have bzlib compression library.]) |
| 360 |
elif test "$enable_bzip2" = "yes"; then |
| 361 |
AC_MSG_ERROR([bzip2 support requested, but not found]) |
| 362 |
fi |
| 363 |
fi |
| 364 |
AC_SUBST(BZLIB) |
| 365 |
|
| 366 |
dnl |
| 367 |
dnl Check for lzo headers and libraries |
| 368 |
dnl |
| 369 |
AC_ARG_ENABLE([lzo], [AS_HELP_STRING([--disable-lzo],[enable lzo compression support])]) |
| 370 |
LZOLIB= |
| 371 |
if test "$enable_lzo" != "no"; then |
| 372 |
AC_CHECK_HEADER(lzo/lzo1x.h, [lzo_h=yes], [lzo_h=no]) |
| 373 |
AC_CHECK_LIB(lzo2, lzo1x_1_compress, [lzo_lib=yes], [lzo_lib=no]) |
| 374 |
|
| 375 |
if test "$lzo_h" = yes -a "$lzo_lib" = yes; then |
| 376 |
LZOLIB="-llzo2" |
| 377 |
AC_DEFINE([HAVE_LZO], 1, [Define this if you have lzo compression library.]) |
| 378 |
elif test "$enable_lzo" = "yes"; then |
| 379 |
AC_MSG_ERROR([lzo support requested, but not found]) |
| 380 |
fi |
| 381 |
fi |
| 382 |
AC_SUBST(LZOLIB) |
| 383 |
|
| 384 |
dnl |
| 385 |
dnl Check for sqlite3 headers and libraries |
| 386 |
dnl |
| 387 |
AC_ARG_ENABLE([sqlite], [AS_HELP_STRING([--disable-sqlite],[disable sqlite indexing support])]) |
| 388 |
SQLITE3= |
| 389 |
if test "$enable_sqlite" != "no"; then |
| 390 |
AC_CHECK_HEADER(sqlite3.h, [sqlite3_h=yes], [sqlite3_h=no]) |
| 391 |
AC_CHECK_LIB(sqlite3, sqlite3_initialize, [sqlite3_lib=yes], [sqlite3_lib=no]) |
| 392 |
if test "$sqlite3_h" = yes -a "$sqlite3_lib" = yes; then |
| 393 |
SQLITE3="-lsqlite3" |
| 394 |
AC_DEFINE([HAVE_SQLITE3],1,[Define this if you have sqlite3 library.]) |
| 395 |
elif test "$enable_sqlite" = "yes"; then |
| 396 |
AC_MSG_ERROR([sqlite support requested, but not found]) |
| 397 |
fi |
| 398 |
fi |
| 399 |
AC_SUBST(SQLITE3) |
| 400 |
|
| 401 |
dnl |
| 402 |
dnl Check for library functions |
| 403 |
dnl |
| 404 |
AC_CHECK_FUNCS(err errx verr verrx vwarn vwarnx warn warnx realpath lchown utimensat) |
| 405 |
AC_CHECK_FUNC(glob) |
| 406 |
|
| 407 |
dnl |
| 408 |
dnl Check for GLOB_ALTDIRFUNC |
| 409 |
dnl |
| 410 |
AC_MSG_CHECKING(for extended glob routines) |
| 411 |
if test "$ac_cv_func_glob" = "yes"; then |
| 412 |
AC_EGREP_CPP(yes, |
| 413 |
[ |
| 414 |
# include <glob.h> |
| 415 |
# ifdef GLOB_ALTDIRFUNC |
| 416 |
yes |
| 417 |
# endif |
| 418 |
], |
| 419 |
[ |
| 420 |
AC_DEFINE([HAVE_GLOB],1,[Define if you have the glob function.]) |
| 421 |
AC_MSG_RESULT(yes) |
| 422 |
], |
| 423 |
[ |
| 424 |
AC_MSG_RESULT(no) |
| 425 |
echo "Your system does not support extended glob, will use the internal routines" |
| 426 |
]) |
| 427 |
fi |
| 428 |
|
| 429 |
dnl |
| 430 |
dnl Check for OpenSSL, for ermt |
| 431 |
dnl |
| 432 |
AC_ARG_ENABLE([ssl], [AS_HELP_STRING([--disable-ssl],[disable ssl support])]) |
| 433 |
if test "$enable_ssl" != "no"; then |
| 434 |
PKG_CHECK_MODULES([SSL], [openssl], [], [ |
| 435 |
found_ssl="no" |
| 436 |
if test "$enable_ssl" = "yes"; then |
| 437 |
AC_MSG_ERROR([OpenSSL support requested, but not found]) |
| 438 |
fi |
| 439 |
]) |
| 440 |
if test "$found_ssl" != "no"; then |
| 441 |
AC_DEFINE([HAVE_OPENSSL], 1, [Include OpenSSL support]) |
| 442 |
fi |
| 443 |
fi |
| 444 |
if test "$ERMT" != "" -a -z "$SSL_LIBS"; then |
| 445 |
AC_MSG_ERROR([You need to install the OpenSSL library (version 0.9.7a or later), or configure without --enable-ermt]) |
| 446 |
fi |
| 447 |
|
| 448 |
dnl |
| 449 |
dnl Check for types |
| 450 |
dnl |
| 451 |
AC_TYPE_INT64_T |
| 452 |
AC_TYPE_UINT64_T |
| 453 |
|
| 454 |
AC_OUTPUT |