]>
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 | |
23b059e7 | 606 | WRITE_INSTALL |
0878503f | 607 | UDEV_SYNC |
a5f46f6a | 608 | UDEV_RULES |
f7f0854e | 609 | UDEV_PC |
db724a44 | 610 | UDEV_LIBS |
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 |
37ddf259 | 622 | OCF |
ec6a6fbe AK |
623 | MIRRORS |
624 | LVM_RELEASE_DATE | |
625 | LVM_RELEASE | |
626 | LVM_PATCHLEVEL | |
627 | LVM_MINOR | |
628 | LVM_MAJOR | |
bf456146 | 629 | LVM_LIBAPI |
ec6a6fbe | 630 | LVM_VERSION |
ec6a6fbe AK |
631 | LVM1_FALLBACK |
632 | LVM1 | |
633 | LOCALEDIR | |
634 | LIB_SUFFIX | |
635 | LDDEPS | |
636 | JOBS | |
637 | INTL_PACKAGE | |
638 | INTL | |
ec6a6fbe AK |
639 | HAVE_REALTIME |
640 | HAVE_LIBDL | |
ec6a6fbe AK |
641 | FSADM |
642 | DM_LIB_PATCHLEVEL | |
643 | DM_LIB_VERSION | |
644 | DM_IOCTLS | |
645 | DM_DEVICE_UID | |
646 | DM_DEVICE_MODE | |
647 | DM_DEVICE_GID | |
648 | DM_COMPAT | |
d1e8046f | 649 | DMEVENTD_PATH |
ec6a6fbe | 650 | DMEVENTD |
19a2c6e0 | 651 | DL_LIBS |
ec6a6fbe | 652 | DEVMAPPER |
b1f08e51 | 653 | DEFAULT_RUN_DIR |
3399ae32 | 654 | DEFAULT_LOCK_DIR |
fea55602 | 655 | DEFAULT_DATA_ALIGNMENT |
3399ae32 AK |
656 | DEFAULT_CACHE_SUBDIR |
657 | DEFAULT_BACKUP_SUBDIR | |
658 | DEFAULT_ARCHIVE_SUBDIR | |
659 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
660 | DEBUG |
661 | COPTIMISE_FLAG | |
e2997b73 | 662 | CONFDIR |
ec6a6fbe | 663 | CMDLIB |
c89bc357 | 664 | CLVMD_CMANAGERS |
ec6a6fbe AK |
665 | CLVMD |
666 | CLUSTER | |
667 | CLDWHOLEARCHIVE | |
668 | CLDNOWHOLEARCHIVE | |
669 | CLDFLAGS | |
670 | BUILD_DMEVENTD | |
66fd4529 | 671 | BUILD_CMIRRORD |
572fefeb | 672 | APPLIB |
ec6a6fbe AK |
673 | MODPROBE_CMD |
674 | MSGFMT | |
675 | LVM2CMD_LIB | |
572fefeb | 676 | LVM2APP_LIB |
54b362f9 AK |
677 | VALGRIND |
678 | RUBY19 | |
fd4728e1 | 679 | GENPNG |
ec6a6fbe AK |
680 | GENHTML |
681 | LCOV | |
90c80887 AK |
682 | SACKPT_LIBS |
683 | SACKPT_CFLAGS | |
a946372e AK |
684 | DLM_LIBS |
685 | DLM_CFLAGS | |
e2997b73 AK |
686 | CPG_LIBS |
687 | CPG_CFLAGS | |
688 | CONFDB_LIBS | |
689 | CONFDB_CFLAGS | |
a946372e AK |
690 | SALCK_LIBS |
691 | SALCK_CFLAGS | |
e2997b73 AK |
692 | QUORUM_LIBS |
693 | QUORUM_CFLAGS | |
a946372e AK |
694 | COROSYNC_LIBS |
695 | COROSYNC_CFLAGS | |
696 | CMAN_LIBS | |
697 | CMAN_CFLAGS | |
698 | GULM_LIBS | |
699 | GULM_CFLAGS | |
700 | CCS_LIBS | |
701 | CCS_CFLAGS | |
702 | PKGCONFIGINIT_LIBS | |
703 | PKGCONFIGINIT_CFLAGS | |
f11781c5 AK |
704 | PKG_CONFIG_LIBDIR |
705 | PKG_CONFIG_PATH | |
e2997b73 | 706 | PKG_CONFIG |
ec6a6fbe AK |
707 | POW_LIB |
708 | LIBOBJS | |
709 | ALLOCA | |
710 | CSCOPE_CMD | |
711 | CFLOW_CMD | |
712 | RANLIB | |
713 | MKDIR_P | |
714 | SET_MAKE | |
715 | LN_S | |
716 | INSTALL_DATA | |
717 | INSTALL_SCRIPT | |
718 | INSTALL_PROGRAM | |
719 | EGREP | |
720 | GREP | |
721 | CPP | |
722 | OBJEXT | |
723 | EXEEXT | |
724 | ac_ct_CC | |
725 | CPPFLAGS | |
726 | LDFLAGS | |
727 | CFLAGS | |
728 | CC | |
729 | AWK | |
730 | SED | |
731 | target_os | |
732 | target_vendor | |
733 | target_cpu | |
734 | target | |
735 | host_os | |
736 | host_vendor | |
737 | host_cpu | |
738 | host | |
739 | build_os | |
740 | build_vendor | |
741 | build_cpu | |
742 | build | |
743 | target_alias | |
744 | host_alias | |
745 | build_alias | |
746 | LIBS | |
747 | ECHO_T | |
748 | ECHO_N | |
749 | ECHO_C | |
750 | DEFS | |
751 | mandir | |
752 | localedir | |
753 | libdir | |
754 | psdir | |
755 | pdfdir | |
756 | dvidir | |
757 | htmldir | |
758 | infodir | |
759 | docdir | |
760 | oldincludedir | |
761 | includedir | |
762 | localstatedir | |
763 | sharedstatedir | |
764 | sysconfdir | |
765 | datadir | |
766 | datarootdir | |
767 | libexecdir | |
768 | sbindir | |
769 | bindir | |
770 | program_transform_name | |
771 | prefix | |
772 | exec_prefix | |
f11781c5 | 773 | PACKAGE_URL |
ec6a6fbe AK |
774 | PACKAGE_BUGREPORT |
775 | PACKAGE_STRING | |
776 | PACKAGE_VERSION | |
777 | PACKAGE_TARNAME | |
778 | PACKAGE_NAME | |
779 | PATH_SEPARATOR | |
780 | SHELL' | |
ad6254c5 | 781 | ac_subst_files='' |
ec6a6fbe AK |
782 | ac_user_opts=' |
783 | enable_option_checking | |
784 | enable_static_link | |
785 | with_user | |
786 | with_group | |
787 | with_device_uid | |
788 | with_device_gid | |
789 | with_device_mode | |
790 | enable_lvm1_fallback | |
791 | with_lvm1 | |
792 | with_pool | |
793 | with_cluster | |
794 | with_snapshots | |
795 | with_mirrors | |
8fea97b7 | 796 | with_replicators |
ec6a6fbe AK |
797 | enable_readline |
798 | enable_realtime | |
37ddf259 | 799 | enable_ocf |
ec6a6fbe | 800 | with_clvmd |
8c4e8a18 | 801 | with_clvmd_pidfile |
66fd4529 AK |
802 | enable_cmirrord |
803 | with_cmirrord_pidfile | |
ec6a6fbe AK |
804 | enable_debug |
805 | with_optimisation | |
806 | enable_profiling | |
54b362f9 | 807 | enable_testing |
d1e8046f | 808 | enable_valgrind_pool |
ec6a6fbe | 809 | enable_devmapper |
a5f46f6a AK |
810 | enable_udev_sync |
811 | enable_udev_rules | |
ec6a6fbe | 812 | enable_compat |
95eaa683 | 813 | enable_units_compat |
ec6a6fbe AK |
814 | enable_ioctl |
815 | enable_o_direct | |
572fefeb | 816 | enable_applib |
ec6a6fbe AK |
817 | enable_cmdlib |
818 | enable_pkgconfig | |
23b059e7 | 819 | enable_write_install |
ec6a6fbe AK |
820 | enable_fsadm |
821 | enable_dmeventd | |
822 | enable_selinux | |
823 | enable_nls | |
824 | with_localedir | |
825 | with_confdir | |
826 | with_staticdir | |
827 | with_usrlibdir | |
828 | with_usrsbindir | |
a5f46f6a | 829 | with_udev_prefix |
78ce7acc | 830 | with_udevdir |
ec6a6fbe AK |
831 | with_dmeventd_pidfile |
832 | with_dmeventd_path | |
8bae0a1e | 833 | with_default_run_dir |
3399ae32 AK |
834 | with_default_system_dir |
835 | with_default_archive_subdir | |
836 | with_default_backup_subdir | |
837 | with_default_cache_subdir | |
838 | with_default_locking_dir | |
fea55602 | 839 | with_default_data_alignment |
ec6a6fbe AK |
840 | with_interface |
841 | ' | |
7a197a62 AK |
842 | ac_precious_vars='build_alias |
843 | host_alias | |
844 | target_alias | |
845 | CC | |
846 | CFLAGS | |
847 | LDFLAGS | |
25fbec5b | 848 | LIBS |
7a197a62 | 849 | CPPFLAGS |
e2997b73 AK |
850 | CPP |
851 | PKG_CONFIG | |
f11781c5 AK |
852 | PKG_CONFIG_PATH |
853 | PKG_CONFIG_LIBDIR | |
a946372e AK |
854 | PKGCONFIGINIT_CFLAGS |
855 | PKGCONFIGINIT_LIBS | |
856 | CCS_CFLAGS | |
857 | CCS_LIBS | |
858 | GULM_CFLAGS | |
859 | GULM_LIBS | |
860 | CMAN_CFLAGS | |
861 | CMAN_LIBS | |
862 | COROSYNC_CFLAGS | |
863 | COROSYNC_LIBS | |
e2997b73 AK |
864 | QUORUM_CFLAGS |
865 | QUORUM_LIBS | |
a946372e AK |
866 | SALCK_CFLAGS |
867 | SALCK_LIBS | |
e2997b73 AK |
868 | CONFDB_CFLAGS |
869 | CONFDB_LIBS | |
870 | CPG_CFLAGS | |
a946372e AK |
871 | CPG_LIBS |
872 | DLM_CFLAGS | |
90c80887 AK |
873 | DLM_LIBS |
874 | SACKPT_CFLAGS | |
875 | SACKPT_LIBS' | |
7a197a62 | 876 | |
795ca3e5 AK |
877 | |
878 | # Initialize some variables set by options. | |
ad6254c5 AK |
879 | ac_init_help= |
880 | ac_init_version=false | |
ec6a6fbe AK |
881 | ac_unrecognized_opts= |
882 | ac_unrecognized_sep= | |
795ca3e5 AK |
883 | # The variables have the same names as the options, with |
884 | # dashes changed to underlines. | |
ad6254c5 | 885 | cache_file=/dev/null |
795ca3e5 | 886 | exec_prefix=NONE |
795ca3e5 | 887 | no_create= |
795ca3e5 AK |
888 | no_recursion= |
889 | prefix=NONE | |
890 | program_prefix=NONE | |
891 | program_suffix=NONE | |
892 | program_transform_name=s,x,x, | |
893 | silent= | |
894 | site= | |
895 | srcdir= | |
795ca3e5 AK |
896 | verbose= |
897 | x_includes=NONE | |
898 | x_libraries=NONE | |
ad6254c5 AK |
899 | |
900 | # Installation directory options. | |
901 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
902 | # and all the variables that are supposed to be based on exec_prefix | |
903 | # by default will actually change. | |
904 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 905 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
906 | bindir='${exec_prefix}/bin' |
907 | sbindir='${exec_prefix}/sbin' | |
908 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
909 | datarootdir='${prefix}/share' |
910 | datadir='${datarootdir}' | |
795ca3e5 AK |
911 | sysconfdir='${prefix}/etc' |
912 | sharedstatedir='${prefix}/com' | |
913 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
914 | includedir='${prefix}/include' |
915 | oldincludedir='/usr/include' | |
7a197a62 AK |
916 | docdir='${datarootdir}/doc/${PACKAGE}' |
917 | infodir='${datarootdir}/info' | |
918 | htmldir='${docdir}' | |
919 | dvidir='${docdir}' | |
920 | pdfdir='${docdir}' | |
921 | psdir='${docdir}' | |
922 | libdir='${exec_prefix}/lib' | |
923 | localedir='${datarootdir}/locale' | |
924 | mandir='${datarootdir}/man' | |
795ca3e5 | 925 | |
795ca3e5 | 926 | ac_prev= |
7a197a62 | 927 | ac_dashdash= |
795ca3e5 AK |
928 | for ac_option |
929 | do | |
795ca3e5 AK |
930 | # If the previous option needs an argument, assign it. |
931 | if test -n "$ac_prev"; then | |
7a197a62 | 932 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
933 | ac_prev= |
934 | continue | |
935 | fi | |
936 | ||
7a197a62 AK |
937 | case $ac_option in |
938 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
939 | *) ac_optarg=yes ;; | |
940 | esac | |
795ca3e5 AK |
941 | |
942 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
943 | ||
7a197a62 AK |
944 | case $ac_dashdash$ac_option in |
945 | --) | |
946 | ac_dashdash=yes ;; | |
795ca3e5 AK |
947 | |
948 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
949 | ac_prev=bindir ;; | |
950 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 951 | bindir=$ac_optarg ;; |
795ca3e5 AK |
952 | |
953 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 954 | ac_prev=build_alias ;; |
795ca3e5 | 955 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 956 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
957 | |
958 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
959 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
960 | ac_prev=cache_file ;; | |
961 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
962 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
963 | cache_file=$ac_optarg ;; |
964 | ||
965 | --config-cache | -C) | |
966 | cache_file=config.cache ;; | |
795ca3e5 | 967 | |
7a197a62 | 968 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 969 | ac_prev=datadir ;; |
7a197a62 | 970 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 971 | datadir=$ac_optarg ;; |
795ca3e5 | 972 | |
7a197a62 AK |
973 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
974 | | --dataroo | --dataro | --datar) | |
975 | ac_prev=datarootdir ;; | |
976 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
977 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
978 | datarootdir=$ac_optarg ;; | |
979 | ||
795ca3e5 | 980 | -disable-* | --disable-*) |
ec6a6fbe | 981 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 982 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 983 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 984 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
985 | ac_useropt_orig=$ac_useropt |
986 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
987 | case $ac_user_opts in | |
988 | *" | |
989 | "enable_$ac_useropt" | |
990 | "*) ;; | |
991 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
992 | ac_unrecognized_sep=', ';; | |
993 | esac | |
994 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
995 | |
996 | -docdir | --docdir | --docdi | --doc | --do) | |
997 | ac_prev=docdir ;; | |
998 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
999 | docdir=$ac_optarg ;; | |
1000 | ||
1001 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1002 | ac_prev=dvidir ;; | |
1003 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1004 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1005 | |
1006 | -enable-* | --enable-*) | |
ec6a6fbe | 1007 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1008 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1009 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1010 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
1011 | ac_useropt_orig=$ac_useropt |
1012 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1013 | case $ac_user_opts in | |
1014 | *" | |
1015 | "enable_$ac_useropt" | |
1016 | "*) ;; | |
1017 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1018 | ac_unrecognized_sep=', ';; | |
1019 | esac | |
1020 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1021 | |
1022 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1023 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1024 | | --exec | --exe | --ex) | |
1025 | ac_prev=exec_prefix ;; | |
1026 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1027 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1028 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1029 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1030 | |
1031 | -gas | --gas | --ga | --g) | |
1032 | # Obsolete; use --with-gas. | |
1033 | with_gas=yes ;; | |
1034 | ||
ad6254c5 AK |
1035 | -help | --help | --hel | --he | -h) |
1036 | ac_init_help=long ;; | |
1037 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1038 | ac_init_help=recursive ;; | |
1039 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1040 | ac_init_help=short ;; | |
795ca3e5 AK |
1041 | |
1042 | -host | --host | --hos | --ho) | |
ad6254c5 | 1043 | ac_prev=host_alias ;; |
795ca3e5 | 1044 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1045 | host_alias=$ac_optarg ;; |
795ca3e5 | 1046 | |
7a197a62 AK |
1047 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1048 | ac_prev=htmldir ;; | |
1049 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1050 | | --ht=*) | |
1051 | htmldir=$ac_optarg ;; | |
1052 | ||
795ca3e5 AK |
1053 | -includedir | --includedir | --includedi | --included | --include \ |
1054 | | --includ | --inclu | --incl | --inc) | |
1055 | ac_prev=includedir ;; | |
1056 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1057 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1058 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1059 | |
1060 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1061 | ac_prev=infodir ;; | |
1062 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1063 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1064 | |
1065 | -libdir | --libdir | --libdi | --libd) | |
1066 | ac_prev=libdir ;; | |
1067 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1068 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1069 | |
1070 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1071 | | --libexe | --libex | --libe) | |
1072 | ac_prev=libexecdir ;; | |
1073 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1074 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1075 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1076 | |
7a197a62 AK |
1077 | -localedir | --localedir | --localedi | --localed | --locale) |
1078 | ac_prev=localedir ;; | |
1079 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1080 | localedir=$ac_optarg ;; | |
1081 | ||
795ca3e5 | 1082 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1083 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1084 | ac_prev=localstatedir ;; |
1085 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1086 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1087 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1088 | |
1089 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1090 | ac_prev=mandir ;; | |
1091 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1092 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1093 | |
1094 | -nfp | --nfp | --nf) | |
1095 | # Obsolete; use --without-fp. | |
1096 | with_fp=no ;; | |
1097 | ||
1098 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1099 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1100 | no_create=yes ;; |
1101 | ||
1102 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1103 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1104 | no_recursion=yes ;; | |
1105 | ||
1106 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1107 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1108 | | --oldin | --oldi | --old | --ol | --o) | |
1109 | ac_prev=oldincludedir ;; | |
1110 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1111 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1112 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1113 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1114 | |
1115 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1116 | ac_prev=prefix ;; | |
1117 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1118 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1119 | |
1120 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1121 | | --program-pre | --program-pr | --program-p) | |
1122 | ac_prev=program_prefix ;; | |
1123 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1124 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1125 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1126 | |
1127 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1128 | | --program-suf | --program-su | --program-s) | |
1129 | ac_prev=program_suffix ;; | |
1130 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1131 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1132 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1133 | |
1134 | -program-transform-name | --program-transform-name \ | |
1135 | | --program-transform-nam | --program-transform-na \ | |
1136 | | --program-transform-n | --program-transform- \ | |
1137 | | --program-transform | --program-transfor \ | |
1138 | | --program-transfo | --program-transf \ | |
1139 | | --program-trans | --program-tran \ | |
1140 | | --progr-tra | --program-tr | --program-t) | |
1141 | ac_prev=program_transform_name ;; | |
1142 | -program-transform-name=* | --program-transform-name=* \ | |
1143 | | --program-transform-nam=* | --program-transform-na=* \ | |
1144 | | --program-transform-n=* | --program-transform-=* \ | |
1145 | | --program-transform=* | --program-transfor=* \ | |
1146 | | --program-transfo=* | --program-transf=* \ | |
1147 | | --program-trans=* | --program-tran=* \ | |
1148 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1149 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1150 | |
7a197a62 AK |
1151 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1152 | ac_prev=pdfdir ;; | |
1153 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1154 | pdfdir=$ac_optarg ;; | |
1155 | ||
1156 | -psdir | --psdir | --psdi | --psd | --ps) | |
1157 | ac_prev=psdir ;; | |
1158 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1159 | psdir=$ac_optarg ;; | |
1160 | ||
795ca3e5 AK |
1161 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1162 | | -silent | --silent | --silen | --sile | --sil) | |
1163 | silent=yes ;; | |
1164 | ||
1165 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1166 | ac_prev=sbindir ;; | |
1167 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1168 | | --sbi=* | --sb=*) | |
ad6254c5 | 1169 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1170 | |
1171 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1172 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1173 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1174 | | --sha | --sh) | |
1175 | ac_prev=sharedstatedir ;; | |
1176 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1177 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1178 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1179 | | --sha=* | --sh=*) | |
ad6254c5 | 1180 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1181 | |
1182 | -site | --site | --sit) | |
1183 | ac_prev=site ;; | |
1184 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1185 | site=$ac_optarg ;; |
795ca3e5 AK |
1186 | |
1187 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1188 | ac_prev=srcdir ;; | |
1189 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1190 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1191 | |
1192 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1193 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1194 | ac_prev=sysconfdir ;; | |
1195 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1196 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1197 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1198 | |
1199 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1200 | ac_prev=target_alias ;; |
795ca3e5 | 1201 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1202 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1203 | |
1204 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1205 | verbose=yes ;; | |
1206 | ||
ad6254c5 AK |
1207 | -version | --version | --versio | --versi | --vers | -V) |
1208 | ac_init_version=: ;; | |
795ca3e5 AK |
1209 | |
1210 | -with-* | --with-*) | |
ec6a6fbe | 1211 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1212 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1213 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1214 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1215 | ac_useropt_orig=$ac_useropt |
1216 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1217 | case $ac_user_opts in | |
1218 | *" | |
1219 | "with_$ac_useropt" | |
1220 | "*) ;; | |
1221 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1222 | ac_unrecognized_sep=', ';; | |
1223 | esac | |
1224 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1225 | |
1226 | -without-* | --without-*) | |
ec6a6fbe | 1227 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1228 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1229 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1230 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1231 | ac_useropt_orig=$ac_useropt |
1232 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1233 | case $ac_user_opts in | |
1234 | *" | |
1235 | "with_$ac_useropt" | |
1236 | "*) ;; | |
1237 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1238 | ac_unrecognized_sep=', ';; | |
1239 | esac | |
1240 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1241 | |
1242 | --x) | |
1243 | # Obsolete; use --with-x. | |
1244 | with_x=yes ;; | |
1245 | ||
1246 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1247 | | --x-incl | --x-inc | --x-in | --x-i) | |
1248 | ac_prev=x_includes ;; | |
1249 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1250 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1251 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1252 | |
1253 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1254 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1255 | ac_prev=x_libraries ;; | |
1256 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1257 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1258 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1259 | |
f11781c5 AK |
1260 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1261 | Try \`$0 --help' for more information" | |
795ca3e5 AK |
1262 | ;; |
1263 | ||
ad6254c5 AK |
1264 | *=*) |
1265 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1266 | # Reject names that are not valid shell variable names. | |
f11781c5 AK |
1267 | case $ac_envvar in #( |
1268 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1269 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1270 | esac | |
7a197a62 | 1271 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1272 | export $ac_envvar ;; |
1273 | ||
795ca3e5 | 1274 | *) |
ad6254c5 | 1275 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1276 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1277 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1278 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1279 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1280 | ;; |
1281 | ||
1282 | esac | |
1283 | done | |
1284 | ||
1285 | if test -n "$ac_prev"; then | |
ad6254c5 | 1286 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
f11781c5 | 1287 | as_fn_error $? "missing argument to $ac_option" |
795ca3e5 | 1288 | fi |
795ca3e5 | 1289 | |
ec6a6fbe AK |
1290 | if test -n "$ac_unrecognized_opts"; then |
1291 | case $enable_option_checking in | |
1292 | no) ;; | |
f11781c5 | 1293 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
ec6a6fbe AK |
1294 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1295 | esac | |
1296 | fi | |
1297 | ||
1298 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1299 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1300 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1301 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1302 | libdir localedir mandir | |
795ca3e5 | 1303 | do |
7a197a62 | 1304 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1305 | # Remove trailing slashes. |
1306 | case $ac_val in | |
1307 | */ ) | |
1308 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1309 | eval $ac_var=\$ac_val;; | |
1310 | esac | |
1311 | # Be sure to have absolute directory names. | |
ad6254c5 | 1312 | case $ac_val in |
7a197a62 AK |
1313 | [\\/$]* | ?:[\\/]* ) continue;; |
1314 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1315 | esac |
f11781c5 | 1316 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
795ca3e5 AK |
1317 | done |
1318 | ||
ad6254c5 AK |
1319 | # There might be people who depend on the old broken behavior: `$host' |
1320 | # used to hold the argument of --host etc. | |
1321 | # FIXME: To remove some day. | |
1322 | build=$build_alias | |
1323 | host=$host_alias | |
1324 | target=$target_alias | |
1325 | ||
1326 | # FIXME: To remove some day. | |
1327 | if test "x$host_alias" != x; then | |
1328 | if test "x$build_alias" = x; then | |
1329 | cross_compiling=maybe | |
f11781c5 AK |
1330 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1331 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
ad6254c5 AK |
1332 | elif test "x$build_alias" != "x$host_alias"; then |
1333 | cross_compiling=yes | |
1334 | fi | |
1335 | fi | |
8106cdd5 | 1336 | |
ad6254c5 AK |
1337 | ac_tool_prefix= |
1338 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1339 | ||
1340 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1341 | |
795ca3e5 | 1342 | |
7a197a62 AK |
1343 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1344 | ac_ls_di=`ls -di .` && | |
1345 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f11781c5 | 1346 | as_fn_error $? "working directory cannot be determined" |
7a197a62 | 1347 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f11781c5 | 1348 | as_fn_error $? "pwd does not report name of working directory" |
7a197a62 AK |
1349 | |
1350 | ||
795ca3e5 AK |
1351 | # Find the source files, if location was not specified. |
1352 | if test -z "$srcdir"; then | |
1353 | ac_srcdir_defaulted=yes | |
7a197a62 | 1354 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1355 | ac_confdir=`$as_dirname -- "$as_myself" || |
1356 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1357 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1358 | X"$as_myself" : 'X\(//\)$' \| \ | |
1359 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1360 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1361 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1362 | s//\1/ | |
1363 | q | |
1364 | } | |
1365 | /^X\(\/\/\)[^/].*/{ | |
1366 | s//\1/ | |
1367 | q | |
1368 | } | |
1369 | /^X\(\/\/\)$/{ | |
1370 | s//\1/ | |
1371 | q | |
1372 | } | |
1373 | /^X\(\/\).*/{ | |
1374 | s//\1/ | |
1375 | q | |
1376 | } | |
1377 | s/.*/./; q'` | |
795ca3e5 | 1378 | srcdir=$ac_confdir |
7a197a62 | 1379 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1380 | srcdir=.. |
1381 | fi | |
1382 | else | |
1383 | ac_srcdir_defaulted=no | |
1384 | fi | |
7a197a62 AK |
1385 | if test ! -r "$srcdir/$ac_unique_file"; then |
1386 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f11781c5 | 1387 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
795ca3e5 | 1388 | fi |
7a197a62 AK |
1389 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1390 | ac_abs_confdir=`( | |
f11781c5 | 1391 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7a197a62 AK |
1392 | pwd)` |
1393 | # When building in place, set srcdir=. | |
1394 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1395 | srcdir=. | |
1396 | fi | |
1397 | # Remove unnecessary trailing slashes from srcdir. | |
1398 | # Double slashes in file names in object file debugging info | |
1399 | # mess up M-x gdb in Emacs. | |
1400 | case $srcdir in | |
1401 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1402 | esac | |
1403 | for ac_var in $ac_precious_vars; do | |
1404 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1405 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1406 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1407 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1408 | done | |
ad6254c5 AK |
1409 | |
1410 | # | |
1411 | # Report the --help message. | |
1412 | # | |
1413 | if test "$ac_init_help" = "long"; then | |
1414 | # Omit some internal or obsolete options to make the list less imposing. | |
1415 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1416 | cat <<_ACEOF | |
1417 | \`configure' configures this package to adapt to many kinds of systems. | |
1418 | ||
1419 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1420 | ||
1421 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1422 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1423 | ||
1424 | Defaults for the options are specified in brackets. | |
1425 | ||
1426 | Configuration: | |
1427 | -h, --help display this help and exit | |
1428 | --help=short display options specific to this package | |
1429 | --help=recursive display the short help of all the included packages | |
1430 | -V, --version display version information and exit | |
f11781c5 | 1431 | -q, --quiet, --silent do not print \`checking ...' messages |
ad6254c5 AK |
1432 | --cache-file=FILE cache test results in FILE [disabled] |
1433 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1434 | -n, --no-create do not create output files | |
1435 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1436 | ||
ad6254c5 AK |
1437 | Installation directories: |
1438 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1439 | [$ac_default_prefix] |
ad6254c5 | 1440 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1441 | [PREFIX] |
ad6254c5 AK |
1442 | |
1443 | By default, \`make install' will install all the files in | |
1444 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1445 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1446 | for instance \`--prefix=\$HOME'. | |
1447 | ||
1448 | For better control, use the options below. | |
1449 | ||
1450 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1451 | --bindir=DIR user executables [EPREFIX/bin] |
1452 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1453 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1454 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1455 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1456 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1457 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1458 | --includedir=DIR C header files [PREFIX/include] | |
1459 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1460 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1461 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1462 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1463 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1464 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1465 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1466 | --htmldir=DIR html documentation [DOCDIR] | |
1467 | --dvidir=DIR dvi documentation [DOCDIR] | |
1468 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1469 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1470 | _ACEOF |
1471 | ||
1472 | cat <<\_ACEOF | |
1473 | ||
1474 | System types: | |
1475 | --build=BUILD configure for building on BUILD [guessed] | |
1476 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1477 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1478 | _ACEOF | |
1479 | fi | |
1480 | ||
1481 | if test -n "$ac_init_help"; then | |
1482 | ||
1483 | cat <<\_ACEOF | |
1484 | ||
1485 | Optional Features: | |
ec6a6fbe | 1486 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1487 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1488 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1489 | --enable-static_link use this to link the tools to their libraries |
1490 | statically (default is dynamic linking | |
1491 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1492 | device-mapper is missing from the kernel |
71082be4 ZK |
1493 | --disable-readline disable readline support |
1494 | --enable-realtime enable realtime clock support | |
37ddf259 AK |
1495 | --enable-ocf enable Open Cluster Framework (OCF) compliant |
1496 | resource agents | |
71082be4 ZK |
1497 | --enable-cmirrord enable the cluster mirror log daemon |
1498 | --enable-debug enable debugging | |
1499 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1500 | --enable-testing enable testing targets in the makefile |
d1e8046f | 1501 | --enable-valgrind-pool enable valgrind awareness of pools |
71082be4 ZK |
1502 | --disable-devmapper disable LVM2 device-mapper interaction |
1503 | --enable-udev_sync enable synchronisation with udev processing | |
1504 | --enable-udev_rules install rule files needed for udev synchronisation | |
1505 | --enable-compat enable support for old device-mapper versions | |
1506 | --enable-units-compat enable output compatibility with old versions that | |
1507 | that do not use KiB-style unit suffixes | |
1508 | --disable-driver disable calls to device-mapper in the kernel | |
1509 | --disable-o_direct disable O_DIRECT | |
1510 | --enable-applib build application library | |
1511 | --enable-cmdlib build shared command library | |
1512 | --enable-pkgconfig install pkgconfig support | |
1513 | --enable-write_install install user writable files | |
1514 | --disable-fsadm disable fsadm | |
1515 | --enable-dmeventd enable the device-mapper event daemon | |
1516 | --disable-selinux disable selinux support | |
1517 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1518 | |
1519 | Optional Packages: | |
1520 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1521 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
f11781c5 AK |
1522 | --with-user=USER set the owner of installed files [[USER=]] |
1523 | --with-group=GROUP set the group owner of installed files [[GROUP=]] | |
1524 | --with-device-uid=UID set the owner used for new device nodes [[UID=0]] | |
1525 | --with-device-gid=GID set the group used for new device nodes [[GID=0]] | |
1526 | --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]] | |
ad6254c5 | 1527 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
f11781c5 | 1528 | [[TYPE=internal]] |
ad6254c5 | 1529 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
f11781c5 | 1530 | [[TYPE=internal]] |
71082be4 | 1531 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none |
f11781c5 | 1532 | [[TYPE=internal]] |
71082be4 | 1533 | --with-snapshots=TYPE snapshot support: internal/shared/none |
f11781c5 | 1534 | [[TYPE=internal]] |
71082be4 | 1535 | --with-mirrors=TYPE mirror support: internal/shared/none |
f11781c5 | 1536 | [[TYPE=internal]] |
71082be4 | 1537 | --with-replicators=TYPE replicator support: internal/shared/none |
f11781c5 | 1538 | [[TYPE=none]] |
71082be4 | 1539 | --with-clvmd=TYPE build cluster LVM Daemon |
8c222979 | 1540 | The following cluster manager combinations are valid: |
a946372e AK |
1541 | * cman,gulm (RHEL4 or equivalent) |
1542 | * cman (RHEL5 or equivalent) | |
1543 | * cman,corosync,openais (or selection of them) | |
1091650a | 1544 | * singlenode (localhost only) |
a946372e AK |
1545 | * all (autodetect) |
1546 | * none (disable build) | |
71082be4 | 1547 | [TYPE=none] |
8c4e8a18 | 1548 | --with-clvmd-pidfile=PATH |
f11781c5 | 1549 | clvmd pidfile [[/var/run/clvmd.pid]] |
71082be4 | 1550 | --with-cmirrord-pidfile=PATH |
f11781c5 AK |
1551 | cmirrord pidfile [[/var/run/cmirrord.pid]] |
1552 | --with-optimisation=OPT C optimisation flag [[OPT=-O2]] | |
1553 | --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]] | |
1554 | --with-confdir=DIR configuration files in DIR [[/etc]] | |
1555 | --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]] | |
1556 | --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]] | |
1557 | --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]] | |
71082be4 | 1558 | --with-udev-prefix=UPREFIX |
f11781c5 AK |
1559 | install udev rule files in UPREFIX [[EPREFIX]] |
1560 | --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]] | |
71082be4 | 1561 | --with-dmeventd-pidfile=PATH |
f11781c5 | 1562 | dmeventd pidfile [[/var/run/dmeventd.pid]] |
71082be4 | 1563 | --with-dmeventd-path=PATH |
f11781c5 | 1564 | dmeventd path [[EPREFIX/sbin/dmeventd]] |
8bae0a1e | 1565 | --with-default-run-dir=DIR Default run directory [/var/run/lvm] |
71082be4 | 1566 | --with-default-system-dir=DIR |
f11781c5 | 1567 | default LVM system directory [[/etc/lvm]] |
71082be4 | 1568 | --with-default-archive-subdir=SUBDIR |
f11781c5 | 1569 | default metadata archive subdir [[archive]] |
71082be4 | 1570 | --with-default-backup-subdir=SUBDIR |
f11781c5 | 1571 | default metadata backup subdir [[backup]] |
71082be4 | 1572 | --with-default-cache-subdir=SUBDIR |
f11781c5 | 1573 | default metadata cache subdir [[cache]] |
71082be4 | 1574 | --with-default-locking-dir=DIR |
f11781c5 | 1575 | default locking directory [[/var/lock/lvm]] |
fea55602 | 1576 | --with-default-data-alignment=NUM |
f11781c5 AK |
1577 | set the default data alignment in MiB [[1]] |
1578 | --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]] | |
ad6254c5 AK |
1579 | |
1580 | Some influential environment variables: | |
1581 | CC C compiler command | |
1582 | CFLAGS C compiler flags | |
1583 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1584 | nonstandard directory <lib dir> | |
25fbec5b | 1585 | LIBS libraries to pass to the linker, e.g. -l<library> |
f11781c5 | 1586 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7a197a62 | 1587 | you have headers in a nonstandard directory <include dir> |
ad6254c5 | 1588 | CPP C preprocessor |
e2997b73 | 1589 | PKG_CONFIG path to pkg-config utility |
f11781c5 AK |
1590 | PKG_CONFIG_PATH |
1591 | directories to add to pkg-config's search path | |
1592 | PKG_CONFIG_LIBDIR | |
1593 | path overriding pkg-config's built-in search path | |
a946372e AK |
1594 | PKGCONFIGINIT_CFLAGS |
1595 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1596 | PKGCONFIGINIT_LIBS | |
1597 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1598 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1599 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1600 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1601 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1602 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1603 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1604 | COROSYNC_CFLAGS | |
1605 | C compiler flags for COROSYNC, overriding pkg-config | |
1606 | COROSYNC_LIBS | |
1607 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1608 | QUORUM_CFLAGS |
1609 | C compiler flags for QUORUM, overriding pkg-config | |
1610 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1611 | SALCK_CFLAGS |
1612 | C compiler flags for SALCK, overriding pkg-config | |
1613 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1614 | CONFDB_CFLAGS |
1615 | C compiler flags for CONFDB, overriding pkg-config | |
1616 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1617 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1618 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1619 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1620 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1621 | SACKPT_CFLAGS |
1622 | C compiler flags for SACKPT, overriding pkg-config | |
1623 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1624 | |
1625 | Use these variables to override the choices made by `configure' or to help | |
1626 | it to find libraries and programs with nonstandard names/locations. | |
1627 | ||
f11781c5 | 1628 | Report bugs to the package provider. |
ad6254c5 | 1629 | _ACEOF |
7a197a62 | 1630 | ac_status=$? |
ad6254c5 AK |
1631 | fi |
1632 | ||
1633 | if test "$ac_init_help" = "recursive"; then | |
1634 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1635 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1636 | test -d "$ac_dir" || |
1637 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1638 | continue | |
ad6254c5 AK |
1639 | ac_builddir=. |
1640 | ||
7a197a62 AK |
1641 | case "$ac_dir" in |
1642 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1643 | *) | |
ec6a6fbe | 1644 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1645 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1646 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1647 | case $ac_top_builddir_sub in |
1648 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1649 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1650 | esac ;; | |
1651 | esac | |
1652 | ac_abs_top_builddir=$ac_pwd | |
1653 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1654 | # for backward compatibility: | |
1655 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1656 | |
1657 | case $srcdir in | |
7a197a62 | 1658 | .) # We are building in place. |
ad6254c5 | 1659 | ac_srcdir=. |
7a197a62 AK |
1660 | ac_top_srcdir=$ac_top_builddir_sub |
1661 | ac_abs_top_srcdir=$ac_pwd ;; | |
1662 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1663 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1664 | ac_top_srcdir=$srcdir |
1665 | ac_abs_top_srcdir=$srcdir ;; | |
1666 | *) # Relative name. | |
1667 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1668 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1669 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1670 | esac |
7a197a62 AK |
1671 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1672 | ||
1673 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1674 | # Check for guested configure. | |
1675 | if test -f "$ac_srcdir/configure.gnu"; then | |
1676 | echo && | |
1677 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1678 | elif test -f "$ac_srcdir/configure"; then | |
1679 | echo && | |
1680 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1681 | else |
ec6a6fbe | 1682 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1683 | fi || ac_status=$? |
1684 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1685 | done |
1686 | fi | |
1687 | ||
7a197a62 | 1688 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1689 | if $ac_init_version; then |
1690 | cat <<\_ACEOF | |
7a197a62 | 1691 | configure |
f11781c5 | 1692 | generated by GNU Autoconf 2.66 |
ad6254c5 | 1693 | |
f11781c5 | 1694 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
1695 | This configure script is free software; the Free Software Foundation |
1696 | gives unlimited permission to copy, distribute and modify it. | |
1697 | _ACEOF | |
7a197a62 | 1698 | exit |
ad6254c5 | 1699 | fi |
ad6254c5 | 1700 | |
f11781c5 AK |
1701 | ## ------------------------ ## |
1702 | ## Autoconf initialization. ## | |
1703 | ## ------------------------ ## | |
ad6254c5 | 1704 | |
f11781c5 AK |
1705 | # ac_fn_c_try_compile LINENO |
1706 | # -------------------------- | |
1707 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1708 | ac_fn_c_try_compile () | |
ad6254c5 | 1709 | { |
f11781c5 AK |
1710 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1711 | rm -f conftest.$ac_objext | |
1712 | if { { ac_try="$ac_compile" | |
1713 | case "(($ac_try" in | |
1714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1715 | *) ac_try_echo=$ac_try;; | |
1716 | esac | |
1717 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1718 | $as_echo "$ac_try_echo"; } >&5 | |
1719 | (eval "$ac_compile") 2>conftest.err | |
1720 | ac_status=$? | |
1721 | if test -s conftest.err; then | |
1722 | grep -v '^ *+' conftest.err >conftest.er1 | |
1723 | cat conftest.er1 >&5 | |
1724 | mv -f conftest.er1 conftest.err | |
1725 | fi | |
1726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1727 | test $ac_status = 0; } && { | |
1728 | test -z "$ac_c_werror_flag" || | |
1729 | test ! -s conftest.err | |
1730 | } && test -s conftest.$ac_objext; then : | |
1731 | ac_retval=0 | |
1732 | else | |
1733 | $as_echo "$as_me: failed program was:" >&5 | |
1734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1735 | |
f11781c5 AK |
1736 | ac_retval=1 |
1737 | fi | |
1738 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1739 | as_fn_set_status $ac_retval | |
ad6254c5 | 1740 | |
f11781c5 | 1741 | } # ac_fn_c_try_compile |
ad6254c5 | 1742 | |
f11781c5 AK |
1743 | # ac_fn_c_try_cpp LINENO |
1744 | # ---------------------- | |
1745 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1746 | ac_fn_c_try_cpp () | |
1747 | { | |
1748 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1749 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1750 | case "(($ac_try" in | |
1751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1752 | *) ac_try_echo=$ac_try;; | |
1753 | esac | |
1754 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1755 | $as_echo "$ac_try_echo"; } >&5 | |
1756 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1757 | ac_status=$? | |
1758 | if test -s conftest.err; then | |
1759 | grep -v '^ *+' conftest.err >conftest.er1 | |
1760 | cat conftest.er1 >&5 | |
1761 | mv -f conftest.er1 conftest.err | |
1762 | fi | |
1763 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1764 | test $ac_status = 0; } >/dev/null && { | |
1765 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1766 | test ! -s conftest.err | |
1767 | }; then : | |
1768 | ac_retval=0 | |
1769 | else | |
1770 | $as_echo "$as_me: failed program was:" >&5 | |
1771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1772 | |
f11781c5 AK |
1773 | ac_retval=1 |
1774 | fi | |
1775 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1776 | as_fn_set_status $ac_retval | |
ad6254c5 | 1777 | |
f11781c5 | 1778 | } # ac_fn_c_try_cpp |
d911ec67 | 1779 | |
f11781c5 AK |
1780 | # ac_fn_c_try_link LINENO |
1781 | # ----------------------- | |
1782 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1783 | ac_fn_c_try_link () | |
d911ec67 | 1784 | { |
f11781c5 AK |
1785 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1786 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1787 | if { { ac_try="$ac_link" | |
d911ec67 AK |
1788 | case "(($ac_try" in |
1789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1790 | *) ac_try_echo=$ac_try;; | |
1791 | esac | |
f11781c5 AK |
1792 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1793 | $as_echo "$ac_try_echo"; } >&5 | |
1794 | (eval "$ac_link") 2>conftest.err | |
d911ec67 | 1795 | ac_status=$? |
f11781c5 AK |
1796 | if test -s conftest.err; then |
1797 | grep -v '^ *+' conftest.err >conftest.er1 | |
1798 | cat conftest.er1 >&5 | |
1799 | mv -f conftest.er1 conftest.err | |
1800 | fi | |
1801 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1802 | test $ac_status = 0; } && { | |
1803 | test -z "$ac_c_werror_flag" || | |
1804 | test ! -s conftest.err | |
1805 | } && test -s conftest$ac_exeext && { | |
1806 | test "$cross_compiling" = yes || | |
1807 | $as_test_x conftest$ac_exeext | |
1808 | }; then : | |
1809 | ac_retval=0 | |
d911ec67 | 1810 | else |
f11781c5 | 1811 | $as_echo "$as_me: failed program was:" >&5 |
d911ec67 AK |
1812 | sed 's/^/| /' conftest.$ac_ext >&5 |
1813 | ||
f11781c5 | 1814 | ac_retval=1 |
d911ec67 | 1815 | fi |
f11781c5 AK |
1816 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1817 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1818 | # interfere with the next link command; also delete a directory that is | |
1819 | # left behind by Apple's compiler. We do this before executing the actions. | |
1820 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1821 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1822 | as_fn_set_status $ac_retval | |
d911ec67 | 1823 | |
f11781c5 | 1824 | } # ac_fn_c_try_link |
d911ec67 | 1825 | |
f11781c5 AK |
1826 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1827 | # ------------------------------------------------------- | |
1828 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1829 | # the include files in INCLUDES and setting the cache variable VAR | |
1830 | # accordingly. | |
1831 | ac_fn_c_check_header_mongrel () | |
1832 | { | |
1833 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1834 | if eval "test \"\${$3+set}\"" = set; then : | |
1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1836 | $as_echo_n "checking for $2... " >&6; } | |
1837 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1838 | $as_echo_n "(cached) " >&6 |
1839 | fi | |
f11781c5 AK |
1840 | eval ac_res=\$$3 |
1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 AK |
1842 | $as_echo "$ac_res" >&6; } |
1843 | else | |
1844 | # Is the header compilable? | |
f11781c5 AK |
1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1846 | $as_echo_n "checking $2 usability... " >&6; } | |
1847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1848 | /* end confdefs.h. */ |
f11781c5 AK |
1849 | $4 |
1850 | #include <$2> | |
d911ec67 | 1851 | _ACEOF |
f11781c5 | 1852 | if ac_fn_c_try_compile "$LINENO"; then : |
d911ec67 AK |
1853 | ac_header_compiler=yes |
1854 | else | |
f11781c5 | 1855 | ac_header_compiler=no |
d911ec67 | 1856 | fi |
d911ec67 | 1857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f11781c5 | 1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
d911ec67 AK |
1859 | $as_echo "$ac_header_compiler" >&6; } |
1860 | ||
1861 | # Is the header present? | |
f11781c5 AK |
1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1863 | $as_echo_n "checking $2 presence... " >&6; } | |
1864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1865 | /* end confdefs.h. */ |
f11781c5 | 1866 | #include <$2> |
d911ec67 | 1867 | _ACEOF |
f11781c5 | 1868 | if ac_fn_c_try_cpp "$LINENO"; then : |
d911ec67 AK |
1869 | ac_header_preproc=yes |
1870 | else | |
d911ec67 AK |
1871 | ac_header_preproc=no |
1872 | fi | |
d911ec67 | 1873 | rm -f conftest.err conftest.$ac_ext |
f11781c5 | 1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
d911ec67 AK |
1875 | $as_echo "$ac_header_preproc" >&6; } |
1876 | ||
1877 | # So? What about this header? | |
f11781c5 | 1878 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
d911ec67 | 1879 | yes:no: ) |
f11781c5 AK |
1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1881 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1882 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1883 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1884 | ;; |
1885 | no:yes:* ) | |
f11781c5 AK |
1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1887 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1888 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1889 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1890 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1891 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1893 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1895 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1896 | ;; |
1897 | esac | |
f11781c5 AK |
1898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1899 | $as_echo_n "checking for $2... " >&6; } | |
1900 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1901 | $as_echo_n "(cached) " >&6 |
1902 | else | |
f11781c5 | 1903 | eval "$3=\$ac_header_compiler" |
d911ec67 | 1904 | fi |
f11781c5 AK |
1905 | eval ac_res=\$$3 |
1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 | 1907 | $as_echo "$ac_res" >&6; } |
ad6254c5 | 1908 | fi |
f11781c5 | 1909 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1910 | |
f11781c5 | 1911 | } # ac_fn_c_check_header_mongrel |
ad6254c5 | 1912 | |
f11781c5 AK |
1913 | # ac_fn_c_try_run LINENO |
1914 | # ---------------------- | |
1915 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1916 | # that executables *can* be run. | |
1917 | ac_fn_c_try_run () | |
ad6254c5 | 1918 | { |
f11781c5 AK |
1919 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1920 | if { { ac_try="$ac_link" | |
7a197a62 AK |
1921 | case "(($ac_try" in |
1922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1923 | *) ac_try_echo=$ac_try;; | |
1924 | esac | |
f11781c5 AK |
1925 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1926 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1927 | (eval "$ac_link") 2>&5 |
ad6254c5 | 1928 | ac_status=$? |
f11781c5 AK |
1929 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1930 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1931 | { { case "(($ac_try" in | |
7a197a62 AK |
1932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1933 | *) ac_try_echo=$ac_try;; | |
1934 | esac | |
f11781c5 AK |
1935 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1936 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1937 | (eval "$ac_try") 2>&5 |
ad6254c5 | 1938 | ac_status=$? |
f11781c5 AK |
1939 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1940 | test $ac_status = 0; }; }; then : | |
1941 | ac_retval=0 | |
ad6254c5 | 1942 | else |
ec6a6fbe | 1943 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
f11781c5 | 1944 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
1945 | sed 's/^/| /' conftest.$ac_ext >&5 |
1946 | ||
f11781c5 | 1947 | ac_retval=$ac_status |
ad6254c5 | 1948 | fi |
f11781c5 AK |
1949 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1950 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1951 | as_fn_set_status $ac_retval | |
ad6254c5 | 1952 | |
f11781c5 | 1953 | } # ac_fn_c_try_run |
ad6254c5 | 1954 | |
f11781c5 AK |
1955 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1956 | # ------------------------------------------------------- | |
1957 | # Tests whether HEADER exists and can be compiled using the include files in | |
1958 | # INCLUDES, setting the cache variable VAR accordingly. | |
1959 | ac_fn_c_check_header_compile () | |
1960 | { | |
1961 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1963 | $as_echo_n "checking for $2... " >&6; } | |
1964 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 1965 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 1966 | else |
f11781c5 | 1967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 1968 | /* end confdefs.h. */ |
f11781c5 AK |
1969 | $4 |
1970 | #include <$2> | |
ad6254c5 | 1971 | _ACEOF |
f11781c5 AK |
1972 | if ac_fn_c_try_compile "$LINENO"; then : |
1973 | eval "$3=yes" | |
ad6254c5 | 1974 | else |
f11781c5 | 1975 | eval "$3=no" |
ad6254c5 | 1976 | fi |
7a197a62 | 1977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 1978 | fi |
f11781c5 AK |
1979 | eval ac_res=\$$3 |
1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 1981 | $as_echo "$ac_res" >&6; } |
f11781c5 | 1982 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1983 | |
f11781c5 | 1984 | } # ac_fn_c_check_header_compile |
ad6254c5 | 1985 | |
f11781c5 AK |
1986 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
1987 | # ---------------------------------------------------- | |
1988 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1989 | # INCLUDES, setting cache variable VAR accordingly. | |
1990 | ac_fn_c_check_member () | |
1991 | { | |
1992 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1994 | $as_echo_n "checking for $2.$3... " >&6; } | |
1995 | if eval "test \"\${$4+set}\"" = set; then : | |
ec6a6fbe | 1996 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 1997 | else |
f11781c5 AK |
1998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1999 | /* end confdefs.h. */ | |
2000 | $5 | |
2001 | int | |
2002 | main () | |
2003 | { | |
2004 | static $2 ac_aggr; | |
2005 | if (ac_aggr.$3) | |
2006 | return 0; | |
2007 | ; | |
2008 | return 0; | |
2009 | } | |
ad6254c5 | 2010 | _ACEOF |
f11781c5 AK |
2011 | if ac_fn_c_try_compile "$LINENO"; then : |
2012 | eval "$4=yes" | |
2013 | else | |
2014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2015 | /* end confdefs.h. */ |
f11781c5 AK |
2016 | $5 |
2017 | int | |
2018 | main () | |
2019 | { | |
2020 | static $2 ac_aggr; | |
2021 | if (sizeof ac_aggr.$3) | |
2022 | return 0; | |
2023 | ; | |
2024 | return 0; | |
2025 | } | |
2026 | _ACEOF | |
2027 | if ac_fn_c_try_compile "$LINENO"; then : | |
2028 | eval "$4=yes" | |
2029 | else | |
2030 | eval "$4=no" | |
2031 | fi | |
2032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2033 | fi | |
2034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2035 | fi | |
2036 | eval ac_res=\$$4 | |
2037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2038 | $as_echo "$ac_res" >&6; } | |
2039 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2040 | ||
2041 | } # ac_fn_c_check_member | |
795ca3e5 | 2042 | |
f11781c5 AK |
2043 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2044 | # ------------------------------------------- | |
2045 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2046 | # variable VAR accordingly. | |
2047 | ac_fn_c_check_type () | |
2048 | { | |
2049 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2051 | $as_echo_n "checking for $2... " >&6; } | |
2052 | if eval "test \"\${$3+set}\"" = set; then : | |
2053 | $as_echo_n "(cached) " >&6 | |
2054 | else | |
2055 | eval "$3=no" | |
2056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2057 | /* end confdefs.h. */ | |
2058 | $4 | |
ad6254c5 AK |
2059 | int |
2060 | main () | |
2061 | { | |
f11781c5 AK |
2062 | if (sizeof ($2)) |
2063 | return 0; | |
ad6254c5 AK |
2064 | ; |
2065 | return 0; | |
2066 | } | |
2067 | _ACEOF | |
f11781c5 AK |
2068 | if ac_fn_c_try_compile "$LINENO"; then : |
2069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2070 | /* end confdefs.h. */ | |
2071 | $4 | |
2072 | int | |
2073 | main () | |
2074 | { | |
2075 | if (sizeof (($2))) | |
2076 | return 0; | |
2077 | ; | |
2078 | return 0; | |
2079 | } | |
2080 | _ACEOF | |
2081 | if ac_fn_c_try_compile "$LINENO"; then : | |
ad6254c5 | 2082 | |
f11781c5 AK |
2083 | else |
2084 | eval "$3=yes" | |
795ca3e5 | 2085 | fi |
f11781c5 AK |
2086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2087 | fi | |
2088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2089 | fi |
f11781c5 AK |
2090 | eval ac_res=\$$3 |
2091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2092 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2093 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2094 | |
f11781c5 | 2095 | } # ac_fn_c_check_type |
ad6254c5 | 2096 | |
f11781c5 AK |
2097 | # ac_fn_c_find_intX_t LINENO BITS VAR |
2098 | # ----------------------------------- | |
2099 | # Finds a signed integer type with width BITS, setting cache variable VAR | |
2100 | # accordingly. | |
2101 | ac_fn_c_find_intX_t () | |
2102 | { | |
2103 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | |
2105 | $as_echo_n "checking for int$2_t... " >&6; } | |
2106 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2107 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2108 | else |
f11781c5 AK |
2109 | eval "$3=no" |
2110 | # Order is important - never check a type that is potentially smaller | |
2111 | # than half of the expected target width. | |
2112 | for ac_type in int$2_t 'int' 'long int' \ | |
2113 | 'long long int' 'short int' 'signed char'; do | |
2114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7a197a62 AK |
2115 | /* end confdefs.h. */ |
2116 | $ac_includes_default | |
f11781c5 | 2117 | enum { N = $2 / 2 - 1 }; |
7a197a62 AK |
2118 | int |
2119 | main () | |
2120 | { | |
f11781c5 AK |
2121 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
2122 | test_array [0] = 0 | |
7a197a62 | 2123 | |
f11781c5 AK |
2124 | ; |
2125 | return 0; | |
2126 | } | |
2127 | _ACEOF | |
2128 | if ac_fn_c_try_compile "$LINENO"; then : | |
2129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2130 | /* end confdefs.h. */ | |
2131 | $ac_includes_default | |
2132 | enum { N = $2 / 2 - 1 }; | |
2133 | int | |
2134 | main () | |
2135 | { | |
2136 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | |
2137 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | |
2138 | test_array [0] = 0 | |
7a197a62 AK |
2139 | |
2140 | ; | |
2141 | return 0; | |
2142 | } | |
ad6254c5 | 2143 | _ACEOF |
f11781c5 | 2144 | if ac_fn_c_try_compile "$LINENO"; then : |
ad6254c5 | 2145 | |
f11781c5 AK |
2146 | else |
2147 | case $ac_type in #( | |
2148 | int$2_t) : | |
2149 | eval "$3=yes" ;; #( | |
2150 | *) : | |
2151 | eval "$3=\$ac_type" ;; | |
2152 | esac | |
ad6254c5 | 2153 | fi |
f11781c5 | 2154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2155 | fi |
f11781c5 AK |
2156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2157 | if eval test \"x\$"$3"\" = x"no"; then : | |
ad6254c5 AK |
2158 | |
2159 | else | |
f11781c5 | 2160 | break |
ad6254c5 | 2161 | fi |
f11781c5 | 2162 | done |
ad6254c5 | 2163 | fi |
f11781c5 AK |
2164 | eval ac_res=\$$3 |
2165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2166 | $as_echo "$ac_res" >&6; } | |
2167 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2168 | ||
2169 | } # ac_fn_c_find_intX_t | |
2170 | ||
2171 | # ac_fn_c_find_uintX_t LINENO BITS VAR | |
2172 | # ------------------------------------ | |
2173 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
2174 | # accordingly. | |
2175 | ac_fn_c_find_uintX_t () | |
2176 | { | |
2177 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
2179 | $as_echo_n "checking for uint$2_t... " >&6; } | |
2180 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2181 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2182 | else |
f11781c5 AK |
2183 | eval "$3=no" |
2184 | # Order is important - never check a type that is potentially smaller | |
2185 | # than half of the expected target width. | |
2186 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
2187 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
2188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2189 | /* end confdefs.h. */ |
7a197a62 | 2190 | $ac_includes_default |
ad6254c5 AK |
2191 | int |
2192 | main () | |
2193 | { | |
f11781c5 AK |
2194 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
2195 | test_array [0] = 0 | |
ad6254c5 | 2196 | |
f11781c5 AK |
2197 | ; |
2198 | return 0; | |
ad6254c5 AK |
2199 | } |
2200 | _ACEOF | |
f11781c5 AK |
2201 | if ac_fn_c_try_compile "$LINENO"; then : |
2202 | case $ac_type in #( | |
2203 | uint$2_t) : | |
2204 | eval "$3=yes" ;; #( | |
2205 | *) : | |
2206 | eval "$3=\$ac_type" ;; | |
7a197a62 | 2207 | esac |
ad6254c5 | 2208 | fi |
f11781c5 AK |
2209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2210 | if eval test \"x\$"$3"\" = x"no"; then : | |
7a197a62 | 2211 | |
f11781c5 AK |
2212 | else |
2213 | break | |
ad6254c5 | 2214 | fi |
f11781c5 | 2215 | done |
ad6254c5 | 2216 | fi |
f11781c5 AK |
2217 | eval ac_res=\$$3 |
2218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2219 | $as_echo "$ac_res" >&6; } | |
2220 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
ad6254c5 | 2221 | |
f11781c5 | 2222 | } # ac_fn_c_find_uintX_t |
ad6254c5 | 2223 | |
f11781c5 AK |
2224 | # ac_fn_c_check_func LINENO FUNC VAR |
2225 | # ---------------------------------- | |
2226 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2227 | ac_fn_c_check_func () | |
2228 | { | |
2229 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2231 | $as_echo_n "checking for $2... " >&6; } | |
2232 | if eval "test \"\${$3+set}\"" = set; then : | |
2233 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2234 | else |
f11781c5 AK |
2235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2236 | /* end confdefs.h. */ | |
2237 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2238 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2239 | #define $2 innocuous_$2 | |
ad6254c5 | 2240 | |
f11781c5 AK |
2241 | /* System header to define __stub macros and hopefully few prototypes, |
2242 | which can conflict with char $2 (); below. | |
2243 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2244 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 2245 | |
f11781c5 AK |
2246 | #ifdef __STDC__ |
2247 | # include <limits.h> | |
2248 | #else | |
2249 | # include <assert.h> | |
2250 | #endif | |
ad6254c5 | 2251 | |
f11781c5 AK |
2252 | #undef $2 |
2253 | ||
2254 | /* Override any GCC internal prototype to avoid an error. | |
2255 | Use char because int might match the return type of a GCC | |
2256 | builtin and then its argument prototype would still apply. */ | |
2257 | #ifdef __cplusplus | |
2258 | extern "C" | |
2259 | #endif | |
2260 | char $2 (); | |
2261 | /* The GNU C library defines this for functions which it implements | |
2262 | to always fail with ENOSYS. Some functions are actually named | |
2263 | something starting with __ and the normal name is an alias. */ | |
2264 | #if defined __stub_$2 || defined __stub___$2 | |
2265 | choke me | |
2266 | #endif | |
ad6254c5 | 2267 | |
ad6254c5 AK |
2268 | int |
2269 | main () | |
2270 | { | |
f11781c5 | 2271 | return $2 (); |
ad6254c5 AK |
2272 | ; |
2273 | return 0; | |
2274 | } | |
2275 | _ACEOF | |
f11781c5 AK |
2276 | if ac_fn_c_try_link "$LINENO"; then : |
2277 | eval "$3=yes" | |
ad6254c5 | 2278 | else |
f11781c5 | 2279 | eval "$3=no" |
ad6254c5 | 2280 | fi |
f11781c5 AK |
2281 | rm -f core conftest.err conftest.$ac_objext \ |
2282 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2283 | fi |
f11781c5 AK |
2284 | eval ac_res=\$$3 |
2285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2286 | $as_echo "$ac_res" >&6; } | |
2287 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
7a197a62 | 2288 | |
f11781c5 AK |
2289 | } # ac_fn_c_check_func |
2290 | cat >config.log <<_ACEOF | |
2291 | This file contains any messages produced by compilers while | |
2292 | running configure, to aid debugging if configure makes a mistake. | |
7a197a62 | 2293 | |
f11781c5 AK |
2294 | It was created by $as_me, which was |
2295 | generated by GNU Autoconf 2.66. Invocation command line was | |
ad6254c5 | 2296 | |
f11781c5 | 2297 | $ $0 $@ |
ad6254c5 | 2298 | |
ad6254c5 | 2299 | _ACEOF |
f11781c5 AK |
2300 | exec 5>>config.log |
2301 | { | |
2302 | cat <<_ASUNAME | |
2303 | ## --------- ## | |
2304 | ## Platform. ## | |
2305 | ## --------- ## | |
ad6254c5 | 2306 | |
f11781c5 AK |
2307 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2308 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2309 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2310 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2311 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
ad6254c5 | 2312 | |
f11781c5 AK |
2313 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2314 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8a2fc586 | 2315 | |
f11781c5 AK |
2316 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2317 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2318 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2319 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2320 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2321 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2322 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2323 | ||
2324 | _ASUNAME | |
2325 | ||
2326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2327 | for as_dir in $PATH | |
2328 | do | |
2329 | IFS=$as_save_IFS | |
2330 | test -z "$as_dir" && as_dir=. | |
2331 | $as_echo "PATH: $as_dir" | |
2332 | done | |
2333 | IFS=$as_save_IFS | |
2334 | ||
2335 | } >&5 | |
2336 | ||
2337 | cat >&5 <<_ACEOF | |
2338 | ||
2339 | ||
2340 | ## ----------- ## | |
2341 | ## Core tests. ## | |
2342 | ## ----------- ## | |
ad6254c5 | 2343 | |
ad6254c5 | 2344 | _ACEOF |
ad6254c5 | 2345 | |
7a197a62 | 2346 | |
f11781c5 AK |
2347 | # Keep a trace of the command line. |
2348 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2349 | # Strip out --silent because we don't want to record it for future runs. | |
2350 | # Also quote any args containing shell meta-characters. | |
2351 | # Make two passes to allow for proper duplicate-argument suppression. | |
2352 | ac_configure_args= | |
2353 | ac_configure_args0= | |
2354 | ac_configure_args1= | |
2355 | ac_must_keep_next=false | |
2356 | for ac_pass in 1 2 | |
2357 | do | |
2358 | for ac_arg | |
2359 | do | |
2360 | case $ac_arg in | |
2361 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2362 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2363 | | -silent | --silent | --silen | --sile | --sil) | |
2364 | continue ;; | |
2365 | *\'*) | |
2366 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2367 | esac | |
2368 | case $ac_pass in | |
2369 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2370 | 2) | |
2371 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2372 | if test $ac_must_keep_next = true; then | |
2373 | ac_must_keep_next=false # Got value, back to normal. | |
2374 | else | |
2375 | case $ac_arg in | |
2376 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2377 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2378 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2379 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2380 | case "$ac_configure_args0 " in | |
2381 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2382 | esac | |
2383 | ;; | |
2384 | -* ) ac_must_keep_next=true ;; | |
2385 | esac | |
2386 | fi | |
2387 | as_fn_append ac_configure_args " '$ac_arg'" | |
2388 | ;; | |
2389 | esac | |
2390 | done | |
2391 | done | |
2392 | { ac_configure_args0=; unset ac_configure_args0;} | |
2393 | { ac_configure_args1=; unset ac_configure_args1;} | |
2394 | ||
2395 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2396 | # config.log. We remove comments because anyway the quotes in there | |
2397 | # would cause problems or look ugly. | |
2398 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2399 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2400 | trap 'exit_status=$? | |
2401 | # Save into config.log some information that might help in debugging. | |
2402 | { | |
2403 | echo | |
2404 | ||
2405 | $as_echo "## ---------------- ## | |
2406 | ## Cache variables. ## | |
2407 | ## ---------------- ##" | |
2408 | echo | |
2409 | # The following way of writing the cache mishandles newlines in values, | |
2410 | ( | |
2411 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2412 | eval ac_val=\$$ac_var | |
2413 | case $ac_val in #( | |
2414 | *${as_nl}*) | |
2415 | case $ac_var in #( | |
2416 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2417 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2418 | esac | |
2419 | case $ac_var in #( | |
2420 | _ | IFS | as_nl) ;; #( | |
2421 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2422 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2423 | esac ;; | |
2424 | esac | |
2425 | done | |
2426 | (set) 2>&1 | | |
2427 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2428 | *${as_nl}ac_space=\ *) | |
2429 | sed -n \ | |
2430 | "s/'\''/'\''\\\\'\'''\''/g; | |
2431 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2432 | ;; #( | |
2433 | *) | |
2434 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2435 | ;; | |
2436 | esac | | |
2437 | sort | |
2438 | ) | |
2439 | echo | |
2440 | ||
2441 | $as_echo "## ----------------- ## | |
2442 | ## Output variables. ## | |
2443 | ## ----------------- ##" | |
2444 | echo | |
2445 | for ac_var in $ac_subst_vars | |
2446 | do | |
2447 | eval ac_val=\$$ac_var | |
2448 | case $ac_val in | |
2449 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2450 | esac | |
2451 | $as_echo "$ac_var='\''$ac_val'\''" | |
2452 | done | sort | |
2453 | echo | |
2454 | ||
2455 | if test -n "$ac_subst_files"; then | |
2456 | $as_echo "## ------------------- ## | |
2457 | ## File substitutions. ## | |
2458 | ## ------------------- ##" | |
2459 | echo | |
2460 | for ac_var in $ac_subst_files | |
2461 | do | |
2462 | eval ac_val=\$$ac_var | |
2463 | case $ac_val in | |
2464 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2465 | esac | |
2466 | $as_echo "$ac_var='\''$ac_val'\''" | |
2467 | done | sort | |
2468 | echo | |
2469 | fi | |
2470 | ||
2471 | if test -s confdefs.h; then | |
2472 | $as_echo "## ----------- ## | |
2473 | ## confdefs.h. ## | |
2474 | ## ----------- ##" | |
2475 | echo | |
2476 | cat confdefs.h | |
2477 | echo | |
2478 | fi | |
2479 | test "$ac_signal" != 0 && | |
2480 | $as_echo "$as_me: caught signal $ac_signal" | |
2481 | $as_echo "$as_me: exit $exit_status" | |
2482 | } >&5 | |
2483 | rm -f core *.core core.conftest.* && | |
2484 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2485 | exit $exit_status | |
2486 | ' 0 | |
2487 | for ac_signal in 1 2 13 15; do | |
2488 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2489 | done | |
2490 | ac_signal=0 | |
2491 | ||
2492 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2493 | rm -f -r conftest* confdefs.h | |
7a197a62 | 2494 | |
f11781c5 | 2495 | $as_echo "/* confdefs.h */" > confdefs.h |
8a2fc586 | 2496 | |
f11781c5 | 2497 | # Predefined preprocessor variables. |
ad6254c5 AK |
2498 | |
2499 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 2500 | #define PACKAGE_NAME "$PACKAGE_NAME" |
ad6254c5 AK |
2501 | _ACEOF |
2502 | ||
f11781c5 AK |
2503 | cat >>confdefs.h <<_ACEOF |
2504 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
ad6254c5 | 2505 | _ACEOF |
ad6254c5 | 2506 | |
f11781c5 AK |
2507 | cat >>confdefs.h <<_ACEOF |
2508 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
ad6254c5 | 2509 | _ACEOF |
f11781c5 AK |
2510 | |
2511 | cat >>confdefs.h <<_ACEOF | |
2512 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
ad6254c5 | 2513 | _ACEOF |
ad6254c5 | 2514 | |
f11781c5 AK |
2515 | cat >>confdefs.h <<_ACEOF |
2516 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2517 | _ACEOF | |
7a197a62 | 2518 | |
f11781c5 AK |
2519 | cat >>confdefs.h <<_ACEOF |
2520 | #define PACKAGE_URL "$PACKAGE_URL" | |
2521 | _ACEOF | |
ad6254c5 | 2522 | |
7a197a62 | 2523 | |
f11781c5 AK |
2524 | # Let the site file select an alternate cache file if it wants to. |
2525 | # Prefer an explicitly selected file to automatically selected ones. | |
2526 | ac_site_file1=NONE | |
2527 | ac_site_file2=NONE | |
2528 | if test -n "$CONFIG_SITE"; then | |
2529 | # We do not want a PATH search for config.site. | |
2530 | case $CONFIG_SITE in #(( | |
2531 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2532 | */*) ac_site_file1=$CONFIG_SITE;; | |
2533 | *) ac_site_file1=./$CONFIG_SITE;; | |
2534 | esac | |
2535 | elif test "x$prefix" != xNONE; then | |
2536 | ac_site_file1=$prefix/share/config.site | |
2537 | ac_site_file2=$prefix/etc/config.site | |
ad6254c5 | 2538 | else |
f11781c5 AK |
2539 | ac_site_file1=$ac_default_prefix/share/config.site |
2540 | ac_site_file2=$ac_default_prefix/etc/config.site | |
ad6254c5 | 2541 | fi |
f11781c5 AK |
2542 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2543 | do | |
2544 | test "x$ac_site_file" = xNONE && continue | |
2545 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2546 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2547 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2548 | sed 's/^/| /' "$ac_site_file" >&5 | |
2549 | . "$ac_site_file" \ | |
2550 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2551 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2552 | as_fn_error $? "failed to load site script $ac_site_file | |
2553 | See \`config.log' for more details" "$LINENO" 5; } | |
2554 | fi | |
2555 | done | |
ad6254c5 | 2556 | |
f11781c5 AK |
2557 | if test -r "$cache_file"; then |
2558 | # Some versions of bash will fail to source /dev/null (special files | |
2559 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2560 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2562 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2563 | case $cache_file in | |
2564 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2565 | *) . "./$cache_file";; | |
2566 | esac | |
2567 | fi | |
2568 | else | |
2569 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2570 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2571 | >$cache_file | |
ad6254c5 | 2572 | fi |
ad6254c5 | 2573 | |
f11781c5 AK |
2574 | as_fn_append ac_header_list " stdlib.h" |
2575 | as_fn_append ac_header_list " unistd.h" | |
2576 | as_fn_append ac_header_list " sys/param.h" | |
2577 | # Check that the precious variables saved in the cache have kept the same | |
2578 | # value. | |
2579 | ac_cache_corrupted=false | |
2580 | for ac_var in $ac_precious_vars; do | |
2581 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2582 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2583 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2584 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2585 | case $ac_old_set,$ac_new_set in | |
2586 | set,) | |
2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2588 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2589 | ac_cache_corrupted=: ;; | |
2590 | ,set) | |
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2592 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2593 | ac_cache_corrupted=: ;; | |
2594 | ,);; | |
2595 | *) | |
2596 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2597 | # differences in whitespace do not lead to failure. | |
2598 | ac_old_val_w=`echo x $ac_old_val` | |
2599 | ac_new_val_w=`echo x $ac_new_val` | |
2600 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2602 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2603 | ac_cache_corrupted=: | |
2604 | else | |
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2606 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2607 | eval $ac_var=\$ac_old_val | |
2608 | fi | |
2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2610 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2611 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2612 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2613 | fi;; | |
2614 | esac | |
2615 | # Pass precious variables to config.status. | |
2616 | if test "$ac_new_set" = set; then | |
2617 | case $ac_new_val in | |
2618 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2619 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2620 | esac | |
2621 | case " $ac_configure_args " in | |
2622 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2623 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2624 | esac | |
2625 | fi | |
2626 | done | |
2627 | if $ac_cache_corrupted; then | |
2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2629 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2631 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2632 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
ad6254c5 | 2633 | fi |
f11781c5 AK |
2634 | ## -------------------- ## |
2635 | ## Main body of script. ## | |
2636 | ## -------------------- ## | |
ad6254c5 | 2637 | |
f11781c5 AK |
2638 | ac_ext=c |
2639 | ac_cpp='$CPP $CPPFLAGS' | |
2640 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2641 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2642 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2643 | |
ad6254c5 | 2644 | |
ad6254c5 | 2645 | |
f11781c5 | 2646 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
7a197a62 AK |
2647 | |
2648 | ||
f11781c5 AK |
2649 | ################################################################################ |
2650 | ac_aux_dir= | |
2651 | for ac_dir in autoconf "$srcdir"/autoconf; do | |
2652 | if test -f "$ac_dir/install-sh"; then | |
2653 | ac_aux_dir=$ac_dir | |
2654 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2655 | break | |
2656 | elif test -f "$ac_dir/install.sh"; then | |
2657 | ac_aux_dir=$ac_dir | |
2658 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2659 | break | |
2660 | elif test -f "$ac_dir/shtool"; then | |
2661 | ac_aux_dir=$ac_dir | |
2662 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2663 | break | |
2664 | fi | |
2665 | done | |
2666 | if test -z "$ac_aux_dir"; then | |
2667 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 | |
ad6254c5 | 2668 | fi |
ad6254c5 | 2669 | |
f11781c5 AK |
2670 | # These three variables are undocumented and unsupported, |
2671 | # and are intended to be withdrawn in a future Autoconf release. | |
2672 | # They can cause serious problems if a builder's source tree is in a directory | |
2673 | # whose full name contains unusual characters. | |
2674 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2675 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2676 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
ad6254c5 | 2677 | |
ad6254c5 | 2678 | |
8a2fc586 | 2679 | |
f11781c5 AK |
2680 | ################################################################################ |
2681 | # Make sure we can run config.sub. | |
2682 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2683 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
ad6254c5 | 2684 | |
f11781c5 AK |
2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2686 | $as_echo_n "checking build system type... " >&6; } | |
2687 | if test "${ac_cv_build+set}" = set; then : | |
2688 | $as_echo_n "(cached) " >&6 | |
2689 | else | |
2690 | ac_build_alias=$build_alias | |
2691 | test "x$ac_build_alias" = x && | |
2692 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2693 | test "x$ac_build_alias" = x && | |
2694 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2695 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2696 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
ad6254c5 AK |
2697 | |
2698 | fi | |
f11781c5 AK |
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2700 | $as_echo "$ac_cv_build" >&6; } | |
2701 | case $ac_cv_build in | |
2702 | *-*-*) ;; | |
2703 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2704 | esac | |
2705 | build=$ac_cv_build | |
2706 | ac_save_IFS=$IFS; IFS='-' | |
2707 | set x $ac_cv_build | |
2708 | shift | |
2709 | build_cpu=$1 | |
2710 | build_vendor=$2 | |
2711 | shift; shift | |
2712 | # Remember, the first character of IFS is used to create $*, | |
2713 | # except with old shells: | |
2714 | build_os=$* | |
2715 | IFS=$ac_save_IFS | |
2716 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2717 | |
2718 | ||
f11781c5 AK |
2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2720 | $as_echo_n "checking host system type... " >&6; } | |
2721 | if test "${ac_cv_host+set}" = set; then : | |
ec6a6fbe | 2722 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2723 | else |
f11781c5 AK |
2724 | if test "x$host_alias" = x; then |
2725 | ac_cv_host=$ac_cv_build | |
ad6254c5 | 2726 | else |
f11781c5 AK |
2727 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2728 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2729 | fi | |
ad6254c5 | 2730 | |
f11781c5 AK |
2731 | fi |
2732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2733 | $as_echo "$ac_cv_host" >&6; } | |
2734 | case $ac_cv_host in | |
2735 | *-*-*) ;; | |
2736 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2737 | esac | |
2738 | host=$ac_cv_host | |
2739 | ac_save_IFS=$IFS; IFS='-' | |
2740 | set x $ac_cv_host | |
2741 | shift | |
2742 | host_cpu=$1 | |
2743 | host_vendor=$2 | |
2744 | shift; shift | |
2745 | # Remember, the first character of IFS is used to create $*, | |
2746 | # except with old shells: | |
2747 | host_os=$* | |
2748 | IFS=$ac_save_IFS | |
2749 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 | 2750 | |
ad6254c5 | 2751 | |
f11781c5 AK |
2752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2753 | $as_echo_n "checking target system type... " >&6; } | |
2754 | if test "${ac_cv_target+set}" = set; then : | |
2755 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2756 | else |
f11781c5 AK |
2757 | if test "x$target_alias" = x; then |
2758 | ac_cv_target=$ac_cv_host | |
2759 | else | |
2760 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2761 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
ad6254c5 | 2762 | fi |
7a197a62 | 2763 | |
ad6254c5 | 2764 | fi |
f11781c5 AK |
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2766 | $as_echo "$ac_cv_target" >&6; } | |
2767 | case $ac_cv_target in | |
2768 | *-*-*) ;; | |
2769 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
8a2fc586 | 2770 | esac |
f11781c5 AK |
2771 | target=$ac_cv_target |
2772 | ac_save_IFS=$IFS; IFS='-' | |
2773 | set x $ac_cv_target | |
2774 | shift | |
2775 | target_cpu=$1 | |
2776 | target_vendor=$2 | |
2777 | shift; shift | |
2778 | # Remember, the first character of IFS is used to create $*, | |
2779 | # except with old shells: | |
2780 | target_os=$* | |
2781 | IFS=$ac_save_IFS | |
2782 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8a2fc586 | 2783 | |
ad6254c5 | 2784 | |
f11781c5 AK |
2785 | # The aliases save the names the user supplied, while $host etc. |
2786 | # will get canonicalized. | |
2787 | test -n "$target_alias" && | |
2788 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2789 | NONENONEs,x,x, && | |
2790 | program_prefix=${target_alias}- | |
ad6254c5 | 2791 | |
f11781c5 AK |
2792 | case "$host_os" in |
2793 | linux*) | |
2794 | CFLAGS="$CFLAGS" | |
2795 | COPTIMISE_FLAG="-O2" | |
2796 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2797 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2798 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2799 | LDDEPS="$LDDEPS .export.sym" | |
2800 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
2801 | LIB_SUFFIX=so | |
2802 | DEVMAPPER=yes | |
2803 | ODIRECT=yes | |
2804 | DM_IOCTLS=yes | |
2805 | SELINUX=yes | |
2806 | CLUSTER=internal | |
2807 | FSADM=yes | |
2808 | ;; | |
2809 | darwin*) | |
2810 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2811 | COPTIMISE_FLAG="-O2" | |
2812 | CLDFLAGS="$CLDFLAGS" | |
2813 | CLDWHOLEARCHIVE="-all_load" | |
2814 | CLDNOWHOLEARCHIVE= | |
2815 | LIB_SUFFIX=dylib | |
2816 | DEVMAPPER=yes | |
2817 | ODIRECT=no | |
2818 | DM_IOCTLS=no | |
2819 | SELINUX=no | |
2820 | CLUSTER=none | |
2821 | FSADM=no | |
2822 | ;; | |
2823 | esac | |
ad6254c5 | 2824 | |
f11781c5 AK |
2825 | ################################################################################ |
2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
2827 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2828 | if test "${ac_cv_path_SED+set}" = set; then : | |
ec6a6fbe | 2829 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2830 | else |
f11781c5 AK |
2831 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
2832 | for ac_i in 1 2 3 4 5 6 7; do | |
2833 | ac_script="$ac_script$as_nl$ac_script" | |
2834 | done | |
2835 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2836 | { ac_script=; unset ac_script;} | |
2837 | if test -z "$SED"; then | |
2838 | ac_path_SED_found=false | |
2839 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2841 | for as_dir in $PATH | |
2842 | do | |
2843 | IFS=$as_save_IFS | |
2844 | test -z "$as_dir" && as_dir=. | |
2845 | for ac_prog in sed gsed; do | |
2846 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2847 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2848 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2849 | # Check for GNU ac_path_SED and select it if it is found. | |
2850 | # Check for GNU $ac_path_SED | |
2851 | case `"$ac_path_SED" --version 2>&1` in | |
2852 | *GNU*) | |
2853 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2854 | *) | |
2855 | ac_count=0 | |
2856 | $as_echo_n 0123456789 >"conftest.in" | |
2857 | while : | |
2858 | do | |
2859 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2860 | mv "conftest.tmp" "conftest.in" | |
2861 | cp "conftest.in" "conftest.nl" | |
2862 | $as_echo '' >> "conftest.nl" | |
2863 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2864 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2865 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2866 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2867 | # Best one so far, save it but keep looking for a better one | |
2868 | ac_cv_path_SED="$ac_path_SED" | |
2869 | ac_path_SED_max=$ac_count | |
2870 | fi | |
2871 | # 10*(2^10) chars as input seems more than enough | |
2872 | test $ac_count -gt 10 && break | |
2873 | done | |
2874 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7a197a62 | 2875 | esac |
ad6254c5 | 2876 | |
f11781c5 AK |
2877 | $ac_path_SED_found && break 3 |
2878 | done | |
2879 | done | |
2880 | done | |
2881 | IFS=$as_save_IFS | |
2882 | if test -z "$ac_cv_path_SED"; then | |
2883 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2884 | fi | |
2885 | else | |
2886 | ac_cv_path_SED=$SED | |
ad6254c5 | 2887 | fi |
7a197a62 | 2888 | |
f11781c5 AK |
2889 | fi |
2890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2891 | $as_echo "$ac_cv_path_SED" >&6; } | |
2892 | SED="$ac_cv_path_SED" | |
2893 | rm -f conftest.sed | |
ad6254c5 | 2894 | |
f11781c5 AK |
2895 | for ac_prog in gawk mawk nawk awk |
2896 | do | |
2897 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2898 | set dummy $ac_prog; ac_word=$2 | |
2899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2900 | $as_echo_n "checking for $ac_word... " >&6; } | |
2901 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2902 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2903 | else |
f11781c5 AK |
2904 | if test -n "$AWK"; then |
2905 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2906 | else | |
2907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2908 | for as_dir in $PATH | |
2909 | do | |
2910 | IFS=$as_save_IFS | |
2911 | test -z "$as_dir" && as_dir=. | |
2912 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2913 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2914 | ac_cv_prog_AWK="$ac_prog" | |
2915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2916 | break 2 | |
2917 | fi | |
2918 | done | |
2919 | done | |
2920 | IFS=$as_save_IFS | |
ad6254c5 | 2921 | |
ad6254c5 | 2922 | fi |
ad6254c5 | 2923 | fi |
f11781c5 AK |
2924 | AWK=$ac_cv_prog_AWK |
2925 | if test -n "$AWK"; then | |
2926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2927 | $as_echo "$AWK" >&6; } | |
2928 | else | |
2929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2930 | $as_echo "no" >&6; } | |
ad6254c5 | 2931 | fi |
ad6254c5 | 2932 | |
ad6254c5 | 2933 | |
f11781c5 | 2934 | test -n "$AWK" && break |
ad6254c5 AK |
2935 | done |
2936 | ||
f11781c5 AK |
2937 | ac_ext=c |
2938 | ac_cpp='$CPP $CPPFLAGS' | |
2939 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2940 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2941 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2942 | if test -n "$ac_tool_prefix"; then | |
2943 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2944 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2946 | $as_echo_n "checking for $ac_word... " >&6; } | |
2947 | if test "${ac_cv_prog_CC+set}" = set; then : | |
ec6a6fbe | 2948 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2949 | else |
f11781c5 AK |
2950 | if test -n "$CC"; then |
2951 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
ad6254c5 | 2952 | else |
f11781c5 AK |
2953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2954 | for as_dir in $PATH | |
2955 | do | |
2956 | IFS=$as_save_IFS | |
2957 | test -z "$as_dir" && as_dir=. | |
2958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2960 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2962 | break 2 | |
2963 | fi | |
2964 | done | |
2965 | done | |
2966 | IFS=$as_save_IFS | |
ad6254c5 | 2967 | |
ad6254c5 | 2968 | fi |
ad6254c5 | 2969 | fi |
f11781c5 AK |
2970 | CC=$ac_cv_prog_CC |
2971 | if test -n "$CC"; then | |
2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2973 | $as_echo "$CC" >&6; } | |
2974 | else | |
2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2976 | $as_echo "no" >&6; } | |
ad6254c5 | 2977 | fi |
ad6254c5 | 2978 | |
f11781c5 AK |
2979 | |
2980 | fi | |
2981 | if test -z "$ac_cv_prog_CC"; then | |
2982 | ac_ct_CC=$CC | |
2983 | # Extract the first word of "gcc", so it can be a program name with args. | |
2984 | set dummy gcc; ac_word=$2 | |
2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2986 | $as_echo_n "checking for $ac_word... " >&6; } | |
2987 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
ec6a6fbe | 2988 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2989 | else |
f11781c5 AK |
2990 | if test -n "$ac_ct_CC"; then |
2991 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d911ec67 | 2992 | else |
f11781c5 AK |
2993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2994 | for as_dir in $PATH | |
2995 | do | |
2996 | IFS=$as_save_IFS | |
2997 | test -z "$as_dir" && as_dir=. | |
2998 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2999 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3000 | ac_cv_prog_ac_ct_CC="gcc" | |
3001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3002 | break 2 | |
3003 | fi | |
3004 | done | |
3005 | done | |
3006 | IFS=$as_save_IFS | |
d911ec67 | 3007 | |
d911ec67 | 3008 | fi |
d911ec67 | 3009 | fi |
f11781c5 AK |
3010 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3011 | if test -n "$ac_ct_CC"; then | |
3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3013 | $as_echo "$ac_ct_CC" >&6; } | |
3014 | else | |
3015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3016 | $as_echo "no" >&6; } | |
d911ec67 | 3017 | fi |
d911ec67 | 3018 | |
f11781c5 AK |
3019 | if test "x$ac_ct_CC" = x; then |
3020 | CC="" | |
3021 | else | |
3022 | case $cross_compiling:$ac_tool_warned in | |
3023 | yes:) | |
3024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3025 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3026 | ac_tool_warned=yes ;; | |
3027 | esac | |
3028 | CC=$ac_ct_CC | |
3029 | fi | |
3030 | else | |
3031 | CC="$ac_cv_prog_CC" | |
d911ec67 | 3032 | fi |
d911ec67 | 3033 | |
f11781c5 AK |
3034 | if test -z "$CC"; then |
3035 | if test -n "$ac_tool_prefix"; then | |
3036 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3037 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3039 | $as_echo_n "checking for $ac_word... " >&6; } | |
3040 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 | 3041 | $as_echo_n "(cached) " >&6 |
d911ec67 | 3042 | else |
f11781c5 AK |
3043 | if test -n "$CC"; then |
3044 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d911ec67 | 3045 | else |
f11781c5 AK |
3046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3047 | for as_dir in $PATH | |
3048 | do | |
3049 | IFS=$as_save_IFS | |
3050 | test -z "$as_dir" && as_dir=. | |
3051 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3053 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3055 | break 2 | |
3056 | fi | |
3057 | done | |
3058 | done | |
3059 | IFS=$as_save_IFS | |
d911ec67 | 3060 | |
f11781c5 AK |
3061 | fi |
3062 | fi | |
3063 | CC=$ac_cv_prog_CC | |
3064 | if test -n "$CC"; then | |
3065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3066 | $as_echo "$CC" >&6; } | |
3067 | else | |
3068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3069 | $as_echo "no" >&6; } | |
d911ec67 AK |
3070 | fi |
3071 | ||
d911ec67 | 3072 | |
f11781c5 AK |
3073 | fi |
3074 | fi | |
3075 | if test -z "$CC"; then | |
3076 | # Extract the first word of "cc", so it can be a program name with args. | |
3077 | set dummy cc; ac_word=$2 | |
3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3079 | $as_echo_n "checking for $ac_word... " >&6; } | |
3080 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3081 | $as_echo_n "(cached) " >&6 | |
d911ec67 | 3082 | else |
f11781c5 AK |
3083 | if test -n "$CC"; then |
3084 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3085 | else | |
3086 | ac_prog_rejected=no | |
3087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3088 | for as_dir in $PATH | |
3089 | do | |
3090 | IFS=$as_save_IFS | |
3091 | test -z "$as_dir" && as_dir=. | |
3092 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3094 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3095 | ac_prog_rejected=yes | |
3096 | continue | |
3097 | fi | |
3098 | ac_cv_prog_CC="cc" | |
3099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3100 | break 2 | |
3101 | fi | |
3102 | done | |
3103 | done | |
3104 | IFS=$as_save_IFS | |
d911ec67 | 3105 | |
f11781c5 AK |
3106 | if test $ac_prog_rejected = yes; then |
3107 | # We found a bogon in the path, so make sure we never use it. | |
3108 | set dummy $ac_cv_prog_CC | |
3109 | shift | |
3110 | if test $# != 0; then | |
3111 | # We chose a different compiler from the bogus one. | |
3112 | # However, it has the same basename, so the bogon will be chosen | |
3113 | # first if we set CC to just the basename; use the full file name. | |
3114 | shift | |
3115 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3116 | fi | |
3117 | fi | |
3118 | fi | |
3119 | fi | |
3120 | CC=$ac_cv_prog_CC | |
3121 | if test -n "$CC"; then | |
3122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3123 | $as_echo "$CC" >&6; } | |
3124 | else | |
3125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3126 | $as_echo "no" >&6; } | |
d911ec67 AK |
3127 | fi |
3128 | ||
d911ec67 | 3129 | |
f11781c5 AK |
3130 | fi |
3131 | if test -z "$CC"; then | |
3132 | if test -n "$ac_tool_prefix"; then | |
3133 | for ac_prog in cl.exe | |
3134 | do | |
3135 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3136 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3138 | $as_echo_n "checking for $ac_word... " >&6; } | |
3139 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 AK |
3140 | $as_echo_n "(cached) " >&6 |
3141 | else | |
f11781c5 AK |
3142 | if test -n "$CC"; then |
3143 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3144 | else | |
3145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3146 | for as_dir in $PATH | |
3147 | do | |
3148 | IFS=$as_save_IFS | |
3149 | test -z "$as_dir" && as_dir=. | |
3150 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3151 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3152 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3154 | break 2 | |
3155 | fi | |
3156 | done | |
3157 | done | |
3158 | IFS=$as_save_IFS | |
d911ec67 AK |
3159 | |
3160 | fi | |
f11781c5 AK |
3161 | fi |
3162 | CC=$ac_cv_prog_CC | |
3163 | if test -n "$CC"; then | |
3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3165 | $as_echo "$CC" >&6; } | |
3166 | else | |
3167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3168 | $as_echo "no" >&6; } | |
d911ec67 AK |
3169 | fi |
3170 | ||
d911ec67 | 3171 | |
f11781c5 AK |
3172 | test -n "$CC" && break |
3173 | done | |
3174 | fi | |
3175 | if test -z "$CC"; then | |
3176 | ac_ct_CC=$CC | |
3177 | for ac_prog in cl.exe | |
3178 | do | |
3179 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3180 | set dummy $ac_prog; ac_word=$2 | |
3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3182 | $as_echo_n "checking for $ac_word... " >&6; } | |
3183 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
d911ec67 AK |
3184 | $as_echo_n "(cached) " >&6 |
3185 | else | |
f11781c5 AK |
3186 | if test -n "$ac_ct_CC"; then |
3187 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
ad6254c5 | 3188 | else |
f11781c5 AK |
3189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3190 | for as_dir in $PATH | |
3191 | do | |
3192 | IFS=$as_save_IFS | |
3193 | test -z "$as_dir" && as_dir=. | |
3194 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3195 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3196 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3198 | break 2 | |
3199 | fi | |
3200 | done | |
3201 | done | |
3202 | IFS=$as_save_IFS | |
ad6254c5 | 3203 | |
ad6254c5 | 3204 | fi |
ad6254c5 | 3205 | fi |
f11781c5 AK |
3206 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3207 | if test -n "$ac_ct_CC"; then | |
3208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3209 | $as_echo "$ac_ct_CC" >&6; } | |
3210 | else | |
3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3212 | $as_echo "no" >&6; } | |
ad6254c5 | 3213 | fi |
ad6254c5 | 3214 | |
d911ec67 | 3215 | |
f11781c5 AK |
3216 | test -n "$ac_ct_CC" && break |
3217 | done | |
d911ec67 | 3218 | |
f11781c5 AK |
3219 | if test "x$ac_ct_CC" = x; then |
3220 | CC="" | |
3221 | else | |
3222 | case $cross_compiling:$ac_tool_warned in | |
3223 | yes:) | |
3224 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3225 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3226 | ac_tool_warned=yes ;; | |
d911ec67 | 3227 | esac |
f11781c5 AK |
3228 | CC=$ac_ct_CC |
3229 | fi | |
3230 | fi | |
ad6254c5 AK |
3231 | |
3232 | fi | |
d911ec67 AK |
3233 | |
3234 | ||
f11781c5 AK |
3235 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3236 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3237 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3238 | See \`config.log' for more details" "$LINENO" 5; } | |
3239 | ||
3240 | # Provide some information about the compiler. | |
3241 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3242 | set X $ac_compile | |
3243 | ac_compiler=$2 | |
3244 | for ac_option in --version -v -V -qversion; do | |
3245 | { { ac_try="$ac_compiler $ac_option >&5" | |
3246 | case "(($ac_try" in | |
3247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3248 | *) ac_try_echo=$ac_try;; | |
3249 | esac | |
3250 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3251 | $as_echo "$ac_try_echo"; } >&5 | |
3252 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3253 | ac_status=$? | |
3254 | if test -s conftest.err; then | |
3255 | sed '10a\ | |
3256 | ... rest of stderr output deleted ... | |
3257 | 10q' conftest.err >conftest.er1 | |
3258 | cat conftest.er1 >&5 | |
3259 | fi | |
3260 | rm -f conftest.er1 conftest.err | |
3261 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3262 | test $ac_status = 0; } | |
3263 | done | |
ad6254c5 | 3264 | |
f11781c5 | 3265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 3266 | /* end confdefs.h. */ |
f11781c5 | 3267 | |
ad6254c5 AK |
3268 | int |
3269 | main () | |
3270 | { | |
f11781c5 | 3271 | |
ad6254c5 AK |
3272 | ; |
3273 | return 0; | |
3274 | } | |
3275 | _ACEOF | |
f11781c5 AK |
3276 | ac_clean_files_save=$ac_clean_files |
3277 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3278 | # Try to create an executable without -o first, disregard a.out. | |
3279 | # It will help us diagnose broken compilers, and finding out an intuition | |
3280 | # of exeext. | |
3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3282 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3283 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3284 | ||
3285 | # The possible output files: | |
3286 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3287 | ||
3288 | ac_rmfiles= | |
3289 | for ac_file in $ac_files | |
3290 | do | |
3291 | case $ac_file in | |
3292 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3293 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3294 | esac | |
3295 | done | |
3296 | rm -f $ac_rmfiles | |
3297 | ||
3298 | if { { ac_try="$ac_link_default" | |
7a197a62 AK |
3299 | case "(($ac_try" in |
3300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3301 | *) ac_try_echo=$ac_try;; | |
3302 | esac | |
f11781c5 AK |
3303 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3304 | $as_echo "$ac_try_echo"; } >&5 | |
3305 | (eval "$ac_link_default") 2>&5 | |
ad6254c5 | 3306 | ac_status=$? |
f11781c5 AK |
3307 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3308 | test $ac_status = 0; }; then : | |
3309 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3310 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3311 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3312 | # so that the user can short-circuit this test for compilers unknown to | |
3313 | # Autoconf. | |
3314 | for ac_file in $ac_files '' | |
3315 | do | |
3316 | test -f "$ac_file" || continue | |
3317 | case $ac_file in | |
3318 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3319 | ;; | |
3320 | [ab].out ) | |
3321 | # We found the default executable, but exeext='' is most | |
3322 | # certainly right. | |
3323 | break;; | |
3324 | *.* ) | |
3325 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3326 | then :; else | |
3327 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3328 | fi | |
3329 | # We set ac_cv_exeext here because the later test for it is not | |
3330 | # safe: cross compilers may not add the suffix if given an `-o' | |
3331 | # argument, so we may need to know it at that point already. | |
3332 | # Even if this section looks crufty: it has the advantage of | |
3333 | # actually working. | |
3334 | break;; | |
3335 | * ) | |
3336 | break;; | |
3337 | esac | |
3338 | done | |
3339 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3340 | ||
ad6254c5 | 3341 | else |
f11781c5 AK |
3342 | ac_file='' |
3343 | fi | |
3344 | if test -z "$ac_file"; then : | |
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3346 | $as_echo "no" >&6; } | |
ec6a6fbe | 3347 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3348 | sed 's/^/| /' conftest.$ac_ext >&5 |
3349 | ||
f11781c5 AK |
3350 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3351 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3352 | as_fn_error 77 "C compiler cannot create executables | |
3353 | See \`config.log' for more details" "$LINENO" 5; } | |
3354 | else | |
3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3356 | $as_echo "yes" >&6; } | |
ad6254c5 | 3357 | fi |
f11781c5 AK |
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3359 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3361 | $as_echo "$ac_file" >&6; } | |
3362 | ac_exeext=$ac_cv_exeext | |
7a197a62 | 3363 | |
f11781c5 AK |
3364 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3365 | ac_clean_files=$ac_clean_files_save | |
3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3367 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3368 | if { { ac_try="$ac_link" | |
3369 | case "(($ac_try" in | |
3370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3371 | *) ac_try_echo=$ac_try;; | |
8a2fc586 | 3372 | esac |
f11781c5 AK |
3373 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3374 | $as_echo "$ac_try_echo"; } >&5 | |
3375 | (eval "$ac_link") 2>&5 | |
3376 | ac_status=$? | |
3377 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3378 | test $ac_status = 0; }; then : | |
3379 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3380 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3381 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3382 | # `rm'. | |
3383 | for ac_file in conftest.exe conftest conftest.*; do | |
3384 | test -f "$ac_file" || continue | |
3385 | case $ac_file in | |
3386 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3387 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3388 | break;; | |
3389 | * ) break;; | |
3390 | esac | |
3391 | done | |
3392 | else | |
3393 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3394 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3395 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3396 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3397 | fi |
f11781c5 AK |
3398 | rm -f conftest conftest$ac_cv_exeext |
3399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3400 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 | 3401 | |
f11781c5 AK |
3402 | rm -f conftest.$ac_ext |
3403 | EXEEXT=$ac_cv_exeext | |
3404 | ac_exeext=$EXEEXT | |
3405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 3406 | /* end confdefs.h. */ |
f11781c5 | 3407 | #include <stdio.h> |
ad6254c5 | 3408 | int |
f11781c5 | 3409 | main () |
ad6254c5 | 3410 | { |
f11781c5 AK |
3411 | FILE *f = fopen ("conftest.out", "w"); |
3412 | return ferror (f) || fclose (f) != 0; | |
ad6254c5 | 3413 | |
f11781c5 | 3414 | ; |
7a197a62 | 3415 | return 0; |
ad6254c5 | 3416 | } |
ad6254c5 | 3417 | _ACEOF |
f11781c5 AK |
3418 | ac_clean_files="$ac_clean_files conftest.out" |
3419 | # Check that the compiler produces executables we can run. If not, either | |
3420 | # the compiler is broken, or we cross compile. | |
3421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3422 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3423 | if test "$cross_compiling" != yes; then | |
3424 | { { ac_try="$ac_link" | |
7a197a62 AK |
3425 | case "(($ac_try" in |
3426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3427 | *) ac_try_echo=$ac_try;; | |
3428 | esac | |
f11781c5 AK |
3429 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3430 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3431 | (eval "$ac_link") 2>&5 |
ad6254c5 | 3432 | ac_status=$? |
f11781c5 AK |
3433 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3434 | test $ac_status = 0; } | |
3435 | if { ac_try='./conftest$ac_cv_exeext' | |
3436 | { { case "(($ac_try" in | |
7a197a62 AK |
3437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3438 | *) ac_try_echo=$ac_try;; | |
3439 | esac | |
f11781c5 AK |
3440 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3441 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3442 | (eval "$ac_try") 2>&5 |
ad6254c5 | 3443 | ac_status=$? |
f11781c5 AK |
3444 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3445 | test $ac_status = 0; }; }; then | |
3446 | cross_compiling=no | |
3447 | else | |
3448 | if test "$cross_compiling" = maybe; then | |
3449 | cross_compiling=yes | |
3450 | else | |
3451 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3452 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3453 | as_fn_error $? "cannot run C compiled programs. | |
3454 | If you meant to cross compile, use \`--host'. | |
3455 | See \`config.log' for more details" "$LINENO" 5; } | |
3456 | fi | |
3457 | fi | |
3458 | fi | |
3459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3460 | $as_echo "$cross_compiling" >&6; } | |
3461 | ||
3462 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3463 | ac_clean_files=$ac_clean_files_save | |
3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3465 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3466 | if test "${ac_cv_objext+set}" = set; then : | |
3467 | $as_echo_n "(cached) " >&6 | |
3468 | else | |
3469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3470 | /* end confdefs.h. */ | |
ad6254c5 AK |
3471 | |
3472 | int | |
3473 | main () | |
3474 | { | |
f11781c5 | 3475 | |
ad6254c5 AK |
3476 | ; |
3477 | return 0; | |
3478 | } | |
3479 | _ACEOF | |
f11781c5 AK |
3480 | rm -f conftest.o conftest.obj |
3481 | if { { ac_try="$ac_compile" | |
7a197a62 AK |
3482 | case "(($ac_try" in |
3483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3484 | *) ac_try_echo=$ac_try;; | |
3485 | esac | |
f11781c5 AK |
3486 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3487 | $as_echo "$ac_try_echo"; } >&5 | |
3488 | (eval "$ac_compile") 2>&5 | |
ad6254c5 | 3489 | ac_status=$? |
f11781c5 AK |
3490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3491 | test $ac_status = 0; }; then : | |
3492 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3493 | test -f "$ac_file" || continue; | |
3494 | case $ac_file in | |
3495 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3496 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3497 | break;; | |
3498 | esac | |
3499 | done | |
ad6254c5 | 3500 | else |
ec6a6fbe | 3501 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3502 | sed 's/^/| /' conftest.$ac_ext >&5 |
3503 | ||
f11781c5 AK |
3504 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3505 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3506 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3507 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3508 | fi |
f11781c5 | 3509 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ad6254c5 | 3510 | fi |
f11781c5 AK |
3511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3512 | $as_echo "$ac_cv_objext" >&6; } | |
3513 | OBJEXT=$ac_cv_objext | |
3514 | ac_objext=$OBJEXT | |
3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3516 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3517 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
ec6a6fbe | 3518 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3519 | else |
f11781c5 | 3520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 AK |
3521 | /* end confdefs.h. */ |
3522 | ||
ad6254c5 AK |
3523 | int |
3524 | main () | |
3525 | { | |
f11781c5 AK |
3526 | #ifndef __GNUC__ |
3527 | choke me | |
3528 | #endif | |
3529 | ||
ad6254c5 AK |
3530 | ; |
3531 | return 0; | |
3532 | } | |
3533 | _ACEOF | |
f11781c5 AK |
3534 | if ac_fn_c_try_compile "$LINENO"; then : |
3535 | ac_compiler_gnu=yes | |
ad6254c5 | 3536 | else |
f11781c5 | 3537 | ac_compiler_gnu=no |
ad6254c5 | 3538 | fi |
f11781c5 AK |
3539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3540 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
7a197a62 | 3541 | |
d0191583 | 3542 | fi |
f11781c5 AK |
3543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3544 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3545 | if test $ac_compiler_gnu = yes; then | |
3546 | GCC=yes | |
d0191583 | 3547 | else |
f11781c5 | 3548 | GCC= |
d0191583 | 3549 | fi |
f11781c5 AK |
3550 | ac_test_CFLAGS=${CFLAGS+set} |
3551 | ac_save_CFLAGS=$CFLAGS | |
3552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3553 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3554 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3555 | $as_echo_n "(cached) " >&6 | |
3556 | else | |
3557 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3558 | ac_c_werror_flag=yes | |
3559 | ac_cv_prog_cc_g=no | |
3560 | CFLAGS="-g" | |
3561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3562 | /* end confdefs.h. */ | |
72b2cb61 | 3563 | |
f11781c5 AK |
3564 | int |
3565 | main () | |
3566 | { | |
72b2cb61 | 3567 | |
f11781c5 AK |
3568 | ; |
3569 | return 0; | |
3570 | } | |
3571 | _ACEOF | |
3572 | if ac_fn_c_try_compile "$LINENO"; then : | |
3573 | ac_cv_prog_cc_g=yes | |
3574 | else | |
3575 | CFLAGS="" | |
3576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3577 | /* end confdefs.h. */ | |
ad6254c5 | 3578 | |
f11781c5 AK |
3579 | int |
3580 | main () | |
3581 | { | |
ad6254c5 | 3582 | |
f11781c5 AK |
3583 | ; |
3584 | return 0; | |
3585 | } | |
d0191583 | 3586 | _ACEOF |
f11781c5 AK |
3587 | if ac_fn_c_try_compile "$LINENO"; then : |
3588 | ||
3589 | else | |
3590 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3591 | CFLAGS="-g" | |
3592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3593 | /* end confdefs.h. */ |
7a197a62 | 3594 | |
f11781c5 AK |
3595 | int |
3596 | main () | |
3597 | { | |
ad6254c5 | 3598 | |
f11781c5 AK |
3599 | ; |
3600 | return 0; | |
3601 | } | |
3602 | _ACEOF | |
3603 | if ac_fn_c_try_compile "$LINENO"; then : | |
3604 | ac_cv_prog_cc_g=yes | |
3605 | fi | |
3606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3607 | fi | |
3608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3609 | fi | |
3610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3611 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3612 | fi | |
3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3614 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3615 | if test "$ac_test_CFLAGS" = set; then | |
3616 | CFLAGS=$ac_save_CFLAGS | |
3617 | elif test $ac_cv_prog_cc_g = yes; then | |
3618 | if test "$GCC" = yes; then | |
3619 | CFLAGS="-g -O2" | |
3620 | else | |
3621 | CFLAGS="-g" | |
3622 | fi | |
3623 | else | |
3624 | if test "$GCC" = yes; then | |
3625 | CFLAGS="-O2" | |
3626 | else | |
3627 | CFLAGS= | |
3628 | fi | |
3629 | fi | |
3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3631 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3632 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3633 | $as_echo_n "(cached) " >&6 | |
3634 | else | |
3635 | ac_cv_prog_cc_c89=no | |
3636 | ac_save_CC=$CC | |
3637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3638 | /* end confdefs.h. */ | |
3639 | #include <stdarg.h> | |
3640 | #include <stdio.h> | |
3641 | #include <sys/types.h> | |
3642 | #include <sys/stat.h> | |
3643 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3644 | struct buf { int x; }; | |
3645 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3646 | static char *e (p, i) | |
3647 | char **p; | |
3648 | int i; | |
3649 | { | |
3650 | return p[i]; | |
3651 | } | |
3652 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3653 | { | |
3654 | char *s; | |
3655 | va_list v; | |
3656 | va_start (v,p); | |
3657 | s = g (p, va_arg (v,int)); | |
3658 | va_end (v); | |
3659 | return s; | |
3660 | } | |
ad6254c5 | 3661 | |
f11781c5 AK |
3662 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3663 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3664 | These don't provoke an error unfortunately, instead are silently treated | |
3665 | as 'x'. The following induces an error, until -std is added to get | |
3666 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3667 | array size at least. It's necessary to write '\x00'==0 to get something | |
3668 | that's true only with -std. */ | |
3669 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
72b2cb61 | 3670 | |
f11781c5 AK |
3671 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3672 | inside strings and character constants. */ | |
3673 | #define FOO(x) 'x' | |
3674 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
d0191583 | 3675 | |
f11781c5 AK |
3676 | int test (int i, double x); |
3677 | struct s1 {int (*f) (int a);}; | |
3678 | struct s2 {int (*f) (double a);}; | |
3679 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3680 | int argc; | |
3681 | char **argv; | |
d0191583 JM |
3682 | int |
3683 | main () | |
3684 | { | |
f11781c5 | 3685 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
d0191583 JM |
3686 | ; |
3687 | return 0; | |
3688 | } | |
72b2cb61 | 3689 | _ACEOF |
f11781c5 AK |
3690 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3691 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3692 | do | |
3693 | CC="$ac_save_CC $ac_arg" | |
3694 | if ac_fn_c_try_compile "$LINENO"; then : | |
3695 | ac_cv_prog_cc_c89=$ac_arg | |
3696 | fi | |
3697 | rm -f core conftest.err conftest.$ac_objext | |
3698 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3699 | done | |
3700 | rm -f conftest.$ac_ext | |
3701 | CC=$ac_save_CC | |
3702 | ||
3703 | fi | |
3704 | # AC_CACHE_VAL | |
3705 | case "x$ac_cv_prog_cc_c89" in | |
3706 | x) | |
3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3708 | $as_echo "none needed" >&6; } ;; | |
3709 | xno) | |
3710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3711 | $as_echo "unsupported" >&6; } ;; | |
3712 | *) | |
3713 | CC="$CC $ac_cv_prog_cc_c89" | |
3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3715 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d0191583 | 3716 | esac |
f11781c5 AK |
3717 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
3718 | ||
3719 | fi | |
3720 | ||
3721 | ac_ext=c | |
3722 | ac_cpp='$CPP $CPPFLAGS' | |
3723 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3724 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3725 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
72b2cb61 | 3726 | |
ad6254c5 | 3727 | |
7a197a62 | 3728 | |
f11781c5 AK |
3729 | ac_ext=c |
3730 | ac_cpp='$CPP $CPPFLAGS' | |
3731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3735 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3736 | # On Suns, sometimes $CPP names a directory. | |
3737 | if test -n "$CPP" && test -d "$CPP"; then | |
3738 | CPP= | |
3739 | fi | |
3740 | if test -z "$CPP"; then | |
3741 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
ec6a6fbe | 3742 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3743 | else |
f11781c5 AK |
3744 | # Double quotes because CPP needs to be expanded |
3745 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3746 | do | |
3747 | ac_preproc_ok=false | |
3748 | for ac_c_preproc_warn_flag in '' yes | |
3749 | do | |
3750 | # Use a header file that comes with gcc, so configuring glibc | |
3751 | # with a fresh cross-compiler works. | |
3752 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3753 | # <limits.h> exists even on freestanding compilers. | |
3754 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3755 | # not just through cpp. "Syntax error" is here to catch this case. | |
3756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3757 | /* end confdefs.h. */ |
d0191583 JM |
3758 | #ifdef __STDC__ |
3759 | # include <limits.h> | |
3760 | #else | |
3761 | # include <assert.h> | |
3762 | #endif | |
f11781c5 AK |
3763 | Syntax error |
3764 | _ACEOF | |
3765 | if ac_fn_c_try_cpp "$LINENO"; then : | |
72b2cb61 | 3766 | |
f11781c5 AK |
3767 | else |
3768 | # Broken: fails on valid input. | |
3769 | continue | |
3770 | fi | |
3771 | rm -f conftest.err conftest.$ac_ext | |
d0191583 | 3772 | |
f11781c5 AK |
3773 | # OK, works on sane cases. Now check whether nonexistent headers |
3774 | # can be detected and how. | |
3775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3776 | /* end confdefs.h. */ | |
3777 | #include <ac_nonexistent.h> | |
72b2cb61 | 3778 | _ACEOF |
f11781c5 AK |
3779 | if ac_fn_c_try_cpp "$LINENO"; then : |
3780 | # Broken: success on invalid input. | |
3781 | continue | |
d0191583 | 3782 | else |
f11781c5 AK |
3783 | # Passes both tests. |
3784 | ac_preproc_ok=: | |
3785 | break | |
ad6254c5 | 3786 | fi |
f11781c5 | 3787 | rm -f conftest.err conftest.$ac_ext |
ad6254c5 | 3788 | |
f11781c5 AK |
3789 | done |
3790 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3791 | rm -f conftest.err conftest.$ac_ext | |
3792 | if $ac_preproc_ok; then : | |
3793 | break | |
7a197a62 AK |
3794 | fi |
3795 | ||
f11781c5 AK |
3796 | done |
3797 | ac_cv_prog_CPP=$CPP | |
ad6254c5 | 3798 | |
7a197a62 | 3799 | fi |
f11781c5 AK |
3800 | CPP=$ac_cv_prog_CPP |
3801 | else | |
3802 | ac_cv_prog_CPP=$CPP | |
d0191583 | 3803 | fi |
f11781c5 AK |
3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3805 | $as_echo "$CPP" >&6; } | |
3806 | ac_preproc_ok=false | |
3807 | for ac_c_preproc_warn_flag in '' yes | |
3808 | do | |
3809 | # Use a header file that comes with gcc, so configuring glibc | |
3810 | # with a fresh cross-compiler works. | |
3811 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3812 | # <limits.h> exists even on freestanding compilers. | |
3813 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3814 | # not just through cpp. "Syntax error" is here to catch this case. | |
3815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3816 | /* end confdefs.h. */ | |
3817 | #ifdef __STDC__ | |
3818 | # include <limits.h> | |
3819 | #else | |
3820 | # include <assert.h> | |
3821 | #endif | |
3822 | Syntax error | |
3823 | _ACEOF | |
3824 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7a197a62 | 3825 | |
9c961554 | 3826 | else |
f11781c5 AK |
3827 | # Broken: fails on valid input. |
3828 | continue | |
9c961554 | 3829 | fi |
f11781c5 | 3830 | rm -f conftest.err conftest.$ac_ext |
9c961554 | 3831 | |
f11781c5 AK |
3832 | # OK, works on sane cases. Now check whether nonexistent headers |
3833 | # can be detected and how. | |
3834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3835 | /* end confdefs.h. */ | |
3836 | #include <ac_nonexistent.h> | |
3837 | _ACEOF | |
3838 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3839 | # Broken: success on invalid input. | |
3840 | continue | |
3841 | else | |
3842 | # Passes both tests. | |
3843 | ac_preproc_ok=: | |
3844 | break | |
3845 | fi | |
3846 | rm -f conftest.err conftest.$ac_ext | |
ad6254c5 | 3847 | |
f11781c5 AK |
3848 | done |
3849 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3850 | rm -f conftest.err conftest.$ac_ext | |
3851 | if $ac_preproc_ok; then : | |
d0191583 | 3852 | |
f11781c5 AK |
3853 | else |
3854 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3855 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3856 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3857 | See \`config.log' for more details" "$LINENO" 5; } | |
7a197a62 AK |
3858 | fi |
3859 | ||
f11781c5 AK |
3860 | ac_ext=c |
3861 | ac_cpp='$CPP $CPPFLAGS' | |
3862 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3863 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3864 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 3865 | |
ad6254c5 | 3866 | |
f11781c5 AK |
3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3868 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3869 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3870 | $as_echo_n "(cached) " >&6 | |
3871 | else | |
3872 | if test -z "$GREP"; then | |
3873 | ac_path_GREP_found=false | |
3874 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3876 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3877 | do | |
3878 | IFS=$as_save_IFS | |
3879 | test -z "$as_dir" && as_dir=. | |
3880 | for ac_prog in grep ggrep; do | |
3881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3882 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3883 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3884 | # Check for GNU ac_path_GREP and select it if it is found. | |
3885 | # Check for GNU $ac_path_GREP | |
3886 | case `"$ac_path_GREP" --version 2>&1` in | |
3887 | *GNU*) | |
3888 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3889 | *) | |
3890 | ac_count=0 | |
3891 | $as_echo_n 0123456789 >"conftest.in" | |
3892 | while : | |
3893 | do | |
3894 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3895 | mv "conftest.tmp" "conftest.in" | |
3896 | cp "conftest.in" "conftest.nl" | |
3897 | $as_echo 'GREP' >> "conftest.nl" | |
3898 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3899 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3900 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3901 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3902 | # Best one so far, save it but keep looking for a better one | |
3903 | ac_cv_path_GREP="$ac_path_GREP" | |
3904 | ac_path_GREP_max=$ac_count | |
3905 | fi | |
3906 | # 10*(2^10) chars as input seems more than enough | |
3907 | test $ac_count -gt 10 && break | |
3908 | done | |
3909 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3910 | esac | |
ad6254c5 | 3911 | |
f11781c5 AK |
3912 | $ac_path_GREP_found && break 3 |
3913 | done | |
3914 | done | |
3915 | done | |
3916 | IFS=$as_save_IFS | |
3917 | if test -z "$ac_cv_path_GREP"; then | |
3918 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3919 | fi | |
3920 | else | |
3921 | ac_cv_path_GREP=$GREP | |
7a197a62 AK |
3922 | fi |
3923 | ||
d0191583 | 3924 | fi |
f11781c5 AK |
3925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3926 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3927 | GREP="$ac_cv_path_GREP" | |
ad6254c5 | 3928 | |
24bbc4d7 | 3929 | |
f11781c5 AK |
3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3931 | $as_echo_n "checking for egrep... " >&6; } | |
3932 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3933 | $as_echo_n "(cached) " >&6 | |
3934 | else | |
3935 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3936 | then ac_cv_path_EGREP="$GREP -E" | |
3937 | else | |
3938 | if test -z "$EGREP"; then | |
3939 | ac_path_EGREP_found=false | |
3940 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3942 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3943 | do | |
3944 | IFS=$as_save_IFS | |
3945 | test -z "$as_dir" && as_dir=. | |
3946 | for ac_prog in egrep; do | |
3947 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3948 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3949 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3950 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3951 | # Check for GNU $ac_path_EGREP | |
3952 | case `"$ac_path_EGREP" --version 2>&1` in | |
3953 | *GNU*) | |
3954 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3955 | *) | |
3956 | ac_count=0 | |
3957 | $as_echo_n 0123456789 >"conftest.in" | |
3958 | while : | |
3959 | do | |
3960 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3961 | mv "conftest.tmp" "conftest.in" | |
3962 | cp "conftest.in" "conftest.nl" | |
3963 | $as_echo 'EGREP' >> "conftest.nl" | |
3964 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3965 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3966 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3967 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3968 | # Best one so far, save it but keep looking for a better one | |
3969 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3970 | ac_path_EGREP_max=$ac_count | |
3971 | fi | |
3972 | # 10*(2^10) chars as input seems more than enough | |
3973 | test $ac_count -gt 10 && break | |
3974 | done | |
3975 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3976 | esac | |
24bbc4d7 | 3977 | |
f11781c5 AK |
3978 | $ac_path_EGREP_found && break 3 |
3979 | done | |
3980 | done | |
3981 | done | |
3982 | IFS=$as_save_IFS | |
3983 | if test -z "$ac_cv_path_EGREP"; then | |
3984 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3985 | fi | |
24bbc4d7 | 3986 | else |
f11781c5 | 3987 | ac_cv_path_EGREP=$EGREP |
24bbc4d7 AK |
3988 | fi |
3989 | ||
f11781c5 | 3990 | fi |
24bbc4d7 | 3991 | fi |
f11781c5 AK |
3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3993 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3994 | EGREP="$ac_cv_path_EGREP" | |
93bd259b AK |
3995 | |
3996 | ||
f11781c5 AK |
3997 | if test $ac_cv_c_compiler_gnu = yes; then |
3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
3999 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
4000 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : | |
4001 | $as_echo_n "(cached) " >&6 | |
93bd259b | 4002 | else |
f11781c5 AK |
4003 | ac_pattern="Autoconf.*'x'" |
4004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4005 | /* end confdefs.h. */ | |
4006 | #include <sgtty.h> | |
4007 | Autoconf TIOCGETP | |
4008 | _ACEOF | |
4009 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4010 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4011 | ac_cv_prog_gcc_traditional=yes | |
d0191583 | 4012 | else |
f11781c5 | 4013 | ac_cv_prog_gcc_traditional=no |
7a197a62 | 4014 | fi |
f11781c5 | 4015 | rm -f conftest* |
7a197a62 | 4016 | |
72b2cb61 | 4017 | |
f11781c5 AK |
4018 | if test $ac_cv_prog_gcc_traditional = no; then |
4019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4020 | /* end confdefs.h. */ | |
4021 | #include <termio.h> | |
4022 | Autoconf TCGETA | |
72b2cb61 | 4023 | _ACEOF |
f11781c5 AK |
4024 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4025 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4026 | ac_cv_prog_gcc_traditional=yes | |
ad6254c5 | 4027 | fi |
f11781c5 | 4028 | rm -f conftest* |
ad6254c5 | 4029 | |
f11781c5 | 4030 | fi |
7a197a62 | 4031 | fi |
f11781c5 AK |
4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
4033 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4034 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4035 | CC="$CC -traditional" | |
4036 | fi | |
ad6254c5 AK |
4037 | fi |
4038 | ||
f11781c5 AK |
4039 | # Find a good install program. We prefer a C program (faster), |
4040 | # so one script is as good as another. But avoid the broken or | |
4041 | # incompatible versions: | |
4042 | # SysV /etc/install, /usr/sbin/install | |
4043 | # SunOS /usr/etc/install | |
4044 | # IRIX /sbin/install | |
4045 | # AIX /bin/install | |
4046 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4047 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4048 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4049 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4050 | # OS/2's system install, which has a completely different semantic | |
4051 | # ./install, which can be erroneously created by make from ./install.sh. | |
4052 | # Reject install programs that cannot install multiple files. | |
4053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4054 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4055 | if test -z "$INSTALL"; then | |
4056 | if test "${ac_cv_path_install+set}" = set; then : | |
4057 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 4058 | else |
f11781c5 AK |
4059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4060 | for as_dir in $PATH | |
4061 | do | |
4062 | IFS=$as_save_IFS | |
4063 | test -z "$as_dir" && as_dir=. | |
4064 | # Account for people who put trailing slashes in PATH elements. | |
4065 | case $as_dir/ in #(( | |
4066 | ./ | .// | /[cC]/* | \ | |
4067 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4068 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4069 | /usr/ucb/* ) ;; | |
4070 | *) | |
4071 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4072 | # Don't use installbsd from OSF since it installs stuff as root | |
4073 | # by default. | |
4074 | for ac_prog in ginstall scoinst install; do | |
4075 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4076 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4077 | if test $ac_prog = install && | |
4078 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4079 | # AIX install. It has an incompatible calling convention. | |
4080 | : | |
4081 | elif test $ac_prog = install && | |
4082 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4083 | # program-specific install script used by HP pwplus--don't use. | |
4084 | : | |
4085 | else | |
4086 | rm -rf conftest.one conftest.two conftest.dir | |
4087 | echo one > conftest.one | |
4088 | echo two > conftest.two | |
4089 | mkdir conftest.dir | |
4090 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4091 | test -s conftest.one && test -s conftest.two && | |
4092 | test -s conftest.dir/conftest.one && | |
4093 | test -s conftest.dir/conftest.two | |
4094 | then | |
4095 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4096 | break 3 | |
4097 | fi | |
4098 | fi | |
4099 | fi | |
4100 | done | |
4101 | done | |
4102 | ;; | |
4103 | esac | |
7a197a62 | 4104 | |
f11781c5 AK |
4105 | done |
4106 | IFS=$as_save_IFS | |
d0191583 | 4107 | |
f11781c5 | 4108 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
4109 | |
4110 | fi | |
f11781c5 AK |
4111 | if test "${ac_cv_path_install+set}" = set; then |
4112 | INSTALL=$ac_cv_path_install | |
4113 | else | |
4114 | # As a last resort, use the slow shell script. Don't cache a | |
4115 | # value for INSTALL within a source directory, because that will | |
4116 | # break other packages using the cache if that directory is | |
4117 | # removed, or if the value is a relative name. | |
4118 | INSTALL=$ac_install_sh | |
4119 | fi | |
7a197a62 | 4120 | fi |
f11781c5 AK |
4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4122 | $as_echo "$INSTALL" >&6; } | |
7a197a62 | 4123 | |
f11781c5 AK |
4124 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4125 | # It thinks the first close brace ends the variable substitution. | |
4126 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
06f62ad1 | 4127 | |
f11781c5 | 4128 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
72b2cb61 | 4129 | |
f11781c5 | 4130 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
72b2cb61 | 4131 | |
f11781c5 AK |
4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4133 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4134 | LN_S=$as_ln_s | |
4135 | if test "$LN_S" = "ln -s"; then | |
4136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4137 | $as_echo "yes" >&6; } | |
4138 | else | |
4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4140 | $as_echo "no, using $LN_S" >&6; } | |
15d91f5a | 4141 | fi |
ad6254c5 | 4142 | |
f11781c5 AK |
4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4144 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4145 | set x ${MAKE-make} | |
4146 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4147 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | |
4148 | $as_echo_n "(cached) " >&6 | |
d0191583 | 4149 | else |
f11781c5 AK |
4150 | cat >conftest.make <<\_ACEOF |
4151 | SHELL = /bin/sh | |
4152 | all: | |
4153 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4154 | _ACEOF | |
4155 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4156 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4157 | *@@@%%%=?*=@@@%%%*) | |
4158 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4159 | *) | |
4160 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4161 | esac | |
4162 | rm -f conftest.make | |
4163 | fi | |
4164 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4166 | $as_echo "yes" >&6; } | |
4167 | SET_MAKE= | |
4168 | else | |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4170 | $as_echo "no" >&6; } | |
4171 | SET_MAKE="MAKE=${MAKE-make}" | |
ad6254c5 AK |
4172 | fi |
4173 | ||
f11781c5 AK |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4175 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4176 | if test -z "$MKDIR_P"; then | |
4177 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
4178 | $as_echo_n "(cached) " >&6 | |
4179 | else | |
4180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4181 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4182 | do | |
4183 | IFS=$as_save_IFS | |
4184 | test -z "$as_dir" && as_dir=. | |
4185 | for ac_prog in mkdir gmkdir; do | |
4186 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4187 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
4188 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4189 | 'mkdir (GNU coreutils) '* | \ | |
4190 | 'mkdir (coreutils) '* | \ | |
4191 | 'mkdir (fileutils) '4.1*) | |
4192 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4193 | break 3;; | |
4194 | esac | |
4195 | done | |
4196 | done | |
4197 | done | |
4198 | IFS=$as_save_IFS | |
d0191583 | 4199 | |
f11781c5 | 4200 | fi |
ad6254c5 | 4201 | |
f11781c5 AK |
4202 | test -d ./--version && rmdir ./--version |
4203 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4204 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4205 | else | |
4206 | # As a last resort, use the slow shell script. Don't cache a | |
4207 | # value for MKDIR_P within a source directory, because that will | |
4208 | # break other packages using the cache if that directory is | |
4209 | # removed, or if the value is a relative name. | |
4210 | MKDIR_P="$ac_install_sh -d" | |
4211 | fi | |
ad6254c5 | 4212 | fi |
f11781c5 AK |
4213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4214 | $as_echo "$MKDIR_P" >&6; } | |
7a197a62 | 4215 | |
f11781c5 AK |
4216 | if test -n "$ac_tool_prefix"; then |
4217 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4218 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4220 | $as_echo_n "checking for $ac_word... " >&6; } | |
4221 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4222 | $as_echo_n "(cached) " >&6 | |
4223 | else | |
4224 | if test -n "$RANLIB"; then | |
4225 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4226 | else | |
4227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4228 | for as_dir in $PATH | |
4229 | do | |
4230 | IFS=$as_save_IFS | |
4231 | test -z "$as_dir" && as_dir=. | |
4232 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4234 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4236 | break 2 | |
4237 | fi | |
4238 | done | |
4239 | done | |
4240 | IFS=$as_save_IFS | |
d0191583 | 4241 | |
f11781c5 AK |
4242 | fi |
4243 | fi | |
4244 | RANLIB=$ac_cv_prog_RANLIB | |
4245 | if test -n "$RANLIB"; then | |
4246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4247 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 4248 | else |
f11781c5 AK |
4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4250 | $as_echo "no" >&6; } | |
ad6254c5 | 4251 | fi |
ad6254c5 | 4252 | |
8a2fc586 | 4253 | |
d0191583 | 4254 | fi |
f11781c5 AK |
4255 | if test -z "$ac_cv_prog_RANLIB"; then |
4256 | ac_ct_RANLIB=$RANLIB | |
4257 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4258 | set dummy ranlib; ac_word=$2 | |
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4260 | $as_echo_n "checking for $ac_word... " >&6; } | |
4261 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4262 | $as_echo_n "(cached) " >&6 | |
4263 | else | |
4264 | if test -n "$ac_ct_RANLIB"; then | |
4265 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4266 | else | |
4267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4268 | for as_dir in $PATH | |
4269 | do | |
4270 | IFS=$as_save_IFS | |
4271 | test -z "$as_dir" && as_dir=. | |
4272 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4273 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4274 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4276 | break 2 | |
4277 | fi | |
4278 | done | |
4279 | done | |
4280 | IFS=$as_save_IFS | |
8a2fc586 | 4281 | |
f11781c5 AK |
4282 | fi |
4283 | fi | |
4284 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4285 | if test -n "$ac_ct_RANLIB"; then | |
4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4287 | $as_echo "$ac_ct_RANLIB" >&6; } | |
8fea97b7 | 4288 | else |
f11781c5 AK |
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4290 | $as_echo "no" >&6; } | |
8fea97b7 ZK |
4291 | fi |
4292 | ||
f11781c5 AK |
4293 | if test "x$ac_ct_RANLIB" = x; then |
4294 | RANLIB=":" | |
4295 | else | |
4296 | case $cross_compiling:$ac_tool_warned in | |
4297 | yes:) | |
4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4299 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4300 | ac_tool_warned=yes ;; | |
8fea97b7 | 4301 | esac |
f11781c5 AK |
4302 | RANLIB=$ac_ct_RANLIB |
4303 | fi | |
d0191583 | 4304 | else |
f11781c5 | 4305 | RANLIB="$ac_cv_prog_RANLIB" |
d0191583 | 4306 | fi |
8a2fc586 | 4307 | |
f11781c5 AK |
4308 | # Extract the first word of "cflow", so it can be a program name with args. |
4309 | set dummy cflow; ac_word=$2 | |
4310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4311 | $as_echo_n "checking for $ac_word... " >&6; } | |
4312 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then : | |
4313 | $as_echo_n "(cached) " >&6 | |
4314 | else | |
4315 | case $CFLOW_CMD in | |
4316 | [\\/]* | ?:[\\/]*) | |
4317 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4318 | ;; | |
4319 | *) | |
4320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4321 | for as_dir in $PATH | |
4322 | do | |
4323 | IFS=$as_save_IFS | |
4324 | test -z "$as_dir" && as_dir=. | |
4325 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4326 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4327 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
4328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4329 | break 2 | |
4330 | fi | |
4331 | done | |
4332 | done | |
4333 | IFS=$as_save_IFS | |
8a2fc586 | 4334 | |
f11781c5 AK |
4335 | ;; |
4336 | esac | |
ad6254c5 | 4337 | fi |
f11781c5 AK |
4338 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD |
4339 | if test -n "$CFLOW_CMD"; then | |
4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5 | |
4341 | $as_echo "$CFLOW_CMD" >&6; } | |
37ddf259 | 4342 | else |
f11781c5 AK |
4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4344 | $as_echo "no" >&6; } | |
37ddf259 AK |
4345 | fi |
4346 | ||
e2997b73 | 4347 | |
f11781c5 AK |
4348 | # Extract the first word of "cscope", so it can be a program name with args. |
4349 | set dummy cscope; ac_word=$2 | |
4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
e2997b73 | 4351 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 4352 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then : |
e2997b73 AK |
4353 | $as_echo_n "(cached) " >&6 |
4354 | else | |
f11781c5 | 4355 | case $CSCOPE_CMD in |
e2997b73 | 4356 | [\\/]* | ?:[\\/]*) |
f11781c5 | 4357 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. |
e2997b73 AK |
4358 | ;; |
4359 | *) | |
4360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4361 | for as_dir in $PATH | |
4362 | do | |
4363 | IFS=$as_save_IFS | |
4364 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 4365 | for ac_exec_ext in '' $ac_executable_extensions; do |
e2997b73 | 4366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
4367 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" |
4368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
e2997b73 AK |
4369 | break 2 |
4370 | fi | |
4371 | done | |
f11781c5 | 4372 | done |
e2997b73 AK |
4373 | IFS=$as_save_IFS |
4374 | ||
4375 | ;; | |
4376 | esac | |
4377 | fi | |
f11781c5 AK |
4378 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4379 | if test -n "$CSCOPE_CMD"; then | |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5 | |
4381 | $as_echo "$CSCOPE_CMD" >&6; } | |
e2997b73 | 4382 | else |
f11781c5 | 4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
e2997b73 AK |
4384 | $as_echo "no" >&6; } |
4385 | fi | |
f11781c5 AK |
4386 | |
4387 | ||
4388 | ||
4389 | ################################################################################ | |
4390 | ac_header_dirent=no | |
4391 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
4392 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4394 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4395 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : | |
4396 | $as_echo_n "(cached) " >&6 | |
4397 | else | |
4398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4399 | /* end confdefs.h. */ | |
4400 | #include <sys/types.h> | |
4401 | #include <$ac_hdr> | |
4402 | ||
4403 | int | |
4404 | main () | |
4405 | { | |
4406 | if ((DIR *) 0) | |
4407 | return 0; | |
4408 | ; | |
4409 | return 0; | |
4410 | } | |
4411 | _ACEOF | |
4412 | if ac_fn_c_try_compile "$LINENO"; then : | |
4413 | eval "$as_ac_Header=yes" | |
4414 | else | |
4415 | eval "$as_ac_Header=no" | |
4416 | fi | |
4417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4418 | fi | |
4419 | eval ac_res=\$$as_ac_Header | |
4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4421 | $as_echo "$ac_res" >&6; } | |
4422 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4423 | cat >>confdefs.h <<_ACEOF | |
4424 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
4425 | _ACEOF | |
4426 | ||
4427 | ac_header_dirent=$ac_hdr; break | |
4428 | fi | |
4429 | ||
4430 | done | |
4431 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4432 | if test $ac_header_dirent = dirent.h; then | |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4434 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4435 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4436 | $as_echo_n "(cached) " >&6 | |
4437 | else | |
4438 | ac_func_search_save_LIBS=$LIBS | |
4439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4440 | /* end confdefs.h. */ | |
4441 | ||
4442 | /* Override any GCC internal prototype to avoid an error. | |
4443 | Use char because int might match the return type of a GCC | |
4444 | builtin and then its argument prototype would still apply. */ | |
4445 | #ifdef __cplusplus | |
4446 | extern "C" | |
4447 | #endif | |
4448 | char opendir (); | |
4449 | int | |
4450 | main () | |
4451 | { | |
4452 | return opendir (); | |
4453 | ; | |
4454 | return 0; | |
4455 | } | |
4456 | _ACEOF | |
4457 | for ac_lib in '' dir; do | |
4458 | if test -z "$ac_lib"; then | |
4459 | ac_res="none required" | |
4460 | else | |
4461 | ac_res=-l$ac_lib | |
4462 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4463 | fi | |
4464 | if ac_fn_c_try_link "$LINENO"; then : | |
4465 | ac_cv_search_opendir=$ac_res | |
4466 | fi | |
4467 | rm -f core conftest.err conftest.$ac_objext \ | |
4468 | conftest$ac_exeext | |
4469 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4470 | break | |
4471 | fi | |
4472 | done | |
4473 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4474 | ||
4475 | else | |
4476 | ac_cv_search_opendir=no | |
4477 | fi | |
4478 | rm conftest.$ac_ext | |
4479 | LIBS=$ac_func_search_save_LIBS | |
4480 | fi | |
4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4482 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4483 | ac_res=$ac_cv_search_opendir | |
4484 | if test "$ac_res" != no; then : | |
4485 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4486 | |
4487 | fi | |
f11781c5 AK |
4488 | |
4489 | else | |
4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4491 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4492 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 AK |
4493 | $as_echo_n "(cached) " >&6 |
4494 | else | |
f11781c5 AK |
4495 | ac_func_search_save_LIBS=$LIBS |
4496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4497 | /* end confdefs.h. */ | |
e2997b73 | 4498 | |
f11781c5 AK |
4499 | /* Override any GCC internal prototype to avoid an error. |
4500 | Use char because int might match the return type of a GCC | |
4501 | builtin and then its argument prototype would still apply. */ | |
4502 | #ifdef __cplusplus | |
4503 | extern "C" | |
4504 | #endif | |
4505 | char opendir (); | |
4506 | int | |
4507 | main () | |
4508 | { | |
4509 | return opendir (); | |
4510 | ; | |
4511 | return 0; | |
4512 | } | |
4513 | _ACEOF | |
4514 | for ac_lib in '' x; do | |
4515 | if test -z "$ac_lib"; then | |
4516 | ac_res="none required" | |
4517 | else | |
4518 | ac_res=-l$ac_lib | |
4519 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4520 | fi | |
4521 | if ac_fn_c_try_link "$LINENO"; then : | |
4522 | ac_cv_search_opendir=$ac_res | |
e2997b73 | 4523 | fi |
f11781c5 AK |
4524 | rm -f core conftest.err conftest.$ac_objext \ |
4525 | conftest$ac_exeext | |
4526 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4527 | break | |
e2997b73 | 4528 | fi |
f11781c5 AK |
4529 | done |
4530 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 | 4531 | |
e2997b73 | 4532 | else |
f11781c5 AK |
4533 | ac_cv_search_opendir=no |
4534 | fi | |
4535 | rm conftest.$ac_ext | |
4536 | LIBS=$ac_func_search_save_LIBS | |
e2997b73 | 4537 | fi |
f11781c5 AK |
4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4539 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4540 | ac_res=$ac_cv_search_opendir | |
4541 | if test "$ac_res" != no; then : | |
4542 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4543 | |
4544 | fi | |
8c4e8a18 | 4545 | |
e2997b73 AK |
4546 | fi |
4547 | ||
f11781c5 AK |
4548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4549 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4550 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4551 | $as_echo_n "(cached) " >&6 | |
4552 | else | |
4553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4554 | /* end confdefs.h. */ | |
4555 | #include <stdlib.h> | |
4556 | #include <stdarg.h> | |
4557 | #include <string.h> | |
4558 | #include <float.h> | |
e2997b73 | 4559 | |
f11781c5 AK |
4560 | int |
4561 | main () | |
4562 | { | |
4563 | ||
4564 | ; | |
4565 | return 0; | |
4566 | } | |
4567 | _ACEOF | |
4568 | if ac_fn_c_try_compile "$LINENO"; then : | |
4569 | ac_cv_header_stdc=yes | |
e2997b73 | 4570 | else |
f11781c5 | 4571 | ac_cv_header_stdc=no |
e2997b73 | 4572 | fi |
f11781c5 AK |
4573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4574 | ||
4575 | if test $ac_cv_header_stdc = yes; then | |
4576 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4578 | /* end confdefs.h. */ | |
4579 | #include <string.h> | |
4580 | ||
4581 | _ACEOF | |
4582 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4583 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4584 | ||
e2997b73 | 4585 | else |
f11781c5 | 4586 | ac_cv_header_stdc=no |
e2997b73 | 4587 | fi |
f11781c5 | 4588 | rm -f conftest* |
e2997b73 | 4589 | |
f11781c5 | 4590 | fi |
e2997b73 | 4591 | |
f11781c5 AK |
4592 | if test $ac_cv_header_stdc = yes; then |
4593 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4595 | /* end confdefs.h. */ | |
4596 | #include <stdlib.h> | |
e2997b73 | 4597 | |
f11781c5 AK |
4598 | _ACEOF |
4599 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4600 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4601 | |
e2997b73 | 4602 | else |
f11781c5 | 4603 | ac_cv_header_stdc=no |
e2997b73 | 4604 | fi |
f11781c5 | 4605 | rm -f conftest* |
e2997b73 | 4606 | |
e2997b73 | 4607 | fi |
90c80887 | 4608 | |
f11781c5 AK |
4609 | if test $ac_cv_header_stdc = yes; then |
4610 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4611 | if test "$cross_compiling" = yes; then : | |
4612 | : | |
4613 | else | |
4614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4615 | /* end confdefs.h. */ | |
4616 | #include <ctype.h> | |
4617 | #include <stdlib.h> | |
4618 | #if ((' ' & 0x0FF) == 0x020) | |
4619 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4620 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4621 | #else | |
4622 | # define ISLOWER(c) \ | |
4623 | (('a' <= (c) && (c) <= 'i') \ | |
4624 | || ('j' <= (c) && (c) <= 'r') \ | |
4625 | || ('s' <= (c) && (c) <= 'z')) | |
4626 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4627 | #endif | |
4628 | ||
4629 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4630 | int | |
4631 | main () | |
4632 | { | |
4633 | int i; | |
4634 | for (i = 0; i < 256; i++) | |
4635 | if (XOR (islower (i), ISLOWER (i)) | |
4636 | || toupper (i) != TOUPPER (i)) | |
4637 | return 2; | |
4638 | return 0; | |
4639 | } | |
4640 | _ACEOF | |
4641 | if ac_fn_c_try_run "$LINENO"; then : | |
90c80887 | 4642 | |
90c80887 | 4643 | else |
f11781c5 | 4644 | ac_cv_header_stdc=no |
90c80887 | 4645 | fi |
f11781c5 AK |
4646 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4647 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
90c80887 | 4648 | fi |
90c80887 | 4649 | |
90c80887 | 4650 | fi |
90c80887 | 4651 | fi |
f11781c5 AK |
4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4653 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4654 | if test $ac_cv_header_stdc = yes; then | |
90c80887 | 4655 | |
f11781c5 | 4656 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
90c80887 | 4657 | |
90c80887 | 4658 | fi |
f11781c5 AK |
4659 | |
4660 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4661 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4662 | inttypes.h stdint.h unistd.h | |
4663 | do : | |
4664 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4665 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4666 | " | |
4667 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4668 | cat >>confdefs.h <<_ACEOF | |
4669 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4670 | _ACEOF | |
4671 | ||
90c80887 | 4672 | fi |
f11781c5 AK |
4673 | |
4674 | done | |
4675 | ||
4676 | ||
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | |
4678 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4679 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : | |
4680 | $as_echo_n "(cached) " >&6 | |
4681 | else | |
4682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4683 | /* end confdefs.h. */ | |
4684 | #include <sys/types.h> | |
4685 | int | |
4686 | main () | |
4687 | { | |
4688 | return makedev(0, 0); | |
4689 | ; | |
4690 | return 0; | |
4691 | } | |
4692 | _ACEOF | |
4693 | if ac_fn_c_try_link "$LINENO"; then : | |
4694 | ac_cv_header_sys_types_h_makedev=yes | |
4695 | else | |
4696 | ac_cv_header_sys_types_h_makedev=no | |
90c80887 | 4697 | fi |
f11781c5 AK |
4698 | rm -f core conftest.err conftest.$ac_objext \ |
4699 | conftest$ac_exeext conftest.$ac_ext | |
4700 | ||
90c80887 | 4701 | fi |
f11781c5 AK |
4702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4703 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
4704 | ||
4705 | if test $ac_cv_header_sys_types_h_makedev = no; then | |
4706 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | |
4707 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : | |
4708 | ||
4709 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | |
90c80887 | 4710 | |
a946372e | 4711 | fi |
e2997b73 | 4712 | |
e2997b73 | 4713 | |
a946372e | 4714 | |
f11781c5 AK |
4715 | if test $ac_cv_header_sys_mkdev_h = no; then |
4716 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
4717 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : | |
4718 | ||
4719 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | |
4720 | ||
e2997b73 | 4721 | fi |
a946372e | 4722 | |
a946372e | 4723 | |
f11781c5 AK |
4724 | fi |
4725 | fi | |
4726 | ||
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4728 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4729 | if test "${ac_cv_header_stdc+set}" = set; then : | |
a946372e AK |
4730 | $as_echo_n "(cached) " >&6 |
4731 | else | |
f11781c5 | 4732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4733 | /* end confdefs.h. */ |
f11781c5 AK |
4734 | #include <stdlib.h> |
4735 | #include <stdarg.h> | |
4736 | #include <string.h> | |
4737 | #include <float.h> | |
a946372e | 4738 | |
a946372e AK |
4739 | int |
4740 | main () | |
4741 | { | |
f11781c5 | 4742 | |
a946372e AK |
4743 | ; |
4744 | return 0; | |
4745 | } | |
4746 | _ACEOF | |
f11781c5 AK |
4747 | if ac_fn_c_try_compile "$LINENO"; then : |
4748 | ac_cv_header_stdc=yes | |
e2997b73 | 4749 | else |
f11781c5 AK |
4750 | ac_cv_header_stdc=no |
4751 | fi | |
4752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4753 | ||
4754 | if test $ac_cv_header_stdc = yes; then | |
4755 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4757 | /* end confdefs.h. */ | |
4758 | #include <string.h> | |
4759 | ||
4760 | _ACEOF | |
4761 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4762 | $EGREP "memchr" >/dev/null 2>&1; then : | |
e2997b73 | 4763 | |
f11781c5 AK |
4764 | else |
4765 | ac_cv_header_stdc=no | |
a946372e | 4766 | fi |
f11781c5 | 4767 | rm -f conftest* |
e2997b73 | 4768 | |
a946372e | 4769 | fi |
e2997b73 | 4770 | |
f11781c5 AK |
4771 | if test $ac_cv_header_stdc = yes; then |
4772 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4774 | /* end confdefs.h. */ | |
4775 | #include <stdlib.h> | |
4776 | ||
4777 | _ACEOF | |
4778 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4779 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4780 | |
e2997b73 | 4781 | else |
f11781c5 | 4782 | ac_cv_header_stdc=no |
e2997b73 | 4783 | fi |
f11781c5 | 4784 | rm -f conftest* |
e2997b73 | 4785 | |
f11781c5 | 4786 | fi |
a946372e | 4787 | |
f11781c5 AK |
4788 | if test $ac_cv_header_stdc = yes; then |
4789 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4790 | if test "$cross_compiling" = yes; then : | |
4791 | : | |
4792 | else | |
4793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4794 | /* end confdefs.h. */ | |
4795 | #include <ctype.h> | |
4796 | #include <stdlib.h> | |
4797 | #if ((' ' & 0x0FF) == 0x020) | |
4798 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4799 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4800 | #else | |
4801 | # define ISLOWER(c) \ | |
4802 | (('a' <= (c) && (c) <= 'i') \ | |
4803 | || ('j' <= (c) && (c) <= 'r') \ | |
4804 | || ('s' <= (c) && (c) <= 'z')) | |
4805 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4806 | #endif | |
e2997b73 | 4807 | |
f11781c5 AK |
4808 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4809 | int | |
4810 | main () | |
4811 | { | |
4812 | int i; | |
4813 | for (i = 0; i < 256; i++) | |
4814 | if (XOR (islower (i), ISLOWER (i)) | |
4815 | || toupper (i) != TOUPPER (i)) | |
4816 | return 2; | |
4817 | return 0; | |
4818 | } | |
4819 | _ACEOF | |
4820 | if ac_fn_c_try_run "$LINENO"; then : | |
e2997b73 | 4821 | |
e2997b73 | 4822 | else |
f11781c5 | 4823 | ac_cv_header_stdc=no |
e2997b73 | 4824 | fi |
f11781c5 AK |
4825 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4826 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
e2997b73 | 4827 | fi |
f11781c5 | 4828 | |
e2997b73 | 4829 | fi |
e2997b73 | 4830 | fi |
f11781c5 AK |
4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4832 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4833 | if test $ac_cv_header_stdc = yes; then | |
e2997b73 | 4834 | |
f11781c5 | 4835 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
e2997b73 | 4836 | |
f11781c5 | 4837 | fi |
e2997b73 | 4838 | |
f11781c5 AK |
4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4840 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
4841 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : | |
4842 | $as_echo_n "(cached) " >&6 | |
4843 | else | |
4844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4845 | /* end confdefs.h. */ | |
4846 | #include <sys/types.h> | |
4847 | #include <sys/wait.h> | |
4848 | #ifndef WEXITSTATUS | |
4849 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
4850 | #endif | |
4851 | #ifndef WIFEXITED | |
4852 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4853 | #endif | |
e2997b73 | 4854 | |
f11781c5 AK |
4855 | int |
4856 | main () | |
4857 | { | |
4858 | int s; | |
4859 | wait (&s); | |
4860 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4861 | ; | |
4862 | return 0; | |
4863 | } | |
4864 | _ACEOF | |
4865 | if ac_fn_c_try_compile "$LINENO"; then : | |
4866 | ac_cv_header_sys_wait_h=yes | |
e2997b73 | 4867 | else |
f11781c5 | 4868 | ac_cv_header_sys_wait_h=no |
e2997b73 | 4869 | fi |
f11781c5 AK |
4870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4871 | fi | |
4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | |
4873 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
4874 | if test $ac_cv_header_sys_wait_h = yes; then | |
e2997b73 | 4875 | |
f11781c5 | 4876 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
e2997b73 | 4877 | |
d0191583 | 4878 | fi |
f11781c5 AK |
4879 | |
4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
4881 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
4882 | if test "${ac_cv_header_time+set}" = set; then : | |
4883 | $as_echo_n "(cached) " >&6 | |
fc54be10 | 4884 | else |
f11781c5 | 4885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4886 | /* end confdefs.h. */ |
f11781c5 AK |
4887 | #include <sys/types.h> |
4888 | #include <sys/time.h> | |
4889 | #include <time.h> | |
4890 | ||
4891 | int | |
4892 | main () | |
4893 | { | |
4894 | if ((struct tm *) 0) | |
4895 | return 0; | |
4896 | ; | |
4897 | return 0; | |
4898 | } | |
a946372e | 4899 | _ACEOF |
f11781c5 AK |
4900 | if ac_fn_c_try_compile "$LINENO"; then : |
4901 | ac_cv_header_time=yes | |
a946372e | 4902 | else |
f11781c5 AK |
4903 | ac_cv_header_time=no |
4904 | fi | |
4905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4906 | fi | |
4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
4908 | $as_echo "$ac_cv_header_time" >&6; } | |
4909 | if test $ac_cv_header_time = yes; then | |
4910 | ||
4911 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
4912 | ||
4913 | fi | |
4914 | ||
4915 | ||
4916 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4917 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
4918 | sys/wait.h time.h | |
4919 | do : | |
4920 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4921 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4922 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4923 | cat >>confdefs.h <<_ACEOF | |
4924 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4925 | _ACEOF | |
d0191583 | 4926 | |
f11781c5 AK |
4927 | else |
4928 | as_fn_error $? "bailing out" "$LINENO" 5 | |
d0191583 JM |
4929 | fi |
4930 | ||
f11781c5 | 4931 | done |
fddafd51 | 4932 | |
f11781c5 AK |
4933 | |
4934 | case "$host_os" in | |
4935 | linux*) | |
4936 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4937 | do : | |
4938 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4939 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4940 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4941 | cat >>confdefs.h <<_ACEOF | |
4942 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a946372e | 4943 | _ACEOF |
a946372e | 4944 | |
f11781c5 AK |
4945 | else |
4946 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a946372e AK |
4947 | fi |
4948 | ||
f11781c5 AK |
4949 | done |
4950 | ;; | |
4951 | darwin*) | |
4952 | for ac_header in machine/endian.h sys/disk.h | |
4953 | do : | |
4954 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4955 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4956 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4957 | cat >>confdefs.h <<_ACEOF | |
4958 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4959 | _ACEOF | |
a946372e | 4960 | |
f11781c5 AK |
4961 | else |
4962 | as_fn_error $? "bailing out" "$LINENO" 5 | |
4963 | fi | |
a946372e | 4964 | |
f11781c5 AK |
4965 | done |
4966 | ;; | |
a946372e | 4967 | esac |
f11781c5 AK |
4968 | |
4969 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
4970 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
4971 | sys/types.h unistd.h | |
4972 | do : | |
4973 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4974 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4975 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4976 | cat >>confdefs.h <<_ACEOF | |
4977 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4978 | _ACEOF | |
4979 | ||
a946372e | 4980 | else |
f11781c5 | 4981 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 4982 | fi |
a946372e | 4983 | |
f11781c5 AK |
4984 | done |
4985 | ||
4986 | for ac_header in termios.h sys/statvfs.h | |
4987 | do : | |
4988 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4989 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4990 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
4991 | cat >>confdefs.h <<_ACEOF |
4992 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4993 | _ACEOF | |
4994 | ||
a946372e AK |
4995 | fi |
4996 | ||
4997 | done | |
4998 | ||
a946372e | 4999 | |
f11781c5 AK |
5000 | ################################################################################ |
5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
5002 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
5003 | if test "${ac_cv_c_const+set}" = set; then : | |
a946372e | 5004 | $as_echo_n "(cached) " >&6 |
a946372e | 5005 | else |
f11781c5 | 5006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5007 | /* end confdefs.h. */ |
a946372e | 5008 | |
f11781c5 AK |
5009 | int |
5010 | main () | |
5011 | { | |
5012 | /* FIXME: Include the comments suggested by Paul. */ | |
5013 | #ifndef __cplusplus | |
5014 | /* Ultrix mips cc rejects this. */ | |
5015 | typedef int charset[2]; | |
5016 | const charset cs; | |
5017 | /* SunOS 4.1.1 cc rejects this. */ | |
5018 | char const *const *pcpcc; | |
5019 | char **ppc; | |
5020 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5021 | struct point {int x, y;}; | |
5022 | static struct point const zero = {0,0}; | |
5023 | /* AIX XL C 1.02.0.0 rejects this. | |
5024 | It does not let you subtract one const X* pointer from another in | |
5025 | an arm of an if-expression whose if-part is not a constant | |
5026 | expression */ | |
5027 | const char *g = "string"; | |
5028 | pcpcc = &g + (g ? g-g : 0); | |
5029 | /* HPUX 7.0 cc rejects these. */ | |
5030 | ++pcpcc; | |
5031 | ppc = (char**) pcpcc; | |
5032 | pcpcc = (char const *const *) ppc; | |
5033 | { /* SCO 3.2v4 cc rejects this. */ | |
5034 | char *t; | |
5035 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
a946372e | 5036 | |
f11781c5 AK |
5037 | *t++ = 0; |
5038 | if (s) return 0; | |
5039 | } | |
5040 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5041 | int x[] = {25, 17}; | |
5042 | const int *foo = &x[0]; | |
5043 | ++foo; | |
5044 | } | |
5045 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5046 | typedef const int *iptr; | |
5047 | iptr p = 0; | |
5048 | ++p; | |
5049 | } | |
5050 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5051 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5052 | struct s { int j; const int *ap[3]; }; | |
5053 | struct s *b; b->j = 5; | |
5054 | } | |
5055 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5056 | const int foo = 10; | |
5057 | if (!foo) return 0; | |
5058 | } | |
5059 | return !cs[0] && !zero.x; | |
5060 | #endif | |
a946372e | 5061 | |
f11781c5 AK |
5062 | ; |
5063 | return 0; | |
5064 | } | |
a946372e | 5065 | _ACEOF |
f11781c5 AK |
5066 | if ac_fn_c_try_compile "$LINENO"; then : |
5067 | ac_cv_c_const=yes | |
a946372e | 5068 | else |
f11781c5 AK |
5069 | ac_cv_c_const=no |
5070 | fi | |
5071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a946372e | 5072 | fi |
f11781c5 AK |
5073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5074 | $as_echo "$ac_cv_c_const" >&6; } | |
5075 | if test $ac_cv_c_const = no; then | |
a946372e | 5076 | |
f11781c5 | 5077 | $as_echo "#define const /**/" >>confdefs.h |
a946372e | 5078 | |
f11781c5 | 5079 | fi |
a946372e | 5080 | |
f11781c5 AK |
5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
5082 | $as_echo_n "checking for inline... " >&6; } | |
5083 | if test "${ac_cv_c_inline+set}" = set; then : | |
a946372e AK |
5084 | $as_echo_n "(cached) " >&6 |
5085 | else | |
f11781c5 AK |
5086 | ac_cv_c_inline=no |
5087 | for ac_kw in inline __inline__ __inline; do | |
5088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5089 | /* end confdefs.h. */ | |
5090 | #ifndef __cplusplus | |
5091 | typedef int foo_t; | |
5092 | static $ac_kw foo_t static_foo () {return 0; } | |
5093 | $ac_kw foo_t foo () {return 0; } | |
5094 | #endif | |
5095 | ||
5096 | _ACEOF | |
5097 | if ac_fn_c_try_compile "$LINENO"; then : | |
5098 | ac_cv_c_inline=$ac_kw | |
a946372e | 5099 | fi |
f11781c5 AK |
5100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5101 | test "$ac_cv_c_inline" != no && break | |
5102 | done | |
a946372e AK |
5103 | |
5104 | fi | |
f11781c5 AK |
5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
5106 | $as_echo "$ac_cv_c_inline" >&6; } | |
5107 | ||
5108 | case $ac_cv_c_inline in | |
5109 | inline | yes) ;; | |
5110 | *) | |
5111 | case $ac_cv_c_inline in | |
5112 | no) ac_val=;; | |
5113 | *) ac_val=$ac_cv_c_inline;; | |
5114 | esac | |
5115 | cat >>confdefs.h <<_ACEOF | |
5116 | #ifndef __cplusplus | |
5117 | #define inline $ac_val | |
5118 | #endif | |
5119 | _ACEOF | |
5120 | ;; | |
5121 | esac | |
5122 | ||
5123 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5124 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5125 | ||
5126 | cat >>confdefs.h <<_ACEOF | |
5127 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
a946372e AK |
5128 | _ACEOF |
5129 | ||
f11781c5 | 5130 | |
a946372e AK |
5131 | fi |
5132 | ||
f11781c5 AK |
5133 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
5134 | if test "x$ac_cv_type_off_t" = x""yes; then : | |
a946372e | 5135 | |
a946372e | 5136 | else |
f11781c5 AK |
5137 | |
5138 | cat >>confdefs.h <<_ACEOF | |
5139 | #define off_t long int | |
5140 | _ACEOF | |
5141 | ||
a946372e AK |
5142 | fi |
5143 | ||
f11781c5 AK |
5144 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
5145 | if test "x$ac_cv_type_pid_t" = x""yes; then : | |
a946372e | 5146 | |
a946372e | 5147 | else |
f11781c5 AK |
5148 | |
5149 | cat >>confdefs.h <<_ACEOF | |
5150 | #define pid_t int | |
5151 | _ACEOF | |
5152 | ||
5153 | fi | |
5154 | ||
5155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
5156 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5157 | if test "${ac_cv_type_signal+set}" = set; then : | |
5158 | $as_echo_n "(cached) " >&6 | |
a946372e | 5159 | else |
f11781c5 AK |
5160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5161 | /* end confdefs.h. */ | |
5162 | #include <sys/types.h> | |
5163 | #include <signal.h> | |
5164 | ||
5165 | int | |
5166 | main () | |
5167 | { | |
5168 | return *(signal (0, 0)) (0) == 1; | |
5169 | ; | |
5170 | return 0; | |
5171 | } | |
5172 | _ACEOF | |
5173 | if ac_fn_c_try_compile "$LINENO"; then : | |
5174 | ac_cv_type_signal=int | |
5175 | else | |
5176 | ac_cv_type_signal=void | |
a946372e | 5177 | fi |
f11781c5 | 5178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a946372e | 5179 | fi |
f11781c5 AK |
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
5181 | $as_echo "$ac_cv_type_signal" >&6; } | |
a946372e | 5182 | |
f11781c5 AK |
5183 | cat >>confdefs.h <<_ACEOF |
5184 | #define RETSIGTYPE $ac_cv_type_signal | |
5185 | _ACEOF | |
a946372e AK |
5186 | |
5187 | ||
f11781c5 AK |
5188 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
5189 | if test "x$ac_cv_type_size_t" = x""yes; then : | |
a946372e | 5190 | |
a946372e | 5191 | else |
a946372e | 5192 | |
f11781c5 AK |
5193 | cat >>confdefs.h <<_ACEOF |
5194 | #define size_t unsigned int | |
5195 | _ACEOF | |
a946372e | 5196 | |
a946372e | 5197 | fi |
f11781c5 AK |
5198 | |
5199 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
5200 | if test "x$ac_cv_type_mode_t" = x""yes; then : | |
5201 | ||
a946372e | 5202 | else |
f11781c5 AK |
5203 | |
5204 | cat >>confdefs.h <<_ACEOF | |
5205 | #define mode_t int | |
a946372e | 5206 | _ACEOF |
a946372e | 5207 | |
a946372e AK |
5208 | fi |
5209 | ||
f11781c5 AK |
5210 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
5211 | case $ac_cv_c_int8_t in #( | |
5212 | no|yes) ;; #( | |
5213 | *) | |
a946372e | 5214 | |
f11781c5 AK |
5215 | cat >>confdefs.h <<_ACEOF |
5216 | #define int8_t $ac_cv_c_int8_t | |
a946372e | 5217 | _ACEOF |
f11781c5 | 5218 | ;; |
a946372e | 5219 | esac |
a946372e | 5220 | |
f11781c5 AK |
5221 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
5222 | case $ac_cv_c_int16_t in #( | |
5223 | no|yes) ;; #( | |
5224 | *) | |
a946372e | 5225 | |
f11781c5 AK |
5226 | cat >>confdefs.h <<_ACEOF |
5227 | #define int16_t $ac_cv_c_int16_t | |
5228 | _ACEOF | |
5229 | ;; | |
5230 | esac | |
a946372e | 5231 | |
f11781c5 AK |
5232 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
5233 | case $ac_cv_c_int32_t in #( | |
5234 | no|yes) ;; #( | |
5235 | *) | |
a946372e | 5236 | |
f11781c5 AK |
5237 | cat >>confdefs.h <<_ACEOF |
5238 | #define int32_t $ac_cv_c_int32_t | |
5239 | _ACEOF | |
5240 | ;; | |
a946372e | 5241 | esac |
a946372e | 5242 | |
f11781c5 AK |
5243 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
5244 | case $ac_cv_c_int64_t in #( | |
5245 | no|yes) ;; #( | |
5246 | *) | |
5247 | ||
5248 | cat >>confdefs.h <<_ACEOF | |
5249 | #define int64_t $ac_cv_c_int64_t | |
a946372e | 5250 | _ACEOF |
f11781c5 AK |
5251 | ;; |
5252 | esac | |
5253 | ||
5254 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | |
5255 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | |
a946372e AK |
5256 | |
5257 | else | |
a946372e | 5258 | |
f11781c5 AK |
5259 | cat >>confdefs.h <<_ACEOF |
5260 | #define ssize_t int | |
5261 | _ACEOF | |
a946372e | 5262 | |
f11781c5 | 5263 | fi |
a946372e | 5264 | |
f11781c5 AK |
5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
5266 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5267 | if test "${ac_cv_type_uid_t+set}" = set; then : | |
a946372e | 5268 | $as_echo_n "(cached) " >&6 |
a946372e | 5269 | else |
f11781c5 | 5270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5271 | /* end confdefs.h. */ |
f11781c5 AK |
5272 | #include <sys/types.h> |
5273 | ||
a946372e | 5274 | _ACEOF |
f11781c5 AK |
5275 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5276 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5277 | ac_cv_type_uid_t=yes | |
a946372e | 5278 | else |
f11781c5 AK |
5279 | ac_cv_type_uid_t=no |
5280 | fi | |
5281 | rm -f conftest* | |
a946372e | 5282 | |
a946372e | 5283 | fi |
f11781c5 AK |
5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
5285 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5286 | if test $ac_cv_type_uid_t = no; then | |
a946372e | 5287 | |
f11781c5 | 5288 | $as_echo "#define uid_t int" >>confdefs.h |
a946372e | 5289 | |
f11781c5 AK |
5290 | |
5291 | $as_echo "#define gid_t int" >>confdefs.h | |
5292 | ||
5293 | fi | |
5294 | ||
5295 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | |
5296 | case $ac_cv_c_uint8_t in #( | |
5297 | no|yes) ;; #( | |
5298 | *) | |
5299 | ||
5300 | $as_echo "#define _UINT8_T 1" >>confdefs.h | |
5301 | ||
5302 | ||
5303 | cat >>confdefs.h <<_ACEOF | |
5304 | #define uint8_t $ac_cv_c_uint8_t | |
a946372e | 5305 | _ACEOF |
f11781c5 AK |
5306 | ;; |
5307 | esac | |
5308 | ||
5309 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | |
5310 | case $ac_cv_c_uint16_t in #( | |
5311 | no|yes) ;; #( | |
5312 | *) | |
5313 | ||
5314 | ||
5315 | cat >>confdefs.h <<_ACEOF | |
5316 | #define uint16_t $ac_cv_c_uint16_t | |
a946372e | 5317 | _ACEOF |
f11781c5 AK |
5318 | ;; |
5319 | esac | |
a946372e | 5320 | |
f11781c5 AK |
5321 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
5322 | case $ac_cv_c_uint32_t in #( | |
5323 | no|yes) ;; #( | |
5324 | *) | |
a946372e | 5325 | |
f11781c5 | 5326 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
a946372e | 5327 | |
a946372e | 5328 | |
f11781c5 AK |
5329 | cat >>confdefs.h <<_ACEOF |
5330 | #define uint32_t $ac_cv_c_uint32_t | |
5331 | _ACEOF | |
5332 | ;; | |
5333 | esac | |
5334 | ||
5335 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | |
5336 | case $ac_cv_c_uint64_t in #( | |
5337 | no|yes) ;; #( | |
5338 | *) | |
5339 | ||
5340 | $as_echo "#define _UINT64_T 1" >>confdefs.h | |
5341 | ||
5342 | ||
5343 | cat >>confdefs.h <<_ACEOF | |
5344 | #define uint64_t $ac_cv_c_uint64_t | |
5345 | _ACEOF | |
5346 | ;; | |
5347 | esac | |
5348 | ||
5349 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5350 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5351 | ||
5352 | cat >>confdefs.h <<_ACEOF | |
5353 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5354 | _ACEOF | |
5355 | ||
5356 | ||
5357 | fi | |
5358 | ||
5359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
5360 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
5361 | if test "${ac_cv_struct_tm+set}" = set; then : | |
a946372e AK |
5362 | $as_echo_n "(cached) " >&6 |
5363 | else | |
f11781c5 AK |
5364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5365 | /* end confdefs.h. */ | |
5366 | #include <sys/types.h> | |
5367 | #include <time.h> | |
5368 | ||
5369 | int | |
5370 | main () | |
5371 | { | |
5372 | struct tm tm; | |
5373 | int *p = &tm.tm_sec; | |
5374 | return !p; | |
5375 | ; | |
5376 | return 0; | |
5377 | } | |
5378 | _ACEOF | |
5379 | if ac_fn_c_try_compile "$LINENO"; then : | |
5380 | ac_cv_struct_tm=time.h | |
5381 | else | |
5382 | ac_cv_struct_tm=sys/time.h | |
a946372e | 5383 | fi |
f11781c5 AK |
5384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5385 | fi | |
5386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5387 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5388 | if test $ac_cv_struct_tm = sys/time.h; then | |
5389 | ||
5390 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
a946372e AK |
5391 | |
5392 | fi | |
f11781c5 AK |
5393 | |
5394 | ||
5395 | ################################################################################ | |
5396 | for ac_func in ftruncate gethostname getpagesize \ | |
5397 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
5398 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
5399 | strstr strtol strtoul uname | |
5400 | do : | |
5401 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5402 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5403 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5404 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 5405 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a946372e AK |
5406 | _ACEOF |
5407 | ||
5408 | else | |
f11781c5 | 5409 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5410 | fi |
a946372e AK |
5411 | done |
5412 | ||
f11781c5 AK |
5413 | for ac_func in siginterrupt |
5414 | do : | |
5415 | ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt" | |
5416 | if test "x$ac_cv_func_siginterrupt" = x""yes; then : | |
5417 | cat >>confdefs.h <<_ACEOF | |
5418 | #define HAVE_SIGINTERRUPT 1 | |
5419 | _ACEOF | |
a946372e | 5420 | |
f11781c5 AK |
5421 | fi |
5422 | done | |
a946372e | 5423 | |
f11781c5 AK |
5424 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5425 | # for constant arguments. Useless! | |
5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
5427 | $as_echo_n "checking for working alloca.h... " >&6; } | |
5428 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
5429 | $as_echo_n "(cached) " >&6 | |
a946372e | 5430 | else |
f11781c5 AK |
5431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5432 | /* end confdefs.h. */ | |
5433 | #include <alloca.h> | |
5434 | int | |
5435 | main () | |
5436 | { | |
5437 | char *p = (char *) alloca (2 * sizeof (int)); | |
5438 | if (p) return 0; | |
5439 | ; | |
5440 | return 0; | |
5441 | } | |
5442 | _ACEOF | |
5443 | if ac_fn_c_try_link "$LINENO"; then : | |
5444 | ac_cv_working_alloca_h=yes | |
a946372e | 5445 | else |
f11781c5 | 5446 | ac_cv_working_alloca_h=no |
a946372e | 5447 | fi |
f11781c5 AK |
5448 | rm -f core conftest.err conftest.$ac_objext \ |
5449 | conftest$ac_exeext conftest.$ac_ext | |
a946372e | 5450 | fi |
f11781c5 AK |
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
5452 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
5453 | if test $ac_cv_working_alloca_h = yes; then | |
a946372e | 5454 | |
f11781c5 | 5455 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
a946372e | 5456 | |
a946372e | 5457 | fi |
a946372e | 5458 | |
f11781c5 AK |
5459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
5460 | $as_echo_n "checking for alloca... " >&6; } | |
5461 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
a946372e | 5462 | $as_echo_n "(cached) " >&6 |
a946372e | 5463 | else |
f11781c5 | 5464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5465 | /* end confdefs.h. */ |
f11781c5 AK |
5466 | #ifdef __GNUC__ |
5467 | # define alloca __builtin_alloca | |
5468 | #else | |
5469 | # ifdef _MSC_VER | |
5470 | # include <malloc.h> | |
5471 | # define alloca _alloca | |
5472 | # else | |
5473 | # ifdef HAVE_ALLOCA_H | |
5474 | # include <alloca.h> | |
5475 | # else | |
5476 | # ifdef _AIX | |
5477 | #pragma alloca | |
5478 | # else | |
5479 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5480 | char *alloca (); | |
5481 | # endif | |
5482 | # endif | |
5483 | # endif | |
5484 | # endif | |
5485 | #endif | |
a946372e | 5486 | |
f11781c5 AK |
5487 | int |
5488 | main () | |
5489 | { | |
5490 | char *p = (char *) alloca (1); | |
5491 | if (p) return 0; | |
5492 | ; | |
5493 | return 0; | |
5494 | } | |
a946372e | 5495 | _ACEOF |
f11781c5 AK |
5496 | if ac_fn_c_try_link "$LINENO"; then : |
5497 | ac_cv_func_alloca_works=yes | |
a946372e | 5498 | else |
f11781c5 | 5499 | ac_cv_func_alloca_works=no |
a946372e | 5500 | fi |
f11781c5 AK |
5501 | rm -f core conftest.err conftest.$ac_objext \ |
5502 | conftest$ac_exeext conftest.$ac_ext | |
5503 | fi | |
5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
5505 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
a946372e | 5506 | |
f11781c5 | 5507 | if test $ac_cv_func_alloca_works = yes; then |
a946372e | 5508 | |
f11781c5 | 5509 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
a946372e | 5510 | |
a946372e | 5511 | else |
f11781c5 AK |
5512 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5513 | # that cause trouble. Some versions do not even contain alloca or | |
5514 | # contain a buggy version. If you still want to use their alloca, | |
5515 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
a946372e | 5516 | |
f11781c5 | 5517 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
a946372e | 5518 | |
f11781c5 | 5519 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
a946372e | 5520 | |
a946372e | 5521 | |
f11781c5 AK |
5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
5523 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
5524 | if test "${ac_cv_os_cray+set}" = set; then : | |
a946372e | 5525 | $as_echo_n "(cached) " >&6 |
a946372e | 5526 | else |
f11781c5 | 5527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5528 | /* end confdefs.h. */ |
f11781c5 AK |
5529 | #if defined CRAY && ! defined CRAY2 |
5530 | webecray | |
5531 | #else | |
5532 | wenotbecray | |
5533 | #endif | |
5534 | ||
a946372e | 5535 | _ACEOF |
f11781c5 AK |
5536 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5537 | $EGREP "webecray" >/dev/null 2>&1; then : | |
5538 | ac_cv_os_cray=yes | |
a946372e | 5539 | else |
f11781c5 | 5540 | ac_cv_os_cray=no |
a946372e | 5541 | fi |
f11781c5 | 5542 | rm -f conftest* |
a946372e | 5543 | |
f11781c5 AK |
5544 | fi |
5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
5546 | $as_echo "$ac_cv_os_cray" >&6; } | |
5547 | if test $ac_cv_os_cray = yes; then | |
5548 | for ac_func in _getb67 GETB67 getb67; do | |
5549 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5550 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5551 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5552 | |
f11781c5 AK |
5553 | cat >>confdefs.h <<_ACEOF |
5554 | #define CRAY_STACKSEG_END $ac_func | |
a946372e | 5555 | _ACEOF |
a946372e | 5556 | |
f11781c5 | 5557 | break |
a946372e AK |
5558 | fi |
5559 | ||
f11781c5 AK |
5560 | done |
5561 | fi | |
a946372e | 5562 | |
f11781c5 AK |
5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
5564 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
5565 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
a946372e AK |
5566 | $as_echo_n "(cached) " >&6 |
5567 | else | |
f11781c5 AK |
5568 | if test "$cross_compiling" = yes; then : |
5569 | ac_cv_c_stack_direction=0 | |
5570 | else | |
5571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5572 | /* end confdefs.h. */ | |
5573 | $ac_includes_default | |
5574 | int | |
5575 | find_stack_direction () | |
5576 | { | |
5577 | static char *addr = 0; | |
5578 | auto char dummy; | |
5579 | if (addr == 0) | |
5580 | { | |
5581 | addr = &dummy; | |
5582 | return find_stack_direction (); | |
5583 | } | |
5584 | else | |
5585 | return (&dummy > addr) ? 1 : -1; | |
5586 | } | |
5587 | ||
5588 | int | |
5589 | main () | |
5590 | { | |
5591 | return find_stack_direction () < 0; | |
5592 | } | |
5593 | _ACEOF | |
5594 | if ac_fn_c_try_run "$LINENO"; then : | |
5595 | ac_cv_c_stack_direction=1 | |
5596 | else | |
5597 | ac_cv_c_stack_direction=-1 | |
5598 | fi | |
5599 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5600 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5601 | fi |
a946372e AK |
5602 | |
5603 | fi | |
f11781c5 AK |
5604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
5605 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
5606 | cat >>confdefs.h <<_ACEOF | |
5607 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
a946372e AK |
5608 | _ACEOF |
5609 | ||
f11781c5 | 5610 | |
a946372e AK |
5611 | fi |
5612 | ||
f11781c5 AK |
5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
5614 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
5615 | if test "${ac_cv_func_closedir_void+set}" = set; then : | |
5616 | $as_echo_n "(cached) " >&6 | |
5617 | else | |
5618 | if test "$cross_compiling" = yes; then : | |
5619 | ac_cv_func_closedir_void=yes | |
5620 | else | |
5621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5622 | /* end confdefs.h. */ | |
5623 | $ac_includes_default | |
5624 | #include <$ac_header_dirent> | |
5625 | #ifndef __cplusplus | |
5626 | int closedir (); | |
5627 | #endif | |
a946372e | 5628 | |
f11781c5 AK |
5629 | int |
5630 | main () | |
5631 | { | |
5632 | return closedir (opendir (".")) != 0; | |
5633 | ; | |
5634 | return 0; | |
5635 | } | |
5636 | _ACEOF | |
5637 | if ac_fn_c_try_run "$LINENO"; then : | |
5638 | ac_cv_func_closedir_void=no | |
a946372e | 5639 | else |
f11781c5 | 5640 | ac_cv_func_closedir_void=yes |
a946372e | 5641 | fi |
f11781c5 AK |
5642 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5643 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5644 | fi |
5645 | ||
f11781c5 AK |
5646 | fi |
5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 | |
5648 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
5649 | if test $ac_cv_func_closedir_void = yes; then | |
a946372e | 5650 | |
f11781c5 | 5651 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
a946372e | 5652 | |
a946372e AK |
5653 | fi |
5654 | ||
f11781c5 AK |
5655 | for ac_header in unistd.h |
5656 | do : | |
5657 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
5658 | if test "x$ac_cv_header_unistd_h" = x""yes; then : | |
5659 | cat >>confdefs.h <<_ACEOF | |
5660 | #define HAVE_UNISTD_H 1 | |
5661 | _ACEOF | |
a946372e | 5662 | |
f11781c5 | 5663 | fi |
a946372e | 5664 | |
f11781c5 | 5665 | done |
a946372e | 5666 | |
f11781c5 AK |
5667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 |
5668 | $as_echo_n "checking for working chown... " >&6; } | |
5669 | if test "${ac_cv_func_chown_works+set}" = set; then : | |
5670 | $as_echo_n "(cached) " >&6 | |
a946372e | 5671 | else |
f11781c5 AK |
5672 | if test "$cross_compiling" = yes; then : |
5673 | ac_cv_func_chown_works=no | |
a946372e | 5674 | else |
f11781c5 AK |
5675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5676 | /* end confdefs.h. */ | |
5677 | $ac_includes_default | |
5678 | #include <fcntl.h> | |
a946372e | 5679 | |
f11781c5 AK |
5680 | int |
5681 | main () | |
5682 | { | |
5683 | char *f = "conftest.chown"; | |
5684 | struct stat before, after; | |
a946372e | 5685 | |
f11781c5 AK |
5686 | if (creat (f, 0600) < 0) |
5687 | return 1; | |
5688 | if (stat (f, &before) < 0) | |
5689 | return 1; | |
5690 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
5691 | return 1; | |
5692 | if (stat (f, &after) < 0) | |
5693 | return 1; | |
5694 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
a946372e | 5695 | |
f11781c5 AK |
5696 | ; |
5697 | return 0; | |
5698 | } | |
5699 | _ACEOF | |
5700 | if ac_fn_c_try_run "$LINENO"; then : | |
5701 | ac_cv_func_chown_works=yes | |
a946372e | 5702 | else |
f11781c5 | 5703 | ac_cv_func_chown_works=no |
a946372e | 5704 | fi |
f11781c5 AK |
5705 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5706 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5707 | fi |
5708 | ||
f11781c5 | 5709 | rm -f conftest.chown |
a946372e | 5710 | |
f11781c5 AK |
5711 | fi |
5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 | |
5713 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
5714 | if test $ac_cv_func_chown_works = yes; then | |
a946372e | 5715 | |
f11781c5 | 5716 | $as_echo "#define HAVE_CHOWN 1" >>confdefs.h |
a946372e | 5717 | |
a946372e | 5718 | fi |
a946372e | 5719 | |
f11781c5 AK |
5720 | for ac_header in vfork.h |
5721 | do : | |
5722 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
5723 | if test "x$ac_cv_header_vfork_h" = x""yes; then : | |
5724 | cat >>confdefs.h <<_ACEOF | |
5725 | #define HAVE_VFORK_H 1 | |
5726 | _ACEOF | |
a946372e | 5727 | |
f11781c5 | 5728 | fi |
a946372e | 5729 | |
f11781c5 | 5730 | done |
a946372e | 5731 | |
f11781c5 AK |
5732 | for ac_func in fork vfork |
5733 | do : | |
5734 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5735 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5736 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5737 | cat >>confdefs.h <<_ACEOF | |
5738 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5739 | _ACEOF | |
a946372e | 5740 | |
f11781c5 AK |
5741 | fi |
5742 | done | |
a946372e | 5743 | |
f11781c5 AK |
5744 | if test "x$ac_cv_func_fork" = xyes; then |
5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
5746 | $as_echo_n "checking for working fork... " >&6; } | |
5747 | if test "${ac_cv_func_fork_works+set}" = set; then : | |
5748 | $as_echo_n "(cached) " >&6 | |
5749 | else | |
5750 | if test "$cross_compiling" = yes; then : | |
5751 | ac_cv_func_fork_works=cross | |
5752 | else | |
5753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5754 | /* end confdefs.h. */ | |
5755 | $ac_includes_default | |
5756 | int | |
5757 | main () | |
5758 | { | |
a946372e | 5759 | |
f11781c5 AK |
5760 | /* By Ruediger Kuhlmann. */ |
5761 | return fork () < 0; | |
a946372e | 5762 | |
f11781c5 AK |
5763 | ; |
5764 | return 0; | |
5765 | } | |
5766 | _ACEOF | |
5767 | if ac_fn_c_try_run "$LINENO"; then : | |
5768 | ac_cv_func_fork_works=yes | |
a946372e | 5769 | else |
f11781c5 AK |
5770 | ac_cv_func_fork_works=no |
5771 | fi | |
5772 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5773 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5774 | fi |
a946372e | 5775 | |
f11781c5 AK |
5776 | fi |
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
5778 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
5779 | ||
a946372e | 5780 | else |
f11781c5 | 5781 | ac_cv_func_fork_works=$ac_cv_func_fork |
a946372e | 5782 | fi |
f11781c5 AK |
5783 | if test "x$ac_cv_func_fork_works" = xcross; then |
5784 | case $host in | |
5785 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5786 | # Override, as these systems have only a dummy fork() stub | |
5787 | ac_cv_func_fork_works=no | |
5788 | ;; | |
5789 | *) | |
5790 | ac_cv_func_fork_works=yes | |
5791 | ;; | |
5792 | esac | |
5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5794 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
a946372e | 5795 | fi |
f11781c5 AK |
5796 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
5797 | if test "x$ac_cv_func_vfork" = xyes; then | |
5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
5799 | $as_echo_n "checking for working vfork... " >&6; } | |
5800 | if test "${ac_cv_func_vfork_works+set}" = set; then : | |
5801 | $as_echo_n "(cached) " >&6 | |
5802 | else | |
5803 | if test "$cross_compiling" = yes; then : | |
5804 | ac_cv_func_vfork_works=cross | |
5805 | else | |
5806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5807 | /* end confdefs.h. */ | |
5808 | /* Thanks to Paul Eggert for this test. */ | |
5809 | $ac_includes_default | |
5810 | #include <sys/wait.h> | |
5811 | #ifdef HAVE_VFORK_H | |
5812 | # include <vfork.h> | |
5813 | #endif | |
5814 | /* On some sparc systems, changes by the child to local and incoming | |
5815 | argument registers are propagated back to the parent. The compiler | |
5816 | is told about this with #include <vfork.h>, but some compilers | |
5817 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5818 | static variable whose address is put into a register that is | |
5819 | clobbered by the vfork. */ | |
5820 | static void | |
5821 | #ifdef __cplusplus | |
5822 | sparc_address_test (int arg) | |
5823 | # else | |
5824 | sparc_address_test (arg) int arg; | |
5825 | #endif | |
5826 | { | |
5827 | static pid_t child; | |
5828 | if (!child) { | |
5829 | child = vfork (); | |
5830 | if (child < 0) { | |
5831 | perror ("vfork"); | |
5832 | _exit(2); | |
5833 | } | |
5834 | if (!child) { | |
5835 | arg = getpid(); | |
5836 | write(-1, "", 0); | |
5837 | _exit (arg); | |
5838 | } | |
5839 | } | |
5840 | } | |
a946372e | 5841 | |
f11781c5 AK |
5842 | int |
5843 | main () | |
5844 | { | |
5845 | pid_t parent = getpid (); | |
5846 | pid_t child; | |
a946372e | 5847 | |
f11781c5 | 5848 | sparc_address_test (0); |
a946372e | 5849 | |
f11781c5 | 5850 | child = vfork (); |
a946372e | 5851 | |
f11781c5 AK |
5852 | if (child == 0) { |
5853 | /* Here is another test for sparc vfork register problems. This | |
5854 | test uses lots of local variables, at least as many local | |
5855 | variables as main has allocated so far including compiler | |
5856 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5857 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5858 | reuse the register of parent for one of the local variables, | |
5859 | since it will think that parent can't possibly be used any more | |
5860 | in this routine. Assigning to the local variable will thus | |
5861 | munge parent in the parent process. */ | |
5862 | pid_t | |
5863 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5864 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5865 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5866 | use the same hardware register for all 8 local variables. */ | |
5867 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5868 | || p != p5 || p != p6 || p != p7) | |
5869 | _exit(1); | |
a946372e | 5870 | |
f11781c5 AK |
5871 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
5872 | from child file descriptors. If the child closes a descriptor | |
5873 | before it execs or exits, this munges the parent's descriptor | |
5874 | as well. Test for this by closing stdout in the child. */ | |
5875 | _exit(close(fileno(stdout)) != 0); | |
5876 | } else { | |
5877 | int status; | |
5878 | struct stat st; | |
5879 | ||
5880 | while (wait(&status) != child) | |
5881 | ; | |
5882 | return ( | |
5883 | /* Was there some problem with vforking? */ | |
5884 | child < 0 | |
5885 | ||
5886 | /* Did the child fail? (This shouldn't happen.) */ | |
5887 | || status | |
5888 | ||
5889 | /* Did the vfork/compiler bug occur? */ | |
5890 | || parent != getpid() | |
5891 | ||
5892 | /* Did the file descriptor bug occur? */ | |
5893 | || fstat(fileno(stdout), &st) != 0 | |
5894 | ); | |
5895 | } | |
5896 | } | |
5897 | _ACEOF | |
5898 | if ac_fn_c_try_run "$LINENO"; then : | |
5899 | ac_cv_func_vfork_works=yes | |
a946372e | 5900 | else |
f11781c5 | 5901 | ac_cv_func_vfork_works=no |
a946372e | 5902 | fi |
f11781c5 AK |
5903 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5904 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5905 | fi |
f11781c5 | 5906 | |
a946372e | 5907 | fi |
f11781c5 AK |
5908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
5909 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
a946372e | 5910 | |
f11781c5 AK |
5911 | fi; |
5912 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5913 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
5915 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5916 | fi | |
a946372e | 5917 | |
f11781c5 | 5918 | if test "x$ac_cv_func_vfork_works" = xyes; then |
a946372e | 5919 | |
f11781c5 | 5920 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
a946372e | 5921 | |
a946372e | 5922 | else |
a946372e | 5923 | |
f11781c5 AK |
5924 | $as_echo "#define vfork fork" >>confdefs.h |
5925 | ||
a946372e | 5926 | fi |
f11781c5 | 5927 | if test "x$ac_cv_func_fork_works" = xyes; then |
a946372e | 5928 | |
f11781c5 | 5929 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
a946372e | 5930 | |
a946372e | 5931 | fi |
f11781c5 AK |
5932 | |
5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 | |
5934 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } | |
5935 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : | |
5936 | $as_echo_n "(cached) " >&6 | |
a946372e | 5937 | else |
f11781c5 AK |
5938 | rm -f conftest.sym conftest.file |
5939 | echo >conftest.file | |
5940 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5941 | if test "$cross_compiling" = yes; then : | |
5942 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 5943 | else |
f11781c5 | 5944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5945 | /* end confdefs.h. */ |
f11781c5 AK |
5946 | $ac_includes_default |
5947 | int | |
5948 | main () | |
5949 | { | |
5950 | struct stat sbuf; | |
5951 | /* Linux will dereference the symlink and fail, as required by POSIX. | |
5952 | That is better in the sense that it means we will not | |
5953 | have to compile and use the lstat wrapper. */ | |
5954 | return lstat ("conftest.sym/", &sbuf) == 0; | |
5955 | ; | |
5956 | return 0; | |
5957 | } | |
a946372e | 5958 | _ACEOF |
f11781c5 AK |
5959 | if ac_fn_c_try_run "$LINENO"; then : |
5960 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
a946372e | 5961 | else |
f11781c5 | 5962 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
a946372e | 5963 | fi |
f11781c5 AK |
5964 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5965 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5966 | fi |
a946372e | 5967 | |
a946372e | 5968 | else |
f11781c5 AK |
5969 | # If the `ln -s' command failed, then we probably don't even |
5970 | # have an lstat function. | |
5971 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 5972 | fi |
f11781c5 | 5973 | rm -f conftest.sym conftest.file |
a946372e | 5974 | |
f11781c5 AK |
5975 | fi |
5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
5977 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
a946372e | 5978 | |
f11781c5 | 5979 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
a946372e | 5980 | |
f11781c5 AK |
5981 | cat >>confdefs.h <<_ACEOF |
5982 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
5983 | _ACEOF | |
a946372e | 5984 | |
a946372e | 5985 | |
f11781c5 AK |
5986 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
5987 | case " $LIBOBJS " in | |
5988 | *" lstat.$ac_objext "* ) ;; | |
5989 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
5990 | ;; | |
5991 | esac | |
a946372e | 5992 | |
f11781c5 | 5993 | fi |
a946372e | 5994 | |
f11781c5 AK |
5995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 |
5996 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
5997 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then : | |
5998 | $as_echo_n "(cached) " >&6 | |
a946372e | 5999 | else |
f11781c5 AK |
6000 | if test "$cross_compiling" = yes; then : |
6001 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6002 | else |
f11781c5 AK |
6003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6004 | /* end confdefs.h. */ | |
6005 | $ac_includes_default | |
6006 | int | |
6007 | main () | |
6008 | { | |
6009 | struct stat sbuf; | |
6010 | return lstat ("", &sbuf) == 0; | |
6011 | ; | |
6012 | return 0; | |
6013 | } | |
6014 | _ACEOF | |
6015 | if ac_fn_c_try_run "$LINENO"; then : | |
6016 | ac_cv_func_lstat_empty_string_bug=no | |
6017 | else | |
6018 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6019 | fi |
f11781c5 AK |
6020 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6021 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6022 | fi |
6023 | ||
f11781c5 AK |
6024 | fi |
6025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6026 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
6027 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
6028 | case " $LIBOBJS " in | |
6029 | *" lstat.$ac_objext "* ) ;; | |
6030 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6031 | ;; | |
6032 | esac | |
a946372e AK |
6033 | |
6034 | ||
f11781c5 AK |
6035 | cat >>confdefs.h <<_ACEOF |
6036 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6037 | _ACEOF | |
a946372e | 6038 | |
a946372e | 6039 | fi |
a946372e | 6040 | |
f11781c5 AK |
6041 | for ac_header in stdlib.h |
6042 | do : | |
6043 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6044 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6045 | cat >>confdefs.h <<_ACEOF | |
6046 | #define HAVE_STDLIB_H 1 | |
6047 | _ACEOF | |
6048 | ||
a946372e AK |
6049 | fi |
6050 | ||
f11781c5 | 6051 | done |
a946372e | 6052 | |
f11781c5 AK |
6053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
6054 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
6055 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : | |
6056 | $as_echo_n "(cached) " >&6 | |
6057 | else | |
6058 | if test "$cross_compiling" = yes; then : | |
6059 | ac_cv_func_malloc_0_nonnull=no | |
6060 | else | |
6061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6062 | /* end confdefs.h. */ | |
6063 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
6064 | # include <stdlib.h> | |
6065 | #else | |
6066 | char *malloc (); | |
6067 | #endif | |
a946372e | 6068 | |
f11781c5 AK |
6069 | int |
6070 | main () | |
6071 | { | |
6072 | return ! malloc (0); | |
6073 | ; | |
6074 | return 0; | |
6075 | } | |
6076 | _ACEOF | |
6077 | if ac_fn_c_try_run "$LINENO"; then : | |
6078 | ac_cv_func_malloc_0_nonnull=yes | |
a946372e | 6079 | else |
f11781c5 | 6080 | ac_cv_func_malloc_0_nonnull=no |
a946372e | 6081 | fi |
f11781c5 AK |
6082 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6083 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6084 | fi |
f11781c5 | 6085 | |
a946372e | 6086 | fi |
f11781c5 AK |
6087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
6088 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
6089 | if test $ac_cv_func_malloc_0_nonnull = yes; then : | |
a946372e | 6090 | |
f11781c5 | 6091 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h |
a946372e | 6092 | |
f11781c5 AK |
6093 | else |
6094 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h | |
a946372e | 6095 | |
f11781c5 AK |
6096 | case " $LIBOBJS " in |
6097 | *" malloc.$ac_objext "* ) ;; | |
6098 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | |
6099 | ;; | |
6100 | esac | |
6101 | ||
6102 | ||
6103 | $as_echo "#define malloc rpl_malloc" >>confdefs.h | |
a946372e | 6104 | |
a946372e | 6105 | fi |
a946372e | 6106 | |
a946372e | 6107 | |
f11781c5 AK |
6108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
6109 | $as_echo_n "checking for working memcmp... " >&6; } | |
6110 | if test "${ac_cv_func_memcmp_working+set}" = set; then : | |
a946372e | 6111 | $as_echo_n "(cached) " >&6 |
a946372e | 6112 | else |
f11781c5 AK |
6113 | if test "$cross_compiling" = yes; then : |
6114 | ac_cv_func_memcmp_working=no | |
6115 | else | |
6116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6117 | /* end confdefs.h. */ |
6118 | $ac_includes_default | |
f11781c5 AK |
6119 | int |
6120 | main () | |
6121 | { | |
a946372e | 6122 | |
f11781c5 AK |
6123 | /* Some versions of memcmp are not 8-bit clean. */ |
6124 | char c0 = '\100', c1 = '\200', c2 = '\201'; | |
6125 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6126 | return 1; | |
a946372e | 6127 | |
f11781c5 AK |
6128 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
6129 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6130 | William Lewis provided this test program. */ | |
6131 | { | |
6132 | char foo[21]; | |
6133 | char bar[21]; | |
6134 | int i; | |
6135 | for (i = 0; i < 4; i++) | |
6136 | { | |
6137 | char *a = foo + i; | |
6138 | char *b = bar + i; | |
6139 | strcpy (a, "--------01111111"); | |
6140 | strcpy (b, "--------10000000"); | |
6141 | if (memcmp (a, b, 16) >= 0) | |
6142 | return 1; | |
6143 | } | |
6144 | return 0; | |
6145 | } | |
a946372e | 6146 | |
f11781c5 AK |
6147 | ; |
6148 | return 0; | |
6149 | } | |
a946372e | 6150 | _ACEOF |
f11781c5 AK |
6151 | if ac_fn_c_try_run "$LINENO"; then : |
6152 | ac_cv_func_memcmp_working=yes | |
a946372e | 6153 | else |
f11781c5 AK |
6154 | ac_cv_func_memcmp_working=no |
6155 | fi | |
6156 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6157 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6158 | fi | |
a946372e | 6159 | |
a946372e | 6160 | fi |
f11781c5 AK |
6161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
6162 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
6163 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
6164 | *" memcmp.$ac_objext "* ) ;; | |
6165 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
6166 | ;; | |
6167 | esac | |
a946372e | 6168 | |
a946372e | 6169 | |
a946372e | 6170 | |
a946372e | 6171 | |
f11781c5 AK |
6172 | |
6173 | for ac_header in $ac_header_list | |
6174 | do : | |
6175 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6176 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6177 | " | |
6178 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
6179 | cat >>confdefs.h <<_ACEOF |
6180 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6181 | _ACEOF | |
6182 | ||
a946372e AK |
6183 | fi |
6184 | ||
6185 | done | |
6186 | ||
a946372e | 6187 | |
f11781c5 AK |
6188 | |
6189 | ||
6190 | ||
6191 | ||
6192 | ||
6193 | ||
6194 | for ac_func in getpagesize | |
6195 | do : | |
6196 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
6197 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | |
6198 | cat >>confdefs.h <<_ACEOF | |
6199 | #define HAVE_GETPAGESIZE 1 | |
6200 | _ACEOF | |
6201 | ||
a946372e | 6202 | fi |
f11781c5 AK |
6203 | done |
6204 | ||
6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
6206 | $as_echo_n "checking for working mmap... " >&6; } | |
6207 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
6208 | $as_echo_n "(cached) " >&6 | |
a946372e | 6209 | else |
f11781c5 AK |
6210 | if test "$cross_compiling" = yes; then : |
6211 | ac_cv_func_mmap_fixed_mapped=no | |
6212 | else | |
6213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6214 | /* end confdefs.h. */ |
6215 | $ac_includes_default | |
f11781c5 AK |
6216 | /* malloc might have been renamed as rpl_malloc. */ |
6217 | #undef malloc | |
6218 | ||
6219 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6220 | Here is a matrix of mmap possibilities: | |
6221 | mmap private not fixed | |
6222 | mmap private fixed at somewhere currently unmapped | |
6223 | mmap private fixed at somewhere already mapped | |
6224 | mmap shared not fixed | |
6225 | mmap shared fixed at somewhere currently unmapped | |
6226 | mmap shared fixed at somewhere already mapped | |
6227 | For private mappings, we should verify that changes cannot be read() | |
6228 | back from the file, nor mmap's back from the file at a different | |
6229 | address. (There have been systems where private was not correctly | |
6230 | implemented like the infamous i386 svr4.0, and systems where the | |
6231 | VM page cache was not coherent with the file system buffer cache | |
6232 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6233 | For shared mappings, we should conversely verify that changes get | |
6234 | propagated back to all the places they're supposed to be. | |
6235 | ||
6236 | Grep wants private fixed already mapped. | |
6237 | The main things grep needs to know about mmap are: | |
6238 | * does it exist and is it safe to write into the mmap'd area | |
6239 | * how to use it (BSD variants) */ | |
6240 | ||
6241 | #include <fcntl.h> | |
6242 | #include <sys/mman.h> | |
6243 | ||
6244 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
6245 | char *malloc (); | |
6246 | #endif | |
6247 | ||
6248 | /* This mess was copied from the GNU getpagesize.h. */ | |
6249 | #ifndef HAVE_GETPAGESIZE | |
6250 | # ifdef _SC_PAGESIZE | |
6251 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6252 | # else /* no _SC_PAGESIZE */ | |
6253 | # ifdef HAVE_SYS_PARAM_H | |
6254 | # include <sys/param.h> | |
6255 | # ifdef EXEC_PAGESIZE | |
6256 | # define getpagesize() EXEC_PAGESIZE | |
6257 | # else /* no EXEC_PAGESIZE */ | |
6258 | # ifdef NBPG | |
6259 | # define getpagesize() NBPG * CLSIZE | |
6260 | # ifndef CLSIZE | |
6261 | # define CLSIZE 1 | |
6262 | # endif /* no CLSIZE */ | |
6263 | # else /* no NBPG */ | |
6264 | # ifdef NBPC | |
6265 | # define getpagesize() NBPC | |
6266 | # else /* no NBPC */ | |
6267 | # ifdef PAGESIZE | |
6268 | # define getpagesize() PAGESIZE | |
6269 | # endif /* PAGESIZE */ | |
6270 | # endif /* no NBPC */ | |
6271 | # endif /* no NBPG */ | |
6272 | # endif /* no EXEC_PAGESIZE */ | |
6273 | # else /* no HAVE_SYS_PARAM_H */ | |
6274 | # define getpagesize() 8192 /* punt totally */ | |
6275 | # endif /* no HAVE_SYS_PARAM_H */ | |
6276 | # endif /* no _SC_PAGESIZE */ | |
6277 | ||
6278 | #endif /* no HAVE_GETPAGESIZE */ | |
6279 | ||
6280 | int | |
6281 | main () | |
6282 | { | |
6283 | char *data, *data2, *data3; | |
6284 | const char *cdata2; | |
6285 | int i, pagesize; | |
6286 | int fd, fd2; | |
6287 | ||
6288 | pagesize = getpagesize (); | |
6289 | ||
6290 | /* First, make a file with some known garbage in it. */ | |
6291 | data = (char *) malloc (pagesize); | |
6292 | if (!data) | |
6293 | return 1; | |
6294 | for (i = 0; i < pagesize; ++i) | |
6295 | *(data + i) = rand (); | |
6296 | umask (0); | |
6297 | fd = creat ("conftest.mmap", 0600); | |
6298 | if (fd < 0) | |
6299 | return 2; | |
6300 | if (write (fd, data, pagesize) != pagesize) | |
6301 | return 3; | |
6302 | close (fd); | |
6303 | ||
6304 | /* Next, check that the tail of a page is zero-filled. File must have | |
6305 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
6306 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
6307 | if (fd2 < 0) | |
6308 | return 4; | |
6309 | cdata2 = ""; | |
6310 | if (write (fd2, cdata2, 1) != 1) | |
6311 | return 5; | |
6312 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
6313 | if (data2 == MAP_FAILED) | |
6314 | return 6; | |
6315 | for (i = 0; i < pagesize; ++i) | |
6316 | if (*(data2 + i)) | |
6317 | return 7; | |
6318 | close (fd2); | |
6319 | if (munmap (data2, pagesize)) | |
6320 | return 8; | |
6321 | ||
6322 | /* Next, try to mmap the file at a fixed address which already has | |
6323 | something else allocated at it. If we can, also make sure that | |
6324 | we see the same garbage. */ | |
6325 | fd = open ("conftest.mmap", O_RDWR); | |
6326 | if (fd < 0) | |
6327 | return 9; | |
6328 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6329 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6330 | return 10; | |
6331 | for (i = 0; i < pagesize; ++i) | |
6332 | if (*(data + i) != *(data2 + i)) | |
6333 | return 11; | |
6334 | ||
6335 | /* Finally, make sure that changes to the mapped area do not | |
6336 | percolate back to the file as seen by read(). (This is a bug on | |
6337 | some variants of i386 svr4.0.) */ | |
6338 | for (i = 0; i < pagesize; ++i) | |
6339 | *(data2 + i) = *(data2 + i) + 1; | |
6340 | data3 = (char *) malloc (pagesize); | |
6341 | if (!data3) | |
6342 | return 12; | |
6343 | if (read (fd, data3, pagesize) != pagesize) | |
6344 | return 13; | |
6345 | for (i = 0; i < pagesize; ++i) | |
6346 | if (*(data + i) != *(data3 + i)) | |
6347 | return 14; | |
6348 | close (fd); | |
6349 | return 0; | |
6350 | } | |
a946372e | 6351 | _ACEOF |
f11781c5 AK |
6352 | if ac_fn_c_try_run "$LINENO"; then : |
6353 | ac_cv_func_mmap_fixed_mapped=yes | |
a946372e | 6354 | else |
f11781c5 AK |
6355 | ac_cv_func_mmap_fixed_mapped=no |
6356 | fi | |
6357 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6358 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6359 | fi | |
a946372e | 6360 | |
a946372e | 6361 | fi |
f11781c5 AK |
6362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6363 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
6364 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
a946372e | 6365 | |
f11781c5 | 6366 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
a946372e | 6367 | |
f11781c5 AK |
6368 | fi |
6369 | rm -f conftest.mmap conftest.txt | |
6370 | ||
6371 | for ac_header in stdlib.h | |
6372 | do : | |
6373 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6374 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6375 | cat >>confdefs.h <<_ACEOF | |
6376 | #define HAVE_STDLIB_H 1 | |
a946372e | 6377 | _ACEOF |
f11781c5 AK |
6378 | |
6379 | fi | |
6380 | ||
6381 | done | |
6382 | ||
6383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 | |
6384 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
6385 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : | |
6386 | $as_echo_n "(cached) " >&6 | |
6387 | else | |
6388 | if test "$cross_compiling" = yes; then : | |
6389 | ac_cv_func_realloc_0_nonnull=no | |
6390 | else | |
6391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e | 6392 | /* end confdefs.h. */ |
f11781c5 AK |
6393 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
6394 | # include <stdlib.h> | |
6395 | #else | |
6396 | char *realloc (); | |
6397 | #endif | |
6398 | ||
6399 | int | |
6400 | main () | |
6401 | { | |
6402 | return ! realloc (0, 0); | |
6403 | ; | |
6404 | return 0; | |
6405 | } | |
a946372e | 6406 | _ACEOF |
f11781c5 AK |
6407 | if ac_fn_c_try_run "$LINENO"; then : |
6408 | ac_cv_func_realloc_0_nonnull=yes | |
a946372e | 6409 | else |
f11781c5 AK |
6410 | ac_cv_func_realloc_0_nonnull=no |
6411 | fi | |
6412 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6413 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6414 | fi |
6415 | ||
f11781c5 AK |
6416 | fi |
6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 | |
6418 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
6419 | if test $ac_cv_func_realloc_0_nonnull = yes; then : | |
a946372e | 6420 | |
f11781c5 | 6421 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h |
a946372e | 6422 | |
a946372e | 6423 | else |
f11781c5 AK |
6424 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h |
6425 | ||
6426 | case " $LIBOBJS " in | |
6427 | *" realloc.$ac_objext "* ) ;; | |
6428 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
6429 | ;; | |
6430 | esac | |
a946372e | 6431 | |
a946372e | 6432 | |
f11781c5 AK |
6433 | $as_echo "#define realloc rpl_realloc" >>confdefs.h |
6434 | ||
a946372e AK |
6435 | fi |
6436 | ||
a946372e | 6437 | |
f11781c5 AK |
6438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
6439 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
6440 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then : | |
6441 | $as_echo_n "(cached) " >&6 | |
a946372e | 6442 | else |
f11781c5 AK |
6443 | if test "$cross_compiling" = yes; then : |
6444 | ac_cv_func_stat_empty_string_bug=yes | |
6445 | else | |
6446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6447 | /* end confdefs.h. */ | |
6448 | $ac_includes_default | |
6449 | int | |
6450 | main () | |
6451 | { | |
6452 | struct stat sbuf; | |
6453 | return stat ("", &sbuf) == 0; | |
6454 | ; | |
6455 | return 0; | |
6456 | } | |
6457 | _ACEOF | |
6458 | if ac_fn_c_try_run "$LINENO"; then : | |
6459 | ac_cv_func_stat_empty_string_bug=no | |
6460 | else | |
6461 | ac_cv_func_stat_empty_string_bug=yes | |
a946372e | 6462 | fi |
f11781c5 AK |
6463 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6464 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6465 | fi |
6466 | ||
8c4e8a18 | 6467 | fi |
f11781c5 AK |
6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
6469 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
6470 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
6471 | case " $LIBOBJS " in | |
6472 | *" stat.$ac_objext "* ) ;; | |
6473 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" | |
6474 | ;; | |
6475 | esac | |
8c4e8a18 FDN |
6476 | |
6477 | ||
6478 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 6479 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
8c4e8a18 FDN |
6480 | _ACEOF |
6481 | ||
6482 | fi | |
6483 | ||
f11781c5 AK |
6484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
6485 | $as_echo_n "checking for working strtod... " >&6; } | |
6486 | if test "${ac_cv_func_strtod+set}" = set; then : | |
6487 | $as_echo_n "(cached) " >&6 | |
66fd4529 | 6488 | else |
f11781c5 AK |
6489 | if test "$cross_compiling" = yes; then : |
6490 | ac_cv_func_strtod=no | |
6491 | else | |
6492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6493 | /* end confdefs.h. */ | |
66fd4529 | 6494 | |
f11781c5 AK |
6495 | $ac_includes_default |
6496 | #ifndef strtod | |
6497 | double strtod (); | |
6498 | #endif | |
6499 | int | |
6500 | main() | |
6501 | { | |
6502 | { | |
6503 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6504 | char *string = " +69"; | |
6505 | char *term; | |
6506 | double value; | |
6507 | value = strtod (string, &term); | |
6508 | if (value != 69 || term != (string + 4)) | |
6509 | return 1; | |
6510 | } | |
66fd4529 | 6511 | |
f11781c5 AK |
6512 | { |
6513 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6514 | terminating character under some conditions. */ | |
6515 | char *string = "NaN"; | |
6516 | char *term; | |
6517 | strtod (string, &term); | |
6518 | if (term != string && *(term - 1) == 0) | |
6519 | return 1; | |
6520 | } | |
6521 | return 0; | |
6522 | } | |
66fd4529 | 6523 | |
f11781c5 AK |
6524 | _ACEOF |
6525 | if ac_fn_c_try_run "$LINENO"; then : | |
6526 | ac_cv_func_strtod=yes | |
66fd4529 | 6527 | else |
f11781c5 AK |
6528 | ac_cv_func_strtod=no |
6529 | fi | |
6530 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6531 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6532 | fi |
6533 | ||
f11781c5 AK |
6534 | fi |
6535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | |
6536 | $as_echo "$ac_cv_func_strtod" >&6; } | |
6537 | if test $ac_cv_func_strtod = no; then | |
6538 | case " $LIBOBJS " in | |
6539 | *" strtod.$ac_objext "* ) ;; | |
6540 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
6541 | ;; | |
6542 | esac | |
71082be4 | 6543 | |
f11781c5 AK |
6544 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
6545 | if test "x$ac_cv_func_pow" = x""yes; then : | |
71082be4 | 6546 | |
66fd4529 | 6547 | fi |
a946372e | 6548 | |
f11781c5 AK |
6549 | if test $ac_cv_func_pow = no; then |
6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
6551 | $as_echo_n "checking for pow in -lm... " >&6; } | |
6552 | if test "${ac_cv_lib_m_pow+set}" = set; then : | |
6553 | $as_echo_n "(cached) " >&6 | |
6554 | else | |
6555 | ac_check_lib_save_LIBS=$LIBS | |
6556 | LIBS="-lm $LIBS" | |
6557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6558 | /* end confdefs.h. */ | |
90c80887 | 6559 | |
f11781c5 AK |
6560 | /* Override any GCC internal prototype to avoid an error. |
6561 | Use char because int might match the return type of a GCC | |
6562 | builtin and then its argument prototype would still apply. */ | |
6563 | #ifdef __cplusplus | |
6564 | extern "C" | |
6565 | #endif | |
6566 | char pow (); | |
6567 | int | |
6568 | main () | |
6569 | { | |
6570 | return pow (); | |
6571 | ; | |
6572 | return 0; | |
6573 | } | |
6574 | _ACEOF | |
6575 | if ac_fn_c_try_link "$LINENO"; then : | |
6576 | ac_cv_lib_m_pow=yes | |
90c80887 | 6577 | else |
f11781c5 | 6578 | ac_cv_lib_m_pow=no |
90c80887 | 6579 | fi |
f11781c5 AK |
6580 | rm -f core conftest.err conftest.$ac_objext \ |
6581 | conftest$ac_exeext conftest.$ac_ext | |
6582 | LIBS=$ac_check_lib_save_LIBS | |
90c80887 | 6583 | fi |
f11781c5 AK |
6584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
6585 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
6586 | if test "x$ac_cv_lib_m_pow" = x""yes; then : | |
6587 | POW_LIB=-lm | |
90c80887 | 6588 | else |
f11781c5 AK |
6589 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
6590 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
90c80887 | 6591 | fi |
f11781c5 | 6592 | |
90c80887 AK |
6593 | fi |
6594 | ||
f11781c5 AK |
6595 | fi |
6596 | ||
6597 | for ac_func in vprintf | |
6598 | do : | |
6599 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
6600 | if test "x$ac_cv_func_vprintf" = x""yes; then : | |
6601 | cat >>confdefs.h <<_ACEOF | |
6602 | #define HAVE_VPRINTF 1 | |
6603 | _ACEOF | |
90c80887 | 6604 | |
f11781c5 AK |
6605 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
6606 | if test "x$ac_cv_func__doprnt" = x""yes; then : | |
90c80887 | 6607 | |
f11781c5 | 6608 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
90c80887 | 6609 | |
90c80887 | 6610 | fi |
90c80887 | 6611 | |
f11781c5 AK |
6612 | fi |
6613 | done | |
90c80887 | 6614 | |
90c80887 | 6615 | |
90c80887 | 6616 | |
f11781c5 AK |
6617 | ################################################################################ |
6618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5 | |
6619 | $as_echo_n "checking whether to use static linking... " >&6; } | |
6620 | # Check whether --enable-static_link was given. | |
6621 | if test "${enable_static_link+set}" = set; then : | |
6622 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
6623 | else | |
6624 | STATIC_LINK=no | |
6625 | fi | |
90c80887 | 6626 | |
f11781c5 AK |
6627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5 |
6628 | $as_echo "$STATIC_LINK" >&6; } | |
90c80887 | 6629 | |
f11781c5 | 6630 | ################################################################################ |
90c80887 | 6631 | |
90c80887 | 6632 | |
f11781c5 AK |
6633 | ################################################################################ |
6634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5 | |
6635 | $as_echo_n "checking file owner... " >&6; } | |
90c80887 | 6636 | |
f11781c5 AK |
6637 | # Check whether --with-user was given. |
6638 | if test "${with_user+set}" = set; then : | |
6639 | withval=$with_user; OWNER=$withval | |
6640 | fi | |
90c80887 | 6641 | |
f11781c5 AK |
6642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5 |
6643 | $as_echo "$OWNER" >&6; } | |
90c80887 | 6644 | |
f11781c5 AK |
6645 | if test x$OWNER != x; then |
6646 | INSTALL="$INSTALL -o $OWNER" | |
90c80887 | 6647 | fi |
a946372e | 6648 | |
f11781c5 AK |
6649 | ################################################################################ |
6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5 | |
6651 | $as_echo_n "checking group owner... " >&6; } | |
a946372e | 6652 | |
f11781c5 AK |
6653 | # Check whether --with-group was given. |
6654 | if test "${with_group+set}" = set; then : | |
6655 | withval=$with_group; GROUP=$withval | |
a946372e | 6656 | fi |
f11781c5 AK |
6657 | |
6658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5 | |
6659 | $as_echo "$GROUP" >&6; } | |
6660 | ||
6661 | if test x$GROUP != x; then | |
6662 | INSTALL="$INSTALL -g $GROUP" | |
a946372e | 6663 | fi |
f11781c5 AK |
6664 | |
6665 | ################################################################################ | |
6666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5 | |
6667 | $as_echo_n "checking device node uid... " >&6; } | |
6668 | ||
6669 | ||
6670 | # Check whether --with-device-uid was given. | |
6671 | if test "${with_device_uid+set}" = set; then : | |
6672 | withval=$with_device_uid; DM_DEVICE_UID=$withval | |
a946372e | 6673 | else |
f11781c5 | 6674 | DM_DEVICE_UID=0 |
a946372e AK |
6675 | fi |
6676 | ||
f11781c5 AK |
6677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5 |
6678 | $as_echo "$DM_DEVICE_UID" >&6; } | |
a946372e | 6679 | |
f11781c5 AK |
6680 | ################################################################################ |
6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5 | |
6682 | $as_echo_n "checking device node gid... " >&6; } | |
a946372e | 6683 | |
a946372e | 6684 | |
f11781c5 AK |
6685 | # Check whether --with-device-gid was given. |
6686 | if test "${with_device_gid+set}" = set; then : | |
6687 | withval=$with_device_gid; DM_DEVICE_GID=$withval | |
a946372e | 6688 | else |
f11781c5 | 6689 | DM_DEVICE_GID=0 |
a946372e | 6690 | fi |
a946372e | 6691 | |
f11781c5 AK |
6692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5 |
6693 | $as_echo "$DM_DEVICE_GID" >&6; } | |
90c80887 | 6694 | |
f11781c5 AK |
6695 | ################################################################################ |
6696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5 | |
6697 | $as_echo_n "checking device node mode... " >&6; } | |
90c80887 | 6698 | |
90c80887 | 6699 | |
f11781c5 AK |
6700 | # Check whether --with-device-mode was given. |
6701 | if test "${with_device_mode+set}" = set; then : | |
6702 | withval=$with_device_mode; DM_DEVICE_MODE=$withval | |
6703 | else | |
6704 | DM_DEVICE_MODE=0600 | |
6705 | fi | |
90c80887 | 6706 | |
f11781c5 AK |
6707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5 |
6708 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
90c80887 | 6709 | |
f11781c5 AK |
6710 | ################################################################################ |
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5 | |
6712 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
6713 | # Check whether --enable-lvm1_fallback was given. | |
6714 | if test "${enable_lvm1_fallback+set}" = set; then : | |
6715 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
6716 | else | |
6717 | LVM1_FALLBACK=no | |
6718 | fi | |
90c80887 | 6719 | |
f11781c5 AK |
6720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5 |
6721 | $as_echo "$LVM1_FALLBACK" >&6; } | |
90c80887 | 6722 | |
f11781c5 | 6723 | if test x$LVM1_FALLBACK = xyes; then |
90c80887 | 6724 | |
f11781c5 | 6725 | $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h |
90c80887 | 6726 | |
f11781c5 | 6727 | fi |
90c80887 | 6728 | |
f11781c5 AK |
6729 | ################################################################################ |
6730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5 | |
6731 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
6732 | ||
6733 | # Check whether --with-lvm1 was given. | |
6734 | if test "${with_lvm1+set}" = set; then : | |
6735 | withval=$with_lvm1; LVM1=$withval | |
a946372e | 6736 | else |
f11781c5 | 6737 | LVM1=internal |
a946372e | 6738 | fi |
f11781c5 AK |
6739 | |
6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5 | |
6741 | $as_echo "$LVM1" >&6; } | |
6742 | ||
6743 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
6744 | then as_fn_error $? "--with-lvm1 parameter invalid | |
6745 | " "$LINENO" 5 | |
6746 | fi; | |
6747 | ||
6748 | if test x$LVM1 = xinternal; then | |
6749 | ||
6750 | $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h | |
6751 | ||
a946372e AK |
6752 | fi |
6753 | ||
6754 | ################################################################################ | |
f11781c5 AK |
6755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5 |
6756 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
6757 | ||
6758 | # Check whether --with-pool was given. | |
6759 | if test "${with_pool+set}" = set; then : | |
6760 | withval=$with_pool; POOL=$withval | |
a946372e | 6761 | else |
f11781c5 | 6762 | POOL=internal |
a946372e AK |
6763 | fi |
6764 | ||
f11781c5 AK |
6765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5 |
6766 | $as_echo "$POOL" >&6; } | |
6767 | ||
6768 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
6769 | then as_fn_error $? "--with-pool parameter invalid | |
6770 | " "$LINENO" 5 | |
6771 | fi; | |
6772 | ||
6773 | if test x$POOL = xinternal; then | |
6774 | ||
6775 | $as_echo "#define POOL_INTERNAL 1" >>confdefs.h | |
a946372e | 6776 | |
a946372e AK |
6777 | fi |
6778 | ||
6779 | ################################################################################ | |
f11781c5 AK |
6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5 |
6781 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
a946372e | 6782 | |
f11781c5 AK |
6783 | # Check whether --with-cluster was given. |
6784 | if test "${with_cluster+set}" = set; then : | |
6785 | withval=$with_cluster; CLUSTER=$withval | |
a946372e AK |
6786 | fi |
6787 | ||
f11781c5 AK |
6788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5 |
6789 | $as_echo "$CLUSTER" >&6; } | |
a946372e | 6790 | |
f11781c5 AK |
6791 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
6792 | then as_fn_error $? "--with-cluster parameter invalid | |
6793 | " "$LINENO" 5 | |
6794 | fi; | |
fddafd51 | 6795 | |
f11781c5 | 6796 | if test x$CLUSTER = xinternal; then |
5556819a | 6797 | |
f11781c5 | 6798 | $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h |
fddafd51 | 6799 | |
fddafd51 | 6800 | fi |
f11781c5 AK |
6801 | |
6802 | ################################################################################ | |
6803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5 | |
6804 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
6805 | ||
6806 | # Check whether --with-snapshots was given. | |
6807 | if test "${with_snapshots+set}" = set; then : | |
6808 | withval=$with_snapshots; SNAPSHOTS=$withval | |
fddafd51 | 6809 | else |
f11781c5 | 6810 | SNAPSHOTS=internal |
fddafd51 ZK |
6811 | fi |
6812 | ||
f11781c5 AK |
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5 |
6814 | $as_echo "$SNAPSHOTS" >&6; } | |
fddafd51 | 6815 | |
f11781c5 AK |
6816 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
6817 | then as_fn_error $? "--with-snapshots parameter invalid | |
6818 | " "$LINENO" 5 | |
6819 | fi; | |
fddafd51 | 6820 | |
f11781c5 AK |
6821 | if test x$SNAPSHOTS = xinternal; then |
6822 | ||
6823 | $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h | |
6824 | ||
6825 | fi | |
6826 | ||
6827 | ################################################################################ | |
6828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5 | |
6829 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
6830 | ||
6831 | # Check whether --with-mirrors was given. | |
6832 | if test "${with_mirrors+set}" = set; then : | |
6833 | withval=$with_mirrors; MIRRORS=$withval | |
fddafd51 | 6834 | else |
f11781c5 | 6835 | MIRRORS=internal |
fddafd51 ZK |
6836 | fi |
6837 | ||
f11781c5 AK |
6838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5 |
6839 | $as_echo "$MIRRORS" >&6; } | |
fddafd51 | 6840 | |
f11781c5 AK |
6841 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
6842 | then as_fn_error $? "--with-mirrors parameter invalid | |
6843 | " "$LINENO" 5 | |
6844 | fi; | |
6845 | ||
6846 | if test x$MIRRORS = xinternal; then | |
6847 | ||
6848 | $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h | |
6849 | ||
6850 | fi | |
6851 | ||
6852 | ################################################################################ | |
6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5 | |
6854 | $as_echo_n "checking whether to include replicators... " >&6; } | |
6855 | ||
6856 | # Check whether --with-replicators was given. | |
6857 | if test "${with_replicators+set}" = set; then : | |
6858 | withval=$with_replicators; REPLICATORS=$withval | |
fd4728e1 | 6859 | else |
f11781c5 AK |
6860 | REPLICATORS=none |
6861 | fi | |
fd4728e1 | 6862 | |
f11781c5 AK |
6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5 |
6864 | $as_echo "$REPLICATORS" >&6; } | |
6865 | ||
6866 | case "$REPLICATORS" in | |
6867 | none|shared) ;; | |
6868 | internal) | |
6869 | $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h | |
6870 | ;; | |
6871 | *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;; | |
fd4728e1 | 6872 | esac |
f11781c5 AK |
6873 | |
6874 | ################################################################################ | |
6875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5 | |
6876 | $as_echo_n "checking whether to enable readline... " >&6; } | |
6877 | # Check whether --enable-readline was given. | |
6878 | if test "${enable_readline+set}" = set; then : | |
6879 | enableval=$enable_readline; READLINE=$enableval | |
fd4728e1 | 6880 | else |
f11781c5 | 6881 | READLINE=maybe |
fd4728e1 ZK |
6882 | fi |
6883 | ||
f11781c5 AK |
6884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5 |
6885 | $as_echo "$READLINE" >&6; } | |
fd4728e1 | 6886 | |
f11781c5 AK |
6887 | ################################################################################ |
6888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5 | |
6889 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
6890 | # Check whether --enable-realtime was given. | |
6891 | if test "${enable_realtime+set}" = set; then : | |
6892 | enableval=$enable_realtime; REALTIME=$enableval | |
5556819a | 6893 | fi |
d0191583 | 6894 | |
f11781c5 AK |
6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5 |
6896 | $as_echo "$REALTIME" >&6; } | |
6897 | ||
54b362f9 | 6898 | ################################################################################ |
f11781c5 AK |
6899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5 |
6900 | $as_echo_n "checking whether to enable OCF resource agents... " >&6; } | |
6901 | # Check whether --enable-ocf was given. | |
6902 | if test "${enable_ocf+set}" = set; then : | |
6903 | enableval=$enable_ocf; OCF=$enableval | |
54b362f9 | 6904 | else |
f11781c5 | 6905 | OCF=no |
54b362f9 AK |
6906 | fi |
6907 | ||
f11781c5 AK |
6908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5 |
6909 | $as_echo "$OCF" >&6; } | |
54b362f9 | 6910 | |
f11781c5 AK |
6911 | ################################################################################ |
6912 | pkg_config_init() { | |
6913 | ||
6914 | ||
6915 | ||
6916 | ||
6917 | ||
6918 | ||
6919 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
6920 | if test -n "$ac_tool_prefix"; then | |
6921 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
6922 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 6924 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 6925 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
6926 | $as_echo_n "(cached) " >&6 |
6927 | else | |
f11781c5 | 6928 | case $PKG_CONFIG in |
54b362f9 | 6929 | [\\/]* | ?:[\\/]*) |
f11781c5 | 6930 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
6931 | ;; |
6932 | *) | |
6933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6934 | for as_dir in $PATH | |
6935 | do | |
6936 | IFS=$as_save_IFS | |
6937 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 6938 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 6939 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
6940 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
6941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
6942 | break 2 |
6943 | fi | |
6944 | done | |
f11781c5 | 6945 | done |
54b362f9 AK |
6946 | IFS=$as_save_IFS |
6947 | ||
6948 | ;; | |
6949 | esac | |
6950 | fi | |
f11781c5 AK |
6951 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
6952 | if test -n "$PKG_CONFIG"; then | |
6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
6954 | $as_echo "$PKG_CONFIG" >&6; } | |
54b362f9 | 6955 | else |
f11781c5 | 6956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
6957 | $as_echo "no" >&6; } |
6958 | fi | |
6959 | ||
6960 | ||
f11781c5 AK |
6961 | fi |
6962 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
6963 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
6964 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
6965 | set dummy pkg-config; ac_word=$2 | |
6966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 6967 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 6968 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
6969 | $as_echo_n "(cached) " >&6 |
6970 | else | |
f11781c5 | 6971 | case $ac_pt_PKG_CONFIG in |
54b362f9 | 6972 | [\\/]* | ?:[\\/]*) |
f11781c5 | 6973 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
6974 | ;; |
6975 | *) | |
6976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6977 | for as_dir in $PATH | |
6978 | do | |
6979 | IFS=$as_save_IFS | |
6980 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 6981 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 6982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
6983 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
6984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
6985 | break 2 |
6986 | fi | |
6987 | done | |
f11781c5 | 6988 | done |
54b362f9 AK |
6989 | IFS=$as_save_IFS |
6990 | ||
6991 | ;; | |
6992 | esac | |
6993 | fi | |
f11781c5 AK |
6994 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
6995 | if test -n "$ac_pt_PKG_CONFIG"; then | |
6996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
6997 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
54b362f9 | 6998 | else |
f11781c5 | 6999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7000 | $as_echo "no" >&6; } |
7001 | fi | |
7002 | ||
f11781c5 AK |
7003 | if test "x$ac_pt_PKG_CONFIG" = x; then |
7004 | PKG_CONFIG="" | |
7005 | else | |
7006 | case $cross_compiling:$ac_tool_warned in | |
7007 | yes:) | |
7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7009 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7010 | ac_tool_warned=yes ;; | |
7011 | esac | |
7012 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7013 | fi | |
d1e8046f | 7014 | else |
f11781c5 | 7015 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
d1e8046f AK |
7016 | fi |
7017 | ||
f11781c5 AK |
7018 | fi |
7019 | if test -n "$PKG_CONFIG"; then | |
7020 | _pkg_min_version=0.9.0 | |
7021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
7022 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
7023 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
7024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7025 | $as_echo "yes" >&6; } | |
7026 | else | |
7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7028 | $as_echo "no" >&6; } | |
7029 | PKG_CONFIG="" | |
7030 | fi | |
7031 | fi | |
d1e8046f | 7032 | |
f11781c5 AK |
7033 | pkg_failed=no |
7034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5 | |
7035 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
d1e8046f | 7036 | |
f11781c5 AK |
7037 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
7038 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
7039 | elif test -n "$PKG_CONFIG"; then | |
7040 | if test -n "$PKG_CONFIG" && \ | |
7041 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7042 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
7043 | ac_status=$? | |
7044 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7045 | test $ac_status = 0; }; then | |
7046 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7047 | else |
f11781c5 AK |
7048 | pkg_failed=yes |
7049 | fi | |
7050 | else | |
7051 | pkg_failed=untried | |
7052 | fi | |
7053 | if test -n "$PKGCONFIGINIT_LIBS"; then | |
7054 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
7055 | elif test -n "$PKG_CONFIG"; then | |
7056 | if test -n "$PKG_CONFIG" && \ | |
7057 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7058 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
d1e8046f | 7059 | ac_status=$? |
f11781c5 AK |
7060 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7061 | test $ac_status = 0; }; then | |
7062 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7063 | else |
f11781c5 AK |
7064 | pkg_failed=yes |
7065 | fi | |
7066 | else | |
7067 | pkg_failed=untried | |
d1e8046f AK |
7068 | fi |
7069 | ||
d1e8046f | 7070 | |
f11781c5 AK |
7071 | |
7072 | if test $pkg_failed = yes; then | |
7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7074 | $as_echo "no" >&6; } | |
7075 | ||
7076 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7077 | _pkg_short_errors_supported=yes | |
7078 | else | |
7079 | _pkg_short_errors_supported=no | |
7080 | fi | |
7081 | if test $_pkg_short_errors_supported = yes; then | |
7082 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` | |
7083 | else | |
7084 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` | |
7085 | fi | |
7086 | # Put the nasty error message in config.log where it belongs | |
7087 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 | |
7088 | ||
7089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7090 | $as_echo "pkg-config initialized" >&6; } | |
7091 | elif test $pkg_failed = untried; then | |
7092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7093 | $as_echo "no" >&6; } | |
7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7095 | $as_echo "pkg-config initialized" >&6; } | |
d1e8046f | 7096 | else |
f11781c5 AK |
7097 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
7098 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7100 | $as_echo "yes" >&6; } | |
d1e8046f | 7101 | |
d1e8046f | 7102 | fi |
f11781c5 AK |
7103 | PKGCONFIG_INIT=1 |
7104 | } | |
d1e8046f | 7105 | |
f11781c5 AK |
7106 | ################################################################################ |
7107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5 | |
7108 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d1e8046f | 7109 | |
f11781c5 AK |
7110 | # Check whether --with-clvmd was given. |
7111 | if test "${with_clvmd+set}" = set; then : | |
7112 | withval=$with_clvmd; CLVMD=$withval | |
d1e8046f | 7113 | else |
f11781c5 | 7114 | CLVMD=none |
d1e8046f | 7115 | fi |
d1e8046f | 7116 | |
f11781c5 AK |
7117 | if test x$CLVMD = xyes; then |
7118 | CLVMD=all | |
d1e8046f | 7119 | fi |
f11781c5 AK |
7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5 |
7121 | $as_echo "$CLVMD" >&6; } | |
d1e8046f | 7122 | |
f11781c5 AK |
7123 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
7124 | CLUSTER=internal | |
d1e8046f AK |
7125 | fi |
7126 | ||
f11781c5 AK |
7127 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then |
7128 | pkg_config_init | |
7129 | fi | |
d1e8046f | 7130 | |
f11781c5 AK |
7131 | CLVMD_CMANAGERS="" |
7132 | CLVMD_NEEDS_QDISKD=no | |
d1e8046f | 7133 | |
f11781c5 AK |
7134 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then |
7135 | BUILDGULM=yes | |
7136 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd" | |
7137 | CLVMD_NEEDS_QDISKD=yes | |
d1e8046f | 7138 | fi |
f11781c5 AK |
7139 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then |
7140 | BUILDCMAN=yes | |
7141 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
7142 | CLVMD_NEEDS_QDISKD=yes | |
7143 | fi | |
7144 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
7145 | BUILDCOROSYNC=yes | |
7146 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
7147 | fi | |
7148 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
7149 | BUILDOPENAIS=yes | |
7150 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
7151 | fi | |
7152 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
7153 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
fc54be10 AK |
7154 | fi |
7155 | ||
f11781c5 AK |
7156 | if test x$BUILDGULM = xyes; then |
7157 | if test x$BUILDCOROSYNC = xyes || \ | |
7158 | test x$BUILDOPENAIS = xyes; then | |
7159 | as_fn_error $? "requested clvmd configuration is not valid" "$LINENO" 5 | |
7160 | fi | |
7161 | fi | |
ad6254c5 | 7162 | |
f11781c5 AK |
7163 | soft_bailout() { |
7164 | NOTFOUND=1 | |
7165 | } | |
ad6254c5 | 7166 | |
f11781c5 AK |
7167 | hard_bailout() { |
7168 | as_fn_error $? "bailing out" "$LINENO" 5 | |
7169 | } | |
ad6254c5 | 7170 | |
f11781c5 AK |
7171 | if test x$CLVMD = xall; then |
7172 | bailout=soft_bailout | |
7173 | BUILDGULM=yes | |
7174 | BUILDCMAN=yes | |
7175 | BUILDCOROSYNC=yes | |
7176 | BUILDOPENAIS=yes | |
a5f46f6a | 7177 | else |
f11781c5 | 7178 | bailout=hard_bailout |
a5f46f6a AK |
7179 | fi |
7180 | ||
f11781c5 AK |
7181 | check_lib_no_libs() { |
7182 | lib_no_libs_arg1=$1 | |
7183 | shift | |
7184 | lib_no_libs_arg2=$1 | |
7185 | shift | |
7186 | lib_no_libs_args=$@ | |
7187 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
7188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
7189 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
7190 | if eval "test \"\${$as_ac_Lib+set}\"" = set; then : | |
90c80887 AK |
7191 | $as_echo_n "(cached) " >&6 |
7192 | else | |
7193 | ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
7194 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" |
7195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
90c80887 AK |
7196 | /* end confdefs.h. */ |
7197 | ||
7198 | /* Override any GCC internal prototype to avoid an error. | |
7199 | Use char because int might match the return type of a GCC | |
7200 | builtin and then its argument prototype would still apply. */ | |
7201 | #ifdef __cplusplus | |
7202 | extern "C" | |
7203 | #endif | |
f11781c5 | 7204 | char $lib_no_libs_arg2 (); |
90c80887 AK |
7205 | int |
7206 | main () | |
7207 | { | |
f11781c5 | 7208 | return $lib_no_libs_arg2 (); |
90c80887 AK |
7209 | ; |
7210 | return 0; | |
7211 | } | |
7212 | _ACEOF | |
f11781c5 AK |
7213 | if ac_fn_c_try_link "$LINENO"; then : |
7214 | eval "$as_ac_Lib=yes" | |
90c80887 | 7215 | else |
f11781c5 | 7216 | eval "$as_ac_Lib=no" |
90c80887 | 7217 | fi |
f11781c5 AK |
7218 | rm -f core conftest.err conftest.$ac_objext \ |
7219 | conftest$ac_exeext conftest.$ac_ext | |
90c80887 AK |
7220 | LIBS=$ac_check_lib_save_LIBS |
7221 | fi | |
f11781c5 AK |
7222 | eval ac_res=\$$as_ac_Lib |
7223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7224 | $as_echo "$ac_res" >&6; } | |
7225 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
7226 | cat >>confdefs.h <<_ACEOF | |
7227 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
7228 | _ACEOF | |
7229 | ||
7230 | LIBS="-l$lib_no_libs_arg1 $LIBS" | |
7231 | ||
90c80887 | 7232 | else |
f11781c5 | 7233 | $bailout |
90c80887 AK |
7234 | fi |
7235 | ||
f11781c5 AK |
7236 | LIBS=$ac_check_lib_save_LIBS |
7237 | } | |
90c80887 | 7238 | |
f11781c5 | 7239 | if test x$BUILDGULM = xyes; then |
90c80887 | 7240 | |
f11781c5 AK |
7241 | pkg_failed=no |
7242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5 | |
7243 | $as_echo_n "checking for CCS... " >&6; } | |
90c80887 | 7244 | |
f11781c5 AK |
7245 | if test -n "$CCS_CFLAGS"; then |
7246 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
7247 | elif test -n "$PKG_CONFIG"; then | |
7248 | if test -n "$PKG_CONFIG" && \ | |
7249 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5 | |
7250 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
7251 | ac_status=$? | |
7252 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7253 | test $ac_status = 0; }; then | |
7254 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` | |
5161ecb9 | 7255 | else |
f11781c5 AK |
7256 | pkg_failed=yes |
7257 | fi | |
7258 | else | |
7259 | pkg_failed=untried | |
7260 | fi | |
7261 | if test -n "$CCS_LIBS"; then | |
7262 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
7263 | elif test -n "$PKG_CONFIG"; then | |
7264 | if test -n "$PKG_CONFIG" && \ | |
7265 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5 | |
7266 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
7267 | ac_status=$? | |
7268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7269 | test $ac_status = 0; }; then | |
7270 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` | |
7271 | else | |
7272 | pkg_failed=yes | |
7273 | fi | |
7274 | else | |
7275 | pkg_failed=untried | |
5161ecb9 PR |
7276 | fi |
7277 | ||
5161ecb9 | 7278 | |
f11781c5 AK |
7279 | |
7280 | if test $pkg_failed = yes; then | |
7281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7282 | $as_echo "no" >&6; } | |
7283 | ||
7284 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7285 | _pkg_short_errors_supported=yes | |
93bd259b | 7286 | else |
f11781c5 | 7287 | _pkg_short_errors_supported=no |
93bd259b | 7288 | fi |
f11781c5 AK |
7289 | if test $_pkg_short_errors_supported = yes; then |
7290 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` | |
7291 | else | |
7292 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` | |
7293 | fi | |
7294 | # Put the nasty error message in config.log where it belongs | |
7295 | echo "$CCS_PKG_ERRORS" >&5 | |
93bd259b | 7296 | |
f11781c5 AK |
7297 | NOTFOUND=0 |
7298 | for ac_header in ccs.h | |
7299 | do : | |
7300 | ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default" | |
7301 | if test "x$ac_cv_header_ccs_h" = x""yes; then : | |
7302 | cat >>confdefs.h <<_ACEOF | |
7303 | #define HAVE_CCS_H 1 | |
7304 | _ACEOF | |
93bd259b | 7305 | |
95eaa683 | 7306 | else |
f11781c5 | 7307 | $bailout |
95eaa683 AK |
7308 | fi |
7309 | ||
f11781c5 | 7310 | done |
95eaa683 | 7311 | |
f11781c5 AK |
7312 | check_lib_no_libs ccs ccs_connect |
7313 | if test $NOTFOUND = 0; then | |
7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5 | |
7315 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
7316 | CCS_LIBS="-lccs" | |
7317 | HAVE_CCS=yes | |
7318 | fi | |
7319 | elif test $pkg_failed = untried; then | |
7320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7321 | $as_echo "no" >&6; } | |
7322 | NOTFOUND=0 | |
7323 | for ac_header in ccs.h | |
7324 | do : | |
7325 | ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default" | |
7326 | if test "x$ac_cv_header_ccs_h" = x""yes; then : | |
7327 | cat >>confdefs.h <<_ACEOF | |
7328 | #define HAVE_CCS_H 1 | |
95eaa683 AK |
7329 | _ACEOF |
7330 | ||
f11781c5 AK |
7331 | else |
7332 | $bailout | |
95eaa683 AK |
7333 | fi |
7334 | ||
f11781c5 AK |
7335 | done |
7336 | ||
7337 | check_lib_no_libs ccs ccs_connect | |
7338 | if test $NOTFOUND = 0; then | |
7339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5 | |
7340 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
7341 | CCS_LIBS="-lccs" | |
7342 | HAVE_CCS=yes | |
7343 | fi | |
7344 | else | |
7345 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
7346 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
7347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7348 | $as_echo "yes" >&6; } | |
7349 | HAVE_CCS=yes | |
7350 | fi | |
7351 | ||
7352 | pkg_failed=no | |
7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GULM" >&5 | |
7354 | $as_echo_n "checking for GULM... " >&6; } | |
7355 | ||
7356 | if test -n "$GULM_CFLAGS"; then | |
7357 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
7358 | elif test -n "$PKG_CONFIG"; then | |
7359 | if test -n "$PKG_CONFIG" && \ | |
7360 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5 | |
7361 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
7362 | ac_status=$? | |
7363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7364 | test $ac_status = 0; }; then | |
7365 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
7366 | else | |
7367 | pkg_failed=yes | |
7368 | fi | |
7369 | else | |
7370 | pkg_failed=untried | |
7371 | fi | |
7372 | if test -n "$GULM_LIBS"; then | |
7373 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
7374 | elif test -n "$PKG_CONFIG"; then | |
7375 | if test -n "$PKG_CONFIG" && \ | |
7376 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5 | |
7377 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
7378 | ac_status=$? | |
7379 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7380 | test $ac_status = 0; }; then | |
7381 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
7382 | else | |
7383 | pkg_failed=yes | |
93bd259b | 7384 | fi |
f11781c5 AK |
7385 | else |
7386 | pkg_failed=untried | |
ad6254c5 | 7387 | fi |
ad6254c5 | 7388 | |
ad6254c5 AK |
7389 | |
7390 | ||
f11781c5 AK |
7391 | if test $pkg_failed = yes; then |
7392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7393 | $as_echo "no" >&6; } | |
ad6254c5 | 7394 | |
f11781c5 AK |
7395 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7396 | _pkg_short_errors_supported=yes | |
572fefeb | 7397 | else |
f11781c5 | 7398 | _pkg_short_errors_supported=no |
572fefeb | 7399 | fi |
f11781c5 AK |
7400 | if test $_pkg_short_errors_supported = yes; then |
7401 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
7402 | else | |
7403 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
7404 | fi | |
7405 | # Put the nasty error message in config.log where it belongs | |
7406 | echo "$GULM_PKG_ERRORS" >&5 | |
572fefeb | 7407 | |
f11781c5 AK |
7408 | NOTFOUND=0 |
7409 | for ac_header in libgulm.h | |
7410 | do : | |
7411 | ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default" | |
7412 | if test "x$ac_cv_header_libgulm_h" = x""yes; then : | |
7413 | cat >>confdefs.h <<_ACEOF | |
7414 | #define HAVE_LIBGULM_H 1 | |
7415 | _ACEOF | |
572fefeb | 7416 | |
ad6254c5 | 7417 | else |
f11781c5 | 7418 | $bailout |
d0191583 | 7419 | fi |
8a2fc586 | 7420 | |
f11781c5 | 7421 | done |
8a2fc586 | 7422 | |
f11781c5 AK |
7423 | check_lib_no_libs gulm lg_core_login |
7424 | if test $NOTFOUND = 0; then | |
7425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5 | |
7426 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
7427 | GULM_LIBS="-lgulm" | |
7428 | HAVE_GULM=yes | |
7429 | fi | |
7430 | elif test $pkg_failed = untried; then | |
7431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7432 | $as_echo "no" >&6; } | |
7433 | NOTFOUND=0 | |
7434 | for ac_header in libgulm.h | |
7435 | do : | |
7436 | ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default" | |
7437 | if test "x$ac_cv_header_libgulm_h" = x""yes; then : | |
7438 | cat >>confdefs.h <<_ACEOF | |
7439 | #define HAVE_LIBGULM_H 1 | |
7440 | _ACEOF | |
d179cc7a | 7441 | |
93bd259b | 7442 | else |
f11781c5 | 7443 | $bailout |
93bd259b AK |
7444 | fi |
7445 | ||
f11781c5 | 7446 | done |
2a9a80c9 | 7447 | |
f11781c5 AK |
7448 | check_lib_no_libs gulm lg_core_login |
7449 | if test $NOTFOUND = 0; then | |
7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5 | |
7451 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
7452 | GULM_LIBS="-lgulm" | |
7453 | HAVE_GULM=yes | |
7454 | fi | |
23b059e7 | 7455 | else |
f11781c5 AK |
7456 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS |
7457 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7459 | $as_echo "yes" >&6; } | |
7460 | HAVE_GULM=yes | |
d0191583 | 7461 | fi |
d0191583 | 7462 | fi |
ad6254c5 | 7463 | |
f11781c5 | 7464 | if test x$BUILDCMAN = xyes; then |
ad6254c5 | 7465 | |
f11781c5 AK |
7466 | pkg_failed=no |
7467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5 | |
7468 | $as_echo_n "checking for CMAN... " >&6; } | |
93bd259b | 7469 | |
f11781c5 AK |
7470 | if test -n "$CMAN_CFLAGS"; then |
7471 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
7472 | elif test -n "$PKG_CONFIG"; then | |
7473 | if test -n "$PKG_CONFIG" && \ | |
7474 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7475 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
7476 | ac_status=$? | |
7477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7478 | test $ac_status = 0; }; then | |
7479 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
7480 | else | |
7481 | pkg_failed=yes | |
ad6254c5 | 7482 | fi |
f11781c5 AK |
7483 | else |
7484 | pkg_failed=untried | |
ad6254c5 | 7485 | fi |
f11781c5 AK |
7486 | if test -n "$CMAN_LIBS"; then |
7487 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
7488 | elif test -n "$PKG_CONFIG"; then | |
7489 | if test -n "$PKG_CONFIG" && \ | |
7490 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7491 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
93bd259b | 7492 | ac_status=$? |
f11781c5 AK |
7493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7494 | test $ac_status = 0; }; then | |
7495 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
93bd259b | 7496 | else |
f11781c5 AK |
7497 | pkg_failed=yes |
7498 | fi | |
7499 | else | |
7500 | pkg_failed=untried | |
93bd259b AK |
7501 | fi |
7502 | ||
f11781c5 AK |
7503 | |
7504 | ||
7505 | if test $pkg_failed = yes; then | |
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7507 | $as_echo "no" >&6; } | |
7508 | ||
7509 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7510 | _pkg_short_errors_supported=yes | |
7511 | else | |
7512 | _pkg_short_errors_supported=no | |
93bd259b | 7513 | fi |
f11781c5 AK |
7514 | if test $_pkg_short_errors_supported = yes; then |
7515 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
7516 | else | |
7517 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
7518 | fi | |
7519 | # Put the nasty error message in config.log where it belongs | |
7520 | echo "$CMAN_PKG_ERRORS" >&5 | |
93bd259b | 7521 | |
f11781c5 AK |
7522 | NOTFOUND=0 |
7523 | for ac_header in libcman.h | |
7524 | do : | |
7525 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7526 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7527 | cat >>confdefs.h <<_ACEOF | |
7528 | #define HAVE_LIBCMAN_H 1 | |
93bd259b AK |
7529 | _ACEOF |
7530 | ||
f11781c5 AK |
7531 | else |
7532 | $bailout | |
93bd259b AK |
7533 | fi |
7534 | ||
f11781c5 | 7535 | done |
93bd259b | 7536 | |
f11781c5 AK |
7537 | check_lib_no_libs cman cman_init |
7538 | if test $NOTFOUND = 0; then | |
7539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7540 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7541 | CMAN_LIBS="-lcman" | |
7542 | HAVE_CMAN=yes | |
7543 | fi | |
7544 | elif test $pkg_failed = untried; then | |
7545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7546 | $as_echo "no" >&6; } | |
7547 | NOTFOUND=0 | |
7548 | for ac_header in libcman.h | |
7549 | do : | |
7550 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7551 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7552 | cat >>confdefs.h <<_ACEOF | |
7553 | #define HAVE_LIBCMAN_H 1 | |
93bd259b | 7554 | _ACEOF |
93bd259b | 7555 | |
93bd259b | 7556 | else |
f11781c5 | 7557 | $bailout |
93bd259b AK |
7558 | fi |
7559 | ||
f11781c5 AK |
7560 | done |
7561 | ||
7562 | check_lib_no_libs cman cman_init | |
7563 | if test $NOTFOUND = 0; then | |
7564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7565 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7566 | CMAN_LIBS="-lcman" | |
7567 | HAVE_CMAN=yes | |
7568 | fi | |
7569 | else | |
7570 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
7571 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7573 | $as_echo "yes" >&6; } | |
7574 | HAVE_CMAN=yes | |
93bd259b | 7575 | fi |
f11781c5 AK |
7576 | CHECKCONFDB=yes |
7577 | CHECKDLM=yes | |
93bd259b AK |
7578 | fi |
7579 | ||
f11781c5 AK |
7580 | if test x$BUILDCOROSYNC = xyes || \ |
7581 | test x$BUILDOPENAIS = xyes; then | |
93bd259b | 7582 | |
f11781c5 AK |
7583 | pkg_failed=no |
7584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5 | |
7585 | $as_echo_n "checking for COROSYNC... " >&6; } | |
ad6254c5 | 7586 | |
f11781c5 AK |
7587 | if test -n "$COROSYNC_CFLAGS"; then |
7588 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
7589 | elif test -n "$PKG_CONFIG"; then | |
7590 | if test -n "$PKG_CONFIG" && \ | |
7591 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7592 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
7593 | ac_status=$? | |
7594 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7595 | test $ac_status = 0; }; then | |
7596 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
ad6254c5 | 7597 | else |
f11781c5 AK |
7598 | pkg_failed=yes |
7599 | fi | |
7600 | else | |
7601 | pkg_failed=untried | |
7602 | fi | |
7603 | if test -n "$COROSYNC_LIBS"; then | |
7604 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
7605 | elif test -n "$PKG_CONFIG"; then | |
7606 | if test -n "$PKG_CONFIG" && \ | |
7607 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7608 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
ad6254c5 | 7609 | ac_status=$? |
f11781c5 AK |
7610 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7611 | test $ac_status = 0; }; then | |
7612 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
ad6254c5 | 7613 | else |
f11781c5 | 7614 | pkg_failed=yes |
ad6254c5 | 7615 | fi |
f11781c5 AK |
7616 | else |
7617 | pkg_failed=untried | |
ad6254c5 | 7618 | fi |
ad6254c5 | 7619 | |
72b2cb61 | 7620 | |
72b2cb61 | 7621 | |
f11781c5 AK |
7622 | if test $pkg_failed = yes; then |
7623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7624 | $as_echo "no" >&6; } | |
19a2c6e0 | 7625 | |
f11781c5 AK |
7626 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7627 | _pkg_short_errors_supported=yes | |
7628 | else | |
7629 | _pkg_short_errors_supported=no | |
ad6254c5 | 7630 | fi |
f11781c5 AK |
7631 | if test $_pkg_short_errors_supported = yes; then |
7632 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
7633 | else | |
7634 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
7635 | fi | |
7636 | # Put the nasty error message in config.log where it belongs | |
7637 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
ad6254c5 | 7638 | |
f11781c5 AK |
7639 | $bailout |
7640 | elif test $pkg_failed = untried; then | |
7641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7642 | $as_echo "no" >&6; } | |
7643 | $bailout | |
7644 | else | |
7645 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
7646 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
7647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7648 | $as_echo "yes" >&6; } | |
7649 | HAVE_COROSYNC=yes | |
7650 | fi | |
7651 | CHECKCONFDB=yes | |
ad6254c5 AK |
7652 | fi |
7653 | ||
f11781c5 | 7654 | if test x$BUILDCOROSYNC = xyes; then |
f30875db | 7655 | |
f11781c5 AK |
7656 | pkg_failed=no |
7657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5 | |
7658 | $as_echo_n "checking for QUORUM... " >&6; } | |
7659 | ||
7660 | if test -n "$QUORUM_CFLAGS"; then | |
7661 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
7662 | elif test -n "$PKG_CONFIG"; then | |
7663 | if test -n "$PKG_CONFIG" && \ | |
7664 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7665 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
f30875db | 7666 | ac_status=$? |
f11781c5 AK |
7667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7668 | test $ac_status = 0; }; then | |
7669 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
f30875db | 7670 | else |
f11781c5 | 7671 | pkg_failed=yes |
f30875db | 7672 | fi |
f11781c5 AK |
7673 | else |
7674 | pkg_failed=untried | |
f30875db | 7675 | fi |
f11781c5 AK |
7676 | if test -n "$QUORUM_LIBS"; then |
7677 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
7678 | elif test -n "$PKG_CONFIG"; then | |
7679 | if test -n "$PKG_CONFIG" && \ | |
7680 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7681 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
7682 | ac_status=$? | |
7683 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7684 | test $ac_status = 0; }; then | |
7685 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
f30875db | 7686 | else |
f11781c5 | 7687 | pkg_failed=yes |
f30875db | 7688 | fi |
f11781c5 AK |
7689 | else |
7690 | pkg_failed=untried | |
7691 | fi | |
7692 | ||
f30875db | 7693 | |
f11781c5 AK |
7694 | |
7695 | if test $pkg_failed = yes; then | |
7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7697 | $as_echo "no" >&6; } | |
7698 | ||
7699 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7700 | _pkg_short_errors_supported=yes | |
7701 | else | |
7702 | _pkg_short_errors_supported=no | |
f30875db | 7703 | fi |
f11781c5 AK |
7704 | if test $_pkg_short_errors_supported = yes; then |
7705 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
7706 | else | |
7707 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
7708 | fi | |
7709 | # Put the nasty error message in config.log where it belongs | |
7710 | echo "$QUORUM_PKG_ERRORS" >&5 | |
f30875db | 7711 | |
f11781c5 AK |
7712 | $bailout |
7713 | elif test $pkg_failed = untried; then | |
7714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7715 | $as_echo "no" >&6; } | |
7716 | $bailout | |
7717 | else | |
7718 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
7719 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
7720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7721 | $as_echo "yes" >&6; } | |
7722 | HAVE_QUORUM=yes | |
7723 | fi | |
7724 | CHECKCPG=yes | |
7725 | CHECKDLM=yes | |
d0191583 JM |
7726 | fi |
7727 | ||
f11781c5 | 7728 | if test x$BUILDOPENAIS = xyes; then |
d0191583 | 7729 | |
f11781c5 AK |
7730 | pkg_failed=no |
7731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5 | |
7732 | $as_echo_n "checking for SALCK... " >&6; } | |
8a2fc586 | 7733 | |
f11781c5 AK |
7734 | if test -n "$SALCK_CFLAGS"; then |
7735 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
7736 | elif test -n "$PKG_CONFIG"; then | |
7737 | if test -n "$PKG_CONFIG" && \ | |
7738 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7739 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
7740 | ac_status=$? | |
7741 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7742 | test $ac_status = 0; }; then | |
7743 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
7744 | else | |
7745 | pkg_failed=yes | |
7746 | fi | |
7747 | else | |
7748 | pkg_failed=untried | |
7749 | fi | |
7750 | if test -n "$SALCK_LIBS"; then | |
7751 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
7752 | elif test -n "$PKG_CONFIG"; then | |
7753 | if test -n "$PKG_CONFIG" && \ | |
7754 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7755 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
8a2fc586 | 7756 | ac_status=$? |
f11781c5 AK |
7757 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7758 | test $ac_status = 0; }; then | |
7759 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
8a2fc586 | 7760 | else |
f11781c5 | 7761 | pkg_failed=yes |
8a2fc586 | 7762 | fi |
f11781c5 AK |
7763 | else |
7764 | pkg_failed=untried | |
8a2fc586 | 7765 | fi |
d0191583 | 7766 | |
d0191583 | 7767 | |
f8f6ec92 | 7768 | |
f11781c5 AK |
7769 | if test $pkg_failed = yes; then |
7770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7771 | $as_echo "no" >&6; } | |
8a2fc586 | 7772 | |
f11781c5 AK |
7773 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7774 | _pkg_short_errors_supported=yes | |
ad6254c5 | 7775 | else |
f11781c5 AK |
7776 | _pkg_short_errors_supported=no |
7777 | fi | |
7778 | if test $_pkg_short_errors_supported = yes; then | |
7779 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
7780 | else | |
7781 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
7782 | fi | |
7783 | # Put the nasty error message in config.log where it belongs | |
7784 | echo "$SALCK_PKG_ERRORS" >&5 | |
ad6254c5 | 7785 | |
f11781c5 AK |
7786 | $bailout |
7787 | elif test $pkg_failed = untried; then | |
7788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7789 | $as_echo "no" >&6; } | |
7790 | $bailout | |
ad6254c5 | 7791 | else |
f11781c5 AK |
7792 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS |
7793 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7795 | $as_echo "yes" >&6; } | |
7796 | HAVE_SALCK=yes | |
ad6254c5 | 7797 | fi |
f11781c5 | 7798 | CHECKCPG=yes |
ad6254c5 | 7799 | fi |
ad6254c5 | 7800 | |
72b2cb61 | 7801 | |
f8f6ec92 | 7802 | |
f11781c5 | 7803 | if test x$CHECKCONFDB = xyes; then |
f8f6ec92 | 7804 | |
f11781c5 AK |
7805 | pkg_failed=no |
7806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5 | |
7807 | $as_echo_n "checking for CONFDB... " >&6; } | |
f8f6ec92 | 7808 | |
f11781c5 AK |
7809 | if test -n "$CONFDB_CFLAGS"; then |
7810 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
7811 | elif test -n "$PKG_CONFIG"; then | |
7812 | if test -n "$PKG_CONFIG" && \ | |
7813 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7814 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
f8f6ec92 | 7815 | ac_status=$? |
f11781c5 AK |
7816 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7817 | test $ac_status = 0; }; then | |
7818 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
66e941e8 | 7819 | else |
f11781c5 AK |
7820 | pkg_failed=yes |
7821 | fi | |
7822 | else | |
7823 | pkg_failed=untried | |
7824 | fi | |
7825 | if test -n "$CONFDB_LIBS"; then | |
7826 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
7827 | elif test -n "$PKG_CONFIG"; then | |
7828 | if test -n "$PKG_CONFIG" && \ | |
7829 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7830 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
7831 | ac_status=$? | |
7832 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7833 | test $ac_status = 0; }; then | |
7834 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
7835 | else | |
7836 | pkg_failed=yes | |
7837 | fi | |
7838 | else | |
7839 | pkg_failed=untried | |
f8f6ec92 ZK |
7840 | fi |
7841 | ||
f8f6ec92 | 7842 | |
66e941e8 | 7843 | |
f11781c5 AK |
7844 | if test $pkg_failed = yes; then |
7845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7846 | $as_echo "no" >&6; } | |
7847 | ||
7848 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7849 | _pkg_short_errors_supported=yes | |
f8f6ec92 | 7850 | else |
f11781c5 | 7851 | _pkg_short_errors_supported=no |
66e941e8 | 7852 | fi |
f11781c5 AK |
7853 | if test $_pkg_short_errors_supported = yes; then |
7854 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
7855 | else | |
7856 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
7857 | fi | |
7858 | # Put the nasty error message in config.log where it belongs | |
7859 | echo "$CONFDB_PKG_ERRORS" >&5 | |
66e941e8 | 7860 | |
f11781c5 AK |
7861 | HAVE_CONFDB=no |
7862 | elif test $pkg_failed = untried; then | |
7863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7864 | $as_echo "no" >&6; } | |
7865 | HAVE_CONFDB=no | |
7866 | else | |
7867 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
7868 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
7869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7870 | $as_echo "yes" >&6; } | |
7871 | HAVE_CONFDB=yes | |
66e941e8 | 7872 | fi |
f11781c5 AK |
7873 | |
7874 | for ac_header in corosync/confdb.h | |
7875 | do : | |
7876 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default" | |
7877 | if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then : | |
f8f6ec92 | 7878 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 7879 | #define HAVE_COROSYNC_CONFDB_H 1 |
f8f6ec92 | 7880 | _ACEOF |
f11781c5 | 7881 | HAVE_CONFDB_H=yes |
66e941e8 | 7882 | else |
f11781c5 | 7883 | HAVE_CONFDB_H=no |
66e941e8 | 7884 | fi |
dd1f2c09 MB |
7885 | |
7886 | done | |
7887 | ||
7888 | ||
f11781c5 AK |
7889 | if test x$HAVE_CONFDB != xyes && \ |
7890 | test x$HAVE_CONFDB_H = xyes; then | |
7891 | check_lib_no_libs confdb confdb_initialize | |
7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5 | |
7893 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
7894 | CONFDB_LIBS="-lconfdb" | |
7895 | HAVE_CONFDB=yes | |
7896 | fi | |
7897 | ||
7898 | if test x$BUILDCOROSYNC = xyes && \ | |
7899 | test x$HAVE_CONFDB != xyes && | |
7900 | test x$CLVMD != xall; then | |
7901 | as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5 | |
7902 | fi | |
dd1f2c09 | 7903 | fi |
f11781c5 AK |
7904 | |
7905 | if test x$CHECKCPG = xyes; then | |
7906 | ||
7907 | pkg_failed=no | |
7908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
7909 | $as_echo_n "checking for CPG... " >&6; } | |
7910 | ||
7911 | if test -n "$CPG_CFLAGS"; then | |
7912 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
7913 | elif test -n "$PKG_CONFIG"; then | |
7914 | if test -n "$PKG_CONFIG" && \ | |
7915 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
7916 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
7917 | ac_status=$? | |
7918 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7919 | test $ac_status = 0; }; then | |
7920 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
dd1f2c09 | 7921 | else |
f11781c5 AK |
7922 | pkg_failed=yes |
7923 | fi | |
7924 | else | |
7925 | pkg_failed=untried | |
7926 | fi | |
7927 | if test -n "$CPG_LIBS"; then | |
7928 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
7929 | elif test -n "$PKG_CONFIG"; then | |
7930 | if test -n "$PKG_CONFIG" && \ | |
7931 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
7932 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
dd1f2c09 | 7933 | ac_status=$? |
f11781c5 AK |
7934 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7935 | test $ac_status = 0; }; then | |
7936 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
dd1f2c09 | 7937 | else |
f11781c5 AK |
7938 | pkg_failed=yes |
7939 | fi | |
7940 | else | |
7941 | pkg_failed=untried | |
7942 | fi | |
7943 | ||
7944 | ||
7945 | ||
7946 | if test $pkg_failed = yes; then | |
7947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7948 | $as_echo "no" >&6; } | |
7949 | ||
7950 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7951 | _pkg_short_errors_supported=yes | |
7952 | else | |
7953 | _pkg_short_errors_supported=no | |
7954 | fi | |
7955 | if test $_pkg_short_errors_supported = yes; then | |
7956 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
7957 | else | |
7958 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
7959 | fi | |
7960 | # Put the nasty error message in config.log where it belongs | |
7961 | echo "$CPG_PKG_ERRORS" >&5 | |
dd1f2c09 | 7962 | |
f11781c5 AK |
7963 | $bailout |
7964 | elif test $pkg_failed = untried; then | |
7965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7966 | $as_echo "no" >&6; } | |
7967 | $bailout | |
7968 | else | |
7969 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
7970 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7972 | $as_echo "yes" >&6; } | |
7973 | HAVE_CPG=yes | |
7974 | fi | |
dd1f2c09 MB |
7975 | fi |
7976 | ||
f11781c5 | 7977 | if test x$CHECKDLM = xyes; then |
dd1f2c09 | 7978 | |
f11781c5 AK |
7979 | pkg_failed=no |
7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5 | |
7981 | $as_echo_n "checking for DLM... " >&6; } | |
7982 | ||
7983 | if test -n "$DLM_CFLAGS"; then | |
7984 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
7985 | elif test -n "$PKG_CONFIG"; then | |
7986 | if test -n "$PKG_CONFIG" && \ | |
7987 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
7988 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
dd1f2c09 | 7989 | ac_status=$? |
f11781c5 AK |
7990 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7991 | test $ac_status = 0; }; then | |
7992 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
dd1f2c09 | 7993 | else |
f11781c5 AK |
7994 | pkg_failed=yes |
7995 | fi | |
7996 | else | |
7997 | pkg_failed=untried | |
7998 | fi | |
7999 | if test -n "$DLM_LIBS"; then | |
8000 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
8001 | elif test -n "$PKG_CONFIG"; then | |
8002 | if test -n "$PKG_CONFIG" && \ | |
8003 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8004 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
8005 | ac_status=$? | |
8006 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8007 | test $ac_status = 0; }; then | |
8008 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
8009 | else | |
8010 | pkg_failed=yes | |
8011 | fi | |
8012 | else | |
8013 | pkg_failed=untried | |
dd1f2c09 MB |
8014 | fi |
8015 | ||
dd1f2c09 | 8016 | |
dd1f2c09 | 8017 | |
f11781c5 AK |
8018 | if test $pkg_failed = yes; then |
8019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8020 | $as_echo "no" >&6; } | |
8021 | ||
8022 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8023 | _pkg_short_errors_supported=yes | |
dd1f2c09 | 8024 | else |
f11781c5 | 8025 | _pkg_short_errors_supported=no |
dd1f2c09 | 8026 | fi |
f11781c5 AK |
8027 | if test $_pkg_short_errors_supported = yes; then |
8028 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
8029 | else | |
8030 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
8031 | fi | |
8032 | # Put the nasty error message in config.log where it belongs | |
8033 | echo "$DLM_PKG_ERRORS" >&5 | |
dd1f2c09 | 8034 | |
f11781c5 AK |
8035 | NOTFOUND=0 |
8036 | for ac_header in libdlm.h | |
8037 | do : | |
8038 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8039 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
dd1f2c09 | 8040 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 8041 | #define HAVE_LIBDLM_H 1 |
dd1f2c09 MB |
8042 | _ACEOF |
8043 | ||
f11781c5 AK |
8044 | else |
8045 | $bailout | |
dd1f2c09 | 8046 | fi |
f8f6ec92 ZK |
8047 | |
8048 | done | |
8049 | ||
f11781c5 AK |
8050 | check_lib_no_libs dlm dlm_lock -lpthread |
8051 | if test $NOTFOUND = 0; then | |
8052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8053 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8054 | DLM_LIBS="-ldlm -lpthread" | |
8055 | HAVE_DLM=yes | |
8056 | fi | |
8057 | elif test $pkg_failed = untried; then | |
8058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8059 | $as_echo "no" >&6; } | |
8060 | NOTFOUND=0 | |
8061 | for ac_header in libdlm.h | |
8062 | do : | |
8063 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8064 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
8065 | cat >>confdefs.h <<_ACEOF | |
8066 | #define HAVE_LIBDLM_H 1 | |
f8f6ec92 ZK |
8067 | _ACEOF |
8068 | ||
f8f6ec92 | 8069 | else |
f11781c5 | 8070 | $bailout |
ad6254c5 AK |
8071 | fi |
8072 | ||
f11781c5 | 8073 | done |
8b1a3214 | 8074 | |
f11781c5 AK |
8075 | check_lib_no_libs dlm dlm_lock -lpthread |
8076 | if test $NOTFOUND = 0; then | |
8077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8078 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8079 | DLM_LIBS="-ldlm -lpthread" | |
8080 | HAVE_DLM=yes | |
8081 | fi | |
8b1a3214 | 8082 | else |
f11781c5 AK |
8083 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS |
8084 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
8085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8086 | $as_echo "yes" >&6; } | |
8087 | HAVE_DLM=yes | |
8b1a3214 | 8088 | fi |
8b1a3214 AK |
8089 | fi |
8090 | ||
f11781c5 AK |
8091 | if test x$CLVMD = xall; then |
8092 | CLVMD=none | |
8093 | CLVMD_CMANAGERS="" | |
8094 | CLVMD_NEEDS_QDISKD=no | |
8095 | if test x$HAVE_CCS = xyes && \ | |
8096 | test x$HAVE_GULM = xyes; then | |
8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd gulm cluster manager" >&5 | |
8098 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
8099 | CLVMD="$CLVMD,gulm" | |
8100 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd" | |
8101 | CLVMD_NEEDS_QDISKD=yes | |
8102 | fi | |
8103 | if test x$HAVE_CMAN = xyes && \ | |
8104 | test x$HAVE_DLM = xyes; then | |
8105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5 | |
8106 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
8107 | CLVMD="$CLVMD,cman" | |
8108 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
8109 | CLVMD_NEEDS_QDISKD=yes | |
8110 | fi | |
8111 | if test x$HAVE_COROSYNC = xyes && \ | |
8112 | test x$HAVE_QUORUM = xyes && \ | |
8113 | test x$HAVE_CPG = xyes && \ | |
8114 | test x$HAVE_DLM = xyes && \ | |
8115 | test x$HAVE_CONFDB = xyes; then | |
8116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5 | |
8117 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
8118 | CLVMD="$CLVMD,corosync" | |
8119 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
8120 | fi | |
8121 | if test x$HAVE_COROSYNC = xyes && \ | |
8122 | test x$HAVE_CPG = xyes && \ | |
8123 | test x$HAVE_SALCK = xyes; then | |
8124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5 | |
8125 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
8126 | CLVMD="$CLVMD,openais" | |
8127 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
8128 | fi | |
8129 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
8130 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
8131 | fi | |
8132 | if test x$CLVMD = xnone; then | |
8133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5 | |
8134 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
8b1a3214 AK |
8135 | fi |
8136 | fi | |
8137 | ||
ad6254c5 | 8138 | ################################################################################ |
f11781c5 | 8139 | if test "x$CLVMD" != xnone; then |
ad6254c5 | 8140 | |
f11781c5 AK |
8141 | # Check whether --with-clvmd-pidfile was given. |
8142 | if test "${with_clvmd_pidfile+set}" = set; then : | |
8143 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
ad6254c5 | 8144 | else |
f11781c5 | 8145 | CLVMD_PIDFILE="/var/run/clvmd.pid" |
ad6254c5 | 8146 | fi |
7a197a62 | 8147 | |
ad6254c5 | 8148 | |
f11781c5 AK |
8149 | cat >>confdefs.h <<_ACEOF |
8150 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
ad6254c5 | 8151 | _ACEOF |
ad6254c5 | 8152 | |
ad6254c5 | 8153 | fi |
7a197a62 | 8154 | |
f11781c5 AK |
8155 | ################################################################################ |
8156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5 | |
8157 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
8158 | # Check whether --enable-cmirrord was given. | |
8159 | if test "${enable_cmirrord+set}" = set; then : | |
8160 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
8161 | else | |
8162 | CMIRRORD=no | |
8163 | fi | |
8164 | ||
8165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5 | |
8166 | $as_echo "$CMIRRORD" >&6; } | |
ad6254c5 | 8167 | |
f11781c5 | 8168 | BUILD_CMIRRORD=$CMIRRORD |
7a197a62 | 8169 | |
f11781c5 AK |
8170 | ################################################################################ |
8171 | if test "x$BUILD_CMIRRORD" = xyes; then | |
8172 | ||
8173 | # Check whether --with-cmirrord-pidfile was given. | |
8174 | if test "${with_cmirrord_pidfile+set}" = set; then : | |
8175 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval | |
ad6254c5 | 8176 | else |
f11781c5 | 8177 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
ad6254c5 | 8178 | fi |
ad6254c5 | 8179 | |
72b2cb61 | 8180 | |
f11781c5 AK |
8181 | cat >>confdefs.h <<_ACEOF |
8182 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
72b2cb61 AK |
8183 | _ACEOF |
8184 | ||
ad6254c5 AK |
8185 | fi |
8186 | ||
f11781c5 AK |
8187 | ################################################################################ |
8188 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
8189 | if test x$PKGCONFIG_INIT != x1; then | |
8190 | pkg_config_init | |
8191 | fi | |
ad6254c5 | 8192 | |
f11781c5 AK |
8193 | pkg_failed=no |
8194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5 | |
8195 | $as_echo_n "checking for SACKPT... " >&6; } | |
ad6254c5 | 8196 | |
f11781c5 AK |
8197 | if test -n "$SACKPT_CFLAGS"; then |
8198 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
8199 | elif test -n "$PKG_CONFIG"; then | |
8200 | if test -n "$PKG_CONFIG" && \ | |
8201 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8202 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
8203 | ac_status=$? | |
8204 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8205 | test $ac_status = 0; }; then | |
8206 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8207 | else |
f11781c5 AK |
8208 | pkg_failed=yes |
8209 | fi | |
8210 | else | |
8211 | pkg_failed=untried | |
8212 | fi | |
8213 | if test -n "$SACKPT_LIBS"; then | |
8214 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
8215 | elif test -n "$PKG_CONFIG"; then | |
8216 | if test -n "$PKG_CONFIG" && \ | |
8217 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8218 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
539f4a77 | 8219 | ac_status=$? |
f11781c5 AK |
8220 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8221 | test $ac_status = 0; }; then | |
8222 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8223 | else |
f11781c5 AK |
8224 | pkg_failed=yes |
8225 | fi | |
8226 | else | |
8227 | pkg_failed=untried | |
8228 | fi | |
539f4a77 ZK |
8229 | |
8230 | ||
539f4a77 | 8231 | |
f11781c5 AK |
8232 | if test $pkg_failed = yes; then |
8233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8234 | $as_echo "no" >&6; } | |
8235 | ||
8236 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8237 | _pkg_short_errors_supported=yes | |
539f4a77 | 8238 | else |
f11781c5 | 8239 | _pkg_short_errors_supported=no |
539f4a77 | 8240 | fi |
f11781c5 AK |
8241 | if test $_pkg_short_errors_supported = yes; then |
8242 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
8243 | else | |
8244 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
8245 | fi | |
8246 | # Put the nasty error message in config.log where it belongs | |
8247 | echo "$SACKPT_PKG_ERRORS" >&5 | |
8248 | ||
8249 | as_fn_error $? "Package requirements (libSaCkpt) were not met: | |
8250 | ||
8251 | $SACKPT_PKG_ERRORS | |
8252 | ||
8253 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8254 | installed software in a non-standard prefix. | |
8255 | ||
8256 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
8257 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8258 | See the pkg-config man page for more details." "$LINENO" 5 | |
8259 | ||
8260 | elif test $pkg_failed = untried; then | |
8261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8262 | $as_echo "no" >&6; } | |
8263 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8264 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8265 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8266 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8267 | path to pkg-config. | |
8268 | ||
8269 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
8270 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8271 | See the pkg-config man page for more details. | |
8272 | ||
8273 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8274 | See \`config.log' for more details" "$LINENO" 5; } | |
8275 | ||
539f4a77 | 8276 | else |
f11781c5 AK |
8277 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS |
8278 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
8279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8280 | $as_echo "yes" >&6; } | |
539f4a77 | 8281 | |
539f4a77 | 8282 | fi |
f11781c5 | 8283 | if test x$HAVE_CPG != xyes; then |
539f4a77 | 8284 | |
f11781c5 AK |
8285 | pkg_failed=no |
8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
8287 | $as_echo_n "checking for CPG... " >&6; } | |
ad6254c5 | 8288 | |
f11781c5 AK |
8289 | if test -n "$CPG_CFLAGS"; then |
8290 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
8291 | elif test -n "$PKG_CONFIG"; then | |
8292 | if test -n "$PKG_CONFIG" && \ | |
8293 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8294 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
ad6254c5 | 8295 | ac_status=$? |
f11781c5 AK |
8296 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8297 | test $ac_status = 0; }; then | |
8298 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
ad6254c5 | 8299 | else |
f11781c5 AK |
8300 | pkg_failed=yes |
8301 | fi | |
8302 | else | |
8303 | pkg_failed=untried | |
8304 | fi | |
8305 | if test -n "$CPG_LIBS"; then | |
8306 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8307 | elif test -n "$PKG_CONFIG"; then | |
8308 | if test -n "$PKG_CONFIG" && \ | |
8309 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8310 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
8311 | ac_status=$? | |
8312 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8313 | test $ac_status = 0; }; then | |
8314 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
8315 | else | |
8316 | pkg_failed=yes | |
8317 | fi | |
8318 | else | |
8319 | pkg_failed=untried | |
8320 | fi | |
8321 | ||
8322 | ||
8323 | ||
8324 | if test $pkg_failed = yes; then | |
8325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8326 | $as_echo "no" >&6; } | |
ad6254c5 | 8327 | |
f11781c5 AK |
8328 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
8329 | _pkg_short_errors_supported=yes | |
8330 | else | |
8331 | _pkg_short_errors_supported=no | |
ad6254c5 | 8332 | fi |
f11781c5 AK |
8333 | if test $_pkg_short_errors_supported = yes; then |
8334 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8335 | else | |
8336 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8337 | fi | |
8338 | # Put the nasty error message in config.log where it belongs | |
8339 | echo "$CPG_PKG_ERRORS" >&5 | |
8340 | ||
8341 | as_fn_error $? "Package requirements (libcpg) were not met: | |
8342 | ||
8343 | $CPG_PKG_ERRORS | |
8344 | ||
8345 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8346 | installed software in a non-standard prefix. | |
8347 | ||
8348 | Alternatively, you may set the environment variables CPG_CFLAGS | |
8349 | and CPG_LIBS to avoid the need to call pkg-config. | |
8350 | See the pkg-config man page for more details." "$LINENO" 5 | |
7a197a62 | 8351 | |
f11781c5 AK |
8352 | elif test $pkg_failed = untried; then |
8353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8354 | $as_echo "no" >&6; } | |
8355 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8356 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8357 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8358 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8359 | path to pkg-config. | |
539f4a77 | 8360 | |
f11781c5 AK |
8361 | Alternatively, you may set the environment variables CPG_CFLAGS |
8362 | and CPG_LIBS to avoid the need to call pkg-config. | |
8363 | See the pkg-config man page for more details. | |
539f4a77 | 8364 | |
f11781c5 AK |
8365 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
8366 | See \`config.log' for more details" "$LINENO" 5; } | |
bc1024f8 | 8367 | |
539f4a77 | 8368 | else |
f11781c5 AK |
8369 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS |
8370 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8372 | $as_echo "yes" >&6; } | |
bc1024f8 | 8373 | |
f11781c5 AK |
8374 | fi |
8375 | fi | |
8376 | fi | |
8377 | ||
8378 | ################################################################################ | |
8379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 | |
8380 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
8381 | # Check whether --enable-debug was given. | |
8382 | if test "${enable_debug+set}" = set; then : | |
8383 | enableval=$enable_debug; DEBUG=$enableval | |
ad6254c5 | 8384 | else |
f11781c5 AK |
8385 | DEBUG=no |
8386 | fi | |
8387 | ||
8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5 | |
8389 | $as_echo "$DEBUG" >&6; } | |
539f4a77 | 8390 | |
f11781c5 AK |
8391 | if test x$DEBUG = xyes; then |
8392 | COPTIMISE_FLAG= | |
8393 | else | |
8394 | CSCOPE_CMD= | |
06e459df JM |
8395 | fi |
8396 | ||
f11781c5 AK |
8397 | ################################################################################ |
8398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5 | |
8399 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
8400 | ||
8401 | # Check whether --with-optimisation was given. | |
8402 | if test "${with_optimisation+set}" = set; then : | |
8403 | withval=$with_optimisation; COPTIMISE_FLAG=$withval | |
539f4a77 | 8404 | fi |
539f4a77 | 8405 | |
f11781c5 AK |
8406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5 |
8407 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
539f4a77 | 8408 | |
f11781c5 AK |
8409 | ################################################################################ |
8410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5 | |
8411 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
8412 | # Check whether --enable-profiling was given. | |
8413 | if test "${enable_profiling+set}" = set; then : | |
8414 | enableval=$enable_profiling; PROFILING=$enableval | |
8415 | else | |
8416 | PROFILING=no | |
539f4a77 ZK |
8417 | fi |
8418 | ||
f11781c5 AK |
8419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5 |
8420 | $as_echo "$PROFILING" >&6; } | |
8421 | ||
8422 | if test "x$PROFILING" = xyes; then | |
8423 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8424 | # Extract the first word of "lcov", so it can be a program name with args. | |
8425 | set dummy lcov; ac_word=$2 | |
8426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8427 | $as_echo_n "checking for $ac_word... " >&6; } | |
8428 | if test "${ac_cv_path_LCOV+set}" = set; then : | |
8429 | $as_echo_n "(cached) " >&6 | |
539f4a77 | 8430 | else |
f11781c5 AK |
8431 | case $LCOV in |
8432 | [\\/]* | ?:[\\/]*) | |
8433 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8434 | ;; | |
8435 | *) | |
8436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8437 | for as_dir in $PATH | |
8438 | do | |
8439 | IFS=$as_save_IFS | |
8440 | test -z "$as_dir" && as_dir=. | |
8441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8443 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
8444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8445 | break 2 | |
8446 | fi | |
8447 | done | |
8448 | done | |
8449 | IFS=$as_save_IFS | |
539f4a77 | 8450 | |
f11781c5 AK |
8451 | ;; |
8452 | esac | |
8453 | fi | |
8454 | LCOV=$ac_cv_path_LCOV | |
8455 | if test -n "$LCOV"; then | |
8456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 | |
8457 | $as_echo "$LCOV" >&6; } | |
8458 | else | |
8459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8460 | $as_echo "no" >&6; } | |
539f4a77 ZK |
8461 | fi |
8462 | ||
bc1024f8 | 8463 | |
f11781c5 AK |
8464 | # Extract the first word of "genhtml", so it can be a program name with args. |
8465 | set dummy genhtml; ac_word=$2 | |
8466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8467 | $as_echo_n "checking for $ac_word... " >&6; } | |
8468 | if test "${ac_cv_path_GENHTML+set}" = set; then : | |
ec6a6fbe | 8469 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8470 | else |
f11781c5 AK |
8471 | case $GENHTML in |
8472 | [\\/]* | ?:[\\/]*) | |
8473 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8474 | ;; | |
8475 | *) | |
8476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8477 | for as_dir in $PATH | |
8478 | do | |
8479 | IFS=$as_save_IFS | |
8480 | test -z "$as_dir" && as_dir=. | |
8481 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8482 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8483 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
8484 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8485 | break 2 | |
8486 | fi | |
8487 | done | |
8488 | done | |
8489 | IFS=$as_save_IFS | |
8a2fc586 | 8490 | |
f11781c5 AK |
8491 | ;; |
8492 | esac | |
8493 | fi | |
8494 | GENHTML=$ac_cv_path_GENHTML | |
8495 | if test -n "$GENHTML"; then | |
8496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 | |
8497 | $as_echo "$GENHTML" >&6; } | |
8498 | else | |
8499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8500 | $as_echo "no" >&6; } | |
8501 | fi | |
8a2fc586 | 8502 | |
8a2fc586 | 8503 | |
f11781c5 AK |
8504 | if test -z "$LCOV" -o -z "$GENHTML"; then |
8505 | as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5 | |
8506 | fi | |
8507 | # Extract the first word of "genpng", so it can be a program name with args. | |
8508 | set dummy genpng; ac_word=$2 | |
8509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8510 | $as_echo_n "checking for $ac_word... " >&6; } | |
8511 | if test "${ac_cv_path_GENPNG+set}" = set; then : | |
8512 | $as_echo_n "(cached) " >&6 | |
8513 | else | |
8514 | case $GENPNG in | |
8515 | [\\/]* | ?:[\\/]*) | |
8516 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
8517 | ;; | |
8518 | *) | |
8519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8520 | for as_dir in $PATH | |
8521 | do | |
8522 | IFS=$as_save_IFS | |
8523 | test -z "$as_dir" && as_dir=. | |
8524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8525 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8526 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
8527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8528 | break 2 | |
8529 | fi | |
8530 | done | |
8531 | done | |
8532 | IFS=$as_save_IFS | |
ad6254c5 | 8533 | |
f11781c5 | 8534 | ;; |
7a197a62 | 8535 | esac |
f11781c5 AK |
8536 | fi |
8537 | GENPNG=$ac_cv_path_GENPNG | |
8538 | if test -n "$GENPNG"; then | |
8539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5 | |
8540 | $as_echo "$GENPNG" >&6; } | |
ad6254c5 | 8541 | else |
f11781c5 AK |
8542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8543 | $as_echo "no" >&6; } | |
8544 | fi | |
8545 | ||
8546 | ||
8547 | if test -n "$GENPNG"; then | |
8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5 | |
8549 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
8550 | if $GENPNG --help > /dev/null 2>&1 ; then | |
8551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
8552 | $as_echo "ok" >&6; } | |
8553 | GENHTML="$GENHTML --frames" | |
8554 | else | |
8555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 | |
8556 | $as_echo "not supported" >&6; } | |
8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5 | |
8558 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
8559 | GENPNG= | |
8560 | fi | |
8561 | fi | |
8562 | fi | |
ad6254c5 | 8563 | |
f11781c5 AK |
8564 | ################################################################################ |
8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5 | |
8566 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
8567 | # Check whether --enable-testing was given. | |
8568 | if test "${enable_testing+set}" = set; then : | |
8569 | enableval=$enable_testing; TESTING=$enableval | |
8570 | else | |
8571 | TESTING=no | |
ad6254c5 | 8572 | fi |
7a197a62 | 8573 | |
f11781c5 AK |
8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5 |
8575 | $as_echo "$TESTING" >&6; } | |
72b2cb61 | 8576 | |
f11781c5 AK |
8577 | if test "$TESTING" = yes; then |
8578 | # Extract the first word of "ruby1.9", so it can be a program name with args. | |
8579 | set dummy ruby1.9; ac_word=$2 | |
8580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8581 | $as_echo_n "checking for $ac_word... " >&6; } | |
8582 | if test "${ac_cv_path_RUBY19+set}" = set; then : | |
8583 | $as_echo_n "(cached) " >&6 | |
8584 | else | |
8585 | case $RUBY19 in | |
8586 | [\\/]* | ?:[\\/]*) | |
8587 | ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path. | |
8588 | ;; | |
8589 | *) | |
8590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8591 | for as_dir in $PATH | |
8592 | do | |
8593 | IFS=$as_save_IFS | |
8594 | test -z "$as_dir" && as_dir=. | |
8595 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8596 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8597 | ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext" | |
8598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8599 | break 2 | |
8600 | fi | |
bc1024f8 | 8601 | done |
f11781c5 AK |
8602 | done |
8603 | IFS=$as_save_IFS | |
ad6254c5 | 8604 | |
f11781c5 AK |
8605 | ;; |
8606 | esac | |
ad6254c5 | 8607 | fi |
f11781c5 AK |
8608 | RUBY19=$ac_cv_path_RUBY19 |
8609 | if test -n "$RUBY19"; then | |
8610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5 | |
8611 | $as_echo "$RUBY19" >&6; } | |
ad6254c5 | 8612 | else |
f11781c5 AK |
8613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8614 | $as_echo "no" >&6; } | |
7a197a62 AK |
8615 | fi |
8616 | ||
ad6254c5 | 8617 | |
f11781c5 AK |
8618 | # Extract the first word of "valgrind", so it can be a program name with args. |
8619 | set dummy valgrind; ac_word=$2 | |
8620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
ec6a6fbe | 8621 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 8622 | if test "${ac_cv_path_VALGRIND+set}" = set; then : |
ec6a6fbe | 8623 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8624 | else |
f11781c5 | 8625 | case $VALGRIND in |
ad6254c5 | 8626 | [\\/]* | ?:[\\/]*) |
f11781c5 | 8627 | ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. |
ad6254c5 AK |
8628 | ;; |
8629 | *) | |
8630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8631 | for as_dir in $PATH | |
8632 | do | |
8633 | IFS=$as_save_IFS | |
8634 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 8635 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 8636 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
8637 | ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext" |
8638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
ad6254c5 AK |
8639 | break 2 |
8640 | fi | |
8641 | done | |
f11781c5 | 8642 | done |
7a197a62 | 8643 | IFS=$as_save_IFS |
ad6254c5 AK |
8644 | |
8645 | ;; | |
8646 | esac | |
8647 | fi | |
f11781c5 AK |
8648 | VALGRIND=$ac_cv_path_VALGRIND |
8649 | if test -n "$VALGRIND"; then | |
8650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 | |
8651 | $as_echo "$VALGRIND" >&6; } | |
ad6254c5 | 8652 | else |
f11781c5 | 8653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 8654 | $as_echo "no" >&6; } |
ad6254c5 AK |
8655 | fi |
8656 | ||
7a197a62 | 8657 | |
f11781c5 AK |
8658 | if test -z "$RUBY19" -o -z "$VALGRIND"; then |
8659 | as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5 | |
8660 | fi | |
8661 | fi | |
ad6254c5 | 8662 | |
f11781c5 AK |
8663 | ################################################################################ |
8664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5 | |
8665 | $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; } | |
8666 | # Check whether --enable-valgrind_pool was given. | |
8667 | if test "${enable_valgrind_pool+set}" = set; then : | |
8668 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval | |
8669 | else | |
8670 | VALGRIND_POOL=no | |
8671 | fi | |
8672 | ||
8673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5 | |
8674 | $as_echo "$VALGRIND_POOL" >&6; } | |
8675 | ||
8676 | if test "$VALGRIND_POOL" = yes; then | |
8677 | for ac_header in valgrind/memcheck.h | |
8678 | do : | |
8679 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" | |
8680 | if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then : | |
8681 | cat >>confdefs.h <<_ACEOF | |
8682 | #define HAVE_VALGRIND_MEMCHECK_H 1 | |
8683 | _ACEOF | |
ad6254c5 | 8684 | |
ad6254c5 | 8685 | else |
f11781c5 | 8686 | as_fn_error $? "bailing out" "$LINENO" 5 |
7a197a62 AK |
8687 | fi |
8688 | ||
f11781c5 AK |
8689 | done |
8690 | ||
8691 | ||
8692 | $as_echo "#define VALGRIND_POOL 1" >>confdefs.h | |
8693 | ||
ad6254c5 AK |
8694 | fi |
8695 | ||
8696 | ################################################################################ | |
f11781c5 AK |
8697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5 |
8698 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
8699 | # Check whether --enable-devmapper was given. | |
8700 | if test "${enable_devmapper+set}" = set; then : | |
8701 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
7a197a62 AK |
8702 | fi |
8703 | ||
f11781c5 AK |
8704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5 |
8705 | $as_echo "$DEVMAPPER" >&6; } | |
ad6254c5 | 8706 | |
f11781c5 | 8707 | if test x$DEVMAPPER = xyes; then |
ad6254c5 | 8708 | |
f11781c5 AK |
8709 | $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h |
8710 | ||
8711 | fi | |
8712 | ||
8713 | ################################################################################ | |
8714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5 | |
8715 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
8716 | # Check whether --enable-udev_sync was given. | |
8717 | if test "${enable_udev_sync+set}" = set; then : | |
8718 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
ad6254c5 | 8719 | else |
f11781c5 | 8720 | UDEV_SYNC=no |
7a197a62 | 8721 | fi |
ad6254c5 | 8722 | |
f11781c5 AK |
8723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5 |
8724 | $as_echo "$UDEV_SYNC" >&6; } | |
33f732c5 | 8725 | |
f11781c5 AK |
8726 | if test x$UDEV_SYNC = xyes; then |
8727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
8728 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
8729 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then : | |
8730 | $as_echo_n "(cached) " >&6 | |
8731 | else | |
8732 | ac_check_lib_save_LIBS=$LIBS | |
8733 | LIBS="-ludev $LIBS" | |
8734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8735 | /* end confdefs.h. */ | |
7a197a62 | 8736 | |
f11781c5 AK |
8737 | /* Override any GCC internal prototype to avoid an error. |
8738 | Use char because int might match the return type of a GCC | |
8739 | builtin and then its argument prototype would still apply. */ | |
8740 | #ifdef __cplusplus | |
8741 | extern "C" | |
8742 | #endif | |
8743 | char udev_queue_get_udev_is_active (); | |
8744 | int | |
8745 | main () | |
8746 | { | |
8747 | return udev_queue_get_udev_is_active (); | |
8748 | ; | |
8749 | return 0; | |
8750 | } | |
8751 | _ACEOF | |
8752 | if ac_fn_c_try_link "$LINENO"; then : | |
8753 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
68f2de6d | 8754 | else |
f11781c5 AK |
8755 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no |
8756 | fi | |
8757 | rm -f core conftest.err conftest.$ac_objext \ | |
8758 | conftest$ac_exeext conftest.$ac_ext | |
8759 | LIBS=$ac_check_lib_save_LIBS | |
8760 | fi | |
8761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
8762 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
8763 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then : | |
8764 | UDEV_PC="libudev"; UDEV_LIBS="-ludev" | |
8765 | else | |
8766 | as_fn_error $? "bailing out... libudev library is required" "$LINENO" 5 | |
68f2de6d AK |
8767 | fi |
8768 | ||
8769 | ||
f11781c5 | 8770 | $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h |
68f2de6d | 8771 | |
f11781c5 AK |
8772 | fi |
8773 | ||
8774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
8775 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
8776 | # Check whether --enable-udev_rules was given. | |
8777 | if test "${enable_udev_rules+set}" = set; then : | |
8778 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
68f2de6d | 8779 | else |
f11781c5 | 8780 | UDEV_RULES=$UDEV_SYNC |
68f2de6d AK |
8781 | fi |
8782 | ||
f11781c5 AK |
8783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5 |
8784 | $as_echo "$UDEV_RULES" >&6; } | |
68f2de6d | 8785 | |
a5f46f6a | 8786 | ################################################################################ |
f11781c5 AK |
8787 | # Check whether --enable-compat was given. |
8788 | if test "${enable_compat+set}" = set; then : | |
8789 | enableval=$enable_compat; DM_COMPAT=$enableval | |
8790 | else | |
8791 | DM_COMPAT=no | |
8792 | fi | |
a5f46f6a | 8793 | |
f11781c5 AK |
8794 | |
8795 | ################################################################################ | |
8796 | # Check whether --enable-units-compat was given. | |
8797 | if test "${enable_units_compat+set}" = set; then : | |
8798 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
a5f46f6a | 8799 | else |
f11781c5 | 8800 | UNITS_COMPAT=no |
a5f46f6a AK |
8801 | fi |
8802 | ||
8803 | ||
f11781c5 | 8804 | if test x$UNITS_COMPAT = xyes; then |
78ce7acc | 8805 | |
f11781c5 AK |
8806 | $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h |
8807 | ||
8808 | fi | |
8809 | ||
8810 | ################################################################################ | |
8811 | # Check whether --enable-ioctl was given. | |
8812 | if test "${enable_ioctl+set}" = set; then : | |
8813 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
78ce7acc AK |
8814 | fi |
8815 | ||
a5f46f6a | 8816 | |
ad6254c5 | 8817 | ################################################################################ |
f11781c5 AK |
8818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5 |
8819 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
8820 | # Check whether --enable-o_direct was given. | |
8821 | if test "${enable_o_direct+set}" = set; then : | |
8822 | enableval=$enable_o_direct; ODIRECT=$enableval | |
8823 | fi | |
ad6254c5 | 8824 | |
f11781c5 AK |
8825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5 |
8826 | $as_echo "$ODIRECT" >&6; } | |
8827 | ||
8828 | if test x$ODIRECT = xyes; then | |
8829 | ||
8830 | $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h | |
ad6254c5 | 8831 | |
ad6254c5 | 8832 | fi |
ad6254c5 | 8833 | |
f11781c5 AK |
8834 | ################################################################################ |
8835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5 | |
8836 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
8837 | # Check whether --enable-applib was given. | |
8838 | if test "${enable_applib+set}" = set; then : | |
8839 | enableval=$enable_applib; APPLIB=$enableval | |
8840 | else | |
8841 | APPLIB=no | |
ad6254c5 | 8842 | fi |
7a197a62 | 8843 | |
f11781c5 AK |
8844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5 |
8845 | $as_echo "$APPLIB" >&6; } | |
ad6254c5 | 8846 | |
f11781c5 AK |
8847 | test x$APPLIB = xyes \ |
8848 | && LVM2APP_LIB=-llvm2app \ | |
8849 | || LVM2APP_LIB= | |
ad6254c5 | 8850 | |
f11781c5 AK |
8851 | ################################################################################ |
8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5 | |
8853 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
8854 | # Check whether --enable-cmdlib was given. | |
8855 | if test "${enable_cmdlib+set}" = set; then : | |
8856 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
8857 | else | |
8858 | CMDLIB=no | |
ad6254c5 | 8859 | fi |
7a197a62 | 8860 | |
f11781c5 AK |
8861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5 |
8862 | $as_echo "$CMDLIB" >&6; } | |
7a197a62 | 8863 | |
f11781c5 AK |
8864 | test x$CMDLIB = xyes \ |
8865 | && LVM2CMD_LIB=-llvm2cmd \ | |
8866 | || LVM2CMD_LIB= | |
8867 | ||
8868 | ################################################################################ | |
8869 | # Check whether --enable-pkgconfig was given. | |
8870 | if test "${enable_pkgconfig+set}" = set; then : | |
8871 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
ad6254c5 | 8872 | else |
f11781c5 | 8873 | PKGCONFIG=no |
ad6254c5 | 8874 | fi |
ad6254c5 | 8875 | |
ad6254c5 | 8876 | |
f11781c5 AK |
8877 | ################################################################################ |
8878 | # Check whether --enable-write_install was given. | |
8879 | if test "${enable_write_install+set}" = set; then : | |
8880 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
ad6254c5 | 8881 | else |
f11781c5 | 8882 | WRITE_INSTALL=no |
ad6254c5 AK |
8883 | fi |
8884 | ||
ad6254c5 | 8885 | |
f11781c5 AK |
8886 | ################################################################################ |
8887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5 | |
8888 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
8889 | # Check whether --enable-fsadm was given. | |
8890 | if test "${enable_fsadm+set}" = set; then : | |
8891 | enableval=$enable_fsadm; FSADM=$enableval | |
ad6254c5 AK |
8892 | fi |
8893 | ||
f11781c5 AK |
8894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5 |
8895 | $as_echo "$FSADM" >&6; } | |
ad6254c5 | 8896 | |
f11781c5 AK |
8897 | ################################################################################ |
8898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5 | |
8899 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
8900 | # Check whether --enable-dmeventd was given. | |
8901 | if test "${enable_dmeventd+set}" = set; then : | |
8902 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
8903 | fi | |
ad6254c5 | 8904 | |
f11781c5 AK |
8905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5 |
8906 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 8907 | |
f11781c5 | 8908 | BUILD_DMEVENTD=$DMEVENTD |
ad6254c5 | 8909 | |
f11781c5 AK |
8910 | if test x$DMEVENTD = xyes; then |
8911 | if test x$MIRRORS != xinternal; then | |
8912 | as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal | |
8913 | " "$LINENO" 5 | |
8914 | fi | |
8915 | if test x$CMDLIB = xno; then | |
8916 | as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well | |
8917 | " "$LINENO" 5 | |
8918 | fi | |
8919 | fi | |
ad6254c5 | 8920 | |
f11781c5 | 8921 | if test x$DMEVENTD = xyes; then |
ad6254c5 | 8922 | |
f11781c5 | 8923 | $as_echo "#define DMEVENTD 1" >>confdefs.h |
ad6254c5 | 8924 | |
f11781c5 | 8925 | fi |
ad6254c5 | 8926 | |
f11781c5 | 8927 | ################################################################################ |
ad6254c5 | 8928 | |
f11781c5 AK |
8929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5 |
8930 | $as_echo_n "checking for getline in -lc... " >&6; } | |
8931 | if test "${ac_cv_lib_c_getline+set}" = set; then : | |
ec6a6fbe | 8932 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8933 | else |
f11781c5 AK |
8934 | ac_check_lib_save_LIBS=$LIBS |
8935 | LIBS="-lc $LIBS" | |
8936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 8937 | /* end confdefs.h. */ |
f11781c5 AK |
8938 | |
8939 | /* Override any GCC internal prototype to avoid an error. | |
8940 | Use char because int might match the return type of a GCC | |
8941 | builtin and then its argument prototype would still apply. */ | |
8942 | #ifdef __cplusplus | |
8943 | extern "C" | |
8944 | #endif | |
8945 | char getline (); | |
8946 | int | |
8947 | main () | |
8948 | { | |
8949 | return getline (); | |
8950 | ; | |
8951 | return 0; | |
8952 | } | |
ad6254c5 | 8953 | _ACEOF |
f11781c5 AK |
8954 | if ac_fn_c_try_link "$LINENO"; then : |
8955 | ac_cv_lib_c_getline=yes | |
ad6254c5 | 8956 | else |
f11781c5 AK |
8957 | ac_cv_lib_c_getline=no |
8958 | fi | |
8959 | rm -f core conftest.err conftest.$ac_objext \ | |
8960 | conftest$ac_exeext conftest.$ac_ext | |
8961 | LIBS=$ac_check_lib_save_LIBS | |
8962 | fi | |
8963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5 | |
8964 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
8965 | if test "x$ac_cv_lib_c_getline" = x""yes; then : | |
8966 | ||
8967 | $as_echo "#define HAVE_GETLINE 1" >>confdefs.h | |
ad6254c5 | 8968 | |
ad6254c5 | 8969 | fi |
7a197a62 | 8970 | |
ad6254c5 | 8971 | |
f11781c5 AK |
8972 | ################################################################################ |
8973 | ||
8974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5 | |
8975 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
8976 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then : | |
8977 | $as_echo_n "(cached) " >&6 | |
8978 | else | |
8979 | ac_check_lib_save_LIBS=$LIBS | |
8980 | LIBS="-lc $LIBS" | |
8981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 8982 | /* end confdefs.h. */ |
f11781c5 AK |
8983 | |
8984 | /* Override any GCC internal prototype to avoid an error. | |
8985 | Use char because int might match the return type of a GCC | |
8986 | builtin and then its argument prototype would still apply. */ | |
8987 | #ifdef __cplusplus | |
8988 | extern "C" | |
8989 | #endif | |
8990 | char canonicalize_file_name (); | |
8991 | int | |
8992 | main () | |
8993 | { | |
8994 | return canonicalize_file_name (); | |
8995 | ; | |
8996 | return 0; | |
8997 | } | |
ad6254c5 | 8998 | _ACEOF |
f11781c5 AK |
8999 | if ac_fn_c_try_link "$LINENO"; then : |
9000 | ac_cv_lib_c_canonicalize_file_name=yes | |
ad6254c5 | 9001 | else |
f11781c5 AK |
9002 | ac_cv_lib_c_canonicalize_file_name=no |
9003 | fi | |
9004 | rm -f core conftest.err conftest.$ac_objext \ | |
9005 | conftest$ac_exeext conftest.$ac_ext | |
9006 | LIBS=$ac_check_lib_save_LIBS | |
9007 | fi | |
9008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5 | |
9009 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9010 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then : | |
9011 | ||
9012 | $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h | |
ad6254c5 | 9013 | |
ad6254c5 | 9014 | fi |
7a197a62 | 9015 | |
ad6254c5 | 9016 | |
f11781c5 AK |
9017 | ################################################################################ |
9018 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9019 | then exec_prefix=""; | |
9020 | fi; | |
7a197a62 | 9021 | |
f11781c5 AK |
9022 | ################################################################################ |
9023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9024 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9025 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
ec6a6fbe | 9026 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9027 | else |
f11781c5 AK |
9028 | ac_check_lib_save_LIBS=$LIBS |
9029 | LIBS="-ldl $LIBS" | |
9030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9031 | /* end confdefs.h. */ | |
ad6254c5 | 9032 | |
f11781c5 AK |
9033 | /* Override any GCC internal prototype to avoid an error. |
9034 | Use char because int might match the return type of a GCC | |
9035 | builtin and then its argument prototype would still apply. */ | |
9036 | #ifdef __cplusplus | |
9037 | extern "C" | |
9038 | #endif | |
9039 | char dlopen (); | |
9040 | int | |
9041 | main () | |
9042 | { | |
9043 | return dlopen (); | |
9044 | ; | |
9045 | return 0; | |
9046 | } | |
ad6254c5 | 9047 | _ACEOF |
f11781c5 AK |
9048 | if ac_fn_c_try_link "$LINENO"; then : |
9049 | ac_cv_lib_dl_dlopen=yes | |
ad6254c5 | 9050 | else |
f11781c5 | 9051 | ac_cv_lib_dl_dlopen=no |
795ca3e5 | 9052 | fi |
f11781c5 AK |
9053 | rm -f core conftest.err conftest.$ac_objext \ |
9054 | conftest$ac_exeext conftest.$ac_ext | |
9055 | LIBS=$ac_check_lib_save_LIBS | |
9056 | fi | |
9057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9058 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9059 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
795ca3e5 | 9060 | |
ad6254c5 | 9061 | |
f11781c5 | 9062 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
ad6254c5 | 9063 | |
f11781c5 AK |
9064 | DL_LIBS="-ldl" |
9065 | HAVE_LIBDL=yes | |
9066 | else | |
795ca3e5 | 9067 | |
f11781c5 AK |
9068 | DL_LIBS= |
9069 | HAVE_LIBDL=no | |
9070 | fi | |
8106cdd5 | 9071 | |
ad6254c5 | 9072 | |
f11781c5 AK |
9073 | ################################################################################ |
9074 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9075 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
9076 | \) -a "x$STATIC_LINK" = xyes ]; | |
9077 | then as_fn_error $? "Features cannot be 'shared' when building statically | |
9078 | " "$LINENO" 5 | |
9079 | fi | |
ad6254c5 | 9080 | |
f11781c5 AK |
9081 | ################################################################################ |
9082 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 | |
9084 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
9085 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then : | |
ec6a6fbe | 9086 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9087 | else |
f11781c5 AK |
9088 | ac_check_lib_save_LIBS=$LIBS |
9089 | LIBS="-lpthread $LIBS" | |
9090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9091 | /* end confdefs.h. */ |
8a2fc586 | 9092 | |
f11781c5 AK |
9093 | /* Override any GCC internal prototype to avoid an error. |
9094 | Use char because int might match the return type of a GCC | |
9095 | builtin and then its argument prototype would still apply. */ | |
9096 | #ifdef __cplusplus | |
9097 | extern "C" | |
ad6254c5 | 9098 | #endif |
f11781c5 AK |
9099 | char pthread_mutex_lock (); |
9100 | int | |
9101 | main () | |
9102 | { | |
9103 | return pthread_mutex_lock (); | |
9104 | ; | |
9105 | return 0; | |
9106 | } | |
9107 | _ACEOF | |
9108 | if ac_fn_c_try_link "$LINENO"; then : | |
9109 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
9110 | else | |
9111 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
9112 | fi | |
9113 | rm -f core conftest.err conftest.$ac_objext \ | |
9114 | conftest$ac_exeext conftest.$ac_ext | |
9115 | LIBS=$ac_check_lib_save_LIBS | |
9116 | fi | |
9117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
9118 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
9119 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then : | |
9120 | PTHREAD_LIBS="-lpthread" | |
9121 | else | |
9122 | hard_bailout | |
9123 | fi | |
9124 | ||
9125 | fi | |
9126 | ||
9127 | ################################################################################ | |
9128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5 | |
9129 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
9130 | # Check whether --enable-selinux was given. | |
9131 | if test "${enable_selinux+set}" = set; then : | |
9132 | enableval=$enable_selinux; SELINUX=$enableval | |
9133 | fi | |
9134 | ||
9135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5 | |
9136 | $as_echo "$SELINUX" >&6; } | |
8a2fc586 | 9137 | |
f11781c5 AK |
9138 | ################################################################################ |
9139 | if test x$SELINUX = xyes; then | |
9140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5 | |
9141 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
9142 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then : | |
9143 | $as_echo_n "(cached) " >&6 | |
9144 | else | |
9145 | ac_check_lib_save_LIBS=$LIBS | |
9146 | LIBS="-lsepol $LIBS" | |
9147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9148 | /* end confdefs.h. */ | |
8a2fc586 | 9149 | |
7a197a62 AK |
9150 | /* Override any GCC internal prototype to avoid an error. |
9151 | Use char because int might match the return type of a GCC | |
9152 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9153 | #ifdef __cplusplus |
9154 | extern "C" | |
ad6254c5 | 9155 | #endif |
f11781c5 | 9156 | char sepol_check_context (); |
ad6254c5 AK |
9157 | int |
9158 | main () | |
9159 | { | |
f11781c5 | 9160 | return sepol_check_context (); |
ad6254c5 AK |
9161 | ; |
9162 | return 0; | |
9163 | } | |
9164 | _ACEOF | |
f11781c5 AK |
9165 | if ac_fn_c_try_link "$LINENO"; then : |
9166 | ac_cv_lib_sepol_sepol_check_context=yes | |
795ca3e5 | 9167 | else |
f11781c5 AK |
9168 | ac_cv_lib_sepol_sepol_check_context=no |
9169 | fi | |
9170 | rm -f core conftest.err conftest.$ac_objext \ | |
9171 | conftest$ac_exeext conftest.$ac_ext | |
9172 | LIBS=$ac_check_lib_save_LIBS | |
80992638 | 9173 | fi |
f11781c5 AK |
9174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9175 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
9176 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then : | |
7a197a62 | 9177 | |
80992638 | 9178 | |
f11781c5 AK |
9179 | $as_echo "#define HAVE_SEPOL 1" >>confdefs.h |
9180 | ||
9181 | SELINUX_LIBS="-lsepol" | |
8106cdd5 | 9182 | fi |
795ca3e5 | 9183 | |
f11781c5 AK |
9184 | |
9185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 | |
9186 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
9187 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then : | |
ec6a6fbe | 9188 | $as_echo_n "(cached) " >&6 |
25fbec5b | 9189 | else |
f11781c5 AK |
9190 | ac_check_lib_save_LIBS=$LIBS |
9191 | LIBS="-lselinux $LIBS" | |
9192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25fbec5b | 9193 | /* end confdefs.h. */ |
80992638 | 9194 | |
7a197a62 AK |
9195 | /* Override any GCC internal prototype to avoid an error. |
9196 | Use char because int might match the return type of a GCC | |
ad6254c5 | 9197 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
9198 | #ifdef __cplusplus |
9199 | extern "C" | |
9200 | #endif | |
f11781c5 | 9201 | char is_selinux_enabled (); |
ad6254c5 AK |
9202 | int |
9203 | main () | |
9204 | { | |
f11781c5 | 9205 | return is_selinux_enabled (); |
ad6254c5 AK |
9206 | ; |
9207 | return 0; | |
9208 | } | |
9209 | _ACEOF | |
f11781c5 AK |
9210 | if ac_fn_c_try_link "$LINENO"; then : |
9211 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
25fbec5b | 9212 | else |
f11781c5 | 9213 | ac_cv_lib_selinux_is_selinux_enabled=no |
25fbec5b | 9214 | fi |
f11781c5 AK |
9215 | rm -f core conftest.err conftest.$ac_objext \ |
9216 | conftest$ac_exeext conftest.$ac_ext | |
9217 | LIBS=$ac_check_lib_save_LIBS | |
25fbec5b | 9218 | fi |
f11781c5 AK |
9219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9220 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
9221 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then : | |
25fbec5b | 9222 | |
f11781c5 AK |
9223 | for ac_header in selinux/selinux.h |
9224 | do : | |
9225 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | |
9226 | if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then : | |
9227 | cat >>confdefs.h <<_ACEOF | |
9228 | #define HAVE_SELINUX_SELINUX_H 1 | |
ad6254c5 | 9229 | _ACEOF |
795ca3e5 | 9230 | |
25fbec5b | 9231 | else |
f11781c5 | 9232 | hard_bailout |
795ca3e5 | 9233 | fi |
795ca3e5 | 9234 | |
f11781c5 | 9235 | done |
795ca3e5 | 9236 | |
f11781c5 AK |
9237 | for ac_header in selinux/label.h |
9238 | do : | |
9239 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default" | |
9240 | if test "x$ac_cv_header_selinux_label_h" = x""yes; then : | |
9241 | cat >>confdefs.h <<_ACEOF | |
9242 | #define HAVE_SELINUX_LABEL_H 1 | |
ad6254c5 | 9243 | _ACEOF |
ad6254c5 | 9244 | |
ad6254c5 | 9245 | fi |
7a197a62 | 9246 | |
f11781c5 | 9247 | done |
7a197a62 | 9248 | |
ad6254c5 | 9249 | |
f11781c5 | 9250 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h |
7a197a62 | 9251 | |
f11781c5 AK |
9252 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
9253 | SELINUX_PC="libselinux" | |
9254 | HAVE_SELINUX=yes | |
ad6254c5 | 9255 | else |
8106cdd5 | 9256 | |
f11781c5 AK |
9257 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5 |
9258 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
9259 | SELINUX_LIBS= | |
9260 | SELINUX_PC= | |
9261 | HAVE_SELINUX=no | |
795ca3e5 | 9262 | fi |
ad6254c5 | 9263 | |
795ca3e5 AK |
9264 | fi |
9265 | ||
f11781c5 AK |
9266 | ################################################################################ |
9267 | if test x$REALTIME = xyes; then | |
9268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
9269 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
9270 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
ec6a6fbe | 9271 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 9272 | else |
f11781c5 AK |
9273 | ac_check_lib_save_LIBS=$LIBS |
9274 | LIBS="-lrt $LIBS" | |
9275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9276 | /* end confdefs.h. */ |
ad6254c5 | 9277 | |
f11781c5 AK |
9278 | /* Override any GCC internal prototype to avoid an error. |
9279 | Use char because int might match the return type of a GCC | |
9280 | builtin and then its argument prototype would still apply. */ | |
9281 | #ifdef __cplusplus | |
9282 | extern "C" | |
9283 | #endif | |
9284 | char clock_gettime (); | |
ad6254c5 AK |
9285 | int |
9286 | main () | |
9287 | { | |
f11781c5 | 9288 | return clock_gettime (); |
ad6254c5 AK |
9289 | ; |
9290 | return 0; | |
9291 | } | |
9292 | _ACEOF | |
f11781c5 AK |
9293 | if ac_fn_c_try_link "$LINENO"; then : |
9294 | ac_cv_lib_rt_clock_gettime=yes | |
ad6254c5 | 9295 | else |
f11781c5 | 9296 | ac_cv_lib_rt_clock_gettime=no |
ad6254c5 | 9297 | fi |
f11781c5 AK |
9298 | rm -f core conftest.err conftest.$ac_objext \ |
9299 | conftest$ac_exeext conftest.$ac_ext | |
9300 | LIBS=$ac_check_lib_save_LIBS | |
26e7f2e0 | 9301 | fi |
f11781c5 AK |
9302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9303 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
9304 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
9305 | HAVE_REALTIME=yes | |
9306 | else | |
9307 | HAVE_REALTIME=no | |
8106cdd5 | 9308 | fi |
ad6254c5 | 9309 | |
ad6254c5 | 9310 | |
f11781c5 | 9311 | if test x$HAVE_REALTIME = xyes; then |
7a197a62 | 9312 | |
f11781c5 | 9313 | $as_echo "#define HAVE_REALTIME 1" >>confdefs.h |
ad6254c5 | 9314 | |
f11781c5 AK |
9315 | LIBS="-lrt $LIBS" |
9316 | else | |
9317 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5 | |
9318 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
9319 | fi | |
9320 | fi | |
9321 | ||
9322 | ################################################################################ | |
9323 | for ac_header in getopt.h | |
9324 | do : | |
9325 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
9326 | if test "x$ac_cv_header_getopt_h" = x""yes; then : | |
9327 | cat >>confdefs.h <<_ACEOF | |
9328 | #define HAVE_GETOPT_H 1 | |
9329 | _ACEOF | |
9330 | ||
9331 | $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h | |
ad6254c5 | 9332 | |
ad6254c5 | 9333 | fi |
7a197a62 | 9334 | |
f11781c5 | 9335 | done |
ad6254c5 | 9336 | |
7a197a62 | 9337 | |
f11781c5 AK |
9338 | ################################################################################ |
9339 | if test x$READLINE != xno; then | |
9340 | lvm_saved_libs=$LIBS | |
9341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
9342 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
9343 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ec6a6fbe | 9344 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9345 | else |
f11781c5 AK |
9346 | ac_func_search_save_LIBS=$LIBS |
9347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9348 | /* end confdefs.h. */ | |
ad6254c5 | 9349 | |
f11781c5 AK |
9350 | /* Override any GCC internal prototype to avoid an error. |
9351 | Use char because int might match the return type of a GCC | |
9352 | builtin and then its argument prototype would still apply. */ | |
9353 | #ifdef __cplusplus | |
9354 | extern "C" | |
9355 | #endif | |
9356 | char tgetent (); | |
9357 | int | |
9358 | main () | |
9359 | { | |
9360 | return tgetent (); | |
9361 | ; | |
9362 | return 0; | |
9363 | } | |
ad6254c5 | 9364 | _ACEOF |
f11781c5 AK |
9365 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
9366 | if test -z "$ac_lib"; then | |
9367 | ac_res="none required" | |
9368 | else | |
9369 | ac_res=-l$ac_lib | |
9370 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9371 | fi | |
9372 | if ac_fn_c_try_link "$LINENO"; then : | |
9373 | ac_cv_search_tgetent=$ac_res | |
9374 | fi | |
9375 | rm -f core conftest.err conftest.$ac_objext \ | |
9376 | conftest$ac_exeext | |
9377 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
9378 | break | |
9379 | fi | |
9380 | done | |
9381 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ad6254c5 | 9382 | |
80992638 | 9383 | else |
f11781c5 | 9384 | ac_cv_search_tgetent=no |
b896caa1 | 9385 | fi |
f11781c5 AK |
9386 | rm conftest.$ac_ext |
9387 | LIBS=$ac_func_search_save_LIBS | |
9388 | fi | |
9389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
9390 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
9391 | ac_res=$ac_cv_search_tgetent | |
9392 | if test "$ac_res" != no; then : | |
9393 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9394 | READLINE_LIBS=$ac_cv_search_tgetent | |
9395 | else | |
ad6254c5 | 9396 | |
f11781c5 AK |
9397 | if test "$READLINE" = yes; then |
9398 | as_fn_error $? "termcap could not be found which is required for the | |
9399 | --enable-readline option (which is enabled by default). Either disable readline | |
9400 | support with --disable-readline or download and install termcap from: | |
9401 | ftp.gnu.org/gnu/termcap | |
9402 | Note: if you are using precompiled packages you will also need the development | |
9403 | package as well (which may be called termcap-devel or something similar). | |
9404 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9405 | not found either - but you could try installing that as well." "$LINENO" 5 | |
9406 | fi | |
9407 | fi | |
b896caa1 | 9408 | |
f11781c5 AK |
9409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 |
9410 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
9411 | if test "${ac_cv_lib_readline_readline+set}" = set; then : | |
ec6a6fbe | 9412 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9413 | else |
f11781c5 AK |
9414 | ac_check_lib_save_LIBS=$LIBS |
9415 | LIBS="-lreadline $LIBS" | |
9416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9417 | /* end confdefs.h. */ |
8a2fc586 | 9418 | |
f11781c5 AK |
9419 | /* Override any GCC internal prototype to avoid an error. |
9420 | Use char because int might match the return type of a GCC | |
9421 | builtin and then its argument prototype would still apply. */ | |
9422 | #ifdef __cplusplus | |
9423 | extern "C" | |
ad6254c5 | 9424 | #endif |
f11781c5 AK |
9425 | char readline (); |
9426 | int | |
9427 | main () | |
9428 | { | |
9429 | return readline (); | |
9430 | ; | |
9431 | return 0; | |
9432 | } | |
9433 | _ACEOF | |
9434 | if ac_fn_c_try_link "$LINENO"; then : | |
9435 | ac_cv_lib_readline_readline=yes | |
9436 | else | |
9437 | ac_cv_lib_readline_readline=no | |
9438 | fi | |
9439 | rm -f core conftest.err conftest.$ac_objext \ | |
9440 | conftest$ac_exeext conftest.$ac_ext | |
9441 | LIBS=$ac_check_lib_save_LIBS | |
9442 | fi | |
9443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
9444 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
9445 | if test "x$ac_cv_lib_readline_readline" = x""yes; then : | |
9446 | ||
8a2fc586 | 9447 | |
f11781c5 AK |
9448 | $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h |
9449 | ||
9450 | LIBS=$lvm_saved_libs | |
9451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5 | |
9452 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
9453 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then : | |
9454 | $as_echo_n "(cached) " >&6 | |
9455 | else | |
9456 | ac_check_lib_save_LIBS=$LIBS | |
9457 | LIBS="-lreadline $LIBS" | |
9458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9459 | /* end confdefs.h. */ | |
8a2fc586 | 9460 | |
7a197a62 AK |
9461 | /* Override any GCC internal prototype to avoid an error. |
9462 | Use char because int might match the return type of a GCC | |
9463 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9464 | #ifdef __cplusplus |
9465 | extern "C" | |
ad6254c5 | 9466 | #endif |
f11781c5 | 9467 | char rl_line_buffer (); |
ad6254c5 AK |
9468 | int |
9469 | main () | |
9470 | { | |
f11781c5 | 9471 | return rl_line_buffer (); |
ad6254c5 AK |
9472 | ; |
9473 | return 0; | |
9474 | } | |
9475 | _ACEOF | |
f11781c5 AK |
9476 | if ac_fn_c_try_link "$LINENO"; then : |
9477 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 9478 | else |
f11781c5 AK |
9479 | ac_cv_lib_readline_rl_line_buffer=no |
9480 | fi | |
9481 | rm -f core conftest.err conftest.$ac_objext \ | |
9482 | conftest$ac_exeext conftest.$ac_ext | |
9483 | LIBS=$ac_check_lib_save_LIBS | |
9484 | fi | |
9485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
9486 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
9487 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then : | |
9488 | READLINE_LIBS="-lreadline" | |
9489 | else | |
9490 | ||
9491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
9492 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
9493 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
ad6254c5 | 9494 | |
ad6254c5 | 9495 | fi |
7a197a62 | 9496 | |
f11781c5 AK |
9497 | else |
9498 | ||
9499 | READLINE_LIBS= | |
9500 | if test "$READLINE" = yes; then | |
9501 | as_fn_error $? "GNU Readline could not be found which is required for the | |
9502 | --enable-readline option (which is enabled by default). Either disable readline | |
9503 | support with --disable-readline or download and install readline from: | |
9504 | ftp.gnu.org/gnu/readline | |
9505 | Note: if you are using precompiled packages you will also need the development | |
9506 | package as well (which may be called readline-devel or something similar)." "$LINENO" 5 | |
9507 | fi | |
ad6254c5 | 9508 | fi |
f11781c5 AK |
9509 | |
9510 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
9511 | for ac_func in rl_completion_matches | |
9512 | do : | |
9513 | ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" | |
9514 | if test "x$ac_cv_func_rl_completion_matches" = x""yes; then : | |
ad6254c5 | 9515 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 9516 | #define HAVE_RL_COMPLETION_MATCHES 1 |
ad6254c5 AK |
9517 | _ACEOF |
9518 | ||
ad6254c5 AK |
9519 | fi |
9520 | done | |
9521 | ||
f11781c5 | 9522 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
9523 | fi |
9524 | ||
f11781c5 AK |
9525 | ################################################################################ |
9526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5 | |
9527 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
9528 | # Check whether --enable-nls was given. | |
9529 | if test "${enable_nls+set}" = set; then : | |
9530 | enableval=$enable_nls; INTL=$enableval | |
9531 | else | |
9532 | INTL=no | |
9533 | fi | |
d911ec67 | 9534 | |
f11781c5 AK |
9535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5 |
9536 | $as_echo "$INTL" >&6; } | |
9537 | ||
9538 | if test x$INTL = xyes; then | |
9539 | # FIXME - Move this - can be device-mapper too | |
9540 | INTL_PACKAGE="lvm2" | |
9541 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9542 | set dummy msgfmt; ac_word=$2 | |
9543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9544 | $as_echo_n "checking for $ac_word... " >&6; } | |
9545 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
d911ec67 | 9546 | $as_echo_n "(cached) " >&6 |
d911ec67 | 9547 | else |
f11781c5 AK |
9548 | case $MSGFMT in |
9549 | [\\/]* | ?:[\\/]*) | |
9550 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9551 | ;; | |
9552 | *) | |
9553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9554 | for as_dir in $PATH | |
9555 | do | |
9556 | IFS=$as_save_IFS | |
9557 | test -z "$as_dir" && as_dir=. | |
9558 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9559 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9560 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
9561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9562 | break 2 | |
9563 | fi | |
9564 | done | |
9565 | done | |
9566 | IFS=$as_save_IFS | |
9567 | ||
9568 | ;; | |
d911ec67 | 9569 | esac |
f11781c5 AK |
9570 | fi |
9571 | MSGFMT=$ac_cv_path_MSGFMT | |
9572 | if test -n "$MSGFMT"; then | |
9573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
9574 | $as_echo "$MSGFMT" >&6; } | |
d911ec67 | 9575 | else |
f11781c5 AK |
9576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9577 | $as_echo "no" >&6; } | |
9578 | fi | |
d911ec67 | 9579 | |
f11781c5 AK |
9580 | |
9581 | if [ "x$MSGFMT" == x ]; | |
9582 | then as_fn_error $? "msgfmt not found in path $PATH | |
9583 | " "$LINENO" 5 | |
9584 | fi; | |
9585 | ||
9586 | ||
9587 | # Check whether --with-localedir was given. | |
9588 | if test "${with_localedir+set}" = set; then : | |
9589 | withval=$with_localedir; LOCALEDIR=$withval | |
9590 | else | |
9591 | LOCALEDIR='${prefix}/share/locale' | |
9592 | fi | |
9593 | ||
9594 | fi | |
9595 | ||
9596 | ################################################################################ | |
9597 | ||
9598 | # Check whether --with-confdir was given. | |
9599 | if test "${with_confdir+set}" = set; then : | |
9600 | withval=$with_confdir; CONFDIR=$withval | |
9601 | else | |
9602 | CONFDIR="/etc" | |
9603 | fi | |
9604 | ||
9605 | ||
9606 | ||
9607 | # Check whether --with-staticdir was given. | |
9608 | if test "${with_staticdir+set}" = set; then : | |
9609 | withval=$with_staticdir; STATICDIR=$withval | |
9610 | else | |
9611 | STATICDIR='${exec_prefix}/sbin' | |
9612 | fi | |
9613 | ||
9614 | ||
9615 | ||
9616 | # Check whether --with-usrlibdir was given. | |
9617 | if test "${with_usrlibdir+set}" = set; then : | |
9618 | withval=$with_usrlibdir; usrlibdir=$withval | |
9619 | else | |
9620 | usrlibdir='${prefix}/lib' | |
d911ec67 AK |
9621 | fi |
9622 | ||
d911ec67 | 9623 | |
d911ec67 | 9624 | |
f11781c5 AK |
9625 | # Check whether --with-usrsbindir was given. |
9626 | if test "${with_usrsbindir+set}" = set; then : | |
9627 | withval=$with_usrsbindir; usrsbindir=$withval | |
9628 | else | |
9629 | usrsbindir='${prefix}/sbin' | |
d911ec67 AK |
9630 | fi |
9631 | ||
d911ec67 | 9632 | |
f11781c5 | 9633 | ################################################################################ |
d911ec67 | 9634 | |
f11781c5 AK |
9635 | # Check whether --with-udev_prefix was given. |
9636 | if test "${with_udev_prefix+set}" = set; then : | |
9637 | withval=$with_udev_prefix; udev_prefix=$withval | |
d911ec67 | 9638 | else |
f11781c5 | 9639 | udev_prefix='${exec_prefix}' |
d911ec67 | 9640 | fi |
d911ec67 | 9641 | |
f11781c5 AK |
9642 | |
9643 | ||
9644 | # Check whether --with-udevdir was given. | |
9645 | if test "${with_udevdir+set}" = set; then : | |
9646 | withval=$with_udevdir; udevdir=$withval | |
9647 | else | |
9648 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
d911ec67 | 9649 | fi |
f11781c5 AK |
9650 | |
9651 | ||
9652 | ################################################################################ | |
9653 | if test x$READLINE = xyes; then | |
9654 | for ac_header in readline/readline.h readline/history.h | |
9655 | do : | |
9656 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9657 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9658 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
d911ec67 AK |
9659 | cat >>confdefs.h <<_ACEOF |
9660 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9661 | _ACEOF | |
9662 | ||
9663 | else | |
f11781c5 | 9664 | as_fn_error $? "bailing out" "$LINENO" 5 |
d911ec67 AK |
9665 | fi |
9666 | ||
9667 | done | |
9668 | ||
9669 | fi | |
9670 | ||
f11781c5 AK |
9671 | if test x$CLVMD != xnone; then |
9672 | 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 | |
9673 | do : | |
9674 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9675 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9676 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9677 | cat >>confdefs.h <<_ACEOF | |
9678 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 9679 | _ACEOF |
ad6254c5 | 9680 | |
f11781c5 AK |
9681 | else |
9682 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9683 | fi |
7a197a62 | 9684 | |
f11781c5 | 9685 | done |
ad6254c5 | 9686 | |
f11781c5 AK |
9687 | for ac_func in dup2 getmntent memmove select socket |
9688 | do : | |
9689 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9690 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9691 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9692 | cat >>confdefs.h <<_ACEOF | |
9693 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ad6254c5 | 9694 | _ACEOF |
ad6254c5 | 9695 | |
f11781c5 AK |
9696 | else |
9697 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9698 | fi |
f11781c5 | 9699 | done |
7a197a62 | 9700 | |
f11781c5 AK |
9701 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
9702 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
9703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 | |
9704 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
9705 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9706 | $as_echo_n "(cached) " >&6 | |
9707 | else | |
9708 | ac_func_search_save_LIBS=$LIBS | |
9709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9710 | /* end confdefs.h. */ | |
ad6254c5 | 9711 | |
f11781c5 AK |
9712 | /* Override any GCC internal prototype to avoid an error. |
9713 | Use char because int might match the return type of a GCC | |
9714 | builtin and then its argument prototype would still apply. */ | |
9715 | #ifdef __cplusplus | |
9716 | extern "C" | |
9717 | #endif | |
9718 | char getmntent (); | |
9719 | int | |
9720 | main () | |
9721 | { | |
9722 | return getmntent (); | |
9723 | ; | |
9724 | return 0; | |
9725 | } | |
9726 | _ACEOF | |
9727 | for ac_lib in '' sun seq gen; do | |
9728 | if test -z "$ac_lib"; then | |
9729 | ac_res="none required" | |
9730 | else | |
9731 | ac_res=-l$ac_lib | |
9732 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9733 | fi | |
9734 | if ac_fn_c_try_link "$LINENO"; then : | |
9735 | ac_cv_search_getmntent=$ac_res | |
9736 | fi | |
9737 | rm -f core conftest.err conftest.$ac_objext \ | |
9738 | conftest$ac_exeext | |
9739 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9740 | break | |
9741 | fi | |
9742 | done | |
9743 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
7a197a62 | 9744 | |
ad6254c5 | 9745 | else |
f11781c5 | 9746 | ac_cv_search_getmntent=no |
795ca3e5 | 9747 | fi |
f11781c5 AK |
9748 | rm conftest.$ac_ext |
9749 | LIBS=$ac_func_search_save_LIBS | |
9750 | fi | |
9751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 | |
9752 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
9753 | ac_res=$ac_cv_search_getmntent | |
9754 | if test "$ac_res" != no; then : | |
9755 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9756 | ac_cv_func_getmntent=yes | |
9757 | ||
9758 | $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h | |
80992638 | 9759 | |
f11781c5 AK |
9760 | else |
9761 | ac_cv_func_getmntent=no | |
8106cdd5 | 9762 | fi |
f11781c5 AK |
9763 | |
9764 | ||
9765 | for ac_header in sys/select.h sys/socket.h | |
9766 | do : | |
9767 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9768 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9769 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
ad6254c5 | 9770 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9771 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9772 | _ACEOF |
795ca3e5 | 9773 | |
795ca3e5 AK |
9774 | fi |
9775 | ||
ad6254c5 | 9776 | done |
80992638 | 9777 | |
f11781c5 AK |
9778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
9779 | $as_echo_n "checking types of arguments for select... " >&6; } | |
9780 | if test "${ac_cv_func_select_args+set}" = set; then : | |
ec6a6fbe | 9781 | $as_echo_n "(cached) " >&6 |
83912faa | 9782 | else |
f11781c5 AK |
9783 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
9784 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | |
9785 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
9786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 AK |
9787 | /* end confdefs.h. */ |
9788 | $ac_includes_default | |
f11781c5 AK |
9789 | #ifdef HAVE_SYS_SELECT_H |
9790 | # include <sys/select.h> | |
9791 | #endif | |
9792 | #ifdef HAVE_SYS_SOCKET_H | |
9793 | # include <sys/socket.h> | |
9794 | #endif | |
9795 | ||
9796 | int | |
9797 | main () | |
9798 | { | |
9799 | extern int select ($ac_arg1, | |
9800 | $ac_arg234, $ac_arg234, $ac_arg234, | |
9801 | $ac_arg5); | |
9802 | ; | |
9803 | return 0; | |
9804 | } | |
ad6254c5 | 9805 | _ACEOF |
f11781c5 AK |
9806 | if ac_fn_c_try_compile "$LINENO"; then : |
9807 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
9808 | fi | |
9809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9810 | done | |
9811 | done | |
9812 | done | |
9813 | # Provide a safe default value. | |
9814 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
ad6254c5 | 9815 | |
ad6254c5 | 9816 | fi |
f11781c5 AK |
9817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
9818 | $as_echo "$ac_cv_func_select_args" >&6; } | |
9819 | ac_save_IFS=$IFS; IFS=',' | |
9820 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
9821 | IFS=$ac_save_IFS | |
9822 | shift | |
7a197a62 | 9823 | |
f11781c5 AK |
9824 | cat >>confdefs.h <<_ACEOF |
9825 | #define SELECT_TYPE_ARG1 $1 | |
9826 | _ACEOF | |
ad6254c5 | 9827 | |
f11781c5 AK |
9828 | |
9829 | cat >>confdefs.h <<_ACEOF | |
9830 | #define SELECT_TYPE_ARG234 ($2) | |
ad6254c5 | 9831 | _ACEOF |
f11781c5 AK |
9832 | |
9833 | ||
9834 | cat >>confdefs.h <<_ACEOF | |
9835 | #define SELECT_TYPE_ARG5 ($3) | |
ad6254c5 | 9836 | _ACEOF |
ad6254c5 | 9837 | |
f11781c5 AK |
9838 | rm -f conftest* |
9839 | ||
ad6254c5 | 9840 | fi |
7a197a62 | 9841 | |
f11781c5 AK |
9842 | if test x$CLUSTER != xnone; then |
9843 | for ac_header in sys/socket.h sys/un.h | |
9844 | do : | |
9845 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9846 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9847 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9848 | cat >>confdefs.h <<_ACEOF | |
9849 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9850 | _ACEOF | |
ad6254c5 | 9851 | |
f11781c5 AK |
9852 | else |
9853 | as_fn_error $? "bailing out" "$LINENO" 5 | |
9854 | fi | |
9855 | ||
9856 | done | |
9857 | ||
9858 | for ac_func in socket | |
9859 | do : | |
9860 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" | |
9861 | if test "x$ac_cv_func_socket" = x""yes; then : | |
9862 | cat >>confdefs.h <<_ACEOF | |
9863 | #define HAVE_SOCKET 1 | |
9864 | _ACEOF | |
7a197a62 | 9865 | |
80992638 | 9866 | else |
f11781c5 | 9867 | as_fn_error $? "bailing out" "$LINENO" 5 |
83912faa | 9868 | fi |
f11781c5 | 9869 | done |
83912faa | 9870 | |
69792976 | 9871 | fi |
f11781c5 AK |
9872 | |
9873 | if test x$DMEVENTD = xyes; then | |
9874 | for ac_header in arpa/inet.h | |
9875 | do : | |
9876 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" | |
9877 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : | |
ad6254c5 | 9878 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 9879 | #define HAVE_ARPA_INET_H 1 |
ad6254c5 | 9880 | _ACEOF |
69792976 | 9881 | |
69792976 | 9882 | else |
f11781c5 | 9883 | as_fn_error $? "bailing out" "$LINENO" 5 |
80992638 AK |
9884 | fi |
9885 | ||
ad6254c5 | 9886 | done |
69792976 | 9887 | |
ad6254c5 AK |
9888 | fi |
9889 | ||
f11781c5 AK |
9890 | if test x$HAVE_LIBDL = xyes; then |
9891 | for ac_header in dlfcn.h | |
9892 | do : | |
9893 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
9894 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
9895 | cat >>confdefs.h <<_ACEOF | |
9896 | #define HAVE_DLFCN_H 1 | |
a5f46f6a | 9897 | _ACEOF |
a5f46f6a | 9898 | |
f11781c5 AK |
9899 | else |
9900 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a5f46f6a AK |
9901 | fi |
9902 | ||
f11781c5 | 9903 | done |
a5f46f6a | 9904 | |
a5f46f6a AK |
9905 | fi |
9906 | ||
f11781c5 AK |
9907 | if test x$INTL = xyes; then |
9908 | for ac_header in libintl.h | |
9909 | do : | |
9910 | ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" | |
9911 | if test "x$ac_cv_header_libintl_h" = x""yes; then : | |
9912 | cat >>confdefs.h <<_ACEOF | |
9913 | #define HAVE_LIBINTL_H 1 | |
9914 | _ACEOF | |
a5f46f6a | 9915 | |
a5f46f6a | 9916 | else |
f11781c5 | 9917 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a | 9918 | fi |
f11781c5 AK |
9919 | |
9920 | done | |
a5f46f6a AK |
9921 | |
9922 | fi | |
f11781c5 AK |
9923 | |
9924 | if test x$UDEV_SYNC = xyes; then | |
9925 | for ac_header in sys/ipc.h sys/sem.h | |
9926 | do : | |
9927 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9928 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9929 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a5f46f6a AK |
9930 | cat >>confdefs.h <<_ACEOF |
9931 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9932 | _ACEOF | |
9933 | ||
9934 | else | |
f11781c5 | 9935 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a AK |
9936 | fi |
9937 | ||
9938 | done | |
9939 | ||
9940 | fi | |
9941 | ||
a653923f AK |
9942 | ################################################################################ |
9943 | # Extract the first word of "modprobe", so it can be a program name with args. | |
9944 | set dummy modprobe; ac_word=$2 | |
f11781c5 | 9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
ec6a6fbe | 9946 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 9947 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then : |
ec6a6fbe | 9948 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
9949 | else |
9950 | case $MODPROBE_CMD in | |
9951 | [\\/]* | ?:[\\/]*) | |
9952 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
9953 | ;; | |
9954 | *) | |
9955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9956 | for as_dir in $PATH | |
9957 | do | |
9958 | IFS=$as_save_IFS | |
9959 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 9960 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 9961 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 9962 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
f11781c5 | 9963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
9964 | break 2 |
9965 | fi | |
9966 | done | |
f11781c5 | 9967 | done |
7a197a62 | 9968 | IFS=$as_save_IFS |
72b2cb61 AK |
9969 | |
9970 | ;; | |
9971 | esac | |
9972 | fi | |
9973 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 9974 | if test -n "$MODPROBE_CMD"; then |
f11781c5 | 9975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5 |
ec6a6fbe | 9976 | $as_echo "$MODPROBE_CMD" >&6; } |
72b2cb61 | 9977 | else |
f11781c5 | 9978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 9979 | $as_echo "no" >&6; } |
72b2cb61 AK |
9980 | fi |
9981 | ||
a653923f | 9982 | |
7a197a62 | 9983 | |
a653923f | 9984 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
9985 | |
9986 | cat >>confdefs.h <<_ACEOF | |
9987 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
9988 | _ACEOF | |
9989 | ||
a653923f AK |
9990 | fi |
9991 | ||
b5c2529b | 9992 | |
a9b601e2 ZK |
9993 | lvm_exec_prefix=$exec_prefix |
9994 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
9995 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
9996 | ||
b5c2529b | 9997 | cat >>confdefs.h <<_ACEOF |
a9b601e2 | 9998 | #define LVM_PATH "$lvm_exec_prefix/sbin/lvm" |
b5c2529b ZK |
9999 | _ACEOF |
10000 | ||
10001 | ||
10002 | if test "$CLVMD" != none; then | |
10003 | clvmd_prefix=$ac_default_prefix | |
10004 | test "$prefix" != NONE && clvmd_prefix=$prefix | |
10005 | ||
10006 | cat >>confdefs.h <<_ACEOF | |
10007 | #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd" | |
10008 | _ACEOF | |
10009 | ||
10010 | fi | |
10011 | ||
80992638 | 10012 | ################################################################################ |
93bd259b AK |
10013 | if test "$BUILD_DMEVENTD" = yes; then |
10014 | ||
10015 | # Check whether --with-dmeventd-pidfile was given. | |
f11781c5 | 10016 | if test "${with_dmeventd_pidfile+set}" = set; then : |
71082be4 | 10017 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 10018 | else |
71082be4 | 10019 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
10020 | fi |
10021 | ||
93bd259b | 10022 | |
71082be4 ZK |
10023 | cat >>confdefs.h <<_ACEOF |
10024 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
10025 | _ACEOF | |
93bd259b | 10026 | |
71082be4 | 10027 | fi |
93bd259b AK |
10028 | |
10029 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
10030 | |
10031 | # Check whether --with-dmeventd-path was given. | |
f11781c5 | 10032 | if test "${with_dmeventd_path+set}" = set; then : |
71082be4 | 10033 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 10034 | else |
71082be4 | 10035 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
10036 | fi |
10037 | ||
93bd259b | 10038 | |
71082be4 ZK |
10039 | cat >>confdefs.h <<_ACEOF |
10040 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
10041 | _ACEOF | |
3399ae32 | 10042 | |
71082be4 | 10043 | fi |
3399ae32 | 10044 | |
8bae0a1e AK |
10045 | |
10046 | ||
8bae0a1e | 10047 | # Check whether --with-default-run-dir was given. |
f11781c5 | 10048 | if test "${with_default_run_dir+set}" = set; then : |
8bae0a1e AK |
10049 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" |
10050 | else | |
10051 | DEFAULT_RUN_DIR="/var/run/lvm" | |
10052 | fi | |
10053 | ||
10054 | cat >>confdefs.h <<_ACEOF | |
10055 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
10056 | _ACEOF | |
10057 | ||
10058 | ||
71082be4 | 10059 | ################################################################################ |
3399ae32 AK |
10060 | |
10061 | # Check whether --with-default-system-dir was given. | |
f11781c5 | 10062 | if test "${with_default_system_dir+set}" = set; then : |
71082be4 | 10063 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 10064 | else |
71082be4 | 10065 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
10066 | fi |
10067 | ||
71082be4 | 10068 | |
3399ae32 AK |
10069 | cat >>confdefs.h <<_ACEOF |
10070 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
10071 | _ACEOF | |
10072 | ||
10073 | ||
10074 | ||
3399ae32 | 10075 | # Check whether --with-default-archive-subdir was given. |
f11781c5 | 10076 | if test "${with_default_archive_subdir+set}" = set; then : |
71082be4 | 10077 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 10078 | else |
71082be4 | 10079 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
10080 | fi |
10081 | ||
71082be4 | 10082 | |
3399ae32 AK |
10083 | cat >>confdefs.h <<_ACEOF |
10084 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
10085 | _ACEOF | |
10086 | ||
10087 | ||
10088 | ||
3399ae32 | 10089 | # Check whether --with-default-backup-subdir was given. |
f11781c5 | 10090 | if test "${with_default_backup_subdir+set}" = set; then : |
71082be4 | 10091 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 10092 | else |
71082be4 | 10093 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
10094 | fi |
10095 | ||
71082be4 | 10096 | |
3399ae32 AK |
10097 | cat >>confdefs.h <<_ACEOF |
10098 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
10099 | _ACEOF | |
10100 | ||
10101 | ||
10102 | ||
3399ae32 | 10103 | # Check whether --with-default-cache-subdir was given. |
f11781c5 | 10104 | if test "${with_default_cache_subdir+set}" = set; then : |
71082be4 | 10105 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 10106 | else |
71082be4 | 10107 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
10108 | fi |
10109 | ||
71082be4 | 10110 | |
3399ae32 AK |
10111 | cat >>confdefs.h <<_ACEOF |
10112 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
10113 | _ACEOF | |
10114 | ||
10115 | ||
10116 | ||
3399ae32 | 10117 | # Check whether --with-default-locking-dir was given. |
f11781c5 | 10118 | if test "${with_default_locking_dir+set}" = set; then : |
71082be4 | 10119 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 10120 | else |
71082be4 | 10121 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
10122 | fi |
10123 | ||
71082be4 | 10124 | |
3399ae32 AK |
10125 | cat >>confdefs.h <<_ACEOF |
10126 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
10127 | _ACEOF | |
10128 | ||
10129 | ||
fea55602 DW |
10130 | ################################################################################ |
10131 | ||
10132 | # Check whether --with-default-data-alignment was given. | |
f11781c5 | 10133 | if test "${with_default_data_alignment+set}" = set; then : |
fea55602 DW |
10134 | withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval |
10135 | else | |
10136 | DEFAULT_DATA_ALIGNMENT=1 | |
10137 | fi | |
10138 | ||
10139 | ||
10140 | cat >>confdefs.h <<_ACEOF | |
10141 | #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT | |
10142 | _ACEOF | |
10143 | ||
10144 | ||
93bd259b | 10145 | ################################################################################ |
f11781c5 | 10146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5 |
ec6a6fbe | 10147 | $as_echo_n "checking for kernel interface choice... " >&6; } |
93bd259b AK |
10148 | |
10149 | # Check whether --with-interface was given. | |
f11781c5 | 10150 | if test "${with_interface+set}" = set; then : |
71082be4 | 10151 | withval=$with_interface; interface=$withval |
93bd259b | 10152 | else |
71082be4 | 10153 | interface=ioctl |
93bd259b AK |
10154 | fi |
10155 | ||
10156 | if [ "x$interface" != xioctl ]; | |
10157 | then | |
f11781c5 | 10158 | as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5 |
93bd259b | 10159 | fi |
f11781c5 | 10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5 |
ec6a6fbe | 10161 | $as_echo "$interface" >&6; } |
93bd259b AK |
10162 | |
10163 | ################################################################################ | |
db8b5af9 | 10164 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
10165 | |
10166 | cat >>confdefs.h <<_ACEOF | |
10167 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
10168 | _ACEOF | |
10169 | ||
10170 | ||
db8b5af9 | 10171 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 10172 | |
db8b5af9 | 10173 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 10174 | |
db8b5af9 | 10175 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 10176 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
10177 | VER=`echo "$VER" | $AWK '{print $1}'` |
10178 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
10179 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
10180 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
10181 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
10182 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
10183 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 10184 | |
80992638 | 10185 | ################################################################################ |
fae0c576 | 10186 | |
83912faa | 10187 | |
795ca3e5 AK |
10188 | |
10189 | ||
10190 | ||
10191 | ||
10192 | ||
10193 | ||
5a52dca9 | 10194 | |
8ef2b021 | 10195 | |
199e490e | 10196 | |
69792976 AK |
10197 | |
10198 | ||
10199 | ||
d0191583 | 10200 | |
69792976 | 10201 | |
8106cdd5 AK |
10202 | |
10203 | ||
10204 | ||
10205 | ||
10206 | ||
d68a82ec | 10207 | |
036f273a | 10208 | |
7d1552c9 | 10209 | |
8106cdd5 | 10210 | |
0a62c911 | 10211 | |
8106cdd5 | 10212 | |
4a7f3eb2 | 10213 | |
4922197a AK |
10214 | |
10215 | ||
d8ac0fbc | 10216 | |
1a9ea74d | 10217 | |
8a2fc586 AK |
10218 | |
10219 | ||
d0191583 | 10220 | |
93bd259b AK |
10221 | |
10222 | ||
10223 | ||
10224 | ||
10225 | ||
d0191583 JM |
10226 | |
10227 | ||
10228 | ||
10229 | ||
10230 | ||
8a2fc586 | 10231 | |
19a2c6e0 | 10232 | |
f7f0854e ZK |
10233 | |
10234 | ||
3ceb7608 | 10235 | |
8ce0cbda | 10236 | |
8b1a3214 | 10237 | |
ec6a6fbe AK |
10238 | |
10239 | ||
10240 | ||
10241 | ||
e2997b73 AK |
10242 | |
10243 | ||
10244 | ||
10245 | ||
10246 | ||
10247 | ||
a946372e AK |
10248 | |
10249 | ||
10250 | ||
10251 | ||
10252 | ||
10253 | ||
10254 | ||
10255 | ||
10256 | ||
10257 | ||
10258 | ||
ec6a6fbe | 10259 | |
33f732c5 | 10260 | |
66e941e8 | 10261 | |
d3c8211f | 10262 | |
7e3fe830 | 10263 | |
a5f46f6a AK |
10264 | |
10265 | ||
10266 | ||
572fefeb | 10267 | |
90c80887 | 10268 | |
3399ae32 AK |
10269 | |
10270 | ||
10271 | ||
10272 | ||
10273 | ||
90c80887 | 10274 | |
bf456146 | 10275 | |
e1b8a236 | 10276 | |
0878503f | 10277 | |
8fea97b7 | 10278 | |
54b362f9 | 10279 | |
b1f08e51 | 10280 | |
d1e8046f | 10281 | |
fea55602 | 10282 | |
c89bc357 | 10283 | |
37ddf259 | 10284 | |
68f2de6d AK |
10285 | |
10286 | ||
80992638 | 10287 | ################################################################################ |
d1e8046f | 10288 | 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/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile" |
7a197a62 | 10289 | |
ad6254c5 | 10290 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
10291 | # This file is a shell script that caches the results of configure |
10292 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
10293 | # scripts and configure runs, see configure's option --config-cache. |
10294 | # It is not useful on other systems. If it contains results you don't | |
10295 | # want to keep, you may remove or edit it. | |
795ca3e5 | 10296 | # |
ad6254c5 AK |
10297 | # config.status only pays attention to the cache file if you give it |
10298 | # the --recheck option to rerun configure. | |
795ca3e5 | 10299 | # |
ad6254c5 AK |
10300 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10301 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10302 | # following values. | |
10303 | ||
10304 | _ACEOF | |
10305 | ||
795ca3e5 AK |
10306 | # The following way of writing the cache mishandles newlines in values, |
10307 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 10308 | # So, we kill variables containing newlines. |
795ca3e5 AK |
10309 | # Ultrix sh set writes to stderr and can't be redirected directly, |
10310 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
10311 | ( |
10312 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10313 | eval ac_val=\$$ac_var | |
10314 | case $ac_val in #( | |
10315 | *${as_nl}*) | |
10316 | case $ac_var in #( | |
f11781c5 | 10317 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
ec6a6fbe | 10318 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7a197a62 AK |
10319 | esac |
10320 | case $ac_var in #( | |
10321 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 10322 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
f11781c5 | 10323 | *) { eval $ac_var=; unset $ac_var;} ;; |
7a197a62 AK |
10324 | esac ;; |
10325 | esac | |
10326 | done | |
10327 | ||
ad6254c5 | 10328 | (set) 2>&1 | |
7a197a62 AK |
10329 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
10330 | *${as_nl}ac_space=\ *) | |
f11781c5 AK |
10331 | # `set' does not quote correctly, so add quotes: double-quote |
10332 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
ad6254c5 | 10333 | sed -n \ |
8a2fc586 AK |
10334 | "s/'/'\\\\''/g; |
10335 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 10336 | ;; #( |
ad6254c5 AK |
10337 | *) |
10338 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 10339 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 10340 | ;; |
7a197a62 AK |
10341 | esac | |
10342 | sort | |
10343 | ) | | |
ad6254c5 | 10344 | sed ' |
7a197a62 | 10345 | /^ac_cv_env_/b end |
ad6254c5 | 10346 | t clear |
7a197a62 | 10347 | :clear |
ad6254c5 AK |
10348 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
10349 | t end | |
7a197a62 AK |
10350 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
10351 | :end' >>confcache | |
10352 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10353 | if test -w "$cache_file"; then | |
10354 | test "x$cache_file" != "x/dev/null" && | |
f11781c5 | 10355 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
ec6a6fbe | 10356 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
ad6254c5 | 10357 | cat confcache >$cache_file |
795ca3e5 | 10358 | else |
f11781c5 | 10359 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
ec6a6fbe | 10360 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
795ca3e5 AK |
10361 | fi |
10362 | fi | |
10363 | rm -f confcache | |
10364 | ||
795ca3e5 AK |
10365 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
10366 | # Let make expand exec_prefix. | |
10367 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10368 | ||
72b2cb61 | 10369 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
10370 | |
10371 | ac_libobjs= | |
10372 | ac_ltlibobjs= | |
f11781c5 | 10373 | U= |
ad6254c5 AK |
10374 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
10375 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 10376 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 10377 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
10378 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
10379 | # will be set to the directory where LIBOBJS objects are built. | |
f11781c5 AK |
10380 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
10381 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
10382 | done |
10383 | LIBOBJS=$ac_libobjs | |
80992638 | 10384 | |
ad6254c5 AK |
10385 | LTLIBOBJS=$ac_ltlibobjs |
10386 | ||
10387 | ||
10388 | ||
10389 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 10390 | ac_write_fail=0 |
ad6254c5 AK |
10391 | ac_clean_files_save=$ac_clean_files |
10392 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
f11781c5 | 10393 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
ec6a6fbe | 10394 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
f11781c5 AK |
10395 | as_write_fail=0 |
10396 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
ad6254c5 AK |
10397 | #! $SHELL |
10398 | # Generated by $as_me. | |
795ca3e5 | 10399 | # Run this file to recreate the current configuration. |
795ca3e5 | 10400 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
10401 | # configure, is in config.log if it exists. |
10402 | ||
10403 | debug=false | |
10404 | ac_cs_recheck=false | |
10405 | ac_cs_silent=false | |
ad6254c5 | 10406 | |
f11781c5 AK |
10407 | SHELL=\${CONFIG_SHELL-$SHELL} |
10408 | export SHELL | |
10409 | _ASEOF | |
10410 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10411 | ## -------------------- ## | |
10412 | ## M4sh Initialization. ## | |
10413 | ## -------------------- ## | |
ad6254c5 | 10414 | |
25fbec5b AK |
10415 | # Be more Bourne compatible |
10416 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 10417 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
10418 | emulate sh |
10419 | NULLCMD=: | |
ec6a6fbe | 10420 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
10421 | # is contrary to our usage. Disable this feature. |
10422 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
10423 | setopt NO_GLOB_SUBST |
10424 | else | |
f11781c5 AK |
10425 | case `(set -o) 2>/dev/null` in #( |
10426 | *posix*) : | |
10427 | set -o posix ;; #( | |
10428 | *) : | |
10429 | ;; | |
25fbec5b | 10430 | esac |
7a197a62 | 10431 | fi |
25fbec5b AK |
10432 | |
10433 | ||
ec6a6fbe AK |
10434 | as_nl=' |
10435 | ' | |
10436 | export as_nl | |
10437 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10438 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10439 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10440 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
10441 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
10442 | # but without wasting forks for bash or zsh. | |
10443 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10444 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10445 | as_echo='print -r --' | |
10446 | as_echo_n='print -rn --' | |
10447 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
10448 | as_echo='printf %s\n' |
10449 | as_echo_n='printf %s' | |
10450 | else | |
10451 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10452 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10453 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 10454 | else |
ec6a6fbe AK |
10455 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
10456 | as_echo_n_body='eval | |
10457 | arg=$1; | |
f11781c5 | 10458 | case $arg in #( |
ec6a6fbe AK |
10459 | *"$as_nl"*) |
10460 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10461 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10462 | esac; | |
10463 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10464 | ' | |
10465 | export as_echo_n_body | |
10466 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 10467 | fi |
ec6a6fbe AK |
10468 | export as_echo_body |
10469 | as_echo='sh -c $as_echo_body as_echo' | |
10470 | fi | |
10471 | ||
10472 | # The user is always right. | |
10473 | if test "${PATH_SEPARATOR+set}" != set; then | |
10474 | PATH_SEPARATOR=: | |
10475 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10476 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10477 | PATH_SEPARATOR=';' | |
10478 | } | |
ad6254c5 AK |
10479 | fi |
10480 | ||
ad6254c5 | 10481 | |
7a197a62 AK |
10482 | # IFS |
10483 | # We need space, tab and new line, in precisely that order. Quoting is | |
10484 | # there to prevent editors from complaining about space-tab. | |
10485 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10486 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
10487 | IFS=" "" $as_nl" |
10488 | ||
10489 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 10490 | case $0 in #(( |
7a197a62 AK |
10491 | *[\\/]* ) as_myself=$0 ;; |
10492 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10493 | for as_dir in $PATH | |
10494 | do | |
10495 | IFS=$as_save_IFS | |
10496 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
10497 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
10498 | done | |
7a197a62 AK |
10499 | IFS=$as_save_IFS |
10500 | ||
10501 | ;; | |
10502 | esac | |
10503 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10504 | # in which case we are not to be found in the path. | |
10505 | if test "x$as_myself" = x; then | |
10506 | as_myself=$0 | |
10507 | fi | |
10508 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 10509 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 10510 | exit 1 |
7a197a62 AK |
10511 | fi |
10512 | ||
f11781c5 AK |
10513 | # Unset variables that we do not need and which cause bugs (e.g. in |
10514 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10515 | # suppresses any "Segmentation fault" message there. '((' could | |
10516 | # trigger a bug in pdksh 5.2.14. | |
10517 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10518 | do eval test x\${$as_var+set} = xset \ | |
10519 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 10520 | done |
ad6254c5 AK |
10521 | PS1='$ ' |
10522 | PS2='> ' | |
10523 | PS4='+ ' | |
10524 | ||
10525 | # NLS nuisances. | |
ec6a6fbe AK |
10526 | LC_ALL=C |
10527 | export LC_ALL | |
10528 | LANGUAGE=C | |
10529 | export LANGUAGE | |
8106cdd5 | 10530 | |
f11781c5 AK |
10531 | # CDPATH. |
10532 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10533 | ||
10534 | ||
10535 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
10536 | # ---------------------------------------- | |
10537 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
10538 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
10539 | # script with STATUS, using 1 if that was 0. | |
10540 | as_fn_error () | |
10541 | { | |
10542 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
10543 | if test "$4"; then | |
10544 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10545 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
10546 | fi | |
10547 | $as_echo "$as_me: error: $2" >&2 | |
10548 | as_fn_exit $as_status | |
10549 | } # as_fn_error | |
10550 | ||
10551 | ||
10552 | # as_fn_set_status STATUS | |
10553 | # ----------------------- | |
10554 | # Set $? to STATUS, without forking. | |
10555 | as_fn_set_status () | |
10556 | { | |
10557 | return $1 | |
10558 | } # as_fn_set_status | |
10559 | ||
10560 | # as_fn_exit STATUS | |
10561 | # ----------------- | |
10562 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10563 | as_fn_exit () | |
10564 | { | |
10565 | set +e | |
10566 | as_fn_set_status $1 | |
10567 | exit $1 | |
10568 | } # as_fn_exit | |
10569 | ||
10570 | # as_fn_unset VAR | |
10571 | # --------------- | |
10572 | # Portably unset VAR. | |
10573 | as_fn_unset () | |
10574 | { | |
10575 | { eval $1=; unset $1;} | |
10576 | } | |
10577 | as_unset=as_fn_unset | |
10578 | # as_fn_append VAR VALUE | |
10579 | # ---------------------- | |
10580 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10581 | # advantage of any shell optimizations that allow amortized linear growth over | |
10582 | # repeated appends, instead of the typical quadratic growth present in naive | |
10583 | # implementations. | |
10584 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10585 | eval 'as_fn_append () | |
10586 | { | |
10587 | eval $1+=\$2 | |
10588 | }' | |
10589 | else | |
10590 | as_fn_append () | |
10591 | { | |
10592 | eval $1=\$$1\$2 | |
10593 | } | |
10594 | fi # as_fn_append | |
10595 | ||
10596 | # as_fn_arith ARG... | |
10597 | # ------------------ | |
10598 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10599 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10600 | # must be portable across $(()) and expr. | |
10601 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10602 | eval 'as_fn_arith () | |
10603 | { | |
10604 | as_val=$(( $* )) | |
10605 | }' | |
10606 | else | |
10607 | as_fn_arith () | |
10608 | { | |
10609 | as_val=`expr "$@" || test $? -eq 1` | |
10610 | } | |
10611 | fi # as_fn_arith | |
10612 | ||
10613 | ||
7a197a62 AK |
10614 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10615 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
10616 | as_expr=expr |
10617 | else | |
10618 | as_expr=false | |
10619 | fi | |
8106cdd5 | 10620 | |
7a197a62 | 10621 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
10622 | as_basename=basename |
10623 | else | |
10624 | as_basename=false | |
10625 | fi | |
10626 | ||
f11781c5 AK |
10627 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10628 | as_dirname=dirname | |
10629 | else | |
10630 | as_dirname=false | |
10631 | fi | |
ad6254c5 | 10632 | |
7a197a62 | 10633 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
10634 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10635 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 10636 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 10637 | $as_echo X/"$0" | |
7a197a62 AK |
10638 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10639 | s//\1/ | |
10640 | q | |
10641 | } | |
10642 | /^X\/\(\/\/\)$/{ | |
10643 | s//\1/ | |
10644 | q | |
10645 | } | |
10646 | /^X\/\(\/\).*/{ | |
10647 | s//\1/ | |
10648 | q | |
10649 | } | |
10650 | s/.*/./; q'` | |
ad6254c5 | 10651 | |
f11781c5 AK |
10652 | # Avoid depending upon Character Ranges. |
10653 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10654 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10655 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10656 | as_cr_digits='0123456789' | |
10657 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7a197a62 AK |
10658 | |
10659 | ECHO_C= ECHO_N= ECHO_T= | |
f11781c5 | 10660 | case `echo -n x` in #((((( |
7a197a62 | 10661 | -n*) |
f11781c5 | 10662 | case `echo 'xy\c'` in |
7a197a62 | 10663 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
f11781c5 AK |
10664 | xy) ECHO_C='\c';; |
10665 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10666 | ECHO_T=' ';; | |
7a197a62 AK |
10667 | esac;; |
10668 | *) | |
10669 | ECHO_N='-n';; | |
ad6254c5 | 10670 | esac |
80992638 | 10671 | |
ad6254c5 | 10672 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
10673 | if test -d conf$$.dir; then |
10674 | rm -f conf$$.dir/conf$$.file | |
10675 | else | |
10676 | rm -f conf$$.dir | |
ec6a6fbe AK |
10677 | mkdir conf$$.dir 2>/dev/null |
10678 | fi | |
10679 | if (echo >conf$$.file) 2>/dev/null; then | |
10680 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10681 | as_ln_s='ln -s' | |
10682 | # ... but there are two gotchas: | |
10683 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10684 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10685 | # In both cases, we have to default to `cp -p'. | |
10686 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
10687 | as_ln_s='cp -p' | |
10688 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
10689 | as_ln_s=ln | |
10690 | else | |
ad6254c5 | 10691 | as_ln_s='cp -p' |
ec6a6fbe | 10692 | fi |
ad6254c5 AK |
10693 | else |
10694 | as_ln_s='cp -p' | |
10695 | fi | |
7a197a62 AK |
10696 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10697 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 10698 | |
f11781c5 AK |
10699 | |
10700 | # as_fn_mkdir_p | |
10701 | # ------------- | |
10702 | # Create "$as_dir" as a directory, including parents if necessary. | |
10703 | as_fn_mkdir_p () | |
10704 | { | |
10705 | ||
10706 | case $as_dir in #( | |
10707 | -*) as_dir=./$as_dir;; | |
10708 | esac | |
10709 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10710 | as_dirs= | |
10711 | while :; do | |
10712 | case $as_dir in #( | |
10713 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10714 | *) as_qdir=$as_dir;; | |
10715 | esac | |
10716 | as_dirs="'$as_qdir' $as_dirs" | |
10717 | as_dir=`$as_dirname -- "$as_dir" || | |
10718 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10719 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10720 | X"$as_dir" : 'X\(//\)$' \| \ | |
10721 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10722 | $as_echo X"$as_dir" | | |
10723 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10724 | s//\1/ | |
10725 | q | |
10726 | } | |
10727 | /^X\(\/\/\)[^/].*/{ | |
10728 | s//\1/ | |
10729 | q | |
10730 | } | |
10731 | /^X\(\/\/\)$/{ | |
10732 | s//\1/ | |
10733 | q | |
10734 | } | |
10735 | /^X\(\/\).*/{ | |
10736 | s//\1/ | |
10737 | q | |
10738 | } | |
10739 | s/.*/./; q'` | |
10740 | test -d "$as_dir" && break | |
10741 | done | |
10742 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10743 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
10744 | ||
10745 | ||
10746 | } # as_fn_mkdir_p | |
ad6254c5 | 10747 | if mkdir -p . 2>/dev/null; then |
f11781c5 | 10748 | as_mkdir_p='mkdir -p "$as_dir"' |
ad6254c5 | 10749 | else |
8a2fc586 | 10750 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
10751 | as_mkdir_p=false |
10752 | fi | |
10753 | ||
25fbec5b AK |
10754 | if test -x / >/dev/null 2>&1; then |
10755 | as_test_x='test -x' | |
7a197a62 | 10756 | else |
25fbec5b AK |
10757 | if ls -dL / >/dev/null 2>&1; then |
10758 | as_ls_L_option=L | |
10759 | else | |
10760 | as_ls_L_option= | |
10761 | fi | |
10762 | as_test_x=' | |
10763 | eval sh -c '\'' | |
10764 | if test -d "$1"; then | |
ec6a6fbe | 10765 | test -d "$1/."; |
25fbec5b | 10766 | else |
f11781c5 | 10767 | case $1 in #( |
ec6a6fbe | 10768 | -*)set "./$1";; |
25fbec5b | 10769 | esac; |
f11781c5 | 10770 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
25fbec5b AK |
10771 | ???[sx]*):;;*)false;;esac;fi |
10772 | '\'' sh | |
10773 | ' | |
7a197a62 | 10774 | fi |
25fbec5b | 10775 | as_executable_p=$as_test_x |
ad6254c5 AK |
10776 | |
10777 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 10778 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10779 | |
10780 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 10781 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10782 | |
10783 | ||
ad6254c5 | 10784 | exec 6>&1 |
f11781c5 AK |
10785 | ## ----------------------------------- ## |
10786 | ## Main body of $CONFIG_STATUS script. ## | |
10787 | ## ----------------------------------- ## | |
10788 | _ASEOF | |
10789 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
ad6254c5 | 10790 | |
f11781c5 AK |
10791 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10792 | # Save the log message, to keep $0 and so on meaningful, and to | |
ad6254c5 | 10793 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
10794 | # values after options handling. |
10795 | ac_log=" | |
ad6254c5 | 10796 | This file was extended by $as_me, which was |
f11781c5 | 10797 | generated by GNU Autoconf 2.66. Invocation command line was |
ad6254c5 AK |
10798 | |
10799 | CONFIG_FILES = $CONFIG_FILES | |
10800 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10801 | CONFIG_LINKS = $CONFIG_LINKS | |
10802 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10803 | $ $0 $@ | |
10804 | ||
7a197a62 AK |
10805 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
10806 | " | |
10807 | ||
ad6254c5 AK |
10808 | _ACEOF |
10809 | ||
ec6a6fbe AK |
10810 | case $ac_config_files in *" |
10811 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10812 | esac | |
10813 | ||
10814 | case $ac_config_headers in *" | |
10815 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10816 | esac | |
10817 | ||
10818 | ||
10819 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 10820 | # Files that config.status was made for. |
68f2de6d AK |
10821 | config_files="$ac_config_files" |
10822 | config_headers="$ac_config_headers" | |
ad6254c5 | 10823 | |
7a197a62 | 10824 | _ACEOF |
ad6254c5 | 10825 | |
ec6a6fbe | 10826 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 | 10827 | ac_cs_usage="\ |
f11781c5 AK |
10828 | \`$as_me' instantiates files and other configuration actions |
10829 | from templates according to the current configuration. Unless the files | |
10830 | and actions are specified as TAGs, all are instantiated by default. | |
ad6254c5 | 10831 | |
f11781c5 | 10832 | Usage: $0 [OPTION]... [TAG]... |
ad6254c5 AK |
10833 | |
10834 | -h, --help print this help, then exit | |
25fbec5b | 10835 | -V, --version print version number and configuration settings, then exit |
f11781c5 | 10836 | --config print configuration, then exit |
ec6a6fbe AK |
10837 | -q, --quiet, --silent |
10838 | do not print progress messages | |
ad6254c5 AK |
10839 | -d, --debug don't remove temporary files |
10840 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
10841 | --file=FILE[:TEMPLATE] |
10842 | instantiate the configuration file FILE | |
10843 | --header=FILE[:TEMPLATE] | |
10844 | instantiate the configuration header FILE | |
ad6254c5 AK |
10845 | |
10846 | Configuration files: | |
10847 | $config_files | |
10848 | ||
72b2cb61 AK |
10849 | Configuration headers: |
10850 | $config_headers | |
10851 | ||
f11781c5 | 10852 | Report bugs to the package provider." |
ad6254c5 | 10853 | |
7a197a62 | 10854 | _ACEOF |
ec6a6fbe | 10855 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
f11781c5 | 10856 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
ad6254c5 AK |
10857 | ac_cs_version="\\ |
10858 | config.status | |
f11781c5 AK |
10859 | configured by $0, generated by GNU Autoconf 2.66, |
10860 | with options \\"\$ac_cs_config\\" | |
ad6254c5 | 10861 | |
f11781c5 | 10862 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
10863 | This config.status script is free software; the Free Software Foundation |
10864 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
10865 | |
10866 | ac_pwd='$ac_pwd' | |
10867 | srcdir='$srcdir' | |
10868 | INSTALL='$INSTALL' | |
fddafd51 | 10869 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
10870 | AWK='$AWK' |
10871 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
10872 | _ACEOF |
10873 | ||
ec6a6fbe AK |
10874 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10875 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
10876 | ac_need_defaults=: |
10877 | while test $# != 0 | |
10878 | do | |
10879 | case $1 in | |
10880 | --*=*) | |
7a197a62 AK |
10881 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10882 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
10883 | ac_shift=: |
10884 | ;; | |
7a197a62 | 10885 | *) |
ad6254c5 AK |
10886 | ac_option=$1 |
10887 | ac_optarg=$2 | |
10888 | ac_shift=shift | |
10889 | ;; | |
ad6254c5 AK |
10890 | esac |
10891 | ||
10892 | case $ac_option in | |
10893 | # Handling of the options. | |
ad6254c5 AK |
10894 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
10895 | ac_cs_recheck=: ;; | |
7a197a62 | 10896 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 10897 | $as_echo "$ac_cs_version"; exit ;; |
f11781c5 AK |
10898 | --config | --confi | --conf | --con | --co | --c ) |
10899 | $as_echo "$ac_cs_config"; exit ;; | |
7a197a62 | 10900 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
10901 | debug=: ;; |
10902 | --file | --fil | --fi | --f ) | |
10903 | $ac_shift | |
ec6a6fbe AK |
10904 | case $ac_optarg in |
10905 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10906 | esac | |
f11781c5 | 10907 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
ad6254c5 AK |
10908 | ac_need_defaults=false;; |
10909 | --header | --heade | --head | --hea ) | |
10910 | $ac_shift | |
ec6a6fbe AK |
10911 | case $ac_optarg in |
10912 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10913 | esac | |
f11781c5 | 10914 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
ad6254c5 | 10915 | ac_need_defaults=false;; |
7a197a62 AK |
10916 | --he | --h) |
10917 | # Conflict between --help and --header | |
f11781c5 AK |
10918 | as_fn_error $? "ambiguous option: \`$1' |
10919 | Try \`$0 --help' for more information.";; | |
7a197a62 | 10920 | --help | --hel | -h ) |
ec6a6fbe | 10921 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
10922 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
10923 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10924 | ac_cs_silent=: ;; | |
10925 | ||
10926 | # This is an error. | |
f11781c5 AK |
10927 | -*) as_fn_error $? "unrecognized option: \`$1' |
10928 | Try \`$0 --help' for more information." ;; | |
ad6254c5 | 10929 | |
f11781c5 | 10930 | *) as_fn_append ac_config_targets " $1" |
7a197a62 | 10931 | ac_need_defaults=false ;; |
ad6254c5 AK |
10932 | |
10933 | esac | |
10934 | shift | |
10935 | done | |
10936 | ||
10937 | ac_configure_extra_args= | |
10938 | ||
10939 | if $ac_cs_silent; then | |
10940 | exec 6>/dev/null | |
10941 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10942 | fi | |
10943 | ||
10944 | _ACEOF | |
ec6a6fbe | 10945 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 10946 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
10947 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
10948 | shift | |
10949 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
10950 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 10951 | export CONFIG_SHELL |
ec6a6fbe | 10952 | exec "\$@" |
ad6254c5 AK |
10953 | fi |
10954 | ||
10955 | _ACEOF | |
ec6a6fbe | 10956 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
10957 | exec 5>>config.log |
10958 | { | |
10959 | echo | |
10960 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10961 | ## Running $as_me. ## | |
10962 | _ASBOX | |
ec6a6fbe | 10963 | $as_echo "$ac_log" |
7a197a62 | 10964 | } >&5 |
ad6254c5 | 10965 | |
7a197a62 | 10966 | _ACEOF |
ec6a6fbe | 10967 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 10968 | _ACEOF |
ad6254c5 | 10969 | |
ec6a6fbe | 10970 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
10971 | |
10972 | # Handling of arguments. | |
ad6254c5 AK |
10973 | for ac_config_target in $ac_config_targets |
10974 | do | |
7a197a62 AK |
10975 | case $ac_config_target in |
10976 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
10977 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
10978 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
10979 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
10980 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 10981 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
10982 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
10983 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 10984 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 10985 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
10986 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
10987 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 10988 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 10989 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 10990 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
10991 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
10992 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
10993 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
10994 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
10995 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
10996 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 10997 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 10998 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 10999 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
11000 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
11001 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 11002 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 11003 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
11004 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
11005 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 11006 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 11007 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 11008 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 11009 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 11010 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 11011 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 11012 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 11013 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
11014 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
11015 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
d1e8046f | 11016 | "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;; |
7a197a62 | 11017 | |
f11781c5 | 11018 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
80992638 | 11019 | esac |
ad6254c5 AK |
11020 | done |
11021 | ||
7a197a62 | 11022 | |
ad6254c5 AK |
11023 | # If the user did not use the arguments to specify the items to instantiate, |
11024 | # then the envvar interface is used. Set only those that are not. | |
11025 | # We use the long form for the default assignment because of an extremely | |
11026 | # bizarre bug on SunOS 4.1.3. | |
11027 | if $ac_need_defaults; then | |
11028 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 11029 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
11030 | fi |
11031 | ||
11032 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 11033 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 11034 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
11035 | # Hook for its removal unless debugging. |
11036 | # Note that there is a small window in which the directory will not be cleaned: | |
11037 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
11038 | $debug || |
11039 | { | |
7a197a62 AK |
11040 | tmp= |
11041 | trap 'exit_status=$? | |
11042 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
11043 | ' 0 | |
f11781c5 | 11044 | trap 'as_fn_exit 1' 1 2 13 15 |
ad6254c5 | 11045 | } |
ad6254c5 AK |
11046 | # Create a (secure) tmp directory for tmp files. |
11047 | ||
11048 | { | |
7a197a62 | 11049 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
11050 | test -n "$tmp" && test -d "$tmp" |
11051 | } || | |
11052 | { | |
7a197a62 AK |
11053 | tmp=./conf$$-$RANDOM |
11054 | (umask 077 && mkdir "$tmp") | |
f11781c5 | 11055 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ad6254c5 | 11056 | |
ec6a6fbe AK |
11057 | # Set up the scripts for CONFIG_FILES section. |
11058 | # No need to generate them if there are no CONFIG_FILES. | |
11059 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 11060 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 11061 | |
68f2de6d | 11062 | |
f11781c5 AK |
11063 | ac_cr=`echo X | tr X '\015'` |
11064 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
11065 | # But we know of no other shell where ac_cr would be empty at this | |
11066 | # point, so we can use a bashism as a fallback. | |
11067 | if test "x$ac_cr" = x; then | |
11068 | eval ac_cr=\$\'\\r\' | |
11069 | fi | |
ec6a6fbe AK |
11070 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
11071 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
11072 | ac_cs_awk_cr='\\r' | |
11073 | else | |
11074 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 11075 | fi |
7a197a62 | 11076 | |
ec6a6fbe | 11077 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 11078 | _ACEOF |
7a197a62 | 11079 | |
8106cdd5 | 11080 | |
ec6a6fbe AK |
11081 | { |
11082 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
11083 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
11084 | echo "_ACEOF" | |
11085 | } >conf$$subs.sh || | |
f11781c5 AK |
11086 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
11087 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
1995c9ff AK |
11088 | ac_delim='%!_!# ' |
11089 | for ac_last_try in false false false false false :; do | |
ec6a6fbe | 11090 | . ./conf$$subs.sh || |
f11781c5 | 11091 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe AK |
11092 | |
11093 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
11094 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
11095 | break |
11096 | elif $ac_last_try; then | |
f11781c5 | 11097 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
1995c9ff AK |
11098 | else |
11099 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11100 | fi | |
11101 | done | |
ec6a6fbe AK |
11102 | rm -f conf$$subs.sh |
11103 | ||
11104 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11105 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
11106 | _ACEOF | |
11107 | sed -n ' | |
11108 | h | |
11109 | s/^/S["/; s/!.*/"]=/ | |
11110 | p | |
11111 | g | |
11112 | s/^[^!]*!// | |
11113 | :repl | |
11114 | t repl | |
11115 | s/'"$ac_delim"'$// | |
11116 | t delim | |
11117 | :nl | |
11118 | h | |
f11781c5 | 11119 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11120 | t more1 |
11121 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
11122 | p | |
11123 | n | |
11124 | b repl | |
11125 | :more1 | |
11126 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11127 | p | |
11128 | g | |
11129 | s/.\{148\}// | |
11130 | t nl | |
11131 | :delim | |
11132 | h | |
f11781c5 | 11133 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11134 | t more2 |
11135 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
11136 | p | |
11137 | b | |
11138 | :more2 | |
11139 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11140 | p | |
11141 | g | |
11142 | s/.\{148\}// | |
11143 | t delim | |
11144 | ' <conf$$subs.awk | sed ' | |
11145 | /^[^""]/{ | |
11146 | N | |
11147 | s/\n// | |
11148 | } | |
11149 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
11150 | rm -f conf$$subs.awk | |
11151 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11152 | _ACAWK | |
11153 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
11154 | for (key in S) S_is_set[key] = 1 | |
11155 | FS = "\a" | |
7a197a62 | 11156 | |
ec6a6fbe AK |
11157 | } |
11158 | { | |
11159 | line = $ 0 | |
11160 | nfields = split(line, field, "@") | |
11161 | substed = 0 | |
11162 | len = length(field[1]) | |
11163 | for (i = 2; i < nfields; i++) { | |
11164 | key = field[i] | |
11165 | keylen = length(key) | |
11166 | if (S_is_set[key]) { | |
11167 | value = S[key] | |
11168 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
11169 | len += length(value) + length(field[++i]) | |
11170 | substed = 1 | |
11171 | } else | |
11172 | len += 1 + keylen | |
11173 | } | |
11174 | ||
11175 | print line | |
11176 | } | |
fddafd51 | 11177 | |
ec6a6fbe | 11178 | _ACAWK |
1995c9ff | 11179 | _ACEOF |
ec6a6fbe AK |
11180 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11181 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
11182 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
11183 | else | |
11184 | cat | |
11185 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
f11781c5 | 11186 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7a197a62 AK |
11187 | _ACEOF |
11188 | ||
f11781c5 AK |
11189 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
11190 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7a197a62 AK |
11191 | # trailing colons and then remove the whole line if VPATH becomes empty |
11192 | # (actually we leave an empty line to preserve line numbers). | |
11193 | if test "x$srcdir" = x.; then | |
f11781c5 AK |
11194 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
11195 | h | |
11196 | s/// | |
11197 | s/^/:/ | |
11198 | s/[ ]*$/:/ | |
11199 | s/:\$(srcdir):/:/g | |
11200 | s/:\${srcdir}:/:/g | |
11201 | s/:@srcdir@:/:/g | |
11202 | s/^:*// | |
7a197a62 | 11203 | s/:*$// |
f11781c5 AK |
11204 | x |
11205 | s/\(=[ ]*\).*/\1/ | |
11206 | G | |
11207 | s/\n// | |
7a197a62 AK |
11208 | s/^[^=]*=[ ]*$// |
11209 | }' | |
11210 | fi | |
11211 | ||
ec6a6fbe | 11212 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11213 | fi # test -n "$CONFIG_FILES" |
11214 | ||
ec6a6fbe AK |
11215 | # Set up the scripts for CONFIG_HEADERS section. |
11216 | # No need to generate them if there are no CONFIG_HEADERS. | |
11217 | # This happens for instance with `./config.status Makefile'. | |
11218 | if test -n "$CONFIG_HEADERS"; then | |
11219 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
11220 | BEGIN { | |
11221 | _ACEOF | |
11222 | ||
11223 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11224 | # here-document in config.status, that substitutes the proper values into | |
11225 | # config.h.in to produce config.h. | |
11226 | ||
11227 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11228 | # handling of long lines. | |
11229 | ac_delim='%!_!# ' | |
11230 | for ac_last_try in false false :; do | |
11231 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
11232 | if test -z "$ac_t"; then | |
11233 | break | |
11234 | elif $ac_last_try; then | |
f11781c5 | 11235 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
ec6a6fbe AK |
11236 | else |
11237 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11238 | fi | |
11239 | done | |
11240 | ||
11241 | # For the awk script, D is an array of macro values keyed by name, | |
11242 | # likewise P contains macro parameters if any. Preserve backslash | |
11243 | # newline sequences. | |
11244 | ||
11245 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11246 | sed -n ' | |
11247 | s/.\{148\}/&'"$ac_delim"'/g | |
11248 | t rset | |
11249 | :rset | |
11250 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11251 | t def | |
11252 | d | |
11253 | :def | |
11254 | s/\\$// | |
11255 | t bsnl | |
11256 | s/["\\]/\\&/g | |
11257 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11258 | D["\1"]=" \3"/p | |
11259 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11260 | d | |
11261 | :bsnl | |
11262 | s/["\\]/\\&/g | |
11263 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11264 | D["\1"]=" \3\\\\\\n"\\/p | |
11265 | t cont | |
11266 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11267 | t cont | |
11268 | d | |
11269 | :cont | |
11270 | n | |
11271 | s/.\{148\}/&'"$ac_delim"'/g | |
11272 | t clear | |
11273 | :clear | |
11274 | s/\\$// | |
11275 | t bsnlc | |
11276 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11277 | d | |
11278 | :bsnlc | |
11279 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11280 | b cont | |
11281 | ' <confdefs.h | sed ' | |
11282 | s/'"$ac_delim"'/"\\\ | |
11283 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11284 | ||
11285 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11286 | for (key in D) D_is_set[key] = 1 | |
11287 | FS = "\a" | |
11288 | } | |
11289 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11290 | line = \$ 0 | |
11291 | split(line, arg, " ") | |
11292 | if (arg[1] == "#") { | |
11293 | defundef = arg[2] | |
11294 | mac1 = arg[3] | |
11295 | } else { | |
11296 | defundef = substr(arg[1], 2) | |
11297 | mac1 = arg[2] | |
11298 | } | |
11299 | split(mac1, mac2, "(") #) | |
11300 | macro = mac2[1] | |
11301 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11302 | if (D_is_set[macro]) { | |
11303 | # Preserve the white space surrounding the "#". | |
11304 | print prefix "define", macro P[macro] D[macro] | |
11305 | next | |
11306 | } else { | |
11307 | # Replace #undef with comments. This is necessary, for example, | |
11308 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11309 | # on some systems where configure will not decide to define it. | |
11310 | if (defundef == "undef") { | |
11311 | print "/*", prefix defundef, macro, "*/" | |
11312 | next | |
11313 | } | |
11314 | } | |
11315 | } | |
11316 | { print } | |
11317 | _ACAWK | |
11318 | _ACEOF | |
11319 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
f11781c5 | 11320 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
ec6a6fbe AK |
11321 | fi # test -n "$CONFIG_HEADERS" |
11322 | ||
7a197a62 | 11323 | |
ec6a6fbe AK |
11324 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
11325 | shift | |
11326 | for ac_tag | |
7a197a62 AK |
11327 | do |
11328 | case $ac_tag in | |
11329 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11330 | esac | |
11331 | case $ac_mode$ac_tag in | |
11332 | :[FHL]*:*);; | |
f11781c5 | 11333 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7a197a62 AK |
11334 | :[FH]-) ac_tag=-:-;; |
11335 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11336 | esac | |
11337 | ac_save_IFS=$IFS | |
11338 | IFS=: | |
11339 | set x $ac_tag | |
11340 | IFS=$ac_save_IFS | |
11341 | shift | |
11342 | ac_file=$1 | |
11343 | shift | |
11344 | ||
11345 | case $ac_mode in | |
11346 | :L) ac_source=$1;; | |
11347 | :[FH]) | |
11348 | ac_file_inputs= | |
11349 | for ac_f | |
11350 | do | |
11351 | case $ac_f in | |
11352 | -) ac_f="$tmp/stdin";; | |
11353 | *) # Look for the file first in the build tree, then in the source tree | |
11354 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11355 | # because $ac_f cannot contain `:'. | |
11356 | test -f "$ac_f" || | |
11357 | case $ac_f in | |
11358 | [\\/$]*) false;; | |
11359 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11360 | esac || | |
f11781c5 | 11361 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7a197a62 | 11362 | esac |
ec6a6fbe | 11363 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
f11781c5 | 11364 | as_fn_append ac_file_inputs " '$ac_f'" |
7a197a62 AK |
11365 | done |
11366 | ||
11367 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11368 | # use $as_me), people would be surprised to read: | |
11369 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
11370 | configure_input='Generated from '` |
11371 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
11372 | `' by configure.' | |
7a197a62 AK |
11373 | if test x"$ac_file" != x-; then |
11374 | configure_input="$ac_file. $configure_input" | |
f11781c5 | 11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
ec6a6fbe | 11376 | $as_echo "$as_me: creating $ac_file" >&6;} |
7a197a62 | 11377 | fi |
ec6a6fbe AK |
11378 | # Neutralize special characters interpreted by sed in replacement strings. |
11379 | case $configure_input in #( | |
11380 | *\&* | *\|* | *\\* ) | |
11381 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
11382 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
11383 | *) ac_sed_conf_input=$configure_input;; | |
11384 | esac | |
7a197a62 AK |
11385 | |
11386 | case $ac_tag in | |
ec6a6fbe | 11387 | *:-:* | *:-) cat >"$tmp/stdin" \ |
f11781c5 | 11388 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7a197a62 AK |
11389 | esac |
11390 | ;; | |
80992638 | 11391 | esac |
8106cdd5 | 11392 | |
7a197a62 | 11393 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 11394 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
11395 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11396 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 11397 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 11398 | $as_echo X"$ac_file" | |
7a197a62 AK |
11399 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11400 | s//\1/ | |
11401 | q | |
11402 | } | |
11403 | /^X\(\/\/\)[^/].*/{ | |
11404 | s//\1/ | |
11405 | q | |
11406 | } | |
11407 | /^X\(\/\/\)$/{ | |
11408 | s//\1/ | |
11409 | q | |
11410 | } | |
11411 | /^X\(\/\).*/{ | |
11412 | s//\1/ | |
11413 | q | |
11414 | } | |
11415 | s/.*/./; q'` | |
f11781c5 | 11416 | as_dir="$ac_dir"; as_fn_mkdir_p |
ad6254c5 AK |
11417 | ac_builddir=. |
11418 | ||
7a197a62 AK |
11419 | case "$ac_dir" in |
11420 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11421 | *) | |
ec6a6fbe | 11422 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 11423 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 11424 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
11425 | case $ac_top_builddir_sub in |
11426 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11427 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11428 | esac ;; | |
11429 | esac | |
11430 | ac_abs_top_builddir=$ac_pwd | |
11431 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11432 | # for backward compatibility: | |
11433 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
11434 | |
11435 | case $srcdir in | |
7a197a62 | 11436 | .) # We are building in place. |
ad6254c5 | 11437 | ac_srcdir=. |
7a197a62 AK |
11438 | ac_top_srcdir=$ac_top_builddir_sub |
11439 | ac_abs_top_srcdir=$ac_pwd ;; | |
11440 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 11441 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
11442 | ac_top_srcdir=$srcdir |
11443 | ac_abs_top_srcdir=$srcdir ;; | |
11444 | *) # Relative name. | |
11445 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11446 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11447 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 11448 | esac |
7a197a62 | 11449 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 11450 | |
ad6254c5 | 11451 | |
7a197a62 AK |
11452 | case $ac_mode in |
11453 | :F) | |
11454 | # | |
11455 | # CONFIG_FILE | |
11456 | # | |
ad6254c5 AK |
11457 | |
11458 | case $INSTALL in | |
11459 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 11460 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 11461 | esac |
fddafd51 ZK |
11462 | ac_MKDIR_P=$MKDIR_P |
11463 | case $MKDIR_P in | |
11464 | [\\/$]* | ?:[\\/]* ) ;; | |
11465 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
11466 | esac | |
7a197a62 | 11467 | _ACEOF |
795ca3e5 | 11468 | |
ec6a6fbe | 11469 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11470 | # If the template does not know about datarootdir, expand it. |
11471 | # FIXME: This hack should be removed a few years after 2.60. | |
11472 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
ec6a6fbe AK |
11473 | ac_sed_dataroot=' |
11474 | /datarootdir/ { | |
7a197a62 AK |
11475 | p |
11476 | q | |
11477 | } | |
11478 | /@datadir@/p | |
11479 | /@docdir@/p | |
11480 | /@infodir@/p | |
11481 | /@localedir@/p | |
f11781c5 | 11482 | /@mandir@/p' |
ec6a6fbe | 11483 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7a197a62 AK |
11484 | *datarootdir*) ac_datarootdir_seen=yes;; |
11485 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
f11781c5 | 11486 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
ec6a6fbe | 11487 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
ad6254c5 | 11488 | _ACEOF |
ec6a6fbe | 11489 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11490 | ac_datarootdir_hack=' |
11491 | s&@datadir@&$datadir&g | |
11492 | s&@docdir@&$docdir&g | |
11493 | s&@infodir@&$infodir&g | |
11494 | s&@localedir@&$localedir&g | |
11495 | s&@mandir@&$mandir&g | |
f11781c5 | 11496 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7a197a62 AK |
11497 | esac |
11498 | _ACEOF | |
11499 | ||
11500 | # Neutralize VPATH when `$srcdir' = `.'. | |
11501 | # Shell code in configure.ac might set extrasub. | |
11502 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
11503 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11504 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
11505 | $extrasub |
11506 | _ACEOF | |
ec6a6fbe | 11507 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
11508 | :t |
11509 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 11510 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 11511 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 11512 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
11513 | s&@srcdir@&$ac_srcdir&;t t |
11514 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11515 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11516 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11517 | s&@builddir@&$ac_builddir&;t t | |
11518 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11519 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11520 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 11521 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 11522 | $ac_datarootdir_hack |
ec6a6fbe AK |
11523 | " |
11524 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
f11781c5 | 11525 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11526 | |
11527 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11528 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
11529 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
f11781c5 AK |
11530 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
11531 | which seems to be undefined. Please make sure it is defined" >&5 | |
ec6a6fbe | 11532 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f11781c5 | 11533 | which seems to be undefined. Please make sure it is defined" >&2;} |
7a197a62 AK |
11534 | |
11535 | rm -f "$tmp/stdin" | |
72b2cb61 | 11536 | case $ac_file in |
ec6a6fbe AK |
11537 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
11538 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
11539 | esac \ | |
f11781c5 | 11540 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11541 | ;; |
11542 | :H) | |
11543 | # | |
11544 | # CONFIG_HEADER | |
11545 | # | |
72b2cb61 | 11546 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
11547 | { |
11548 | $as_echo "/* $configure_input */" \ | |
11549 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
11550 | } >"$tmp/config.h" \ | |
f11781c5 | 11551 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
ec6a6fbe | 11552 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
f11781c5 | 11553 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
ec6a6fbe | 11554 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
72b2cb61 | 11555 | else |
ec6a6fbe AK |
11556 | rm -f "$ac_file" |
11557 | mv "$tmp/config.h" "$ac_file" \ | |
f11781c5 | 11558 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
72b2cb61 AK |
11559 | fi |
11560 | else | |
ec6a6fbe AK |
11561 | $as_echo "/* $configure_input */" \ |
11562 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
f11781c5 | 11563 | || as_fn_error $? "could not create -" "$LINENO" 5 |
72b2cb61 | 11564 | fi |
7a197a62 AK |
11565 | ;; |
11566 | ||
11567 | ||
11568 | esac | |
11569 | ||
11570 | done # for ac_tag | |
795ca3e5 | 11571 | |
795ca3e5 | 11572 | |
f11781c5 | 11573 | as_fn_exit 0 |
ad6254c5 | 11574 | _ACEOF |
ad6254c5 AK |
11575 | ac_clean_files=$ac_clean_files_save |
11576 | ||
ec6a6fbe | 11577 | test $ac_write_fail = 0 || |
f11781c5 | 11578 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe | 11579 | |
ad6254c5 AK |
11580 | |
11581 | # configure is writing to config.log, and then calls config.status. | |
11582 | # config.status does its own redirection, appending to config.log. | |
11583 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11584 | # by configure, so config.status won't be able to write to it; its | |
11585 | # output is simply discarded. So we exec the FD to /dev/null, | |
11586 | # effectively closing config.log, so it can be properly (re)opened and | |
11587 | # appended to by config.status. When coming back to configure, we | |
11588 | # need to make the FD available again. | |
11589 | if test "$no_create" != yes; then | |
11590 | ac_cs_success=: | |
11591 | ac_config_status_args= | |
11592 | test "$silent" = yes && | |
11593 | ac_config_status_args="$ac_config_status_args --quiet" | |
11594 | exec 5>/dev/null | |
11595 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11596 | exec 5>>config.log | |
11597 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11598 | # would make configure fail if this is the last instruction. | |
f11781c5 | 11599 | $ac_cs_success || as_fn_exit 1 |
ad6254c5 | 11600 | fi |
ec6a6fbe | 11601 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
f11781c5 | 11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
ec6a6fbe AK |
11603 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
11604 | fi | |
795ca3e5 | 11605 | |
2dc95e1c AK |
11606 | |
11607 | if test x$ODIRECT != xyes; then | |
f11781c5 | 11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
ec6a6fbe | 11609 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} |
2dc95e1c | 11610 | fi |