1 | dnl aclocal.m4 generated automatically by aclocal 1.3
|
---|
2 |
|
---|
3 | dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
---|
4 | dnl This Makefile.in is free software; the Free Software Foundation
|
---|
5 | dnl gives unlimited permission to copy and/or distribute it,
|
---|
6 | dnl with or without modifications, as long as this notice is preserved.
|
---|
7 |
|
---|
8 | dnl This program is distributed in the hope that it will be useful,
|
---|
9 | dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
---|
10 | dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
---|
11 | dnl PARTICULAR PURPOSE.
|
---|
12 |
|
---|
13 | #
|
---|
14 | # Check to make sure that the build environment is sane.
|
---|
15 | #
|
---|
16 | AC_DEFUN([AM_INIT_AUTOMAKE],
|
---|
17 | [
|
---|
18 | AC_REQUIRE([AC_PROG_INSTALL])
|
---|
19 | PACKAGE=[$1]
|
---|
20 | AC_SUBST(PACKAGE)
|
---|
21 | VERSION=[$2]
|
---|
22 | AC_SUBST(VERSION)
|
---|
23 | dnl test to see if srcdir already configured
|
---|
24 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
---|
25 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
---|
26 | fi
|
---|
27 | ifelse([$3],,
|
---|
28 | AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
|
---|
29 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
|
---|
30 | AC_REQUIRE([AC_PROG_MAKE_SET])])
|
---|
31 |
|
---|
32 |
|
---|
33 | # Define a conditional.
|
---|
34 |
|
---|
35 | AC_DEFUN([AM_CONDITIONAL],
|
---|
36 | [AC_SUBST($1_TRUE)
|
---|
37 | AC_SUBST($1_FALSE)
|
---|
38 | if $2; then
|
---|
39 | $1_TRUE=
|
---|
40 | $1_FALSE='#'
|
---|
41 | else
|
---|
42 | $1_TRUE='#'
|
---|
43 | $1_FALSE=
|
---|
44 | fi])
|
---|
45 |
|
---|
46 |
|
---|
47 | AC_DEFUN([sh_run_prog],
|
---|
48 | [if test "$cross_compiling" = "yes"; then
|
---|
49 | AC_MSG_ERROR([Can not probe non-portable values when cross compiling])
|
---|
50 | fi
|
---|
51 | cat > conftest.$ac_ext <<EOF
|
---|
52 | [#]line __oline__ "configure"
|
---|
53 | #include "confdefs.h"
|
---|
54 | ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
|
---|
55 | extern "C" void exit(int);
|
---|
56 | #endif
|
---|
57 | ])
|
---|
58 | [$1]
|
---|
59 | EOF
|
---|
60 | if AC_TRY_EVAL(ac_link) && test -s conftest && $2=`(./conftest 2>/dev/null)`
|
---|
61 | then
|
---|
62 | dnl Don't remove the temporary files here, so they can be examined.
|
---|
63 | ifelse([$3], , :, [$3])
|
---|
64 | else
|
---|
65 | echo "configure: failed program was:" >&AC_FD_CC
|
---|
66 | cat conftest.$ac_ext >&AC_FD_CC
|
---|
67 | ifelse([$4], , , [ rm -fr conftest*
|
---|
68 | $4
|
---|
69 | ])
|
---|
70 | fi
|
---|
71 | rm -fr conftest* ])
|
---|
72 |
|
---|
73 | dnl fs type number of the proc filing system
|
---|
74 | AC_DEFUN([sh_procfs_id],
|
---|
75 | [AC_MSG_CHECKING([f_type of /proc])
|
---|
76 | AC_CACHE_VAL([sh_cv_proc_fstype],
|
---|
77 | [sh_run_prog(
|
---|
78 | changequote(<<, >>)dnl
|
---|
79 | <<#include <stdio.h>
|
---|
80 | #ifdef HAVE_STDLIB_H
|
---|
81 | #include <stdlib.h>
|
---|
82 | #endif /* HAVE_STDLIB_H */
|
---|
83 | #ifdef HAVE_UNISTD_H
|
---|
84 | #include <unistd.h>
|
---|
85 | #endif /* HAVE_UNISTD_H */
|
---|
86 | #ifdef HAVE_SYS_VFS_H
|
---|
87 | #include <sys/vfs.h>
|
---|
88 | #endif
|
---|
89 | #ifndef Q
|
---|
90 | #define __Q(x) #x
|
---|
91 | #define Q(x) __Q(x)
|
---|
92 | #endif
|
---|
93 | int main(void)
|
---|
94 | {
|
---|
95 | struct statfs fsbuf;
|
---|
96 | long ft;
|
---|
97 | if (statfs("/", &fsbuf)!=0)
|
---|
98 | exit(1);
|
---|
99 | ft=fsbuf.f_type;
|
---|
100 | if (statfs("/proc/1", &fsbuf)!=0)
|
---|
101 | exit(1);
|
---|
102 | if (ft!=fsbuf.f_type)
|
---|
103 | printf("0x%08lx", fsbuf.f_type);
|
---|
104 | else
|
---|
105 | puts("statfs useless");
|
---|
106 | exit(0);
|
---|
107 | } >>
|
---|
108 | changequote([, ]), sh_cv_proc_fstype,, sh_cv_proc_fstype="a fatal error occured")])
|
---|
109 | AC_MSG_RESULT($sh_cv_proc_fstype)
|
---|
110 | if test "${sh_cv_proc_fstype}" = "a fatal error occured"; then
|
---|
111 | $1=$2
|
---|
112 | $4
|
---|
113 | else if test "${sh_cv_proc_fstype}" = "statfs useless"; then
|
---|
114 | $1=$2
|
---|
115 | $4
|
---|
116 | else
|
---|
117 | $1=$sh_cv_proc_fstype
|
---|
118 | $3
|
---|
119 | fi; fi ])
|
---|
120 |
|
---|
121 | # Check whether mlock is broken (hpux 10.20 raises a SIGBUS if mlock
|
---|
122 | # is not called from uid 0 (not tested whether uid 0 works)
|
---|
123 | dnl AC_CHECK_MLOCK
|
---|
124 | dnl
|
---|
125 | define([AC_CHECK_MLOCK],
|
---|
126 | [ AC_CHECK_FUNCS(mlock)
|
---|
127 | if test "$ac_cv_func_mlock" = "yes"; then
|
---|
128 | AC_MSG_CHECKING(whether mlock is broken)
|
---|
129 | AC_CACHE_VAL(ac_cv_have_broken_mlock,
|
---|
130 | AC_TRY_RUN([
|
---|
131 | #include <stdlib.h>
|
---|
132 | #include <unistd.h>
|
---|
133 | #include <errno.h>
|
---|
134 | #include <sys/mman.h>
|
---|
135 | #include <sys/types.h>
|
---|
136 | #include <fcntl.h>
|
---|
137 |
|
---|
138 | int main()
|
---|
139 | {
|
---|
140 | char *pool;
|
---|
141 | int err;
|
---|
142 | long int pgsize = getpagesize();
|
---|
143 |
|
---|
144 | pool = malloc( 4096 + pgsize );
|
---|
145 | if( !pool )
|
---|
146 | return 2;
|
---|
147 | pool += (pgsize - ((long int)pool % pgsize));
|
---|
148 |
|
---|
149 | err = mlock( pool, 4096 );
|
---|
150 | if( !err || errno == EPERM )
|
---|
151 | return 0; /* okay */
|
---|
152 |
|
---|
153 | return 1; /* hmmm */
|
---|
154 | }
|
---|
155 |
|
---|
156 | ],
|
---|
157 | ac_cv_have_broken_mlock="no",
|
---|
158 | ac_cv_have_broken_mlock="yes",
|
---|
159 | ac_cv_have_broken_mlock="assume-no"
|
---|
160 | )
|
---|
161 | )
|
---|
162 | if test "$ac_cv_have_broken_mlock" = "yes"; then
|
---|
163 | AC_DEFINE(HAVE_BROKEN_MLOCK)
|
---|
164 | AC_MSG_RESULT(yes)
|
---|
165 | else
|
---|
166 | if test "$ac_cv_have_broken_mlock" = "no"; then
|
---|
167 | AC_MSG_RESULT(no)
|
---|
168 | else
|
---|
169 | AC_MSG_RESULT(assuming no)
|
---|
170 | fi
|
---|
171 | fi
|
---|
172 | fi
|
---|
173 | ])
|
---|
174 |
|
---|
175 | dnl @synopsis AC_FUNC_VSNPRINTF
|
---|
176 | dnl
|
---|
177 | dnl Check whether there is a reasonably sane vsnprintf() function installed.
|
---|
178 | dnl "Reasonably sane" in this context means never clobbering memory beyond
|
---|
179 | dnl the buffer supplied, and having a sensible return value. It is
|
---|
180 | dnl explicitly allowed not to NUL-terminate the return value, however.
|
---|
181 | dnl
|
---|
182 | dnl @version $Id: ac_func_vsnprintf.m4,v 1.1 2001/07/26 02:00:21 guidod Exp $
|
---|
183 | dnl @author Gaute Strokkenes <gs234@cam.ac.uk>
|
---|
184 | dnl
|
---|
185 | AC_DEFUN([SL_CHECK_VSNPRINTF],
|
---|
186 | [AC_CACHE_CHECK(for working vsnprintf,
|
---|
187 | ac_cv_func_vsnprintf,
|
---|
188 | [AC_TRY_RUN(
|
---|
189 | [#include <stdio.h>
|
---|
190 | #include <stdarg.h>
|
---|
191 |
|
---|
192 | int
|
---|
193 | doit(char * s, ...)
|
---|
194 | {
|
---|
195 | char buffer[32];
|
---|
196 | va_list args;
|
---|
197 | int r;
|
---|
198 |
|
---|
199 | buffer[5] = 'X';
|
---|
200 |
|
---|
201 | va_start(args, s);
|
---|
202 | r = vsnprintf(buffer, 5, s, args);
|
---|
203 | va_end(args);
|
---|
204 |
|
---|
205 | /* -1 is pre-C99, 7 is C99. R.W. 17.01.2003 disallow -1 */
|
---|
206 |
|
---|
207 | if (r != 7)
|
---|
208 | exit(1);
|
---|
209 |
|
---|
210 | /* We deliberately do not care if the result is NUL-terminated or
|
---|
211 | not, since this is easy to work around like this. */
|
---|
212 |
|
---|
213 | buffer[4] = 0;
|
---|
214 |
|
---|
215 | /* Simple sanity check. */
|
---|
216 |
|
---|
217 | if (strcmp(buffer, "1234"))
|
---|
218 | exit(1);
|
---|
219 |
|
---|
220 | if (buffer[5] != 'X')
|
---|
221 | exit(1);
|
---|
222 |
|
---|
223 | exit(0);
|
---|
224 | }
|
---|
225 |
|
---|
226 | int
|
---|
227 | main(void)
|
---|
228 | {
|
---|
229 | doit("1234567");
|
---|
230 | exit(1);
|
---|
231 | }], ac_cv_func_vsnprintf=yes, ac_cv_func_vsnprintf=no, ac_cv_func_vsnprintf=no)])
|
---|
232 | dnl Note that the default is to be pessimistic in the case
|
---|
233 | dnl of cross compilation.
|
---|
234 | dnl If you know that the target has a sensible vsnprintf(),
|
---|
235 | dnl you can get around this
|
---|
236 | dnl by setting ac_func_vsnprintf to yes, as described in the Autoconf manual.
|
---|
237 | if test $ac_cv_func_vsnprintf = yes; then
|
---|
238 | :
|
---|
239 | else
|
---|
240 | AC_DEFINE(HAVE_BROKEN_VSNPRINTF, 1,
|
---|
241 | [Define if you have a broken version of the `vsnprintf' function.])
|
---|
242 | fi
|
---|
243 | ])# AC_FUNC_VSNPRINTF
|
---|
244 |
|
---|
245 | dnl SH_CHECK_TYPEDEF(TYPE, HAVE_NAME)
|
---|
246 | dnl Check whether a typedef exists and create a #define $2 if it exists
|
---|
247 | dnl
|
---|
248 | AC_DEFUN([SH_CHECK_TYPEDEF],
|
---|
249 | [ AC_MSG_CHECKING(for $1 typedef)
|
---|
250 | sh_cv_typedef_foo=`echo sh_cv_typedef_$1 | sed -e 's% %_%g'`
|
---|
251 | AC_CACHE_VAL( $sh_cv_typedef_foo,
|
---|
252 | [AC_TRY_COMPILE([#include <stdlib.h>
|
---|
253 | #include <sys/types.h>], [
|
---|
254 | #undef $1
|
---|
255 | int a = sizeof($1);
|
---|
256 | ], sh_cv_typedef=yes, sh_cv_typedef=no )])
|
---|
257 | AC_MSG_RESULT($sh_cv_typedef)
|
---|
258 | if test "$sh_cv_typedef" = yes; then
|
---|
259 | AC_DEFINE($2)
|
---|
260 | sh_$2=yes
|
---|
261 | else
|
---|
262 | sh_$2=no
|
---|
263 | fi
|
---|
264 | ])
|
---|
265 |
|
---|
266 |
|
---|
267 |
|
---|
268 | dnl **********************
|
---|
269 | dnl *** va_copy checks ***
|
---|
270 | dnl **********************
|
---|
271 | AC_DEFUN([SL_CHECK_VA_COPY],
|
---|
272 | [AC_MSG_CHECKING(for va_copy())
|
---|
273 | AC_CACHE_VAL(sh_cv_va_copy,[
|
---|
274 | AC_TRY_RUN([
|
---|
275 | #include <stdarg.h>
|
---|
276 | void f (int i, ...) {
|
---|
277 | va_list args1, args2;
|
---|
278 | va_start (args1, i);
|
---|
279 | va_copy (args2, args1);
|
---|
280 | if (va_arg (args2, int) != 42)
|
---|
281 | exit (1);
|
---|
282 | if (va_arg (args1, int) != 42)
|
---|
283 | exit (1);
|
---|
284 | va_end (args1); va_end (args2);
|
---|
285 | }
|
---|
286 | int main() {
|
---|
287 | f (0, 42);
|
---|
288 | return 0;
|
---|
289 | }],
|
---|
290 | sh_cv_va_copy=yes
|
---|
291 | ,
|
---|
292 | sh_cv_va_copy=no
|
---|
293 | ,
|
---|
294 | sh_cv_va_copy=no)
|
---|
295 | ])
|
---|
296 | AC_MSG_RESULT($sh_cv_va_copy)
|
---|
297 | AC_MSG_CHECKING(for __va_copy())
|
---|
298 | AC_CACHE_VAL(sh_cv___va_copy,[
|
---|
299 | AC_TRY_RUN([
|
---|
300 | #include <stdarg.h>
|
---|
301 | void f (int i, ...) {
|
---|
302 | va_list args1, args2;
|
---|
303 | va_start (args1, i);
|
---|
304 | __va_copy (args2, args1);
|
---|
305 | if (va_arg (args2, int) != 42)
|
---|
306 | exit (1);
|
---|
307 | if (va_arg (args1, int) != 42)
|
---|
308 | exit (1);
|
---|
309 | va_end (args1); va_end (args2);
|
---|
310 | }
|
---|
311 | int main() {
|
---|
312 | f (0, 42);
|
---|
313 | return 0;
|
---|
314 | }],
|
---|
315 | sh_cv___va_copy=yes
|
---|
316 | ,
|
---|
317 | sh_cv___va_copy=no
|
---|
318 | ,
|
---|
319 | sh_cv___va_copy=no)
|
---|
320 | ])
|
---|
321 | AC_MSG_RESULT($sh_cv___va_copy)
|
---|
322 | AC_MSG_CHECKING(whether va_lists can be copied by value)
|
---|
323 | AC_CACHE_VAL(sh_cv_va_val_copy,[
|
---|
324 | AC_TRY_RUN([
|
---|
325 | #include <stdarg.h>
|
---|
326 | void f (int i, ...) {
|
---|
327 | va_list args1, args2;
|
---|
328 | va_start (args1, i);
|
---|
329 | args2 = args1;
|
---|
330 | if (va_arg (args2, int) != 42)
|
---|
331 | exit (1);
|
---|
332 | if (va_arg (args1, int) != 42)
|
---|
333 | exit (1);
|
---|
334 | va_end (args1); va_end (args2);
|
---|
335 | }
|
---|
336 | int main() {
|
---|
337 | f (0, 42);
|
---|
338 | return 0;
|
---|
339 | }],
|
---|
340 | sh_cv_va_val_copy=yes
|
---|
341 | ,
|
---|
342 | sh_cv_va_val_copy=no
|
---|
343 | ,
|
---|
344 | sh_cv_va_val_copy=no)
|
---|
345 | ])
|
---|
346 | if test "x$sh_cv_va_copy" = "xyes"; then
|
---|
347 | AC_DEFINE(VA_COPY, va_copy)
|
---|
348 | else if test "x$sh_cv___va_copy" = "xyes"; then
|
---|
349 | AC_DEFINE(VA_COPY, __va_copy)
|
---|
350 | fi
|
---|
351 | fi
|
---|
352 | if test "x$sh_cv_va_val_copy" = "xno"; then
|
---|
353 | AC_DEFINE(VA_COPY_AS_ARRAY)
|
---|
354 | fi
|
---|
355 | AC_MSG_RESULT($sh_cv_va_val_copy)
|
---|
356 | ])
|
---|
357 |
|
---|
358 |
|
---|
359 | dnl SH_INIT_PARSE_ARGS()
|
---|
360 | m4_define([SH_INIT_PARSE_ARGS],
|
---|
361 | [
|
---|
362 | m4_divert_push([PARSE_ARGS])dnl
|
---|
363 |
|
---|
364 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
365 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
366 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
367 | as_cr_digits='0123456789'
|
---|
368 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
369 |
|
---|
370 | # Sed expression to map a string onto a valid CPP name.
|
---|
371 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[[^_$as_cr_alnum]]%_%g"
|
---|
372 |
|
---|
373 | as_tr_sh="eval sed 'y%*+%pp%;s%[[^_$as_cr_alnum]]%_%g'"
|
---|
374 | # IFS
|
---|
375 | # We need space, tab and new line, in precisely that order.
|
---|
376 | as_nl='
|
---|
377 | '
|
---|
378 | IFS=" $as_nl"
|
---|
379 |
|
---|
380 | # CDPATH.
|
---|
381 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
|
---|
382 |
|
---|
383 |
|
---|
384 | # Initialize some variables set by options.
|
---|
385 | ac_init_help=
|
---|
386 | ac_init_version=false
|
---|
387 | # The variables have the same names as the options, with
|
---|
388 | # dashes changed to underlines.
|
---|
389 | cache_file=/dev/null
|
---|
390 | AC_SUBST(exec_prefix, NONE)dnl
|
---|
391 | no_create=
|
---|
392 | no_recursion=
|
---|
393 | AC_SUBST(prefix, NONE)dnl
|
---|
394 | program_prefix=NONE
|
---|
395 | program_suffix=NONE
|
---|
396 | AC_SUBST(program_transform_name, [s,x,x,])dnl
|
---|
397 | silent=
|
---|
398 | site=
|
---|
399 | srcdir=
|
---|
400 | verbose=
|
---|
401 | x_includes=NONE
|
---|
402 | x_libraries=NONE
|
---|
403 | DESTDIR=
|
---|
404 | SH_ENABLE_OPTS="db-reload xml-log message-queue login-watch process-check port-check mounts-check userfiles debug ptrace static network udp nocl stealth micro-stealth install-name identity khide suidcheck base largefile mail external-scripts encrypt srp"
|
---|
405 | SH_WITH_OPTS="prelude libprelude-prefix database libwrap cflags libs console altconsole timeserver alttimeserver rnd egd-socket port logserver altlogserver kcheck gpg checksum fp recipient sender trusted tmp-dir config-file log-file pid-file state-dir data-file html-file"
|
---|
406 |
|
---|
407 | # Installation directory options.
|
---|
408 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
409 | # and all the variables that are supposed to be based on exec_prefix
|
---|
410 | # by default will actually change.
|
---|
411 | dnl Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
412 | sbindir='${exec_prefix}/sbin'
|
---|
413 | sysconfdir='${prefix}/etc'
|
---|
414 | localstatedir='${prefix}/var'
|
---|
415 | mandir='${prefix}/share/man'
|
---|
416 |
|
---|
417 | AC_SUBST([sbindir], ['${exec_prefix}/sbin'])dnl
|
---|
418 | AC_SUBST([sysconfdir], ['${prefix}/etc'])dnl
|
---|
419 | AC_SUBST([localstatedir], ['${prefix}/var'])dnl
|
---|
420 | AC_SUBST([mandir], ['${prefix}/share/man'])dnl
|
---|
421 |
|
---|
422 |
|
---|
423 | # Initialize some other variables.
|
---|
424 | subdirs=
|
---|
425 | MFLAGS= MAKEFLAGS=
|
---|
426 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
427 | # Maximum number of lines to put in a shell here document.
|
---|
428 | ac_max_here_lines=12
|
---|
429 |
|
---|
430 | ac_prev=
|
---|
431 | for ac_option
|
---|
432 | do
|
---|
433 |
|
---|
434 | # If the previous option needs an argument, assign it.
|
---|
435 | if test -n "$ac_prev"; then
|
---|
436 | eval "$ac_prev=\$ac_option"
|
---|
437 | ac_prev=
|
---|
438 | continue
|
---|
439 | fi
|
---|
440 |
|
---|
441 | case "$ac_option" in
|
---|
442 | changequote(, )dnl
|
---|
443 | *=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
444 | changequote([, ])dnl
|
---|
445 | *) ac_optarg= ;;
|
---|
446 | esac
|
---|
447 |
|
---|
448 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
449 |
|
---|
450 | case "$ac_option" in
|
---|
451 |
|
---|
452 | -build | --build | --buil | --bui | --bu)
|
---|
453 | ac_prev=build_alias ;;
|
---|
454 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
455 | build_alias="$ac_optarg" ;;
|
---|
456 |
|
---|
457 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
458 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
459 | ac_prev=cache_file ;;
|
---|
460 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
461 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
462 | cache_file="$ac_optarg" ;;
|
---|
463 |
|
---|
464 | --config-cache | -C)
|
---|
465 | cache_file=config.cache ;;
|
---|
466 |
|
---|
467 | -disable-* | --disable-*)
|
---|
468 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
469 | # Reject names that are not valid shell variable names.
|
---|
470 | expr "x$ac_feature" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
|
---|
471 | AC_MSG_ERROR([invalid feature name: $ac_feature])
|
---|
472 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
473 | ac_enable_check_opt=no
|
---|
474 | for f in ${SH_ENABLE_OPTS}
|
---|
475 | do
|
---|
476 | f=`echo $f | sed 's/-/_/g'`
|
---|
477 | if test x${f} = x"${ac_feature}"
|
---|
478 | then
|
---|
479 | ac_enable_check_opt=yes
|
---|
480 | fi
|
---|
481 | done
|
---|
482 | if test x${ac_enable_check_opt} = xno
|
---|
483 | then
|
---|
484 | AC_MSG_ERROR([unrecognized option: $ac_option
|
---|
485 | Try `$[0] --help' for more information.])
|
---|
486 | fi
|
---|
487 | eval "enable_$ac_feature=no" ;;
|
---|
488 |
|
---|
489 | -enable-* | --enable-*)
|
---|
490 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([[^=]]*\)'`
|
---|
491 | # Reject names that are not valid shell variable names.
|
---|
492 | expr "x$ac_feature" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
|
---|
493 | AC_MSG_ERROR([invalid feature name: $ac_feature])
|
---|
494 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
495 | case $ac_option in
|
---|
496 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
497 | *) ac_optarg=yes ;;
|
---|
498 | esac
|
---|
499 | ac_enable_check_opt=no
|
---|
500 | for f in ${SH_ENABLE_OPTS}
|
---|
501 | do
|
---|
502 | f=`echo $f | sed 's/-/_/g'`
|
---|
503 | if test x${f} = x"${ac_feature}"
|
---|
504 | then
|
---|
505 | ac_enable_check_opt=yes
|
---|
506 | fi
|
---|
507 | done
|
---|
508 | if test x${ac_enable_check_opt} = xno
|
---|
509 | then
|
---|
510 | AC_MSG_ERROR([unrecognized option: $ac_option
|
---|
511 | Try `$[0] --help' for more information.])
|
---|
512 | fi
|
---|
513 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
514 |
|
---|
515 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
516 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
517 | | --exec | --exe | --ex)
|
---|
518 | ac_prev=exec_prefix
|
---|
519 | ac_exec_prefix_set="yes"
|
---|
520 | ;;
|
---|
521 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
522 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
523 | | --exec=* | --exe=* | --ex=*)
|
---|
524 | exec_prefix="$ac_optarg"
|
---|
525 | ac_exec_prefix_set="yes"
|
---|
526 | ;;
|
---|
527 |
|
---|
528 | -gas | --gas | --ga | --g)
|
---|
529 | # Obsolete; use --with-gas.
|
---|
530 | with_gas=yes ;;
|
---|
531 |
|
---|
532 | -help | --help | --hel | --he | -h)
|
---|
533 | ac_init_help=long ;;
|
---|
534 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
535 | ac_init_help=recursive ;;
|
---|
536 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
537 | ac_init_help=short ;;
|
---|
538 |
|
---|
539 | -host | --host | --hos | --ho)
|
---|
540 | ac_prev=host_alias ;;
|
---|
541 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
542 | host_alias="$ac_optarg" ;;
|
---|
543 |
|
---|
544 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
545 | | --localstate | --localstat | --localsta | --localst \
|
---|
546 | | --locals | --local | --loca | --loc | --lo)
|
---|
547 | ac_prev=localstatedir
|
---|
548 | ac_localstatedir_set="yes"
|
---|
549 | ;;
|
---|
550 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
551 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
552 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
553 | localstatedir="$ac_optarg"
|
---|
554 | ac_localstatedir_set="yes"
|
---|
555 | ;;
|
---|
556 |
|
---|
557 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
558 | ac_prev=mandir
|
---|
559 | ac_mandir_set="yes"
|
---|
560 | ;;
|
---|
561 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
562 | mandir="$ac_optarg"
|
---|
563 | ac_mandir_set="yes"
|
---|
564 | ;;
|
---|
565 |
|
---|
566 | -nfp | --nfp | --nf)
|
---|
567 | # Obsolete; use --without-fp.
|
---|
568 | with_fp=no ;;
|
---|
569 |
|
---|
570 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
571 | | --no-cr | --no-c | -n)
|
---|
572 | no_create=yes ;;
|
---|
573 |
|
---|
574 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
575 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
576 | no_recursion=yes ;;
|
---|
577 |
|
---|
578 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
579 | ac_prev=prefix
|
---|
580 | ac_prefix_set="yes"
|
---|
581 | ;;
|
---|
582 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
583 | prefix="$ac_optarg"
|
---|
584 | ac_prefix_set="yes"
|
---|
585 | ;;
|
---|
586 |
|
---|
587 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
588 | | -silent | --silent | --silen | --sile | --sil)
|
---|
589 | silent=yes ;;
|
---|
590 |
|
---|
591 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
592 | ac_prev=sbindir
|
---|
593 | ac_sbindir_set="yes"
|
---|
594 | ;;
|
---|
595 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
596 | | --sbi=* | --sb=*)
|
---|
597 | sbindir="$ac_optarg"
|
---|
598 | ac_sbindir_set="yes"
|
---|
599 | ;;
|
---|
600 |
|
---|
601 | -bindir | --bindir | --bindi | --bind | --bin | --bi | --b)
|
---|
602 | echo "WARNING: bindir will be ignored, use sbindir"
|
---|
603 | ;;
|
---|
604 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* \
|
---|
605 | | --bi=* | --b=*)
|
---|
606 | echo "WARNING: bindir will be ignored, use sbindir"
|
---|
607 | ;;
|
---|
608 |
|
---|
609 | -datadir | --datadir)
|
---|
610 | echo "WARNING: datadir will be ignored"
|
---|
611 | ;;
|
---|
612 | -datadir=* | --datadir=*)
|
---|
613 | echo "WARNING: datadir will be ignored"
|
---|
614 | ;;
|
---|
615 |
|
---|
616 | -includedir | --includedir)
|
---|
617 | echo "WARNING: includedir will be ignored"
|
---|
618 | ;;
|
---|
619 | -includedir=* | --includedir=*)
|
---|
620 | echo "WARNING: includedir will be ignored"
|
---|
621 | ;;
|
---|
622 |
|
---|
623 | -infodir | --infodir)
|
---|
624 | echo "WARNING: infodir will be ignored"
|
---|
625 | ;;
|
---|
626 | -infodir=* | --infodir=*)
|
---|
627 | echo "WARNING: infodir will be ignored"
|
---|
628 | ;;
|
---|
629 |
|
---|
630 | -libdir | --libdir)
|
---|
631 | echo "WARNING: libdir will be ignored"
|
---|
632 | ;;
|
---|
633 | -libdir=* | --libdir=*)
|
---|
634 | echo "WARNING: libdir will be ignored"
|
---|
635 | ;;
|
---|
636 |
|
---|
637 | -libexecdir | --libexecdir)
|
---|
638 | echo "WARNING: libexecdir will be ignored"
|
---|
639 | ;;
|
---|
640 | -libexecdir=* | --libexecdir=*)
|
---|
641 | echo "WARNING: libexecdir will be ignored"
|
---|
642 | ;;
|
---|
643 |
|
---|
644 | -sharedstatedir | --sharedstatedir)
|
---|
645 | echo "WARNING: sharedstatedir will be ignored"
|
---|
646 | ;;
|
---|
647 | -sharedstatedir=* | --sharedstatedir=*)
|
---|
648 | echo "WARNING: sharedstatedir will be ignored"
|
---|
649 | ;;
|
---|
650 |
|
---|
651 | -site | --site | --sit)
|
---|
652 | ac_prev=site ;;
|
---|
653 | -site=* | --site=* | --sit=*)
|
---|
654 | site="$ac_optarg" ;;
|
---|
655 |
|
---|
656 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
657 | ac_prev=srcdir ;;
|
---|
658 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
659 | srcdir="$ac_optarg" ;;
|
---|
660 |
|
---|
661 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
662 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
663 | ac_prev=sysconfdir
|
---|
664 | ac_sysconfdir_set="yes"
|
---|
665 | ;;
|
---|
666 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
667 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
668 | sysconfdir="$ac_optarg"
|
---|
669 | ac_sysconfdir_set="yes"
|
---|
670 | ;;
|
---|
671 |
|
---|
672 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
673 | ac_prev=target_alias ;;
|
---|
674 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
675 | target_alias="$ac_optarg" ;;
|
---|
676 |
|
---|
677 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
678 | verbose=yes ;;
|
---|
679 |
|
---|
680 | -version | --version | --versio | --versi | --vers)
|
---|
681 | ac_init_version=: ;;
|
---|
682 |
|
---|
683 |
|
---|
684 | -with-* | --with-*)
|
---|
685 | ac_package=`expr "x$ac_option" : 'x-*with-\([[^=]]*\)'`
|
---|
686 | # Reject names that are not valid shell variable names.
|
---|
687 | expr "x$ac_package" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
|
---|
688 | AC_MSG_ERROR([invalid package name: $ac_package])
|
---|
689 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
690 | case $ac_option in
|
---|
691 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
692 | *) ac_optarg=yes ;;
|
---|
693 | esac
|
---|
694 | ac_with_check_opt=no
|
---|
695 | for f in ${SH_WITH_OPTS}
|
---|
696 | do
|
---|
697 | f=`echo $f | sed 's/-/_/g'`
|
---|
698 | if test x${f} = x"${ac_package}"
|
---|
699 | then
|
---|
700 | ac_with_check_opt=yes
|
---|
701 | fi
|
---|
702 | done
|
---|
703 | if test x${ac_with_check_opt} = xno
|
---|
704 | then
|
---|
705 | AC_MSG_ERROR([unrecognized option: $ac_option
|
---|
706 | Try `$[0] --help' for more information.])
|
---|
707 | fi
|
---|
708 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
709 |
|
---|
710 | -without-* | --without-*)
|
---|
711 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
712 | # Reject names that are not valid shell variable names.
|
---|
713 | expr "x$ac_package" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
|
---|
714 | AC_MSG_ERROR([invalid package name: $ac_package])
|
---|
715 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
716 | ac_with_check_opt=no
|
---|
717 | for f in ${SH_WITH_OPTS}
|
---|
718 | do
|
---|
719 | f=`echo $f | sed 's/-/_/g'`
|
---|
720 | if test x${f} = x"${ac_package}"
|
---|
721 | then
|
---|
722 | ac_with_check_opt=yes
|
---|
723 | fi
|
---|
724 | done
|
---|
725 | if test x${ac_with_check_opt} = xno
|
---|
726 | then
|
---|
727 | AC_MSG_ERROR([unrecognized option: $ac_option
|
---|
728 | Try `$[0] --help' for more information.])
|
---|
729 | fi
|
---|
730 | eval "with_$ac_package=no" ;;
|
---|
731 |
|
---|
732 |
|
---|
733 | -*) AC_MSG_ERROR([unrecognized option: $ac_option
|
---|
734 | Try `$[0] --help' for more information.])
|
---|
735 | ;;
|
---|
736 |
|
---|
737 | *=*)
|
---|
738 | ac_envvar=`expr "x$ac_option" : 'x\([[^=]]*\)='`
|
---|
739 | # Reject names that are not valid shell variable names.
|
---|
740 | expr "x$ac_envvar" : "[.*[^_$as_cr_alnum]]" >/dev/null &&
|
---|
741 | AC_MSG_ERROR([invalid variable name: $ac_envvar])
|
---|
742 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
743 | eval "$ac_envvar='$ac_optarg'"
|
---|
744 | export $ac_envvar ;;
|
---|
745 |
|
---|
746 | *)
|
---|
747 | # FIXME: should be removed in autoconf 3.0.
|
---|
748 | AC_MSG_WARN([you should use --build, --host, --target])
|
---|
749 | expr "x$ac_option" : "[.*[^-._$as_cr_alnum]]" >/dev/null &&
|
---|
750 | AC_MSG_WARN([invalid host type: $ac_option])
|
---|
751 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
752 | ;;
|
---|
753 |
|
---|
754 |
|
---|
755 | esac
|
---|
756 | done
|
---|
757 |
|
---|
758 | if test -n "$ac_prev"; then
|
---|
759 | AC_MSG_ERROR(missing argument to --`echo $ac_prev | sed 's/_/-/g'`)
|
---|
760 | fi
|
---|
761 |
|
---|
762 | # Be sure to have absolute paths.
|
---|
763 | for ac_var in prefix exec_prefix
|
---|
764 | do
|
---|
765 | eval ac_val=$`echo $ac_var`
|
---|
766 | case $ac_val in
|
---|
767 | [[\\/$]]* | ?:[[\\/]]* | NONE | '' | OPT | USR ) ;;
|
---|
768 | *) AC_MSG_ERROR([expected an absolute directory name for --$ac_var: $ac_val]);;
|
---|
769 | esac
|
---|
770 | done
|
---|
771 |
|
---|
772 | # Be sure to have absolute paths.
|
---|
773 | for ac_var in sbindir sysconfdir localstatedir mandir
|
---|
774 | do
|
---|
775 | eval ac_val=$`echo $ac_var`
|
---|
776 | case $ac_val in
|
---|
777 | [[\\/$]]* | ?:[[\\/]]* ) ;;
|
---|
778 | *) AC_MSG_ERROR([expected an absolute directory name for --$ac_var: $ac_val]);;
|
---|
779 | esac
|
---|
780 | done
|
---|
781 |
|
---|
782 | # There might be people who depend on the old broken behavior: `$host'
|
---|
783 | # used to hold the argument of --host etc.
|
---|
784 | # FIXME: To remove some day.
|
---|
785 | build=$build_alias
|
---|
786 | host=$host_alias
|
---|
787 | target=$target_alias
|
---|
788 |
|
---|
789 | # FIXME: To remove some day.
|
---|
790 | if test "x$host_alias" != x; then
|
---|
791 | if test "x$build_alias" = x; then
|
---|
792 | cross_compiling=maybe
|
---|
793 | AC_MSG_WARN([If you wanted to set the --build type, don't use --host.
|
---|
794 | If a cross compiler is detected then cross compile mode will be used.])
|
---|
795 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
796 | cross_compiling=yes
|
---|
797 | fi
|
---|
798 | fi
|
---|
799 |
|
---|
800 | ac_tool_prefix=
|
---|
801 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
802 |
|
---|
803 | test "$silent" = yes && exec AS_MESSAGE_FD>/dev/null
|
---|
804 |
|
---|
805 | m4_divert_pop([PARSE_ARGS])dnl
|
---|
806 | ])# SH_INIT_PARSE_ARGS
|
---|
807 |
|
---|
808 | m4_define([SH_INIT_HELP],
|
---|
809 | [m4_divert_push([HELP_BEGIN])dnl
|
---|
810 |
|
---|
811 | #
|
---|
812 | # Report the --help message.
|
---|
813 | #
|
---|
814 | if test "$ac_init_help" = "long"; then
|
---|
815 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
816 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
817 | cat <<_ACEOF
|
---|
818 | \`configure' configures m4_ifset([AC_PACKAGE_STRING],
|
---|
819 | [AC_PACKAGE_STRING],
|
---|
820 | [this package]) to adapt to many kinds of systems.
|
---|
821 |
|
---|
822 | Usage: $[0] [[OPTION]]... [[VAR=VALUE]]...
|
---|
823 |
|
---|
824 | [To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
825 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
826 |
|
---|
827 | Defaults for the options are specified in brackets.
|
---|
828 |
|
---|
829 | Configuration:
|
---|
830 | -h, --help display this help and exit
|
---|
831 | --help=short display options specific to this package
|
---|
832 | --help=recursive display the short help of all the included packages
|
---|
833 | -V, --version display version information and exit
|
---|
834 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
835 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
836 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
837 | -n, --no-create do not create output files
|
---|
838 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
839 |
|
---|
840 | _ACEOF
|
---|
841 |
|
---|
842 | cat <<_ACEOF
|
---|
843 | Installation directories:
|
---|
844 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
845 | [$ac_default_prefix]
|
---|
846 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
847 | [PREFIX]
|
---|
848 |
|
---|
849 | By default, \`make install' will install binaries in \`/usr/local/sbin',
|
---|
850 | the config file in \`/etc', manpage in \`/usr/local/share/man', and state
|
---|
851 | data in \`/var/lib/INSTALL_NAME' (FSH layout). You can specify other
|
---|
852 | FSH compliant layouts with \`--prefix=OPT' or \`--prefix=USR', or you
|
---|
853 | can specify a directory with \`--prefix=DIR' to install in \`DIR/sbin',
|
---|
854 | \`DIR/etc', etc.
|
---|
855 |
|
---|
856 | For better control, use the options below.
|
---|
857 |
|
---|
858 | Fine tuning of the installation directories:
|
---|
859 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
860 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
861 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
862 | --mandir=DIR man documentation [PREFIX/man]
|
---|
863 |
|
---|
864 | For even finer tuning, paths can be specified for individual files (see below)
|
---|
865 |
|
---|
866 | _ACEOF
|
---|
867 |
|
---|
868 | cat <<\_ACEOF]
|
---|
869 | m4_divert_pop([HELP_BEGIN])dnl
|
---|
870 | dnl The order of the diversions here is
|
---|
871 | dnl - HELP_BEGIN
|
---|
872 | dnl which may be prolongated by extra generic options such as with X or
|
---|
873 | dnl AC_ARG_PROGRAM. Displayed only in long --help.
|
---|
874 | dnl
|
---|
875 | dnl - HELP_CANON
|
---|
876 | dnl Support for cross compilation (--build, --host and --target).
|
---|
877 | dnl Display only in long --help.
|
---|
878 | dnl
|
---|
879 | dnl - HELP_ENABLE
|
---|
880 | dnl which starts with the trailer of the HELP_BEGIN, HELP_CANON section,
|
---|
881 | dnl then implements the header of the non generic options.
|
---|
882 | dnl
|
---|
883 | dnl - HELP_WITH
|
---|
884 | dnl
|
---|
885 | dnl - HELP_VAR
|
---|
886 | dnl
|
---|
887 | dnl - HELP_VAR_END
|
---|
888 | dnl
|
---|
889 | dnl - HELP_END
|
---|
890 | dnl initialized below, in which we dump the trailer (handling of the
|
---|
891 | dnl recursion for instance).
|
---|
892 | m4_divert_push([HELP_ENABLE])dnl
|
---|
893 | _ACEOF
|
---|
894 | fi
|
---|
895 |
|
---|
896 | if test -n "$ac_init_help"; then
|
---|
897 | m4_ifset([AC_PACKAGE_STRING],
|
---|
898 | [ case $ac_init_help in
|
---|
899 | short | recursive ) echo "Configuration of AC_PACKAGE_STRING:";;
|
---|
900 | esac])
|
---|
901 | cat <<\_ACEOF
|
---|
902 | m4_divert_pop([HELP_ENABLE])dnl
|
---|
903 | m4_divert_push([HELP_END])dnl
|
---|
904 | m4_ifset([AC_PACKAGE_BUGREPORT], [
|
---|
905 | Report bugs to <AC_PACKAGE_BUGREPORT>.])
|
---|
906 | _ACEOF
|
---|
907 | fi
|
---|
908 |
|
---|
909 | if test "$ac_init_help" = "recursive"; then
|
---|
910 | # If there are subdirs, report their specific --help.
|
---|
911 | ac_popdir=`pwd`
|
---|
912 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
913 | test -d $ac_dir || continue
|
---|
914 | _AC_SRCPATHS(["$ac_dir"])
|
---|
915 | cd $ac_dir
|
---|
916 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
917 | if test -f $ac_srcdir/configure.gnu; then
|
---|
918 | echo
|
---|
919 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
920 | elif test -f $ac_srcdir/configure; then
|
---|
921 | echo
|
---|
922 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
923 | elif test -f $ac_srcdir/configure.ac ||
|
---|
924 | test -f $ac_srcdir/configure.in; then
|
---|
925 | echo
|
---|
926 | $ac_configure --help
|
---|
927 | else
|
---|
928 | AC_MSG_WARN([no configuration information is in $ac_dir])
|
---|
929 | fi
|
---|
930 | cd $ac_popdir
|
---|
931 | done
|
---|
932 | fi
|
---|
933 |
|
---|
934 | test -n "$ac_init_help" && exit 0
|
---|
935 | m4_divert_pop([HELP_END])dnl
|
---|
936 | ])# SH_INIT_HELP
|
---|
937 |
|
---|
938 |
|
---|
939 |
|
---|
940 |
|
---|
941 |
|
---|
942 |
|
---|
943 |
|
---|
944 |
|
---|
945 | # Check whether sa_sigaction works.
|
---|
946 | # Rainer Wichmann <support@la-samhna.de>, 2003.
|
---|
947 | #
|
---|
948 | # This file can be copied and used freely without restrictions. It can
|
---|
949 | # be used in projects which are not available under the GNU Public License.
|
---|
950 |
|
---|
951 | # serial 1
|
---|
952 |
|
---|
953 | AC_DEFUN([AM_SA_SIGACTION_WORKS],
|
---|
954 | [
|
---|
955 | am_cv_val_SA_SIGACTION=no
|
---|
956 | AC_CHECK_HEADER(signal.h,
|
---|
957 | [
|
---|
958 | AM_SI_USER
|
---|
959 | AM_SA_SIGINFO
|
---|
960 | if test $am_cv_val_SI_USER = yes && test $am_cv_val_SA_SIGINFO = yes
|
---|
961 | then
|
---|
962 | AC_TRY_RUN([
|
---|
963 | #include <signal.h>
|
---|
964 | #include <setjmp.h>
|
---|
965 | #include <stdio.h>
|
---|
966 | #include <stdlib.h>
|
---|
967 |
|
---|
968 | volatile int xnum = 0;
|
---|
969 | volatile int xcode = 0;
|
---|
970 | jmp_buf Buf;
|
---|
971 | int xsig = SIGSEGV;
|
---|
972 |
|
---|
973 | void sighandler (int xsignam, siginfo_t * xsiginfo, void * xsigadd)
|
---|
974 | {
|
---|
975 | static sigset_t x;
|
---|
976 |
|
---|
977 | if (xsiginfo == NULL)
|
---|
978 | exit(__LINE__);
|
---|
979 | if (xsiginfo->si_signo != xsignam)
|
---|
980 | exit(__LINE__);
|
---|
981 | ++xnum;
|
---|
982 | xcode = xsiginfo->si_code;
|
---|
983 | sigemptyset (&x);
|
---|
984 | sigprocmask(SIG_SETMASK, &x, NULL);
|
---|
985 | longjmp ( Buf, 1);
|
---|
986 | }
|
---|
987 |
|
---|
988 | int main ()
|
---|
989 | {
|
---|
990 | struct sigaction newact;
|
---|
991 |
|
---|
992 | newact.sa_sigaction = sighandler;
|
---|
993 | sigemptyset (&newact.sa_mask);
|
---|
994 | newact.sa_flags = SA_SIGINFO;
|
---|
995 | if (0 != sigaction (xsig, &newact, NULL))
|
---|
996 | exit (__LINE__);
|
---|
997 | if(setjmp ( Buf)) {
|
---|
998 | if (xnum > 1)
|
---|
999 | goto Third;
|
---|
1000 | goto Second;
|
---|
1001 | }
|
---|
1002 | memcpy((void *) 0x0, "test", 5);
|
---|
1003 | Second:
|
---|
1004 | if (xcode == SI_USER)
|
---|
1005 | exit (__LINE__);
|
---|
1006 | raise(xsig);
|
---|
1007 | Third:
|
---|
1008 | if (xcode != SI_USER)
|
---|
1009 | exit (__LINE__);
|
---|
1010 | if (xnum != 2)
|
---|
1011 | exit (__LINE__);
|
---|
1012 | return (0);
|
---|
1013 | }], am_cv_val_SA_SIGACTION=yes, am_cv_val_SA_SIGACTION=no, am_cv_val_SA_SIGACTION=no)
|
---|
1014 | fi
|
---|
1015 | ])
|
---|
1016 | AC_MSG_CHECKING([whether sa_sigaction is supported])
|
---|
1017 | if test $am_cv_val_SA_SIGACTION = yes
|
---|
1018 | then
|
---|
1019 | AC_MSG_RESULT(yes)
|
---|
1020 | AC_DEFINE([SA_SIGACTION_WORKS], 1, [Define if sa_sigaction works])
|
---|
1021 | else
|
---|
1022 | AC_MSG_RESULT(no)
|
---|
1023 | fi
|
---|
1024 | ])
|
---|
1025 |
|
---|
1026 | # Check whether SI_USER is available in <signal.h>.
|
---|
1027 | # Rainer Wichmann <support@la-samhna.de>, 2003.
|
---|
1028 | #
|
---|
1029 | # This file can be copied and used freely without restrictions. It can
|
---|
1030 | # be used in projects which are not available under the GNU Public License.
|
---|
1031 |
|
---|
1032 | # serial 1
|
---|
1033 |
|
---|
1034 |
|
---|
1035 | AC_DEFUN([AM_SI_USER],
|
---|
1036 | [if test $ac_cv_header_signal_h = yes; then
|
---|
1037 | AC_CACHE_CHECK([for SI_USER in signal.h], am_cv_val_SI_USER,
|
---|
1038 | [AC_TRY_LINK([#include <signal.h>], [return SI_USER],
|
---|
1039 | am_cv_val_SI_USER=yes, am_cv_val_SI_USER=no)])
|
---|
1040 | if test $am_cv_val_SI_USER = yes; then
|
---|
1041 | AC_DEFINE([HAVE_SI_USER], 1, [Define if you have SI_USER])
|
---|
1042 | fi
|
---|
1043 | fi])
|
---|
1044 |
|
---|
1045 | # Check whether SA_SIGINFO is available in <signal.h>.
|
---|
1046 | # Rainer Wichmann <support@la-samhna.de>, 2003.
|
---|
1047 | #
|
---|
1048 | # This file can be copied and used freely without restrictions. It can
|
---|
1049 | # be used in projects which are not available under the GNU Public License.
|
---|
1050 |
|
---|
1051 | # serial 1
|
---|
1052 |
|
---|
1053 |
|
---|
1054 | AC_DEFUN([AM_SA_SIGINFO],
|
---|
1055 | [if test $ac_cv_header_signal_h = yes; then
|
---|
1056 | AC_CACHE_CHECK([for SA_SIGINFO in signal.h], am_cv_val_SA_SIGINFO,
|
---|
1057 | [AC_TRY_LINK([#include <signal.h>], [return SA_SIGINFO],
|
---|
1058 | am_cv_val_SA_SIGINFO=yes, am_cv_val_SA_SIGINFO=no)])
|
---|
1059 | if test $am_cv_val_SA_SIGINFO = yes; then
|
---|
1060 | AC_DEFINE([HAVE_SA_SIGINFO], 1, [Define if you have SA_SIGINFO])
|
---|
1061 | fi
|
---|
1062 | fi])
|
---|
1063 |
|
---|
1064 | dnl
|
---|
1065 | dnl Useful macros for autoconf to check for ssp-patched gcc
|
---|
1066 | dnl 1.0 - September 2003 - Tiago Sousa <mirage@kaotik.org>
|
---|
1067 | dnl
|
---|
1068 | dnl About ssp:
|
---|
1069 | dnl GCC extension for protecting applications from stack-smashing attacks
|
---|
1070 | dnl http://www.research.ibm.com/trl/projects/security/ssp/
|
---|
1071 | dnl
|
---|
1072 | dnl Usage:
|
---|
1073 | dnl After calling the correct AC_LANG_*, use the corresponding macro:
|
---|
1074 | dnl
|
---|
1075 | dnl GCC_STACK_PROTECT_CC
|
---|
1076 | dnl checks -fstack-protector with the C compiler, if it exists then updates
|
---|
1077 | dnl CFLAGS and defines ENABLE_SSP_CC
|
---|
1078 | dnl
|
---|
1079 | AC_DEFUN([GCC_STACK_PROTECT_CC],[
|
---|
1080 | ssp_cc=yes
|
---|
1081 | if test "X$GCC" = "Xyes"; then
|
---|
1082 | AC_MSG_CHECKING([whether ${CC} accepts -fstack-protector])
|
---|
1083 | ssp_old_cflags="$CFLAGS"
|
---|
1084 | CFLAGS="$CFLAGS -fstack-protector"
|
---|
1085 | AC_TRY_LINK(,,, ssp_cc=no)
|
---|
1086 | # echo $ssp_cc
|
---|
1087 | if test "X$ssp_cc" = "Xno"; then
|
---|
1088 | CFLAGS="$ssp_old_cflags"
|
---|
1089 | AC_MSG_RESULT(no)
|
---|
1090 | else
|
---|
1091 | AC_MSG_RESULT(yes)
|
---|
1092 | AC_DEFINE([ENABLE_SSP_CC], 1, [Define if SSP C support is enabled.])
|
---|
1093 | fi
|
---|
1094 | fi
|
---|
1095 | ])
|
---|
1096 |
|
---|
1097 | AC_DEFUN([SAMHAIN_POSIX],[
|
---|
1098 | AC_MSG_CHECKING([whether _POSIX_SOURCE is necessary])
|
---|
1099 | AC_TRY_COMPILE([#include <stdio.h>
|
---|
1100 | void fileno(int);int fdopen(int, char *); ],,
|
---|
1101 | [
|
---|
1102 | AC_MSG_RESULT(yes)
|
---|
1103 | AC_DEFINE([_POSIX_SOURCE],1,[Define if POSIX functions are required])
|
---|
1104 | ],
|
---|
1105 | [AC_MSG_RESULT(no)])
|
---|
1106 | ])dnl
|
---|
1107 |
|
---|
1108 | dnl checks for a known 64 bit programming environment
|
---|
1109 | dnl AC_RUN_IFELSE(PROGRAM,
|
---|
1110 | dnl [ACTION-IF-TRUE], [ACTION-IF-FALSE],
|
---|
1111 | dnl [ACTION-IF-CROSS-COMPILING = RUNTIME-ERROR])
|
---|
1112 | dnl
|
---|
1113 | AC_DEFUN([SAMHAIN_PRG_ENV],[
|
---|
1114 | AC_MSG_CHECKING([for a known 64 bit programming environment])
|
---|
1115 | # Compile and run a program that determines the programming environment
|
---|
1116 | AC_RUN_IFELSE([
|
---|
1117 | AC_LANG_SOURCE([[
|
---|
1118 | #include <stdio.h>
|
---|
1119 | int main(int argc,char **argv)
|
---|
1120 | {
|
---|
1121 | if (argc > 1) {
|
---|
1122 | #if defined(__arch64__)
|
---|
1123 | printf("__arch64__\n");
|
---|
1124 | #elif defined(__ia64__)
|
---|
1125 | printf("__ia64__\n");
|
---|
1126 | #elif defined(__x86_64__)
|
---|
1127 | printf("__x86_64__\n");
|
---|
1128 | #elif defined(__LP64__)
|
---|
1129 | printf("__LP64__\n");
|
---|
1130 | #elif defined(__64BIT__)
|
---|
1131 | printf("__64BIT__\n");
|
---|
1132 | #elif defined(_LP64)
|
---|
1133 | printf("_LP64\n");
|
---|
1134 | #elif defined(_M_IA64)
|
---|
1135 | printf("_M_IA64\n");
|
---|
1136 | #elif defined(_MIPS_SZLONG) && (_MIPS_SZLONG == 64)
|
---|
1137 | printf("_MIPS_64\n");
|
---|
1138 | #else
|
---|
1139 | choke me
|
---|
1140 | #endif
|
---|
1141 | }
|
---|
1142 | return 0;
|
---|
1143 | }
|
---|
1144 | ]])
|
---|
1145 | ],[
|
---|
1146 | # Program compiled and ran, so get version by adding argument.
|
---|
1147 | samhain_prg_ENV=`./conftest$ac_exeext x`
|
---|
1148 | samhain_64=yes
|
---|
1149 | AC_MSG_RESULT([$samhain_prg_ENV])
|
---|
1150 | ],[
|
---|
1151 | AC_MSG_RESULT([none])
|
---|
1152 | ],[
|
---|
1153 | AC_MSG_RESULT([none])
|
---|
1154 | ])
|
---|
1155 | ])dnl
|
---|
1156 |
|
---|
1157 | AC_DEFUN([SAMHAIN_X86_64],[
|
---|
1158 | AC_MSG_CHECKING([for x86_64])
|
---|
1159 | AC_TRY_RUN([
|
---|
1160 | int main() {
|
---|
1161 | __asm__ volatile (
|
---|
1162 | "movq %rax, %rax"
|
---|
1163 | );
|
---|
1164 | return 0;
|
---|
1165 | }
|
---|
1166 | ],
|
---|
1167 | [
|
---|
1168 | AC_MSG_RESULT(yes)
|
---|
1169 | samhain_64=yes
|
---|
1170 | tiger_src=sh_tiger1_64.c
|
---|
1171 | AC_DEFINE([TIGER_OPT_ASM],1,[Define to use tiger x86_64 optimized assembly])
|
---|
1172 | ],
|
---|
1173 | [
|
---|
1174 | AC_MSG_RESULT([no])
|
---|
1175 | ],[
|
---|
1176 | AC_MSG_RESULT([no])
|
---|
1177 | ])
|
---|
1178 | ])dnl
|
---|
1179 |
|
---|
1180 |
|
---|
1181 | AC_DEFUN([SAMHAIN_64],[
|
---|
1182 | samhain_64=no
|
---|
1183 | tiger_src=sh_tiger1.c
|
---|
1184 | #
|
---|
1185 | # if sizeof(unsigned long) = 4, try compiler macros for 64bit
|
---|
1186 | #
|
---|
1187 | if test "x$ac_cv_sizeof_unsigned_long" = x4; then
|
---|
1188 | if test "x$ac_cv_sizeof_unsigned_long_long" = x8; then
|
---|
1189 | SAMHAIN_PRG_ENV
|
---|
1190 | if test "x$samhain_64" = xyes; then
|
---|
1191 | tiger_src=sh_tiger1_64.c
|
---|
1192 | fi
|
---|
1193 | #
|
---|
1194 | # if GCC and __i386__, use precompiled assembler
|
---|
1195 | #
|
---|
1196 | if test "x$GCC" = xyes; then
|
---|
1197 | AC_MSG_CHECKING([for non-apple non-cygwin i386])
|
---|
1198 | samhain_i386=no
|
---|
1199 | $CC -E -dM - < /dev/null | egrep '__i386__' >/dev/null 2>&1
|
---|
1200 | if test $? = 0; then
|
---|
1201 | # apples gcc does not understand the assembly we provide
|
---|
1202 | $CC -E -dM - < /dev/null | egrep '(__sun__|__APPLE__|__CYGWIN__)' >/dev/null 2>&1 || samhain_i386=yes
|
---|
1203 | fi
|
---|
1204 | if test "x$samhain_i386" = xyes; then
|
---|
1205 | tiger_src=sh_tiger1.s
|
---|
1206 | AC_DEFINE([TIGER_32_BIT_S],1,[Define to use tiger 32 bit i386 assembler])
|
---|
1207 | fi
|
---|
1208 | AC_MSG_RESULT([$samhain_i386])
|
---|
1209 | fi
|
---|
1210 | #
|
---|
1211 | #
|
---|
1212 | #
|
---|
1213 | else
|
---|
1214 | samhain_64=no
|
---|
1215 | tiger_src=sh_tiger1.c
|
---|
1216 | fi
|
---|
1217 | else
|
---|
1218 | #
|
---|
1219 | # sizeof(unsigned long) = 8
|
---|
1220 | #
|
---|
1221 | tiger_src=sh_tiger1_64.c
|
---|
1222 | samhain_64=yes
|
---|
1223 | #
|
---|
1224 | # check for x86_64 (enables assembly optimizations)
|
---|
1225 | #
|
---|
1226 | if test "x$GCC" = xyes; then
|
---|
1227 | SAMHAIN_X86_64
|
---|
1228 | fi
|
---|
1229 | fi
|
---|
1230 | if test "x$samhain_64" = xyes; then
|
---|
1231 | AC_DEFINE([TIGER_64_BIT],1,[Define to use tiger 64 bit implementation])
|
---|
1232 | fi
|
---|
1233 | AC_MSG_CHECKING([for 64 bit environment])
|
---|
1234 | AC_MSG_RESULT([$samhain_64])
|
---|
1235 | AC_MSG_CHECKING([for tiger source to use])
|
---|
1236 | AC_MSG_RESULT([$tiger_src])
|
---|
1237 | AC_SUBST(tiger_src)
|
---|
1238 | ])dnl
|
---|
1239 |
|
---|
1240 | AC_DEFUN([sh_CHECK_POSIX_ACL],
|
---|
1241 | [
|
---|
1242 | AC_CHECK_HEADERS(sys/acl.h)
|
---|
1243 | if test $ac_cv_header_sys_acl_h = yes; then
|
---|
1244 |
|
---|
1245 | AC_CHECK_LIB([acl], [acl_get_file], sh_lacl=yes, sh_lacl=no)
|
---|
1246 | if test x"$sh_lacl" = xyes; then
|
---|
1247 | LIBACL=-lacl
|
---|
1248 | else
|
---|
1249 | LIBACL=
|
---|
1250 | fi
|
---|
1251 |
|
---|
1252 | OLDLIBS="$LIBS"
|
---|
1253 | LIBS="$LIBS $LIBACL"
|
---|
1254 | AC_CHECK_FUNCS([acl_free acl_get_file acl_get_fd],
|
---|
1255 | [sh_facl=yes],[sh_facl=no])
|
---|
1256 | LIBS="$OLDLIBS"
|
---|
1257 |
|
---|
1258 | if test x"$sh_facl" = xyes; then
|
---|
1259 | AC_DEFINE(USE_ACL, 1, [Define if you want ACL support.])
|
---|
1260 | LIBS="$LIBS $LIBACL"
|
---|
1261 | fi
|
---|
1262 | fi
|
---|
1263 | ])
|
---|
1264 |
|
---|
1265 | AC_DEFUN([sh_CHECK_XATTR],
|
---|
1266 | [
|
---|
1267 | AC_CHECK_HEADERS(attr/xattr.h)
|
---|
1268 | if test $ac_cv_header_attr_xattr_h = yes; then
|
---|
1269 |
|
---|
1270 | AC_CHECK_LIB([attr], [getxattr], sh_lattr=yes, sh_lattr=no)
|
---|
1271 | if test x"$sh_lattr" = xyes; then
|
---|
1272 | LIBATTR=-lattr
|
---|
1273 | else
|
---|
1274 | LIBATTR=
|
---|
1275 | fi
|
---|
1276 |
|
---|
1277 | OLDLIBS="$LIBS"
|
---|
1278 | LIBS="$LIBS $LIBATTR"
|
---|
1279 | AC_CHECK_FUNCS([getxattr lgetxattr fgetxattr],
|
---|
1280 | [sh_fattr=yes],[sh_fattr=no])
|
---|
1281 | LIBS="$OLDLIBS"
|
---|
1282 |
|
---|
1283 | if test x"$sh_fattr" = xyes; then
|
---|
1284 | AC_DEFINE(USE_XATTR, 1, [Define if you want extended attributes support.])
|
---|
1285 | LIBS="$LIBS $LIBATTR"
|
---|
1286 | fi
|
---|
1287 | fi
|
---|
1288 | ])
|
---|
1289 |
|
---|
1290 | dnl Autoconf macros for libprelude
|
---|
1291 | dnl $id$
|
---|
1292 |
|
---|
1293 | # Modified for LIBPRELUDE -- Yoann Vandoorselaere
|
---|
1294 | # Modified for LIBGNUTLS -- nmav
|
---|
1295 | # Configure paths for LIBGCRYPT
|
---|
1296 | # Shamelessly stolen from the one of XDELTA by Owen Taylor
|
---|
1297 | # Werner Koch 99-12-09
|
---|
1298 |
|
---|
1299 | dnl AM_PATH_LIBPRELUDE([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
|
---|
1300 | dnl Test for libprelude, and define LIBPRELUDE_PREFIX, LIBPRELUDE_CFLAGS, LIBPRELUDE_PTHREAD_CFLAGS,
|
---|
1301 | dnl LIBPRELUDE_LDFLAGS, and LIBPRELUDE_LIBS
|
---|
1302 | dnl
|
---|
1303 | AC_DEFUN([AM_PATH_LIBPRELUDE],
|
---|
1304 | [dnl
|
---|
1305 | dnl Get the cflags and libraries from the libprelude-config script
|
---|
1306 | dnl
|
---|
1307 | dnl AC_ARG_WITH(libprelude-prefix,
|
---|
1308 | dnl [ --with-libprelude-prefix=PFX Prefix where libprelude is installed (optional)],
|
---|
1309 | dnl libprelude_config_prefix="$withval", libprelude_config_prefix="")
|
---|
1310 | dnl
|
---|
1311 | dnl if test x$libprelude_config_prefix != x ; then
|
---|
1312 | dnl if test x${LIBPRELUDE_CONFIG+set} != xset ; then
|
---|
1313 | dnl LIBPRELUDE_CONFIG=$libprelude_config_prefix/bin/libprelude-config
|
---|
1314 | dnl fi
|
---|
1315 | dnl fi
|
---|
1316 | dnl
|
---|
1317 | dnl AC_PATH_PROG(LIBPRELUDE_CONFIG, libprelude-config, no)
|
---|
1318 | min_libprelude_version=ifelse([$1], ,0.1.0,$1)
|
---|
1319 | AC_MSG_CHECKING(for libprelude - version >= $min_libprelude_version)
|
---|
1320 | no_libprelude=""
|
---|
1321 | if test "$LIBPRELUDE_CONFIG" = "no" ; then
|
---|
1322 | no_libprelude=yes
|
---|
1323 | else
|
---|
1324 | LIBPRELUDE_CFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --cflags`
|
---|
1325 | LIBPRELUDE_PTHREAD_CFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --pthread-cflags`
|
---|
1326 | LIBPRELUDE_LDFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --ldflags`
|
---|
1327 | LIBPRELUDE_LIBS=`$LIBPRELUDE_CONFIG $libprelude_config_args --libs`
|
---|
1328 | LIBPRELUDE_PREFIX=`$LIBPRELUDE_CONFIG $libprelude_config_args --prefix`
|
---|
1329 | LIBPRELUDE_CONFIG_PREFIX=`$LIBPRELUDE_CONFIG $libprelude_config_args --config-prefix`
|
---|
1330 | libprelude_config_version=`$LIBPRELUDE_CONFIG $libprelude_config_args --version`
|
---|
1331 |
|
---|
1332 |
|
---|
1333 | ac_save_CFLAGS="$CFLAGS"
|
---|
1334 | ac_save_LDFLAGS="$LDFLAGS"
|
---|
1335 | ac_save_LIBS="$LIBS"
|
---|
1336 | CFLAGS="$CFLAGS $LIBPRELUDE_CFLAGS"
|
---|
1337 | LDFLAGS="$LDFLAGS $LIBPRELUDE_LDFLAGS"
|
---|
1338 | LIBS="$LIBS $LIBPRELUDE_LIBS"
|
---|
1339 | dnl
|
---|
1340 | dnl Now check if the installed libprelude is sufficiently new. Also sanity
|
---|
1341 | dnl checks the results of libprelude-config to some extent
|
---|
1342 | dnl
|
---|
1343 | rm -f conf.libpreludetest
|
---|
1344 | AC_TRY_RUN([
|
---|
1345 | #include <stdio.h>
|
---|
1346 | #include <stdlib.h>
|
---|
1347 | #include <string.h>
|
---|
1348 | #include <libprelude/prelude.h>
|
---|
1349 |
|
---|
1350 | int
|
---|
1351 | main ()
|
---|
1352 | {
|
---|
1353 | system ("touch conf.libpreludetest");
|
---|
1354 |
|
---|
1355 | if( strcmp( prelude_check_version(NULL), "$libprelude_config_version" ) )
|
---|
1356 | {
|
---|
1357 | printf("\n*** 'libprelude-config --version' returned %s, but LIBPRELUDE (%s)\n",
|
---|
1358 | "$libprelude_config_version", prelude_check_version(NULL) );
|
---|
1359 | printf("*** was found! If libprelude-config was correct, then it is best\n");
|
---|
1360 | printf("*** to remove the old version of LIBPRELUDE. You may also be able to fix the error\n");
|
---|
1361 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
|
---|
1362 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
|
---|
1363 | printf("*** required on your system.\n");
|
---|
1364 | printf("*** If libprelude-config was wrong, set the environment variable LIBPRELUDE_CONFIG\n");
|
---|
1365 | printf("*** to point to the correct copy of libprelude-config, and remove the file config.cache\n");
|
---|
1366 | printf("*** before re-running configure\n");
|
---|
1367 | }
|
---|
1368 | else if ( strcmp(prelude_check_version(NULL), LIBPRELUDE_VERSION ) )
|
---|
1369 | {
|
---|
1370 | printf("\n*** LIBPRELUDE header file (version %s) does not match\n", LIBPRELUDE_VERSION);
|
---|
1371 | printf("*** library (version %s)\n", prelude_check_version(NULL) );
|
---|
1372 | }
|
---|
1373 | else
|
---|
1374 | {
|
---|
1375 | if ( prelude_check_version( "$min_libprelude_version" ) )
|
---|
1376 | {
|
---|
1377 | return 0;
|
---|
1378 | }
|
---|
1379 | else
|
---|
1380 | {
|
---|
1381 | printf("no\n*** An old version of LIBPRELUDE (%s) was found.\n",
|
---|
1382 | prelude_check_version(NULL) );
|
---|
1383 | printf("*** You need a version of LIBPRELUDE newer than %s. The latest version of\n",
|
---|
1384 | "$min_libprelude_version" );
|
---|
1385 | printf("*** LIBPRELUDE is always available from http://www.prelude-ids.org/download/releases.\n");
|
---|
1386 | printf("*** \n");
|
---|
1387 | printf("*** If you have already installed a sufficiently new version, this error\n");
|
---|
1388 | printf("*** probably means that the wrong copy of the libprelude-config shell script is\n");
|
---|
1389 | printf("*** being found. The easiest way to fix this is to remove the old version\n");
|
---|
1390 | printf("*** of LIBPRELUDE, but you can also set the LIBPRELUDE_CONFIG environment to point to the\n");
|
---|
1391 | printf("*** correct copy of libprelude-config. (In this case, you will have to\n");
|
---|
1392 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
|
---|
1393 | printf("*** so that the correct libraries are found at run-time))\n");
|
---|
1394 | }
|
---|
1395 | }
|
---|
1396 | return 1;
|
---|
1397 | }
|
---|
1398 | ],, no_libprelude=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
|
---|
1399 | CFLAGS="$ac_save_CFLAGS"
|
---|
1400 | LIBS="$ac_save_LIBS"
|
---|
1401 | LDFLAGS="$ac_save_LDFLAGS"
|
---|
1402 | fi
|
---|
1403 |
|
---|
1404 | if test "x$no_libprelude" = x ; then
|
---|
1405 | AC_MSG_RESULT(yes)
|
---|
1406 | ifelse([$2], , :, [$2])
|
---|
1407 | else
|
---|
1408 | if test -f conf.libpreludetest ; then
|
---|
1409 | :
|
---|
1410 | else
|
---|
1411 | AC_MSG_RESULT(no)
|
---|
1412 | fi
|
---|
1413 | if test "$LIBPRELUDE_CONFIG" = "no" ; then
|
---|
1414 | echo "*** The libprelude-config script installed by LIBPRELUDE could not be found"
|
---|
1415 | echo "*** If LIBPRELUDE was installed in PREFIX, make sure PREFIX/bin is in"
|
---|
1416 | echo "*** your path, or set the LIBPRELUDE_CONFIG environment variable to the"
|
---|
1417 | echo "*** full path to libprelude-config."
|
---|
1418 | else
|
---|
1419 | if test -f conf.libpreludetest ; then
|
---|
1420 | :
|
---|
1421 | else
|
---|
1422 | echo "*** Could not run libprelude test program, checking why..."
|
---|
1423 | CFLAGS="$CFLAGS $LIBPRELUDE_CFLAGS"
|
---|
1424 | LDFLAGS="$LDFLAGS $LIBPRELUDE_LDFLAGS"
|
---|
1425 | LIBS="$LIBS $LIBPRELUDE_LIBS"
|
---|
1426 | AC_TRY_LINK([
|
---|
1427 | #include <stdio.h>
|
---|
1428 | #include <stdlib.h>
|
---|
1429 | #include <string.h>
|
---|
1430 | #include <libprelude/prelude.h>
|
---|
1431 | ], [ return !!prelude_check_version(NULL); ],
|
---|
1432 | [ echo "*** The test program compiled, but did not run. This usually means"
|
---|
1433 | echo "*** that the run-time linker is not finding LIBPRELUDE or finding the wrong"
|
---|
1434 | echo "*** version of LIBPRELUDE. If it is not finding LIBPRELUDE, you'll need to set your"
|
---|
1435 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
|
---|
1436 | echo "*** to the installed location Also, make sure you have run ldconfig if that"
|
---|
1437 | echo "*** is required on your system"
|
---|
1438 | echo "***"
|
---|
1439 | echo "*** If you have an old version installed, it is best to remove it, although"
|
---|
1440 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
|
---|
1441 | echo "***" ],
|
---|
1442 | [ echo "*** The test program failed to compile or link. See the file config.log for the"
|
---|
1443 | echo "*** exact error that occured. This usually means LIBPRELUDE was incorrectly installed"
|
---|
1444 | echo "*** or that you have moved LIBPRELUDE since it was installed. In the latter case, you"
|
---|
1445 | echo "*** may want to edit the libprelude-config script: $LIBPRELUDE_CONFIG" ])
|
---|
1446 | CFLAGS="$ac_save_CFLAGS"
|
---|
1447 | LDFLAGS="$ac_save_LDFLAGS"
|
---|
1448 | LIBS="$ac_save_LIBS"
|
---|
1449 | fi
|
---|
1450 | fi
|
---|
1451 | LIBPRELUDE_CFLAGS=""
|
---|
1452 | LIBPRELUDE_LDFLAGS=""
|
---|
1453 | LIBPRELUDE_LIBS=""
|
---|
1454 | ifelse([$3], , :, [$3])
|
---|
1455 | fi
|
---|
1456 | rm -f conf.libpreludetest
|
---|
1457 | AC_SUBST(LIBPRELUDE_CFLAGS)
|
---|
1458 | AC_SUBST(LIBPRELUDE_PTHREAD_CFLAGS)
|
---|
1459 | AC_SUBST(LIBPRELUDE_LDFLAGS)
|
---|
1460 | AC_SUBST(LIBPRELUDE_LIBS)
|
---|
1461 | AC_SUBST(LIBPRELUDE_PREFIX)
|
---|
1462 | AC_SUBST(LIBPRELUDE_CONFIG_PREFIX)
|
---|
1463 | ])
|
---|
1464 |
|
---|
1465 | dnl *-*wedit:notab*-* Please keep this as the last line.
|
---|
1466 |
|
---|