]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
f11781c5 AK |
3 | # Generated by GNU Autoconf 2.66. |
4 | # | |
795ca3e5 | 5 | # |
7a197a62 | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
f11781c5 AK |
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
8 | # Foundation, Inc. | |
9 | # | |
10 | # | |
795ca3e5 AK |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
f11781c5 AK |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
ad6254c5 | 16 | |
25fbec5b AK |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
20 | emulate sh |
21 | NULLCMD=: | |
ec6a6fbe | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
25 | setopt NO_GLOB_SUBST |
26 | else | |
f11781c5 AK |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
25fbec5b | 32 | esac |
7a197a62 | 33 | fi |
25fbec5b AK |
34 | |
35 | ||
ec6a6fbe AK |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 56 | else |
ec6a6fbe AK |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
f11781c5 | 60 | case $arg in #( |
ec6a6fbe AK |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 69 | fi |
ec6a6fbe AK |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
ad6254c5 AK |
81 | fi |
82 | ||
ad6254c5 | 83 | |
7a197a62 AK |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 92 | case $0 in #(( |
7a197a62 AK |
93 | *[\\/]* ) as_myself=$0 ;; |
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
95 | for as_dir in $PATH | |
96 | do | |
97 | IFS=$as_save_IFS | |
98 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
100 | done | |
7a197a62 AK |
101 | IFS=$as_save_IFS |
102 | ||
103 | ;; | |
104 | esac | |
105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
106 | # in which case we are not to be found in the path. | |
107 | if test "x$as_myself" = x; then | |
108 | as_myself=$0 | |
109 | fi | |
110 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 112 | exit 1 |
7a197a62 AK |
113 | fi |
114 | ||
f11781c5 AK |
115 | # Unset variables that we do not need and which cause bugs (e.g. in |
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
117 | # suppresses any "Segmentation fault" message there. '((' could | |
118 | # trigger a bug in pdksh 5.2.14. | |
119 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
120 | do eval test x\${$as_var+set} = xset \ | |
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 122 | done |
ad6254c5 AK |
123 | PS1='$ ' |
124 | PS2='> ' | |
125 | PS4='+ ' | |
126 | ||
127 | # NLS nuisances. | |
ec6a6fbe AK |
128 | LC_ALL=C |
129 | export LC_ALL | |
130 | LANGUAGE=C | |
131 | export LANGUAGE | |
ad6254c5 | 132 | |
f11781c5 AK |
133 | # CDPATH. |
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
135 | ||
136 | if test "x$CONFIG_SHELL" = x; then | |
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
138 | emulate sh | |
139 | NULLCMD=: | |
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
141 | # is contrary to our usage. Disable this feature. | |
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
143 | setopt NO_GLOB_SUBST | |
144 | else | |
145 | case \`(set -o) 2>/dev/null\` in #( | |
146 | *posix*) : | |
147 | set -o posix ;; #( | |
148 | *) : | |
149 | ;; | |
150 | esac | |
151 | fi | |
152 | " | |
153 | as_required="as_fn_return () { (exit \$1); } | |
154 | as_fn_success () { as_fn_return 0; } | |
155 | as_fn_failure () { as_fn_return 1; } | |
156 | as_fn_ret_success () { return 0; } | |
157 | as_fn_ret_failure () { return 1; } | |
158 | ||
159 | exitcode=0 | |
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
165 | ||
166 | else | |
167 | exitcode=1; echo positional parameters were not saved. | |
168 | fi | |
169 | test x\$exitcode = x0 || exit 1" | |
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
174 | test \$(( 1 + 1 )) = 2 || exit 1" | |
175 | if (eval "$as_required") 2>/dev/null; then : | |
176 | as_have_required=yes | |
177 | else | |
178 | as_have_required=no | |
179 | fi | |
180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
181 | ||
182 | else | |
183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
184 | as_found=false | |
185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
186 | do | |
187 | IFS=$as_save_IFS | |
188 | test -z "$as_dir" && as_dir=. | |
189 | as_found=: | |
190 | case $as_dir in #( | |
191 | /*) | |
192 | for as_base in sh bash ksh sh5; do | |
193 | # Try only shells that exist, to save several forks. | |
194 | as_shell=$as_dir/$as_base | |
195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | CONFIG_SHELL=$as_shell as_have_required=yes | |
198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
199 | break 2 | |
200 | fi | |
201 | fi | |
202 | done;; | |
203 | esac | |
204 | as_found=false | |
205 | done | |
206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
208 | CONFIG_SHELL=$SHELL as_have_required=yes | |
209 | fi; } | |
210 | IFS=$as_save_IFS | |
211 | ||
212 | ||
213 | if test "x$CONFIG_SHELL" != x; then : | |
214 | # We cannot yet assume a decent shell, so we have to provide a | |
215 | # neutralization value for shells without unset; and this also | |
216 | # works around shells that cannot unset nonexistent variables. | |
217 | BASH_ENV=/dev/null | |
218 | ENV=/dev/null | |
219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
220 | export CONFIG_SHELL | |
221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
222 | fi | |
223 | ||
224 | if test x$as_have_required = xno; then : | |
225 | $as_echo "$0: This script requires a shell more modern than all" | |
226 | $as_echo "$0: the shells that I found on your system." | |
227 | if test x${ZSH_VERSION+set} = xset ; then | |
228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
230 | else | |
231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
232 | $0: including any error possibly output before this | |
233 | $0: message. Then install a modern shell, or manually run | |
234 | $0: the script under such a shell if you do have one." | |
235 | fi | |
236 | exit 1 | |
237 | fi | |
238 | fi | |
239 | fi | |
240 | SHELL=${CONFIG_SHELL-/bin/sh} | |
241 | export SHELL | |
242 | # Unset more variables known to interfere with behavior of common tools. | |
243 | CLICOLOR_FORCE= GREP_OPTIONS= | |
244 | unset CLICOLOR_FORCE GREP_OPTIONS | |
245 | ||
246 | ## --------------------- ## | |
247 | ## M4sh Shell Functions. ## | |
248 | ## --------------------- ## | |
249 | # as_fn_unset VAR | |
250 | # --------------- | |
251 | # Portably unset VAR. | |
252 | as_fn_unset () | |
253 | { | |
254 | { eval $1=; unset $1;} | |
255 | } | |
256 | as_unset=as_fn_unset | |
257 | ||
258 | # as_fn_set_status STATUS | |
259 | # ----------------------- | |
260 | # Set $? to STATUS, without forking. | |
261 | as_fn_set_status () | |
262 | { | |
263 | return $1 | |
264 | } # as_fn_set_status | |
265 | ||
266 | # as_fn_exit STATUS | |
267 | # ----------------- | |
268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
269 | as_fn_exit () | |
270 | { | |
271 | set +e | |
272 | as_fn_set_status $1 | |
273 | exit $1 | |
274 | } # as_fn_exit | |
275 | ||
276 | # as_fn_mkdir_p | |
277 | # ------------- | |
278 | # Create "$as_dir" as a directory, including parents if necessary. | |
279 | as_fn_mkdir_p () | |
280 | { | |
281 | ||
282 | case $as_dir in #( | |
283 | -*) as_dir=./$as_dir;; | |
284 | esac | |
285 | test -d "$as_dir" || eval $as_mkdir_p || { | |
286 | as_dirs= | |
287 | while :; do | |
288 | case $as_dir in #( | |
289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
290 | *) as_qdir=$as_dir;; | |
291 | esac | |
292 | as_dirs="'$as_qdir' $as_dirs" | |
293 | as_dir=`$as_dirname -- "$as_dir" || | |
294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
295 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
296 | X"$as_dir" : 'X\(//\)$' \| \ | |
297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
298 | $as_echo X"$as_dir" | | |
299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
300 | s//\1/ | |
301 | q | |
302 | } | |
303 | /^X\(\/\/\)[^/].*/{ | |
304 | s//\1/ | |
305 | q | |
306 | } | |
307 | /^X\(\/\/\)$/{ | |
308 | s//\1/ | |
309 | q | |
310 | } | |
311 | /^X\(\/\).*/{ | |
312 | s//\1/ | |
313 | q | |
314 | } | |
315 | s/.*/./; q'` | |
316 | test -d "$as_dir" && break | |
317 | done | |
318 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
319 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
320 | ||
321 | ||
322 | } # as_fn_mkdir_p | |
323 | # as_fn_append VAR VALUE | |
324 | # ---------------------- | |
325 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
326 | # advantage of any shell optimizations that allow amortized linear growth over | |
327 | # repeated appends, instead of the typical quadratic growth present in naive | |
328 | # implementations. | |
329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
330 | eval 'as_fn_append () | |
331 | { | |
332 | eval $1+=\$2 | |
333 | }' | |
334 | else | |
335 | as_fn_append () | |
336 | { | |
337 | eval $1=\$$1\$2 | |
338 | } | |
339 | fi # as_fn_append | |
340 | ||
341 | # as_fn_arith ARG... | |
342 | # ------------------ | |
343 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
345 | # must be portable across $(()) and expr. | |
346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
347 | eval 'as_fn_arith () | |
348 | { | |
349 | as_val=$(( $* )) | |
350 | }' | |
351 | else | |
352 | as_fn_arith () | |
353 | { | |
354 | as_val=`expr "$@" || test $? -eq 1` | |
355 | } | |
356 | fi # as_fn_arith | |
357 | ||
358 | ||
359 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
360 | # ---------------------------------------- | |
361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
363 | # script with STATUS, using 1 if that was 0. | |
364 | as_fn_error () | |
365 | { | |
366 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
367 | if test "$4"; then | |
368 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
370 | fi | |
371 | $as_echo "$as_me: error: $2" >&2 | |
372 | as_fn_exit $as_status | |
373 | } # as_fn_error | |
374 | ||
7a197a62 AK |
375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
377 | as_expr=expr |
378 | else | |
379 | as_expr=false | |
380 | fi | |
381 | ||
7a197a62 | 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
383 | as_basename=basename |
384 | else | |
385 | as_basename=false | |
386 | fi | |
387 | ||
f11781c5 AK |
388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
389 | as_dirname=dirname | |
390 | else | |
391 | as_dirname=false | |
392 | fi | |
ad6254c5 | 393 | |
7a197a62 | 394 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
396 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 398 | $as_echo X/"$0" | |
7a197a62 AK |
399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
400 | s//\1/ | |
401 | q | |
402 | } | |
403 | /^X\/\(\/\/\)$/{ | |
404 | s//\1/ | |
405 | q | |
406 | } | |
407 | /^X\/\(\/\).*/{ | |
408 | s//\1/ | |
409 | q | |
410 | } | |
411 | s/.*/./; q'` | |
ad6254c5 | 412 | |
f11781c5 AK |
413 | # Avoid depending upon Character Ranges. |
414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
417 | as_cr_digits='0123456789' | |
418 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
ad6254c5 | 419 | |
ad6254c5 | 420 | |
f11781c5 AK |
421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
426 | sed -n ' | |
427 | p | |
428 | /[$]LINENO/= | |
429 | ' <$as_myself | | |
430 | sed ' | |
431 | s/[$]LINENO.*/&-/ | |
432 | t lineno | |
433 | b | |
434 | :lineno | |
435 | N | |
436 | :loop | |
437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
438 | t loop | |
439 | s/-\n.*// | |
440 | ' >$as_me.lineno && | |
441 | chmod +x "$as_me.lineno" || | |
442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
ad6254c5 | 443 | |
f11781c5 AK |
444 | # Don't try to exec as it changes $[0], causing all sort of problems |
445 | # (the dirname of $[0] is not the place where we might find the | |
446 | # original and so on. Autoconf is especially sensitive to this). | |
447 | . "./$as_me.lineno" | |
448 | # Exit status is that of the last command. | |
449 | exit | |
7a197a62 | 450 | } |
ad6254c5 | 451 | |
f11781c5 AK |
452 | ECHO_C= ECHO_N= ECHO_T= |
453 | case `echo -n x` in #((((( | |
454 | -n*) | |
455 | case `echo 'xy\c'` in | |
456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
457 | xy) ECHO_C='\c';; | |
458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
459 | ECHO_T=' ';; | |
460 | esac;; | |
461 | *) | |
462 | ECHO_N='-n';; | |
463 | esac | |
ad6254c5 | 464 | |
f11781c5 AK |
465 | rm -f conf$$ conf$$.exe conf$$.file |
466 | if test -d conf$$.dir; then | |
467 | rm -f conf$$.dir/conf$$.file | |
468 | else | |
469 | rm -f conf$$.dir | |
470 | mkdir conf$$.dir 2>/dev/null | |
7a197a62 | 471 | fi |
f11781c5 AK |
472 | if (echo >conf$$.file) 2>/dev/null; then |
473 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
474 | as_ln_s='ln -s' | |
475 | # ... but there are two gotchas: | |
476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
478 | # In both cases, we have to default to `cp -p'. | |
479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
480 | as_ln_s='cp -p' | |
481 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
482 | as_ln_s=ln | |
483 | else | |
484 | as_ln_s='cp -p' | |
485 | fi | |
7a197a62 | 486 | else |
f11781c5 | 487 | as_ln_s='cp -p' |
7a197a62 | 488 | fi |
f11781c5 AK |
489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
490 | rmdir conf$$.dir 2>/dev/null | |
7a197a62 | 491 | |
f11781c5 AK |
492 | if mkdir -p . 2>/dev/null; then |
493 | as_mkdir_p='mkdir -p "$as_dir"' | |
494 | else | |
495 | test -d ./-p && rmdir ./-p | |
496 | as_mkdir_p=false | |
7a197a62 AK |
497 | fi |
498 | ||
f11781c5 AK |
499 | if test -x / >/dev/null 2>&1; then |
500 | as_test_x='test -x' | |
7a197a62 | 501 | else |
f11781c5 AK |
502 | if ls -dL / >/dev/null 2>&1; then |
503 | as_ls_L_option=L | |
504 | else | |
505 | as_ls_L_option= | |
506 | fi | |
507 | as_test_x=' | |
508 | eval sh -c '\'' | |
509 | if test -d "$1"; then | |
510 | test -d "$1/."; | |
511 | else | |
512 | case $1 in #( | |
513 | -*)set "./$1";; | |
514 | esac; | |
515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
516 | ???[sx]*):;;*)false;;esac;fi | |
517 | '\'' sh | |
518 | ' | |
7a197a62 | 519 | fi |
f11781c5 | 520 | as_executable_p=$as_test_x |
7a197a62 | 521 | |
f11781c5 AK |
522 | # Sed expression to map a string onto a valid CPP name. |
523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7a197a62 | 524 | |
f11781c5 AK |
525 | # Sed expression to map a string onto a valid variable name. |
526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7a197a62 AK |
527 | |
528 | ||
f11781c5 AK |
529 | test -n "$DJDIR" || exec 7<&0 </dev/null |
530 | exec 6>&1 | |
ad6254c5 AK |
531 | |
532 | # Name of the host. | |
f11781c5 | 533 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
ad6254c5 AK |
534 | # so uname gets run too. |
535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
536 | ||
ad6254c5 AK |
537 | # |
538 | # Initializations. | |
539 | # | |
795ca3e5 | 540 | ac_default_prefix=/usr/local |
7a197a62 | 541 | ac_clean_files= |
ad6254c5 | 542 | ac_config_libobj_dir=. |
7a197a62 | 543 | LIBOBJS= |
ad6254c5 AK |
544 | cross_compiling=no |
545 | subdirs= | |
546 | MFLAGS= | |
547 | MAKEFLAGS= | |
ad6254c5 | 548 | |
ad6254c5 AK |
549 | # Identity of this package. |
550 | PACKAGE_NAME= | |
551 | PACKAGE_TARNAME= | |
552 | PACKAGE_VERSION= | |
553 | PACKAGE_STRING= | |
554 | PACKAGE_BUGREPORT= | |
f11781c5 | 555 | PACKAGE_URL= |
ad6254c5 AK |
556 | |
557 | ac_unique_file="lib/device/dev-cache.h" | |
558 | # Factoring default headers for most tests. | |
559 | ac_includes_default="\ | |
560 | #include <stdio.h> | |
25fbec5b | 561 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
562 | # include <sys/types.h> |
563 | #endif | |
25fbec5b | 564 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
565 | # include <sys/stat.h> |
566 | #endif | |
25fbec5b | 567 | #ifdef STDC_HEADERS |
ad6254c5 AK |
568 | # include <stdlib.h> |
569 | # include <stddef.h> | |
570 | #else | |
25fbec5b | 571 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
572 | # include <stdlib.h> |
573 | # endif | |
574 | #endif | |
25fbec5b AK |
575 | #ifdef HAVE_STRING_H |
576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
577 | # include <memory.h> |
578 | # endif | |
579 | # include <string.h> | |
580 | #endif | |
25fbec5b | 581 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
582 | # include <strings.h> |
583 | #endif | |
25fbec5b | 584 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 585 | # include <inttypes.h> |
ad6254c5 | 586 | #endif |
25fbec5b | 587 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
588 | # include <stdint.h> |
589 | #endif | |
25fbec5b | 590 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
591 | # include <unistd.h> |
592 | #endif" | |
593 | ||
f11781c5 | 594 | ac_header_list= |
795ca3e5 | 595 | ac_default_prefix=/usr |
ec6a6fbe | 596 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 597 | usrsbindir |
ec6a6fbe | 598 | usrlibdir |
a5f46f6a AK |
599 | udevdir |
600 | udev_prefix | |
ec6a6fbe AK |
601 | tmpdir |
602 | kernelvsn | |
603 | missingkernel | |
604 | kerneldir | |
605 | interface | |
6e5c1f75 | 606 | DMEVENTD_PIDFILE |
23b059e7 | 607 | WRITE_INSTALL |
0878503f | 608 | UDEV_SYNC |
a5f46f6a | 609 | UDEV_RULES |
f7f0854e | 610 | UDEV_PC |
54b362f9 | 611 | TESTING |
ec6a6fbe AK |
612 | STATIC_LINK |
613 | STATICDIR | |
614 | SNAPSHOTS | |
f7f0854e | 615 | SELINUX_PC |
e1b8a236 | 616 | SELINUX_LIBS |
539f4a77 | 617 | READLINE_LIBS |
f30875db | 618 | PTHREAD_LIBS |
ec6a6fbe AK |
619 | POOL |
620 | PKGCONFIG | |
8fea97b7 | 621 | REPLICATORS |
606d0858 | 622 | OCFDIR |
37ddf259 | 623 | OCF |
ec6a6fbe AK |
624 | MIRRORS |
625 | LVM_RELEASE_DATE | |
626 | LVM_RELEASE | |
627 | LVM_PATCHLEVEL | |
628 | LVM_MINOR | |
629 | LVM_MAJOR | |
bf456146 | 630 | LVM_LIBAPI |
ec6a6fbe | 631 | LVM_VERSION |
ec6a6fbe AK |
632 | LVM1_FALLBACK |
633 | LVM1 | |
634 | LOCALEDIR | |
635 | LIB_SUFFIX | |
636 | LDDEPS | |
637 | JOBS | |
638 | INTL_PACKAGE | |
639 | INTL | |
ec6a6fbe AK |
640 | HAVE_REALTIME |
641 | HAVE_LIBDL | |
ec6a6fbe AK |
642 | FSADM |
643 | DM_LIB_PATCHLEVEL | |
644 | DM_LIB_VERSION | |
645 | DM_IOCTLS | |
646 | DM_DEVICE_UID | |
647 | DM_DEVICE_MODE | |
648 | DM_DEVICE_GID | |
649 | DM_COMPAT | |
d1e8046f | 650 | DMEVENTD_PATH |
ec6a6fbe | 651 | DMEVENTD |
19a2c6e0 | 652 | DL_LIBS |
ec6a6fbe | 653 | DEVMAPPER |
b1f08e51 | 654 | DEFAULT_RUN_DIR |
3399ae32 | 655 | DEFAULT_LOCK_DIR |
fea55602 | 656 | DEFAULT_DATA_ALIGNMENT |
3399ae32 AK |
657 | DEFAULT_CACHE_SUBDIR |
658 | DEFAULT_BACKUP_SUBDIR | |
659 | DEFAULT_ARCHIVE_SUBDIR | |
660 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
661 | DEBUG |
662 | COPTIMISE_FLAG | |
e2997b73 | 663 | CONFDIR |
ec6a6fbe | 664 | CMDLIB |
c89bc357 | 665 | CLVMD_CMANAGERS |
ec6a6fbe AK |
666 | CLVMD |
667 | CLUSTER | |
668 | CLDWHOLEARCHIVE | |
669 | CLDNOWHOLEARCHIVE | |
670 | CLDFLAGS | |
671 | BUILD_DMEVENTD | |
66fd4529 | 672 | BUILD_CMIRRORD |
572fefeb | 673 | APPLIB |
ec6a6fbe AK |
674 | MODPROBE_CMD |
675 | MSGFMT | |
676 | LVM2CMD_LIB | |
572fefeb | 677 | LVM2APP_LIB |
d93275eb PR |
678 | UDEV_LIBS |
679 | UDEV_CFLAGS | |
54b362f9 AK |
680 | VALGRIND |
681 | RUBY19 | |
fd4728e1 | 682 | GENPNG |
ec6a6fbe AK |
683 | GENHTML |
684 | LCOV | |
90c80887 AK |
685 | SACKPT_LIBS |
686 | SACKPT_CFLAGS | |
a946372e AK |
687 | DLM_LIBS |
688 | DLM_CFLAGS | |
e2997b73 AK |
689 | CPG_LIBS |
690 | CPG_CFLAGS | |
691 | CONFDB_LIBS | |
692 | CONFDB_CFLAGS | |
a946372e AK |
693 | SALCK_LIBS |
694 | SALCK_CFLAGS | |
e2997b73 AK |
695 | QUORUM_LIBS |
696 | QUORUM_CFLAGS | |
a946372e AK |
697 | COROSYNC_LIBS |
698 | COROSYNC_CFLAGS | |
699 | CMAN_LIBS | |
700 | CMAN_CFLAGS | |
701 | GULM_LIBS | |
702 | GULM_CFLAGS | |
703 | CCS_LIBS | |
704 | CCS_CFLAGS | |
705 | PKGCONFIGINIT_LIBS | |
706 | PKGCONFIGINIT_CFLAGS | |
f11781c5 AK |
707 | PKG_CONFIG_LIBDIR |
708 | PKG_CONFIG_PATH | |
e2997b73 | 709 | PKG_CONFIG |
ec6a6fbe AK |
710 | POW_LIB |
711 | LIBOBJS | |
712 | ALLOCA | |
713 | CSCOPE_CMD | |
714 | CFLOW_CMD | |
715 | RANLIB | |
716 | MKDIR_P | |
717 | SET_MAKE | |
718 | LN_S | |
719 | INSTALL_DATA | |
720 | INSTALL_SCRIPT | |
721 | INSTALL_PROGRAM | |
722 | EGREP | |
723 | GREP | |
724 | CPP | |
725 | OBJEXT | |
726 | EXEEXT | |
727 | ac_ct_CC | |
728 | CPPFLAGS | |
729 | LDFLAGS | |
730 | CFLAGS | |
731 | CC | |
732 | AWK | |
733 | SED | |
734 | target_os | |
735 | target_vendor | |
736 | target_cpu | |
737 | target | |
738 | host_os | |
739 | host_vendor | |
740 | host_cpu | |
741 | host | |
742 | build_os | |
743 | build_vendor | |
744 | build_cpu | |
745 | build | |
746 | target_alias | |
747 | host_alias | |
748 | build_alias | |
749 | LIBS | |
750 | ECHO_T | |
751 | ECHO_N | |
752 | ECHO_C | |
753 | DEFS | |
754 | mandir | |
755 | localedir | |
756 | libdir | |
757 | psdir | |
758 | pdfdir | |
759 | dvidir | |
760 | htmldir | |
761 | infodir | |
762 | docdir | |
763 | oldincludedir | |
764 | includedir | |
765 | localstatedir | |
766 | sharedstatedir | |
767 | sysconfdir | |
768 | datadir | |
769 | datarootdir | |
770 | libexecdir | |
771 | sbindir | |
772 | bindir | |
773 | program_transform_name | |
774 | prefix | |
775 | exec_prefix | |
f11781c5 | 776 | PACKAGE_URL |
ec6a6fbe AK |
777 | PACKAGE_BUGREPORT |
778 | PACKAGE_STRING | |
779 | PACKAGE_VERSION | |
780 | PACKAGE_TARNAME | |
781 | PACKAGE_NAME | |
782 | PATH_SEPARATOR | |
783 | SHELL' | |
ad6254c5 | 784 | ac_subst_files='' |
ec6a6fbe AK |
785 | ac_user_opts=' |
786 | enable_option_checking | |
787 | enable_static_link | |
788 | with_user | |
789 | with_group | |
790 | with_device_uid | |
791 | with_device_gid | |
792 | with_device_mode | |
d0df875d | 793 | with_device_nodes_on |
ec6a6fbe AK |
794 | enable_lvm1_fallback |
795 | with_lvm1 | |
796 | with_pool | |
797 | with_cluster | |
798 | with_snapshots | |
799 | with_mirrors | |
8fea97b7 | 800 | with_replicators |
ec6a6fbe AK |
801 | enable_readline |
802 | enable_realtime | |
37ddf259 | 803 | enable_ocf |
606d0858 | 804 | with_ocfdir |
ec6a6fbe | 805 | with_clvmd |
8c4e8a18 | 806 | with_clvmd_pidfile |
66fd4529 AK |
807 | enable_cmirrord |
808 | with_cmirrord_pidfile | |
ec6a6fbe AK |
809 | enable_debug |
810 | with_optimisation | |
811 | enable_profiling | |
54b362f9 | 812 | enable_testing |
d1e8046f | 813 | enable_valgrind_pool |
ec6a6fbe | 814 | enable_devmapper |
a5f46f6a AK |
815 | enable_udev_sync |
816 | enable_udev_rules | |
ec6a6fbe | 817 | enable_compat |
95eaa683 | 818 | enable_units_compat |
ec6a6fbe AK |
819 | enable_ioctl |
820 | enable_o_direct | |
572fefeb | 821 | enable_applib |
ec6a6fbe AK |
822 | enable_cmdlib |
823 | enable_pkgconfig | |
23b059e7 | 824 | enable_write_install |
ec6a6fbe AK |
825 | enable_fsadm |
826 | enable_dmeventd | |
827 | enable_selinux | |
828 | enable_nls | |
829 | with_localedir | |
830 | with_confdir | |
831 | with_staticdir | |
832 | with_usrlibdir | |
833 | with_usrsbindir | |
a5f46f6a | 834 | with_udev_prefix |
78ce7acc | 835 | with_udevdir |
ec6a6fbe AK |
836 | with_dmeventd_pidfile |
837 | with_dmeventd_path | |
8bae0a1e | 838 | with_default_run_dir |
3399ae32 AK |
839 | with_default_system_dir |
840 | with_default_archive_subdir | |
841 | with_default_backup_subdir | |
842 | with_default_cache_subdir | |
843 | with_default_locking_dir | |
fea55602 | 844 | with_default_data_alignment |
ec6a6fbe AK |
845 | with_interface |
846 | ' | |
7a197a62 AK |
847 | ac_precious_vars='build_alias |
848 | host_alias | |
849 | target_alias | |
850 | CC | |
851 | CFLAGS | |
852 | LDFLAGS | |
25fbec5b | 853 | LIBS |
7a197a62 | 854 | CPPFLAGS |
e2997b73 AK |
855 | CPP |
856 | PKG_CONFIG | |
f11781c5 AK |
857 | PKG_CONFIG_PATH |
858 | PKG_CONFIG_LIBDIR | |
a946372e AK |
859 | PKGCONFIGINIT_CFLAGS |
860 | PKGCONFIGINIT_LIBS | |
861 | CCS_CFLAGS | |
862 | CCS_LIBS | |
863 | GULM_CFLAGS | |
864 | GULM_LIBS | |
865 | CMAN_CFLAGS | |
866 | CMAN_LIBS | |
867 | COROSYNC_CFLAGS | |
868 | COROSYNC_LIBS | |
e2997b73 AK |
869 | QUORUM_CFLAGS |
870 | QUORUM_LIBS | |
a946372e AK |
871 | SALCK_CFLAGS |
872 | SALCK_LIBS | |
e2997b73 AK |
873 | CONFDB_CFLAGS |
874 | CONFDB_LIBS | |
875 | CPG_CFLAGS | |
a946372e AK |
876 | CPG_LIBS |
877 | DLM_CFLAGS | |
90c80887 AK |
878 | DLM_LIBS |
879 | SACKPT_CFLAGS | |
d93275eb PR |
880 | SACKPT_LIBS |
881 | UDEV_CFLAGS | |
882 | UDEV_LIBS' | |
7a197a62 | 883 | |
795ca3e5 AK |
884 | |
885 | # Initialize some variables set by options. | |
ad6254c5 AK |
886 | ac_init_help= |
887 | ac_init_version=false | |
ec6a6fbe AK |
888 | ac_unrecognized_opts= |
889 | ac_unrecognized_sep= | |
795ca3e5 AK |
890 | # The variables have the same names as the options, with |
891 | # dashes changed to underlines. | |
ad6254c5 | 892 | cache_file=/dev/null |
795ca3e5 | 893 | exec_prefix=NONE |
795ca3e5 | 894 | no_create= |
795ca3e5 AK |
895 | no_recursion= |
896 | prefix=NONE | |
897 | program_prefix=NONE | |
898 | program_suffix=NONE | |
899 | program_transform_name=s,x,x, | |
900 | silent= | |
901 | site= | |
902 | srcdir= | |
795ca3e5 AK |
903 | verbose= |
904 | x_includes=NONE | |
905 | x_libraries=NONE | |
ad6254c5 AK |
906 | |
907 | # Installation directory options. | |
908 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
909 | # and all the variables that are supposed to be based on exec_prefix | |
910 | # by default will actually change. | |
911 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 912 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
913 | bindir='${exec_prefix}/bin' |
914 | sbindir='${exec_prefix}/sbin' | |
915 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
916 | datarootdir='${prefix}/share' |
917 | datadir='${datarootdir}' | |
795ca3e5 AK |
918 | sysconfdir='${prefix}/etc' |
919 | sharedstatedir='${prefix}/com' | |
920 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
921 | includedir='${prefix}/include' |
922 | oldincludedir='/usr/include' | |
7a197a62 AK |
923 | docdir='${datarootdir}/doc/${PACKAGE}' |
924 | infodir='${datarootdir}/info' | |
925 | htmldir='${docdir}' | |
926 | dvidir='${docdir}' | |
927 | pdfdir='${docdir}' | |
928 | psdir='${docdir}' | |
929 | libdir='${exec_prefix}/lib' | |
930 | localedir='${datarootdir}/locale' | |
931 | mandir='${datarootdir}/man' | |
795ca3e5 | 932 | |
795ca3e5 | 933 | ac_prev= |
7a197a62 | 934 | ac_dashdash= |
795ca3e5 AK |
935 | for ac_option |
936 | do | |
795ca3e5 AK |
937 | # If the previous option needs an argument, assign it. |
938 | if test -n "$ac_prev"; then | |
7a197a62 | 939 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
940 | ac_prev= |
941 | continue | |
942 | fi | |
943 | ||
7a197a62 AK |
944 | case $ac_option in |
945 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
946 | *) ac_optarg=yes ;; | |
947 | esac | |
795ca3e5 AK |
948 | |
949 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
950 | ||
7a197a62 AK |
951 | case $ac_dashdash$ac_option in |
952 | --) | |
953 | ac_dashdash=yes ;; | |
795ca3e5 AK |
954 | |
955 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
956 | ac_prev=bindir ;; | |
957 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 958 | bindir=$ac_optarg ;; |
795ca3e5 AK |
959 | |
960 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 961 | ac_prev=build_alias ;; |
795ca3e5 | 962 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 963 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
964 | |
965 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
966 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
967 | ac_prev=cache_file ;; | |
968 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
969 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
970 | cache_file=$ac_optarg ;; |
971 | ||
972 | --config-cache | -C) | |
973 | cache_file=config.cache ;; | |
795ca3e5 | 974 | |
7a197a62 | 975 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 976 | ac_prev=datadir ;; |
7a197a62 | 977 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 978 | datadir=$ac_optarg ;; |
795ca3e5 | 979 | |
7a197a62 AK |
980 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
981 | | --dataroo | --dataro | --datar) | |
982 | ac_prev=datarootdir ;; | |
983 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
984 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
985 | datarootdir=$ac_optarg ;; | |
986 | ||
795ca3e5 | 987 | -disable-* | --disable-*) |
ec6a6fbe | 988 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 989 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 990 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 991 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
992 | ac_useropt_orig=$ac_useropt |
993 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
994 | case $ac_user_opts in | |
995 | *" | |
996 | "enable_$ac_useropt" | |
997 | "*) ;; | |
998 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
999 | ac_unrecognized_sep=', ';; | |
1000 | esac | |
1001 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1002 | |
1003 | -docdir | --docdir | --docdi | --doc | --do) | |
1004 | ac_prev=docdir ;; | |
1005 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1006 | docdir=$ac_optarg ;; | |
1007 | ||
1008 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1009 | ac_prev=dvidir ;; | |
1010 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1011 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1012 | |
1013 | -enable-* | --enable-*) | |
ec6a6fbe | 1014 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1015 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1016 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1017 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
1018 | ac_useropt_orig=$ac_useropt |
1019 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1020 | case $ac_user_opts in | |
1021 | *" | |
1022 | "enable_$ac_useropt" | |
1023 | "*) ;; | |
1024 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1025 | ac_unrecognized_sep=', ';; | |
1026 | esac | |
1027 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1028 | |
1029 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1030 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1031 | | --exec | --exe | --ex) | |
1032 | ac_prev=exec_prefix ;; | |
1033 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1034 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1035 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1036 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1037 | |
1038 | -gas | --gas | --ga | --g) | |
1039 | # Obsolete; use --with-gas. | |
1040 | with_gas=yes ;; | |
1041 | ||
ad6254c5 AK |
1042 | -help | --help | --hel | --he | -h) |
1043 | ac_init_help=long ;; | |
1044 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1045 | ac_init_help=recursive ;; | |
1046 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1047 | ac_init_help=short ;; | |
795ca3e5 AK |
1048 | |
1049 | -host | --host | --hos | --ho) | |
ad6254c5 | 1050 | ac_prev=host_alias ;; |
795ca3e5 | 1051 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1052 | host_alias=$ac_optarg ;; |
795ca3e5 | 1053 | |
7a197a62 AK |
1054 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1055 | ac_prev=htmldir ;; | |
1056 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1057 | | --ht=*) | |
1058 | htmldir=$ac_optarg ;; | |
1059 | ||
795ca3e5 AK |
1060 | -includedir | --includedir | --includedi | --included | --include \ |
1061 | | --includ | --inclu | --incl | --inc) | |
1062 | ac_prev=includedir ;; | |
1063 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1064 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1065 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1066 | |
1067 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1068 | ac_prev=infodir ;; | |
1069 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1070 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1071 | |
1072 | -libdir | --libdir | --libdi | --libd) | |
1073 | ac_prev=libdir ;; | |
1074 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1075 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1076 | |
1077 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1078 | | --libexe | --libex | --libe) | |
1079 | ac_prev=libexecdir ;; | |
1080 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1081 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1082 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1083 | |
7a197a62 AK |
1084 | -localedir | --localedir | --localedi | --localed | --locale) |
1085 | ac_prev=localedir ;; | |
1086 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1087 | localedir=$ac_optarg ;; | |
1088 | ||
795ca3e5 | 1089 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1090 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1091 | ac_prev=localstatedir ;; |
1092 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1093 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1094 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1095 | |
1096 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1097 | ac_prev=mandir ;; | |
1098 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1099 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1100 | |
1101 | -nfp | --nfp | --nf) | |
1102 | # Obsolete; use --without-fp. | |
1103 | with_fp=no ;; | |
1104 | ||
1105 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1106 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1107 | no_create=yes ;; |
1108 | ||
1109 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1110 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1111 | no_recursion=yes ;; | |
1112 | ||
1113 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1114 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1115 | | --oldin | --oldi | --old | --ol | --o) | |
1116 | ac_prev=oldincludedir ;; | |
1117 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1118 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1119 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1120 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1121 | |
1122 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1123 | ac_prev=prefix ;; | |
1124 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1125 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1126 | |
1127 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1128 | | --program-pre | --program-pr | --program-p) | |
1129 | ac_prev=program_prefix ;; | |
1130 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1131 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1132 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1133 | |
1134 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1135 | | --program-suf | --program-su | --program-s) | |
1136 | ac_prev=program_suffix ;; | |
1137 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1138 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1139 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1140 | |
1141 | -program-transform-name | --program-transform-name \ | |
1142 | | --program-transform-nam | --program-transform-na \ | |
1143 | | --program-transform-n | --program-transform- \ | |
1144 | | --program-transform | --program-transfor \ | |
1145 | | --program-transfo | --program-transf \ | |
1146 | | --program-trans | --program-tran \ | |
1147 | | --progr-tra | --program-tr | --program-t) | |
1148 | ac_prev=program_transform_name ;; | |
1149 | -program-transform-name=* | --program-transform-name=* \ | |
1150 | | --program-transform-nam=* | --program-transform-na=* \ | |
1151 | | --program-transform-n=* | --program-transform-=* \ | |
1152 | | --program-transform=* | --program-transfor=* \ | |
1153 | | --program-transfo=* | --program-transf=* \ | |
1154 | | --program-trans=* | --program-tran=* \ | |
1155 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1156 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1157 | |
7a197a62 AK |
1158 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1159 | ac_prev=pdfdir ;; | |
1160 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1161 | pdfdir=$ac_optarg ;; | |
1162 | ||
1163 | -psdir | --psdir | --psdi | --psd | --ps) | |
1164 | ac_prev=psdir ;; | |
1165 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1166 | psdir=$ac_optarg ;; | |
1167 | ||
795ca3e5 AK |
1168 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1169 | | -silent | --silent | --silen | --sile | --sil) | |
1170 | silent=yes ;; | |
1171 | ||
1172 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1173 | ac_prev=sbindir ;; | |
1174 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1175 | | --sbi=* | --sb=*) | |
ad6254c5 | 1176 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1177 | |
1178 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1179 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1180 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1181 | | --sha | --sh) | |
1182 | ac_prev=sharedstatedir ;; | |
1183 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1184 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1185 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1186 | | --sha=* | --sh=*) | |
ad6254c5 | 1187 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1188 | |
1189 | -site | --site | --sit) | |
1190 | ac_prev=site ;; | |
1191 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1192 | site=$ac_optarg ;; |
795ca3e5 AK |
1193 | |
1194 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1195 | ac_prev=srcdir ;; | |
1196 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1197 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1198 | |
1199 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1200 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1201 | ac_prev=sysconfdir ;; | |
1202 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1203 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1204 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1205 | |
1206 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1207 | ac_prev=target_alias ;; |
795ca3e5 | 1208 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1209 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1210 | |
1211 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1212 | verbose=yes ;; | |
1213 | ||
ad6254c5 AK |
1214 | -version | --version | --versio | --versi | --vers | -V) |
1215 | ac_init_version=: ;; | |
795ca3e5 AK |
1216 | |
1217 | -with-* | --with-*) | |
ec6a6fbe | 1218 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1219 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1220 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1221 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1222 | ac_useropt_orig=$ac_useropt |
1223 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1224 | case $ac_user_opts in | |
1225 | *" | |
1226 | "with_$ac_useropt" | |
1227 | "*) ;; | |
1228 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1229 | ac_unrecognized_sep=', ';; | |
1230 | esac | |
1231 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1232 | |
1233 | -without-* | --without-*) | |
ec6a6fbe | 1234 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1235 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1236 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1237 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1238 | ac_useropt_orig=$ac_useropt |
1239 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1240 | case $ac_user_opts in | |
1241 | *" | |
1242 | "with_$ac_useropt" | |
1243 | "*) ;; | |
1244 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1245 | ac_unrecognized_sep=', ';; | |
1246 | esac | |
1247 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1248 | |
1249 | --x) | |
1250 | # Obsolete; use --with-x. | |
1251 | with_x=yes ;; | |
1252 | ||
1253 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1254 | | --x-incl | --x-inc | --x-in | --x-i) | |
1255 | ac_prev=x_includes ;; | |
1256 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1257 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1258 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1259 | |
1260 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1261 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1262 | ac_prev=x_libraries ;; | |
1263 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1264 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1265 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1266 | |
f11781c5 AK |
1267 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1268 | Try \`$0 --help' for more information" | |
795ca3e5 AK |
1269 | ;; |
1270 | ||
ad6254c5 AK |
1271 | *=*) |
1272 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1273 | # Reject names that are not valid shell variable names. | |
f11781c5 AK |
1274 | case $ac_envvar in #( |
1275 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1276 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1277 | esac | |
7a197a62 | 1278 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1279 | export $ac_envvar ;; |
1280 | ||
795ca3e5 | 1281 | *) |
ad6254c5 | 1282 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1283 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1284 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1285 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1286 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1287 | ;; |
1288 | ||
1289 | esac | |
1290 | done | |
1291 | ||
1292 | if test -n "$ac_prev"; then | |
ad6254c5 | 1293 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
f11781c5 | 1294 | as_fn_error $? "missing argument to $ac_option" |
795ca3e5 | 1295 | fi |
795ca3e5 | 1296 | |
ec6a6fbe AK |
1297 | if test -n "$ac_unrecognized_opts"; then |
1298 | case $enable_option_checking in | |
1299 | no) ;; | |
f11781c5 | 1300 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
ec6a6fbe AK |
1301 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1302 | esac | |
1303 | fi | |
1304 | ||
1305 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1306 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1307 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1308 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1309 | libdir localedir mandir | |
795ca3e5 | 1310 | do |
7a197a62 | 1311 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1312 | # Remove trailing slashes. |
1313 | case $ac_val in | |
1314 | */ ) | |
1315 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1316 | eval $ac_var=\$ac_val;; | |
1317 | esac | |
1318 | # Be sure to have absolute directory names. | |
ad6254c5 | 1319 | case $ac_val in |
7a197a62 AK |
1320 | [\\/$]* | ?:[\\/]* ) continue;; |
1321 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1322 | esac |
f11781c5 | 1323 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
795ca3e5 AK |
1324 | done |
1325 | ||
ad6254c5 AK |
1326 | # There might be people who depend on the old broken behavior: `$host' |
1327 | # used to hold the argument of --host etc. | |
1328 | # FIXME: To remove some day. | |
1329 | build=$build_alias | |
1330 | host=$host_alias | |
1331 | target=$target_alias | |
1332 | ||
1333 | # FIXME: To remove some day. | |
1334 | if test "x$host_alias" != x; then | |
1335 | if test "x$build_alias" = x; then | |
1336 | cross_compiling=maybe | |
f11781c5 AK |
1337 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1338 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
ad6254c5 AK |
1339 | elif test "x$build_alias" != "x$host_alias"; then |
1340 | cross_compiling=yes | |
1341 | fi | |
1342 | fi | |
8106cdd5 | 1343 | |
ad6254c5 AK |
1344 | ac_tool_prefix= |
1345 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1346 | ||
1347 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1348 | |
795ca3e5 | 1349 | |
7a197a62 AK |
1350 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1351 | ac_ls_di=`ls -di .` && | |
1352 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f11781c5 | 1353 | as_fn_error $? "working directory cannot be determined" |
7a197a62 | 1354 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f11781c5 | 1355 | as_fn_error $? "pwd does not report name of working directory" |
7a197a62 AK |
1356 | |
1357 | ||
795ca3e5 AK |
1358 | # Find the source files, if location was not specified. |
1359 | if test -z "$srcdir"; then | |
1360 | ac_srcdir_defaulted=yes | |
7a197a62 | 1361 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1362 | ac_confdir=`$as_dirname -- "$as_myself" || |
1363 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1364 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1365 | X"$as_myself" : 'X\(//\)$' \| \ | |
1366 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1367 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1368 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1369 | s//\1/ | |
1370 | q | |
1371 | } | |
1372 | /^X\(\/\/\)[^/].*/{ | |
1373 | s//\1/ | |
1374 | q | |
1375 | } | |
1376 | /^X\(\/\/\)$/{ | |
1377 | s//\1/ | |
1378 | q | |
1379 | } | |
1380 | /^X\(\/\).*/{ | |
1381 | s//\1/ | |
1382 | q | |
1383 | } | |
1384 | s/.*/./; q'` | |
795ca3e5 | 1385 | srcdir=$ac_confdir |
7a197a62 | 1386 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1387 | srcdir=.. |
1388 | fi | |
1389 | else | |
1390 | ac_srcdir_defaulted=no | |
1391 | fi | |
7a197a62 AK |
1392 | if test ! -r "$srcdir/$ac_unique_file"; then |
1393 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f11781c5 | 1394 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
795ca3e5 | 1395 | fi |
7a197a62 AK |
1396 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1397 | ac_abs_confdir=`( | |
f11781c5 | 1398 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7a197a62 AK |
1399 | pwd)` |
1400 | # When building in place, set srcdir=. | |
1401 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1402 | srcdir=. | |
1403 | fi | |
1404 | # Remove unnecessary trailing slashes from srcdir. | |
1405 | # Double slashes in file names in object file debugging info | |
1406 | # mess up M-x gdb in Emacs. | |
1407 | case $srcdir in | |
1408 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1409 | esac | |
1410 | for ac_var in $ac_precious_vars; do | |
1411 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1412 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1413 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1414 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1415 | done | |
ad6254c5 AK |
1416 | |
1417 | # | |
1418 | # Report the --help message. | |
1419 | # | |
1420 | if test "$ac_init_help" = "long"; then | |
1421 | # Omit some internal or obsolete options to make the list less imposing. | |
1422 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1423 | cat <<_ACEOF | |
1424 | \`configure' configures this package to adapt to many kinds of systems. | |
1425 | ||
1426 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1427 | ||
1428 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1429 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1430 | ||
1431 | Defaults for the options are specified in brackets. | |
1432 | ||
1433 | Configuration: | |
1434 | -h, --help display this help and exit | |
1435 | --help=short display options specific to this package | |
1436 | --help=recursive display the short help of all the included packages | |
1437 | -V, --version display version information and exit | |
f11781c5 | 1438 | -q, --quiet, --silent do not print \`checking ...' messages |
ad6254c5 AK |
1439 | --cache-file=FILE cache test results in FILE [disabled] |
1440 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1441 | -n, --no-create do not create output files | |
1442 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1443 | ||
ad6254c5 AK |
1444 | Installation directories: |
1445 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1446 | [$ac_default_prefix] |
ad6254c5 | 1447 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1448 | [PREFIX] |
ad6254c5 AK |
1449 | |
1450 | By default, \`make install' will install all the files in | |
1451 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1452 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1453 | for instance \`--prefix=\$HOME'. | |
1454 | ||
1455 | For better control, use the options below. | |
1456 | ||
1457 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1458 | --bindir=DIR user executables [EPREFIX/bin] |
1459 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1460 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1461 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1462 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1463 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1464 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1465 | --includedir=DIR C header files [PREFIX/include] | |
1466 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1467 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1468 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1469 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1470 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1471 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1472 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1473 | --htmldir=DIR html documentation [DOCDIR] | |
1474 | --dvidir=DIR dvi documentation [DOCDIR] | |
1475 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1476 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1477 | _ACEOF |
1478 | ||
1479 | cat <<\_ACEOF | |
1480 | ||
1481 | System types: | |
1482 | --build=BUILD configure for building on BUILD [guessed] | |
1483 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1484 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1485 | _ACEOF | |
1486 | fi | |
1487 | ||
1488 | if test -n "$ac_init_help"; then | |
1489 | ||
1490 | cat <<\_ACEOF | |
1491 | ||
1492 | Optional Features: | |
ec6a6fbe | 1493 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1494 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1495 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1496 | --enable-static_link use this to link the tools to their libraries |
1497 | statically (default is dynamic linking | |
1498 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1499 | device-mapper is missing from the kernel |
71082be4 ZK |
1500 | --disable-readline disable readline support |
1501 | --enable-realtime enable realtime clock support | |
37ddf259 AK |
1502 | --enable-ocf enable Open Cluster Framework (OCF) compliant |
1503 | resource agents | |
71082be4 ZK |
1504 | --enable-cmirrord enable the cluster mirror log daemon |
1505 | --enable-debug enable debugging | |
1506 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1507 | --enable-testing enable testing targets in the makefile |
d1e8046f | 1508 | --enable-valgrind-pool enable valgrind awareness of pools |
71082be4 ZK |
1509 | --disable-devmapper disable LVM2 device-mapper interaction |
1510 | --enable-udev_sync enable synchronisation with udev processing | |
1511 | --enable-udev_rules install rule files needed for udev synchronisation | |
1512 | --enable-compat enable support for old device-mapper versions | |
1513 | --enable-units-compat enable output compatibility with old versions that | |
1514 | that do not use KiB-style unit suffixes | |
1515 | --disable-driver disable calls to device-mapper in the kernel | |
1516 | --disable-o_direct disable O_DIRECT | |
1517 | --enable-applib build application library | |
1518 | --enable-cmdlib build shared command library | |
1519 | --enable-pkgconfig install pkgconfig support | |
1520 | --enable-write_install install user writable files | |
1521 | --disable-fsadm disable fsadm | |
1522 | --enable-dmeventd enable the device-mapper event daemon | |
1523 | --disable-selinux disable selinux support | |
1524 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1525 | |
1526 | Optional Packages: | |
1527 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1528 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
f11781c5 AK |
1529 | --with-user=USER set the owner of installed files [[USER=]] |
1530 | --with-group=GROUP set the group owner of installed files [[GROUP=]] | |
1531 | --with-device-uid=UID set the owner used for new device nodes [[UID=0]] | |
1532 | --with-device-gid=GID set the group used for new device nodes [[GID=0]] | |
1533 | --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]] | |
d0df875d ZK |
1534 | --with-device-nodes-on=ON |
1535 | create nodes on resume or create [[ON=resume]] | |
ad6254c5 | 1536 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
f11781c5 | 1537 | [[TYPE=internal]] |
ad6254c5 | 1538 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
f11781c5 | 1539 | [[TYPE=internal]] |
71082be4 | 1540 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none |
f11781c5 | 1541 | [[TYPE=internal]] |
71082be4 | 1542 | --with-snapshots=TYPE snapshot support: internal/shared/none |
f11781c5 | 1543 | [[TYPE=internal]] |
71082be4 | 1544 | --with-mirrors=TYPE mirror support: internal/shared/none |
f11781c5 | 1545 | [[TYPE=internal]] |
71082be4 | 1546 | --with-replicators=TYPE replicator support: internal/shared/none |
f11781c5 | 1547 | [[TYPE=none]] |
606d0858 AK |
1548 | --with-ocfdir=DIR install OCF files in DIR |
1549 | [[PREFIX/lib/ocf/resource.d/lvm2]] | |
71082be4 | 1550 | --with-clvmd=TYPE build cluster LVM Daemon |
8c222979 | 1551 | The following cluster manager combinations are valid: |
a946372e AK |
1552 | * cman,gulm (RHEL4 or equivalent) |
1553 | * cman (RHEL5 or equivalent) | |
1554 | * cman,corosync,openais (or selection of them) | |
1091650a | 1555 | * singlenode (localhost only) |
a946372e AK |
1556 | * all (autodetect) |
1557 | * none (disable build) | |
71082be4 | 1558 | [TYPE=none] |
8c4e8a18 | 1559 | --with-clvmd-pidfile=PATH |
f11781c5 | 1560 | clvmd pidfile [[/var/run/clvmd.pid]] |
71082be4 | 1561 | --with-cmirrord-pidfile=PATH |
f11781c5 AK |
1562 | cmirrord pidfile [[/var/run/cmirrord.pid]] |
1563 | --with-optimisation=OPT C optimisation flag [[OPT=-O2]] | |
1564 | --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]] | |
1565 | --with-confdir=DIR configuration files in DIR [[/etc]] | |
1566 | --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]] | |
1567 | --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]] | |
1568 | --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]] | |
71082be4 | 1569 | --with-udev-prefix=UPREFIX |
f11781c5 AK |
1570 | install udev rule files in UPREFIX [[EPREFIX]] |
1571 | --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]] | |
71082be4 | 1572 | --with-dmeventd-pidfile=PATH |
f11781c5 | 1573 | dmeventd pidfile [[/var/run/dmeventd.pid]] |
71082be4 | 1574 | --with-dmeventd-path=PATH |
f11781c5 | 1575 | dmeventd path [[EPREFIX/sbin/dmeventd]] |
8bae0a1e | 1576 | --with-default-run-dir=DIR Default run directory [/var/run/lvm] |
71082be4 | 1577 | --with-default-system-dir=DIR |
f11781c5 | 1578 | default LVM system directory [[/etc/lvm]] |
71082be4 | 1579 | --with-default-archive-subdir=SUBDIR |
f11781c5 | 1580 | default metadata archive subdir [[archive]] |
71082be4 | 1581 | --with-default-backup-subdir=SUBDIR |
f11781c5 | 1582 | default metadata backup subdir [[backup]] |
71082be4 | 1583 | --with-default-cache-subdir=SUBDIR |
f11781c5 | 1584 | default metadata cache subdir [[cache]] |
71082be4 | 1585 | --with-default-locking-dir=DIR |
f11781c5 | 1586 | default locking directory [[/var/lock/lvm]] |
fea55602 | 1587 | --with-default-data-alignment=NUM |
f11781c5 AK |
1588 | set the default data alignment in MiB [[1]] |
1589 | --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]] | |
ad6254c5 AK |
1590 | |
1591 | Some influential environment variables: | |
1592 | CC C compiler command | |
1593 | CFLAGS C compiler flags | |
1594 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1595 | nonstandard directory <lib dir> | |
25fbec5b | 1596 | LIBS libraries to pass to the linker, e.g. -l<library> |
f11781c5 | 1597 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7a197a62 | 1598 | you have headers in a nonstandard directory <include dir> |
ad6254c5 | 1599 | CPP C preprocessor |
e2997b73 | 1600 | PKG_CONFIG path to pkg-config utility |
f11781c5 AK |
1601 | PKG_CONFIG_PATH |
1602 | directories to add to pkg-config's search path | |
1603 | PKG_CONFIG_LIBDIR | |
1604 | path overriding pkg-config's built-in search path | |
a946372e AK |
1605 | PKGCONFIGINIT_CFLAGS |
1606 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1607 | PKGCONFIGINIT_LIBS | |
1608 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1609 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1610 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1611 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1612 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1613 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1614 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1615 | COROSYNC_CFLAGS | |
1616 | C compiler flags for COROSYNC, overriding pkg-config | |
1617 | COROSYNC_LIBS | |
1618 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1619 | QUORUM_CFLAGS |
1620 | C compiler flags for QUORUM, overriding pkg-config | |
1621 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1622 | SALCK_CFLAGS |
1623 | C compiler flags for SALCK, overriding pkg-config | |
1624 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1625 | CONFDB_CFLAGS |
1626 | C compiler flags for CONFDB, overriding pkg-config | |
1627 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1628 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1629 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1630 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1631 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1632 | SACKPT_CFLAGS |
1633 | C compiler flags for SACKPT, overriding pkg-config | |
1634 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
d93275eb PR |
1635 | UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config |
1636 | UDEV_LIBS linker flags for UDEV, overriding pkg-config | |
ad6254c5 AK |
1637 | |
1638 | Use these variables to override the choices made by `configure' or to help | |
1639 | it to find libraries and programs with nonstandard names/locations. | |
1640 | ||
f11781c5 | 1641 | Report bugs to the package provider. |
ad6254c5 | 1642 | _ACEOF |
7a197a62 | 1643 | ac_status=$? |
ad6254c5 AK |
1644 | fi |
1645 | ||
1646 | if test "$ac_init_help" = "recursive"; then | |
1647 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1648 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1649 | test -d "$ac_dir" || |
1650 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1651 | continue | |
ad6254c5 AK |
1652 | ac_builddir=. |
1653 | ||
7a197a62 AK |
1654 | case "$ac_dir" in |
1655 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1656 | *) | |
ec6a6fbe | 1657 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1658 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1659 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1660 | case $ac_top_builddir_sub in |
1661 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1662 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1663 | esac ;; | |
1664 | esac | |
1665 | ac_abs_top_builddir=$ac_pwd | |
1666 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1667 | # for backward compatibility: | |
1668 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1669 | |
1670 | case $srcdir in | |
7a197a62 | 1671 | .) # We are building in place. |
ad6254c5 | 1672 | ac_srcdir=. |
7a197a62 AK |
1673 | ac_top_srcdir=$ac_top_builddir_sub |
1674 | ac_abs_top_srcdir=$ac_pwd ;; | |
1675 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1676 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1677 | ac_top_srcdir=$srcdir |
1678 | ac_abs_top_srcdir=$srcdir ;; | |
1679 | *) # Relative name. | |
1680 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1681 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1682 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1683 | esac |
7a197a62 AK |
1684 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1685 | ||
1686 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1687 | # Check for guested configure. | |
1688 | if test -f "$ac_srcdir/configure.gnu"; then | |
1689 | echo && | |
1690 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1691 | elif test -f "$ac_srcdir/configure"; then | |
1692 | echo && | |
1693 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1694 | else |
ec6a6fbe | 1695 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1696 | fi || ac_status=$? |
1697 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1698 | done |
1699 | fi | |
1700 | ||
7a197a62 | 1701 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1702 | if $ac_init_version; then |
1703 | cat <<\_ACEOF | |
7a197a62 | 1704 | configure |
f11781c5 | 1705 | generated by GNU Autoconf 2.66 |
ad6254c5 | 1706 | |
f11781c5 | 1707 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
1708 | This configure script is free software; the Free Software Foundation |
1709 | gives unlimited permission to copy, distribute and modify it. | |
1710 | _ACEOF | |
7a197a62 | 1711 | exit |
ad6254c5 | 1712 | fi |
ad6254c5 | 1713 | |
f11781c5 AK |
1714 | ## ------------------------ ## |
1715 | ## Autoconf initialization. ## | |
1716 | ## ------------------------ ## | |
ad6254c5 | 1717 | |
f11781c5 AK |
1718 | # ac_fn_c_try_compile LINENO |
1719 | # -------------------------- | |
1720 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1721 | ac_fn_c_try_compile () | |
ad6254c5 | 1722 | { |
f11781c5 AK |
1723 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1724 | rm -f conftest.$ac_objext | |
1725 | if { { ac_try="$ac_compile" | |
1726 | case "(($ac_try" in | |
1727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1728 | *) ac_try_echo=$ac_try;; | |
1729 | esac | |
1730 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1731 | $as_echo "$ac_try_echo"; } >&5 | |
1732 | (eval "$ac_compile") 2>conftest.err | |
1733 | ac_status=$? | |
1734 | if test -s conftest.err; then | |
1735 | grep -v '^ *+' conftest.err >conftest.er1 | |
1736 | cat conftest.er1 >&5 | |
1737 | mv -f conftest.er1 conftest.err | |
1738 | fi | |
1739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1740 | test $ac_status = 0; } && { | |
1741 | test -z "$ac_c_werror_flag" || | |
1742 | test ! -s conftest.err | |
1743 | } && test -s conftest.$ac_objext; then : | |
1744 | ac_retval=0 | |
1745 | else | |
1746 | $as_echo "$as_me: failed program was:" >&5 | |
1747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1748 | |
f11781c5 AK |
1749 | ac_retval=1 |
1750 | fi | |
1751 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1752 | as_fn_set_status $ac_retval | |
ad6254c5 | 1753 | |
f11781c5 | 1754 | } # ac_fn_c_try_compile |
ad6254c5 | 1755 | |
f11781c5 AK |
1756 | # ac_fn_c_try_cpp LINENO |
1757 | # ---------------------- | |
1758 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1759 | ac_fn_c_try_cpp () | |
1760 | { | |
1761 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1762 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1763 | case "(($ac_try" in | |
1764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1765 | *) ac_try_echo=$ac_try;; | |
1766 | esac | |
1767 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1768 | $as_echo "$ac_try_echo"; } >&5 | |
1769 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1770 | ac_status=$? | |
1771 | if test -s conftest.err; then | |
1772 | grep -v '^ *+' conftest.err >conftest.er1 | |
1773 | cat conftest.er1 >&5 | |
1774 | mv -f conftest.er1 conftest.err | |
1775 | fi | |
1776 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1777 | test $ac_status = 0; } >/dev/null && { | |
1778 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1779 | test ! -s conftest.err | |
1780 | }; then : | |
1781 | ac_retval=0 | |
1782 | else | |
1783 | $as_echo "$as_me: failed program was:" >&5 | |
1784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1785 | |
f11781c5 AK |
1786 | ac_retval=1 |
1787 | fi | |
1788 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1789 | as_fn_set_status $ac_retval | |
ad6254c5 | 1790 | |
f11781c5 | 1791 | } # ac_fn_c_try_cpp |
d911ec67 | 1792 | |
f11781c5 AK |
1793 | # ac_fn_c_try_link LINENO |
1794 | # ----------------------- | |
1795 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1796 | ac_fn_c_try_link () | |
d911ec67 | 1797 | { |
f11781c5 AK |
1798 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1800 | if { { ac_try="$ac_link" | |
d911ec67 AK |
1801 | case "(($ac_try" in |
1802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1803 | *) ac_try_echo=$ac_try;; | |
1804 | esac | |
f11781c5 AK |
1805 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1806 | $as_echo "$ac_try_echo"; } >&5 | |
1807 | (eval "$ac_link") 2>conftest.err | |
d911ec67 | 1808 | ac_status=$? |
f11781c5 AK |
1809 | if test -s conftest.err; then |
1810 | grep -v '^ *+' conftest.err >conftest.er1 | |
1811 | cat conftest.er1 >&5 | |
1812 | mv -f conftest.er1 conftest.err | |
1813 | fi | |
1814 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1815 | test $ac_status = 0; } && { | |
1816 | test -z "$ac_c_werror_flag" || | |
1817 | test ! -s conftest.err | |
1818 | } && test -s conftest$ac_exeext && { | |
1819 | test "$cross_compiling" = yes || | |
1820 | $as_test_x conftest$ac_exeext | |
1821 | }; then : | |
1822 | ac_retval=0 | |
d911ec67 | 1823 | else |
f11781c5 | 1824 | $as_echo "$as_me: failed program was:" >&5 |
d911ec67 AK |
1825 | sed 's/^/| /' conftest.$ac_ext >&5 |
1826 | ||
f11781c5 | 1827 | ac_retval=1 |
d911ec67 | 1828 | fi |
f11781c5 AK |
1829 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1830 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1831 | # interfere with the next link command; also delete a directory that is | |
1832 | # left behind by Apple's compiler. We do this before executing the actions. | |
1833 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1834 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1835 | as_fn_set_status $ac_retval | |
d911ec67 | 1836 | |
f11781c5 | 1837 | } # ac_fn_c_try_link |
d911ec67 | 1838 | |
f11781c5 AK |
1839 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1840 | # ------------------------------------------------------- | |
1841 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1842 | # the include files in INCLUDES and setting the cache variable VAR | |
1843 | # accordingly. | |
1844 | ac_fn_c_check_header_mongrel () | |
1845 | { | |
1846 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1847 | if eval "test \"\${$3+set}\"" = set; then : | |
1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1849 | $as_echo_n "checking for $2... " >&6; } | |
1850 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1851 | $as_echo_n "(cached) " >&6 |
1852 | fi | |
f11781c5 AK |
1853 | eval ac_res=\$$3 |
1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 AK |
1855 | $as_echo "$ac_res" >&6; } |
1856 | else | |
1857 | # Is the header compilable? | |
f11781c5 AK |
1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1859 | $as_echo_n "checking $2 usability... " >&6; } | |
1860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1861 | /* end confdefs.h. */ |
f11781c5 AK |
1862 | $4 |
1863 | #include <$2> | |
d911ec67 | 1864 | _ACEOF |
f11781c5 | 1865 | if ac_fn_c_try_compile "$LINENO"; then : |
d911ec67 AK |
1866 | ac_header_compiler=yes |
1867 | else | |
f11781c5 | 1868 | ac_header_compiler=no |
d911ec67 | 1869 | fi |
d911ec67 | 1870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f11781c5 | 1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
d911ec67 AK |
1872 | $as_echo "$ac_header_compiler" >&6; } |
1873 | ||
1874 | # Is the header present? | |
f11781c5 AK |
1875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1876 | $as_echo_n "checking $2 presence... " >&6; } | |
1877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1878 | /* end confdefs.h. */ |
f11781c5 | 1879 | #include <$2> |
d911ec67 | 1880 | _ACEOF |
f11781c5 | 1881 | if ac_fn_c_try_cpp "$LINENO"; then : |
d911ec67 AK |
1882 | ac_header_preproc=yes |
1883 | else | |
d911ec67 AK |
1884 | ac_header_preproc=no |
1885 | fi | |
d911ec67 | 1886 | rm -f conftest.err conftest.$ac_ext |
f11781c5 | 1887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
d911ec67 AK |
1888 | $as_echo "$ac_header_preproc" >&6; } |
1889 | ||
1890 | # So? What about this header? | |
f11781c5 | 1891 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
d911ec67 | 1892 | yes:no: ) |
f11781c5 AK |
1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1894 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1895 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1896 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1897 | ;; |
1898 | no:yes:* ) | |
f11781c5 AK |
1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1900 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1901 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1902 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1903 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1904 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1906 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1907 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1908 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1909 | ;; |
1910 | esac | |
f11781c5 AK |
1911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1912 | $as_echo_n "checking for $2... " >&6; } | |
1913 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1914 | $as_echo_n "(cached) " >&6 |
1915 | else | |
f11781c5 | 1916 | eval "$3=\$ac_header_compiler" |
d911ec67 | 1917 | fi |
f11781c5 AK |
1918 | eval ac_res=\$$3 |
1919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 | 1920 | $as_echo "$ac_res" >&6; } |
ad6254c5 | 1921 | fi |
f11781c5 | 1922 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1923 | |
f11781c5 | 1924 | } # ac_fn_c_check_header_mongrel |
ad6254c5 | 1925 | |
f11781c5 AK |
1926 | # ac_fn_c_try_run LINENO |
1927 | # ---------------------- | |
1928 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1929 | # that executables *can* be run. | |
1930 | ac_fn_c_try_run () | |
ad6254c5 | 1931 | { |
f11781c5 AK |
1932 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1933 | if { { ac_try="$ac_link" | |
7a197a62 AK |
1934 | case "(($ac_try" in |
1935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1936 | *) ac_try_echo=$ac_try;; | |
1937 | esac | |
f11781c5 AK |
1938 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1939 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1940 | (eval "$ac_link") 2>&5 |
ad6254c5 | 1941 | ac_status=$? |
f11781c5 AK |
1942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1943 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1944 | { { case "(($ac_try" in | |
7a197a62 AK |
1945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1946 | *) ac_try_echo=$ac_try;; | |
1947 | esac | |
f11781c5 AK |
1948 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1949 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1950 | (eval "$ac_try") 2>&5 |
ad6254c5 | 1951 | ac_status=$? |
f11781c5 AK |
1952 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1953 | test $ac_status = 0; }; }; then : | |
1954 | ac_retval=0 | |
ad6254c5 | 1955 | else |
ec6a6fbe | 1956 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
f11781c5 | 1957 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
1958 | sed 's/^/| /' conftest.$ac_ext >&5 |
1959 | ||
f11781c5 | 1960 | ac_retval=$ac_status |
ad6254c5 | 1961 | fi |
f11781c5 AK |
1962 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1963 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1964 | as_fn_set_status $ac_retval | |
ad6254c5 | 1965 | |
f11781c5 | 1966 | } # ac_fn_c_try_run |
ad6254c5 | 1967 | |
f11781c5 AK |
1968 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1969 | # ------------------------------------------------------- | |
1970 | # Tests whether HEADER exists and can be compiled using the include files in | |
1971 | # INCLUDES, setting the cache variable VAR accordingly. | |
1972 | ac_fn_c_check_header_compile () | |
1973 | { | |
1974 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1976 | $as_echo_n "checking for $2... " >&6; } | |
1977 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 1978 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 1979 | else |
f11781c5 | 1980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 1981 | /* end confdefs.h. */ |
f11781c5 AK |
1982 | $4 |
1983 | #include <$2> | |
ad6254c5 | 1984 | _ACEOF |
f11781c5 AK |
1985 | if ac_fn_c_try_compile "$LINENO"; then : |
1986 | eval "$3=yes" | |
ad6254c5 | 1987 | else |
f11781c5 | 1988 | eval "$3=no" |
ad6254c5 | 1989 | fi |
7a197a62 | 1990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 1991 | fi |
f11781c5 AK |
1992 | eval ac_res=\$$3 |
1993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 1994 | $as_echo "$ac_res" >&6; } |
f11781c5 | 1995 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1996 | |
f11781c5 | 1997 | } # ac_fn_c_check_header_compile |
ad6254c5 | 1998 | |
f11781c5 AK |
1999 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2000 | # ---------------------------------------------------- | |
2001 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2002 | # INCLUDES, setting cache variable VAR accordingly. | |
2003 | ac_fn_c_check_member () | |
2004 | { | |
2005 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2007 | $as_echo_n "checking for $2.$3... " >&6; } | |
2008 | if eval "test \"\${$4+set}\"" = set; then : | |
ec6a6fbe | 2009 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2010 | else |
f11781c5 AK |
2011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2012 | /* end confdefs.h. */ | |
2013 | $5 | |
2014 | int | |
2015 | main () | |
2016 | { | |
2017 | static $2 ac_aggr; | |
2018 | if (ac_aggr.$3) | |
2019 | return 0; | |
2020 | ; | |
2021 | return 0; | |
2022 | } | |
ad6254c5 | 2023 | _ACEOF |
f11781c5 AK |
2024 | if ac_fn_c_try_compile "$LINENO"; then : |
2025 | eval "$4=yes" | |
2026 | else | |
2027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2028 | /* end confdefs.h. */ |
f11781c5 AK |
2029 | $5 |
2030 | int | |
2031 | main () | |
2032 | { | |
2033 | static $2 ac_aggr; | |
2034 | if (sizeof ac_aggr.$3) | |
2035 | return 0; | |
2036 | ; | |
2037 | return 0; | |
2038 | } | |
2039 | _ACEOF | |
2040 | if ac_fn_c_try_compile "$LINENO"; then : | |
2041 | eval "$4=yes" | |
2042 | else | |
2043 | eval "$4=no" | |
2044 | fi | |
2045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2046 | fi | |
2047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2048 | fi | |
2049 | eval ac_res=\$$4 | |
2050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2051 | $as_echo "$ac_res" >&6; } | |
2052 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2053 | ||
2054 | } # ac_fn_c_check_member | |
795ca3e5 | 2055 | |
f11781c5 AK |
2056 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2057 | # ------------------------------------------- | |
2058 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2059 | # variable VAR accordingly. | |
2060 | ac_fn_c_check_type () | |
2061 | { | |
2062 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2064 | $as_echo_n "checking for $2... " >&6; } | |
2065 | if eval "test \"\${$3+set}\"" = set; then : | |
2066 | $as_echo_n "(cached) " >&6 | |
2067 | else | |
2068 | eval "$3=no" | |
2069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2070 | /* end confdefs.h. */ | |
2071 | $4 | |
ad6254c5 AK |
2072 | int |
2073 | main () | |
2074 | { | |
f11781c5 AK |
2075 | if (sizeof ($2)) |
2076 | return 0; | |
ad6254c5 AK |
2077 | ; |
2078 | return 0; | |
2079 | } | |
2080 | _ACEOF | |
f11781c5 AK |
2081 | if ac_fn_c_try_compile "$LINENO"; then : |
2082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2083 | /* end confdefs.h. */ | |
2084 | $4 | |
2085 | int | |
2086 | main () | |
2087 | { | |
2088 | if (sizeof (($2))) | |
2089 | return 0; | |
2090 | ; | |
2091 | return 0; | |
2092 | } | |
2093 | _ACEOF | |
2094 | if ac_fn_c_try_compile "$LINENO"; then : | |
ad6254c5 | 2095 | |
f11781c5 AK |
2096 | else |
2097 | eval "$3=yes" | |
795ca3e5 | 2098 | fi |
f11781c5 AK |
2099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2100 | fi | |
2101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2102 | fi |
f11781c5 AK |
2103 | eval ac_res=\$$3 |
2104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2105 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2106 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2107 | |
f11781c5 | 2108 | } # ac_fn_c_check_type |
ad6254c5 | 2109 | |
f11781c5 AK |
2110 | # ac_fn_c_find_intX_t LINENO BITS VAR |
2111 | # ----------------------------------- | |
2112 | # Finds a signed integer type with width BITS, setting cache variable VAR | |
2113 | # accordingly. | |
2114 | ac_fn_c_find_intX_t () | |
2115 | { | |
2116 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | |
2118 | $as_echo_n "checking for int$2_t... " >&6; } | |
2119 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2120 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2121 | else |
f11781c5 AK |
2122 | eval "$3=no" |
2123 | # Order is important - never check a type that is potentially smaller | |
2124 | # than half of the expected target width. | |
2125 | for ac_type in int$2_t 'int' 'long int' \ | |
2126 | 'long long int' 'short int' 'signed char'; do | |
2127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7a197a62 AK |
2128 | /* end confdefs.h. */ |
2129 | $ac_includes_default | |
f11781c5 | 2130 | enum { N = $2 / 2 - 1 }; |
7a197a62 AK |
2131 | int |
2132 | main () | |
2133 | { | |
f11781c5 AK |
2134 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
2135 | test_array [0] = 0 | |
7a197a62 | 2136 | |
f11781c5 AK |
2137 | ; |
2138 | return 0; | |
2139 | } | |
2140 | _ACEOF | |
2141 | if ac_fn_c_try_compile "$LINENO"; then : | |
2142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2143 | /* end confdefs.h. */ | |
2144 | $ac_includes_default | |
2145 | enum { N = $2 / 2 - 1 }; | |
2146 | int | |
2147 | main () | |
2148 | { | |
2149 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | |
2150 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | |
2151 | test_array [0] = 0 | |
7a197a62 AK |
2152 | |
2153 | ; | |
2154 | return 0; | |
2155 | } | |
ad6254c5 | 2156 | _ACEOF |
f11781c5 | 2157 | if ac_fn_c_try_compile "$LINENO"; then : |
ad6254c5 | 2158 | |
f11781c5 AK |
2159 | else |
2160 | case $ac_type in #( | |
2161 | int$2_t) : | |
2162 | eval "$3=yes" ;; #( | |
2163 | *) : | |
2164 | eval "$3=\$ac_type" ;; | |
2165 | esac | |
ad6254c5 | 2166 | fi |
f11781c5 | 2167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2168 | fi |
f11781c5 AK |
2169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2170 | if eval test \"x\$"$3"\" = x"no"; then : | |
ad6254c5 AK |
2171 | |
2172 | else | |
f11781c5 | 2173 | break |
ad6254c5 | 2174 | fi |
f11781c5 | 2175 | done |
ad6254c5 | 2176 | fi |
f11781c5 AK |
2177 | eval ac_res=\$$3 |
2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2179 | $as_echo "$ac_res" >&6; } | |
2180 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2181 | ||
2182 | } # ac_fn_c_find_intX_t | |
2183 | ||
2184 | # ac_fn_c_find_uintX_t LINENO BITS VAR | |
2185 | # ------------------------------------ | |
2186 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
2187 | # accordingly. | |
2188 | ac_fn_c_find_uintX_t () | |
2189 | { | |
2190 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
2192 | $as_echo_n "checking for uint$2_t... " >&6; } | |
2193 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2194 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2195 | else |
f11781c5 AK |
2196 | eval "$3=no" |
2197 | # Order is important - never check a type that is potentially smaller | |
2198 | # than half of the expected target width. | |
2199 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
2200 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
2201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2202 | /* end confdefs.h. */ |
7a197a62 | 2203 | $ac_includes_default |
ad6254c5 AK |
2204 | int |
2205 | main () | |
2206 | { | |
f11781c5 AK |
2207 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
2208 | test_array [0] = 0 | |
ad6254c5 | 2209 | |
f11781c5 AK |
2210 | ; |
2211 | return 0; | |
ad6254c5 AK |
2212 | } |
2213 | _ACEOF | |
f11781c5 AK |
2214 | if ac_fn_c_try_compile "$LINENO"; then : |
2215 | case $ac_type in #( | |
2216 | uint$2_t) : | |
2217 | eval "$3=yes" ;; #( | |
2218 | *) : | |
2219 | eval "$3=\$ac_type" ;; | |
7a197a62 | 2220 | esac |
ad6254c5 | 2221 | fi |
f11781c5 AK |
2222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2223 | if eval test \"x\$"$3"\" = x"no"; then : | |
7a197a62 | 2224 | |
f11781c5 AK |
2225 | else |
2226 | break | |
ad6254c5 | 2227 | fi |
f11781c5 | 2228 | done |
ad6254c5 | 2229 | fi |
f11781c5 AK |
2230 | eval ac_res=\$$3 |
2231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2232 | $as_echo "$ac_res" >&6; } | |
2233 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
ad6254c5 | 2234 | |
f11781c5 | 2235 | } # ac_fn_c_find_uintX_t |
ad6254c5 | 2236 | |
f11781c5 AK |
2237 | # ac_fn_c_check_func LINENO FUNC VAR |
2238 | # ---------------------------------- | |
2239 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2240 | ac_fn_c_check_func () | |
2241 | { | |
2242 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2244 | $as_echo_n "checking for $2... " >&6; } | |
2245 | if eval "test \"\${$3+set}\"" = set; then : | |
2246 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2247 | else |
f11781c5 AK |
2248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2249 | /* end confdefs.h. */ | |
2250 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2251 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2252 | #define $2 innocuous_$2 | |
ad6254c5 | 2253 | |
f11781c5 AK |
2254 | /* System header to define __stub macros and hopefully few prototypes, |
2255 | which can conflict with char $2 (); below. | |
2256 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2257 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 2258 | |
f11781c5 AK |
2259 | #ifdef __STDC__ |
2260 | # include <limits.h> | |
2261 | #else | |
2262 | # include <assert.h> | |
2263 | #endif | |
ad6254c5 | 2264 | |
f11781c5 AK |
2265 | #undef $2 |
2266 | ||
2267 | /* Override any GCC internal prototype to avoid an error. | |
2268 | Use char because int might match the return type of a GCC | |
2269 | builtin and then its argument prototype would still apply. */ | |
2270 | #ifdef __cplusplus | |
2271 | extern "C" | |
2272 | #endif | |
2273 | char $2 (); | |
2274 | /* The GNU C library defines this for functions which it implements | |
2275 | to always fail with ENOSYS. Some functions are actually named | |
2276 | something starting with __ and the normal name is an alias. */ | |
2277 | #if defined __stub_$2 || defined __stub___$2 | |
2278 | choke me | |
2279 | #endif | |
ad6254c5 | 2280 | |
ad6254c5 AK |
2281 | int |
2282 | main () | |
2283 | { | |
f11781c5 | 2284 | return $2 (); |
ad6254c5 AK |
2285 | ; |
2286 | return 0; | |
2287 | } | |
2288 | _ACEOF | |
f11781c5 AK |
2289 | if ac_fn_c_try_link "$LINENO"; then : |
2290 | eval "$3=yes" | |
ad6254c5 | 2291 | else |
f11781c5 | 2292 | eval "$3=no" |
ad6254c5 | 2293 | fi |
f11781c5 AK |
2294 | rm -f core conftest.err conftest.$ac_objext \ |
2295 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2296 | fi |
f11781c5 AK |
2297 | eval ac_res=\$$3 |
2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2299 | $as_echo "$ac_res" >&6; } | |
2300 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
7a197a62 | 2301 | |
f11781c5 AK |
2302 | } # ac_fn_c_check_func |
2303 | cat >config.log <<_ACEOF | |
2304 | This file contains any messages produced by compilers while | |
2305 | running configure, to aid debugging if configure makes a mistake. | |
7a197a62 | 2306 | |
f11781c5 AK |
2307 | It was created by $as_me, which was |
2308 | generated by GNU Autoconf 2.66. Invocation command line was | |
ad6254c5 | 2309 | |
f11781c5 | 2310 | $ $0 $@ |
ad6254c5 | 2311 | |
ad6254c5 | 2312 | _ACEOF |
f11781c5 AK |
2313 | exec 5>>config.log |
2314 | { | |
2315 | cat <<_ASUNAME | |
2316 | ## --------- ## | |
2317 | ## Platform. ## | |
2318 | ## --------- ## | |
ad6254c5 | 2319 | |
f11781c5 AK |
2320 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2321 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2322 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2323 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2324 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
ad6254c5 | 2325 | |
f11781c5 AK |
2326 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2327 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8a2fc586 | 2328 | |
f11781c5 AK |
2329 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2330 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2331 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2332 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2333 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2334 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2335 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2336 | ||
2337 | _ASUNAME | |
2338 | ||
2339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2340 | for as_dir in $PATH | |
2341 | do | |
2342 | IFS=$as_save_IFS | |
2343 | test -z "$as_dir" && as_dir=. | |
2344 | $as_echo "PATH: $as_dir" | |
2345 | done | |
2346 | IFS=$as_save_IFS | |
2347 | ||
2348 | } >&5 | |
2349 | ||
2350 | cat >&5 <<_ACEOF | |
2351 | ||
2352 | ||
2353 | ## ----------- ## | |
2354 | ## Core tests. ## | |
2355 | ## ----------- ## | |
ad6254c5 | 2356 | |
ad6254c5 | 2357 | _ACEOF |
ad6254c5 | 2358 | |
7a197a62 | 2359 | |
f11781c5 AK |
2360 | # Keep a trace of the command line. |
2361 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2362 | # Strip out --silent because we don't want to record it for future runs. | |
2363 | # Also quote any args containing shell meta-characters. | |
2364 | # Make two passes to allow for proper duplicate-argument suppression. | |
2365 | ac_configure_args= | |
2366 | ac_configure_args0= | |
2367 | ac_configure_args1= | |
2368 | ac_must_keep_next=false | |
2369 | for ac_pass in 1 2 | |
2370 | do | |
2371 | for ac_arg | |
2372 | do | |
2373 | case $ac_arg in | |
2374 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2375 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2376 | | -silent | --silent | --silen | --sile | --sil) | |
2377 | continue ;; | |
2378 | *\'*) | |
2379 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2380 | esac | |
2381 | case $ac_pass in | |
2382 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2383 | 2) | |
2384 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2385 | if test $ac_must_keep_next = true; then | |
2386 | ac_must_keep_next=false # Got value, back to normal. | |
2387 | else | |
2388 | case $ac_arg in | |
2389 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2390 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2391 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2392 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2393 | case "$ac_configure_args0 " in | |
2394 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2395 | esac | |
2396 | ;; | |
2397 | -* ) ac_must_keep_next=true ;; | |
2398 | esac | |
2399 | fi | |
2400 | as_fn_append ac_configure_args " '$ac_arg'" | |
2401 | ;; | |
2402 | esac | |
2403 | done | |
2404 | done | |
2405 | { ac_configure_args0=; unset ac_configure_args0;} | |
2406 | { ac_configure_args1=; unset ac_configure_args1;} | |
2407 | ||
2408 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2409 | # config.log. We remove comments because anyway the quotes in there | |
2410 | # would cause problems or look ugly. | |
2411 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2412 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2413 | trap 'exit_status=$? | |
2414 | # Save into config.log some information that might help in debugging. | |
2415 | { | |
2416 | echo | |
2417 | ||
2418 | $as_echo "## ---------------- ## | |
2419 | ## Cache variables. ## | |
2420 | ## ---------------- ##" | |
2421 | echo | |
2422 | # The following way of writing the cache mishandles newlines in values, | |
2423 | ( | |
2424 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2425 | eval ac_val=\$$ac_var | |
2426 | case $ac_val in #( | |
2427 | *${as_nl}*) | |
2428 | case $ac_var in #( | |
2429 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2430 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2431 | esac | |
2432 | case $ac_var in #( | |
2433 | _ | IFS | as_nl) ;; #( | |
2434 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2435 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2436 | esac ;; | |
2437 | esac | |
2438 | done | |
2439 | (set) 2>&1 | | |
2440 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2441 | *${as_nl}ac_space=\ *) | |
2442 | sed -n \ | |
2443 | "s/'\''/'\''\\\\'\'''\''/g; | |
2444 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2445 | ;; #( | |
2446 | *) | |
2447 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2448 | ;; | |
2449 | esac | | |
2450 | sort | |
2451 | ) | |
2452 | echo | |
2453 | ||
2454 | $as_echo "## ----------------- ## | |
2455 | ## Output variables. ## | |
2456 | ## ----------------- ##" | |
2457 | echo | |
2458 | for ac_var in $ac_subst_vars | |
2459 | do | |
2460 | eval ac_val=\$$ac_var | |
2461 | case $ac_val in | |
2462 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2463 | esac | |
2464 | $as_echo "$ac_var='\''$ac_val'\''" | |
2465 | done | sort | |
2466 | echo | |
2467 | ||
2468 | if test -n "$ac_subst_files"; then | |
2469 | $as_echo "## ------------------- ## | |
2470 | ## File substitutions. ## | |
2471 | ## ------------------- ##" | |
2472 | echo | |
2473 | for ac_var in $ac_subst_files | |
2474 | do | |
2475 | eval ac_val=\$$ac_var | |
2476 | case $ac_val in | |
2477 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2478 | esac | |
2479 | $as_echo "$ac_var='\''$ac_val'\''" | |
2480 | done | sort | |
2481 | echo | |
2482 | fi | |
2483 | ||
2484 | if test -s confdefs.h; then | |
2485 | $as_echo "## ----------- ## | |
2486 | ## confdefs.h. ## | |
2487 | ## ----------- ##" | |
2488 | echo | |
2489 | cat confdefs.h | |
2490 | echo | |
2491 | fi | |
2492 | test "$ac_signal" != 0 && | |
2493 | $as_echo "$as_me: caught signal $ac_signal" | |
2494 | $as_echo "$as_me: exit $exit_status" | |
2495 | } >&5 | |
2496 | rm -f core *.core core.conftest.* && | |
2497 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2498 | exit $exit_status | |
2499 | ' 0 | |
2500 | for ac_signal in 1 2 13 15; do | |
2501 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2502 | done | |
2503 | ac_signal=0 | |
2504 | ||
2505 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2506 | rm -f -r conftest* confdefs.h | |
7a197a62 | 2507 | |
f11781c5 | 2508 | $as_echo "/* confdefs.h */" > confdefs.h |
8a2fc586 | 2509 | |
f11781c5 | 2510 | # Predefined preprocessor variables. |
ad6254c5 AK |
2511 | |
2512 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 2513 | #define PACKAGE_NAME "$PACKAGE_NAME" |
ad6254c5 AK |
2514 | _ACEOF |
2515 | ||
f11781c5 AK |
2516 | cat >>confdefs.h <<_ACEOF |
2517 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
ad6254c5 | 2518 | _ACEOF |
ad6254c5 | 2519 | |
f11781c5 AK |
2520 | cat >>confdefs.h <<_ACEOF |
2521 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
ad6254c5 | 2522 | _ACEOF |
f11781c5 AK |
2523 | |
2524 | cat >>confdefs.h <<_ACEOF | |
2525 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
ad6254c5 | 2526 | _ACEOF |
ad6254c5 | 2527 | |
f11781c5 AK |
2528 | cat >>confdefs.h <<_ACEOF |
2529 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2530 | _ACEOF | |
7a197a62 | 2531 | |
f11781c5 AK |
2532 | cat >>confdefs.h <<_ACEOF |
2533 | #define PACKAGE_URL "$PACKAGE_URL" | |
2534 | _ACEOF | |
ad6254c5 | 2535 | |
7a197a62 | 2536 | |
f11781c5 AK |
2537 | # Let the site file select an alternate cache file if it wants to. |
2538 | # Prefer an explicitly selected file to automatically selected ones. | |
2539 | ac_site_file1=NONE | |
2540 | ac_site_file2=NONE | |
2541 | if test -n "$CONFIG_SITE"; then | |
2542 | # We do not want a PATH search for config.site. | |
2543 | case $CONFIG_SITE in #(( | |
2544 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2545 | */*) ac_site_file1=$CONFIG_SITE;; | |
2546 | *) ac_site_file1=./$CONFIG_SITE;; | |
2547 | esac | |
2548 | elif test "x$prefix" != xNONE; then | |
2549 | ac_site_file1=$prefix/share/config.site | |
2550 | ac_site_file2=$prefix/etc/config.site | |
ad6254c5 | 2551 | else |
f11781c5 AK |
2552 | ac_site_file1=$ac_default_prefix/share/config.site |
2553 | ac_site_file2=$ac_default_prefix/etc/config.site | |
ad6254c5 | 2554 | fi |
f11781c5 AK |
2555 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2556 | do | |
2557 | test "x$ac_site_file" = xNONE && continue | |
2558 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2560 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2561 | sed 's/^/| /' "$ac_site_file" >&5 | |
2562 | . "$ac_site_file" \ | |
2563 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2564 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2565 | as_fn_error $? "failed to load site script $ac_site_file | |
2566 | See \`config.log' for more details" "$LINENO" 5; } | |
2567 | fi | |
2568 | done | |
ad6254c5 | 2569 | |
f11781c5 AK |
2570 | if test -r "$cache_file"; then |
2571 | # Some versions of bash will fail to source /dev/null (special files | |
2572 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2573 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2575 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2576 | case $cache_file in | |
2577 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2578 | *) . "./$cache_file";; | |
2579 | esac | |
2580 | fi | |
2581 | else | |
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2583 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2584 | >$cache_file | |
ad6254c5 | 2585 | fi |
ad6254c5 | 2586 | |
f11781c5 AK |
2587 | as_fn_append ac_header_list " stdlib.h" |
2588 | as_fn_append ac_header_list " unistd.h" | |
2589 | as_fn_append ac_header_list " sys/param.h" | |
2590 | # Check that the precious variables saved in the cache have kept the same | |
2591 | # value. | |
2592 | ac_cache_corrupted=false | |
2593 | for ac_var in $ac_precious_vars; do | |
2594 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2595 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2596 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2597 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2598 | case $ac_old_set,$ac_new_set in | |
2599 | set,) | |
2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2601 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2602 | ac_cache_corrupted=: ;; | |
2603 | ,set) | |
2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2605 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2606 | ac_cache_corrupted=: ;; | |
2607 | ,);; | |
2608 | *) | |
2609 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2610 | # differences in whitespace do not lead to failure. | |
2611 | ac_old_val_w=`echo x $ac_old_val` | |
2612 | ac_new_val_w=`echo x $ac_new_val` | |
2613 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2615 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2616 | ac_cache_corrupted=: | |
2617 | else | |
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2619 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2620 | eval $ac_var=\$ac_old_val | |
2621 | fi | |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2623 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2625 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2626 | fi;; | |
2627 | esac | |
2628 | # Pass precious variables to config.status. | |
2629 | if test "$ac_new_set" = set; then | |
2630 | case $ac_new_val in | |
2631 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2632 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2633 | esac | |
2634 | case " $ac_configure_args " in | |
2635 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2636 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2637 | esac | |
2638 | fi | |
2639 | done | |
2640 | if $ac_cache_corrupted; then | |
2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2642 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2644 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2645 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
ad6254c5 | 2646 | fi |
f11781c5 AK |
2647 | ## -------------------- ## |
2648 | ## Main body of script. ## | |
2649 | ## -------------------- ## | |
ad6254c5 | 2650 | |
f11781c5 AK |
2651 | ac_ext=c |
2652 | ac_cpp='$CPP $CPPFLAGS' | |
2653 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2654 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2655 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2656 | |
ad6254c5 | 2657 | |
ad6254c5 | 2658 | |
f11781c5 | 2659 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
7a197a62 AK |
2660 | |
2661 | ||
f11781c5 AK |
2662 | ################################################################################ |
2663 | ac_aux_dir= | |
2664 | for ac_dir in autoconf "$srcdir"/autoconf; do | |
2665 | if test -f "$ac_dir/install-sh"; then | |
2666 | ac_aux_dir=$ac_dir | |
2667 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2668 | break | |
2669 | elif test -f "$ac_dir/install.sh"; then | |
2670 | ac_aux_dir=$ac_dir | |
2671 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2672 | break | |
2673 | elif test -f "$ac_dir/shtool"; then | |
2674 | ac_aux_dir=$ac_dir | |
2675 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2676 | break | |
2677 | fi | |
2678 | done | |
2679 | if test -z "$ac_aux_dir"; then | |
2680 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 | |
ad6254c5 | 2681 | fi |
ad6254c5 | 2682 | |
f11781c5 AK |
2683 | # These three variables are undocumented and unsupported, |
2684 | # and are intended to be withdrawn in a future Autoconf release. | |
2685 | # They can cause serious problems if a builder's source tree is in a directory | |
2686 | # whose full name contains unusual characters. | |
2687 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2688 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2689 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
ad6254c5 | 2690 | |
ad6254c5 | 2691 | |
8a2fc586 | 2692 | |
f11781c5 AK |
2693 | ################################################################################ |
2694 | # Make sure we can run config.sub. | |
2695 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2696 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
ad6254c5 | 2697 | |
f11781c5 AK |
2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2699 | $as_echo_n "checking build system type... " >&6; } | |
2700 | if test "${ac_cv_build+set}" = set; then : | |
2701 | $as_echo_n "(cached) " >&6 | |
2702 | else | |
2703 | ac_build_alias=$build_alias | |
2704 | test "x$ac_build_alias" = x && | |
2705 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2706 | test "x$ac_build_alias" = x && | |
2707 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2708 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2709 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
ad6254c5 AK |
2710 | |
2711 | fi | |
f11781c5 AK |
2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2713 | $as_echo "$ac_cv_build" >&6; } | |
2714 | case $ac_cv_build in | |
2715 | *-*-*) ;; | |
2716 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2717 | esac | |
2718 | build=$ac_cv_build | |
2719 | ac_save_IFS=$IFS; IFS='-' | |
2720 | set x $ac_cv_build | |
2721 | shift | |
2722 | build_cpu=$1 | |
2723 | build_vendor=$2 | |
2724 | shift; shift | |
2725 | # Remember, the first character of IFS is used to create $*, | |
2726 | # except with old shells: | |
2727 | build_os=$* | |
2728 | IFS=$ac_save_IFS | |
2729 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2730 | |
2731 | ||
f11781c5 AK |
2732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2733 | $as_echo_n "checking host system type... " >&6; } | |
2734 | if test "${ac_cv_host+set}" = set; then : | |
ec6a6fbe | 2735 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2736 | else |
f11781c5 AK |
2737 | if test "x$host_alias" = x; then |
2738 | ac_cv_host=$ac_cv_build | |
ad6254c5 | 2739 | else |
f11781c5 AK |
2740 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2741 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2742 | fi | |
ad6254c5 | 2743 | |
f11781c5 AK |
2744 | fi |
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2746 | $as_echo "$ac_cv_host" >&6; } | |
2747 | case $ac_cv_host in | |
2748 | *-*-*) ;; | |
2749 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2750 | esac | |
2751 | host=$ac_cv_host | |
2752 | ac_save_IFS=$IFS; IFS='-' | |
2753 | set x $ac_cv_host | |
2754 | shift | |
2755 | host_cpu=$1 | |
2756 | host_vendor=$2 | |
2757 | shift; shift | |
2758 | # Remember, the first character of IFS is used to create $*, | |
2759 | # except with old shells: | |
2760 | host_os=$* | |
2761 | IFS=$ac_save_IFS | |
2762 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 | 2763 | |
ad6254c5 | 2764 | |
f11781c5 AK |
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2766 | $as_echo_n "checking target system type... " >&6; } | |
2767 | if test "${ac_cv_target+set}" = set; then : | |
2768 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2769 | else |
f11781c5 AK |
2770 | if test "x$target_alias" = x; then |
2771 | ac_cv_target=$ac_cv_host | |
2772 | else | |
2773 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2774 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
ad6254c5 | 2775 | fi |
7a197a62 | 2776 | |
ad6254c5 | 2777 | fi |
f11781c5 AK |
2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2779 | $as_echo "$ac_cv_target" >&6; } | |
2780 | case $ac_cv_target in | |
2781 | *-*-*) ;; | |
2782 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
8a2fc586 | 2783 | esac |
f11781c5 AK |
2784 | target=$ac_cv_target |
2785 | ac_save_IFS=$IFS; IFS='-' | |
2786 | set x $ac_cv_target | |
2787 | shift | |
2788 | target_cpu=$1 | |
2789 | target_vendor=$2 | |
2790 | shift; shift | |
2791 | # Remember, the first character of IFS is used to create $*, | |
2792 | # except with old shells: | |
2793 | target_os=$* | |
2794 | IFS=$ac_save_IFS | |
2795 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8a2fc586 | 2796 | |
ad6254c5 | 2797 | |
f11781c5 AK |
2798 | # The aliases save the names the user supplied, while $host etc. |
2799 | # will get canonicalized. | |
2800 | test -n "$target_alias" && | |
2801 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2802 | NONENONEs,x,x, && | |
2803 | program_prefix=${target_alias}- | |
ad6254c5 | 2804 | |
f11781c5 AK |
2805 | case "$host_os" in |
2806 | linux*) | |
2807 | CFLAGS="$CFLAGS" | |
2808 | COPTIMISE_FLAG="-O2" | |
2809 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2810 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2811 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2812 | LDDEPS="$LDDEPS .export.sym" | |
2813 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
2814 | LIB_SUFFIX=so | |
2815 | DEVMAPPER=yes | |
2816 | ODIRECT=yes | |
2817 | DM_IOCTLS=yes | |
2818 | SELINUX=yes | |
2819 | CLUSTER=internal | |
2820 | FSADM=yes | |
2821 | ;; | |
2822 | darwin*) | |
2823 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2824 | COPTIMISE_FLAG="-O2" | |
2825 | CLDFLAGS="$CLDFLAGS" | |
2826 | CLDWHOLEARCHIVE="-all_load" | |
2827 | CLDNOWHOLEARCHIVE= | |
2828 | LIB_SUFFIX=dylib | |
2829 | DEVMAPPER=yes | |
2830 | ODIRECT=no | |
2831 | DM_IOCTLS=no | |
2832 | SELINUX=no | |
2833 | CLUSTER=none | |
2834 | FSADM=no | |
2835 | ;; | |
2836 | esac | |
ad6254c5 | 2837 | |
f11781c5 AK |
2838 | ################################################################################ |
2839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
2840 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2841 | if test "${ac_cv_path_SED+set}" = set; then : | |
ec6a6fbe | 2842 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2843 | else |
f11781c5 AK |
2844 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
2845 | for ac_i in 1 2 3 4 5 6 7; do | |
2846 | ac_script="$ac_script$as_nl$ac_script" | |
2847 | done | |
2848 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2849 | { ac_script=; unset ac_script;} | |
2850 | if test -z "$SED"; then | |
2851 | ac_path_SED_found=false | |
2852 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2854 | for as_dir in $PATH | |
2855 | do | |
2856 | IFS=$as_save_IFS | |
2857 | test -z "$as_dir" && as_dir=. | |
2858 | for ac_prog in sed gsed; do | |
2859 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2860 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2861 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2862 | # Check for GNU ac_path_SED and select it if it is found. | |
2863 | # Check for GNU $ac_path_SED | |
2864 | case `"$ac_path_SED" --version 2>&1` in | |
2865 | *GNU*) | |
2866 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2867 | *) | |
2868 | ac_count=0 | |
2869 | $as_echo_n 0123456789 >"conftest.in" | |
2870 | while : | |
2871 | do | |
2872 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2873 | mv "conftest.tmp" "conftest.in" | |
2874 | cp "conftest.in" "conftest.nl" | |
2875 | $as_echo '' >> "conftest.nl" | |
2876 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2877 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2878 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2879 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2880 | # Best one so far, save it but keep looking for a better one | |
2881 | ac_cv_path_SED="$ac_path_SED" | |
2882 | ac_path_SED_max=$ac_count | |
2883 | fi | |
2884 | # 10*(2^10) chars as input seems more than enough | |
2885 | test $ac_count -gt 10 && break | |
2886 | done | |
2887 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7a197a62 | 2888 | esac |
ad6254c5 | 2889 | |
f11781c5 AK |
2890 | $ac_path_SED_found && break 3 |
2891 | done | |
2892 | done | |
2893 | done | |
2894 | IFS=$as_save_IFS | |
2895 | if test -z "$ac_cv_path_SED"; then | |
2896 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2897 | fi | |
2898 | else | |
2899 | ac_cv_path_SED=$SED | |
ad6254c5 | 2900 | fi |
7a197a62 | 2901 | |
f11781c5 AK |
2902 | fi |
2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2904 | $as_echo "$ac_cv_path_SED" >&6; } | |
2905 | SED="$ac_cv_path_SED" | |
2906 | rm -f conftest.sed | |
ad6254c5 | 2907 | |
f11781c5 AK |
2908 | for ac_prog in gawk mawk nawk awk |
2909 | do | |
2910 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2911 | set dummy $ac_prog; ac_word=$2 | |
2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2913 | $as_echo_n "checking for $ac_word... " >&6; } | |
2914 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2915 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2916 | else |
f11781c5 AK |
2917 | if test -n "$AWK"; then |
2918 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2919 | else | |
2920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2921 | for as_dir in $PATH | |
2922 | do | |
2923 | IFS=$as_save_IFS | |
2924 | test -z "$as_dir" && as_dir=. | |
2925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2927 | ac_cv_prog_AWK="$ac_prog" | |
2928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2929 | break 2 | |
2930 | fi | |
2931 | done | |
2932 | done | |
2933 | IFS=$as_save_IFS | |
ad6254c5 | 2934 | |
ad6254c5 | 2935 | fi |
ad6254c5 | 2936 | fi |
f11781c5 AK |
2937 | AWK=$ac_cv_prog_AWK |
2938 | if test -n "$AWK"; then | |
2939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2940 | $as_echo "$AWK" >&6; } | |
2941 | else | |
2942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2943 | $as_echo "no" >&6; } | |
ad6254c5 | 2944 | fi |
ad6254c5 | 2945 | |
ad6254c5 | 2946 | |
f11781c5 | 2947 | test -n "$AWK" && break |
ad6254c5 AK |
2948 | done |
2949 | ||
f11781c5 AK |
2950 | ac_ext=c |
2951 | ac_cpp='$CPP $CPPFLAGS' | |
2952 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2953 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2954 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2955 | if test -n "$ac_tool_prefix"; then | |
2956 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2957 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2959 | $as_echo_n "checking for $ac_word... " >&6; } | |
2960 | if test "${ac_cv_prog_CC+set}" = set; then : | |
ec6a6fbe | 2961 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2962 | else |
f11781c5 AK |
2963 | if test -n "$CC"; then |
2964 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
ad6254c5 | 2965 | else |
f11781c5 AK |
2966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2967 | for as_dir in $PATH | |
2968 | do | |
2969 | IFS=$as_save_IFS | |
2970 | test -z "$as_dir" && as_dir=. | |
2971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2972 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2973 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2975 | break 2 | |
2976 | fi | |
2977 | done | |
2978 | done | |
2979 | IFS=$as_save_IFS | |
ad6254c5 | 2980 | |
ad6254c5 | 2981 | fi |
ad6254c5 | 2982 | fi |
f11781c5 AK |
2983 | CC=$ac_cv_prog_CC |
2984 | if test -n "$CC"; then | |
2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2986 | $as_echo "$CC" >&6; } | |
2987 | else | |
2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2989 | $as_echo "no" >&6; } | |
ad6254c5 | 2990 | fi |
ad6254c5 | 2991 | |
f11781c5 AK |
2992 | |
2993 | fi | |
2994 | if test -z "$ac_cv_prog_CC"; then | |
2995 | ac_ct_CC=$CC | |
2996 | # Extract the first word of "gcc", so it can be a program name with args. | |
2997 | set dummy gcc; ac_word=$2 | |
2998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2999 | $as_echo_n "checking for $ac_word... " >&6; } | |
3000 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
ec6a6fbe | 3001 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3002 | else |
f11781c5 AK |
3003 | if test -n "$ac_ct_CC"; then |
3004 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d911ec67 | 3005 | else |
f11781c5 AK |
3006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3007 | for as_dir in $PATH | |
3008 | do | |
3009 | IFS=$as_save_IFS | |
3010 | test -z "$as_dir" && as_dir=. | |
3011 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3013 | ac_cv_prog_ac_ct_CC="gcc" | |
3014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3015 | break 2 | |
3016 | fi | |
3017 | done | |
3018 | done | |
3019 | IFS=$as_save_IFS | |
d911ec67 | 3020 | |
d911ec67 | 3021 | fi |
d911ec67 | 3022 | fi |
f11781c5 AK |
3023 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3024 | if test -n "$ac_ct_CC"; then | |
3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3026 | $as_echo "$ac_ct_CC" >&6; } | |
3027 | else | |
3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3029 | $as_echo "no" >&6; } | |
d911ec67 | 3030 | fi |
d911ec67 | 3031 | |
f11781c5 AK |
3032 | if test "x$ac_ct_CC" = x; then |
3033 | CC="" | |
3034 | else | |
3035 | case $cross_compiling:$ac_tool_warned in | |
3036 | yes:) | |
3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3038 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3039 | ac_tool_warned=yes ;; | |
3040 | esac | |
3041 | CC=$ac_ct_CC | |
3042 | fi | |
3043 | else | |
3044 | CC="$ac_cv_prog_CC" | |
d911ec67 | 3045 | fi |
d911ec67 | 3046 | |
f11781c5 AK |
3047 | if test -z "$CC"; then |
3048 | if test -n "$ac_tool_prefix"; then | |
3049 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3050 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3052 | $as_echo_n "checking for $ac_word... " >&6; } | |
3053 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 | 3054 | $as_echo_n "(cached) " >&6 |
d911ec67 | 3055 | else |
f11781c5 AK |
3056 | if test -n "$CC"; then |
3057 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d911ec67 | 3058 | else |
f11781c5 AK |
3059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3060 | for as_dir in $PATH | |
3061 | do | |
3062 | IFS=$as_save_IFS | |
3063 | test -z "$as_dir" && as_dir=. | |
3064 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3065 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3066 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3068 | break 2 | |
3069 | fi | |
3070 | done | |
3071 | done | |
3072 | IFS=$as_save_IFS | |
d911ec67 | 3073 | |
f11781c5 AK |
3074 | fi |
3075 | fi | |
3076 | CC=$ac_cv_prog_CC | |
3077 | if test -n "$CC"; then | |
3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3079 | $as_echo "$CC" >&6; } | |
3080 | else | |
3081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3082 | $as_echo "no" >&6; } | |
d911ec67 AK |
3083 | fi |
3084 | ||
d911ec67 | 3085 | |
f11781c5 AK |
3086 | fi |
3087 | fi | |
3088 | if test -z "$CC"; then | |
3089 | # Extract the first word of "cc", so it can be a program name with args. | |
3090 | set dummy cc; ac_word=$2 | |
3091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3092 | $as_echo_n "checking for $ac_word... " >&6; } | |
3093 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3094 | $as_echo_n "(cached) " >&6 | |
d911ec67 | 3095 | else |
f11781c5 AK |
3096 | if test -n "$CC"; then |
3097 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3098 | else | |
3099 | ac_prog_rejected=no | |
3100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3101 | for as_dir in $PATH | |
3102 | do | |
3103 | IFS=$as_save_IFS | |
3104 | test -z "$as_dir" && as_dir=. | |
3105 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3106 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3107 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3108 | ac_prog_rejected=yes | |
3109 | continue | |
3110 | fi | |
3111 | ac_cv_prog_CC="cc" | |
3112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3113 | break 2 | |
3114 | fi | |
3115 | done | |
3116 | done | |
3117 | IFS=$as_save_IFS | |
d911ec67 | 3118 | |
f11781c5 AK |
3119 | if test $ac_prog_rejected = yes; then |
3120 | # We found a bogon in the path, so make sure we never use it. | |
3121 | set dummy $ac_cv_prog_CC | |
3122 | shift | |
3123 | if test $# != 0; then | |
3124 | # We chose a different compiler from the bogus one. | |
3125 | # However, it has the same basename, so the bogon will be chosen | |
3126 | # first if we set CC to just the basename; use the full file name. | |
3127 | shift | |
3128 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3129 | fi | |
3130 | fi | |
3131 | fi | |
3132 | fi | |
3133 | CC=$ac_cv_prog_CC | |
3134 | if test -n "$CC"; then | |
3135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3136 | $as_echo "$CC" >&6; } | |
3137 | else | |
3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3139 | $as_echo "no" >&6; } | |
d911ec67 AK |
3140 | fi |
3141 | ||
d911ec67 | 3142 | |
f11781c5 AK |
3143 | fi |
3144 | if test -z "$CC"; then | |
3145 | if test -n "$ac_tool_prefix"; then | |
3146 | for ac_prog in cl.exe | |
3147 | do | |
3148 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3149 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3151 | $as_echo_n "checking for $ac_word... " >&6; } | |
3152 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 AK |
3153 | $as_echo_n "(cached) " >&6 |
3154 | else | |
f11781c5 AK |
3155 | if test -n "$CC"; then |
3156 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3157 | else | |
3158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3159 | for as_dir in $PATH | |
3160 | do | |
3161 | IFS=$as_save_IFS | |
3162 | test -z "$as_dir" && as_dir=. | |
3163 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3164 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3165 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3167 | break 2 | |
3168 | fi | |
3169 | done | |
3170 | done | |
3171 | IFS=$as_save_IFS | |
d911ec67 AK |
3172 | |
3173 | fi | |
f11781c5 AK |
3174 | fi |
3175 | CC=$ac_cv_prog_CC | |
3176 | if test -n "$CC"; then | |
3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3178 | $as_echo "$CC" >&6; } | |
3179 | else | |
3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3181 | $as_echo "no" >&6; } | |
d911ec67 AK |
3182 | fi |
3183 | ||
d911ec67 | 3184 | |
f11781c5 AK |
3185 | test -n "$CC" && break |
3186 | done | |
3187 | fi | |
3188 | if test -z "$CC"; then | |
3189 | ac_ct_CC=$CC | |
3190 | for ac_prog in cl.exe | |
3191 | do | |
3192 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3193 | set dummy $ac_prog; ac_word=$2 | |
3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3195 | $as_echo_n "checking for $ac_word... " >&6; } | |
3196 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
d911ec67 AK |
3197 | $as_echo_n "(cached) " >&6 |
3198 | else | |
f11781c5 AK |
3199 | if test -n "$ac_ct_CC"; then |
3200 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
ad6254c5 | 3201 | else |
f11781c5 AK |
3202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3203 | for as_dir in $PATH | |
3204 | do | |
3205 | IFS=$as_save_IFS | |
3206 | test -z "$as_dir" && as_dir=. | |
3207 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3209 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3211 | break 2 | |
3212 | fi | |
3213 | done | |
3214 | done | |
3215 | IFS=$as_save_IFS | |
ad6254c5 | 3216 | |
ad6254c5 | 3217 | fi |
ad6254c5 | 3218 | fi |
f11781c5 AK |
3219 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3220 | if test -n "$ac_ct_CC"; then | |
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3222 | $as_echo "$ac_ct_CC" >&6; } | |
3223 | else | |
3224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3225 | $as_echo "no" >&6; } | |
ad6254c5 | 3226 | fi |
ad6254c5 | 3227 | |
d911ec67 | 3228 | |
f11781c5 AK |
3229 | test -n "$ac_ct_CC" && break |
3230 | done | |
d911ec67 | 3231 | |
f11781c5 AK |
3232 | if test "x$ac_ct_CC" = x; then |
3233 | CC="" | |
3234 | else | |
3235 | case $cross_compiling:$ac_tool_warned in | |
3236 | yes:) | |
3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3238 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3239 | ac_tool_warned=yes ;; | |
d911ec67 | 3240 | esac |
f11781c5 AK |
3241 | CC=$ac_ct_CC |
3242 | fi | |
3243 | fi | |
ad6254c5 AK |
3244 | |
3245 | fi | |
d911ec67 AK |
3246 | |
3247 | ||
f11781c5 AK |
3248 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3249 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3250 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3251 | See \`config.log' for more details" "$LINENO" 5; } | |
3252 | ||
3253 | # Provide some information about the compiler. | |
3254 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3255 | set X $ac_compile | |
3256 | ac_compiler=$2 | |
3257 | for ac_option in --version -v -V -qversion; do | |
3258 | { { ac_try="$ac_compiler $ac_option >&5" | |
3259 | case "(($ac_try" in | |
3260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3261 | *) ac_try_echo=$ac_try;; | |
3262 | esac | |
3263 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3264 | $as_echo "$ac_try_echo"; } >&5 | |
3265 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3266 | ac_status=$? | |
3267 | if test -s conftest.err; then | |
3268 | sed '10a\ | |
3269 | ... rest of stderr output deleted ... | |
3270 | 10q' conftest.err >conftest.er1 | |
3271 | cat conftest.er1 >&5 | |
3272 | fi | |
3273 | rm -f conftest.er1 conftest.err | |
3274 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3275 | test $ac_status = 0; } | |
3276 | done | |
ad6254c5 | 3277 | |
f11781c5 | 3278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 3279 | /* end confdefs.h. */ |
f11781c5 | 3280 | |
ad6254c5 AK |
3281 | int |
3282 | main () | |
3283 | { | |
f11781c5 | 3284 | |
ad6254c5 AK |
3285 | ; |
3286 | return 0; | |
3287 | } | |
3288 | _ACEOF | |
f11781c5 AK |
3289 | ac_clean_files_save=$ac_clean_files |
3290 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3291 | # Try to create an executable without -o first, disregard a.out. | |
3292 | # It will help us diagnose broken compilers, and finding out an intuition | |
3293 | # of exeext. | |
3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3295 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3296 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3297 | ||
3298 | # The possible output files: | |
3299 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3300 | ||
3301 | ac_rmfiles= | |
3302 | for ac_file in $ac_files | |
3303 | do | |
3304 | case $ac_file in | |
3305 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3306 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3307 | esac | |
3308 | done | |
3309 | rm -f $ac_rmfiles | |
3310 | ||
3311 | if { { ac_try="$ac_link_default" | |
7a197a62 AK |
3312 | case "(($ac_try" in |
3313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3314 | *) ac_try_echo=$ac_try;; | |
3315 | esac | |
f11781c5 AK |
3316 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3317 | $as_echo "$ac_try_echo"; } >&5 | |
3318 | (eval "$ac_link_default") 2>&5 | |
ad6254c5 | 3319 | ac_status=$? |
f11781c5 AK |
3320 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3321 | test $ac_status = 0; }; then : | |
3322 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3323 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3324 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3325 | # so that the user can short-circuit this test for compilers unknown to | |
3326 | # Autoconf. | |
3327 | for ac_file in $ac_files '' | |
3328 | do | |
3329 | test -f "$ac_file" || continue | |
3330 | case $ac_file in | |
3331 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3332 | ;; | |
3333 | [ab].out ) | |
3334 | # We found the default executable, but exeext='' is most | |
3335 | # certainly right. | |
3336 | break;; | |
3337 | *.* ) | |
3338 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3339 | then :; else | |
3340 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3341 | fi | |
3342 | # We set ac_cv_exeext here because the later test for it is not | |
3343 | # safe: cross compilers may not add the suffix if given an `-o' | |
3344 | # argument, so we may need to know it at that point already. | |
3345 | # Even if this section looks crufty: it has the advantage of | |
3346 | # actually working. | |
3347 | break;; | |
3348 | * ) | |
3349 | break;; | |
3350 | esac | |
3351 | done | |
3352 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3353 | ||
ad6254c5 | 3354 | else |
f11781c5 AK |
3355 | ac_file='' |
3356 | fi | |
3357 | if test -z "$ac_file"; then : | |
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3359 | $as_echo "no" >&6; } | |
ec6a6fbe | 3360 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3361 | sed 's/^/| /' conftest.$ac_ext >&5 |
3362 | ||
f11781c5 AK |
3363 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3364 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3365 | as_fn_error 77 "C compiler cannot create executables | |
3366 | See \`config.log' for more details" "$LINENO" 5; } | |
3367 | else | |
3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3369 | $as_echo "yes" >&6; } | |
ad6254c5 | 3370 | fi |
f11781c5 AK |
3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3372 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3374 | $as_echo "$ac_file" >&6; } | |
3375 | ac_exeext=$ac_cv_exeext | |
7a197a62 | 3376 | |
f11781c5 AK |
3377 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3378 | ac_clean_files=$ac_clean_files_save | |
3379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3380 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3381 | if { { ac_try="$ac_link" | |
3382 | case "(($ac_try" in | |
3383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3384 | *) ac_try_echo=$ac_try;; | |
8a2fc586 | 3385 | esac |
f11781c5 AK |
3386 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3387 | $as_echo "$ac_try_echo"; } >&5 | |
3388 | (eval "$ac_link") 2>&5 | |
3389 | ac_status=$? | |
3390 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3391 | test $ac_status = 0; }; then : | |
3392 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3393 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3394 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3395 | # `rm'. | |
3396 | for ac_file in conftest.exe conftest conftest.*; do | |
3397 | test -f "$ac_file" || continue | |
3398 | case $ac_file in | |
3399 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3400 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3401 | break;; | |
3402 | * ) break;; | |
3403 | esac | |
3404 | done | |
3405 | else | |
3406 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3407 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3408 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3409 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3410 | fi |
f11781c5 AK |
3411 | rm -f conftest conftest$ac_cv_exeext |
3412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3413 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 | 3414 | |
f11781c5 AK |
3415 | rm -f conftest.$ac_ext |
3416 | EXEEXT=$ac_cv_exeext | |
3417 | ac_exeext=$EXEEXT | |
3418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 3419 | /* end confdefs.h. */ |
f11781c5 | 3420 | #include <stdio.h> |
ad6254c5 | 3421 | int |
f11781c5 | 3422 | main () |
ad6254c5 | 3423 | { |
f11781c5 AK |
3424 | FILE *f = fopen ("conftest.out", "w"); |
3425 | return ferror (f) || fclose (f) != 0; | |
ad6254c5 | 3426 | |
f11781c5 | 3427 | ; |
7a197a62 | 3428 | return 0; |
ad6254c5 | 3429 | } |
ad6254c5 | 3430 | _ACEOF |
f11781c5 AK |
3431 | ac_clean_files="$ac_clean_files conftest.out" |
3432 | # Check that the compiler produces executables we can run. If not, either | |
3433 | # the compiler is broken, or we cross compile. | |
3434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3435 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3436 | if test "$cross_compiling" != yes; then | |
3437 | { { ac_try="$ac_link" | |
7a197a62 AK |
3438 | case "(($ac_try" in |
3439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3440 | *) ac_try_echo=$ac_try;; | |
3441 | esac | |
f11781c5 AK |
3442 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3443 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3444 | (eval "$ac_link") 2>&5 |
ad6254c5 | 3445 | ac_status=$? |
f11781c5 AK |
3446 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3447 | test $ac_status = 0; } | |
3448 | if { ac_try='./conftest$ac_cv_exeext' | |
3449 | { { case "(($ac_try" in | |
7a197a62 AK |
3450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3451 | *) ac_try_echo=$ac_try;; | |
3452 | esac | |
f11781c5 AK |
3453 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3454 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3455 | (eval "$ac_try") 2>&5 |
ad6254c5 | 3456 | ac_status=$? |
f11781c5 AK |
3457 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3458 | test $ac_status = 0; }; }; then | |
3459 | cross_compiling=no | |
3460 | else | |
3461 | if test "$cross_compiling" = maybe; then | |
3462 | cross_compiling=yes | |
3463 | else | |
3464 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3465 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3466 | as_fn_error $? "cannot run C compiled programs. | |
3467 | If you meant to cross compile, use \`--host'. | |
3468 | See \`config.log' for more details" "$LINENO" 5; } | |
3469 | fi | |
3470 | fi | |
3471 | fi | |
3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3473 | $as_echo "$cross_compiling" >&6; } | |
3474 | ||
3475 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3476 | ac_clean_files=$ac_clean_files_save | |
3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3478 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3479 | if test "${ac_cv_objext+set}" = set; then : | |
3480 | $as_echo_n "(cached) " >&6 | |
3481 | else | |
3482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3483 | /* end confdefs.h. */ | |
ad6254c5 AK |
3484 | |
3485 | int | |
3486 | main () | |
3487 | { | |
f11781c5 | 3488 | |
ad6254c5 AK |
3489 | ; |
3490 | return 0; | |
3491 | } | |
3492 | _ACEOF | |
f11781c5 AK |
3493 | rm -f conftest.o conftest.obj |
3494 | if { { ac_try="$ac_compile" | |
7a197a62 AK |
3495 | case "(($ac_try" in |
3496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3497 | *) ac_try_echo=$ac_try;; | |
3498 | esac | |
f11781c5 AK |
3499 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3500 | $as_echo "$ac_try_echo"; } >&5 | |
3501 | (eval "$ac_compile") 2>&5 | |
ad6254c5 | 3502 | ac_status=$? |
f11781c5 AK |
3503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3504 | test $ac_status = 0; }; then : | |
3505 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3506 | test -f "$ac_file" || continue; | |
3507 | case $ac_file in | |
3508 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3509 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3510 | break;; | |
3511 | esac | |
3512 | done | |
ad6254c5 | 3513 | else |
ec6a6fbe | 3514 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3515 | sed 's/^/| /' conftest.$ac_ext >&5 |
3516 | ||
f11781c5 AK |
3517 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3518 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3519 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3520 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3521 | fi |
f11781c5 | 3522 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ad6254c5 | 3523 | fi |
f11781c5 AK |
3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3525 | $as_echo "$ac_cv_objext" >&6; } | |
3526 | OBJEXT=$ac_cv_objext | |
3527 | ac_objext=$OBJEXT | |
3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3529 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3530 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
ec6a6fbe | 3531 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3532 | else |
f11781c5 | 3533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 AK |
3534 | /* end confdefs.h. */ |
3535 | ||
ad6254c5 AK |
3536 | int |
3537 | main () | |
3538 | { | |
f11781c5 AK |
3539 | #ifndef __GNUC__ |
3540 | choke me | |
3541 | #endif | |
3542 | ||
ad6254c5 AK |
3543 | ; |
3544 | return 0; | |
3545 | } | |
3546 | _ACEOF | |
f11781c5 AK |
3547 | if ac_fn_c_try_compile "$LINENO"; then : |
3548 | ac_compiler_gnu=yes | |
ad6254c5 | 3549 | else |
f11781c5 | 3550 | ac_compiler_gnu=no |
ad6254c5 | 3551 | fi |
f11781c5 AK |
3552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3553 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
7a197a62 | 3554 | |
d0191583 | 3555 | fi |
f11781c5 AK |
3556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3557 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3558 | if test $ac_compiler_gnu = yes; then | |
3559 | GCC=yes | |
d0191583 | 3560 | else |
f11781c5 | 3561 | GCC= |
d0191583 | 3562 | fi |
f11781c5 AK |
3563 | ac_test_CFLAGS=${CFLAGS+set} |
3564 | ac_save_CFLAGS=$CFLAGS | |
3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3566 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3567 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3568 | $as_echo_n "(cached) " >&6 | |
3569 | else | |
3570 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3571 | ac_c_werror_flag=yes | |
3572 | ac_cv_prog_cc_g=no | |
3573 | CFLAGS="-g" | |
3574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3575 | /* end confdefs.h. */ | |
72b2cb61 | 3576 | |
f11781c5 AK |
3577 | int |
3578 | main () | |
3579 | { | |
72b2cb61 | 3580 | |
f11781c5 AK |
3581 | ; |
3582 | return 0; | |
3583 | } | |
3584 | _ACEOF | |
3585 | if ac_fn_c_try_compile "$LINENO"; then : | |
3586 | ac_cv_prog_cc_g=yes | |
3587 | else | |
3588 | CFLAGS="" | |
3589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3590 | /* end confdefs.h. */ | |
ad6254c5 | 3591 | |
f11781c5 AK |
3592 | int |
3593 | main () | |
3594 | { | |
ad6254c5 | 3595 | |
f11781c5 AK |
3596 | ; |
3597 | return 0; | |
3598 | } | |
d0191583 | 3599 | _ACEOF |
f11781c5 AK |
3600 | if ac_fn_c_try_compile "$LINENO"; then : |
3601 | ||
3602 | else | |
3603 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3604 | CFLAGS="-g" | |
3605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3606 | /* end confdefs.h. */ |
7a197a62 | 3607 | |
f11781c5 AK |
3608 | int |
3609 | main () | |
3610 | { | |
ad6254c5 | 3611 | |
f11781c5 AK |
3612 | ; |
3613 | return 0; | |
3614 | } | |
3615 | _ACEOF | |
3616 | if ac_fn_c_try_compile "$LINENO"; then : | |
3617 | ac_cv_prog_cc_g=yes | |
3618 | fi | |
3619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3620 | fi | |
3621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3622 | fi | |
3623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3624 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3625 | fi | |
3626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3627 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3628 | if test "$ac_test_CFLAGS" = set; then | |
3629 | CFLAGS=$ac_save_CFLAGS | |
3630 | elif test $ac_cv_prog_cc_g = yes; then | |
3631 | if test "$GCC" = yes; then | |
3632 | CFLAGS="-g -O2" | |
3633 | else | |
3634 | CFLAGS="-g" | |
3635 | fi | |
3636 | else | |
3637 | if test "$GCC" = yes; then | |
3638 | CFLAGS="-O2" | |
3639 | else | |
3640 | CFLAGS= | |
3641 | fi | |
3642 | fi | |
3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3644 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3645 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3646 | $as_echo_n "(cached) " >&6 | |
3647 | else | |
3648 | ac_cv_prog_cc_c89=no | |
3649 | ac_save_CC=$CC | |
3650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3651 | /* end confdefs.h. */ | |
3652 | #include <stdarg.h> | |
3653 | #include <stdio.h> | |
3654 | #include <sys/types.h> | |
3655 | #include <sys/stat.h> | |
3656 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3657 | struct buf { int x; }; | |
3658 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3659 | static char *e (p, i) | |
3660 | char **p; | |
3661 | int i; | |
3662 | { | |
3663 | return p[i]; | |
3664 | } | |
3665 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3666 | { | |
3667 | char *s; | |
3668 | va_list v; | |
3669 | va_start (v,p); | |
3670 | s = g (p, va_arg (v,int)); | |
3671 | va_end (v); | |
3672 | return s; | |
3673 | } | |
ad6254c5 | 3674 | |
f11781c5 AK |
3675 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3676 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3677 | These don't provoke an error unfortunately, instead are silently treated | |
3678 | as 'x'. The following induces an error, until -std is added to get | |
3679 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3680 | array size at least. It's necessary to write '\x00'==0 to get something | |
3681 | that's true only with -std. */ | |
3682 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
72b2cb61 | 3683 | |
f11781c5 AK |
3684 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3685 | inside strings and character constants. */ | |
3686 | #define FOO(x) 'x' | |
3687 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
d0191583 | 3688 | |
f11781c5 AK |
3689 | int test (int i, double x); |
3690 | struct s1 {int (*f) (int a);}; | |
3691 | struct s2 {int (*f) (double a);}; | |
3692 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3693 | int argc; | |
3694 | char **argv; | |
d0191583 JM |
3695 | int |
3696 | main () | |
3697 | { | |
f11781c5 | 3698 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
d0191583 JM |
3699 | ; |
3700 | return 0; | |
3701 | } | |
72b2cb61 | 3702 | _ACEOF |
f11781c5 AK |
3703 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3704 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3705 | do | |
3706 | CC="$ac_save_CC $ac_arg" | |
3707 | if ac_fn_c_try_compile "$LINENO"; then : | |
3708 | ac_cv_prog_cc_c89=$ac_arg | |
3709 | fi | |
3710 | rm -f core conftest.err conftest.$ac_objext | |
3711 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3712 | done | |
3713 | rm -f conftest.$ac_ext | |
3714 | CC=$ac_save_CC | |
3715 | ||
3716 | fi | |
3717 | # AC_CACHE_VAL | |
3718 | case "x$ac_cv_prog_cc_c89" in | |
3719 | x) | |
3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3721 | $as_echo "none needed" >&6; } ;; | |
3722 | xno) | |
3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3724 | $as_echo "unsupported" >&6; } ;; | |
3725 | *) | |
3726 | CC="$CC $ac_cv_prog_cc_c89" | |
3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3728 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d0191583 | 3729 | esac |
f11781c5 AK |
3730 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
3731 | ||
3732 | fi | |
3733 | ||
3734 | ac_ext=c | |
3735 | ac_cpp='$CPP $CPPFLAGS' | |
3736 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3737 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3738 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
72b2cb61 | 3739 | |
ad6254c5 | 3740 | |
7a197a62 | 3741 | |
f11781c5 AK |
3742 | ac_ext=c |
3743 | ac_cpp='$CPP $CPPFLAGS' | |
3744 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3745 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3748 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3749 | # On Suns, sometimes $CPP names a directory. | |
3750 | if test -n "$CPP" && test -d "$CPP"; then | |
3751 | CPP= | |
3752 | fi | |
3753 | if test -z "$CPP"; then | |
3754 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
ec6a6fbe | 3755 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3756 | else |
f11781c5 AK |
3757 | # Double quotes because CPP needs to be expanded |
3758 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3759 | do | |
3760 | ac_preproc_ok=false | |
3761 | for ac_c_preproc_warn_flag in '' yes | |
3762 | do | |
3763 | # Use a header file that comes with gcc, so configuring glibc | |
3764 | # with a fresh cross-compiler works. | |
3765 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3766 | # <limits.h> exists even on freestanding compilers. | |
3767 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3768 | # not just through cpp. "Syntax error" is here to catch this case. | |
3769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3770 | /* end confdefs.h. */ |
d0191583 JM |
3771 | #ifdef __STDC__ |
3772 | # include <limits.h> | |
3773 | #else | |
3774 | # include <assert.h> | |
3775 | #endif | |
f11781c5 AK |
3776 | Syntax error |
3777 | _ACEOF | |
3778 | if ac_fn_c_try_cpp "$LINENO"; then : | |
72b2cb61 | 3779 | |
f11781c5 AK |
3780 | else |
3781 | # Broken: fails on valid input. | |
3782 | continue | |
3783 | fi | |
3784 | rm -f conftest.err conftest.$ac_ext | |
d0191583 | 3785 | |
f11781c5 AK |
3786 | # OK, works on sane cases. Now check whether nonexistent headers |
3787 | # can be detected and how. | |
3788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3789 | /* end confdefs.h. */ | |
3790 | #include <ac_nonexistent.h> | |
72b2cb61 | 3791 | _ACEOF |
f11781c5 AK |
3792 | if ac_fn_c_try_cpp "$LINENO"; then : |
3793 | # Broken: success on invalid input. | |
3794 | continue | |
d0191583 | 3795 | else |
f11781c5 AK |
3796 | # Passes both tests. |
3797 | ac_preproc_ok=: | |
3798 | break | |
ad6254c5 | 3799 | fi |
f11781c5 | 3800 | rm -f conftest.err conftest.$ac_ext |
ad6254c5 | 3801 | |
f11781c5 AK |
3802 | done |
3803 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3804 | rm -f conftest.err conftest.$ac_ext | |
3805 | if $ac_preproc_ok; then : | |
3806 | break | |
7a197a62 AK |
3807 | fi |
3808 | ||
f11781c5 AK |
3809 | done |
3810 | ac_cv_prog_CPP=$CPP | |
ad6254c5 | 3811 | |
7a197a62 | 3812 | fi |
f11781c5 AK |
3813 | CPP=$ac_cv_prog_CPP |
3814 | else | |
3815 | ac_cv_prog_CPP=$CPP | |
d0191583 | 3816 | fi |
f11781c5 AK |
3817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3818 | $as_echo "$CPP" >&6; } | |
3819 | ac_preproc_ok=false | |
3820 | for ac_c_preproc_warn_flag in '' yes | |
3821 | do | |
3822 | # Use a header file that comes with gcc, so configuring glibc | |
3823 | # with a fresh cross-compiler works. | |
3824 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3825 | # <limits.h> exists even on freestanding compilers. | |
3826 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3827 | # not just through cpp. "Syntax error" is here to catch this case. | |
3828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3829 | /* end confdefs.h. */ | |
3830 | #ifdef __STDC__ | |
3831 | # include <limits.h> | |
3832 | #else | |
3833 | # include <assert.h> | |
3834 | #endif | |
3835 | Syntax error | |
3836 | _ACEOF | |
3837 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7a197a62 | 3838 | |
9c961554 | 3839 | else |
f11781c5 AK |
3840 | # Broken: fails on valid input. |
3841 | continue | |
9c961554 | 3842 | fi |
f11781c5 | 3843 | rm -f conftest.err conftest.$ac_ext |
9c961554 | 3844 | |
f11781c5 AK |
3845 | # OK, works on sane cases. Now check whether nonexistent headers |
3846 | # can be detected and how. | |
3847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3848 | /* end confdefs.h. */ | |
3849 | #include <ac_nonexistent.h> | |
3850 | _ACEOF | |
3851 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3852 | # Broken: success on invalid input. | |
3853 | continue | |
3854 | else | |
3855 | # Passes both tests. | |
3856 | ac_preproc_ok=: | |
3857 | break | |
3858 | fi | |
3859 | rm -f conftest.err conftest.$ac_ext | |
ad6254c5 | 3860 | |
f11781c5 AK |
3861 | done |
3862 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3863 | rm -f conftest.err conftest.$ac_ext | |
3864 | if $ac_preproc_ok; then : | |
d0191583 | 3865 | |
f11781c5 AK |
3866 | else |
3867 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3868 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3869 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3870 | See \`config.log' for more details" "$LINENO" 5; } | |
7a197a62 AK |
3871 | fi |
3872 | ||
f11781c5 AK |
3873 | ac_ext=c |
3874 | ac_cpp='$CPP $CPPFLAGS' | |
3875 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3876 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3877 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 3878 | |
ad6254c5 | 3879 | |
f11781c5 AK |
3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3881 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3882 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3883 | $as_echo_n "(cached) " >&6 | |
3884 | else | |
3885 | if test -z "$GREP"; then | |
3886 | ac_path_GREP_found=false | |
3887 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3889 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3890 | do | |
3891 | IFS=$as_save_IFS | |
3892 | test -z "$as_dir" && as_dir=. | |
3893 | for ac_prog in grep ggrep; do | |
3894 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3895 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3896 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3897 | # Check for GNU ac_path_GREP and select it if it is found. | |
3898 | # Check for GNU $ac_path_GREP | |
3899 | case `"$ac_path_GREP" --version 2>&1` in | |
3900 | *GNU*) | |
3901 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3902 | *) | |
3903 | ac_count=0 | |
3904 | $as_echo_n 0123456789 >"conftest.in" | |
3905 | while : | |
3906 | do | |
3907 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3908 | mv "conftest.tmp" "conftest.in" | |
3909 | cp "conftest.in" "conftest.nl" | |
3910 | $as_echo 'GREP' >> "conftest.nl" | |
3911 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3912 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3913 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3914 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3915 | # Best one so far, save it but keep looking for a better one | |
3916 | ac_cv_path_GREP="$ac_path_GREP" | |
3917 | ac_path_GREP_max=$ac_count | |
3918 | fi | |
3919 | # 10*(2^10) chars as input seems more than enough | |
3920 | test $ac_count -gt 10 && break | |
3921 | done | |
3922 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3923 | esac | |
ad6254c5 | 3924 | |
f11781c5 AK |
3925 | $ac_path_GREP_found && break 3 |
3926 | done | |
3927 | done | |
3928 | done | |
3929 | IFS=$as_save_IFS | |
3930 | if test -z "$ac_cv_path_GREP"; then | |
3931 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3932 | fi | |
3933 | else | |
3934 | ac_cv_path_GREP=$GREP | |
7a197a62 AK |
3935 | fi |
3936 | ||
d0191583 | 3937 | fi |
f11781c5 AK |
3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3939 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3940 | GREP="$ac_cv_path_GREP" | |
ad6254c5 | 3941 | |
24bbc4d7 | 3942 | |
f11781c5 AK |
3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3944 | $as_echo_n "checking for egrep... " >&6; } | |
3945 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3946 | $as_echo_n "(cached) " >&6 | |
3947 | else | |
3948 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3949 | then ac_cv_path_EGREP="$GREP -E" | |
3950 | else | |
3951 | if test -z "$EGREP"; then | |
3952 | ac_path_EGREP_found=false | |
3953 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3955 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3956 | do | |
3957 | IFS=$as_save_IFS | |
3958 | test -z "$as_dir" && as_dir=. | |
3959 | for ac_prog in egrep; do | |
3960 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3961 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3962 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3963 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3964 | # Check for GNU $ac_path_EGREP | |
3965 | case `"$ac_path_EGREP" --version 2>&1` in | |
3966 | *GNU*) | |
3967 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3968 | *) | |
3969 | ac_count=0 | |
3970 | $as_echo_n 0123456789 >"conftest.in" | |
3971 | while : | |
3972 | do | |
3973 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3974 | mv "conftest.tmp" "conftest.in" | |
3975 | cp "conftest.in" "conftest.nl" | |
3976 | $as_echo 'EGREP' >> "conftest.nl" | |
3977 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3978 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3979 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3980 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3981 | # Best one so far, save it but keep looking for a better one | |
3982 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3983 | ac_path_EGREP_max=$ac_count | |
3984 | fi | |
3985 | # 10*(2^10) chars as input seems more than enough | |
3986 | test $ac_count -gt 10 && break | |
3987 | done | |
3988 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3989 | esac | |
24bbc4d7 | 3990 | |
f11781c5 AK |
3991 | $ac_path_EGREP_found && break 3 |
3992 | done | |
3993 | done | |
3994 | done | |
3995 | IFS=$as_save_IFS | |
3996 | if test -z "$ac_cv_path_EGREP"; then | |
3997 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3998 | fi | |
24bbc4d7 | 3999 | else |
f11781c5 | 4000 | ac_cv_path_EGREP=$EGREP |
24bbc4d7 AK |
4001 | fi |
4002 | ||
f11781c5 | 4003 | fi |
24bbc4d7 | 4004 | fi |
f11781c5 AK |
4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4006 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4007 | EGREP="$ac_cv_path_EGREP" | |
93bd259b AK |
4008 | |
4009 | ||
f11781c5 AK |
4010 | if test $ac_cv_c_compiler_gnu = yes; then |
4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4012 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
4013 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : | |
4014 | $as_echo_n "(cached) " >&6 | |
93bd259b | 4015 | else |
f11781c5 AK |
4016 | ac_pattern="Autoconf.*'x'" |
4017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4018 | /* end confdefs.h. */ | |
4019 | #include <sgtty.h> | |
4020 | Autoconf TIOCGETP | |
4021 | _ACEOF | |
4022 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4023 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4024 | ac_cv_prog_gcc_traditional=yes | |
d0191583 | 4025 | else |
f11781c5 | 4026 | ac_cv_prog_gcc_traditional=no |
7a197a62 | 4027 | fi |
f11781c5 | 4028 | rm -f conftest* |
7a197a62 | 4029 | |
72b2cb61 | 4030 | |
f11781c5 AK |
4031 | if test $ac_cv_prog_gcc_traditional = no; then |
4032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4033 | /* end confdefs.h. */ | |
4034 | #include <termio.h> | |
4035 | Autoconf TCGETA | |
72b2cb61 | 4036 | _ACEOF |
f11781c5 AK |
4037 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4038 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4039 | ac_cv_prog_gcc_traditional=yes | |
ad6254c5 | 4040 | fi |
f11781c5 | 4041 | rm -f conftest* |
ad6254c5 | 4042 | |
f11781c5 | 4043 | fi |
7a197a62 | 4044 | fi |
f11781c5 AK |
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
4046 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4047 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4048 | CC="$CC -traditional" | |
4049 | fi | |
ad6254c5 AK |
4050 | fi |
4051 | ||
f11781c5 AK |
4052 | # Find a good install program. We prefer a C program (faster), |
4053 | # so one script is as good as another. But avoid the broken or | |
4054 | # incompatible versions: | |
4055 | # SysV /etc/install, /usr/sbin/install | |
4056 | # SunOS /usr/etc/install | |
4057 | # IRIX /sbin/install | |
4058 | # AIX /bin/install | |
4059 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4060 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4061 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4062 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4063 | # OS/2's system install, which has a completely different semantic | |
4064 | # ./install, which can be erroneously created by make from ./install.sh. | |
4065 | # Reject install programs that cannot install multiple files. | |
4066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4067 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4068 | if test -z "$INSTALL"; then | |
4069 | if test "${ac_cv_path_install+set}" = set; then : | |
4070 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 4071 | else |
f11781c5 AK |
4072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4073 | for as_dir in $PATH | |
4074 | do | |
4075 | IFS=$as_save_IFS | |
4076 | test -z "$as_dir" && as_dir=. | |
4077 | # Account for people who put trailing slashes in PATH elements. | |
4078 | case $as_dir/ in #(( | |
4079 | ./ | .// | /[cC]/* | \ | |
4080 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4081 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4082 | /usr/ucb/* ) ;; | |
4083 | *) | |
4084 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4085 | # Don't use installbsd from OSF since it installs stuff as root | |
4086 | # by default. | |
4087 | for ac_prog in ginstall scoinst install; do | |
4088 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4089 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4090 | if test $ac_prog = install && | |
4091 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4092 | # AIX install. It has an incompatible calling convention. | |
4093 | : | |
4094 | elif test $ac_prog = install && | |
4095 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4096 | # program-specific install script used by HP pwplus--don't use. | |
4097 | : | |
4098 | else | |
4099 | rm -rf conftest.one conftest.two conftest.dir | |
4100 | echo one > conftest.one | |
4101 | echo two > conftest.two | |
4102 | mkdir conftest.dir | |
4103 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4104 | test -s conftest.one && test -s conftest.two && | |
4105 | test -s conftest.dir/conftest.one && | |
4106 | test -s conftest.dir/conftest.two | |
4107 | then | |
4108 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4109 | break 3 | |
4110 | fi | |
4111 | fi | |
4112 | fi | |
4113 | done | |
4114 | done | |
4115 | ;; | |
4116 | esac | |
7a197a62 | 4117 | |
f11781c5 AK |
4118 | done |
4119 | IFS=$as_save_IFS | |
d0191583 | 4120 | |
f11781c5 | 4121 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
4122 | |
4123 | fi | |
f11781c5 AK |
4124 | if test "${ac_cv_path_install+set}" = set; then |
4125 | INSTALL=$ac_cv_path_install | |
4126 | else | |
4127 | # As a last resort, use the slow shell script. Don't cache a | |
4128 | # value for INSTALL within a source directory, because that will | |
4129 | # break other packages using the cache if that directory is | |
4130 | # removed, or if the value is a relative name. | |
4131 | INSTALL=$ac_install_sh | |
4132 | fi | |
7a197a62 | 4133 | fi |
f11781c5 AK |
4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4135 | $as_echo "$INSTALL" >&6; } | |
7a197a62 | 4136 | |
f11781c5 AK |
4137 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4138 | # It thinks the first close brace ends the variable substitution. | |
4139 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
06f62ad1 | 4140 | |
f11781c5 | 4141 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
72b2cb61 | 4142 | |
f11781c5 | 4143 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
72b2cb61 | 4144 | |
f11781c5 AK |
4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4146 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4147 | LN_S=$as_ln_s | |
4148 | if test "$LN_S" = "ln -s"; then | |
4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4150 | $as_echo "yes" >&6; } | |
4151 | else | |
4152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4153 | $as_echo "no, using $LN_S" >&6; } | |
15d91f5a | 4154 | fi |
ad6254c5 | 4155 | |
f11781c5 AK |
4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4157 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4158 | set x ${MAKE-make} | |
4159 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4160 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | |
4161 | $as_echo_n "(cached) " >&6 | |
d0191583 | 4162 | else |
f11781c5 AK |
4163 | cat >conftest.make <<\_ACEOF |
4164 | SHELL = /bin/sh | |
4165 | all: | |
4166 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4167 | _ACEOF | |
4168 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4169 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4170 | *@@@%%%=?*=@@@%%%*) | |
4171 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4172 | *) | |
4173 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4174 | esac | |
4175 | rm -f conftest.make | |
4176 | fi | |
4177 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4179 | $as_echo "yes" >&6; } | |
4180 | SET_MAKE= | |
4181 | else | |
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4183 | $as_echo "no" >&6; } | |
4184 | SET_MAKE="MAKE=${MAKE-make}" | |
ad6254c5 AK |
4185 | fi |
4186 | ||
f11781c5 AK |
4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4188 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4189 | if test -z "$MKDIR_P"; then | |
4190 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
4191 | $as_echo_n "(cached) " >&6 | |
4192 | else | |
4193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4194 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4195 | do | |
4196 | IFS=$as_save_IFS | |
4197 | test -z "$as_dir" && as_dir=. | |
4198 | for ac_prog in mkdir gmkdir; do | |
4199 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4200 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
4201 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4202 | 'mkdir (GNU coreutils) '* | \ | |
4203 | 'mkdir (coreutils) '* | \ | |
4204 | 'mkdir (fileutils) '4.1*) | |
4205 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4206 | break 3;; | |
4207 | esac | |
4208 | done | |
4209 | done | |
4210 | done | |
4211 | IFS=$as_save_IFS | |
d0191583 | 4212 | |
f11781c5 | 4213 | fi |
ad6254c5 | 4214 | |
f11781c5 AK |
4215 | test -d ./--version && rmdir ./--version |
4216 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4217 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4218 | else | |
4219 | # As a last resort, use the slow shell script. Don't cache a | |
4220 | # value for MKDIR_P within a source directory, because that will | |
4221 | # break other packages using the cache if that directory is | |
4222 | # removed, or if the value is a relative name. | |
4223 | MKDIR_P="$ac_install_sh -d" | |
4224 | fi | |
ad6254c5 | 4225 | fi |
f11781c5 AK |
4226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4227 | $as_echo "$MKDIR_P" >&6; } | |
7a197a62 | 4228 | |
f11781c5 AK |
4229 | if test -n "$ac_tool_prefix"; then |
4230 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4231 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4233 | $as_echo_n "checking for $ac_word... " >&6; } | |
4234 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4235 | $as_echo_n "(cached) " >&6 | |
4236 | else | |
4237 | if test -n "$RANLIB"; then | |
4238 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4239 | else | |
4240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4241 | for as_dir in $PATH | |
4242 | do | |
4243 | IFS=$as_save_IFS | |
4244 | test -z "$as_dir" && as_dir=. | |
4245 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4246 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4247 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4249 | break 2 | |
4250 | fi | |
4251 | done | |
4252 | done | |
4253 | IFS=$as_save_IFS | |
d0191583 | 4254 | |
f11781c5 AK |
4255 | fi |
4256 | fi | |
4257 | RANLIB=$ac_cv_prog_RANLIB | |
4258 | if test -n "$RANLIB"; then | |
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4260 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 4261 | else |
f11781c5 AK |
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4263 | $as_echo "no" >&6; } | |
ad6254c5 | 4264 | fi |
ad6254c5 | 4265 | |
8a2fc586 | 4266 | |
d0191583 | 4267 | fi |
f11781c5 AK |
4268 | if test -z "$ac_cv_prog_RANLIB"; then |
4269 | ac_ct_RANLIB=$RANLIB | |
4270 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4271 | set dummy ranlib; ac_word=$2 | |
4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4273 | $as_echo_n "checking for $ac_word... " >&6; } | |
4274 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4275 | $as_echo_n "(cached) " >&6 | |
4276 | else | |
4277 | if test -n "$ac_ct_RANLIB"; then | |
4278 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4279 | else | |
4280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4281 | for as_dir in $PATH | |
4282 | do | |
4283 | IFS=$as_save_IFS | |
4284 | test -z "$as_dir" && as_dir=. | |
4285 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4287 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4289 | break 2 | |
4290 | fi | |
4291 | done | |
4292 | done | |
4293 | IFS=$as_save_IFS | |
8a2fc586 | 4294 | |
f11781c5 AK |
4295 | fi |
4296 | fi | |
4297 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4298 | if test -n "$ac_ct_RANLIB"; then | |
4299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4300 | $as_echo "$ac_ct_RANLIB" >&6; } | |
8fea97b7 | 4301 | else |
f11781c5 AK |
4302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4303 | $as_echo "no" >&6; } | |
8fea97b7 ZK |
4304 | fi |
4305 | ||
f11781c5 AK |
4306 | if test "x$ac_ct_RANLIB" = x; then |
4307 | RANLIB=":" | |
4308 | else | |
4309 | case $cross_compiling:$ac_tool_warned in | |
4310 | yes:) | |
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4312 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4313 | ac_tool_warned=yes ;; | |
8fea97b7 | 4314 | esac |
f11781c5 AK |
4315 | RANLIB=$ac_ct_RANLIB |
4316 | fi | |
d0191583 | 4317 | else |
f11781c5 | 4318 | RANLIB="$ac_cv_prog_RANLIB" |
d0191583 | 4319 | fi |
8a2fc586 | 4320 | |
f11781c5 AK |
4321 | # Extract the first word of "cflow", so it can be a program name with args. |
4322 | set dummy cflow; ac_word=$2 | |
4323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4324 | $as_echo_n "checking for $ac_word... " >&6; } | |
4325 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then : | |
4326 | $as_echo_n "(cached) " >&6 | |
4327 | else | |
4328 | case $CFLOW_CMD in | |
4329 | [\\/]* | ?:[\\/]*) | |
4330 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4331 | ;; | |
4332 | *) | |
4333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4334 | for as_dir in $PATH | |
4335 | do | |
4336 | IFS=$as_save_IFS | |
4337 | test -z "$as_dir" && as_dir=. | |
4338 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4339 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4340 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
4341 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4342 | break 2 | |
4343 | fi | |
4344 | done | |
4345 | done | |
4346 | IFS=$as_save_IFS | |
8a2fc586 | 4347 | |
f11781c5 AK |
4348 | ;; |
4349 | esac | |
ad6254c5 | 4350 | fi |
f11781c5 AK |
4351 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD |
4352 | if test -n "$CFLOW_CMD"; then | |
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5 | |
4354 | $as_echo "$CFLOW_CMD" >&6; } | |
37ddf259 | 4355 | else |
f11781c5 AK |
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4357 | $as_echo "no" >&6; } | |
37ddf259 AK |
4358 | fi |
4359 | ||
e2997b73 | 4360 | |
f11781c5 AK |
4361 | # Extract the first word of "cscope", so it can be a program name with args. |
4362 | set dummy cscope; ac_word=$2 | |
4363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
e2997b73 | 4364 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 4365 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then : |
e2997b73 AK |
4366 | $as_echo_n "(cached) " >&6 |
4367 | else | |
f11781c5 | 4368 | case $CSCOPE_CMD in |
e2997b73 | 4369 | [\\/]* | ?:[\\/]*) |
f11781c5 | 4370 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. |
e2997b73 AK |
4371 | ;; |
4372 | *) | |
4373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4374 | for as_dir in $PATH | |
4375 | do | |
4376 | IFS=$as_save_IFS | |
4377 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 4378 | for ac_exec_ext in '' $ac_executable_extensions; do |
e2997b73 | 4379 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
4380 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" |
4381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
e2997b73 AK |
4382 | break 2 |
4383 | fi | |
4384 | done | |
f11781c5 | 4385 | done |
e2997b73 AK |
4386 | IFS=$as_save_IFS |
4387 | ||
4388 | ;; | |
4389 | esac | |
4390 | fi | |
f11781c5 AK |
4391 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4392 | if test -n "$CSCOPE_CMD"; then | |
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5 | |
4394 | $as_echo "$CSCOPE_CMD" >&6; } | |
e2997b73 | 4395 | else |
f11781c5 | 4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
e2997b73 AK |
4397 | $as_echo "no" >&6; } |
4398 | fi | |
f11781c5 AK |
4399 | |
4400 | ||
4401 | ||
4402 | ################################################################################ | |
4403 | ac_header_dirent=no | |
4404 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
4405 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4407 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4408 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : | |
4409 | $as_echo_n "(cached) " >&6 | |
4410 | else | |
4411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4412 | /* end confdefs.h. */ | |
4413 | #include <sys/types.h> | |
4414 | #include <$ac_hdr> | |
4415 | ||
4416 | int | |
4417 | main () | |
4418 | { | |
4419 | if ((DIR *) 0) | |
4420 | return 0; | |
4421 | ; | |
4422 | return 0; | |
4423 | } | |
4424 | _ACEOF | |
4425 | if ac_fn_c_try_compile "$LINENO"; then : | |
4426 | eval "$as_ac_Header=yes" | |
4427 | else | |
4428 | eval "$as_ac_Header=no" | |
4429 | fi | |
4430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4431 | fi | |
4432 | eval ac_res=\$$as_ac_Header | |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4434 | $as_echo "$ac_res" >&6; } | |
4435 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4436 | cat >>confdefs.h <<_ACEOF | |
4437 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
4438 | _ACEOF | |
4439 | ||
4440 | ac_header_dirent=$ac_hdr; break | |
4441 | fi | |
4442 | ||
4443 | done | |
4444 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4445 | if test $ac_header_dirent = dirent.h; then | |
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4447 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4448 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4449 | $as_echo_n "(cached) " >&6 | |
4450 | else | |
4451 | ac_func_search_save_LIBS=$LIBS | |
4452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4453 | /* end confdefs.h. */ | |
4454 | ||
4455 | /* Override any GCC internal prototype to avoid an error. | |
4456 | Use char because int might match the return type of a GCC | |
4457 | builtin and then its argument prototype would still apply. */ | |
4458 | #ifdef __cplusplus | |
4459 | extern "C" | |
4460 | #endif | |
4461 | char opendir (); | |
4462 | int | |
4463 | main () | |
4464 | { | |
4465 | return opendir (); | |
4466 | ; | |
4467 | return 0; | |
4468 | } | |
4469 | _ACEOF | |
4470 | for ac_lib in '' dir; do | |
4471 | if test -z "$ac_lib"; then | |
4472 | ac_res="none required" | |
4473 | else | |
4474 | ac_res=-l$ac_lib | |
4475 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4476 | fi | |
4477 | if ac_fn_c_try_link "$LINENO"; then : | |
4478 | ac_cv_search_opendir=$ac_res | |
4479 | fi | |
4480 | rm -f core conftest.err conftest.$ac_objext \ | |
4481 | conftest$ac_exeext | |
4482 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4483 | break | |
4484 | fi | |
4485 | done | |
4486 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4487 | ||
4488 | else | |
4489 | ac_cv_search_opendir=no | |
4490 | fi | |
4491 | rm conftest.$ac_ext | |
4492 | LIBS=$ac_func_search_save_LIBS | |
4493 | fi | |
4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4495 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4496 | ac_res=$ac_cv_search_opendir | |
4497 | if test "$ac_res" != no; then : | |
4498 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4499 | |
4500 | fi | |
f11781c5 AK |
4501 | |
4502 | else | |
4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4504 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4505 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 AK |
4506 | $as_echo_n "(cached) " >&6 |
4507 | else | |
f11781c5 AK |
4508 | ac_func_search_save_LIBS=$LIBS |
4509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4510 | /* end confdefs.h. */ | |
e2997b73 | 4511 | |
f11781c5 AK |
4512 | /* Override any GCC internal prototype to avoid an error. |
4513 | Use char because int might match the return type of a GCC | |
4514 | builtin and then its argument prototype would still apply. */ | |
4515 | #ifdef __cplusplus | |
4516 | extern "C" | |
4517 | #endif | |
4518 | char opendir (); | |
4519 | int | |
4520 | main () | |
4521 | { | |
4522 | return opendir (); | |
4523 | ; | |
4524 | return 0; | |
4525 | } | |
4526 | _ACEOF | |
4527 | for ac_lib in '' x; do | |
4528 | if test -z "$ac_lib"; then | |
4529 | ac_res="none required" | |
4530 | else | |
4531 | ac_res=-l$ac_lib | |
4532 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4533 | fi | |
4534 | if ac_fn_c_try_link "$LINENO"; then : | |
4535 | ac_cv_search_opendir=$ac_res | |
e2997b73 | 4536 | fi |
f11781c5 AK |
4537 | rm -f core conftest.err conftest.$ac_objext \ |
4538 | conftest$ac_exeext | |
4539 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4540 | break | |
e2997b73 | 4541 | fi |
f11781c5 AK |
4542 | done |
4543 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 | 4544 | |
e2997b73 | 4545 | else |
f11781c5 AK |
4546 | ac_cv_search_opendir=no |
4547 | fi | |
4548 | rm conftest.$ac_ext | |
4549 | LIBS=$ac_func_search_save_LIBS | |
e2997b73 | 4550 | fi |
f11781c5 AK |
4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4552 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4553 | ac_res=$ac_cv_search_opendir | |
4554 | if test "$ac_res" != no; then : | |
4555 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4556 | |
4557 | fi | |
8c4e8a18 | 4558 | |
e2997b73 AK |
4559 | fi |
4560 | ||
f11781c5 AK |
4561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4562 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4563 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4564 | $as_echo_n "(cached) " >&6 | |
4565 | else | |
4566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4567 | /* end confdefs.h. */ | |
4568 | #include <stdlib.h> | |
4569 | #include <stdarg.h> | |
4570 | #include <string.h> | |
4571 | #include <float.h> | |
e2997b73 | 4572 | |
f11781c5 AK |
4573 | int |
4574 | main () | |
4575 | { | |
4576 | ||
4577 | ; | |
4578 | return 0; | |
4579 | } | |
4580 | _ACEOF | |
4581 | if ac_fn_c_try_compile "$LINENO"; then : | |
4582 | ac_cv_header_stdc=yes | |
e2997b73 | 4583 | else |
f11781c5 | 4584 | ac_cv_header_stdc=no |
e2997b73 | 4585 | fi |
f11781c5 AK |
4586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4587 | ||
4588 | if test $ac_cv_header_stdc = yes; then | |
4589 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4591 | /* end confdefs.h. */ | |
4592 | #include <string.h> | |
4593 | ||
4594 | _ACEOF | |
4595 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4596 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4597 | ||
e2997b73 | 4598 | else |
f11781c5 | 4599 | ac_cv_header_stdc=no |
e2997b73 | 4600 | fi |
f11781c5 | 4601 | rm -f conftest* |
e2997b73 | 4602 | |
f11781c5 | 4603 | fi |
e2997b73 | 4604 | |
f11781c5 AK |
4605 | if test $ac_cv_header_stdc = yes; then |
4606 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4608 | /* end confdefs.h. */ | |
4609 | #include <stdlib.h> | |
e2997b73 | 4610 | |
f11781c5 AK |
4611 | _ACEOF |
4612 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4613 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4614 | |
e2997b73 | 4615 | else |
f11781c5 | 4616 | ac_cv_header_stdc=no |
e2997b73 | 4617 | fi |
f11781c5 | 4618 | rm -f conftest* |
e2997b73 | 4619 | |
e2997b73 | 4620 | fi |
90c80887 | 4621 | |
f11781c5 AK |
4622 | if test $ac_cv_header_stdc = yes; then |
4623 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4624 | if test "$cross_compiling" = yes; then : | |
4625 | : | |
4626 | else | |
4627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4628 | /* end confdefs.h. */ | |
4629 | #include <ctype.h> | |
4630 | #include <stdlib.h> | |
4631 | #if ((' ' & 0x0FF) == 0x020) | |
4632 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4633 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4634 | #else | |
4635 | # define ISLOWER(c) \ | |
4636 | (('a' <= (c) && (c) <= 'i') \ | |
4637 | || ('j' <= (c) && (c) <= 'r') \ | |
4638 | || ('s' <= (c) && (c) <= 'z')) | |
4639 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4640 | #endif | |
4641 | ||
4642 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4643 | int | |
4644 | main () | |
4645 | { | |
4646 | int i; | |
4647 | for (i = 0; i < 256; i++) | |
4648 | if (XOR (islower (i), ISLOWER (i)) | |
4649 | || toupper (i) != TOUPPER (i)) | |
4650 | return 2; | |
4651 | return 0; | |
4652 | } | |
4653 | _ACEOF | |
4654 | if ac_fn_c_try_run "$LINENO"; then : | |
90c80887 | 4655 | |
90c80887 | 4656 | else |
f11781c5 | 4657 | ac_cv_header_stdc=no |
90c80887 | 4658 | fi |
f11781c5 AK |
4659 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4660 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
90c80887 | 4661 | fi |
90c80887 | 4662 | |
90c80887 | 4663 | fi |
90c80887 | 4664 | fi |
f11781c5 AK |
4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4666 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4667 | if test $ac_cv_header_stdc = yes; then | |
90c80887 | 4668 | |
f11781c5 | 4669 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
90c80887 | 4670 | |
90c80887 | 4671 | fi |
f11781c5 AK |
4672 | |
4673 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4674 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4675 | inttypes.h stdint.h unistd.h | |
4676 | do : | |
4677 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4678 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4679 | " | |
4680 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4681 | cat >>confdefs.h <<_ACEOF | |
4682 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4683 | _ACEOF | |
4684 | ||
90c80887 | 4685 | fi |
f11781c5 AK |
4686 | |
4687 | done | |
4688 | ||
4689 | ||
4690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | |
4691 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4692 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : | |
4693 | $as_echo_n "(cached) " >&6 | |
4694 | else | |
4695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4696 | /* end confdefs.h. */ | |
4697 | #include <sys/types.h> | |
4698 | int | |
4699 | main () | |
4700 | { | |
4701 | return makedev(0, 0); | |
4702 | ; | |
4703 | return 0; | |
4704 | } | |
4705 | _ACEOF | |
4706 | if ac_fn_c_try_link "$LINENO"; then : | |
4707 | ac_cv_header_sys_types_h_makedev=yes | |
4708 | else | |
4709 | ac_cv_header_sys_types_h_makedev=no | |
90c80887 | 4710 | fi |
f11781c5 AK |
4711 | rm -f core conftest.err conftest.$ac_objext \ |
4712 | conftest$ac_exeext conftest.$ac_ext | |
4713 | ||
90c80887 | 4714 | fi |
f11781c5 AK |
4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4716 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
4717 | ||
4718 | if test $ac_cv_header_sys_types_h_makedev = no; then | |
4719 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | |
4720 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : | |
4721 | ||
4722 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | |
90c80887 | 4723 | |
a946372e | 4724 | fi |
e2997b73 | 4725 | |
e2997b73 | 4726 | |
a946372e | 4727 | |
f11781c5 AK |
4728 | if test $ac_cv_header_sys_mkdev_h = no; then |
4729 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
4730 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : | |
4731 | ||
4732 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | |
4733 | ||
e2997b73 | 4734 | fi |
a946372e | 4735 | |
a946372e | 4736 | |
f11781c5 AK |
4737 | fi |
4738 | fi | |
4739 | ||
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4741 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4742 | if test "${ac_cv_header_stdc+set}" = set; then : | |
a946372e AK |
4743 | $as_echo_n "(cached) " >&6 |
4744 | else | |
f11781c5 | 4745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4746 | /* end confdefs.h. */ |
f11781c5 AK |
4747 | #include <stdlib.h> |
4748 | #include <stdarg.h> | |
4749 | #include <string.h> | |
4750 | #include <float.h> | |
a946372e | 4751 | |
a946372e AK |
4752 | int |
4753 | main () | |
4754 | { | |
f11781c5 | 4755 | |
a946372e AK |
4756 | ; |
4757 | return 0; | |
4758 | } | |
4759 | _ACEOF | |
f11781c5 AK |
4760 | if ac_fn_c_try_compile "$LINENO"; then : |
4761 | ac_cv_header_stdc=yes | |
e2997b73 | 4762 | else |
f11781c5 AK |
4763 | ac_cv_header_stdc=no |
4764 | fi | |
4765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4766 | ||
4767 | if test $ac_cv_header_stdc = yes; then | |
4768 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4770 | /* end confdefs.h. */ | |
4771 | #include <string.h> | |
4772 | ||
4773 | _ACEOF | |
4774 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4775 | $EGREP "memchr" >/dev/null 2>&1; then : | |
e2997b73 | 4776 | |
f11781c5 AK |
4777 | else |
4778 | ac_cv_header_stdc=no | |
a946372e | 4779 | fi |
f11781c5 | 4780 | rm -f conftest* |
e2997b73 | 4781 | |
a946372e | 4782 | fi |
e2997b73 | 4783 | |
f11781c5 AK |
4784 | if test $ac_cv_header_stdc = yes; then |
4785 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4787 | /* end confdefs.h. */ | |
4788 | #include <stdlib.h> | |
4789 | ||
4790 | _ACEOF | |
4791 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4792 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4793 | |
e2997b73 | 4794 | else |
f11781c5 | 4795 | ac_cv_header_stdc=no |
e2997b73 | 4796 | fi |
f11781c5 | 4797 | rm -f conftest* |
e2997b73 | 4798 | |
f11781c5 | 4799 | fi |
a946372e | 4800 | |
f11781c5 AK |
4801 | if test $ac_cv_header_stdc = yes; then |
4802 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4803 | if test "$cross_compiling" = yes; then : | |
4804 | : | |
4805 | else | |
4806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4807 | /* end confdefs.h. */ | |
4808 | #include <ctype.h> | |
4809 | #include <stdlib.h> | |
4810 | #if ((' ' & 0x0FF) == 0x020) | |
4811 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4812 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4813 | #else | |
4814 | # define ISLOWER(c) \ | |
4815 | (('a' <= (c) && (c) <= 'i') \ | |
4816 | || ('j' <= (c) && (c) <= 'r') \ | |
4817 | || ('s' <= (c) && (c) <= 'z')) | |
4818 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4819 | #endif | |
e2997b73 | 4820 | |
f11781c5 AK |
4821 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4822 | int | |
4823 | main () | |
4824 | { | |
4825 | int i; | |
4826 | for (i = 0; i < 256; i++) | |
4827 | if (XOR (islower (i), ISLOWER (i)) | |
4828 | || toupper (i) != TOUPPER (i)) | |
4829 | return 2; | |
4830 | return 0; | |
4831 | } | |
4832 | _ACEOF | |
4833 | if ac_fn_c_try_run "$LINENO"; then : | |
e2997b73 | 4834 | |
e2997b73 | 4835 | else |
f11781c5 | 4836 | ac_cv_header_stdc=no |
e2997b73 | 4837 | fi |
f11781c5 AK |
4838 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4839 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
e2997b73 | 4840 | fi |
f11781c5 | 4841 | |
e2997b73 | 4842 | fi |
e2997b73 | 4843 | fi |
f11781c5 AK |
4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4845 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4846 | if test $ac_cv_header_stdc = yes; then | |
e2997b73 | 4847 | |
f11781c5 | 4848 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
e2997b73 | 4849 | |
f11781c5 | 4850 | fi |
e2997b73 | 4851 | |
f11781c5 AK |
4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4853 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
4854 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : | |
4855 | $as_echo_n "(cached) " >&6 | |
4856 | else | |
4857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4858 | /* end confdefs.h. */ | |
4859 | #include <sys/types.h> | |
4860 | #include <sys/wait.h> | |
4861 | #ifndef WEXITSTATUS | |
4862 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
4863 | #endif | |
4864 | #ifndef WIFEXITED | |
4865 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4866 | #endif | |
e2997b73 | 4867 | |
f11781c5 AK |
4868 | int |
4869 | main () | |
4870 | { | |
4871 | int s; | |
4872 | wait (&s); | |
4873 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4874 | ; | |
4875 | return 0; | |
4876 | } | |
4877 | _ACEOF | |
4878 | if ac_fn_c_try_compile "$LINENO"; then : | |
4879 | ac_cv_header_sys_wait_h=yes | |
e2997b73 | 4880 | else |
f11781c5 | 4881 | ac_cv_header_sys_wait_h=no |
e2997b73 | 4882 | fi |
f11781c5 AK |
4883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4884 | fi | |
4885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | |
4886 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
4887 | if test $ac_cv_header_sys_wait_h = yes; then | |
e2997b73 | 4888 | |
f11781c5 | 4889 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
e2997b73 | 4890 | |
d0191583 | 4891 | fi |
f11781c5 AK |
4892 | |
4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
4894 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
4895 | if test "${ac_cv_header_time+set}" = set; then : | |
4896 | $as_echo_n "(cached) " >&6 | |
fc54be10 | 4897 | else |
f11781c5 | 4898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4899 | /* end confdefs.h. */ |
f11781c5 AK |
4900 | #include <sys/types.h> |
4901 | #include <sys/time.h> | |
4902 | #include <time.h> | |
4903 | ||
4904 | int | |
4905 | main () | |
4906 | { | |
4907 | if ((struct tm *) 0) | |
4908 | return 0; | |
4909 | ; | |
4910 | return 0; | |
4911 | } | |
a946372e | 4912 | _ACEOF |
f11781c5 AK |
4913 | if ac_fn_c_try_compile "$LINENO"; then : |
4914 | ac_cv_header_time=yes | |
a946372e | 4915 | else |
f11781c5 AK |
4916 | ac_cv_header_time=no |
4917 | fi | |
4918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4919 | fi | |
4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
4921 | $as_echo "$ac_cv_header_time" >&6; } | |
4922 | if test $ac_cv_header_time = yes; then | |
4923 | ||
4924 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
4925 | ||
4926 | fi | |
4927 | ||
4928 | ||
4929 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4930 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
4931 | sys/wait.h time.h | |
4932 | do : | |
4933 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4934 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4935 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4936 | cat >>confdefs.h <<_ACEOF | |
4937 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4938 | _ACEOF | |
d0191583 | 4939 | |
f11781c5 AK |
4940 | else |
4941 | as_fn_error $? "bailing out" "$LINENO" 5 | |
d0191583 JM |
4942 | fi |
4943 | ||
f11781c5 | 4944 | done |
fddafd51 | 4945 | |
f11781c5 AK |
4946 | |
4947 | case "$host_os" in | |
4948 | linux*) | |
4949 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4950 | do : | |
4951 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4952 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4953 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4954 | cat >>confdefs.h <<_ACEOF | |
4955 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a946372e | 4956 | _ACEOF |
a946372e | 4957 | |
f11781c5 AK |
4958 | else |
4959 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a946372e AK |
4960 | fi |
4961 | ||
f11781c5 AK |
4962 | done |
4963 | ;; | |
4964 | darwin*) | |
4965 | for ac_header in machine/endian.h sys/disk.h | |
4966 | do : | |
4967 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4968 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4969 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4970 | cat >>confdefs.h <<_ACEOF | |
4971 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4972 | _ACEOF | |
a946372e | 4973 | |
f11781c5 AK |
4974 | else |
4975 | as_fn_error $? "bailing out" "$LINENO" 5 | |
4976 | fi | |
a946372e | 4977 | |
f11781c5 AK |
4978 | done |
4979 | ;; | |
a946372e | 4980 | esac |
f11781c5 AK |
4981 | |
4982 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
4983 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
4984 | sys/types.h unistd.h | |
4985 | do : | |
4986 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4987 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4988 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4989 | cat >>confdefs.h <<_ACEOF | |
4990 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4991 | _ACEOF | |
4992 | ||
a946372e | 4993 | else |
f11781c5 | 4994 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 4995 | fi |
a946372e | 4996 | |
f11781c5 AK |
4997 | done |
4998 | ||
4999 | for ac_header in termios.h sys/statvfs.h | |
5000 | do : | |
5001 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5002 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5003 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
5004 | cat >>confdefs.h <<_ACEOF |
5005 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5006 | _ACEOF | |
5007 | ||
a946372e AK |
5008 | fi |
5009 | ||
5010 | done | |
5011 | ||
a946372e | 5012 | |
f11781c5 AK |
5013 | ################################################################################ |
5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
5015 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
5016 | if test "${ac_cv_c_const+set}" = set; then : | |
a946372e | 5017 | $as_echo_n "(cached) " >&6 |
a946372e | 5018 | else |
f11781c5 | 5019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5020 | /* end confdefs.h. */ |
a946372e | 5021 | |
f11781c5 AK |
5022 | int |
5023 | main () | |
5024 | { | |
5025 | /* FIXME: Include the comments suggested by Paul. */ | |
5026 | #ifndef __cplusplus | |
5027 | /* Ultrix mips cc rejects this. */ | |
5028 | typedef int charset[2]; | |
5029 | const charset cs; | |
5030 | /* SunOS 4.1.1 cc rejects this. */ | |
5031 | char const *const *pcpcc; | |
5032 | char **ppc; | |
5033 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5034 | struct point {int x, y;}; | |
5035 | static struct point const zero = {0,0}; | |
5036 | /* AIX XL C 1.02.0.0 rejects this. | |
5037 | It does not let you subtract one const X* pointer from another in | |
5038 | an arm of an if-expression whose if-part is not a constant | |
5039 | expression */ | |
5040 | const char *g = "string"; | |
5041 | pcpcc = &g + (g ? g-g : 0); | |
5042 | /* HPUX 7.0 cc rejects these. */ | |
5043 | ++pcpcc; | |
5044 | ppc = (char**) pcpcc; | |
5045 | pcpcc = (char const *const *) ppc; | |
5046 | { /* SCO 3.2v4 cc rejects this. */ | |
5047 | char *t; | |
5048 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
a946372e | 5049 | |
f11781c5 AK |
5050 | *t++ = 0; |
5051 | if (s) return 0; | |
5052 | } | |
5053 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5054 | int x[] = {25, 17}; | |
5055 | const int *foo = &x[0]; | |
5056 | ++foo; | |
5057 | } | |
5058 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5059 | typedef const int *iptr; | |
5060 | iptr p = 0; | |
5061 | ++p; | |
5062 | } | |
5063 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5064 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5065 | struct s { int j; const int *ap[3]; }; | |
5066 | struct s *b; b->j = 5; | |
5067 | } | |
5068 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5069 | const int foo = 10; | |
5070 | if (!foo) return 0; | |
5071 | } | |
5072 | return !cs[0] && !zero.x; | |
5073 | #endif | |
a946372e | 5074 | |
f11781c5 AK |
5075 | ; |
5076 | return 0; | |
5077 | } | |
a946372e | 5078 | _ACEOF |
f11781c5 AK |
5079 | if ac_fn_c_try_compile "$LINENO"; then : |
5080 | ac_cv_c_const=yes | |
a946372e | 5081 | else |
f11781c5 AK |
5082 | ac_cv_c_const=no |
5083 | fi | |
5084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a946372e | 5085 | fi |
f11781c5 AK |
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5087 | $as_echo "$ac_cv_c_const" >&6; } | |
5088 | if test $ac_cv_c_const = no; then | |
a946372e | 5089 | |
f11781c5 | 5090 | $as_echo "#define const /**/" >>confdefs.h |
a946372e | 5091 | |
f11781c5 | 5092 | fi |
a946372e | 5093 | |
f11781c5 AK |
5094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
5095 | $as_echo_n "checking for inline... " >&6; } | |
5096 | if test "${ac_cv_c_inline+set}" = set; then : | |
a946372e AK |
5097 | $as_echo_n "(cached) " >&6 |
5098 | else | |
f11781c5 AK |
5099 | ac_cv_c_inline=no |
5100 | for ac_kw in inline __inline__ __inline; do | |
5101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5102 | /* end confdefs.h. */ | |
5103 | #ifndef __cplusplus | |
5104 | typedef int foo_t; | |
5105 | static $ac_kw foo_t static_foo () {return 0; } | |
5106 | $ac_kw foo_t foo () {return 0; } | |
5107 | #endif | |
5108 | ||
5109 | _ACEOF | |
5110 | if ac_fn_c_try_compile "$LINENO"; then : | |
5111 | ac_cv_c_inline=$ac_kw | |
a946372e | 5112 | fi |
f11781c5 AK |
5113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5114 | test "$ac_cv_c_inline" != no && break | |
5115 | done | |
a946372e AK |
5116 | |
5117 | fi | |
f11781c5 AK |
5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
5119 | $as_echo "$ac_cv_c_inline" >&6; } | |
5120 | ||
5121 | case $ac_cv_c_inline in | |
5122 | inline | yes) ;; | |
5123 | *) | |
5124 | case $ac_cv_c_inline in | |
5125 | no) ac_val=;; | |
5126 | *) ac_val=$ac_cv_c_inline;; | |
5127 | esac | |
5128 | cat >>confdefs.h <<_ACEOF | |
5129 | #ifndef __cplusplus | |
5130 | #define inline $ac_val | |
5131 | #endif | |
5132 | _ACEOF | |
5133 | ;; | |
5134 | esac | |
5135 | ||
5136 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5137 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5138 | ||
5139 | cat >>confdefs.h <<_ACEOF | |
5140 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
a946372e AK |
5141 | _ACEOF |
5142 | ||
f11781c5 | 5143 | |
a946372e AK |
5144 | fi |
5145 | ||
f11781c5 AK |
5146 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
5147 | if test "x$ac_cv_type_off_t" = x""yes; then : | |
a946372e | 5148 | |
a946372e | 5149 | else |
f11781c5 AK |
5150 | |
5151 | cat >>confdefs.h <<_ACEOF | |
5152 | #define off_t long int | |
5153 | _ACEOF | |
5154 | ||
a946372e AK |
5155 | fi |
5156 | ||
f11781c5 AK |
5157 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
5158 | if test "x$ac_cv_type_pid_t" = x""yes; then : | |
a946372e | 5159 | |
a946372e | 5160 | else |
f11781c5 AK |
5161 | |
5162 | cat >>confdefs.h <<_ACEOF | |
5163 | #define pid_t int | |
5164 | _ACEOF | |
5165 | ||
5166 | fi | |
5167 | ||
5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
5169 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5170 | if test "${ac_cv_type_signal+set}" = set; then : | |
5171 | $as_echo_n "(cached) " >&6 | |
a946372e | 5172 | else |
f11781c5 AK |
5173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5174 | /* end confdefs.h. */ | |
5175 | #include <sys/types.h> | |
5176 | #include <signal.h> | |
5177 | ||
5178 | int | |
5179 | main () | |
5180 | { | |
5181 | return *(signal (0, 0)) (0) == 1; | |
5182 | ; | |
5183 | return 0; | |
5184 | } | |
5185 | _ACEOF | |
5186 | if ac_fn_c_try_compile "$LINENO"; then : | |
5187 | ac_cv_type_signal=int | |
5188 | else | |
5189 | ac_cv_type_signal=void | |
a946372e | 5190 | fi |
f11781c5 | 5191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a946372e | 5192 | fi |
f11781c5 AK |
5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
5194 | $as_echo "$ac_cv_type_signal" >&6; } | |
a946372e | 5195 | |
f11781c5 AK |
5196 | cat >>confdefs.h <<_ACEOF |
5197 | #define RETSIGTYPE $ac_cv_type_signal | |
5198 | _ACEOF | |
a946372e AK |
5199 | |
5200 | ||
f11781c5 AK |
5201 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
5202 | if test "x$ac_cv_type_size_t" = x""yes; then : | |
a946372e | 5203 | |
a946372e | 5204 | else |
a946372e | 5205 | |
f11781c5 AK |
5206 | cat >>confdefs.h <<_ACEOF |
5207 | #define size_t unsigned int | |
5208 | _ACEOF | |
a946372e | 5209 | |
a946372e | 5210 | fi |
f11781c5 AK |
5211 | |
5212 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
5213 | if test "x$ac_cv_type_mode_t" = x""yes; then : | |
5214 | ||
a946372e | 5215 | else |
f11781c5 AK |
5216 | |
5217 | cat >>confdefs.h <<_ACEOF | |
5218 | #define mode_t int | |
a946372e | 5219 | _ACEOF |
a946372e | 5220 | |
a946372e AK |
5221 | fi |
5222 | ||
f11781c5 AK |
5223 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
5224 | case $ac_cv_c_int8_t in #( | |
5225 | no|yes) ;; #( | |
5226 | *) | |
a946372e | 5227 | |
f11781c5 AK |
5228 | cat >>confdefs.h <<_ACEOF |
5229 | #define int8_t $ac_cv_c_int8_t | |
a946372e | 5230 | _ACEOF |
f11781c5 | 5231 | ;; |
a946372e | 5232 | esac |
a946372e | 5233 | |
f11781c5 AK |
5234 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
5235 | case $ac_cv_c_int16_t in #( | |
5236 | no|yes) ;; #( | |
5237 | *) | |
a946372e | 5238 | |
f11781c5 AK |
5239 | cat >>confdefs.h <<_ACEOF |
5240 | #define int16_t $ac_cv_c_int16_t | |
5241 | _ACEOF | |
5242 | ;; | |
5243 | esac | |
a946372e | 5244 | |
f11781c5 AK |
5245 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
5246 | case $ac_cv_c_int32_t in #( | |
5247 | no|yes) ;; #( | |
5248 | *) | |
a946372e | 5249 | |
f11781c5 AK |
5250 | cat >>confdefs.h <<_ACEOF |
5251 | #define int32_t $ac_cv_c_int32_t | |
5252 | _ACEOF | |
5253 | ;; | |
a946372e | 5254 | esac |
a946372e | 5255 | |
f11781c5 AK |
5256 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
5257 | case $ac_cv_c_int64_t in #( | |
5258 | no|yes) ;; #( | |
5259 | *) | |
5260 | ||
5261 | cat >>confdefs.h <<_ACEOF | |
5262 | #define int64_t $ac_cv_c_int64_t | |
a946372e | 5263 | _ACEOF |
f11781c5 AK |
5264 | ;; |
5265 | esac | |
5266 | ||
5267 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | |
5268 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | |
a946372e AK |
5269 | |
5270 | else | |
a946372e | 5271 | |
f11781c5 AK |
5272 | cat >>confdefs.h <<_ACEOF |
5273 | #define ssize_t int | |
5274 | _ACEOF | |
a946372e | 5275 | |
f11781c5 | 5276 | fi |
a946372e | 5277 | |
f11781c5 AK |
5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
5279 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5280 | if test "${ac_cv_type_uid_t+set}" = set; then : | |
a946372e | 5281 | $as_echo_n "(cached) " >&6 |
a946372e | 5282 | else |
f11781c5 | 5283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5284 | /* end confdefs.h. */ |
f11781c5 AK |
5285 | #include <sys/types.h> |
5286 | ||
a946372e | 5287 | _ACEOF |
f11781c5 AK |
5288 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5289 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5290 | ac_cv_type_uid_t=yes | |
a946372e | 5291 | else |
f11781c5 AK |
5292 | ac_cv_type_uid_t=no |
5293 | fi | |
5294 | rm -f conftest* | |
a946372e | 5295 | |
a946372e | 5296 | fi |
f11781c5 AK |
5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
5298 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5299 | if test $ac_cv_type_uid_t = no; then | |
a946372e | 5300 | |
f11781c5 | 5301 | $as_echo "#define uid_t int" >>confdefs.h |
a946372e | 5302 | |
f11781c5 AK |
5303 | |
5304 | $as_echo "#define gid_t int" >>confdefs.h | |
5305 | ||
5306 | fi | |
5307 | ||
5308 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | |
5309 | case $ac_cv_c_uint8_t in #( | |
5310 | no|yes) ;; #( | |
5311 | *) | |
5312 | ||
5313 | $as_echo "#define _UINT8_T 1" >>confdefs.h | |
5314 | ||
5315 | ||
5316 | cat >>confdefs.h <<_ACEOF | |
5317 | #define uint8_t $ac_cv_c_uint8_t | |
a946372e | 5318 | _ACEOF |
f11781c5 AK |
5319 | ;; |
5320 | esac | |
5321 | ||
5322 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | |
5323 | case $ac_cv_c_uint16_t in #( | |
5324 | no|yes) ;; #( | |
5325 | *) | |
5326 | ||
5327 | ||
5328 | cat >>confdefs.h <<_ACEOF | |
5329 | #define uint16_t $ac_cv_c_uint16_t | |
a946372e | 5330 | _ACEOF |
f11781c5 AK |
5331 | ;; |
5332 | esac | |
a946372e | 5333 | |
f11781c5 AK |
5334 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
5335 | case $ac_cv_c_uint32_t in #( | |
5336 | no|yes) ;; #( | |
5337 | *) | |
a946372e | 5338 | |
f11781c5 | 5339 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
a946372e | 5340 | |
a946372e | 5341 | |
f11781c5 AK |
5342 | cat >>confdefs.h <<_ACEOF |
5343 | #define uint32_t $ac_cv_c_uint32_t | |
5344 | _ACEOF | |
5345 | ;; | |
5346 | esac | |
5347 | ||
5348 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | |
5349 | case $ac_cv_c_uint64_t in #( | |
5350 | no|yes) ;; #( | |
5351 | *) | |
5352 | ||
5353 | $as_echo "#define _UINT64_T 1" >>confdefs.h | |
5354 | ||
5355 | ||
5356 | cat >>confdefs.h <<_ACEOF | |
5357 | #define uint64_t $ac_cv_c_uint64_t | |
5358 | _ACEOF | |
5359 | ;; | |
5360 | esac | |
5361 | ||
5362 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5363 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5364 | ||
5365 | cat >>confdefs.h <<_ACEOF | |
5366 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5367 | _ACEOF | |
5368 | ||
5369 | ||
5370 | fi | |
5371 | ||
5372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
5373 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
5374 | if test "${ac_cv_struct_tm+set}" = set; then : | |
a946372e AK |
5375 | $as_echo_n "(cached) " >&6 |
5376 | else | |
f11781c5 AK |
5377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5378 | /* end confdefs.h. */ | |
5379 | #include <sys/types.h> | |
5380 | #include <time.h> | |
5381 | ||
5382 | int | |
5383 | main () | |
5384 | { | |
5385 | struct tm tm; | |
5386 | int *p = &tm.tm_sec; | |
5387 | return !p; | |
5388 | ; | |
5389 | return 0; | |
5390 | } | |
5391 | _ACEOF | |
5392 | if ac_fn_c_try_compile "$LINENO"; then : | |
5393 | ac_cv_struct_tm=time.h | |
5394 | else | |
5395 | ac_cv_struct_tm=sys/time.h | |
a946372e | 5396 | fi |
f11781c5 AK |
5397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5398 | fi | |
5399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5400 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5401 | if test $ac_cv_struct_tm = sys/time.h; then | |
5402 | ||
5403 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
a946372e AK |
5404 | |
5405 | fi | |
f11781c5 AK |
5406 | |
5407 | ||
5408 | ################################################################################ | |
5409 | for ac_func in ftruncate gethostname getpagesize \ | |
5410 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
5411 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
5412 | strstr strtol strtoul uname | |
5413 | do : | |
5414 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5415 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5416 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5417 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 5418 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a946372e AK |
5419 | _ACEOF |
5420 | ||
5421 | else | |
f11781c5 | 5422 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5423 | fi |
a946372e AK |
5424 | done |
5425 | ||
f11781c5 AK |
5426 | for ac_func in siginterrupt |
5427 | do : | |
5428 | ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt" | |
5429 | if test "x$ac_cv_func_siginterrupt" = x""yes; then : | |
5430 | cat >>confdefs.h <<_ACEOF | |
5431 | #define HAVE_SIGINTERRUPT 1 | |
5432 | _ACEOF | |
a946372e | 5433 | |
f11781c5 AK |
5434 | fi |
5435 | done | |
a946372e | 5436 | |
f11781c5 AK |
5437 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5438 | # for constant arguments. Useless! | |
5439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
5440 | $as_echo_n "checking for working alloca.h... " >&6; } | |
5441 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
5442 | $as_echo_n "(cached) " >&6 | |
a946372e | 5443 | else |
f11781c5 AK |
5444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5445 | /* end confdefs.h. */ | |
5446 | #include <alloca.h> | |
5447 | int | |
5448 | main () | |
5449 | { | |
5450 | char *p = (char *) alloca (2 * sizeof (int)); | |
5451 | if (p) return 0; | |
5452 | ; | |
5453 | return 0; | |
5454 | } | |
5455 | _ACEOF | |
5456 | if ac_fn_c_try_link "$LINENO"; then : | |
5457 | ac_cv_working_alloca_h=yes | |
a946372e | 5458 | else |
f11781c5 | 5459 | ac_cv_working_alloca_h=no |
a946372e | 5460 | fi |
f11781c5 AK |
5461 | rm -f core conftest.err conftest.$ac_objext \ |
5462 | conftest$ac_exeext conftest.$ac_ext | |
a946372e | 5463 | fi |
f11781c5 AK |
5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
5465 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
5466 | if test $ac_cv_working_alloca_h = yes; then | |
a946372e | 5467 | |
f11781c5 | 5468 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
a946372e | 5469 | |
a946372e | 5470 | fi |
a946372e | 5471 | |
f11781c5 AK |
5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
5473 | $as_echo_n "checking for alloca... " >&6; } | |
5474 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
a946372e | 5475 | $as_echo_n "(cached) " >&6 |
a946372e | 5476 | else |
f11781c5 | 5477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5478 | /* end confdefs.h. */ |
f11781c5 AK |
5479 | #ifdef __GNUC__ |
5480 | # define alloca __builtin_alloca | |
5481 | #else | |
5482 | # ifdef _MSC_VER | |
5483 | # include <malloc.h> | |
5484 | # define alloca _alloca | |
5485 | # else | |
5486 | # ifdef HAVE_ALLOCA_H | |
5487 | # include <alloca.h> | |
5488 | # else | |
5489 | # ifdef _AIX | |
5490 | #pragma alloca | |
5491 | # else | |
5492 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5493 | char *alloca (); | |
5494 | # endif | |
5495 | # endif | |
5496 | # endif | |
5497 | # endif | |
5498 | #endif | |
a946372e | 5499 | |
f11781c5 AK |
5500 | int |
5501 | main () | |
5502 | { | |
5503 | char *p = (char *) alloca (1); | |
5504 | if (p) return 0; | |
5505 | ; | |
5506 | return 0; | |
5507 | } | |
a946372e | 5508 | _ACEOF |
f11781c5 AK |
5509 | if ac_fn_c_try_link "$LINENO"; then : |
5510 | ac_cv_func_alloca_works=yes | |
a946372e | 5511 | else |
f11781c5 | 5512 | ac_cv_func_alloca_works=no |
a946372e | 5513 | fi |
f11781c5 AK |
5514 | rm -f core conftest.err conftest.$ac_objext \ |
5515 | conftest$ac_exeext conftest.$ac_ext | |
5516 | fi | |
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
5518 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
a946372e | 5519 | |
f11781c5 | 5520 | if test $ac_cv_func_alloca_works = yes; then |
a946372e | 5521 | |
f11781c5 | 5522 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
a946372e | 5523 | |
a946372e | 5524 | else |
f11781c5 AK |
5525 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5526 | # that cause trouble. Some versions do not even contain alloca or | |
5527 | # contain a buggy version. If you still want to use their alloca, | |
5528 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
a946372e | 5529 | |
f11781c5 | 5530 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
a946372e | 5531 | |
f11781c5 | 5532 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
a946372e | 5533 | |
a946372e | 5534 | |
f11781c5 AK |
5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
5536 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
5537 | if test "${ac_cv_os_cray+set}" = set; then : | |
a946372e | 5538 | $as_echo_n "(cached) " >&6 |
a946372e | 5539 | else |
f11781c5 | 5540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5541 | /* end confdefs.h. */ |
f11781c5 AK |
5542 | #if defined CRAY && ! defined CRAY2 |
5543 | webecray | |
5544 | #else | |
5545 | wenotbecray | |
5546 | #endif | |
5547 | ||
a946372e | 5548 | _ACEOF |
f11781c5 AK |
5549 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5550 | $EGREP "webecray" >/dev/null 2>&1; then : | |
5551 | ac_cv_os_cray=yes | |
a946372e | 5552 | else |
f11781c5 | 5553 | ac_cv_os_cray=no |
a946372e | 5554 | fi |
f11781c5 | 5555 | rm -f conftest* |
a946372e | 5556 | |
f11781c5 AK |
5557 | fi |
5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
5559 | $as_echo "$ac_cv_os_cray" >&6; } | |
5560 | if test $ac_cv_os_cray = yes; then | |
5561 | for ac_func in _getb67 GETB67 getb67; do | |
5562 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5563 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5564 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5565 | |
f11781c5 AK |
5566 | cat >>confdefs.h <<_ACEOF |
5567 | #define CRAY_STACKSEG_END $ac_func | |
a946372e | 5568 | _ACEOF |
a946372e | 5569 | |
f11781c5 | 5570 | break |
a946372e AK |
5571 | fi |
5572 | ||
f11781c5 AK |
5573 | done |
5574 | fi | |
a946372e | 5575 | |
f11781c5 AK |
5576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
5577 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
5578 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
a946372e AK |
5579 | $as_echo_n "(cached) " >&6 |
5580 | else | |
f11781c5 AK |
5581 | if test "$cross_compiling" = yes; then : |
5582 | ac_cv_c_stack_direction=0 | |
5583 | else | |
5584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5585 | /* end confdefs.h. */ | |
5586 | $ac_includes_default | |
5587 | int | |
5588 | find_stack_direction () | |
5589 | { | |
5590 | static char *addr = 0; | |
5591 | auto char dummy; | |
5592 | if (addr == 0) | |
5593 | { | |
5594 | addr = &dummy; | |
5595 | return find_stack_direction (); | |
5596 | } | |
5597 | else | |
5598 | return (&dummy > addr) ? 1 : -1; | |
5599 | } | |
5600 | ||
5601 | int | |
5602 | main () | |
5603 | { | |
5604 | return find_stack_direction () < 0; | |
5605 | } | |
5606 | _ACEOF | |
5607 | if ac_fn_c_try_run "$LINENO"; then : | |
5608 | ac_cv_c_stack_direction=1 | |
5609 | else | |
5610 | ac_cv_c_stack_direction=-1 | |
5611 | fi | |
5612 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5613 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5614 | fi |
a946372e AK |
5615 | |
5616 | fi | |
f11781c5 AK |
5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
5618 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
5619 | cat >>confdefs.h <<_ACEOF | |
5620 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
a946372e AK |
5621 | _ACEOF |
5622 | ||
f11781c5 | 5623 | |
a946372e AK |
5624 | fi |
5625 | ||
f11781c5 AK |
5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
5627 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
5628 | if test "${ac_cv_func_closedir_void+set}" = set; then : | |
5629 | $as_echo_n "(cached) " >&6 | |
5630 | else | |
5631 | if test "$cross_compiling" = yes; then : | |
5632 | ac_cv_func_closedir_void=yes | |
5633 | else | |
5634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5635 | /* end confdefs.h. */ | |
5636 | $ac_includes_default | |
5637 | #include <$ac_header_dirent> | |
5638 | #ifndef __cplusplus | |
5639 | int closedir (); | |
5640 | #endif | |
a946372e | 5641 | |
f11781c5 AK |
5642 | int |
5643 | main () | |
5644 | { | |
5645 | return closedir (opendir (".")) != 0; | |
5646 | ; | |
5647 | return 0; | |
5648 | } | |
5649 | _ACEOF | |
5650 | if ac_fn_c_try_run "$LINENO"; then : | |
5651 | ac_cv_func_closedir_void=no | |
a946372e | 5652 | else |
f11781c5 | 5653 | ac_cv_func_closedir_void=yes |
a946372e | 5654 | fi |
f11781c5 AK |
5655 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5656 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5657 | fi |
5658 | ||
f11781c5 AK |
5659 | fi |
5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 | |
5661 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
5662 | if test $ac_cv_func_closedir_void = yes; then | |
a946372e | 5663 | |
f11781c5 | 5664 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
a946372e | 5665 | |
a946372e AK |
5666 | fi |
5667 | ||
f11781c5 AK |
5668 | for ac_header in unistd.h |
5669 | do : | |
5670 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
5671 | if test "x$ac_cv_header_unistd_h" = x""yes; then : | |
5672 | cat >>confdefs.h <<_ACEOF | |
5673 | #define HAVE_UNISTD_H 1 | |
5674 | _ACEOF | |
a946372e | 5675 | |
f11781c5 | 5676 | fi |
a946372e | 5677 | |
f11781c5 | 5678 | done |
a946372e | 5679 | |
f11781c5 AK |
5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 |
5681 | $as_echo_n "checking for working chown... " >&6; } | |
5682 | if test "${ac_cv_func_chown_works+set}" = set; then : | |
5683 | $as_echo_n "(cached) " >&6 | |
a946372e | 5684 | else |
f11781c5 AK |
5685 | if test "$cross_compiling" = yes; then : |
5686 | ac_cv_func_chown_works=no | |
a946372e | 5687 | else |
f11781c5 AK |
5688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5689 | /* end confdefs.h. */ | |
5690 | $ac_includes_default | |
5691 | #include <fcntl.h> | |
a946372e | 5692 | |
f11781c5 AK |
5693 | int |
5694 | main () | |
5695 | { | |
5696 | char *f = "conftest.chown"; | |
5697 | struct stat before, after; | |
a946372e | 5698 | |
f11781c5 AK |
5699 | if (creat (f, 0600) < 0) |
5700 | return 1; | |
5701 | if (stat (f, &before) < 0) | |
5702 | return 1; | |
5703 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
5704 | return 1; | |
5705 | if (stat (f, &after) < 0) | |
5706 | return 1; | |
5707 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
a946372e | 5708 | |
f11781c5 AK |
5709 | ; |
5710 | return 0; | |
5711 | } | |
5712 | _ACEOF | |
5713 | if ac_fn_c_try_run "$LINENO"; then : | |
5714 | ac_cv_func_chown_works=yes | |
a946372e | 5715 | else |
f11781c5 | 5716 | ac_cv_func_chown_works=no |
a946372e | 5717 | fi |
f11781c5 AK |
5718 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5719 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5720 | fi |
5721 | ||
f11781c5 | 5722 | rm -f conftest.chown |
a946372e | 5723 | |
f11781c5 AK |
5724 | fi |
5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 | |
5726 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
5727 | if test $ac_cv_func_chown_works = yes; then | |
a946372e | 5728 | |
f11781c5 | 5729 | $as_echo "#define HAVE_CHOWN 1" >>confdefs.h |
a946372e | 5730 | |
a946372e | 5731 | fi |
a946372e | 5732 | |
f11781c5 AK |
5733 | for ac_header in vfork.h |
5734 | do : | |
5735 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
5736 | if test "x$ac_cv_header_vfork_h" = x""yes; then : | |
5737 | cat >>confdefs.h <<_ACEOF | |
5738 | #define HAVE_VFORK_H 1 | |
5739 | _ACEOF | |
a946372e | 5740 | |
f11781c5 | 5741 | fi |
a946372e | 5742 | |
f11781c5 | 5743 | done |
a946372e | 5744 | |
f11781c5 AK |
5745 | for ac_func in fork vfork |
5746 | do : | |
5747 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5748 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5749 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5750 | cat >>confdefs.h <<_ACEOF | |
5751 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5752 | _ACEOF | |
a946372e | 5753 | |
f11781c5 AK |
5754 | fi |
5755 | done | |
a946372e | 5756 | |
f11781c5 AK |
5757 | if test "x$ac_cv_func_fork" = xyes; then |
5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
5759 | $as_echo_n "checking for working fork... " >&6; } | |
5760 | if test "${ac_cv_func_fork_works+set}" = set; then : | |
5761 | $as_echo_n "(cached) " >&6 | |
5762 | else | |
5763 | if test "$cross_compiling" = yes; then : | |
5764 | ac_cv_func_fork_works=cross | |
5765 | else | |
5766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5767 | /* end confdefs.h. */ | |
5768 | $ac_includes_default | |
5769 | int | |
5770 | main () | |
5771 | { | |
a946372e | 5772 | |
f11781c5 AK |
5773 | /* By Ruediger Kuhlmann. */ |
5774 | return fork () < 0; | |
a946372e | 5775 | |
f11781c5 AK |
5776 | ; |
5777 | return 0; | |
5778 | } | |
5779 | _ACEOF | |
5780 | if ac_fn_c_try_run "$LINENO"; then : | |
5781 | ac_cv_func_fork_works=yes | |
a946372e | 5782 | else |
f11781c5 AK |
5783 | ac_cv_func_fork_works=no |
5784 | fi | |
5785 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5786 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5787 | fi |
a946372e | 5788 | |
f11781c5 AK |
5789 | fi |
5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
5791 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
5792 | ||
a946372e | 5793 | else |
f11781c5 | 5794 | ac_cv_func_fork_works=$ac_cv_func_fork |
a946372e | 5795 | fi |
f11781c5 AK |
5796 | if test "x$ac_cv_func_fork_works" = xcross; then |
5797 | case $host in | |
5798 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5799 | # Override, as these systems have only a dummy fork() stub | |
5800 | ac_cv_func_fork_works=no | |
5801 | ;; | |
5802 | *) | |
5803 | ac_cv_func_fork_works=yes | |
5804 | ;; | |
5805 | esac | |
5806 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5807 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
a946372e | 5808 | fi |
f11781c5 AK |
5809 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
5810 | if test "x$ac_cv_func_vfork" = xyes; then | |
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
5812 | $as_echo_n "checking for working vfork... " >&6; } | |
5813 | if test "${ac_cv_func_vfork_works+set}" = set; then : | |
5814 | $as_echo_n "(cached) " >&6 | |
5815 | else | |
5816 | if test "$cross_compiling" = yes; then : | |
5817 | ac_cv_func_vfork_works=cross | |
5818 | else | |
5819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5820 | /* end confdefs.h. */ | |
5821 | /* Thanks to Paul Eggert for this test. */ | |
5822 | $ac_includes_default | |
5823 | #include <sys/wait.h> | |
5824 | #ifdef HAVE_VFORK_H | |
5825 | # include <vfork.h> | |
5826 | #endif | |
5827 | /* On some sparc systems, changes by the child to local and incoming | |
5828 | argument registers are propagated back to the parent. The compiler | |
5829 | is told about this with #include <vfork.h>, but some compilers | |
5830 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5831 | static variable whose address is put into a register that is | |
5832 | clobbered by the vfork. */ | |
5833 | static void | |
5834 | #ifdef __cplusplus | |
5835 | sparc_address_test (int arg) | |
5836 | # else | |
5837 | sparc_address_test (arg) int arg; | |
5838 | #endif | |
5839 | { | |
5840 | static pid_t child; | |
5841 | if (!child) { | |
5842 | child = vfork (); | |
5843 | if (child < 0) { | |
5844 | perror ("vfork"); | |
5845 | _exit(2); | |
5846 | } | |
5847 | if (!child) { | |
5848 | arg = getpid(); | |
5849 | write(-1, "", 0); | |
5850 | _exit (arg); | |
5851 | } | |
5852 | } | |
5853 | } | |
a946372e | 5854 | |
f11781c5 AK |
5855 | int |
5856 | main () | |
5857 | { | |
5858 | pid_t parent = getpid (); | |
5859 | pid_t child; | |
a946372e | 5860 | |
f11781c5 | 5861 | sparc_address_test (0); |
a946372e | 5862 | |
f11781c5 | 5863 | child = vfork (); |
a946372e | 5864 | |
f11781c5 AK |
5865 | if (child == 0) { |
5866 | /* Here is another test for sparc vfork register problems. This | |
5867 | test uses lots of local variables, at least as many local | |
5868 | variables as main has allocated so far including compiler | |
5869 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5870 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5871 | reuse the register of parent for one of the local variables, | |
5872 | since it will think that parent can't possibly be used any more | |
5873 | in this routine. Assigning to the local variable will thus | |
5874 | munge parent in the parent process. */ | |
5875 | pid_t | |
5876 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5877 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5878 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5879 | use the same hardware register for all 8 local variables. */ | |
5880 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5881 | || p != p5 || p != p6 || p != p7) | |
5882 | _exit(1); | |
a946372e | 5883 | |
f11781c5 AK |
5884 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
5885 | from child file descriptors. If the child closes a descriptor | |
5886 | before it execs or exits, this munges the parent's descriptor | |
5887 | as well. Test for this by closing stdout in the child. */ | |
5888 | _exit(close(fileno(stdout)) != 0); | |
5889 | } else { | |
5890 | int status; | |
5891 | struct stat st; | |
5892 | ||
5893 | while (wait(&status) != child) | |
5894 | ; | |
5895 | return ( | |
5896 | /* Was there some problem with vforking? */ | |
5897 | child < 0 | |
5898 | ||
5899 | /* Did the child fail? (This shouldn't happen.) */ | |
5900 | || status | |
5901 | ||
5902 | /* Did the vfork/compiler bug occur? */ | |
5903 | || parent != getpid() | |
5904 | ||
5905 | /* Did the file descriptor bug occur? */ | |
5906 | || fstat(fileno(stdout), &st) != 0 | |
5907 | ); | |
5908 | } | |
5909 | } | |
5910 | _ACEOF | |
5911 | if ac_fn_c_try_run "$LINENO"; then : | |
5912 | ac_cv_func_vfork_works=yes | |
a946372e | 5913 | else |
f11781c5 | 5914 | ac_cv_func_vfork_works=no |
a946372e | 5915 | fi |
f11781c5 AK |
5916 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5917 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5918 | fi |
f11781c5 | 5919 | |
a946372e | 5920 | fi |
f11781c5 AK |
5921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
5922 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
a946372e | 5923 | |
f11781c5 AK |
5924 | fi; |
5925 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5926 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
5928 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5929 | fi | |
a946372e | 5930 | |
f11781c5 | 5931 | if test "x$ac_cv_func_vfork_works" = xyes; then |
a946372e | 5932 | |
f11781c5 | 5933 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
a946372e | 5934 | |
a946372e | 5935 | else |
a946372e | 5936 | |
f11781c5 AK |
5937 | $as_echo "#define vfork fork" >>confdefs.h |
5938 | ||
a946372e | 5939 | fi |
f11781c5 | 5940 | if test "x$ac_cv_func_fork_works" = xyes; then |
a946372e | 5941 | |
f11781c5 | 5942 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
a946372e | 5943 | |
a946372e | 5944 | fi |
f11781c5 AK |
5945 | |
5946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 | |
5947 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } | |
5948 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : | |
5949 | $as_echo_n "(cached) " >&6 | |
a946372e | 5950 | else |
f11781c5 AK |
5951 | rm -f conftest.sym conftest.file |
5952 | echo >conftest.file | |
5953 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5954 | if test "$cross_compiling" = yes; then : | |
5955 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 5956 | else |
f11781c5 | 5957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5958 | /* end confdefs.h. */ |
f11781c5 AK |
5959 | $ac_includes_default |
5960 | int | |
5961 | main () | |
5962 | { | |
5963 | struct stat sbuf; | |
5964 | /* Linux will dereference the symlink and fail, as required by POSIX. | |
5965 | That is better in the sense that it means we will not | |
5966 | have to compile and use the lstat wrapper. */ | |
5967 | return lstat ("conftest.sym/", &sbuf) == 0; | |
5968 | ; | |
5969 | return 0; | |
5970 | } | |
a946372e | 5971 | _ACEOF |
f11781c5 AK |
5972 | if ac_fn_c_try_run "$LINENO"; then : |
5973 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
a946372e | 5974 | else |
f11781c5 | 5975 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
a946372e | 5976 | fi |
f11781c5 AK |
5977 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5978 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5979 | fi |
a946372e | 5980 | |
a946372e | 5981 | else |
f11781c5 AK |
5982 | # If the `ln -s' command failed, then we probably don't even |
5983 | # have an lstat function. | |
5984 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 5985 | fi |
f11781c5 | 5986 | rm -f conftest.sym conftest.file |
a946372e | 5987 | |
f11781c5 AK |
5988 | fi |
5989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
5990 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
a946372e | 5991 | |
f11781c5 | 5992 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
a946372e | 5993 | |
f11781c5 AK |
5994 | cat >>confdefs.h <<_ACEOF |
5995 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
5996 | _ACEOF | |
a946372e | 5997 | |
a946372e | 5998 | |
f11781c5 AK |
5999 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
6000 | case " $LIBOBJS " in | |
6001 | *" lstat.$ac_objext "* ) ;; | |
6002 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6003 | ;; | |
6004 | esac | |
a946372e | 6005 | |
f11781c5 | 6006 | fi |
a946372e | 6007 | |
f11781c5 AK |
6008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 |
6009 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
6010 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then : | |
6011 | $as_echo_n "(cached) " >&6 | |
a946372e | 6012 | else |
f11781c5 AK |
6013 | if test "$cross_compiling" = yes; then : |
6014 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6015 | else |
f11781c5 AK |
6016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6017 | /* end confdefs.h. */ | |
6018 | $ac_includes_default | |
6019 | int | |
6020 | main () | |
6021 | { | |
6022 | struct stat sbuf; | |
6023 | return lstat ("", &sbuf) == 0; | |
6024 | ; | |
6025 | return 0; | |
6026 | } | |
6027 | _ACEOF | |
6028 | if ac_fn_c_try_run "$LINENO"; then : | |
6029 | ac_cv_func_lstat_empty_string_bug=no | |
6030 | else | |
6031 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6032 | fi |
f11781c5 AK |
6033 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6034 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6035 | fi |
6036 | ||
f11781c5 AK |
6037 | fi |
6038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6039 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
6040 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
6041 | case " $LIBOBJS " in | |
6042 | *" lstat.$ac_objext "* ) ;; | |
6043 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6044 | ;; | |
6045 | esac | |
a946372e AK |
6046 | |
6047 | ||
f11781c5 AK |
6048 | cat >>confdefs.h <<_ACEOF |
6049 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6050 | _ACEOF | |
a946372e | 6051 | |
a946372e | 6052 | fi |
a946372e | 6053 | |
f11781c5 AK |
6054 | for ac_header in stdlib.h |
6055 | do : | |
6056 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6057 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6058 | cat >>confdefs.h <<_ACEOF | |
6059 | #define HAVE_STDLIB_H 1 | |
6060 | _ACEOF | |
6061 | ||
a946372e AK |
6062 | fi |
6063 | ||
f11781c5 | 6064 | done |
a946372e | 6065 | |
f11781c5 AK |
6066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
6067 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
6068 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : | |
6069 | $as_echo_n "(cached) " >&6 | |
6070 | else | |
6071 | if test "$cross_compiling" = yes; then : | |
6072 | ac_cv_func_malloc_0_nonnull=no | |
6073 | else | |
6074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6075 | /* end confdefs.h. */ | |
6076 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
6077 | # include <stdlib.h> | |
6078 | #else | |
6079 | char *malloc (); | |
6080 | #endif | |
a946372e | 6081 | |
f11781c5 AK |
6082 | int |
6083 | main () | |
6084 | { | |
6085 | return ! malloc (0); | |
6086 | ; | |
6087 | return 0; | |
6088 | } | |
6089 | _ACEOF | |
6090 | if ac_fn_c_try_run "$LINENO"; then : | |
6091 | ac_cv_func_malloc_0_nonnull=yes | |
a946372e | 6092 | else |
f11781c5 | 6093 | ac_cv_func_malloc_0_nonnull=no |
a946372e | 6094 | fi |
f11781c5 AK |
6095 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6096 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6097 | fi |
f11781c5 | 6098 | |
a946372e | 6099 | fi |
f11781c5 AK |
6100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
6101 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
6102 | if test $ac_cv_func_malloc_0_nonnull = yes; then : | |
a946372e | 6103 | |
f11781c5 | 6104 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h |
a946372e | 6105 | |
f11781c5 AK |
6106 | else |
6107 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h | |
a946372e | 6108 | |
f11781c5 AK |
6109 | case " $LIBOBJS " in |
6110 | *" malloc.$ac_objext "* ) ;; | |
6111 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | |
6112 | ;; | |
6113 | esac | |
6114 | ||
6115 | ||
6116 | $as_echo "#define malloc rpl_malloc" >>confdefs.h | |
a946372e | 6117 | |
a946372e | 6118 | fi |
a946372e | 6119 | |
a946372e | 6120 | |
f11781c5 AK |
6121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
6122 | $as_echo_n "checking for working memcmp... " >&6; } | |
6123 | if test "${ac_cv_func_memcmp_working+set}" = set; then : | |
a946372e | 6124 | $as_echo_n "(cached) " >&6 |
a946372e | 6125 | else |
f11781c5 AK |
6126 | if test "$cross_compiling" = yes; then : |
6127 | ac_cv_func_memcmp_working=no | |
6128 | else | |
6129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6130 | /* end confdefs.h. */ |
6131 | $ac_includes_default | |
f11781c5 AK |
6132 | int |
6133 | main () | |
6134 | { | |
a946372e | 6135 | |
f11781c5 AK |
6136 | /* Some versions of memcmp are not 8-bit clean. */ |
6137 | char c0 = '\100', c1 = '\200', c2 = '\201'; | |
6138 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6139 | return 1; | |
a946372e | 6140 | |
f11781c5 AK |
6141 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
6142 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6143 | William Lewis provided this test program. */ | |
6144 | { | |
6145 | char foo[21]; | |
6146 | char bar[21]; | |
6147 | int i; | |
6148 | for (i = 0; i < 4; i++) | |
6149 | { | |
6150 | char *a = foo + i; | |
6151 | char *b = bar + i; | |
6152 | strcpy (a, "--------01111111"); | |
6153 | strcpy (b, "--------10000000"); | |
6154 | if (memcmp (a, b, 16) >= 0) | |
6155 | return 1; | |
6156 | } | |
6157 | return 0; | |
6158 | } | |
a946372e | 6159 | |
f11781c5 AK |
6160 | ; |
6161 | return 0; | |
6162 | } | |
a946372e | 6163 | _ACEOF |
f11781c5 AK |
6164 | if ac_fn_c_try_run "$LINENO"; then : |
6165 | ac_cv_func_memcmp_working=yes | |
a946372e | 6166 | else |
f11781c5 AK |
6167 | ac_cv_func_memcmp_working=no |
6168 | fi | |
6169 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6170 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6171 | fi | |
a946372e | 6172 | |
a946372e | 6173 | fi |
f11781c5 AK |
6174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
6175 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
6176 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
6177 | *" memcmp.$ac_objext "* ) ;; | |
6178 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
6179 | ;; | |
6180 | esac | |
a946372e | 6181 | |
a946372e | 6182 | |
a946372e | 6183 | |
a946372e | 6184 | |
f11781c5 AK |
6185 | |
6186 | for ac_header in $ac_header_list | |
6187 | do : | |
6188 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6189 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6190 | " | |
6191 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
6192 | cat >>confdefs.h <<_ACEOF |
6193 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6194 | _ACEOF | |
6195 | ||
a946372e AK |
6196 | fi |
6197 | ||
6198 | done | |
6199 | ||
a946372e | 6200 | |
f11781c5 AK |
6201 | |
6202 | ||
6203 | ||
6204 | ||
6205 | ||
6206 | ||
6207 | for ac_func in getpagesize | |
6208 | do : | |
6209 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
6210 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | |
6211 | cat >>confdefs.h <<_ACEOF | |
6212 | #define HAVE_GETPAGESIZE 1 | |
6213 | _ACEOF | |
6214 | ||
a946372e | 6215 | fi |
f11781c5 AK |
6216 | done |
6217 | ||
6218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
6219 | $as_echo_n "checking for working mmap... " >&6; } | |
6220 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
6221 | $as_echo_n "(cached) " >&6 | |
a946372e | 6222 | else |
f11781c5 AK |
6223 | if test "$cross_compiling" = yes; then : |
6224 | ac_cv_func_mmap_fixed_mapped=no | |
6225 | else | |
6226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6227 | /* end confdefs.h. */ |
6228 | $ac_includes_default | |
f11781c5 AK |
6229 | /* malloc might have been renamed as rpl_malloc. */ |
6230 | #undef malloc | |
6231 | ||
6232 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6233 | Here is a matrix of mmap possibilities: | |
6234 | mmap private not fixed | |
6235 | mmap private fixed at somewhere currently unmapped | |
6236 | mmap private fixed at somewhere already mapped | |
6237 | mmap shared not fixed | |
6238 | mmap shared fixed at somewhere currently unmapped | |
6239 | mmap shared fixed at somewhere already mapped | |
6240 | For private mappings, we should verify that changes cannot be read() | |
6241 | back from the file, nor mmap's back from the file at a different | |
6242 | address. (There have been systems where private was not correctly | |
6243 | implemented like the infamous i386 svr4.0, and systems where the | |
6244 | VM page cache was not coherent with the file system buffer cache | |
6245 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6246 | For shared mappings, we should conversely verify that changes get | |
6247 | propagated back to all the places they're supposed to be. | |
6248 | ||
6249 | Grep wants private fixed already mapped. | |
6250 | The main things grep needs to know about mmap are: | |
6251 | * does it exist and is it safe to write into the mmap'd area | |
6252 | * how to use it (BSD variants) */ | |
6253 | ||
6254 | #include <fcntl.h> | |
6255 | #include <sys/mman.h> | |
6256 | ||
6257 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
6258 | char *malloc (); | |
6259 | #endif | |
6260 | ||
6261 | /* This mess was copied from the GNU getpagesize.h. */ | |
6262 | #ifndef HAVE_GETPAGESIZE | |
6263 | # ifdef _SC_PAGESIZE | |
6264 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6265 | # else /* no _SC_PAGESIZE */ | |
6266 | # ifdef HAVE_SYS_PARAM_H | |
6267 | # include <sys/param.h> | |
6268 | # ifdef EXEC_PAGESIZE | |
6269 | # define getpagesize() EXEC_PAGESIZE | |
6270 | # else /* no EXEC_PAGESIZE */ | |
6271 | # ifdef NBPG | |
6272 | # define getpagesize() NBPG * CLSIZE | |
6273 | # ifndef CLSIZE | |
6274 | # define CLSIZE 1 | |
6275 | # endif /* no CLSIZE */ | |
6276 | # else /* no NBPG */ | |
6277 | # ifdef NBPC | |
6278 | # define getpagesize() NBPC | |
6279 | # else /* no NBPC */ | |
6280 | # ifdef PAGESIZE | |
6281 | # define getpagesize() PAGESIZE | |
6282 | # endif /* PAGESIZE */ | |
6283 | # endif /* no NBPC */ | |
6284 | # endif /* no NBPG */ | |
6285 | # endif /* no EXEC_PAGESIZE */ | |
6286 | # else /* no HAVE_SYS_PARAM_H */ | |
6287 | # define getpagesize() 8192 /* punt totally */ | |
6288 | # endif /* no HAVE_SYS_PARAM_H */ | |
6289 | # endif /* no _SC_PAGESIZE */ | |
6290 | ||
6291 | #endif /* no HAVE_GETPAGESIZE */ | |
6292 | ||
6293 | int | |
6294 | main () | |
6295 | { | |
6296 | char *data, *data2, *data3; | |
6297 | const char *cdata2; | |
6298 | int i, pagesize; | |
6299 | int fd, fd2; | |
6300 | ||
6301 | pagesize = getpagesize (); | |
6302 | ||
6303 | /* First, make a file with some known garbage in it. */ | |
6304 | data = (char *) malloc (pagesize); | |
6305 | if (!data) | |
6306 | return 1; | |
6307 | for (i = 0; i < pagesize; ++i) | |
6308 | *(data + i) = rand (); | |
6309 | umask (0); | |
6310 | fd = creat ("conftest.mmap", 0600); | |
6311 | if (fd < 0) | |
6312 | return 2; | |
6313 | if (write (fd, data, pagesize) != pagesize) | |
6314 | return 3; | |
6315 | close (fd); | |
6316 | ||
6317 | /* Next, check that the tail of a page is zero-filled. File must have | |
6318 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
6319 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
6320 | if (fd2 < 0) | |
6321 | return 4; | |
6322 | cdata2 = ""; | |
6323 | if (write (fd2, cdata2, 1) != 1) | |
6324 | return 5; | |
6325 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
6326 | if (data2 == MAP_FAILED) | |
6327 | return 6; | |
6328 | for (i = 0; i < pagesize; ++i) | |
6329 | if (*(data2 + i)) | |
6330 | return 7; | |
6331 | close (fd2); | |
6332 | if (munmap (data2, pagesize)) | |
6333 | return 8; | |
6334 | ||
6335 | /* Next, try to mmap the file at a fixed address which already has | |
6336 | something else allocated at it. If we can, also make sure that | |
6337 | we see the same garbage. */ | |
6338 | fd = open ("conftest.mmap", O_RDWR); | |
6339 | if (fd < 0) | |
6340 | return 9; | |
6341 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6342 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6343 | return 10; | |
6344 | for (i = 0; i < pagesize; ++i) | |
6345 | if (*(data + i) != *(data2 + i)) | |
6346 | return 11; | |
6347 | ||
6348 | /* Finally, make sure that changes to the mapped area do not | |
6349 | percolate back to the file as seen by read(). (This is a bug on | |
6350 | some variants of i386 svr4.0.) */ | |
6351 | for (i = 0; i < pagesize; ++i) | |
6352 | *(data2 + i) = *(data2 + i) + 1; | |
6353 | data3 = (char *) malloc (pagesize); | |
6354 | if (!data3) | |
6355 | return 12; | |
6356 | if (read (fd, data3, pagesize) != pagesize) | |
6357 | return 13; | |
6358 | for (i = 0; i < pagesize; ++i) | |
6359 | if (*(data + i) != *(data3 + i)) | |
6360 | return 14; | |
6361 | close (fd); | |
6362 | return 0; | |
6363 | } | |
a946372e | 6364 | _ACEOF |
f11781c5 AK |
6365 | if ac_fn_c_try_run "$LINENO"; then : |
6366 | ac_cv_func_mmap_fixed_mapped=yes | |
a946372e | 6367 | else |
f11781c5 AK |
6368 | ac_cv_func_mmap_fixed_mapped=no |
6369 | fi | |
6370 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6371 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6372 | fi | |
a946372e | 6373 | |
a946372e | 6374 | fi |
f11781c5 AK |
6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6376 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
6377 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
a946372e | 6378 | |
f11781c5 | 6379 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
a946372e | 6380 | |
f11781c5 AK |
6381 | fi |
6382 | rm -f conftest.mmap conftest.txt | |
6383 | ||
6384 | for ac_header in stdlib.h | |
6385 | do : | |
6386 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6387 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6388 | cat >>confdefs.h <<_ACEOF | |
6389 | #define HAVE_STDLIB_H 1 | |
a946372e | 6390 | _ACEOF |
f11781c5 AK |
6391 | |
6392 | fi | |
6393 | ||
6394 | done | |
6395 | ||
6396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 | |
6397 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
6398 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : | |
6399 | $as_echo_n "(cached) " >&6 | |
6400 | else | |
6401 | if test "$cross_compiling" = yes; then : | |
6402 | ac_cv_func_realloc_0_nonnull=no | |
6403 | else | |
6404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e | 6405 | /* end confdefs.h. */ |
f11781c5 AK |
6406 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
6407 | # include <stdlib.h> | |
6408 | #else | |
6409 | char *realloc (); | |
6410 | #endif | |
6411 | ||
6412 | int | |
6413 | main () | |
6414 | { | |
6415 | return ! realloc (0, 0); | |
6416 | ; | |
6417 | return 0; | |
6418 | } | |
a946372e | 6419 | _ACEOF |
f11781c5 AK |
6420 | if ac_fn_c_try_run "$LINENO"; then : |
6421 | ac_cv_func_realloc_0_nonnull=yes | |
a946372e | 6422 | else |
f11781c5 AK |
6423 | ac_cv_func_realloc_0_nonnull=no |
6424 | fi | |
6425 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6426 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6427 | fi |
6428 | ||
f11781c5 AK |
6429 | fi |
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 | |
6431 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
6432 | if test $ac_cv_func_realloc_0_nonnull = yes; then : | |
a946372e | 6433 | |
f11781c5 | 6434 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h |
a946372e | 6435 | |
a946372e | 6436 | else |
f11781c5 AK |
6437 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h |
6438 | ||
6439 | case " $LIBOBJS " in | |
6440 | *" realloc.$ac_objext "* ) ;; | |
6441 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
6442 | ;; | |
6443 | esac | |
a946372e | 6444 | |
a946372e | 6445 | |
f11781c5 AK |
6446 | $as_echo "#define realloc rpl_realloc" >>confdefs.h |
6447 | ||
a946372e AK |
6448 | fi |
6449 | ||
a946372e | 6450 | |
f11781c5 AK |
6451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
6452 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
6453 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then : | |
6454 | $as_echo_n "(cached) " >&6 | |
a946372e | 6455 | else |
f11781c5 AK |
6456 | if test "$cross_compiling" = yes; then : |
6457 | ac_cv_func_stat_empty_string_bug=yes | |
6458 | else | |
6459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6460 | /* end confdefs.h. */ | |
6461 | $ac_includes_default | |
6462 | int | |
6463 | main () | |
6464 | { | |
6465 | struct stat sbuf; | |
6466 | return stat ("", &sbuf) == 0; | |
6467 | ; | |
6468 | return 0; | |
6469 | } | |
6470 | _ACEOF | |
6471 | if ac_fn_c_try_run "$LINENO"; then : | |
6472 | ac_cv_func_stat_empty_string_bug=no | |
6473 | else | |
6474 | ac_cv_func_stat_empty_string_bug=yes | |
a946372e | 6475 | fi |
f11781c5 AK |
6476 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6477 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6478 | fi |
6479 | ||
8c4e8a18 | 6480 | fi |
f11781c5 AK |
6481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
6482 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
6483 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
6484 | case " $LIBOBJS " in | |
6485 | *" stat.$ac_objext "* ) ;; | |
6486 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" | |
6487 | ;; | |
6488 | esac | |
8c4e8a18 FDN |
6489 | |
6490 | ||
6491 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 6492 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
8c4e8a18 FDN |
6493 | _ACEOF |
6494 | ||
6495 | fi | |
6496 | ||
f11781c5 AK |
6497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
6498 | $as_echo_n "checking for working strtod... " >&6; } | |
6499 | if test "${ac_cv_func_strtod+set}" = set; then : | |
6500 | $as_echo_n "(cached) " >&6 | |
66fd4529 | 6501 | else |
f11781c5 AK |
6502 | if test "$cross_compiling" = yes; then : |
6503 | ac_cv_func_strtod=no | |
6504 | else | |
6505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6506 | /* end confdefs.h. */ | |
66fd4529 | 6507 | |
f11781c5 AK |
6508 | $ac_includes_default |
6509 | #ifndef strtod | |
6510 | double strtod (); | |
6511 | #endif | |
6512 | int | |
6513 | main() | |
6514 | { | |
6515 | { | |
6516 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6517 | char *string = " +69"; | |
6518 | char *term; | |
6519 | double value; | |
6520 | value = strtod (string, &term); | |
6521 | if (value != 69 || term != (string + 4)) | |
6522 | return 1; | |
6523 | } | |
66fd4529 | 6524 | |
f11781c5 AK |
6525 | { |
6526 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6527 | terminating character under some conditions. */ | |
6528 | char *string = "NaN"; | |
6529 | char *term; | |
6530 | strtod (string, &term); | |
6531 | if (term != string && *(term - 1) == 0) | |
6532 | return 1; | |
6533 | } | |
6534 | return 0; | |
6535 | } | |
66fd4529 | 6536 | |
f11781c5 AK |
6537 | _ACEOF |
6538 | if ac_fn_c_try_run "$LINENO"; then : | |
6539 | ac_cv_func_strtod=yes | |
66fd4529 | 6540 | else |
f11781c5 AK |
6541 | ac_cv_func_strtod=no |
6542 | fi | |
6543 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6544 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6545 | fi |
6546 | ||
f11781c5 AK |
6547 | fi |
6548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | |
6549 | $as_echo "$ac_cv_func_strtod" >&6; } | |
6550 | if test $ac_cv_func_strtod = no; then | |
6551 | case " $LIBOBJS " in | |
6552 | *" strtod.$ac_objext "* ) ;; | |
6553 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
6554 | ;; | |
6555 | esac | |
71082be4 | 6556 | |
f11781c5 AK |
6557 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
6558 | if test "x$ac_cv_func_pow" = x""yes; then : | |
71082be4 | 6559 | |
66fd4529 | 6560 | fi |
a946372e | 6561 | |
f11781c5 AK |
6562 | if test $ac_cv_func_pow = no; then |
6563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
6564 | $as_echo_n "checking for pow in -lm... " >&6; } | |
6565 | if test "${ac_cv_lib_m_pow+set}" = set; then : | |
6566 | $as_echo_n "(cached) " >&6 | |
6567 | else | |
6568 | ac_check_lib_save_LIBS=$LIBS | |
6569 | LIBS="-lm $LIBS" | |
6570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6571 | /* end confdefs.h. */ | |
90c80887 | 6572 | |
f11781c5 AK |
6573 | /* Override any GCC internal prototype to avoid an error. |
6574 | Use char because int might match the return type of a GCC | |
6575 | builtin and then its argument prototype would still apply. */ | |
6576 | #ifdef __cplusplus | |
6577 | extern "C" | |
6578 | #endif | |
6579 | char pow (); | |
6580 | int | |
6581 | main () | |
6582 | { | |
6583 | return pow (); | |
6584 | ; | |
6585 | return 0; | |
6586 | } | |
6587 | _ACEOF | |
6588 | if ac_fn_c_try_link "$LINENO"; then : | |
6589 | ac_cv_lib_m_pow=yes | |
90c80887 | 6590 | else |
f11781c5 | 6591 | ac_cv_lib_m_pow=no |
90c80887 | 6592 | fi |
f11781c5 AK |
6593 | rm -f core conftest.err conftest.$ac_objext \ |
6594 | conftest$ac_exeext conftest.$ac_ext | |
6595 | LIBS=$ac_check_lib_save_LIBS | |
90c80887 | 6596 | fi |
f11781c5 AK |
6597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
6598 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
6599 | if test "x$ac_cv_lib_m_pow" = x""yes; then : | |
6600 | POW_LIB=-lm | |
90c80887 | 6601 | else |
f11781c5 AK |
6602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
6603 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
90c80887 | 6604 | fi |
f11781c5 | 6605 | |
90c80887 AK |
6606 | fi |
6607 | ||
f11781c5 AK |
6608 | fi |
6609 | ||
6610 | for ac_func in vprintf | |
6611 | do : | |
6612 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
6613 | if test "x$ac_cv_func_vprintf" = x""yes; then : | |
6614 | cat >>confdefs.h <<_ACEOF | |
6615 | #define HAVE_VPRINTF 1 | |
6616 | _ACEOF | |
90c80887 | 6617 | |
f11781c5 AK |
6618 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
6619 | if test "x$ac_cv_func__doprnt" = x""yes; then : | |
90c80887 | 6620 | |
f11781c5 | 6621 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
90c80887 | 6622 | |
90c80887 | 6623 | fi |
90c80887 | 6624 | |
f11781c5 AK |
6625 | fi |
6626 | done | |
90c80887 | 6627 | |
90c80887 | 6628 | |
90c80887 | 6629 | |
f11781c5 AK |
6630 | ################################################################################ |
6631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5 | |
6632 | $as_echo_n "checking whether to use static linking... " >&6; } | |
6633 | # Check whether --enable-static_link was given. | |
6634 | if test "${enable_static_link+set}" = set; then : | |
6635 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
6636 | else | |
6637 | STATIC_LINK=no | |
6638 | fi | |
90c80887 | 6639 | |
f11781c5 AK |
6640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5 |
6641 | $as_echo "$STATIC_LINK" >&6; } | |
90c80887 | 6642 | |
f11781c5 | 6643 | ################################################################################ |
90c80887 | 6644 | |
90c80887 | 6645 | |
f11781c5 AK |
6646 | ################################################################################ |
6647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5 | |
6648 | $as_echo_n "checking file owner... " >&6; } | |
90c80887 | 6649 | |
f11781c5 AK |
6650 | # Check whether --with-user was given. |
6651 | if test "${with_user+set}" = set; then : | |
6652 | withval=$with_user; OWNER=$withval | |
6653 | fi | |
90c80887 | 6654 | |
f11781c5 AK |
6655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5 |
6656 | $as_echo "$OWNER" >&6; } | |
90c80887 | 6657 | |
f11781c5 AK |
6658 | if test x$OWNER != x; then |
6659 | INSTALL="$INSTALL -o $OWNER" | |
90c80887 | 6660 | fi |
a946372e | 6661 | |
f11781c5 AK |
6662 | ################################################################################ |
6663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5 | |
6664 | $as_echo_n "checking group owner... " >&6; } | |
a946372e | 6665 | |
f11781c5 AK |
6666 | # Check whether --with-group was given. |
6667 | if test "${with_group+set}" = set; then : | |
6668 | withval=$with_group; GROUP=$withval | |
a946372e | 6669 | fi |
f11781c5 AK |
6670 | |
6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5 | |
6672 | $as_echo "$GROUP" >&6; } | |
6673 | ||
6674 | if test x$GROUP != x; then | |
6675 | INSTALL="$INSTALL -g $GROUP" | |
a946372e | 6676 | fi |
f11781c5 AK |
6677 | |
6678 | ################################################################################ | |
6679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5 | |
6680 | $as_echo_n "checking device node uid... " >&6; } | |
6681 | ||
6682 | ||
6683 | # Check whether --with-device-uid was given. | |
6684 | if test "${with_device_uid+set}" = set; then : | |
6685 | withval=$with_device_uid; DM_DEVICE_UID=$withval | |
a946372e | 6686 | else |
f11781c5 | 6687 | DM_DEVICE_UID=0 |
a946372e AK |
6688 | fi |
6689 | ||
f11781c5 AK |
6690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5 |
6691 | $as_echo "$DM_DEVICE_UID" >&6; } | |
a946372e | 6692 | |
f11781c5 AK |
6693 | ################################################################################ |
6694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5 | |
6695 | $as_echo_n "checking device node gid... " >&6; } | |
a946372e | 6696 | |
a946372e | 6697 | |
f11781c5 AK |
6698 | # Check whether --with-device-gid was given. |
6699 | if test "${with_device_gid+set}" = set; then : | |
6700 | withval=$with_device_gid; DM_DEVICE_GID=$withval | |
a946372e | 6701 | else |
f11781c5 | 6702 | DM_DEVICE_GID=0 |
a946372e | 6703 | fi |
a946372e | 6704 | |
f11781c5 AK |
6705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5 |
6706 | $as_echo "$DM_DEVICE_GID" >&6; } | |
90c80887 | 6707 | |
f11781c5 AK |
6708 | ################################################################################ |
6709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5 | |
6710 | $as_echo_n "checking device node mode... " >&6; } | |
90c80887 | 6711 | |
90c80887 | 6712 | |
f11781c5 AK |
6713 | # Check whether --with-device-mode was given. |
6714 | if test "${with_device_mode+set}" = set; then : | |
6715 | withval=$with_device_mode; DM_DEVICE_MODE=$withval | |
6716 | else | |
6717 | DM_DEVICE_MODE=0600 | |
6718 | fi | |
90c80887 | 6719 | |
f11781c5 AK |
6720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5 |
6721 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
90c80887 | 6722 | |
d0df875d ZK |
6723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5 |
6724 | $as_echo_n "checking when to create device nodes... " >&6; } | |
6725 | ||
6726 | # Check whether --with-device-nodes-on was given. | |
6727 | if test "${with_device_nodes_on+set}" = set; then : | |
6728 | withval=$with_device_nodes_on; ADD_NODE=$withval | |
6729 | else | |
6730 | ADD_NODE=resume | |
6731 | fi | |
6732 | ||
6733 | case "$ADD_NODE" in | |
6734 | resume) add_on=DM_ADD_NODE_ON_RESUME;; | |
6735 | create) add_on=DM_ADD_NODE_ON_CREATE;; | |
6736 | *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;; | |
6737 | esac | |
6738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5 | |
6739 | $as_echo "on $ADD_NODE" >&6; } | |
6740 | ||
6741 | cat >>confdefs.h <<_ACEOF | |
6742 | #define DEFAULT_DM_ADD_NODE $add_on | |
6743 | _ACEOF | |
6744 | ||
6745 | ||
f11781c5 AK |
6746 | ################################################################################ |
6747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5 | |
6748 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
6749 | # Check whether --enable-lvm1_fallback was given. | |
6750 | if test "${enable_lvm1_fallback+set}" = set; then : | |
6751 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
6752 | else | |
6753 | LVM1_FALLBACK=no | |
6754 | fi | |
90c80887 | 6755 | |
f11781c5 AK |
6756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5 |
6757 | $as_echo "$LVM1_FALLBACK" >&6; } | |
90c80887 | 6758 | |
f11781c5 | 6759 | if test x$LVM1_FALLBACK = xyes; then |
90c80887 | 6760 | |
f11781c5 | 6761 | $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h |
90c80887 | 6762 | |
f11781c5 | 6763 | fi |
90c80887 | 6764 | |
f11781c5 AK |
6765 | ################################################################################ |
6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5 | |
6767 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
6768 | ||
6769 | # Check whether --with-lvm1 was given. | |
6770 | if test "${with_lvm1+set}" = set; then : | |
6771 | withval=$with_lvm1; LVM1=$withval | |
a946372e | 6772 | else |
f11781c5 | 6773 | LVM1=internal |
a946372e | 6774 | fi |
f11781c5 AK |
6775 | |
6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5 | |
6777 | $as_echo "$LVM1" >&6; } | |
6778 | ||
6779 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
6780 | then as_fn_error $? "--with-lvm1 parameter invalid | |
6781 | " "$LINENO" 5 | |
6782 | fi; | |
6783 | ||
6784 | if test x$LVM1 = xinternal; then | |
6785 | ||
6786 | $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h | |
6787 | ||
a946372e AK |
6788 | fi |
6789 | ||
6790 | ################################################################################ | |
f11781c5 AK |
6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5 |
6792 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
6793 | ||
6794 | # Check whether --with-pool was given. | |
6795 | if test "${with_pool+set}" = set; then : | |
6796 | withval=$with_pool; POOL=$withval | |
a946372e | 6797 | else |
f11781c5 | 6798 | POOL=internal |
a946372e AK |
6799 | fi |
6800 | ||
f11781c5 AK |
6801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5 |
6802 | $as_echo "$POOL" >&6; } | |
6803 | ||
6804 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
6805 | then as_fn_error $? "--with-pool parameter invalid | |
6806 | " "$LINENO" 5 | |
6807 | fi; | |
6808 | ||
6809 | if test x$POOL = xinternal; then | |
6810 | ||
6811 | $as_echo "#define POOL_INTERNAL 1" >>confdefs.h | |
a946372e | 6812 | |
a946372e AK |
6813 | fi |
6814 | ||
6815 | ################################################################################ | |
f11781c5 AK |
6816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5 |
6817 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
a946372e | 6818 | |
f11781c5 AK |
6819 | # Check whether --with-cluster was given. |
6820 | if test "${with_cluster+set}" = set; then : | |
6821 | withval=$with_cluster; CLUSTER=$withval | |
a946372e AK |
6822 | fi |
6823 | ||
f11781c5 AK |
6824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5 |
6825 | $as_echo "$CLUSTER" >&6; } | |
a946372e | 6826 | |
f11781c5 AK |
6827 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
6828 | then as_fn_error $? "--with-cluster parameter invalid | |
6829 | " "$LINENO" 5 | |
6830 | fi; | |
fddafd51 | 6831 | |
f11781c5 | 6832 | if test x$CLUSTER = xinternal; then |
5556819a | 6833 | |
f11781c5 | 6834 | $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h |
fddafd51 | 6835 | |
fddafd51 | 6836 | fi |
f11781c5 AK |
6837 | |
6838 | ################################################################################ | |
6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5 | |
6840 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
6841 | ||
6842 | # Check whether --with-snapshots was given. | |
6843 | if test "${with_snapshots+set}" = set; then : | |
6844 | withval=$with_snapshots; SNAPSHOTS=$withval | |
fddafd51 | 6845 | else |
f11781c5 | 6846 | SNAPSHOTS=internal |
fddafd51 ZK |
6847 | fi |
6848 | ||
f11781c5 AK |
6849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5 |
6850 | $as_echo "$SNAPSHOTS" >&6; } | |
fddafd51 | 6851 | |
f11781c5 AK |
6852 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
6853 | then as_fn_error $? "--with-snapshots parameter invalid | |
6854 | " "$LINENO" 5 | |
6855 | fi; | |
fddafd51 | 6856 | |
f11781c5 AK |
6857 | if test x$SNAPSHOTS = xinternal; then |
6858 | ||
6859 | $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h | |
6860 | ||
6861 | fi | |
6862 | ||
6863 | ################################################################################ | |
6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5 | |
6865 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
6866 | ||
6867 | # Check whether --with-mirrors was given. | |
6868 | if test "${with_mirrors+set}" = set; then : | |
6869 | withval=$with_mirrors; MIRRORS=$withval | |
fddafd51 | 6870 | else |
f11781c5 | 6871 | MIRRORS=internal |
fddafd51 ZK |
6872 | fi |
6873 | ||
f11781c5 AK |
6874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5 |
6875 | $as_echo "$MIRRORS" >&6; } | |
fddafd51 | 6876 | |
f11781c5 AK |
6877 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
6878 | then as_fn_error $? "--with-mirrors parameter invalid | |
6879 | " "$LINENO" 5 | |
6880 | fi; | |
6881 | ||
6882 | if test x$MIRRORS = xinternal; then | |
6883 | ||
6884 | $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h | |
6885 | ||
6886 | fi | |
6887 | ||
6888 | ################################################################################ | |
6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5 | |
6890 | $as_echo_n "checking whether to include replicators... " >&6; } | |
6891 | ||
6892 | # Check whether --with-replicators was given. | |
6893 | if test "${with_replicators+set}" = set; then : | |
6894 | withval=$with_replicators; REPLICATORS=$withval | |
fd4728e1 | 6895 | else |
f11781c5 AK |
6896 | REPLICATORS=none |
6897 | fi | |
fd4728e1 | 6898 | |
f11781c5 AK |
6899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5 |
6900 | $as_echo "$REPLICATORS" >&6; } | |
6901 | ||
6902 | case "$REPLICATORS" in | |
6903 | none|shared) ;; | |
6904 | internal) | |
6905 | $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h | |
6906 | ;; | |
6907 | *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;; | |
fd4728e1 | 6908 | esac |
f11781c5 AK |
6909 | |
6910 | ################################################################################ | |
6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5 | |
6912 | $as_echo_n "checking whether to enable readline... " >&6; } | |
6913 | # Check whether --enable-readline was given. | |
6914 | if test "${enable_readline+set}" = set; then : | |
6915 | enableval=$enable_readline; READLINE=$enableval | |
fd4728e1 | 6916 | else |
f11781c5 | 6917 | READLINE=maybe |
fd4728e1 ZK |
6918 | fi |
6919 | ||
f11781c5 AK |
6920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5 |
6921 | $as_echo "$READLINE" >&6; } | |
fd4728e1 | 6922 | |
f11781c5 AK |
6923 | ################################################################################ |
6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5 | |
6925 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
6926 | # Check whether --enable-realtime was given. | |
6927 | if test "${enable_realtime+set}" = set; then : | |
6928 | enableval=$enable_realtime; REALTIME=$enableval | |
5556819a | 6929 | fi |
d0191583 | 6930 | |
f11781c5 AK |
6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5 |
6932 | $as_echo "$REALTIME" >&6; } | |
6933 | ||
54b362f9 | 6934 | ################################################################################ |
f11781c5 AK |
6935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5 |
6936 | $as_echo_n "checking whether to enable OCF resource agents... " >&6; } | |
6937 | # Check whether --enable-ocf was given. | |
6938 | if test "${enable_ocf+set}" = set; then : | |
6939 | enableval=$enable_ocf; OCF=$enableval | |
54b362f9 | 6940 | else |
f11781c5 | 6941 | OCF=no |
54b362f9 AK |
6942 | fi |
6943 | ||
f11781c5 AK |
6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5 |
6945 | $as_echo "$OCF" >&6; } | |
54b362f9 | 6946 | |
606d0858 AK |
6947 | # Check whether --with-ocfdir was given. |
6948 | if test "${with_ocfdir+set}" = set; then : | |
6949 | withval=$with_ocfdir; OCFDIR=$withval | |
6950 | else | |
6951 | OCFDIR='${prefix}/lib/ocf/resource.d/lvm2' | |
6952 | fi | |
6953 | ||
6954 | ||
f11781c5 AK |
6955 | ################################################################################ |
6956 | pkg_config_init() { | |
6957 | ||
6958 | ||
6959 | ||
6960 | ||
6961 | ||
6962 | ||
6963 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
6964 | if test -n "$ac_tool_prefix"; then | |
6965 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
6966 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 6968 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 6969 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
6970 | $as_echo_n "(cached) " >&6 |
6971 | else | |
f11781c5 | 6972 | case $PKG_CONFIG in |
54b362f9 | 6973 | [\\/]* | ?:[\\/]*) |
f11781c5 | 6974 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
6975 | ;; |
6976 | *) | |
6977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6978 | for as_dir in $PATH | |
6979 | do | |
6980 | IFS=$as_save_IFS | |
6981 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 6982 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 6983 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
6984 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
6985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
6986 | break 2 |
6987 | fi | |
6988 | done | |
f11781c5 | 6989 | done |
54b362f9 AK |
6990 | IFS=$as_save_IFS |
6991 | ||
6992 | ;; | |
6993 | esac | |
6994 | fi | |
f11781c5 AK |
6995 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
6996 | if test -n "$PKG_CONFIG"; then | |
6997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
6998 | $as_echo "$PKG_CONFIG" >&6; } | |
54b362f9 | 6999 | else |
f11781c5 | 7000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7001 | $as_echo "no" >&6; } |
7002 | fi | |
7003 | ||
7004 | ||
f11781c5 AK |
7005 | fi |
7006 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
7007 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
7008 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
7009 | set dummy pkg-config; ac_word=$2 | |
7010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 7011 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 7012 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
7013 | $as_echo_n "(cached) " >&6 |
7014 | else | |
f11781c5 | 7015 | case $ac_pt_PKG_CONFIG in |
54b362f9 | 7016 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7017 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7018 | ;; |
7019 | *) | |
7020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7021 | for as_dir in $PATH | |
7022 | do | |
7023 | IFS=$as_save_IFS | |
7024 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7025 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7027 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7029 | break 2 |
7030 | fi | |
7031 | done | |
f11781c5 | 7032 | done |
54b362f9 AK |
7033 | IFS=$as_save_IFS |
7034 | ||
7035 | ;; | |
7036 | esac | |
7037 | fi | |
f11781c5 AK |
7038 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
7039 | if test -n "$ac_pt_PKG_CONFIG"; then | |
7040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
7041 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
54b362f9 | 7042 | else |
f11781c5 | 7043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7044 | $as_echo "no" >&6; } |
7045 | fi | |
7046 | ||
f11781c5 AK |
7047 | if test "x$ac_pt_PKG_CONFIG" = x; then |
7048 | PKG_CONFIG="" | |
7049 | else | |
7050 | case $cross_compiling:$ac_tool_warned in | |
7051 | yes:) | |
7052 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7053 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7054 | ac_tool_warned=yes ;; | |
7055 | esac | |
7056 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7057 | fi | |
d1e8046f | 7058 | else |
f11781c5 | 7059 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
d1e8046f AK |
7060 | fi |
7061 | ||
f11781c5 AK |
7062 | fi |
7063 | if test -n "$PKG_CONFIG"; then | |
7064 | _pkg_min_version=0.9.0 | |
7065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
7066 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
7067 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
7068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7069 | $as_echo "yes" >&6; } | |
7070 | else | |
7071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7072 | $as_echo "no" >&6; } | |
7073 | PKG_CONFIG="" | |
7074 | fi | |
7075 | fi | |
d1e8046f | 7076 | |
f11781c5 AK |
7077 | pkg_failed=no |
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5 | |
7079 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
d1e8046f | 7080 | |
f11781c5 AK |
7081 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
7082 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
7083 | elif test -n "$PKG_CONFIG"; then | |
7084 | if test -n "$PKG_CONFIG" && \ | |
7085 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7086 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
7087 | ac_status=$? | |
7088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7089 | test $ac_status = 0; }; then | |
7090 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7091 | else |
f11781c5 AK |
7092 | pkg_failed=yes |
7093 | fi | |
7094 | else | |
7095 | pkg_failed=untried | |
7096 | fi | |
7097 | if test -n "$PKGCONFIGINIT_LIBS"; then | |
7098 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
7099 | elif test -n "$PKG_CONFIG"; then | |
7100 | if test -n "$PKG_CONFIG" && \ | |
7101 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7102 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
d1e8046f | 7103 | ac_status=$? |
f11781c5 AK |
7104 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7105 | test $ac_status = 0; }; then | |
7106 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7107 | else |
f11781c5 AK |
7108 | pkg_failed=yes |
7109 | fi | |
7110 | else | |
7111 | pkg_failed=untried | |
d1e8046f AK |
7112 | fi |
7113 | ||
d1e8046f | 7114 | |
f11781c5 AK |
7115 | |
7116 | if test $pkg_failed = yes; then | |
7117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7118 | $as_echo "no" >&6; } | |
7119 | ||
7120 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7121 | _pkg_short_errors_supported=yes | |
7122 | else | |
7123 | _pkg_short_errors_supported=no | |
7124 | fi | |
7125 | if test $_pkg_short_errors_supported = yes; then | |
7126 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` | |
7127 | else | |
7128 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` | |
7129 | fi | |
7130 | # Put the nasty error message in config.log where it belongs | |
7131 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 | |
7132 | ||
7133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7134 | $as_echo "pkg-config initialized" >&6; } | |
7135 | elif test $pkg_failed = untried; then | |
7136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7137 | $as_echo "no" >&6; } | |
7138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7139 | $as_echo "pkg-config initialized" >&6; } | |
d1e8046f | 7140 | else |
f11781c5 AK |
7141 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
7142 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
7143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7144 | $as_echo "yes" >&6; } | |
d1e8046f | 7145 | |
d1e8046f | 7146 | fi |
f11781c5 AK |
7147 | PKGCONFIG_INIT=1 |
7148 | } | |
d1e8046f | 7149 | |
f11781c5 AK |
7150 | ################################################################################ |
7151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5 | |
7152 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d1e8046f | 7153 | |
f11781c5 AK |
7154 | # Check whether --with-clvmd was given. |
7155 | if test "${with_clvmd+set}" = set; then : | |
7156 | withval=$with_clvmd; CLVMD=$withval | |
d1e8046f | 7157 | else |
f11781c5 | 7158 | CLVMD=none |
d1e8046f | 7159 | fi |
d1e8046f | 7160 | |
f11781c5 AK |
7161 | if test x$CLVMD = xyes; then |
7162 | CLVMD=all | |
d1e8046f | 7163 | fi |
f11781c5 AK |
7164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5 |
7165 | $as_echo "$CLVMD" >&6; } | |
d1e8046f | 7166 | |
f11781c5 AK |
7167 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
7168 | CLUSTER=internal | |
d1e8046f AK |
7169 | fi |
7170 | ||
f11781c5 AK |
7171 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then |
7172 | pkg_config_init | |
7173 | fi | |
d1e8046f | 7174 | |
f11781c5 AK |
7175 | CLVMD_CMANAGERS="" |
7176 | CLVMD_NEEDS_QDISKD=no | |
d1e8046f | 7177 | |
f11781c5 AK |
7178 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then |
7179 | BUILDGULM=yes | |
7180 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd" | |
7181 | CLVMD_NEEDS_QDISKD=yes | |
d1e8046f | 7182 | fi |
f11781c5 AK |
7183 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then |
7184 | BUILDCMAN=yes | |
7185 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
7186 | CLVMD_NEEDS_QDISKD=yes | |
7187 | fi | |
7188 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
7189 | BUILDCOROSYNC=yes | |
7190 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
7191 | fi | |
7192 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
7193 | BUILDOPENAIS=yes | |
7194 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
7195 | fi | |
7196 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
7197 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
fc54be10 AK |
7198 | fi |
7199 | ||
f11781c5 AK |
7200 | if test x$BUILDGULM = xyes; then |
7201 | if test x$BUILDCOROSYNC = xyes || \ | |
7202 | test x$BUILDOPENAIS = xyes; then | |
7203 | as_fn_error $? "requested clvmd configuration is not valid" "$LINENO" 5 | |
7204 | fi | |
7205 | fi | |
ad6254c5 | 7206 | |
f11781c5 AK |
7207 | soft_bailout() { |
7208 | NOTFOUND=1 | |
7209 | } | |
ad6254c5 | 7210 | |
f11781c5 AK |
7211 | hard_bailout() { |
7212 | as_fn_error $? "bailing out" "$LINENO" 5 | |
7213 | } | |
ad6254c5 | 7214 | |
f11781c5 AK |
7215 | if test x$CLVMD = xall; then |
7216 | bailout=soft_bailout | |
7217 | BUILDGULM=yes | |
7218 | BUILDCMAN=yes | |
7219 | BUILDCOROSYNC=yes | |
7220 | BUILDOPENAIS=yes | |
a5f46f6a | 7221 | else |
f11781c5 | 7222 | bailout=hard_bailout |
a5f46f6a AK |
7223 | fi |
7224 | ||
f11781c5 AK |
7225 | check_lib_no_libs() { |
7226 | lib_no_libs_arg1=$1 | |
7227 | shift | |
7228 | lib_no_libs_arg2=$1 | |
7229 | shift | |
7230 | lib_no_libs_args=$@ | |
7231 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
7232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
7233 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
7234 | if eval "test \"\${$as_ac_Lib+set}\"" = set; then : | |
90c80887 AK |
7235 | $as_echo_n "(cached) " >&6 |
7236 | else | |
7237 | ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
7238 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" |
7239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
90c80887 AK |
7240 | /* end confdefs.h. */ |
7241 | ||
7242 | /* Override any GCC internal prototype to avoid an error. | |
7243 | Use char because int might match the return type of a GCC | |
7244 | builtin and then its argument prototype would still apply. */ | |
7245 | #ifdef __cplusplus | |
7246 | extern "C" | |
7247 | #endif | |
f11781c5 | 7248 | char $lib_no_libs_arg2 (); |
90c80887 AK |
7249 | int |
7250 | main () | |
7251 | { | |
f11781c5 | 7252 | return $lib_no_libs_arg2 (); |
90c80887 AK |
7253 | ; |
7254 | return 0; | |
7255 | } | |
7256 | _ACEOF | |
f11781c5 AK |
7257 | if ac_fn_c_try_link "$LINENO"; then : |
7258 | eval "$as_ac_Lib=yes" | |
90c80887 | 7259 | else |
f11781c5 | 7260 | eval "$as_ac_Lib=no" |
90c80887 | 7261 | fi |
f11781c5 AK |
7262 | rm -f core conftest.err conftest.$ac_objext \ |
7263 | conftest$ac_exeext conftest.$ac_ext | |
90c80887 AK |
7264 | LIBS=$ac_check_lib_save_LIBS |
7265 | fi | |
f11781c5 AK |
7266 | eval ac_res=\$$as_ac_Lib |
7267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7268 | $as_echo "$ac_res" >&6; } | |
7269 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
7270 | cat >>confdefs.h <<_ACEOF | |
7271 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
7272 | _ACEOF | |
7273 | ||
7274 | LIBS="-l$lib_no_libs_arg1 $LIBS" | |
7275 | ||
90c80887 | 7276 | else |
f11781c5 | 7277 | $bailout |
90c80887 AK |
7278 | fi |
7279 | ||
f11781c5 AK |
7280 | LIBS=$ac_check_lib_save_LIBS |
7281 | } | |
90c80887 | 7282 | |
f11781c5 | 7283 | if test x$BUILDGULM = xyes; then |
90c80887 | 7284 | |
f11781c5 AK |
7285 | pkg_failed=no |
7286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5 | |
7287 | $as_echo_n "checking for CCS... " >&6; } | |
90c80887 | 7288 | |
f11781c5 AK |
7289 | if test -n "$CCS_CFLAGS"; then |
7290 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
7291 | elif test -n "$PKG_CONFIG"; then | |
7292 | if test -n "$PKG_CONFIG" && \ | |
7293 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5 | |
7294 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
7295 | ac_status=$? | |
7296 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7297 | test $ac_status = 0; }; then | |
7298 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` | |
5161ecb9 | 7299 | else |
f11781c5 AK |
7300 | pkg_failed=yes |
7301 | fi | |
7302 | else | |
7303 | pkg_failed=untried | |
7304 | fi | |
7305 | if test -n "$CCS_LIBS"; then | |
7306 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
7307 | elif test -n "$PKG_CONFIG"; then | |
7308 | if test -n "$PKG_CONFIG" && \ | |
7309 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5 | |
7310 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
7311 | ac_status=$? | |
7312 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7313 | test $ac_status = 0; }; then | |
7314 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` | |
7315 | else | |
7316 | pkg_failed=yes | |
7317 | fi | |
7318 | else | |
7319 | pkg_failed=untried | |
5161ecb9 PR |
7320 | fi |
7321 | ||
5161ecb9 | 7322 | |
f11781c5 AK |
7323 | |
7324 | if test $pkg_failed = yes; then | |
7325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7326 | $as_echo "no" >&6; } | |
7327 | ||
7328 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7329 | _pkg_short_errors_supported=yes | |
93bd259b | 7330 | else |
f11781c5 | 7331 | _pkg_short_errors_supported=no |
93bd259b | 7332 | fi |
f11781c5 AK |
7333 | if test $_pkg_short_errors_supported = yes; then |
7334 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` | |
7335 | else | |
7336 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` | |
7337 | fi | |
7338 | # Put the nasty error message in config.log where it belongs | |
7339 | echo "$CCS_PKG_ERRORS" >&5 | |
93bd259b | 7340 | |
f11781c5 AK |
7341 | NOTFOUND=0 |
7342 | for ac_header in ccs.h | |
7343 | do : | |
7344 | ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default" | |
7345 | if test "x$ac_cv_header_ccs_h" = x""yes; then : | |
7346 | cat >>confdefs.h <<_ACEOF | |
7347 | #define HAVE_CCS_H 1 | |
7348 | _ACEOF | |
93bd259b | 7349 | |
95eaa683 | 7350 | else |
f11781c5 | 7351 | $bailout |
95eaa683 AK |
7352 | fi |
7353 | ||
f11781c5 | 7354 | done |
95eaa683 | 7355 | |
f11781c5 AK |
7356 | check_lib_no_libs ccs ccs_connect |
7357 | if test $NOTFOUND = 0; then | |
7358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5 | |
7359 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
7360 | CCS_LIBS="-lccs" | |
7361 | HAVE_CCS=yes | |
7362 | fi | |
7363 | elif test $pkg_failed = untried; then | |
7364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7365 | $as_echo "no" >&6; } | |
7366 | NOTFOUND=0 | |
7367 | for ac_header in ccs.h | |
7368 | do : | |
7369 | ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default" | |
7370 | if test "x$ac_cv_header_ccs_h" = x""yes; then : | |
7371 | cat >>confdefs.h <<_ACEOF | |
7372 | #define HAVE_CCS_H 1 | |
95eaa683 AK |
7373 | _ACEOF |
7374 | ||
f11781c5 AK |
7375 | else |
7376 | $bailout | |
95eaa683 AK |
7377 | fi |
7378 | ||
f11781c5 AK |
7379 | done |
7380 | ||
7381 | check_lib_no_libs ccs ccs_connect | |
7382 | if test $NOTFOUND = 0; then | |
7383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5 | |
7384 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
7385 | CCS_LIBS="-lccs" | |
7386 | HAVE_CCS=yes | |
7387 | fi | |
7388 | else | |
7389 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
7390 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
7391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7392 | $as_echo "yes" >&6; } | |
7393 | HAVE_CCS=yes | |
7394 | fi | |
7395 | ||
7396 | pkg_failed=no | |
7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GULM" >&5 | |
7398 | $as_echo_n "checking for GULM... " >&6; } | |
7399 | ||
7400 | if test -n "$GULM_CFLAGS"; then | |
7401 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
7402 | elif test -n "$PKG_CONFIG"; then | |
7403 | if test -n "$PKG_CONFIG" && \ | |
7404 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5 | |
7405 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
7406 | ac_status=$? | |
7407 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7408 | test $ac_status = 0; }; then | |
7409 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
7410 | else | |
7411 | pkg_failed=yes | |
7412 | fi | |
7413 | else | |
7414 | pkg_failed=untried | |
7415 | fi | |
7416 | if test -n "$GULM_LIBS"; then | |
7417 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
7418 | elif test -n "$PKG_CONFIG"; then | |
7419 | if test -n "$PKG_CONFIG" && \ | |
7420 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5 | |
7421 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
7422 | ac_status=$? | |
7423 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7424 | test $ac_status = 0; }; then | |
7425 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
7426 | else | |
7427 | pkg_failed=yes | |
93bd259b | 7428 | fi |
f11781c5 AK |
7429 | else |
7430 | pkg_failed=untried | |
ad6254c5 | 7431 | fi |
ad6254c5 | 7432 | |
ad6254c5 AK |
7433 | |
7434 | ||
f11781c5 AK |
7435 | if test $pkg_failed = yes; then |
7436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7437 | $as_echo "no" >&6; } | |
ad6254c5 | 7438 | |
f11781c5 AK |
7439 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7440 | _pkg_short_errors_supported=yes | |
572fefeb | 7441 | else |
f11781c5 | 7442 | _pkg_short_errors_supported=no |
572fefeb | 7443 | fi |
f11781c5 AK |
7444 | if test $_pkg_short_errors_supported = yes; then |
7445 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
7446 | else | |
7447 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
7448 | fi | |
7449 | # Put the nasty error message in config.log where it belongs | |
7450 | echo "$GULM_PKG_ERRORS" >&5 | |
572fefeb | 7451 | |
f11781c5 AK |
7452 | NOTFOUND=0 |
7453 | for ac_header in libgulm.h | |
7454 | do : | |
7455 | ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default" | |
7456 | if test "x$ac_cv_header_libgulm_h" = x""yes; then : | |
7457 | cat >>confdefs.h <<_ACEOF | |
7458 | #define HAVE_LIBGULM_H 1 | |
7459 | _ACEOF | |
572fefeb | 7460 | |
ad6254c5 | 7461 | else |
f11781c5 | 7462 | $bailout |
d0191583 | 7463 | fi |
8a2fc586 | 7464 | |
f11781c5 | 7465 | done |
8a2fc586 | 7466 | |
f11781c5 AK |
7467 | check_lib_no_libs gulm lg_core_login |
7468 | if test $NOTFOUND = 0; then | |
7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5 | |
7470 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
7471 | GULM_LIBS="-lgulm" | |
7472 | HAVE_GULM=yes | |
7473 | fi | |
7474 | elif test $pkg_failed = untried; then | |
7475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7476 | $as_echo "no" >&6; } | |
7477 | NOTFOUND=0 | |
7478 | for ac_header in libgulm.h | |
7479 | do : | |
7480 | ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default" | |
7481 | if test "x$ac_cv_header_libgulm_h" = x""yes; then : | |
7482 | cat >>confdefs.h <<_ACEOF | |
7483 | #define HAVE_LIBGULM_H 1 | |
7484 | _ACEOF | |
d179cc7a | 7485 | |
93bd259b | 7486 | else |
f11781c5 | 7487 | $bailout |
93bd259b AK |
7488 | fi |
7489 | ||
f11781c5 | 7490 | done |
2a9a80c9 | 7491 | |
f11781c5 AK |
7492 | check_lib_no_libs gulm lg_core_login |
7493 | if test $NOTFOUND = 0; then | |
7494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5 | |
7495 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
7496 | GULM_LIBS="-lgulm" | |
7497 | HAVE_GULM=yes | |
7498 | fi | |
23b059e7 | 7499 | else |
f11781c5 AK |
7500 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS |
7501 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
7502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7503 | $as_echo "yes" >&6; } | |
7504 | HAVE_GULM=yes | |
d0191583 | 7505 | fi |
d0191583 | 7506 | fi |
ad6254c5 | 7507 | |
f11781c5 | 7508 | if test x$BUILDCMAN = xyes; then |
ad6254c5 | 7509 | |
f11781c5 AK |
7510 | pkg_failed=no |
7511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5 | |
7512 | $as_echo_n "checking for CMAN... " >&6; } | |
93bd259b | 7513 | |
f11781c5 AK |
7514 | if test -n "$CMAN_CFLAGS"; then |
7515 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
7516 | elif test -n "$PKG_CONFIG"; then | |
7517 | if test -n "$PKG_CONFIG" && \ | |
7518 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7519 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
7520 | ac_status=$? | |
7521 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7522 | test $ac_status = 0; }; then | |
7523 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
7524 | else | |
7525 | pkg_failed=yes | |
ad6254c5 | 7526 | fi |
f11781c5 AK |
7527 | else |
7528 | pkg_failed=untried | |
ad6254c5 | 7529 | fi |
f11781c5 AK |
7530 | if test -n "$CMAN_LIBS"; then |
7531 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
7532 | elif test -n "$PKG_CONFIG"; then | |
7533 | if test -n "$PKG_CONFIG" && \ | |
7534 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7535 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
93bd259b | 7536 | ac_status=$? |
f11781c5 AK |
7537 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7538 | test $ac_status = 0; }; then | |
7539 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
93bd259b | 7540 | else |
f11781c5 AK |
7541 | pkg_failed=yes |
7542 | fi | |
7543 | else | |
7544 | pkg_failed=untried | |
93bd259b AK |
7545 | fi |
7546 | ||
f11781c5 AK |
7547 | |
7548 | ||
7549 | if test $pkg_failed = yes; then | |
7550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7551 | $as_echo "no" >&6; } | |
7552 | ||
7553 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7554 | _pkg_short_errors_supported=yes | |
7555 | else | |
7556 | _pkg_short_errors_supported=no | |
93bd259b | 7557 | fi |
f11781c5 AK |
7558 | if test $_pkg_short_errors_supported = yes; then |
7559 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
7560 | else | |
7561 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
7562 | fi | |
7563 | # Put the nasty error message in config.log where it belongs | |
7564 | echo "$CMAN_PKG_ERRORS" >&5 | |
93bd259b | 7565 | |
f11781c5 AK |
7566 | NOTFOUND=0 |
7567 | for ac_header in libcman.h | |
7568 | do : | |
7569 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7570 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7571 | cat >>confdefs.h <<_ACEOF | |
7572 | #define HAVE_LIBCMAN_H 1 | |
93bd259b AK |
7573 | _ACEOF |
7574 | ||
f11781c5 AK |
7575 | else |
7576 | $bailout | |
93bd259b AK |
7577 | fi |
7578 | ||
f11781c5 | 7579 | done |
93bd259b | 7580 | |
f11781c5 AK |
7581 | check_lib_no_libs cman cman_init |
7582 | if test $NOTFOUND = 0; then | |
7583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7584 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7585 | CMAN_LIBS="-lcman" | |
7586 | HAVE_CMAN=yes | |
7587 | fi | |
7588 | elif test $pkg_failed = untried; then | |
7589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7590 | $as_echo "no" >&6; } | |
7591 | NOTFOUND=0 | |
7592 | for ac_header in libcman.h | |
7593 | do : | |
7594 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7595 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7596 | cat >>confdefs.h <<_ACEOF | |
7597 | #define HAVE_LIBCMAN_H 1 | |
93bd259b | 7598 | _ACEOF |
93bd259b | 7599 | |
93bd259b | 7600 | else |
f11781c5 | 7601 | $bailout |
93bd259b AK |
7602 | fi |
7603 | ||
f11781c5 AK |
7604 | done |
7605 | ||
7606 | check_lib_no_libs cman cman_init | |
7607 | if test $NOTFOUND = 0; then | |
7608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7609 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7610 | CMAN_LIBS="-lcman" | |
7611 | HAVE_CMAN=yes | |
7612 | fi | |
7613 | else | |
7614 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
7615 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
7616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7617 | $as_echo "yes" >&6; } | |
7618 | HAVE_CMAN=yes | |
93bd259b | 7619 | fi |
f11781c5 AK |
7620 | CHECKCONFDB=yes |
7621 | CHECKDLM=yes | |
93bd259b AK |
7622 | fi |
7623 | ||
f11781c5 AK |
7624 | if test x$BUILDCOROSYNC = xyes || \ |
7625 | test x$BUILDOPENAIS = xyes; then | |
93bd259b | 7626 | |
f11781c5 AK |
7627 | pkg_failed=no |
7628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5 | |
7629 | $as_echo_n "checking for COROSYNC... " >&6; } | |
ad6254c5 | 7630 | |
f11781c5 AK |
7631 | if test -n "$COROSYNC_CFLAGS"; then |
7632 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
7633 | elif test -n "$PKG_CONFIG"; then | |
7634 | if test -n "$PKG_CONFIG" && \ | |
7635 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7636 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
7637 | ac_status=$? | |
7638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7639 | test $ac_status = 0; }; then | |
7640 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
ad6254c5 | 7641 | else |
f11781c5 AK |
7642 | pkg_failed=yes |
7643 | fi | |
7644 | else | |
7645 | pkg_failed=untried | |
7646 | fi | |
7647 | if test -n "$COROSYNC_LIBS"; then | |
7648 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
7649 | elif test -n "$PKG_CONFIG"; then | |
7650 | if test -n "$PKG_CONFIG" && \ | |
7651 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7652 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
ad6254c5 | 7653 | ac_status=$? |
f11781c5 AK |
7654 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7655 | test $ac_status = 0; }; then | |
7656 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
ad6254c5 | 7657 | else |
f11781c5 | 7658 | pkg_failed=yes |
ad6254c5 | 7659 | fi |
f11781c5 AK |
7660 | else |
7661 | pkg_failed=untried | |
ad6254c5 | 7662 | fi |
ad6254c5 | 7663 | |
72b2cb61 | 7664 | |
72b2cb61 | 7665 | |
f11781c5 AK |
7666 | if test $pkg_failed = yes; then |
7667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7668 | $as_echo "no" >&6; } | |
19a2c6e0 | 7669 | |
f11781c5 AK |
7670 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7671 | _pkg_short_errors_supported=yes | |
7672 | else | |
7673 | _pkg_short_errors_supported=no | |
ad6254c5 | 7674 | fi |
f11781c5 AK |
7675 | if test $_pkg_short_errors_supported = yes; then |
7676 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
7677 | else | |
7678 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
7679 | fi | |
7680 | # Put the nasty error message in config.log where it belongs | |
7681 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
ad6254c5 | 7682 | |
f11781c5 AK |
7683 | $bailout |
7684 | elif test $pkg_failed = untried; then | |
7685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7686 | $as_echo "no" >&6; } | |
7687 | $bailout | |
7688 | else | |
7689 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
7690 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
7691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7692 | $as_echo "yes" >&6; } | |
7693 | HAVE_COROSYNC=yes | |
7694 | fi | |
7695 | CHECKCONFDB=yes | |
ad6254c5 AK |
7696 | fi |
7697 | ||
f11781c5 | 7698 | if test x$BUILDCOROSYNC = xyes; then |
f30875db | 7699 | |
f11781c5 AK |
7700 | pkg_failed=no |
7701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5 | |
7702 | $as_echo_n "checking for QUORUM... " >&6; } | |
7703 | ||
7704 | if test -n "$QUORUM_CFLAGS"; then | |
7705 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
7706 | elif test -n "$PKG_CONFIG"; then | |
7707 | if test -n "$PKG_CONFIG" && \ | |
7708 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7709 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
f30875db | 7710 | ac_status=$? |
f11781c5 AK |
7711 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7712 | test $ac_status = 0; }; then | |
7713 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
f30875db | 7714 | else |
f11781c5 | 7715 | pkg_failed=yes |
f30875db | 7716 | fi |
f11781c5 AK |
7717 | else |
7718 | pkg_failed=untried | |
f30875db | 7719 | fi |
f11781c5 AK |
7720 | if test -n "$QUORUM_LIBS"; then |
7721 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
7722 | elif test -n "$PKG_CONFIG"; then | |
7723 | if test -n "$PKG_CONFIG" && \ | |
7724 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7725 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
7726 | ac_status=$? | |
7727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7728 | test $ac_status = 0; }; then | |
7729 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
f30875db | 7730 | else |
f11781c5 | 7731 | pkg_failed=yes |
f30875db | 7732 | fi |
f11781c5 AK |
7733 | else |
7734 | pkg_failed=untried | |
7735 | fi | |
7736 | ||
f30875db | 7737 | |
f11781c5 AK |
7738 | |
7739 | if test $pkg_failed = yes; then | |
7740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7741 | $as_echo "no" >&6; } | |
7742 | ||
7743 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7744 | _pkg_short_errors_supported=yes | |
7745 | else | |
7746 | _pkg_short_errors_supported=no | |
f30875db | 7747 | fi |
f11781c5 AK |
7748 | if test $_pkg_short_errors_supported = yes; then |
7749 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
7750 | else | |
7751 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
7752 | fi | |
7753 | # Put the nasty error message in config.log where it belongs | |
7754 | echo "$QUORUM_PKG_ERRORS" >&5 | |
f30875db | 7755 | |
f11781c5 AK |
7756 | $bailout |
7757 | elif test $pkg_failed = untried; then | |
7758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7759 | $as_echo "no" >&6; } | |
7760 | $bailout | |
7761 | else | |
7762 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
7763 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
7764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7765 | $as_echo "yes" >&6; } | |
7766 | HAVE_QUORUM=yes | |
7767 | fi | |
7768 | CHECKCPG=yes | |
7769 | CHECKDLM=yes | |
d0191583 JM |
7770 | fi |
7771 | ||
f11781c5 | 7772 | if test x$BUILDOPENAIS = xyes; then |
d0191583 | 7773 | |
f11781c5 AK |
7774 | pkg_failed=no |
7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5 | |
7776 | $as_echo_n "checking for SALCK... " >&6; } | |
8a2fc586 | 7777 | |
f11781c5 AK |
7778 | if test -n "$SALCK_CFLAGS"; then |
7779 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
7780 | elif test -n "$PKG_CONFIG"; then | |
7781 | if test -n "$PKG_CONFIG" && \ | |
7782 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7783 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
7784 | ac_status=$? | |
7785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7786 | test $ac_status = 0; }; then | |
7787 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
7788 | else | |
7789 | pkg_failed=yes | |
7790 | fi | |
7791 | else | |
7792 | pkg_failed=untried | |
7793 | fi | |
7794 | if test -n "$SALCK_LIBS"; then | |
7795 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
7796 | elif test -n "$PKG_CONFIG"; then | |
7797 | if test -n "$PKG_CONFIG" && \ | |
7798 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7799 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
8a2fc586 | 7800 | ac_status=$? |
f11781c5 AK |
7801 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7802 | test $ac_status = 0; }; then | |
7803 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
8a2fc586 | 7804 | else |
f11781c5 | 7805 | pkg_failed=yes |
8a2fc586 | 7806 | fi |
f11781c5 AK |
7807 | else |
7808 | pkg_failed=untried | |
8a2fc586 | 7809 | fi |
d0191583 | 7810 | |
d0191583 | 7811 | |
f8f6ec92 | 7812 | |
f11781c5 AK |
7813 | if test $pkg_failed = yes; then |
7814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7815 | $as_echo "no" >&6; } | |
8a2fc586 | 7816 | |
f11781c5 AK |
7817 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7818 | _pkg_short_errors_supported=yes | |
ad6254c5 | 7819 | else |
f11781c5 AK |
7820 | _pkg_short_errors_supported=no |
7821 | fi | |
7822 | if test $_pkg_short_errors_supported = yes; then | |
7823 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
7824 | else | |
7825 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
7826 | fi | |
7827 | # Put the nasty error message in config.log where it belongs | |
7828 | echo "$SALCK_PKG_ERRORS" >&5 | |
ad6254c5 | 7829 | |
f11781c5 AK |
7830 | $bailout |
7831 | elif test $pkg_failed = untried; then | |
7832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7833 | $as_echo "no" >&6; } | |
7834 | $bailout | |
ad6254c5 | 7835 | else |
f11781c5 AK |
7836 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS |
7837 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
7838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7839 | $as_echo "yes" >&6; } | |
7840 | HAVE_SALCK=yes | |
ad6254c5 | 7841 | fi |
f11781c5 | 7842 | CHECKCPG=yes |
ad6254c5 | 7843 | fi |
ad6254c5 | 7844 | |
72b2cb61 | 7845 | |
f8f6ec92 | 7846 | |
f11781c5 | 7847 | if test x$CHECKCONFDB = xyes; then |
f8f6ec92 | 7848 | |
f11781c5 AK |
7849 | pkg_failed=no |
7850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5 | |
7851 | $as_echo_n "checking for CONFDB... " >&6; } | |
f8f6ec92 | 7852 | |
f11781c5 AK |
7853 | if test -n "$CONFDB_CFLAGS"; then |
7854 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
7855 | elif test -n "$PKG_CONFIG"; then | |
7856 | if test -n "$PKG_CONFIG" && \ | |
7857 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7858 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
f8f6ec92 | 7859 | ac_status=$? |
f11781c5 AK |
7860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7861 | test $ac_status = 0; }; then | |
7862 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
66e941e8 | 7863 | else |
f11781c5 AK |
7864 | pkg_failed=yes |
7865 | fi | |
7866 | else | |
7867 | pkg_failed=untried | |
7868 | fi | |
7869 | if test -n "$CONFDB_LIBS"; then | |
7870 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
7871 | elif test -n "$PKG_CONFIG"; then | |
7872 | if test -n "$PKG_CONFIG" && \ | |
7873 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7874 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
7875 | ac_status=$? | |
7876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7877 | test $ac_status = 0; }; then | |
7878 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
7879 | else | |
7880 | pkg_failed=yes | |
7881 | fi | |
7882 | else | |
7883 | pkg_failed=untried | |
f8f6ec92 ZK |
7884 | fi |
7885 | ||
f8f6ec92 | 7886 | |
66e941e8 | 7887 | |
f11781c5 AK |
7888 | if test $pkg_failed = yes; then |
7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7890 | $as_echo "no" >&6; } | |
7891 | ||
7892 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7893 | _pkg_short_errors_supported=yes | |
f8f6ec92 | 7894 | else |
f11781c5 | 7895 | _pkg_short_errors_supported=no |
66e941e8 | 7896 | fi |
f11781c5 AK |
7897 | if test $_pkg_short_errors_supported = yes; then |
7898 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
7899 | else | |
7900 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
7901 | fi | |
7902 | # Put the nasty error message in config.log where it belongs | |
7903 | echo "$CONFDB_PKG_ERRORS" >&5 | |
66e941e8 | 7904 | |
f11781c5 AK |
7905 | HAVE_CONFDB=no |
7906 | elif test $pkg_failed = untried; then | |
7907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7908 | $as_echo "no" >&6; } | |
7909 | HAVE_CONFDB=no | |
7910 | else | |
7911 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
7912 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
7913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7914 | $as_echo "yes" >&6; } | |
7915 | HAVE_CONFDB=yes | |
66e941e8 | 7916 | fi |
f11781c5 AK |
7917 | |
7918 | for ac_header in corosync/confdb.h | |
7919 | do : | |
7920 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default" | |
7921 | if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then : | |
f8f6ec92 | 7922 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 7923 | #define HAVE_COROSYNC_CONFDB_H 1 |
f8f6ec92 | 7924 | _ACEOF |
f11781c5 | 7925 | HAVE_CONFDB_H=yes |
66e941e8 | 7926 | else |
f11781c5 | 7927 | HAVE_CONFDB_H=no |
66e941e8 | 7928 | fi |
dd1f2c09 MB |
7929 | |
7930 | done | |
7931 | ||
7932 | ||
f11781c5 AK |
7933 | if test x$HAVE_CONFDB != xyes && \ |
7934 | test x$HAVE_CONFDB_H = xyes; then | |
7935 | check_lib_no_libs confdb confdb_initialize | |
7936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5 | |
7937 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
7938 | CONFDB_LIBS="-lconfdb" | |
7939 | HAVE_CONFDB=yes | |
7940 | fi | |
7941 | ||
7942 | if test x$BUILDCOROSYNC = xyes && \ | |
7943 | test x$HAVE_CONFDB != xyes && | |
7944 | test x$CLVMD != xall; then | |
7945 | as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5 | |
7946 | fi | |
dd1f2c09 | 7947 | fi |
f11781c5 AK |
7948 | |
7949 | if test x$CHECKCPG = xyes; then | |
7950 | ||
7951 | pkg_failed=no | |
7952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
7953 | $as_echo_n "checking for CPG... " >&6; } | |
7954 | ||
7955 | if test -n "$CPG_CFLAGS"; then | |
7956 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
7957 | elif test -n "$PKG_CONFIG"; then | |
7958 | if test -n "$PKG_CONFIG" && \ | |
7959 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
7960 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
7961 | ac_status=$? | |
7962 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7963 | test $ac_status = 0; }; then | |
7964 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
dd1f2c09 | 7965 | else |
f11781c5 AK |
7966 | pkg_failed=yes |
7967 | fi | |
7968 | else | |
7969 | pkg_failed=untried | |
7970 | fi | |
7971 | if test -n "$CPG_LIBS"; then | |
7972 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
7973 | elif test -n "$PKG_CONFIG"; then | |
7974 | if test -n "$PKG_CONFIG" && \ | |
7975 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
7976 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
dd1f2c09 | 7977 | ac_status=$? |
f11781c5 AK |
7978 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7979 | test $ac_status = 0; }; then | |
7980 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
dd1f2c09 | 7981 | else |
f11781c5 AK |
7982 | pkg_failed=yes |
7983 | fi | |
7984 | else | |
7985 | pkg_failed=untried | |
7986 | fi | |
7987 | ||
7988 | ||
7989 | ||
7990 | if test $pkg_failed = yes; then | |
7991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7992 | $as_echo "no" >&6; } | |
7993 | ||
7994 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7995 | _pkg_short_errors_supported=yes | |
7996 | else | |
7997 | _pkg_short_errors_supported=no | |
7998 | fi | |
7999 | if test $_pkg_short_errors_supported = yes; then | |
8000 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8001 | else | |
8002 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8003 | fi | |
8004 | # Put the nasty error message in config.log where it belongs | |
8005 | echo "$CPG_PKG_ERRORS" >&5 | |
dd1f2c09 | 8006 | |
f11781c5 AK |
8007 | $bailout |
8008 | elif test $pkg_failed = untried; then | |
8009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8010 | $as_echo "no" >&6; } | |
8011 | $bailout | |
8012 | else | |
8013 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
8014 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8016 | $as_echo "yes" >&6; } | |
8017 | HAVE_CPG=yes | |
8018 | fi | |
dd1f2c09 MB |
8019 | fi |
8020 | ||
f11781c5 | 8021 | if test x$CHECKDLM = xyes; then |
dd1f2c09 | 8022 | |
f11781c5 AK |
8023 | pkg_failed=no |
8024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5 | |
8025 | $as_echo_n "checking for DLM... " >&6; } | |
8026 | ||
8027 | if test -n "$DLM_CFLAGS"; then | |
8028 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
8029 | elif test -n "$PKG_CONFIG"; then | |
8030 | if test -n "$PKG_CONFIG" && \ | |
8031 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8032 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
dd1f2c09 | 8033 | ac_status=$? |
f11781c5 AK |
8034 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8035 | test $ac_status = 0; }; then | |
8036 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
dd1f2c09 | 8037 | else |
f11781c5 AK |
8038 | pkg_failed=yes |
8039 | fi | |
8040 | else | |
8041 | pkg_failed=untried | |
8042 | fi | |
8043 | if test -n "$DLM_LIBS"; then | |
8044 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
8045 | elif test -n "$PKG_CONFIG"; then | |
8046 | if test -n "$PKG_CONFIG" && \ | |
8047 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8048 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
8049 | ac_status=$? | |
8050 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8051 | test $ac_status = 0; }; then | |
8052 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
8053 | else | |
8054 | pkg_failed=yes | |
8055 | fi | |
8056 | else | |
8057 | pkg_failed=untried | |
dd1f2c09 MB |
8058 | fi |
8059 | ||
dd1f2c09 | 8060 | |
dd1f2c09 | 8061 | |
f11781c5 AK |
8062 | if test $pkg_failed = yes; then |
8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8064 | $as_echo "no" >&6; } | |
8065 | ||
8066 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8067 | _pkg_short_errors_supported=yes | |
dd1f2c09 | 8068 | else |
f11781c5 | 8069 | _pkg_short_errors_supported=no |
dd1f2c09 | 8070 | fi |
f11781c5 AK |
8071 | if test $_pkg_short_errors_supported = yes; then |
8072 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
8073 | else | |
8074 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
8075 | fi | |
8076 | # Put the nasty error message in config.log where it belongs | |
8077 | echo "$DLM_PKG_ERRORS" >&5 | |
dd1f2c09 | 8078 | |
f11781c5 AK |
8079 | NOTFOUND=0 |
8080 | for ac_header in libdlm.h | |
8081 | do : | |
8082 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8083 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
dd1f2c09 | 8084 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 8085 | #define HAVE_LIBDLM_H 1 |
dd1f2c09 MB |
8086 | _ACEOF |
8087 | ||
f11781c5 AK |
8088 | else |
8089 | $bailout | |
dd1f2c09 | 8090 | fi |
f8f6ec92 ZK |
8091 | |
8092 | done | |
8093 | ||
f11781c5 AK |
8094 | check_lib_no_libs dlm dlm_lock -lpthread |
8095 | if test $NOTFOUND = 0; then | |
8096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8097 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8098 | DLM_LIBS="-ldlm -lpthread" | |
8099 | HAVE_DLM=yes | |
8100 | fi | |
8101 | elif test $pkg_failed = untried; then | |
8102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8103 | $as_echo "no" >&6; } | |
8104 | NOTFOUND=0 | |
8105 | for ac_header in libdlm.h | |
8106 | do : | |
8107 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8108 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
8109 | cat >>confdefs.h <<_ACEOF | |
8110 | #define HAVE_LIBDLM_H 1 | |
f8f6ec92 ZK |
8111 | _ACEOF |
8112 | ||
f8f6ec92 | 8113 | else |
f11781c5 | 8114 | $bailout |
ad6254c5 AK |
8115 | fi |
8116 | ||
f11781c5 | 8117 | done |
8b1a3214 | 8118 | |
f11781c5 AK |
8119 | check_lib_no_libs dlm dlm_lock -lpthread |
8120 | if test $NOTFOUND = 0; then | |
8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8122 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8123 | DLM_LIBS="-ldlm -lpthread" | |
8124 | HAVE_DLM=yes | |
8125 | fi | |
8b1a3214 | 8126 | else |
f11781c5 AK |
8127 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS |
8128 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
8129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8130 | $as_echo "yes" >&6; } | |
8131 | HAVE_DLM=yes | |
8b1a3214 | 8132 | fi |
8b1a3214 AK |
8133 | fi |
8134 | ||
f11781c5 AK |
8135 | if test x$CLVMD = xall; then |
8136 | CLVMD=none | |
8137 | CLVMD_CMANAGERS="" | |
8138 | CLVMD_NEEDS_QDISKD=no | |
8139 | if test x$HAVE_CCS = xyes && \ | |
8140 | test x$HAVE_GULM = xyes; then | |
8141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd gulm cluster manager" >&5 | |
8142 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
8143 | CLVMD="$CLVMD,gulm" | |
8144 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd" | |
8145 | CLVMD_NEEDS_QDISKD=yes | |
8146 | fi | |
8147 | if test x$HAVE_CMAN = xyes && \ | |
8148 | test x$HAVE_DLM = xyes; then | |
8149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5 | |
8150 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
8151 | CLVMD="$CLVMD,cman" | |
8152 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
8153 | CLVMD_NEEDS_QDISKD=yes | |
8154 | fi | |
8155 | if test x$HAVE_COROSYNC = xyes && \ | |
8156 | test x$HAVE_QUORUM = xyes && \ | |
8157 | test x$HAVE_CPG = xyes && \ | |
8158 | test x$HAVE_DLM = xyes && \ | |
8159 | test x$HAVE_CONFDB = xyes; then | |
8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5 | |
8161 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
8162 | CLVMD="$CLVMD,corosync" | |
8163 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
8164 | fi | |
8165 | if test x$HAVE_COROSYNC = xyes && \ | |
8166 | test x$HAVE_CPG = xyes && \ | |
8167 | test x$HAVE_SALCK = xyes; then | |
8168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5 | |
8169 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
8170 | CLVMD="$CLVMD,openais" | |
8171 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
8172 | fi | |
8173 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
8174 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
8175 | fi | |
8176 | if test x$CLVMD = xnone; then | |
8177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5 | |
8178 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
8b1a3214 AK |
8179 | fi |
8180 | fi | |
8181 | ||
ad6254c5 | 8182 | ################################################################################ |
f11781c5 | 8183 | if test "x$CLVMD" != xnone; then |
ad6254c5 | 8184 | |
f11781c5 AK |
8185 | # Check whether --with-clvmd-pidfile was given. |
8186 | if test "${with_clvmd_pidfile+set}" = set; then : | |
8187 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
ad6254c5 | 8188 | else |
f11781c5 | 8189 | CLVMD_PIDFILE="/var/run/clvmd.pid" |
ad6254c5 | 8190 | fi |
7a197a62 | 8191 | |
ad6254c5 | 8192 | |
f11781c5 AK |
8193 | cat >>confdefs.h <<_ACEOF |
8194 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
ad6254c5 | 8195 | _ACEOF |
ad6254c5 | 8196 | |
ad6254c5 | 8197 | fi |
7a197a62 | 8198 | |
f11781c5 AK |
8199 | ################################################################################ |
8200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5 | |
8201 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
8202 | # Check whether --enable-cmirrord was given. | |
8203 | if test "${enable_cmirrord+set}" = set; then : | |
8204 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
8205 | else | |
8206 | CMIRRORD=no | |
8207 | fi | |
8208 | ||
8209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5 | |
8210 | $as_echo "$CMIRRORD" >&6; } | |
ad6254c5 | 8211 | |
f11781c5 | 8212 | BUILD_CMIRRORD=$CMIRRORD |
7a197a62 | 8213 | |
f11781c5 AK |
8214 | ################################################################################ |
8215 | if test "x$BUILD_CMIRRORD" = xyes; then | |
8216 | ||
8217 | # Check whether --with-cmirrord-pidfile was given. | |
8218 | if test "${with_cmirrord_pidfile+set}" = set; then : | |
8219 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval | |
ad6254c5 | 8220 | else |
f11781c5 | 8221 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
ad6254c5 | 8222 | fi |
ad6254c5 | 8223 | |
72b2cb61 | 8224 | |
f11781c5 AK |
8225 | cat >>confdefs.h <<_ACEOF |
8226 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
72b2cb61 AK |
8227 | _ACEOF |
8228 | ||
ad6254c5 AK |
8229 | fi |
8230 | ||
f11781c5 AK |
8231 | ################################################################################ |
8232 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
8233 | if test x$PKGCONFIG_INIT != x1; then | |
8234 | pkg_config_init | |
8235 | fi | |
ad6254c5 | 8236 | |
f11781c5 AK |
8237 | pkg_failed=no |
8238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5 | |
8239 | $as_echo_n "checking for SACKPT... " >&6; } | |
ad6254c5 | 8240 | |
f11781c5 AK |
8241 | if test -n "$SACKPT_CFLAGS"; then |
8242 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
8243 | elif test -n "$PKG_CONFIG"; then | |
8244 | if test -n "$PKG_CONFIG" && \ | |
8245 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8246 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
8247 | ac_status=$? | |
8248 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8249 | test $ac_status = 0; }; then | |
8250 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8251 | else |
f11781c5 AK |
8252 | pkg_failed=yes |
8253 | fi | |
8254 | else | |
8255 | pkg_failed=untried | |
8256 | fi | |
8257 | if test -n "$SACKPT_LIBS"; then | |
8258 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
8259 | elif test -n "$PKG_CONFIG"; then | |
8260 | if test -n "$PKG_CONFIG" && \ | |
8261 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8262 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
539f4a77 | 8263 | ac_status=$? |
f11781c5 AK |
8264 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8265 | test $ac_status = 0; }; then | |
8266 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8267 | else |
f11781c5 AK |
8268 | pkg_failed=yes |
8269 | fi | |
8270 | else | |
8271 | pkg_failed=untried | |
8272 | fi | |
539f4a77 ZK |
8273 | |
8274 | ||
539f4a77 | 8275 | |
f11781c5 AK |
8276 | if test $pkg_failed = yes; then |
8277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8278 | $as_echo "no" >&6; } | |
8279 | ||
8280 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8281 | _pkg_short_errors_supported=yes | |
539f4a77 | 8282 | else |
f11781c5 | 8283 | _pkg_short_errors_supported=no |
539f4a77 | 8284 | fi |
f11781c5 AK |
8285 | if test $_pkg_short_errors_supported = yes; then |
8286 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
8287 | else | |
8288 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
8289 | fi | |
8290 | # Put the nasty error message in config.log where it belongs | |
8291 | echo "$SACKPT_PKG_ERRORS" >&5 | |
8292 | ||
8293 | as_fn_error $? "Package requirements (libSaCkpt) were not met: | |
8294 | ||
8295 | $SACKPT_PKG_ERRORS | |
8296 | ||
8297 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8298 | installed software in a non-standard prefix. | |
8299 | ||
8300 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
8301 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8302 | See the pkg-config man page for more details." "$LINENO" 5 | |
8303 | ||
8304 | elif test $pkg_failed = untried; then | |
8305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8306 | $as_echo "no" >&6; } | |
8307 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8308 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8309 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8310 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8311 | path to pkg-config. | |
8312 | ||
8313 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
8314 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8315 | See the pkg-config man page for more details. | |
8316 | ||
8317 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8318 | See \`config.log' for more details" "$LINENO" 5; } | |
8319 | ||
539f4a77 | 8320 | else |
f11781c5 AK |
8321 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS |
8322 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
8323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8324 | $as_echo "yes" >&6; } | |
539f4a77 | 8325 | |
539f4a77 | 8326 | fi |
f11781c5 | 8327 | if test x$HAVE_CPG != xyes; then |
539f4a77 | 8328 | |
f11781c5 AK |
8329 | pkg_failed=no |
8330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
8331 | $as_echo_n "checking for CPG... " >&6; } | |
ad6254c5 | 8332 | |
f11781c5 AK |
8333 | if test -n "$CPG_CFLAGS"; then |
8334 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
8335 | elif test -n "$PKG_CONFIG"; then | |
8336 | if test -n "$PKG_CONFIG" && \ | |
8337 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8338 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
ad6254c5 | 8339 | ac_status=$? |
f11781c5 AK |
8340 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8341 | test $ac_status = 0; }; then | |
8342 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
ad6254c5 | 8343 | else |
f11781c5 AK |
8344 | pkg_failed=yes |
8345 | fi | |
8346 | else | |
8347 | pkg_failed=untried | |
8348 | fi | |
8349 | if test -n "$CPG_LIBS"; then | |
8350 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8351 | elif test -n "$PKG_CONFIG"; then | |
8352 | if test -n "$PKG_CONFIG" && \ | |
8353 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8354 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
8355 | ac_status=$? | |
8356 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8357 | test $ac_status = 0; }; then | |
8358 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
8359 | else | |
8360 | pkg_failed=yes | |
8361 | fi | |
8362 | else | |
8363 | pkg_failed=untried | |
8364 | fi | |
8365 | ||
8366 | ||
8367 | ||
8368 | if test $pkg_failed = yes; then | |
8369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8370 | $as_echo "no" >&6; } | |
ad6254c5 | 8371 | |
f11781c5 AK |
8372 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
8373 | _pkg_short_errors_supported=yes | |
8374 | else | |
8375 | _pkg_short_errors_supported=no | |
ad6254c5 | 8376 | fi |
f11781c5 AK |
8377 | if test $_pkg_short_errors_supported = yes; then |
8378 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8379 | else | |
8380 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8381 | fi | |
8382 | # Put the nasty error message in config.log where it belongs | |
8383 | echo "$CPG_PKG_ERRORS" >&5 | |
8384 | ||
8385 | as_fn_error $? "Package requirements (libcpg) were not met: | |
8386 | ||
8387 | $CPG_PKG_ERRORS | |
8388 | ||
8389 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8390 | installed software in a non-standard prefix. | |
8391 | ||
8392 | Alternatively, you may set the environment variables CPG_CFLAGS | |
8393 | and CPG_LIBS to avoid the need to call pkg-config. | |
8394 | See the pkg-config man page for more details." "$LINENO" 5 | |
7a197a62 | 8395 | |
f11781c5 AK |
8396 | elif test $pkg_failed = untried; then |
8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8398 | $as_echo "no" >&6; } | |
8399 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8400 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8401 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8402 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8403 | path to pkg-config. | |
539f4a77 | 8404 | |
f11781c5 AK |
8405 | Alternatively, you may set the environment variables CPG_CFLAGS |
8406 | and CPG_LIBS to avoid the need to call pkg-config. | |
8407 | See the pkg-config man page for more details. | |
539f4a77 | 8408 | |
f11781c5 AK |
8409 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
8410 | See \`config.log' for more details" "$LINENO" 5; } | |
bc1024f8 | 8411 | |
539f4a77 | 8412 | else |
f11781c5 AK |
8413 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS |
8414 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8416 | $as_echo "yes" >&6; } | |
bc1024f8 | 8417 | |
f11781c5 AK |
8418 | fi |
8419 | fi | |
8420 | fi | |
8421 | ||
8422 | ################################################################################ | |
8423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 | |
8424 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
8425 | # Check whether --enable-debug was given. | |
8426 | if test "${enable_debug+set}" = set; then : | |
8427 | enableval=$enable_debug; DEBUG=$enableval | |
ad6254c5 | 8428 | else |
f11781c5 AK |
8429 | DEBUG=no |
8430 | fi | |
8431 | ||
8432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5 | |
8433 | $as_echo "$DEBUG" >&6; } | |
539f4a77 | 8434 | |
f11781c5 AK |
8435 | if test x$DEBUG = xyes; then |
8436 | COPTIMISE_FLAG= | |
8437 | else | |
8438 | CSCOPE_CMD= | |
06e459df JM |
8439 | fi |
8440 | ||
f11781c5 AK |
8441 | ################################################################################ |
8442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5 | |
8443 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
8444 | ||
8445 | # Check whether --with-optimisation was given. | |
8446 | if test "${with_optimisation+set}" = set; then : | |
8447 | withval=$with_optimisation; COPTIMISE_FLAG=$withval | |
539f4a77 | 8448 | fi |
539f4a77 | 8449 | |
f11781c5 AK |
8450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5 |
8451 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
539f4a77 | 8452 | |
f11781c5 AK |
8453 | ################################################################################ |
8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5 | |
8455 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
8456 | # Check whether --enable-profiling was given. | |
8457 | if test "${enable_profiling+set}" = set; then : | |
8458 | enableval=$enable_profiling; PROFILING=$enableval | |
8459 | else | |
8460 | PROFILING=no | |
539f4a77 ZK |
8461 | fi |
8462 | ||
f11781c5 AK |
8463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5 |
8464 | $as_echo "$PROFILING" >&6; } | |
8465 | ||
8466 | if test "x$PROFILING" = xyes; then | |
8467 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8468 | # Extract the first word of "lcov", so it can be a program name with args. | |
8469 | set dummy lcov; ac_word=$2 | |
8470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8471 | $as_echo_n "checking for $ac_word... " >&6; } | |
8472 | if test "${ac_cv_path_LCOV+set}" = set; then : | |
8473 | $as_echo_n "(cached) " >&6 | |
539f4a77 | 8474 | else |
f11781c5 AK |
8475 | case $LCOV in |
8476 | [\\/]* | ?:[\\/]*) | |
8477 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8478 | ;; | |
8479 | *) | |
8480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8481 | for as_dir in $PATH | |
8482 | do | |
8483 | IFS=$as_save_IFS | |
8484 | test -z "$as_dir" && as_dir=. | |
8485 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8486 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8487 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
8488 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8489 | break 2 | |
8490 | fi | |
8491 | done | |
8492 | done | |
8493 | IFS=$as_save_IFS | |
539f4a77 | 8494 | |
f11781c5 AK |
8495 | ;; |
8496 | esac | |
8497 | fi | |
8498 | LCOV=$ac_cv_path_LCOV | |
8499 | if test -n "$LCOV"; then | |
8500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 | |
8501 | $as_echo "$LCOV" >&6; } | |
8502 | else | |
8503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8504 | $as_echo "no" >&6; } | |
539f4a77 ZK |
8505 | fi |
8506 | ||
bc1024f8 | 8507 | |
f11781c5 AK |
8508 | # Extract the first word of "genhtml", so it can be a program name with args. |
8509 | set dummy genhtml; ac_word=$2 | |
8510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8511 | $as_echo_n "checking for $ac_word... " >&6; } | |
8512 | if test "${ac_cv_path_GENHTML+set}" = set; then : | |
ec6a6fbe | 8513 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8514 | else |
f11781c5 AK |
8515 | case $GENHTML in |
8516 | [\\/]* | ?:[\\/]*) | |
8517 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8518 | ;; | |
8519 | *) | |
8520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8521 | for as_dir in $PATH | |
8522 | do | |
8523 | IFS=$as_save_IFS | |
8524 | test -z "$as_dir" && as_dir=. | |
8525 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8527 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
8528 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8529 | break 2 | |
8530 | fi | |
8531 | done | |
8532 | done | |
8533 | IFS=$as_save_IFS | |
8a2fc586 | 8534 | |
f11781c5 AK |
8535 | ;; |
8536 | esac | |
8537 | fi | |
8538 | GENHTML=$ac_cv_path_GENHTML | |
8539 | if test -n "$GENHTML"; then | |
8540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 | |
8541 | $as_echo "$GENHTML" >&6; } | |
8542 | else | |
8543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8544 | $as_echo "no" >&6; } | |
8545 | fi | |
8a2fc586 | 8546 | |
8a2fc586 | 8547 | |
f11781c5 AK |
8548 | if test -z "$LCOV" -o -z "$GENHTML"; then |
8549 | as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5 | |
8550 | fi | |
8551 | # Extract the first word of "genpng", so it can be a program name with args. | |
8552 | set dummy genpng; ac_word=$2 | |
8553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8554 | $as_echo_n "checking for $ac_word... " >&6; } | |
8555 | if test "${ac_cv_path_GENPNG+set}" = set; then : | |
8556 | $as_echo_n "(cached) " >&6 | |
8557 | else | |
8558 | case $GENPNG in | |
8559 | [\\/]* | ?:[\\/]*) | |
8560 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
8561 | ;; | |
8562 | *) | |
8563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8564 | for as_dir in $PATH | |
8565 | do | |
8566 | IFS=$as_save_IFS | |
8567 | test -z "$as_dir" && as_dir=. | |
8568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8570 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
8571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8572 | break 2 | |
8573 | fi | |
8574 | done | |
8575 | done | |
8576 | IFS=$as_save_IFS | |
ad6254c5 | 8577 | |
f11781c5 | 8578 | ;; |
7a197a62 | 8579 | esac |
f11781c5 AK |
8580 | fi |
8581 | GENPNG=$ac_cv_path_GENPNG | |
8582 | if test -n "$GENPNG"; then | |
8583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5 | |
8584 | $as_echo "$GENPNG" >&6; } | |
ad6254c5 | 8585 | else |
f11781c5 AK |
8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8587 | $as_echo "no" >&6; } | |
8588 | fi | |
8589 | ||
8590 | ||
8591 | if test -n "$GENPNG"; then | |
8592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5 | |
8593 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
8594 | if $GENPNG --help > /dev/null 2>&1 ; then | |
8595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
8596 | $as_echo "ok" >&6; } | |
8597 | GENHTML="$GENHTML --frames" | |
8598 | else | |
8599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 | |
8600 | $as_echo "not supported" >&6; } | |
8601 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5 | |
8602 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
8603 | GENPNG= | |
8604 | fi | |
8605 | fi | |
8606 | fi | |
ad6254c5 | 8607 | |
f11781c5 AK |
8608 | ################################################################################ |
8609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5 | |
8610 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
8611 | # Check whether --enable-testing was given. | |
8612 | if test "${enable_testing+set}" = set; then : | |
8613 | enableval=$enable_testing; TESTING=$enableval | |
8614 | else | |
8615 | TESTING=no | |
ad6254c5 | 8616 | fi |
7a197a62 | 8617 | |
f11781c5 AK |
8618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5 |
8619 | $as_echo "$TESTING" >&6; } | |
72b2cb61 | 8620 | |
f11781c5 AK |
8621 | if test "$TESTING" = yes; then |
8622 | # Extract the first word of "ruby1.9", so it can be a program name with args. | |
8623 | set dummy ruby1.9; ac_word=$2 | |
8624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8625 | $as_echo_n "checking for $ac_word... " >&6; } | |
8626 | if test "${ac_cv_path_RUBY19+set}" = set; then : | |
8627 | $as_echo_n "(cached) " >&6 | |
8628 | else | |
8629 | case $RUBY19 in | |
8630 | [\\/]* | ?:[\\/]*) | |
8631 | ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path. | |
8632 | ;; | |
8633 | *) | |
8634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8635 | for as_dir in $PATH | |
8636 | do | |
8637 | IFS=$as_save_IFS | |
8638 | test -z "$as_dir" && as_dir=. | |
8639 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8641 | ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext" | |
8642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8643 | break 2 | |
8644 | fi | |
bc1024f8 | 8645 | done |
f11781c5 AK |
8646 | done |
8647 | IFS=$as_save_IFS | |
ad6254c5 | 8648 | |
f11781c5 AK |
8649 | ;; |
8650 | esac | |
ad6254c5 | 8651 | fi |
f11781c5 AK |
8652 | RUBY19=$ac_cv_path_RUBY19 |
8653 | if test -n "$RUBY19"; then | |
8654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5 | |
8655 | $as_echo "$RUBY19" >&6; } | |
ad6254c5 | 8656 | else |
f11781c5 AK |
8657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8658 | $as_echo "no" >&6; } | |
7a197a62 AK |
8659 | fi |
8660 | ||
ad6254c5 | 8661 | |
f11781c5 AK |
8662 | # Extract the first word of "valgrind", so it can be a program name with args. |
8663 | set dummy valgrind; ac_word=$2 | |
8664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
ec6a6fbe | 8665 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 8666 | if test "${ac_cv_path_VALGRIND+set}" = set; then : |
ec6a6fbe | 8667 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8668 | else |
f11781c5 | 8669 | case $VALGRIND in |
ad6254c5 | 8670 | [\\/]* | ?:[\\/]*) |
f11781c5 | 8671 | ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. |
ad6254c5 AK |
8672 | ;; |
8673 | *) | |
8674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8675 | for as_dir in $PATH | |
8676 | do | |
8677 | IFS=$as_save_IFS | |
8678 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 8679 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 8680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
8681 | ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext" |
8682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
ad6254c5 AK |
8683 | break 2 |
8684 | fi | |
8685 | done | |
f11781c5 | 8686 | done |
7a197a62 | 8687 | IFS=$as_save_IFS |
ad6254c5 AK |
8688 | |
8689 | ;; | |
8690 | esac | |
8691 | fi | |
f11781c5 AK |
8692 | VALGRIND=$ac_cv_path_VALGRIND |
8693 | if test -n "$VALGRIND"; then | |
8694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 | |
8695 | $as_echo "$VALGRIND" >&6; } | |
ad6254c5 | 8696 | else |
f11781c5 | 8697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 8698 | $as_echo "no" >&6; } |
ad6254c5 AK |
8699 | fi |
8700 | ||
7a197a62 | 8701 | |
f11781c5 AK |
8702 | if test -z "$RUBY19" -o -z "$VALGRIND"; then |
8703 | as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5 | |
8704 | fi | |
8705 | fi | |
ad6254c5 | 8706 | |
f11781c5 AK |
8707 | ################################################################################ |
8708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5 | |
8709 | $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; } | |
8710 | # Check whether --enable-valgrind_pool was given. | |
8711 | if test "${enable_valgrind_pool+set}" = set; then : | |
8712 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval | |
8713 | else | |
8714 | VALGRIND_POOL=no | |
8715 | fi | |
8716 | ||
8717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5 | |
8718 | $as_echo "$VALGRIND_POOL" >&6; } | |
8719 | ||
8720 | if test "$VALGRIND_POOL" = yes; then | |
8721 | for ac_header in valgrind/memcheck.h | |
8722 | do : | |
8723 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" | |
8724 | if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then : | |
8725 | cat >>confdefs.h <<_ACEOF | |
8726 | #define HAVE_VALGRIND_MEMCHECK_H 1 | |
8727 | _ACEOF | |
ad6254c5 | 8728 | |
ad6254c5 | 8729 | else |
f11781c5 | 8730 | as_fn_error $? "bailing out" "$LINENO" 5 |
7a197a62 AK |
8731 | fi |
8732 | ||
f11781c5 AK |
8733 | done |
8734 | ||
8735 | ||
8736 | $as_echo "#define VALGRIND_POOL 1" >>confdefs.h | |
8737 | ||
ad6254c5 AK |
8738 | fi |
8739 | ||
8740 | ################################################################################ | |
f11781c5 AK |
8741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5 |
8742 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
8743 | # Check whether --enable-devmapper was given. | |
8744 | if test "${enable_devmapper+set}" = set; then : | |
8745 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
7a197a62 AK |
8746 | fi |
8747 | ||
f11781c5 AK |
8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5 |
8749 | $as_echo "$DEVMAPPER" >&6; } | |
ad6254c5 | 8750 | |
f11781c5 | 8751 | if test x$DEVMAPPER = xyes; then |
ad6254c5 | 8752 | |
f11781c5 AK |
8753 | $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h |
8754 | ||
8755 | fi | |
8756 | ||
8757 | ################################################################################ | |
8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5 | |
8759 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
8760 | # Check whether --enable-udev_sync was given. | |
8761 | if test "${enable_udev_sync+set}" = set; then : | |
8762 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
ad6254c5 | 8763 | else |
f11781c5 | 8764 | UDEV_SYNC=no |
7a197a62 | 8765 | fi |
ad6254c5 | 8766 | |
f11781c5 AK |
8767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5 |
8768 | $as_echo "$UDEV_SYNC" >&6; } | |
33f732c5 | 8769 | |
f11781c5 | 8770 | if test x$UDEV_SYNC = xyes; then |
86ba564a AK |
8771 | if test x$PKGCONFIG_INIT != x1; then |
8772 | pkg_config_init | |
8773 | fi | |
7a197a62 | 8774 | |
d93275eb PR |
8775 | pkg_failed=no |
8776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 | |
8777 | $as_echo_n "checking for UDEV... " >&6; } | |
8778 | ||
8779 | if test -n "$UDEV_CFLAGS"; then | |
8780 | pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" | |
8781 | elif test -n "$PKG_CONFIG"; then | |
8782 | if test -n "$PKG_CONFIG" && \ | |
8783 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8784 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8785 | ac_status=$? | |
8786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8787 | test $ac_status = 0; }; then | |
8788 | pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null` | |
68f2de6d | 8789 | else |
d93275eb | 8790 | pkg_failed=yes |
f11781c5 | 8791 | fi |
d93275eb PR |
8792 | else |
8793 | pkg_failed=untried | |
f11781c5 | 8794 | fi |
d93275eb PR |
8795 | if test -n "$UDEV_LIBS"; then |
8796 | pkg_cv_UDEV_LIBS="$UDEV_LIBS" | |
8797 | elif test -n "$PKG_CONFIG"; then | |
8798 | if test -n "$PKG_CONFIG" && \ | |
8799 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8800 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8801 | ac_status=$? | |
8802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8803 | test $ac_status = 0; }; then | |
8804 | pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null` | |
f11781c5 | 8805 | else |
d93275eb | 8806 | pkg_failed=yes |
68f2de6d | 8807 | fi |
d93275eb PR |
8808 | else |
8809 | pkg_failed=untried | |
8810 | fi | |
8811 | ||
8812 | ||
8813 | ||
8814 | if test $pkg_failed = yes; then | |
8815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8816 | $as_echo "no" >&6; } | |
8817 | ||
8818 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8819 | _pkg_short_errors_supported=yes | |
8820 | else | |
8821 | _pkg_short_errors_supported=no | |
8822 | fi | |
8823 | if test $_pkg_short_errors_supported = yes; then | |
8824 | UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1` | |
8825 | else | |
8826 | UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1` | |
8827 | fi | |
8828 | # Put the nasty error message in config.log where it belongs | |
8829 | echo "$UDEV_PKG_ERRORS" >&5 | |
8830 | ||
8831 | as_fn_error $? "Package requirements (libudev >= 143) were not met: | |
8832 | ||
8833 | $UDEV_PKG_ERRORS | |
8834 | ||
8835 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8836 | installed software in a non-standard prefix. | |
8837 | ||
8838 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8839 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8840 | See the pkg-config man page for more details." "$LINENO" 5 | |
68f2de6d | 8841 | |
d93275eb PR |
8842 | elif test $pkg_failed = untried; then |
8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8844 | $as_echo "no" >&6; } | |
8845 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8846 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8847 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8848 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8849 | path to pkg-config. | |
8850 | ||
8851 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8852 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8853 | See the pkg-config man page for more details. | |
8854 | ||
8855 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8856 | See \`config.log' for more details" "$LINENO" 5; } | |
8857 | ||
8858 | else | |
8859 | UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS | |
8860 | UDEV_LIBS=$pkg_cv_UDEV_LIBS | |
8861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8862 | $as_echo "yes" >&6; } | |
8863 | UDEV_PC="libudev" | |
8864 | fi | |
68f2de6d | 8865 | |
f11781c5 | 8866 | $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h |
68f2de6d | 8867 | |
f11781c5 AK |
8868 | fi |
8869 | ||
8870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
8871 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
8872 | # Check whether --enable-udev_rules was given. | |
8873 | if test "${enable_udev_rules+set}" = set; then : | |
8874 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
68f2de6d | 8875 | else |
f11781c5 | 8876 | UDEV_RULES=$UDEV_SYNC |
68f2de6d AK |
8877 | fi |
8878 | ||
f11781c5 AK |
8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5 |
8880 | $as_echo "$UDEV_RULES" >&6; } | |
68f2de6d | 8881 | |
a5f46f6a | 8882 | ################################################################################ |
f11781c5 AK |
8883 | # Check whether --enable-compat was given. |
8884 | if test "${enable_compat+set}" = set; then : | |
8885 | enableval=$enable_compat; DM_COMPAT=$enableval | |
8886 | else | |
8887 | DM_COMPAT=no | |
8888 | fi | |
a5f46f6a | 8889 | |
f11781c5 AK |
8890 | |
8891 | ################################################################################ | |
8892 | # Check whether --enable-units-compat was given. | |
8893 | if test "${enable_units_compat+set}" = set; then : | |
8894 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
a5f46f6a | 8895 | else |
f11781c5 | 8896 | UNITS_COMPAT=no |
a5f46f6a AK |
8897 | fi |
8898 | ||
8899 | ||
f11781c5 | 8900 | if test x$UNITS_COMPAT = xyes; then |
78ce7acc | 8901 | |
f11781c5 AK |
8902 | $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h |
8903 | ||
8904 | fi | |
8905 | ||
8906 | ################################################################################ | |
8907 | # Check whether --enable-ioctl was given. | |
8908 | if test "${enable_ioctl+set}" = set; then : | |
8909 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
78ce7acc AK |
8910 | fi |
8911 | ||
a5f46f6a | 8912 | |
ad6254c5 | 8913 | ################################################################################ |
f11781c5 AK |
8914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5 |
8915 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
8916 | # Check whether --enable-o_direct was given. | |
8917 | if test "${enable_o_direct+set}" = set; then : | |
8918 | enableval=$enable_o_direct; ODIRECT=$enableval | |
8919 | fi | |
ad6254c5 | 8920 | |
f11781c5 AK |
8921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5 |
8922 | $as_echo "$ODIRECT" >&6; } | |
8923 | ||
8924 | if test x$ODIRECT = xyes; then | |
8925 | ||
8926 | $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h | |
ad6254c5 | 8927 | |
ad6254c5 | 8928 | fi |
ad6254c5 | 8929 | |
f11781c5 AK |
8930 | ################################################################################ |
8931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5 | |
8932 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
8933 | # Check whether --enable-applib was given. | |
8934 | if test "${enable_applib+set}" = set; then : | |
8935 | enableval=$enable_applib; APPLIB=$enableval | |
8936 | else | |
8937 | APPLIB=no | |
ad6254c5 | 8938 | fi |
7a197a62 | 8939 | |
f11781c5 AK |
8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5 |
8941 | $as_echo "$APPLIB" >&6; } | |
ad6254c5 | 8942 | |
f11781c5 AK |
8943 | test x$APPLIB = xyes \ |
8944 | && LVM2APP_LIB=-llvm2app \ | |
8945 | || LVM2APP_LIB= | |
ad6254c5 | 8946 | |
f11781c5 AK |
8947 | ################################################################################ |
8948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5 | |
8949 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
8950 | # Check whether --enable-cmdlib was given. | |
8951 | if test "${enable_cmdlib+set}" = set; then : | |
8952 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
8953 | else | |
8954 | CMDLIB=no | |
ad6254c5 | 8955 | fi |
7a197a62 | 8956 | |
f11781c5 AK |
8957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5 |
8958 | $as_echo "$CMDLIB" >&6; } | |
7a197a62 | 8959 | |
f11781c5 AK |
8960 | test x$CMDLIB = xyes \ |
8961 | && LVM2CMD_LIB=-llvm2cmd \ | |
8962 | || LVM2CMD_LIB= | |
8963 | ||
8964 | ################################################################################ | |
8965 | # Check whether --enable-pkgconfig was given. | |
8966 | if test "${enable_pkgconfig+set}" = set; then : | |
8967 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
ad6254c5 | 8968 | else |
f11781c5 | 8969 | PKGCONFIG=no |
ad6254c5 | 8970 | fi |
ad6254c5 | 8971 | |
ad6254c5 | 8972 | |
f11781c5 AK |
8973 | ################################################################################ |
8974 | # Check whether --enable-write_install was given. | |
8975 | if test "${enable_write_install+set}" = set; then : | |
8976 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
ad6254c5 | 8977 | else |
f11781c5 | 8978 | WRITE_INSTALL=no |
ad6254c5 AK |
8979 | fi |
8980 | ||
ad6254c5 | 8981 | |
f11781c5 AK |
8982 | ################################################################################ |
8983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5 | |
8984 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
8985 | # Check whether --enable-fsadm was given. | |
8986 | if test "${enable_fsadm+set}" = set; then : | |
8987 | enableval=$enable_fsadm; FSADM=$enableval | |
ad6254c5 AK |
8988 | fi |
8989 | ||
f11781c5 AK |
8990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5 |
8991 | $as_echo "$FSADM" >&6; } | |
ad6254c5 | 8992 | |
f11781c5 AK |
8993 | ################################################################################ |
8994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5 | |
8995 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
8996 | # Check whether --enable-dmeventd was given. | |
8997 | if test "${enable_dmeventd+set}" = set; then : | |
8998 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
8999 | fi | |
ad6254c5 | 9000 | |
f11781c5 AK |
9001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5 |
9002 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 9003 | |
f11781c5 | 9004 | BUILD_DMEVENTD=$DMEVENTD |
ad6254c5 | 9005 | |
f11781c5 AK |
9006 | if test x$DMEVENTD = xyes; then |
9007 | if test x$MIRRORS != xinternal; then | |
9008 | as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal | |
9009 | " "$LINENO" 5 | |
9010 | fi | |
9011 | if test x$CMDLIB = xno; then | |
9012 | as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well | |
9013 | " "$LINENO" 5 | |
9014 | fi | |
9015 | fi | |
ad6254c5 | 9016 | |
f11781c5 | 9017 | if test x$DMEVENTD = xyes; then |
ad6254c5 | 9018 | |
f11781c5 | 9019 | $as_echo "#define DMEVENTD 1" >>confdefs.h |
ad6254c5 | 9020 | |
f11781c5 | 9021 | fi |
ad6254c5 | 9022 | |
f11781c5 | 9023 | ################################################################################ |
ad6254c5 | 9024 | |
f11781c5 AK |
9025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5 |
9026 | $as_echo_n "checking for getline in -lc... " >&6; } | |
9027 | if test "${ac_cv_lib_c_getline+set}" = set; then : | |
ec6a6fbe | 9028 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9029 | else |
f11781c5 AK |
9030 | ac_check_lib_save_LIBS=$LIBS |
9031 | LIBS="-lc $LIBS" | |
9032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9033 | /* end confdefs.h. */ |
f11781c5 AK |
9034 | |
9035 | /* Override any GCC internal prototype to avoid an error. | |
9036 | Use char because int might match the return type of a GCC | |
9037 | builtin and then its argument prototype would still apply. */ | |
9038 | #ifdef __cplusplus | |
9039 | extern "C" | |
9040 | #endif | |
9041 | char getline (); | |
9042 | int | |
9043 | main () | |
9044 | { | |
9045 | return getline (); | |
9046 | ; | |
9047 | return 0; | |
9048 | } | |
ad6254c5 | 9049 | _ACEOF |
f11781c5 AK |
9050 | if ac_fn_c_try_link "$LINENO"; then : |
9051 | ac_cv_lib_c_getline=yes | |
ad6254c5 | 9052 | else |
f11781c5 AK |
9053 | ac_cv_lib_c_getline=no |
9054 | fi | |
9055 | rm -f core conftest.err conftest.$ac_objext \ | |
9056 | conftest$ac_exeext conftest.$ac_ext | |
9057 | LIBS=$ac_check_lib_save_LIBS | |
9058 | fi | |
9059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5 | |
9060 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
9061 | if test "x$ac_cv_lib_c_getline" = x""yes; then : | |
9062 | ||
9063 | $as_echo "#define HAVE_GETLINE 1" >>confdefs.h | |
ad6254c5 | 9064 | |
ad6254c5 | 9065 | fi |
7a197a62 | 9066 | |
ad6254c5 | 9067 | |
f11781c5 AK |
9068 | ################################################################################ |
9069 | ||
9070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5 | |
9071 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
9072 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then : | |
9073 | $as_echo_n "(cached) " >&6 | |
9074 | else | |
9075 | ac_check_lib_save_LIBS=$LIBS | |
9076 | LIBS="-lc $LIBS" | |
9077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9078 | /* end confdefs.h. */ |
f11781c5 AK |
9079 | |
9080 | /* Override any GCC internal prototype to avoid an error. | |
9081 | Use char because int might match the return type of a GCC | |
9082 | builtin and then its argument prototype would still apply. */ | |
9083 | #ifdef __cplusplus | |
9084 | extern "C" | |
9085 | #endif | |
9086 | char canonicalize_file_name (); | |
9087 | int | |
9088 | main () | |
9089 | { | |
9090 | return canonicalize_file_name (); | |
9091 | ; | |
9092 | return 0; | |
9093 | } | |
ad6254c5 | 9094 | _ACEOF |
f11781c5 AK |
9095 | if ac_fn_c_try_link "$LINENO"; then : |
9096 | ac_cv_lib_c_canonicalize_file_name=yes | |
ad6254c5 | 9097 | else |
f11781c5 AK |
9098 | ac_cv_lib_c_canonicalize_file_name=no |
9099 | fi | |
9100 | rm -f core conftest.err conftest.$ac_objext \ | |
9101 | conftest$ac_exeext conftest.$ac_ext | |
9102 | LIBS=$ac_check_lib_save_LIBS | |
9103 | fi | |
9104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5 | |
9105 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9106 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then : | |
9107 | ||
9108 | $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h | |
ad6254c5 | 9109 | |
ad6254c5 | 9110 | fi |
7a197a62 | 9111 | |
ad6254c5 | 9112 | |
f11781c5 AK |
9113 | ################################################################################ |
9114 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9115 | then exec_prefix=""; | |
9116 | fi; | |
7a197a62 | 9117 | |
f11781c5 AK |
9118 | ################################################################################ |
9119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9120 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9121 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
ec6a6fbe | 9122 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9123 | else |
f11781c5 AK |
9124 | ac_check_lib_save_LIBS=$LIBS |
9125 | LIBS="-ldl $LIBS" | |
9126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9127 | /* end confdefs.h. */ | |
ad6254c5 | 9128 | |
f11781c5 AK |
9129 | /* Override any GCC internal prototype to avoid an error. |
9130 | Use char because int might match the return type of a GCC | |
9131 | builtin and then its argument prototype would still apply. */ | |
9132 | #ifdef __cplusplus | |
9133 | extern "C" | |
9134 | #endif | |
9135 | char dlopen (); | |
9136 | int | |
9137 | main () | |
9138 | { | |
9139 | return dlopen (); | |
9140 | ; | |
9141 | return 0; | |
9142 | } | |
ad6254c5 | 9143 | _ACEOF |
f11781c5 AK |
9144 | if ac_fn_c_try_link "$LINENO"; then : |
9145 | ac_cv_lib_dl_dlopen=yes | |
ad6254c5 | 9146 | else |
f11781c5 | 9147 | ac_cv_lib_dl_dlopen=no |
795ca3e5 | 9148 | fi |
f11781c5 AK |
9149 | rm -f core conftest.err conftest.$ac_objext \ |
9150 | conftest$ac_exeext conftest.$ac_ext | |
9151 | LIBS=$ac_check_lib_save_LIBS | |
9152 | fi | |
9153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9154 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9155 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
795ca3e5 | 9156 | |
ad6254c5 | 9157 | |
f11781c5 | 9158 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
ad6254c5 | 9159 | |
f11781c5 AK |
9160 | DL_LIBS="-ldl" |
9161 | HAVE_LIBDL=yes | |
9162 | else | |
795ca3e5 | 9163 | |
f11781c5 AK |
9164 | DL_LIBS= |
9165 | HAVE_LIBDL=no | |
9166 | fi | |
8106cdd5 | 9167 | |
ad6254c5 | 9168 | |
f11781c5 AK |
9169 | ################################################################################ |
9170 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9171 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
9172 | \) -a "x$STATIC_LINK" = xyes ]; | |
9173 | then as_fn_error $? "Features cannot be 'shared' when building statically | |
9174 | " "$LINENO" 5 | |
9175 | fi | |
ad6254c5 | 9176 | |
f11781c5 AK |
9177 | ################################################################################ |
9178 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
9179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 | |
9180 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
9181 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then : | |
ec6a6fbe | 9182 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9183 | else |
f11781c5 AK |
9184 | ac_check_lib_save_LIBS=$LIBS |
9185 | LIBS="-lpthread $LIBS" | |
9186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9187 | /* end confdefs.h. */ |
8a2fc586 | 9188 | |
f11781c5 AK |
9189 | /* Override any GCC internal prototype to avoid an error. |
9190 | Use char because int might match the return type of a GCC | |
9191 | builtin and then its argument prototype would still apply. */ | |
9192 | #ifdef __cplusplus | |
9193 | extern "C" | |
ad6254c5 | 9194 | #endif |
f11781c5 AK |
9195 | char pthread_mutex_lock (); |
9196 | int | |
9197 | main () | |
9198 | { | |
9199 | return pthread_mutex_lock (); | |
9200 | ; | |
9201 | return 0; | |
9202 | } | |
9203 | _ACEOF | |
9204 | if ac_fn_c_try_link "$LINENO"; then : | |
9205 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
9206 | else | |
9207 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
9208 | fi | |
9209 | rm -f core conftest.err conftest.$ac_objext \ | |
9210 | conftest$ac_exeext conftest.$ac_ext | |
9211 | LIBS=$ac_check_lib_save_LIBS | |
9212 | fi | |
9213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
9214 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
9215 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then : | |
9216 | PTHREAD_LIBS="-lpthread" | |
9217 | else | |
9218 | hard_bailout | |
9219 | fi | |
9220 | ||
9221 | fi | |
9222 | ||
9223 | ################################################################################ | |
9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5 | |
9225 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
9226 | # Check whether --enable-selinux was given. | |
9227 | if test "${enable_selinux+set}" = set; then : | |
9228 | enableval=$enable_selinux; SELINUX=$enableval | |
9229 | fi | |
9230 | ||
9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5 | |
9232 | $as_echo "$SELINUX" >&6; } | |
8a2fc586 | 9233 | |
f11781c5 AK |
9234 | ################################################################################ |
9235 | if test x$SELINUX = xyes; then | |
9236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5 | |
9237 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
9238 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then : | |
9239 | $as_echo_n "(cached) " >&6 | |
9240 | else | |
9241 | ac_check_lib_save_LIBS=$LIBS | |
9242 | LIBS="-lsepol $LIBS" | |
9243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9244 | /* end confdefs.h. */ | |
8a2fc586 | 9245 | |
7a197a62 AK |
9246 | /* Override any GCC internal prototype to avoid an error. |
9247 | Use char because int might match the return type of a GCC | |
9248 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9249 | #ifdef __cplusplus |
9250 | extern "C" | |
ad6254c5 | 9251 | #endif |
f11781c5 | 9252 | char sepol_check_context (); |
ad6254c5 AK |
9253 | int |
9254 | main () | |
9255 | { | |
f11781c5 | 9256 | return sepol_check_context (); |
ad6254c5 AK |
9257 | ; |
9258 | return 0; | |
9259 | } | |
9260 | _ACEOF | |
f11781c5 AK |
9261 | if ac_fn_c_try_link "$LINENO"; then : |
9262 | ac_cv_lib_sepol_sepol_check_context=yes | |
795ca3e5 | 9263 | else |
f11781c5 AK |
9264 | ac_cv_lib_sepol_sepol_check_context=no |
9265 | fi | |
9266 | rm -f core conftest.err conftest.$ac_objext \ | |
9267 | conftest$ac_exeext conftest.$ac_ext | |
9268 | LIBS=$ac_check_lib_save_LIBS | |
80992638 | 9269 | fi |
f11781c5 AK |
9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9271 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
9272 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then : | |
7a197a62 | 9273 | |
80992638 | 9274 | |
f11781c5 AK |
9275 | $as_echo "#define HAVE_SEPOL 1" >>confdefs.h |
9276 | ||
9277 | SELINUX_LIBS="-lsepol" | |
8106cdd5 | 9278 | fi |
795ca3e5 | 9279 | |
f11781c5 AK |
9280 | |
9281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 | |
9282 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
9283 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then : | |
ec6a6fbe | 9284 | $as_echo_n "(cached) " >&6 |
25fbec5b | 9285 | else |
f11781c5 AK |
9286 | ac_check_lib_save_LIBS=$LIBS |
9287 | LIBS="-lselinux $LIBS" | |
9288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25fbec5b | 9289 | /* end confdefs.h. */ |
80992638 | 9290 | |
7a197a62 AK |
9291 | /* Override any GCC internal prototype to avoid an error. |
9292 | Use char because int might match the return type of a GCC | |
ad6254c5 | 9293 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
9294 | #ifdef __cplusplus |
9295 | extern "C" | |
9296 | #endif | |
f11781c5 | 9297 | char is_selinux_enabled (); |
ad6254c5 AK |
9298 | int |
9299 | main () | |
9300 | { | |
f11781c5 | 9301 | return is_selinux_enabled (); |
ad6254c5 AK |
9302 | ; |
9303 | return 0; | |
9304 | } | |
9305 | _ACEOF | |
f11781c5 AK |
9306 | if ac_fn_c_try_link "$LINENO"; then : |
9307 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
25fbec5b | 9308 | else |
f11781c5 | 9309 | ac_cv_lib_selinux_is_selinux_enabled=no |
25fbec5b | 9310 | fi |
f11781c5 AK |
9311 | rm -f core conftest.err conftest.$ac_objext \ |
9312 | conftest$ac_exeext conftest.$ac_ext | |
9313 | LIBS=$ac_check_lib_save_LIBS | |
25fbec5b | 9314 | fi |
f11781c5 AK |
9315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9316 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
9317 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then : | |
25fbec5b | 9318 | |
f11781c5 AK |
9319 | for ac_header in selinux/selinux.h |
9320 | do : | |
9321 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | |
9322 | if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then : | |
9323 | cat >>confdefs.h <<_ACEOF | |
9324 | #define HAVE_SELINUX_SELINUX_H 1 | |
ad6254c5 | 9325 | _ACEOF |
795ca3e5 | 9326 | |
25fbec5b | 9327 | else |
f11781c5 | 9328 | hard_bailout |
795ca3e5 | 9329 | fi |
795ca3e5 | 9330 | |
f11781c5 | 9331 | done |
795ca3e5 | 9332 | |
f11781c5 AK |
9333 | for ac_header in selinux/label.h |
9334 | do : | |
9335 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default" | |
9336 | if test "x$ac_cv_header_selinux_label_h" = x""yes; then : | |
9337 | cat >>confdefs.h <<_ACEOF | |
9338 | #define HAVE_SELINUX_LABEL_H 1 | |
ad6254c5 | 9339 | _ACEOF |
ad6254c5 | 9340 | |
ad6254c5 | 9341 | fi |
7a197a62 | 9342 | |
f11781c5 | 9343 | done |
7a197a62 | 9344 | |
ad6254c5 | 9345 | |
f11781c5 | 9346 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h |
7a197a62 | 9347 | |
f11781c5 AK |
9348 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
9349 | SELINUX_PC="libselinux" | |
9350 | HAVE_SELINUX=yes | |
ad6254c5 | 9351 | else |
8106cdd5 | 9352 | |
f11781c5 AK |
9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5 |
9354 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
9355 | SELINUX_LIBS= | |
9356 | SELINUX_PC= | |
9357 | HAVE_SELINUX=no | |
795ca3e5 | 9358 | fi |
ad6254c5 | 9359 | |
795ca3e5 AK |
9360 | fi |
9361 | ||
f11781c5 AK |
9362 | ################################################################################ |
9363 | if test x$REALTIME = xyes; then | |
9364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
9365 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
9366 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
ec6a6fbe | 9367 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 9368 | else |
f11781c5 AK |
9369 | ac_check_lib_save_LIBS=$LIBS |
9370 | LIBS="-lrt $LIBS" | |
9371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9372 | /* end confdefs.h. */ |
ad6254c5 | 9373 | |
f11781c5 AK |
9374 | /* Override any GCC internal prototype to avoid an error. |
9375 | Use char because int might match the return type of a GCC | |
9376 | builtin and then its argument prototype would still apply. */ | |
9377 | #ifdef __cplusplus | |
9378 | extern "C" | |
9379 | #endif | |
9380 | char clock_gettime (); | |
ad6254c5 AK |
9381 | int |
9382 | main () | |
9383 | { | |
f11781c5 | 9384 | return clock_gettime (); |
ad6254c5 AK |
9385 | ; |
9386 | return 0; | |
9387 | } | |
9388 | _ACEOF | |
f11781c5 AK |
9389 | if ac_fn_c_try_link "$LINENO"; then : |
9390 | ac_cv_lib_rt_clock_gettime=yes | |
ad6254c5 | 9391 | else |
f11781c5 | 9392 | ac_cv_lib_rt_clock_gettime=no |
ad6254c5 | 9393 | fi |
f11781c5 AK |
9394 | rm -f core conftest.err conftest.$ac_objext \ |
9395 | conftest$ac_exeext conftest.$ac_ext | |
9396 | LIBS=$ac_check_lib_save_LIBS | |
26e7f2e0 | 9397 | fi |
f11781c5 AK |
9398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9399 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
9400 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
9401 | HAVE_REALTIME=yes | |
9402 | else | |
9403 | HAVE_REALTIME=no | |
8106cdd5 | 9404 | fi |
ad6254c5 | 9405 | |
ad6254c5 | 9406 | |
f11781c5 | 9407 | if test x$HAVE_REALTIME = xyes; then |
7a197a62 | 9408 | |
f11781c5 | 9409 | $as_echo "#define HAVE_REALTIME 1" >>confdefs.h |
ad6254c5 | 9410 | |
f11781c5 AK |
9411 | LIBS="-lrt $LIBS" |
9412 | else | |
9413 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5 | |
9414 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
9415 | fi | |
9416 | fi | |
9417 | ||
9418 | ################################################################################ | |
9419 | for ac_header in getopt.h | |
9420 | do : | |
9421 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
9422 | if test "x$ac_cv_header_getopt_h" = x""yes; then : | |
9423 | cat >>confdefs.h <<_ACEOF | |
9424 | #define HAVE_GETOPT_H 1 | |
9425 | _ACEOF | |
9426 | ||
9427 | $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h | |
ad6254c5 | 9428 | |
ad6254c5 | 9429 | fi |
7a197a62 | 9430 | |
f11781c5 | 9431 | done |
ad6254c5 | 9432 | |
7a197a62 | 9433 | |
f11781c5 AK |
9434 | ################################################################################ |
9435 | if test x$READLINE != xno; then | |
9436 | lvm_saved_libs=$LIBS | |
9437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
9438 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
9439 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ec6a6fbe | 9440 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9441 | else |
f11781c5 AK |
9442 | ac_func_search_save_LIBS=$LIBS |
9443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9444 | /* end confdefs.h. */ | |
ad6254c5 | 9445 | |
f11781c5 AK |
9446 | /* Override any GCC internal prototype to avoid an error. |
9447 | Use char because int might match the return type of a GCC | |
9448 | builtin and then its argument prototype would still apply. */ | |
9449 | #ifdef __cplusplus | |
9450 | extern "C" | |
9451 | #endif | |
9452 | char tgetent (); | |
9453 | int | |
9454 | main () | |
9455 | { | |
9456 | return tgetent (); | |
9457 | ; | |
9458 | return 0; | |
9459 | } | |
ad6254c5 | 9460 | _ACEOF |
f11781c5 AK |
9461 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
9462 | if test -z "$ac_lib"; then | |
9463 | ac_res="none required" | |
9464 | else | |
9465 | ac_res=-l$ac_lib | |
9466 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9467 | fi | |
9468 | if ac_fn_c_try_link "$LINENO"; then : | |
9469 | ac_cv_search_tgetent=$ac_res | |
9470 | fi | |
9471 | rm -f core conftest.err conftest.$ac_objext \ | |
9472 | conftest$ac_exeext | |
9473 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
9474 | break | |
9475 | fi | |
9476 | done | |
9477 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ad6254c5 | 9478 | |
80992638 | 9479 | else |
f11781c5 | 9480 | ac_cv_search_tgetent=no |
b896caa1 | 9481 | fi |
f11781c5 AK |
9482 | rm conftest.$ac_ext |
9483 | LIBS=$ac_func_search_save_LIBS | |
9484 | fi | |
9485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
9486 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
9487 | ac_res=$ac_cv_search_tgetent | |
9488 | if test "$ac_res" != no; then : | |
9489 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9490 | READLINE_LIBS=$ac_cv_search_tgetent | |
9491 | else | |
ad6254c5 | 9492 | |
f11781c5 AK |
9493 | if test "$READLINE" = yes; then |
9494 | as_fn_error $? "termcap could not be found which is required for the | |
9495 | --enable-readline option (which is enabled by default). Either disable readline | |
9496 | support with --disable-readline or download and install termcap from: | |
9497 | ftp.gnu.org/gnu/termcap | |
9498 | Note: if you are using precompiled packages you will also need the development | |
9499 | package as well (which may be called termcap-devel or something similar). | |
9500 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9501 | not found either - but you could try installing that as well." "$LINENO" 5 | |
9502 | fi | |
9503 | fi | |
b896caa1 | 9504 | |
f11781c5 AK |
9505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 |
9506 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
9507 | if test "${ac_cv_lib_readline_readline+set}" = set; then : | |
ec6a6fbe | 9508 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9509 | else |
f11781c5 AK |
9510 | ac_check_lib_save_LIBS=$LIBS |
9511 | LIBS="-lreadline $LIBS" | |
9512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9513 | /* end confdefs.h. */ |
8a2fc586 | 9514 | |
f11781c5 AK |
9515 | /* Override any GCC internal prototype to avoid an error. |
9516 | Use char because int might match the return type of a GCC | |
9517 | builtin and then its argument prototype would still apply. */ | |
9518 | #ifdef __cplusplus | |
9519 | extern "C" | |
ad6254c5 | 9520 | #endif |
f11781c5 AK |
9521 | char readline (); |
9522 | int | |
9523 | main () | |
9524 | { | |
9525 | return readline (); | |
9526 | ; | |
9527 | return 0; | |
9528 | } | |
9529 | _ACEOF | |
9530 | if ac_fn_c_try_link "$LINENO"; then : | |
9531 | ac_cv_lib_readline_readline=yes | |
9532 | else | |
9533 | ac_cv_lib_readline_readline=no | |
9534 | fi | |
9535 | rm -f core conftest.err conftest.$ac_objext \ | |
9536 | conftest$ac_exeext conftest.$ac_ext | |
9537 | LIBS=$ac_check_lib_save_LIBS | |
9538 | fi | |
9539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
9540 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
9541 | if test "x$ac_cv_lib_readline_readline" = x""yes; then : | |
9542 | ||
8a2fc586 | 9543 | |
f11781c5 AK |
9544 | $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h |
9545 | ||
9546 | LIBS=$lvm_saved_libs | |
9547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5 | |
9548 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
9549 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then : | |
9550 | $as_echo_n "(cached) " >&6 | |
9551 | else | |
9552 | ac_check_lib_save_LIBS=$LIBS | |
9553 | LIBS="-lreadline $LIBS" | |
9554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9555 | /* end confdefs.h. */ | |
8a2fc586 | 9556 | |
7a197a62 AK |
9557 | /* Override any GCC internal prototype to avoid an error. |
9558 | Use char because int might match the return type of a GCC | |
9559 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9560 | #ifdef __cplusplus |
9561 | extern "C" | |
ad6254c5 | 9562 | #endif |
f11781c5 | 9563 | char rl_line_buffer (); |
ad6254c5 AK |
9564 | int |
9565 | main () | |
9566 | { | |
f11781c5 | 9567 | return rl_line_buffer (); |
ad6254c5 AK |
9568 | ; |
9569 | return 0; | |
9570 | } | |
9571 | _ACEOF | |
f11781c5 AK |
9572 | if ac_fn_c_try_link "$LINENO"; then : |
9573 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 9574 | else |
f11781c5 AK |
9575 | ac_cv_lib_readline_rl_line_buffer=no |
9576 | fi | |
9577 | rm -f core conftest.err conftest.$ac_objext \ | |
9578 | conftest$ac_exeext conftest.$ac_ext | |
9579 | LIBS=$ac_check_lib_save_LIBS | |
9580 | fi | |
9581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
9582 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
9583 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then : | |
9584 | READLINE_LIBS="-lreadline" | |
9585 | else | |
9586 | ||
9587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
9588 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
9589 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
ad6254c5 | 9590 | |
ad6254c5 | 9591 | fi |
7a197a62 | 9592 | |
f11781c5 AK |
9593 | else |
9594 | ||
9595 | READLINE_LIBS= | |
9596 | if test "$READLINE" = yes; then | |
9597 | as_fn_error $? "GNU Readline could not be found which is required for the | |
9598 | --enable-readline option (which is enabled by default). Either disable readline | |
9599 | support with --disable-readline or download and install readline from: | |
9600 | ftp.gnu.org/gnu/readline | |
9601 | Note: if you are using precompiled packages you will also need the development | |
9602 | package as well (which may be called readline-devel or something similar)." "$LINENO" 5 | |
9603 | fi | |
ad6254c5 | 9604 | fi |
f11781c5 AK |
9605 | |
9606 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
9607 | for ac_func in rl_completion_matches | |
9608 | do : | |
9609 | ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" | |
9610 | if test "x$ac_cv_func_rl_completion_matches" = x""yes; then : | |
ad6254c5 | 9611 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 9612 | #define HAVE_RL_COMPLETION_MATCHES 1 |
ad6254c5 AK |
9613 | _ACEOF |
9614 | ||
ad6254c5 AK |
9615 | fi |
9616 | done | |
9617 | ||
f11781c5 | 9618 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
9619 | fi |
9620 | ||
f11781c5 AK |
9621 | ################################################################################ |
9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5 | |
9623 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
9624 | # Check whether --enable-nls was given. | |
9625 | if test "${enable_nls+set}" = set; then : | |
9626 | enableval=$enable_nls; INTL=$enableval | |
9627 | else | |
9628 | INTL=no | |
9629 | fi | |
d911ec67 | 9630 | |
f11781c5 AK |
9631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5 |
9632 | $as_echo "$INTL" >&6; } | |
9633 | ||
9634 | if test x$INTL = xyes; then | |
9635 | # FIXME - Move this - can be device-mapper too | |
9636 | INTL_PACKAGE="lvm2" | |
9637 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9638 | set dummy msgfmt; ac_word=$2 | |
9639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9640 | $as_echo_n "checking for $ac_word... " >&6; } | |
9641 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
d911ec67 | 9642 | $as_echo_n "(cached) " >&6 |
d911ec67 | 9643 | else |
f11781c5 AK |
9644 | case $MSGFMT in |
9645 | [\\/]* | ?:[\\/]*) | |
9646 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9647 | ;; | |
9648 | *) | |
9649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9650 | for as_dir in $PATH | |
9651 | do | |
9652 | IFS=$as_save_IFS | |
9653 | test -z "$as_dir" && as_dir=. | |
9654 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9656 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
9657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9658 | break 2 | |
9659 | fi | |
9660 | done | |
9661 | done | |
9662 | IFS=$as_save_IFS | |
9663 | ||
9664 | ;; | |
d911ec67 | 9665 | esac |
f11781c5 AK |
9666 | fi |
9667 | MSGFMT=$ac_cv_path_MSGFMT | |
9668 | if test -n "$MSGFMT"; then | |
9669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
9670 | $as_echo "$MSGFMT" >&6; } | |
d911ec67 | 9671 | else |
f11781c5 AK |
9672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9673 | $as_echo "no" >&6; } | |
9674 | fi | |
d911ec67 | 9675 | |
f11781c5 AK |
9676 | |
9677 | if [ "x$MSGFMT" == x ]; | |
9678 | then as_fn_error $? "msgfmt not found in path $PATH | |
9679 | " "$LINENO" 5 | |
9680 | fi; | |
9681 | ||
9682 | ||
9683 | # Check whether --with-localedir was given. | |
9684 | if test "${with_localedir+set}" = set; then : | |
9685 | withval=$with_localedir; LOCALEDIR=$withval | |
9686 | else | |
9687 | LOCALEDIR='${prefix}/share/locale' | |
9688 | fi | |
9689 | ||
9690 | fi | |
9691 | ||
9692 | ################################################################################ | |
9693 | ||
9694 | # Check whether --with-confdir was given. | |
9695 | if test "${with_confdir+set}" = set; then : | |
9696 | withval=$with_confdir; CONFDIR=$withval | |
9697 | else | |
9698 | CONFDIR="/etc" | |
9699 | fi | |
9700 | ||
9701 | ||
9702 | ||
9703 | # Check whether --with-staticdir was given. | |
9704 | if test "${with_staticdir+set}" = set; then : | |
9705 | withval=$with_staticdir; STATICDIR=$withval | |
9706 | else | |
9707 | STATICDIR='${exec_prefix}/sbin' | |
9708 | fi | |
9709 | ||
9710 | ||
9711 | ||
9712 | # Check whether --with-usrlibdir was given. | |
9713 | if test "${with_usrlibdir+set}" = set; then : | |
9714 | withval=$with_usrlibdir; usrlibdir=$withval | |
9715 | else | |
9716 | usrlibdir='${prefix}/lib' | |
d911ec67 AK |
9717 | fi |
9718 | ||
d911ec67 | 9719 | |
d911ec67 | 9720 | |
f11781c5 AK |
9721 | # Check whether --with-usrsbindir was given. |
9722 | if test "${with_usrsbindir+set}" = set; then : | |
9723 | withval=$with_usrsbindir; usrsbindir=$withval | |
9724 | else | |
9725 | usrsbindir='${prefix}/sbin' | |
d911ec67 AK |
9726 | fi |
9727 | ||
d911ec67 | 9728 | |
f11781c5 | 9729 | ################################################################################ |
d911ec67 | 9730 | |
f11781c5 AK |
9731 | # Check whether --with-udev_prefix was given. |
9732 | if test "${with_udev_prefix+set}" = set; then : | |
9733 | withval=$with_udev_prefix; udev_prefix=$withval | |
d911ec67 | 9734 | else |
f11781c5 | 9735 | udev_prefix='${exec_prefix}' |
d911ec67 | 9736 | fi |
d911ec67 | 9737 | |
f11781c5 AK |
9738 | |
9739 | ||
9740 | # Check whether --with-udevdir was given. | |
9741 | if test "${with_udevdir+set}" = set; then : | |
9742 | withval=$with_udevdir; udevdir=$withval | |
9743 | else | |
9744 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
d911ec67 | 9745 | fi |
f11781c5 AK |
9746 | |
9747 | ||
9748 | ################################################################################ | |
9749 | if test x$READLINE = xyes; then | |
9750 | for ac_header in readline/readline.h readline/history.h | |
9751 | do : | |
9752 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9753 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9754 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
d911ec67 AK |
9755 | cat >>confdefs.h <<_ACEOF |
9756 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9757 | _ACEOF | |
9758 | ||
9759 | else | |
f11781c5 | 9760 | as_fn_error $? "bailing out" "$LINENO" 5 |
d911ec67 AK |
9761 | fi |
9762 | ||
9763 | done | |
9764 | ||
9765 | fi | |
9766 | ||
f11781c5 AK |
9767 | if test x$CLVMD != xnone; then |
9768 | for ac_header in mntent.h netdb.h netinet/in.h pthread.h search.h sys/mount.h sys/socket.h sys/uio.h sys/un.h utmpx.h | |
9769 | do : | |
9770 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9771 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9772 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9773 | cat >>confdefs.h <<_ACEOF | |
9774 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 9775 | _ACEOF |
ad6254c5 | 9776 | |
f11781c5 AK |
9777 | else |
9778 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9779 | fi |
7a197a62 | 9780 | |
f11781c5 | 9781 | done |
ad6254c5 | 9782 | |
f11781c5 AK |
9783 | for ac_func in dup2 getmntent memmove select socket |
9784 | do : | |
9785 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9786 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9787 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9788 | cat >>confdefs.h <<_ACEOF | |
9789 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ad6254c5 | 9790 | _ACEOF |
ad6254c5 | 9791 | |
f11781c5 AK |
9792 | else |
9793 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9794 | fi |
f11781c5 | 9795 | done |
7a197a62 | 9796 | |
f11781c5 AK |
9797 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
9798 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
9799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 | |
9800 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
9801 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9802 | $as_echo_n "(cached) " >&6 | |
9803 | else | |
9804 | ac_func_search_save_LIBS=$LIBS | |
9805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9806 | /* end confdefs.h. */ | |
ad6254c5 | 9807 | |
f11781c5 AK |
9808 | /* Override any GCC internal prototype to avoid an error. |
9809 | Use char because int might match the return type of a GCC | |
9810 | builtin and then its argument prototype would still apply. */ | |
9811 | #ifdef __cplusplus | |
9812 | extern "C" | |
9813 | #endif | |
9814 | char getmntent (); | |
9815 | int | |
9816 | main () | |
9817 | { | |
9818 | return getmntent (); | |
9819 | ; | |
9820 | return 0; | |
9821 | } | |
9822 | _ACEOF | |
9823 | for ac_lib in '' sun seq gen; do | |
9824 | if test -z "$ac_lib"; then | |
9825 | ac_res="none required" | |
9826 | else | |
9827 | ac_res=-l$ac_lib | |
9828 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9829 | fi | |
9830 | if ac_fn_c_try_link "$LINENO"; then : | |
9831 | ac_cv_search_getmntent=$ac_res | |
9832 | fi | |
9833 | rm -f core conftest.err conftest.$ac_objext \ | |
9834 | conftest$ac_exeext | |
9835 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9836 | break | |
9837 | fi | |
9838 | done | |
9839 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
7a197a62 | 9840 | |
ad6254c5 | 9841 | else |
f11781c5 | 9842 | ac_cv_search_getmntent=no |
795ca3e5 | 9843 | fi |
f11781c5 AK |
9844 | rm conftest.$ac_ext |
9845 | LIBS=$ac_func_search_save_LIBS | |
9846 | fi | |
9847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 | |
9848 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
9849 | ac_res=$ac_cv_search_getmntent | |
9850 | if test "$ac_res" != no; then : | |
9851 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9852 | ac_cv_func_getmntent=yes | |
9853 | ||
9854 | $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h | |
80992638 | 9855 | |
f11781c5 AK |
9856 | else |
9857 | ac_cv_func_getmntent=no | |
8106cdd5 | 9858 | fi |
f11781c5 AK |
9859 | |
9860 | ||
9861 | for ac_header in sys/select.h sys/socket.h | |
9862 | do : | |
9863 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9864 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9865 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
ad6254c5 | 9866 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9867 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9868 | _ACEOF |
795ca3e5 | 9869 | |
795ca3e5 AK |
9870 | fi |
9871 | ||
ad6254c5 | 9872 | done |
80992638 | 9873 | |
f11781c5 AK |
9874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
9875 | $as_echo_n "checking types of arguments for select... " >&6; } | |
9876 | if test "${ac_cv_func_select_args+set}" = set; then : | |
ec6a6fbe | 9877 | $as_echo_n "(cached) " >&6 |
83912faa | 9878 | else |
f11781c5 AK |
9879 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
9880 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | |
9881 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
9882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 AK |
9883 | /* end confdefs.h. */ |
9884 | $ac_includes_default | |
f11781c5 AK |
9885 | #ifdef HAVE_SYS_SELECT_H |
9886 | # include <sys/select.h> | |
9887 | #endif | |
9888 | #ifdef HAVE_SYS_SOCKET_H | |
9889 | # include <sys/socket.h> | |
9890 | #endif | |
9891 | ||
9892 | int | |
9893 | main () | |
9894 | { | |
9895 | extern int select ($ac_arg1, | |
9896 | $ac_arg234, $ac_arg234, $ac_arg234, | |
9897 | $ac_arg5); | |
9898 | ; | |
9899 | return 0; | |
9900 | } | |
ad6254c5 | 9901 | _ACEOF |
f11781c5 AK |
9902 | if ac_fn_c_try_compile "$LINENO"; then : |
9903 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
9904 | fi | |
9905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9906 | done | |
9907 | done | |
9908 | done | |
9909 | # Provide a safe default value. | |
9910 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
ad6254c5 | 9911 | |
ad6254c5 | 9912 | fi |
f11781c5 AK |
9913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
9914 | $as_echo "$ac_cv_func_select_args" >&6; } | |
9915 | ac_save_IFS=$IFS; IFS=',' | |
9916 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
9917 | IFS=$ac_save_IFS | |
9918 | shift | |
7a197a62 | 9919 | |
f11781c5 AK |
9920 | cat >>confdefs.h <<_ACEOF |
9921 | #define SELECT_TYPE_ARG1 $1 | |
9922 | _ACEOF | |
ad6254c5 | 9923 | |
f11781c5 AK |
9924 | |
9925 | cat >>confdefs.h <<_ACEOF | |
9926 | #define SELECT_TYPE_ARG234 ($2) | |
ad6254c5 | 9927 | _ACEOF |
f11781c5 AK |
9928 | |
9929 | ||
9930 | cat >>confdefs.h <<_ACEOF | |
9931 | #define SELECT_TYPE_ARG5 ($3) | |
ad6254c5 | 9932 | _ACEOF |
ad6254c5 | 9933 | |
f11781c5 AK |
9934 | rm -f conftest* |
9935 | ||
ad6254c5 | 9936 | fi |
7a197a62 | 9937 | |
f11781c5 AK |
9938 | if test x$CLUSTER != xnone; then |
9939 | for ac_header in sys/socket.h sys/un.h | |
9940 | do : | |
9941 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9942 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9943 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9944 | cat >>confdefs.h <<_ACEOF | |
9945 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9946 | _ACEOF | |
ad6254c5 | 9947 | |
f11781c5 AK |
9948 | else |
9949 | as_fn_error $? "bailing out" "$LINENO" 5 | |
9950 | fi | |
9951 | ||
9952 | done | |
9953 | ||
9954 | for ac_func in socket | |
9955 | do : | |
9956 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" | |
9957 | if test "x$ac_cv_func_socket" = x""yes; then : | |
9958 | cat >>confdefs.h <<_ACEOF | |
9959 | #define HAVE_SOCKET 1 | |
9960 | _ACEOF | |
7a197a62 | 9961 | |
80992638 | 9962 | else |
f11781c5 | 9963 | as_fn_error $? "bailing out" "$LINENO" 5 |
83912faa | 9964 | fi |
f11781c5 | 9965 | done |
83912faa | 9966 | |
69792976 | 9967 | fi |
f11781c5 AK |
9968 | |
9969 | if test x$DMEVENTD = xyes; then | |
9970 | for ac_header in arpa/inet.h | |
9971 | do : | |
9972 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" | |
9973 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : | |
ad6254c5 | 9974 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 9975 | #define HAVE_ARPA_INET_H 1 |
ad6254c5 | 9976 | _ACEOF |
69792976 | 9977 | |
69792976 | 9978 | else |
f11781c5 | 9979 | as_fn_error $? "bailing out" "$LINENO" 5 |
80992638 AK |
9980 | fi |
9981 | ||
ad6254c5 | 9982 | done |
69792976 | 9983 | |
ad6254c5 AK |
9984 | fi |
9985 | ||
f11781c5 AK |
9986 | if test x$HAVE_LIBDL = xyes; then |
9987 | for ac_header in dlfcn.h | |
9988 | do : | |
9989 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
9990 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
9991 | cat >>confdefs.h <<_ACEOF | |
9992 | #define HAVE_DLFCN_H 1 | |
a5f46f6a | 9993 | _ACEOF |
a5f46f6a | 9994 | |
f11781c5 AK |
9995 | else |
9996 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a5f46f6a AK |
9997 | fi |
9998 | ||
f11781c5 | 9999 | done |
a5f46f6a | 10000 | |
a5f46f6a AK |
10001 | fi |
10002 | ||
f11781c5 AK |
10003 | if test x$INTL = xyes; then |
10004 | for ac_header in libintl.h | |
10005 | do : | |
10006 | ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" | |
10007 | if test "x$ac_cv_header_libintl_h" = x""yes; then : | |
10008 | cat >>confdefs.h <<_ACEOF | |
10009 | #define HAVE_LIBINTL_H 1 | |
10010 | _ACEOF | |
a5f46f6a | 10011 | |
a5f46f6a | 10012 | else |
f11781c5 | 10013 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a | 10014 | fi |
f11781c5 AK |
10015 | |
10016 | done | |
a5f46f6a AK |
10017 | |
10018 | fi | |
f11781c5 AK |
10019 | |
10020 | if test x$UDEV_SYNC = xyes; then | |
10021 | for ac_header in sys/ipc.h sys/sem.h | |
10022 | do : | |
10023 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10024 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10025 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a5f46f6a AK |
10026 | cat >>confdefs.h <<_ACEOF |
10027 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10028 | _ACEOF | |
10029 | ||
10030 | else | |
f11781c5 | 10031 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a AK |
10032 | fi |
10033 | ||
10034 | done | |
10035 | ||
10036 | fi | |
10037 | ||
a653923f AK |
10038 | ################################################################################ |
10039 | # Extract the first word of "modprobe", so it can be a program name with args. | |
10040 | set dummy modprobe; ac_word=$2 | |
f11781c5 | 10041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
ec6a6fbe | 10042 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 10043 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then : |
ec6a6fbe | 10044 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
10045 | else |
10046 | case $MODPROBE_CMD in | |
10047 | [\\/]* | ?:[\\/]*) | |
10048 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
10049 | ;; | |
10050 | *) | |
10051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10052 | for as_dir in $PATH | |
10053 | do | |
10054 | IFS=$as_save_IFS | |
10055 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 10056 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 10057 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 10058 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
f11781c5 | 10059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
10060 | break 2 |
10061 | fi | |
10062 | done | |
f11781c5 | 10063 | done |
7a197a62 | 10064 | IFS=$as_save_IFS |
72b2cb61 AK |
10065 | |
10066 | ;; | |
10067 | esac | |
10068 | fi | |
10069 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 10070 | if test -n "$MODPROBE_CMD"; then |
f11781c5 | 10071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5 |
ec6a6fbe | 10072 | $as_echo "$MODPROBE_CMD" >&6; } |
72b2cb61 | 10073 | else |
f11781c5 | 10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 10075 | $as_echo "no" >&6; } |
72b2cb61 AK |
10076 | fi |
10077 | ||
a653923f | 10078 | |
7a197a62 | 10079 | |
a653923f | 10080 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
10081 | |
10082 | cat >>confdefs.h <<_ACEOF | |
10083 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
10084 | _ACEOF | |
10085 | ||
a653923f AK |
10086 | fi |
10087 | ||
b5c2529b | 10088 | |
a9b601e2 ZK |
10089 | lvm_exec_prefix=$exec_prefix |
10090 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
10091 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
10092 | ||
b5c2529b | 10093 | cat >>confdefs.h <<_ACEOF |
a9b601e2 | 10094 | #define LVM_PATH "$lvm_exec_prefix/sbin/lvm" |
b5c2529b ZK |
10095 | _ACEOF |
10096 | ||
10097 | ||
10098 | if test "$CLVMD" != none; then | |
10099 | clvmd_prefix=$ac_default_prefix | |
10100 | test "$prefix" != NONE && clvmd_prefix=$prefix | |
10101 | ||
10102 | cat >>confdefs.h <<_ACEOF | |
10103 | #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd" | |
10104 | _ACEOF | |
10105 | ||
10106 | fi | |
10107 | ||
80992638 | 10108 | ################################################################################ |
93bd259b AK |
10109 | if test "$BUILD_DMEVENTD" = yes; then |
10110 | ||
10111 | # Check whether --with-dmeventd-pidfile was given. | |
f11781c5 | 10112 | if test "${with_dmeventd_pidfile+set}" = set; then : |
71082be4 | 10113 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 10114 | else |
71082be4 | 10115 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
10116 | fi |
10117 | ||
93bd259b | 10118 | |
71082be4 ZK |
10119 | cat >>confdefs.h <<_ACEOF |
10120 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
10121 | _ACEOF | |
93bd259b | 10122 | |
71082be4 | 10123 | fi |
93bd259b AK |
10124 | |
10125 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
10126 | |
10127 | # Check whether --with-dmeventd-path was given. | |
f11781c5 | 10128 | if test "${with_dmeventd_path+set}" = set; then : |
71082be4 | 10129 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 10130 | else |
71082be4 | 10131 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
10132 | fi |
10133 | ||
93bd259b | 10134 | |
71082be4 ZK |
10135 | cat >>confdefs.h <<_ACEOF |
10136 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
10137 | _ACEOF | |
3399ae32 | 10138 | |
71082be4 | 10139 | fi |
3399ae32 | 10140 | |
8bae0a1e AK |
10141 | |
10142 | ||
8bae0a1e | 10143 | # Check whether --with-default-run-dir was given. |
f11781c5 | 10144 | if test "${with_default_run_dir+set}" = set; then : |
8bae0a1e AK |
10145 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" |
10146 | else | |
10147 | DEFAULT_RUN_DIR="/var/run/lvm" | |
10148 | fi | |
10149 | ||
10150 | cat >>confdefs.h <<_ACEOF | |
10151 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
10152 | _ACEOF | |
10153 | ||
10154 | ||
71082be4 | 10155 | ################################################################################ |
3399ae32 AK |
10156 | |
10157 | # Check whether --with-default-system-dir was given. | |
f11781c5 | 10158 | if test "${with_default_system_dir+set}" = set; then : |
71082be4 | 10159 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 10160 | else |
71082be4 | 10161 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
10162 | fi |
10163 | ||
71082be4 | 10164 | |
3399ae32 AK |
10165 | cat >>confdefs.h <<_ACEOF |
10166 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
10167 | _ACEOF | |
10168 | ||
10169 | ||
10170 | ||
3399ae32 | 10171 | # Check whether --with-default-archive-subdir was given. |
f11781c5 | 10172 | if test "${with_default_archive_subdir+set}" = set; then : |
71082be4 | 10173 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 10174 | else |
71082be4 | 10175 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
10176 | fi |
10177 | ||
71082be4 | 10178 | |
3399ae32 AK |
10179 | cat >>confdefs.h <<_ACEOF |
10180 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
10181 | _ACEOF | |
10182 | ||
10183 | ||
10184 | ||
3399ae32 | 10185 | # Check whether --with-default-backup-subdir was given. |
f11781c5 | 10186 | if test "${with_default_backup_subdir+set}" = set; then : |
71082be4 | 10187 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 10188 | else |
71082be4 | 10189 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
10190 | fi |
10191 | ||
71082be4 | 10192 | |
3399ae32 AK |
10193 | cat >>confdefs.h <<_ACEOF |
10194 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
10195 | _ACEOF | |
10196 | ||
10197 | ||
10198 | ||
3399ae32 | 10199 | # Check whether --with-default-cache-subdir was given. |
f11781c5 | 10200 | if test "${with_default_cache_subdir+set}" = set; then : |
71082be4 | 10201 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 10202 | else |
71082be4 | 10203 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
10204 | fi |
10205 | ||
71082be4 | 10206 | |
3399ae32 AK |
10207 | cat >>confdefs.h <<_ACEOF |
10208 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
10209 | _ACEOF | |
10210 | ||
10211 | ||
10212 | ||
3399ae32 | 10213 | # Check whether --with-default-locking-dir was given. |
f11781c5 | 10214 | if test "${with_default_locking_dir+set}" = set; then : |
71082be4 | 10215 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 10216 | else |
71082be4 | 10217 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
10218 | fi |
10219 | ||
71082be4 | 10220 | |
3399ae32 AK |
10221 | cat >>confdefs.h <<_ACEOF |
10222 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
10223 | _ACEOF | |
10224 | ||
10225 | ||
fea55602 DW |
10226 | ################################################################################ |
10227 | ||
10228 | # Check whether --with-default-data-alignment was given. | |
f11781c5 | 10229 | if test "${with_default_data_alignment+set}" = set; then : |
fea55602 DW |
10230 | withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval |
10231 | else | |
10232 | DEFAULT_DATA_ALIGNMENT=1 | |
10233 | fi | |
10234 | ||
10235 | ||
10236 | cat >>confdefs.h <<_ACEOF | |
10237 | #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT | |
10238 | _ACEOF | |
10239 | ||
10240 | ||
93bd259b | 10241 | ################################################################################ |
f11781c5 | 10242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5 |
ec6a6fbe | 10243 | $as_echo_n "checking for kernel interface choice... " >&6; } |
93bd259b AK |
10244 | |
10245 | # Check whether --with-interface was given. | |
f11781c5 | 10246 | if test "${with_interface+set}" = set; then : |
71082be4 | 10247 | withval=$with_interface; interface=$withval |
93bd259b | 10248 | else |
71082be4 | 10249 | interface=ioctl |
93bd259b AK |
10250 | fi |
10251 | ||
10252 | if [ "x$interface" != xioctl ]; | |
10253 | then | |
f11781c5 | 10254 | as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5 |
93bd259b | 10255 | fi |
f11781c5 | 10256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5 |
ec6a6fbe | 10257 | $as_echo "$interface" >&6; } |
93bd259b AK |
10258 | |
10259 | ################################################################################ | |
db8b5af9 | 10260 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
10261 | |
10262 | cat >>confdefs.h <<_ACEOF | |
10263 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
10264 | _ACEOF | |
10265 | ||
10266 | ||
db8b5af9 | 10267 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 10268 | |
db8b5af9 | 10269 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 10270 | |
db8b5af9 | 10271 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 10272 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
10273 | VER=`echo "$VER" | $AWK '{print $1}'` |
10274 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
10275 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
10276 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
10277 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
10278 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
10279 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 10280 | |
80992638 | 10281 | ################################################################################ |
fae0c576 | 10282 | |
83912faa | 10283 | |
795ca3e5 AK |
10284 | |
10285 | ||
10286 | ||
10287 | ||
10288 | ||
10289 | ||
5a52dca9 | 10290 | |
8ef2b021 | 10291 | |
199e490e | 10292 | |
69792976 AK |
10293 | |
10294 | ||
10295 | ||
d0191583 | 10296 | |
69792976 | 10297 | |
8106cdd5 AK |
10298 | |
10299 | ||
10300 | ||
10301 | ||
10302 | ||
d68a82ec | 10303 | |
036f273a | 10304 | |
7d1552c9 | 10305 | |
8106cdd5 | 10306 | |
0a62c911 | 10307 | |
8106cdd5 | 10308 | |
4a7f3eb2 | 10309 | |
4922197a AK |
10310 | |
10311 | ||
d8ac0fbc | 10312 | |
1a9ea74d | 10313 | |
8a2fc586 AK |
10314 | |
10315 | ||
d0191583 | 10316 | |
93bd259b AK |
10317 | |
10318 | ||
10319 | ||
10320 | ||
10321 | ||
d0191583 JM |
10322 | |
10323 | ||
10324 | ||
10325 | ||
10326 | ||
8a2fc586 | 10327 | |
19a2c6e0 | 10328 | |
f7f0854e ZK |
10329 | |
10330 | ||
3ceb7608 | 10331 | |
8ce0cbda | 10332 | |
8b1a3214 | 10333 | |
ec6a6fbe AK |
10334 | |
10335 | ||
10336 | ||
10337 | ||
e2997b73 AK |
10338 | |
10339 | ||
10340 | ||
10341 | ||
10342 | ||
10343 | ||
a946372e AK |
10344 | |
10345 | ||
10346 | ||
10347 | ||
10348 | ||
10349 | ||
10350 | ||
10351 | ||
10352 | ||
10353 | ||
10354 | ||
ec6a6fbe | 10355 | |
33f732c5 | 10356 | |
66e941e8 | 10357 | |
d3c8211f | 10358 | |
7e3fe830 | 10359 | |
a5f46f6a AK |
10360 | |
10361 | ||
10362 | ||
572fefeb | 10363 | |
90c80887 | 10364 | |
3399ae32 AK |
10365 | |
10366 | ||
10367 | ||
10368 | ||
10369 | ||
90c80887 | 10370 | |
bf456146 | 10371 | |
e1b8a236 | 10372 | |
0878503f | 10373 | |
8fea97b7 | 10374 | |
54b362f9 | 10375 | |
b1f08e51 | 10376 | |
d1e8046f | 10377 | |
fea55602 | 10378 | |
c89bc357 | 10379 | |
37ddf259 | 10380 | |
606d0858 | 10381 | |
6e5c1f75 | 10382 | |
68f2de6d AK |
10383 | |
10384 | ||
80992638 | 10385 | ################################################################################ |
6e5c1f75 | 10386 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile" |
7a197a62 | 10387 | |
ad6254c5 | 10388 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
10389 | # This file is a shell script that caches the results of configure |
10390 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
10391 | # scripts and configure runs, see configure's option --config-cache. |
10392 | # It is not useful on other systems. If it contains results you don't | |
10393 | # want to keep, you may remove or edit it. | |
795ca3e5 | 10394 | # |
ad6254c5 AK |
10395 | # config.status only pays attention to the cache file if you give it |
10396 | # the --recheck option to rerun configure. | |
795ca3e5 | 10397 | # |
ad6254c5 AK |
10398 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10399 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10400 | # following values. | |
10401 | ||
10402 | _ACEOF | |
10403 | ||
795ca3e5 AK |
10404 | # The following way of writing the cache mishandles newlines in values, |
10405 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 10406 | # So, we kill variables containing newlines. |
795ca3e5 AK |
10407 | # Ultrix sh set writes to stderr and can't be redirected directly, |
10408 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
10409 | ( |
10410 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10411 | eval ac_val=\$$ac_var | |
10412 | case $ac_val in #( | |
10413 | *${as_nl}*) | |
10414 | case $ac_var in #( | |
f11781c5 | 10415 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
ec6a6fbe | 10416 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7a197a62 AK |
10417 | esac |
10418 | case $ac_var in #( | |
10419 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 10420 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
f11781c5 | 10421 | *) { eval $ac_var=; unset $ac_var;} ;; |
7a197a62 AK |
10422 | esac ;; |
10423 | esac | |
10424 | done | |
10425 | ||
ad6254c5 | 10426 | (set) 2>&1 | |
7a197a62 AK |
10427 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
10428 | *${as_nl}ac_space=\ *) | |
f11781c5 AK |
10429 | # `set' does not quote correctly, so add quotes: double-quote |
10430 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
ad6254c5 | 10431 | sed -n \ |
8a2fc586 AK |
10432 | "s/'/'\\\\''/g; |
10433 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 10434 | ;; #( |
ad6254c5 AK |
10435 | *) |
10436 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 10437 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 10438 | ;; |
7a197a62 AK |
10439 | esac | |
10440 | sort | |
10441 | ) | | |
ad6254c5 | 10442 | sed ' |
7a197a62 | 10443 | /^ac_cv_env_/b end |
ad6254c5 | 10444 | t clear |
7a197a62 | 10445 | :clear |
ad6254c5 AK |
10446 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
10447 | t end | |
7a197a62 AK |
10448 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
10449 | :end' >>confcache | |
10450 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10451 | if test -w "$cache_file"; then | |
10452 | test "x$cache_file" != "x/dev/null" && | |
f11781c5 | 10453 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
ec6a6fbe | 10454 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
ad6254c5 | 10455 | cat confcache >$cache_file |
795ca3e5 | 10456 | else |
f11781c5 | 10457 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
ec6a6fbe | 10458 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
795ca3e5 AK |
10459 | fi |
10460 | fi | |
10461 | rm -f confcache | |
10462 | ||
795ca3e5 AK |
10463 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
10464 | # Let make expand exec_prefix. | |
10465 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10466 | ||
72b2cb61 | 10467 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
10468 | |
10469 | ac_libobjs= | |
10470 | ac_ltlibobjs= | |
f11781c5 | 10471 | U= |
ad6254c5 AK |
10472 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
10473 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 10474 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 10475 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
10476 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
10477 | # will be set to the directory where LIBOBJS objects are built. | |
f11781c5 AK |
10478 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
10479 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
10480 | done |
10481 | LIBOBJS=$ac_libobjs | |
80992638 | 10482 | |
ad6254c5 AK |
10483 | LTLIBOBJS=$ac_ltlibobjs |
10484 | ||
10485 | ||
10486 | ||
10487 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 10488 | ac_write_fail=0 |
ad6254c5 AK |
10489 | ac_clean_files_save=$ac_clean_files |
10490 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
f11781c5 | 10491 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
ec6a6fbe | 10492 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
f11781c5 AK |
10493 | as_write_fail=0 |
10494 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
ad6254c5 AK |
10495 | #! $SHELL |
10496 | # Generated by $as_me. | |
795ca3e5 | 10497 | # Run this file to recreate the current configuration. |
795ca3e5 | 10498 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
10499 | # configure, is in config.log if it exists. |
10500 | ||
10501 | debug=false | |
10502 | ac_cs_recheck=false | |
10503 | ac_cs_silent=false | |
ad6254c5 | 10504 | |
f11781c5 AK |
10505 | SHELL=\${CONFIG_SHELL-$SHELL} |
10506 | export SHELL | |
10507 | _ASEOF | |
10508 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10509 | ## -------------------- ## | |
10510 | ## M4sh Initialization. ## | |
10511 | ## -------------------- ## | |
ad6254c5 | 10512 | |
25fbec5b AK |
10513 | # Be more Bourne compatible |
10514 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 10515 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
10516 | emulate sh |
10517 | NULLCMD=: | |
ec6a6fbe | 10518 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
10519 | # is contrary to our usage. Disable this feature. |
10520 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
10521 | setopt NO_GLOB_SUBST |
10522 | else | |
f11781c5 AK |
10523 | case `(set -o) 2>/dev/null` in #( |
10524 | *posix*) : | |
10525 | set -o posix ;; #( | |
10526 | *) : | |
10527 | ;; | |
25fbec5b | 10528 | esac |
7a197a62 | 10529 | fi |
25fbec5b AK |
10530 | |
10531 | ||
ec6a6fbe AK |
10532 | as_nl=' |
10533 | ' | |
10534 | export as_nl | |
10535 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10536 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10537 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10538 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
10539 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
10540 | # but without wasting forks for bash or zsh. | |
10541 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10542 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10543 | as_echo='print -r --' | |
10544 | as_echo_n='print -rn --' | |
10545 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
10546 | as_echo='printf %s\n' |
10547 | as_echo_n='printf %s' | |
10548 | else | |
10549 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10550 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10551 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 10552 | else |
ec6a6fbe AK |
10553 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
10554 | as_echo_n_body='eval | |
10555 | arg=$1; | |
f11781c5 | 10556 | case $arg in #( |
ec6a6fbe AK |
10557 | *"$as_nl"*) |
10558 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10559 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10560 | esac; | |
10561 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10562 | ' | |
10563 | export as_echo_n_body | |
10564 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 10565 | fi |
ec6a6fbe AK |
10566 | export as_echo_body |
10567 | as_echo='sh -c $as_echo_body as_echo' | |
10568 | fi | |
10569 | ||
10570 | # The user is always right. | |
10571 | if test "${PATH_SEPARATOR+set}" != set; then | |
10572 | PATH_SEPARATOR=: | |
10573 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10574 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10575 | PATH_SEPARATOR=';' | |
10576 | } | |
ad6254c5 AK |
10577 | fi |
10578 | ||
ad6254c5 | 10579 | |
7a197a62 AK |
10580 | # IFS |
10581 | # We need space, tab and new line, in precisely that order. Quoting is | |
10582 | # there to prevent editors from complaining about space-tab. | |
10583 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10584 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
10585 | IFS=" "" $as_nl" |
10586 | ||
10587 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 10588 | case $0 in #(( |
7a197a62 AK |
10589 | *[\\/]* ) as_myself=$0 ;; |
10590 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10591 | for as_dir in $PATH | |
10592 | do | |
10593 | IFS=$as_save_IFS | |
10594 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
10595 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
10596 | done | |
7a197a62 AK |
10597 | IFS=$as_save_IFS |
10598 | ||
10599 | ;; | |
10600 | esac | |
10601 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10602 | # in which case we are not to be found in the path. | |
10603 | if test "x$as_myself" = x; then | |
10604 | as_myself=$0 | |
10605 | fi | |
10606 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 10607 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 10608 | exit 1 |
7a197a62 AK |
10609 | fi |
10610 | ||
f11781c5 AK |
10611 | # Unset variables that we do not need and which cause bugs (e.g. in |
10612 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10613 | # suppresses any "Segmentation fault" message there. '((' could | |
10614 | # trigger a bug in pdksh 5.2.14. | |
10615 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10616 | do eval test x\${$as_var+set} = xset \ | |
10617 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 10618 | done |
ad6254c5 AK |
10619 | PS1='$ ' |
10620 | PS2='> ' | |
10621 | PS4='+ ' | |
10622 | ||
10623 | # NLS nuisances. | |
ec6a6fbe AK |
10624 | LC_ALL=C |
10625 | export LC_ALL | |
10626 | LANGUAGE=C | |
10627 | export LANGUAGE | |
8106cdd5 | 10628 | |
f11781c5 AK |
10629 | # CDPATH. |
10630 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10631 | ||
10632 | ||
10633 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
10634 | # ---------------------------------------- | |
10635 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
10636 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
10637 | # script with STATUS, using 1 if that was 0. | |
10638 | as_fn_error () | |
10639 | { | |
10640 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
10641 | if test "$4"; then | |
10642 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10643 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
10644 | fi | |
10645 | $as_echo "$as_me: error: $2" >&2 | |
10646 | as_fn_exit $as_status | |
10647 | } # as_fn_error | |
10648 | ||
10649 | ||
10650 | # as_fn_set_status STATUS | |
10651 | # ----------------------- | |
10652 | # Set $? to STATUS, without forking. | |
10653 | as_fn_set_status () | |
10654 | { | |
10655 | return $1 | |
10656 | } # as_fn_set_status | |
10657 | ||
10658 | # as_fn_exit STATUS | |
10659 | # ----------------- | |
10660 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10661 | as_fn_exit () | |
10662 | { | |
10663 | set +e | |
10664 | as_fn_set_status $1 | |
10665 | exit $1 | |
10666 | } # as_fn_exit | |
10667 | ||
10668 | # as_fn_unset VAR | |
10669 | # --------------- | |
10670 | # Portably unset VAR. | |
10671 | as_fn_unset () | |
10672 | { | |
10673 | { eval $1=; unset $1;} | |
10674 | } | |
10675 | as_unset=as_fn_unset | |
10676 | # as_fn_append VAR VALUE | |
10677 | # ---------------------- | |
10678 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10679 | # advantage of any shell optimizations that allow amortized linear growth over | |
10680 | # repeated appends, instead of the typical quadratic growth present in naive | |
10681 | # implementations. | |
10682 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10683 | eval 'as_fn_append () | |
10684 | { | |
10685 | eval $1+=\$2 | |
10686 | }' | |
10687 | else | |
10688 | as_fn_append () | |
10689 | { | |
10690 | eval $1=\$$1\$2 | |
10691 | } | |
10692 | fi # as_fn_append | |
10693 | ||
10694 | # as_fn_arith ARG... | |
10695 | # ------------------ | |
10696 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10697 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10698 | # must be portable across $(()) and expr. | |
10699 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10700 | eval 'as_fn_arith () | |
10701 | { | |
10702 | as_val=$(( $* )) | |
10703 | }' | |
10704 | else | |
10705 | as_fn_arith () | |
10706 | { | |
10707 | as_val=`expr "$@" || test $? -eq 1` | |
10708 | } | |
10709 | fi # as_fn_arith | |
10710 | ||
10711 | ||
7a197a62 AK |
10712 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10713 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
10714 | as_expr=expr |
10715 | else | |
10716 | as_expr=false | |
10717 | fi | |
8106cdd5 | 10718 | |
7a197a62 | 10719 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
10720 | as_basename=basename |
10721 | else | |
10722 | as_basename=false | |
10723 | fi | |
10724 | ||
f11781c5 AK |
10725 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10726 | as_dirname=dirname | |
10727 | else | |
10728 | as_dirname=false | |
10729 | fi | |
ad6254c5 | 10730 | |
7a197a62 | 10731 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
10732 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10733 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 10734 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 10735 | $as_echo X/"$0" | |
7a197a62 AK |
10736 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10737 | s//\1/ | |
10738 | q | |
10739 | } | |
10740 | /^X\/\(\/\/\)$/{ | |
10741 | s//\1/ | |
10742 | q | |
10743 | } | |
10744 | /^X\/\(\/\).*/{ | |
10745 | s//\1/ | |
10746 | q | |
10747 | } | |
10748 | s/.*/./; q'` | |
ad6254c5 | 10749 | |
f11781c5 AK |
10750 | # Avoid depending upon Character Ranges. |
10751 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10752 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10753 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10754 | as_cr_digits='0123456789' | |
10755 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7a197a62 AK |
10756 | |
10757 | ECHO_C= ECHO_N= ECHO_T= | |
f11781c5 | 10758 | case `echo -n x` in #((((( |
7a197a62 | 10759 | -n*) |
f11781c5 | 10760 | case `echo 'xy\c'` in |
7a197a62 | 10761 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
f11781c5 AK |
10762 | xy) ECHO_C='\c';; |
10763 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10764 | ECHO_T=' ';; | |
7a197a62 AK |
10765 | esac;; |
10766 | *) | |
10767 | ECHO_N='-n';; | |
ad6254c5 | 10768 | esac |
80992638 | 10769 | |
ad6254c5 | 10770 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
10771 | if test -d conf$$.dir; then |
10772 | rm -f conf$$.dir/conf$$.file | |
10773 | else | |
10774 | rm -f conf$$.dir | |
ec6a6fbe AK |
10775 | mkdir conf$$.dir 2>/dev/null |
10776 | fi | |
10777 | if (echo >conf$$.file) 2>/dev/null; then | |
10778 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10779 | as_ln_s='ln -s' | |
10780 | # ... but there are two gotchas: | |
10781 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10782 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10783 | # In both cases, we have to default to `cp -p'. | |
10784 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
10785 | as_ln_s='cp -p' | |
10786 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
10787 | as_ln_s=ln | |
10788 | else | |
ad6254c5 | 10789 | as_ln_s='cp -p' |
ec6a6fbe | 10790 | fi |
ad6254c5 AK |
10791 | else |
10792 | as_ln_s='cp -p' | |
10793 | fi | |
7a197a62 AK |
10794 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10795 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 10796 | |
f11781c5 AK |
10797 | |
10798 | # as_fn_mkdir_p | |
10799 | # ------------- | |
10800 | # Create "$as_dir" as a directory, including parents if necessary. | |
10801 | as_fn_mkdir_p () | |
10802 | { | |
10803 | ||
10804 | case $as_dir in #( | |
10805 | -*) as_dir=./$as_dir;; | |
10806 | esac | |
10807 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10808 | as_dirs= | |
10809 | while :; do | |
10810 | case $as_dir in #( | |
10811 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10812 | *) as_qdir=$as_dir;; | |
10813 | esac | |
10814 | as_dirs="'$as_qdir' $as_dirs" | |
10815 | as_dir=`$as_dirname -- "$as_dir" || | |
10816 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10817 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10818 | X"$as_dir" : 'X\(//\)$' \| \ | |
10819 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10820 | $as_echo X"$as_dir" | | |
10821 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10822 | s//\1/ | |
10823 | q | |
10824 | } | |
10825 | /^X\(\/\/\)[^/].*/{ | |
10826 | s//\1/ | |
10827 | q | |
10828 | } | |
10829 | /^X\(\/\/\)$/{ | |
10830 | s//\1/ | |
10831 | q | |
10832 | } | |
10833 | /^X\(\/\).*/{ | |
10834 | s//\1/ | |
10835 | q | |
10836 | } | |
10837 | s/.*/./; q'` | |
10838 | test -d "$as_dir" && break | |
10839 | done | |
10840 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10841 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
10842 | ||
10843 | ||
10844 | } # as_fn_mkdir_p | |
ad6254c5 | 10845 | if mkdir -p . 2>/dev/null; then |
f11781c5 | 10846 | as_mkdir_p='mkdir -p "$as_dir"' |
ad6254c5 | 10847 | else |
8a2fc586 | 10848 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
10849 | as_mkdir_p=false |
10850 | fi | |
10851 | ||
25fbec5b AK |
10852 | if test -x / >/dev/null 2>&1; then |
10853 | as_test_x='test -x' | |
7a197a62 | 10854 | else |
25fbec5b AK |
10855 | if ls -dL / >/dev/null 2>&1; then |
10856 | as_ls_L_option=L | |
10857 | else | |
10858 | as_ls_L_option= | |
10859 | fi | |
10860 | as_test_x=' | |
10861 | eval sh -c '\'' | |
10862 | if test -d "$1"; then | |
ec6a6fbe | 10863 | test -d "$1/."; |
25fbec5b | 10864 | else |
f11781c5 | 10865 | case $1 in #( |
ec6a6fbe | 10866 | -*)set "./$1";; |
25fbec5b | 10867 | esac; |
f11781c5 | 10868 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
25fbec5b AK |
10869 | ???[sx]*):;;*)false;;esac;fi |
10870 | '\'' sh | |
10871 | ' | |
7a197a62 | 10872 | fi |
25fbec5b | 10873 | as_executable_p=$as_test_x |
ad6254c5 AK |
10874 | |
10875 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 10876 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10877 | |
10878 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 10879 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10880 | |
10881 | ||
ad6254c5 | 10882 | exec 6>&1 |
f11781c5 AK |
10883 | ## ----------------------------------- ## |
10884 | ## Main body of $CONFIG_STATUS script. ## | |
10885 | ## ----------------------------------- ## | |
10886 | _ASEOF | |
10887 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
ad6254c5 | 10888 | |
f11781c5 AK |
10889 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10890 | # Save the log message, to keep $0 and so on meaningful, and to | |
ad6254c5 | 10891 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
10892 | # values after options handling. |
10893 | ac_log=" | |
ad6254c5 | 10894 | This file was extended by $as_me, which was |
f11781c5 | 10895 | generated by GNU Autoconf 2.66. Invocation command line was |
ad6254c5 AK |
10896 | |
10897 | CONFIG_FILES = $CONFIG_FILES | |
10898 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10899 | CONFIG_LINKS = $CONFIG_LINKS | |
10900 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10901 | $ $0 $@ | |
10902 | ||
7a197a62 AK |
10903 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
10904 | " | |
10905 | ||
ad6254c5 AK |
10906 | _ACEOF |
10907 | ||
ec6a6fbe AK |
10908 | case $ac_config_files in *" |
10909 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10910 | esac | |
10911 | ||
10912 | case $ac_config_headers in *" | |
10913 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10914 | esac | |
10915 | ||
10916 | ||
10917 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 10918 | # Files that config.status was made for. |
68f2de6d AK |
10919 | config_files="$ac_config_files" |
10920 | config_headers="$ac_config_headers" | |
ad6254c5 | 10921 | |
7a197a62 | 10922 | _ACEOF |
ad6254c5 | 10923 | |
ec6a6fbe | 10924 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 | 10925 | ac_cs_usage="\ |
f11781c5 AK |
10926 | \`$as_me' instantiates files and other configuration actions |
10927 | from templates according to the current configuration. Unless the files | |
10928 | and actions are specified as TAGs, all are instantiated by default. | |
ad6254c5 | 10929 | |
f11781c5 | 10930 | Usage: $0 [OPTION]... [TAG]... |
ad6254c5 AK |
10931 | |
10932 | -h, --help print this help, then exit | |
25fbec5b | 10933 | -V, --version print version number and configuration settings, then exit |
f11781c5 | 10934 | --config print configuration, then exit |
ec6a6fbe AK |
10935 | -q, --quiet, --silent |
10936 | do not print progress messages | |
ad6254c5 AK |
10937 | -d, --debug don't remove temporary files |
10938 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
10939 | --file=FILE[:TEMPLATE] |
10940 | instantiate the configuration file FILE | |
10941 | --header=FILE[:TEMPLATE] | |
10942 | instantiate the configuration header FILE | |
ad6254c5 AK |
10943 | |
10944 | Configuration files: | |
10945 | $config_files | |
10946 | ||
72b2cb61 AK |
10947 | Configuration headers: |
10948 | $config_headers | |
10949 | ||
f11781c5 | 10950 | Report bugs to the package provider." |
ad6254c5 | 10951 | |
7a197a62 | 10952 | _ACEOF |
ec6a6fbe | 10953 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
f11781c5 | 10954 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
ad6254c5 AK |
10955 | ac_cs_version="\\ |
10956 | config.status | |
f11781c5 AK |
10957 | configured by $0, generated by GNU Autoconf 2.66, |
10958 | with options \\"\$ac_cs_config\\" | |
ad6254c5 | 10959 | |
f11781c5 | 10960 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
10961 | This config.status script is free software; the Free Software Foundation |
10962 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
10963 | |
10964 | ac_pwd='$ac_pwd' | |
10965 | srcdir='$srcdir' | |
10966 | INSTALL='$INSTALL' | |
fddafd51 | 10967 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
10968 | AWK='$AWK' |
10969 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
10970 | _ACEOF |
10971 | ||
ec6a6fbe AK |
10972 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10973 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
10974 | ac_need_defaults=: |
10975 | while test $# != 0 | |
10976 | do | |
10977 | case $1 in | |
10978 | --*=*) | |
7a197a62 AK |
10979 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10980 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
10981 | ac_shift=: |
10982 | ;; | |
7a197a62 | 10983 | *) |
ad6254c5 AK |
10984 | ac_option=$1 |
10985 | ac_optarg=$2 | |
10986 | ac_shift=shift | |
10987 | ;; | |
ad6254c5 AK |
10988 | esac |
10989 | ||
10990 | case $ac_option in | |
10991 | # Handling of the options. | |
ad6254c5 AK |
10992 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
10993 | ac_cs_recheck=: ;; | |
7a197a62 | 10994 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 10995 | $as_echo "$ac_cs_version"; exit ;; |
f11781c5 AK |
10996 | --config | --confi | --conf | --con | --co | --c ) |
10997 | $as_echo "$ac_cs_config"; exit ;; | |
7a197a62 | 10998 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
10999 | debug=: ;; |
11000 | --file | --fil | --fi | --f ) | |
11001 | $ac_shift | |
ec6a6fbe AK |
11002 | case $ac_optarg in |
11003 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11004 | esac | |
f11781c5 | 11005 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
ad6254c5 AK |
11006 | ac_need_defaults=false;; |
11007 | --header | --heade | --head | --hea ) | |
11008 | $ac_shift | |
ec6a6fbe AK |
11009 | case $ac_optarg in |
11010 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11011 | esac | |
f11781c5 | 11012 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
ad6254c5 | 11013 | ac_need_defaults=false;; |
7a197a62 AK |
11014 | --he | --h) |
11015 | # Conflict between --help and --header | |
f11781c5 AK |
11016 | as_fn_error $? "ambiguous option: \`$1' |
11017 | Try \`$0 --help' for more information.";; | |
7a197a62 | 11018 | --help | --hel | -h ) |
ec6a6fbe | 11019 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
11020 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11021 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11022 | ac_cs_silent=: ;; | |
11023 | ||
11024 | # This is an error. | |
f11781c5 AK |
11025 | -*) as_fn_error $? "unrecognized option: \`$1' |
11026 | Try \`$0 --help' for more information." ;; | |
ad6254c5 | 11027 | |
f11781c5 | 11028 | *) as_fn_append ac_config_targets " $1" |
7a197a62 | 11029 | ac_need_defaults=false ;; |
ad6254c5 AK |
11030 | |
11031 | esac | |
11032 | shift | |
11033 | done | |
11034 | ||
11035 | ac_configure_extra_args= | |
11036 | ||
11037 | if $ac_cs_silent; then | |
11038 | exec 6>/dev/null | |
11039 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11040 | fi | |
11041 | ||
11042 | _ACEOF | |
ec6a6fbe | 11043 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 11044 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
11045 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
11046 | shift | |
11047 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
11048 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 11049 | export CONFIG_SHELL |
ec6a6fbe | 11050 | exec "\$@" |
ad6254c5 AK |
11051 | fi |
11052 | ||
11053 | _ACEOF | |
ec6a6fbe | 11054 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11055 | exec 5>>config.log |
11056 | { | |
11057 | echo | |
11058 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11059 | ## Running $as_me. ## | |
11060 | _ASBOX | |
ec6a6fbe | 11061 | $as_echo "$ac_log" |
7a197a62 | 11062 | } >&5 |
ad6254c5 | 11063 | |
7a197a62 | 11064 | _ACEOF |
ec6a6fbe | 11065 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 11066 | _ACEOF |
ad6254c5 | 11067 | |
ec6a6fbe | 11068 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11069 | |
11070 | # Handling of arguments. | |
ad6254c5 AK |
11071 | for ac_config_target in $ac_config_targets |
11072 | do | |
7a197a62 AK |
11073 | case $ac_config_target in |
11074 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
11075 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11076 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
11077 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
11078 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 11079 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
11080 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
11081 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 11082 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 11083 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
11084 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
11085 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 11086 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 11087 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 11088 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
11089 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
11090 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
11091 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
11092 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11093 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11094 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 11095 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 11096 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 11097 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
11098 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
11099 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 11100 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 11101 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
11102 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
11103 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 11104 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 11105 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 11106 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
6e5c1f75 PR |
11107 | "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;; |
11108 | "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;; | |
7a197a62 | 11109 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 11110 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 11111 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 11112 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 11113 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
11114 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
11115 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
d1e8046f | 11116 | "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;; |
7a197a62 | 11117 | |
f11781c5 | 11118 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
80992638 | 11119 | esac |
ad6254c5 AK |
11120 | done |
11121 | ||
7a197a62 | 11122 | |
ad6254c5 AK |
11123 | # If the user did not use the arguments to specify the items to instantiate, |
11124 | # then the envvar interface is used. Set only those that are not. | |
11125 | # We use the long form for the default assignment because of an extremely | |
11126 | # bizarre bug on SunOS 4.1.3. | |
11127 | if $ac_need_defaults; then | |
11128 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 11129 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
11130 | fi |
11131 | ||
11132 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 11133 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 11134 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
11135 | # Hook for its removal unless debugging. |
11136 | # Note that there is a small window in which the directory will not be cleaned: | |
11137 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
11138 | $debug || |
11139 | { | |
7a197a62 AK |
11140 | tmp= |
11141 | trap 'exit_status=$? | |
11142 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
11143 | ' 0 | |
f11781c5 | 11144 | trap 'as_fn_exit 1' 1 2 13 15 |
ad6254c5 | 11145 | } |
ad6254c5 AK |
11146 | # Create a (secure) tmp directory for tmp files. |
11147 | ||
11148 | { | |
7a197a62 | 11149 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
11150 | test -n "$tmp" && test -d "$tmp" |
11151 | } || | |
11152 | { | |
7a197a62 AK |
11153 | tmp=./conf$$-$RANDOM |
11154 | (umask 077 && mkdir "$tmp") | |
f11781c5 | 11155 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ad6254c5 | 11156 | |
ec6a6fbe AK |
11157 | # Set up the scripts for CONFIG_FILES section. |
11158 | # No need to generate them if there are no CONFIG_FILES. | |
11159 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 11160 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 11161 | |
68f2de6d | 11162 | |
f11781c5 AK |
11163 | ac_cr=`echo X | tr X '\015'` |
11164 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
11165 | # But we know of no other shell where ac_cr would be empty at this | |
11166 | # point, so we can use a bashism as a fallback. | |
11167 | if test "x$ac_cr" = x; then | |
11168 | eval ac_cr=\$\'\\r\' | |
11169 | fi | |
ec6a6fbe AK |
11170 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
11171 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
11172 | ac_cs_awk_cr='\\r' | |
11173 | else | |
11174 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 11175 | fi |
7a197a62 | 11176 | |
ec6a6fbe | 11177 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 11178 | _ACEOF |
7a197a62 | 11179 | |
8106cdd5 | 11180 | |
ec6a6fbe AK |
11181 | { |
11182 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
11183 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
11184 | echo "_ACEOF" | |
11185 | } >conf$$subs.sh || | |
f11781c5 AK |
11186 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
11187 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
1995c9ff AK |
11188 | ac_delim='%!_!# ' |
11189 | for ac_last_try in false false false false false :; do | |
ec6a6fbe | 11190 | . ./conf$$subs.sh || |
f11781c5 | 11191 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe AK |
11192 | |
11193 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
11194 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
11195 | break |
11196 | elif $ac_last_try; then | |
f11781c5 | 11197 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
1995c9ff AK |
11198 | else |
11199 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11200 | fi | |
11201 | done | |
ec6a6fbe AK |
11202 | rm -f conf$$subs.sh |
11203 | ||
11204 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11205 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
11206 | _ACEOF | |
11207 | sed -n ' | |
11208 | h | |
11209 | s/^/S["/; s/!.*/"]=/ | |
11210 | p | |
11211 | g | |
11212 | s/^[^!]*!// | |
11213 | :repl | |
11214 | t repl | |
11215 | s/'"$ac_delim"'$// | |
11216 | t delim | |
11217 | :nl | |
11218 | h | |
f11781c5 | 11219 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11220 | t more1 |
11221 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
11222 | p | |
11223 | n | |
11224 | b repl | |
11225 | :more1 | |
11226 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11227 | p | |
11228 | g | |
11229 | s/.\{148\}// | |
11230 | t nl | |
11231 | :delim | |
11232 | h | |
f11781c5 | 11233 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11234 | t more2 |
11235 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
11236 | p | |
11237 | b | |
11238 | :more2 | |
11239 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11240 | p | |
11241 | g | |
11242 | s/.\{148\}// | |
11243 | t delim | |
11244 | ' <conf$$subs.awk | sed ' | |
11245 | /^[^""]/{ | |
11246 | N | |
11247 | s/\n// | |
11248 | } | |
11249 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
11250 | rm -f conf$$subs.awk | |
11251 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11252 | _ACAWK | |
11253 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
11254 | for (key in S) S_is_set[key] = 1 | |
11255 | FS = "\a" | |
7a197a62 | 11256 | |
ec6a6fbe AK |
11257 | } |
11258 | { | |
11259 | line = $ 0 | |
11260 | nfields = split(line, field, "@") | |
11261 | substed = 0 | |
11262 | len = length(field[1]) | |
11263 | for (i = 2; i < nfields; i++) { | |
11264 | key = field[i] | |
11265 | keylen = length(key) | |
11266 | if (S_is_set[key]) { | |
11267 | value = S[key] | |
11268 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
11269 | len += length(value) + length(field[++i]) | |
11270 | substed = 1 | |
11271 | } else | |
11272 | len += 1 + keylen | |
11273 | } | |
11274 | ||
11275 | print line | |
11276 | } | |
fddafd51 | 11277 | |
ec6a6fbe | 11278 | _ACAWK |
1995c9ff | 11279 | _ACEOF |
ec6a6fbe AK |
11280 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11281 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
11282 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
11283 | else | |
11284 | cat | |
11285 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
f11781c5 | 11286 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7a197a62 AK |
11287 | _ACEOF |
11288 | ||
f11781c5 AK |
11289 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
11290 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7a197a62 AK |
11291 | # trailing colons and then remove the whole line if VPATH becomes empty |
11292 | # (actually we leave an empty line to preserve line numbers). | |
11293 | if test "x$srcdir" = x.; then | |
f11781c5 AK |
11294 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
11295 | h | |
11296 | s/// | |
11297 | s/^/:/ | |
11298 | s/[ ]*$/:/ | |
11299 | s/:\$(srcdir):/:/g | |
11300 | s/:\${srcdir}:/:/g | |
11301 | s/:@srcdir@:/:/g | |
11302 | s/^:*// | |
7a197a62 | 11303 | s/:*$// |
f11781c5 AK |
11304 | x |
11305 | s/\(=[ ]*\).*/\1/ | |
11306 | G | |
11307 | s/\n// | |
7a197a62 AK |
11308 | s/^[^=]*=[ ]*$// |
11309 | }' | |
11310 | fi | |
11311 | ||
ec6a6fbe | 11312 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11313 | fi # test -n "$CONFIG_FILES" |
11314 | ||
ec6a6fbe AK |
11315 | # Set up the scripts for CONFIG_HEADERS section. |
11316 | # No need to generate them if there are no CONFIG_HEADERS. | |
11317 | # This happens for instance with `./config.status Makefile'. | |
11318 | if test -n "$CONFIG_HEADERS"; then | |
11319 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
11320 | BEGIN { | |
11321 | _ACEOF | |
11322 | ||
11323 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11324 | # here-document in config.status, that substitutes the proper values into | |
11325 | # config.h.in to produce config.h. | |
11326 | ||
11327 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11328 | # handling of long lines. | |
11329 | ac_delim='%!_!# ' | |
11330 | for ac_last_try in false false :; do | |
11331 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
11332 | if test -z "$ac_t"; then | |
11333 | break | |
11334 | elif $ac_last_try; then | |
f11781c5 | 11335 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
ec6a6fbe AK |
11336 | else |
11337 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11338 | fi | |
11339 | done | |
11340 | ||
11341 | # For the awk script, D is an array of macro values keyed by name, | |
11342 | # likewise P contains macro parameters if any. Preserve backslash | |
11343 | # newline sequences. | |
11344 | ||
11345 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11346 | sed -n ' | |
11347 | s/.\{148\}/&'"$ac_delim"'/g | |
11348 | t rset | |
11349 | :rset | |
11350 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11351 | t def | |
11352 | d | |
11353 | :def | |
11354 | s/\\$// | |
11355 | t bsnl | |
11356 | s/["\\]/\\&/g | |
11357 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11358 | D["\1"]=" \3"/p | |
11359 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11360 | d | |
11361 | :bsnl | |
11362 | s/["\\]/\\&/g | |
11363 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11364 | D["\1"]=" \3\\\\\\n"\\/p | |
11365 | t cont | |
11366 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11367 | t cont | |
11368 | d | |
11369 | :cont | |
11370 | n | |
11371 | s/.\{148\}/&'"$ac_delim"'/g | |
11372 | t clear | |
11373 | :clear | |
11374 | s/\\$// | |
11375 | t bsnlc | |
11376 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11377 | d | |
11378 | :bsnlc | |
11379 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11380 | b cont | |
11381 | ' <confdefs.h | sed ' | |
11382 | s/'"$ac_delim"'/"\\\ | |
11383 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11384 | ||
11385 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11386 | for (key in D) D_is_set[key] = 1 | |
11387 | FS = "\a" | |
11388 | } | |
11389 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11390 | line = \$ 0 | |
11391 | split(line, arg, " ") | |
11392 | if (arg[1] == "#") { | |
11393 | defundef = arg[2] | |
11394 | mac1 = arg[3] | |
11395 | } else { | |
11396 | defundef = substr(arg[1], 2) | |
11397 | mac1 = arg[2] | |
11398 | } | |
11399 | split(mac1, mac2, "(") #) | |
11400 | macro = mac2[1] | |
11401 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11402 | if (D_is_set[macro]) { | |
11403 | # Preserve the white space surrounding the "#". | |
11404 | print prefix "define", macro P[macro] D[macro] | |
11405 | next | |
11406 | } else { | |
11407 | # Replace #undef with comments. This is necessary, for example, | |
11408 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11409 | # on some systems where configure will not decide to define it. | |
11410 | if (defundef == "undef") { | |
11411 | print "/*", prefix defundef, macro, "*/" | |
11412 | next | |
11413 | } | |
11414 | } | |
11415 | } | |
11416 | { print } | |
11417 | _ACAWK | |
11418 | _ACEOF | |
11419 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
f11781c5 | 11420 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
ec6a6fbe AK |
11421 | fi # test -n "$CONFIG_HEADERS" |
11422 | ||
7a197a62 | 11423 | |
ec6a6fbe AK |
11424 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
11425 | shift | |
11426 | for ac_tag | |
7a197a62 AK |
11427 | do |
11428 | case $ac_tag in | |
11429 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11430 | esac | |
11431 | case $ac_mode$ac_tag in | |
11432 | :[FHL]*:*);; | |
f11781c5 | 11433 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7a197a62 AK |
11434 | :[FH]-) ac_tag=-:-;; |
11435 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11436 | esac | |
11437 | ac_save_IFS=$IFS | |
11438 | IFS=: | |
11439 | set x $ac_tag | |
11440 | IFS=$ac_save_IFS | |
11441 | shift | |
11442 | ac_file=$1 | |
11443 | shift | |
11444 | ||
11445 | case $ac_mode in | |
11446 | :L) ac_source=$1;; | |
11447 | :[FH]) | |
11448 | ac_file_inputs= | |
11449 | for ac_f | |
11450 | do | |
11451 | case $ac_f in | |
11452 | -) ac_f="$tmp/stdin";; | |
11453 | *) # Look for the file first in the build tree, then in the source tree | |
11454 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11455 | # because $ac_f cannot contain `:'. | |
11456 | test -f "$ac_f" || | |
11457 | case $ac_f in | |
11458 | [\\/$]*) false;; | |
11459 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11460 | esac || | |
f11781c5 | 11461 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7a197a62 | 11462 | esac |
ec6a6fbe | 11463 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
f11781c5 | 11464 | as_fn_append ac_file_inputs " '$ac_f'" |
7a197a62 AK |
11465 | done |
11466 | ||
11467 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11468 | # use $as_me), people would be surprised to read: | |
11469 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
11470 | configure_input='Generated from '` |
11471 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
11472 | `' by configure.' | |
7a197a62 AK |
11473 | if test x"$ac_file" != x-; then |
11474 | configure_input="$ac_file. $configure_input" | |
f11781c5 | 11475 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
ec6a6fbe | 11476 | $as_echo "$as_me: creating $ac_file" >&6;} |
7a197a62 | 11477 | fi |
ec6a6fbe AK |
11478 | # Neutralize special characters interpreted by sed in replacement strings. |
11479 | case $configure_input in #( | |
11480 | *\&* | *\|* | *\\* ) | |
11481 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
11482 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
11483 | *) ac_sed_conf_input=$configure_input;; | |
11484 | esac | |
7a197a62 AK |
11485 | |
11486 | case $ac_tag in | |
ec6a6fbe | 11487 | *:-:* | *:-) cat >"$tmp/stdin" \ |
f11781c5 | 11488 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7a197a62 AK |
11489 | esac |
11490 | ;; | |
80992638 | 11491 | esac |
8106cdd5 | 11492 | |
7a197a62 | 11493 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 11494 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
11495 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11496 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 11497 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 11498 | $as_echo X"$ac_file" | |
7a197a62 AK |
11499 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11500 | s//\1/ | |
11501 | q | |
11502 | } | |
11503 | /^X\(\/\/\)[^/].*/{ | |
11504 | s//\1/ | |
11505 | q | |
11506 | } | |
11507 | /^X\(\/\/\)$/{ | |
11508 | s//\1/ | |
11509 | q | |
11510 | } | |
11511 | /^X\(\/\).*/{ | |
11512 | s//\1/ | |
11513 | q | |
11514 | } | |
11515 | s/.*/./; q'` | |
f11781c5 | 11516 | as_dir="$ac_dir"; as_fn_mkdir_p |
ad6254c5 AK |
11517 | ac_builddir=. |
11518 | ||
7a197a62 AK |
11519 | case "$ac_dir" in |
11520 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11521 | *) | |
ec6a6fbe | 11522 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 11523 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 11524 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
11525 | case $ac_top_builddir_sub in |
11526 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11527 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11528 | esac ;; | |
11529 | esac | |
11530 | ac_abs_top_builddir=$ac_pwd | |
11531 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11532 | # for backward compatibility: | |
11533 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
11534 | |
11535 | case $srcdir in | |
7a197a62 | 11536 | .) # We are building in place. |
ad6254c5 | 11537 | ac_srcdir=. |
7a197a62 AK |
11538 | ac_top_srcdir=$ac_top_builddir_sub |
11539 | ac_abs_top_srcdir=$ac_pwd ;; | |
11540 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 11541 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
11542 | ac_top_srcdir=$srcdir |
11543 | ac_abs_top_srcdir=$srcdir ;; | |
11544 | *) # Relative name. | |
11545 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11546 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11547 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 11548 | esac |
7a197a62 | 11549 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 11550 | |
ad6254c5 | 11551 | |
7a197a62 AK |
11552 | case $ac_mode in |
11553 | :F) | |
11554 | # | |
11555 | # CONFIG_FILE | |
11556 | # | |
ad6254c5 AK |
11557 | |
11558 | case $INSTALL in | |
11559 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 11560 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 11561 | esac |
fddafd51 ZK |
11562 | ac_MKDIR_P=$MKDIR_P |
11563 | case $MKDIR_P in | |
11564 | [\\/$]* | ?:[\\/]* ) ;; | |
11565 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
11566 | esac | |
7a197a62 | 11567 | _ACEOF |
795ca3e5 | 11568 | |
ec6a6fbe | 11569 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11570 | # If the template does not know about datarootdir, expand it. |
11571 | # FIXME: This hack should be removed a few years after 2.60. | |
11572 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
ec6a6fbe AK |
11573 | ac_sed_dataroot=' |
11574 | /datarootdir/ { | |
7a197a62 AK |
11575 | p |
11576 | q | |
11577 | } | |
11578 | /@datadir@/p | |
11579 | /@docdir@/p | |
11580 | /@infodir@/p | |
11581 | /@localedir@/p | |
f11781c5 | 11582 | /@mandir@/p' |
ec6a6fbe | 11583 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7a197a62 AK |
11584 | *datarootdir*) ac_datarootdir_seen=yes;; |
11585 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
f11781c5 | 11586 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
ec6a6fbe | 11587 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
ad6254c5 | 11588 | _ACEOF |
ec6a6fbe | 11589 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11590 | ac_datarootdir_hack=' |
11591 | s&@datadir@&$datadir&g | |
11592 | s&@docdir@&$docdir&g | |
11593 | s&@infodir@&$infodir&g | |
11594 | s&@localedir@&$localedir&g | |
11595 | s&@mandir@&$mandir&g | |
f11781c5 | 11596 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7a197a62 AK |
11597 | esac |
11598 | _ACEOF | |
11599 | ||
11600 | # Neutralize VPATH when `$srcdir' = `.'. | |
11601 | # Shell code in configure.ac might set extrasub. | |
11602 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
11603 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11604 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
11605 | $extrasub |
11606 | _ACEOF | |
ec6a6fbe | 11607 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
11608 | :t |
11609 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 11610 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 11611 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 11612 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
11613 | s&@srcdir@&$ac_srcdir&;t t |
11614 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11615 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11616 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11617 | s&@builddir@&$ac_builddir&;t t | |
11618 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11619 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11620 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 11621 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 11622 | $ac_datarootdir_hack |
ec6a6fbe AK |
11623 | " |
11624 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
f11781c5 | 11625 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11626 | |
11627 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11628 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
11629 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
f11781c5 AK |
11630 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
11631 | which seems to be undefined. Please make sure it is defined" >&5 | |
ec6a6fbe | 11632 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f11781c5 | 11633 | which seems to be undefined. Please make sure it is defined" >&2;} |
7a197a62 AK |
11634 | |
11635 | rm -f "$tmp/stdin" | |
72b2cb61 | 11636 | case $ac_file in |
ec6a6fbe AK |
11637 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
11638 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
11639 | esac \ | |
f11781c5 | 11640 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11641 | ;; |
11642 | :H) | |
11643 | # | |
11644 | # CONFIG_HEADER | |
11645 | # | |
72b2cb61 | 11646 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
11647 | { |
11648 | $as_echo "/* $configure_input */" \ | |
11649 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
11650 | } >"$tmp/config.h" \ | |
f11781c5 | 11651 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
ec6a6fbe | 11652 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
f11781c5 | 11653 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
ec6a6fbe | 11654 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
72b2cb61 | 11655 | else |
ec6a6fbe AK |
11656 | rm -f "$ac_file" |
11657 | mv "$tmp/config.h" "$ac_file" \ | |
f11781c5 | 11658 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
72b2cb61 AK |
11659 | fi |
11660 | else | |
ec6a6fbe AK |
11661 | $as_echo "/* $configure_input */" \ |
11662 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
f11781c5 | 11663 | || as_fn_error $? "could not create -" "$LINENO" 5 |
72b2cb61 | 11664 | fi |
7a197a62 AK |
11665 | ;; |
11666 | ||
11667 | ||
11668 | esac | |
11669 | ||
11670 | done # for ac_tag | |
795ca3e5 | 11671 | |
795ca3e5 | 11672 | |
f11781c5 | 11673 | as_fn_exit 0 |
ad6254c5 | 11674 | _ACEOF |
ad6254c5 AK |
11675 | ac_clean_files=$ac_clean_files_save |
11676 | ||
ec6a6fbe | 11677 | test $ac_write_fail = 0 || |
f11781c5 | 11678 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe | 11679 | |
ad6254c5 AK |
11680 | |
11681 | # configure is writing to config.log, and then calls config.status. | |
11682 | # config.status does its own redirection, appending to config.log. | |
11683 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11684 | # by configure, so config.status won't be able to write to it; its | |
11685 | # output is simply discarded. So we exec the FD to /dev/null, | |
11686 | # effectively closing config.log, so it can be properly (re)opened and | |
11687 | # appended to by config.status. When coming back to configure, we | |
11688 | # need to make the FD available again. | |
11689 | if test "$no_create" != yes; then | |
11690 | ac_cs_success=: | |
11691 | ac_config_status_args= | |
11692 | test "$silent" = yes && | |
11693 | ac_config_status_args="$ac_config_status_args --quiet" | |
11694 | exec 5>/dev/null | |
11695 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11696 | exec 5>>config.log | |
11697 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11698 | # would make configure fail if this is the last instruction. | |
f11781c5 | 11699 | $ac_cs_success || as_fn_exit 1 |
ad6254c5 | 11700 | fi |
ec6a6fbe | 11701 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
f11781c5 | 11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
ec6a6fbe AK |
11703 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
11704 | fi | |
795ca3e5 | 11705 | |
2dc95e1c AK |
11706 | |
11707 | if test x$ODIRECT != xyes; then | |
f11781c5 | 11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
ec6a6fbe | 11709 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} |
2dc95e1c | 11710 | fi |