]>
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 |
606d0858 | 622 | OCFDIR |
37ddf259 | 623 | OCF |
ec6a6fbe AK |
624 | MIRRORS |
625 | LVM_RELEASE_DATE | |
626 | LVM_RELEASE | |
627 | LVM_PATCHLEVEL | |
628 | LVM_MINOR | |
629 | LVM_MAJOR | |
bf456146 | 630 | LVM_LIBAPI |
ec6a6fbe | 631 | LVM_VERSION |
ec6a6fbe AK |
632 | LVM1_FALLBACK |
633 | LVM1 | |
634 | LOCALEDIR | |
635 | LIB_SUFFIX | |
636 | LDDEPS | |
637 | JOBS | |
638 | INTL_PACKAGE | |
639 | INTL | |
ec6a6fbe AK |
640 | HAVE_REALTIME |
641 | HAVE_LIBDL | |
ec6a6fbe AK |
642 | FSADM |
643 | DM_LIB_PATCHLEVEL | |
644 | DM_LIB_VERSION | |
645 | DM_IOCTLS | |
646 | DM_DEVICE_UID | |
647 | DM_DEVICE_MODE | |
648 | DM_DEVICE_GID | |
649 | DM_COMPAT | |
d1e8046f | 650 | DMEVENTD_PATH |
ec6a6fbe | 651 | DMEVENTD |
19a2c6e0 | 652 | DL_LIBS |
ec6a6fbe | 653 | DEVMAPPER |
b1f08e51 | 654 | DEFAULT_RUN_DIR |
3399ae32 | 655 | DEFAULT_LOCK_DIR |
fea55602 | 656 | DEFAULT_DATA_ALIGNMENT |
3399ae32 AK |
657 | DEFAULT_CACHE_SUBDIR |
658 | DEFAULT_BACKUP_SUBDIR | |
659 | DEFAULT_ARCHIVE_SUBDIR | |
660 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
661 | DEBUG |
662 | COPTIMISE_FLAG | |
e2997b73 | 663 | CONFDIR |
ec6a6fbe | 664 | CMDLIB |
c89bc357 | 665 | CLVMD_CMANAGERS |
ec6a6fbe AK |
666 | CLVMD |
667 | CLUSTER | |
668 | CLDWHOLEARCHIVE | |
669 | CLDNOWHOLEARCHIVE | |
670 | CLDFLAGS | |
671 | BUILD_DMEVENTD | |
66fd4529 | 672 | BUILD_CMIRRORD |
572fefeb | 673 | APPLIB |
ec6a6fbe AK |
674 | MODPROBE_CMD |
675 | MSGFMT | |
676 | LVM2CMD_LIB | |
572fefeb | 677 | LVM2APP_LIB |
54b362f9 AK |
678 | VALGRIND |
679 | RUBY19 | |
fd4728e1 | 680 | GENPNG |
ec6a6fbe AK |
681 | GENHTML |
682 | LCOV | |
90c80887 AK |
683 | SACKPT_LIBS |
684 | SACKPT_CFLAGS | |
a946372e AK |
685 | DLM_LIBS |
686 | DLM_CFLAGS | |
e2997b73 AK |
687 | CPG_LIBS |
688 | CPG_CFLAGS | |
689 | CONFDB_LIBS | |
690 | CONFDB_CFLAGS | |
a946372e AK |
691 | SALCK_LIBS |
692 | SALCK_CFLAGS | |
e2997b73 AK |
693 | QUORUM_LIBS |
694 | QUORUM_CFLAGS | |
a946372e AK |
695 | COROSYNC_LIBS |
696 | COROSYNC_CFLAGS | |
697 | CMAN_LIBS | |
698 | CMAN_CFLAGS | |
699 | GULM_LIBS | |
700 | GULM_CFLAGS | |
701 | CCS_LIBS | |
702 | CCS_CFLAGS | |
703 | PKGCONFIGINIT_LIBS | |
704 | PKGCONFIGINIT_CFLAGS | |
f11781c5 AK |
705 | PKG_CONFIG_LIBDIR |
706 | PKG_CONFIG_PATH | |
e2997b73 | 707 | PKG_CONFIG |
ec6a6fbe AK |
708 | POW_LIB |
709 | LIBOBJS | |
710 | ALLOCA | |
711 | CSCOPE_CMD | |
712 | CFLOW_CMD | |
713 | RANLIB | |
714 | MKDIR_P | |
715 | SET_MAKE | |
716 | LN_S | |
717 | INSTALL_DATA | |
718 | INSTALL_SCRIPT | |
719 | INSTALL_PROGRAM | |
720 | EGREP | |
721 | GREP | |
722 | CPP | |
723 | OBJEXT | |
724 | EXEEXT | |
725 | ac_ct_CC | |
726 | CPPFLAGS | |
727 | LDFLAGS | |
728 | CFLAGS | |
729 | CC | |
730 | AWK | |
731 | SED | |
732 | target_os | |
733 | target_vendor | |
734 | target_cpu | |
735 | target | |
736 | host_os | |
737 | host_vendor | |
738 | host_cpu | |
739 | host | |
740 | build_os | |
741 | build_vendor | |
742 | build_cpu | |
743 | build | |
744 | target_alias | |
745 | host_alias | |
746 | build_alias | |
747 | LIBS | |
748 | ECHO_T | |
749 | ECHO_N | |
750 | ECHO_C | |
751 | DEFS | |
752 | mandir | |
753 | localedir | |
754 | libdir | |
755 | psdir | |
756 | pdfdir | |
757 | dvidir | |
758 | htmldir | |
759 | infodir | |
760 | docdir | |
761 | oldincludedir | |
762 | includedir | |
763 | localstatedir | |
764 | sharedstatedir | |
765 | sysconfdir | |
766 | datadir | |
767 | datarootdir | |
768 | libexecdir | |
769 | sbindir | |
770 | bindir | |
771 | program_transform_name | |
772 | prefix | |
773 | exec_prefix | |
f11781c5 | 774 | PACKAGE_URL |
ec6a6fbe AK |
775 | PACKAGE_BUGREPORT |
776 | PACKAGE_STRING | |
777 | PACKAGE_VERSION | |
778 | PACKAGE_TARNAME | |
779 | PACKAGE_NAME | |
780 | PATH_SEPARATOR | |
781 | SHELL' | |
ad6254c5 | 782 | ac_subst_files='' |
ec6a6fbe AK |
783 | ac_user_opts=' |
784 | enable_option_checking | |
785 | enable_static_link | |
786 | with_user | |
787 | with_group | |
788 | with_device_uid | |
789 | with_device_gid | |
790 | with_device_mode | |
791 | enable_lvm1_fallback | |
792 | with_lvm1 | |
793 | with_pool | |
794 | with_cluster | |
795 | with_snapshots | |
796 | with_mirrors | |
8fea97b7 | 797 | with_replicators |
ec6a6fbe AK |
798 | enable_readline |
799 | enable_realtime | |
37ddf259 | 800 | enable_ocf |
606d0858 | 801 | with_ocfdir |
ec6a6fbe | 802 | with_clvmd |
8c4e8a18 | 803 | with_clvmd_pidfile |
66fd4529 AK |
804 | enable_cmirrord |
805 | with_cmirrord_pidfile | |
ec6a6fbe AK |
806 | enable_debug |
807 | with_optimisation | |
808 | enable_profiling | |
54b362f9 | 809 | enable_testing |
d1e8046f | 810 | enable_valgrind_pool |
ec6a6fbe | 811 | enable_devmapper |
a5f46f6a AK |
812 | enable_udev_sync |
813 | enable_udev_rules | |
ec6a6fbe | 814 | enable_compat |
95eaa683 | 815 | enable_units_compat |
ec6a6fbe AK |
816 | enable_ioctl |
817 | enable_o_direct | |
572fefeb | 818 | enable_applib |
ec6a6fbe AK |
819 | enable_cmdlib |
820 | enable_pkgconfig | |
23b059e7 | 821 | enable_write_install |
ec6a6fbe AK |
822 | enable_fsadm |
823 | enable_dmeventd | |
824 | enable_selinux | |
825 | enable_nls | |
826 | with_localedir | |
827 | with_confdir | |
828 | with_staticdir | |
829 | with_usrlibdir | |
830 | with_usrsbindir | |
a5f46f6a | 831 | with_udev_prefix |
78ce7acc | 832 | with_udevdir |
ec6a6fbe AK |
833 | with_dmeventd_pidfile |
834 | with_dmeventd_path | |
8bae0a1e | 835 | with_default_run_dir |
3399ae32 AK |
836 | with_default_system_dir |
837 | with_default_archive_subdir | |
838 | with_default_backup_subdir | |
839 | with_default_cache_subdir | |
840 | with_default_locking_dir | |
fea55602 | 841 | with_default_data_alignment |
ec6a6fbe AK |
842 | with_interface |
843 | ' | |
7a197a62 AK |
844 | ac_precious_vars='build_alias |
845 | host_alias | |
846 | target_alias | |
847 | CC | |
848 | CFLAGS | |
849 | LDFLAGS | |
25fbec5b | 850 | LIBS |
7a197a62 | 851 | CPPFLAGS |
e2997b73 AK |
852 | CPP |
853 | PKG_CONFIG | |
f11781c5 AK |
854 | PKG_CONFIG_PATH |
855 | PKG_CONFIG_LIBDIR | |
a946372e AK |
856 | PKGCONFIGINIT_CFLAGS |
857 | PKGCONFIGINIT_LIBS | |
858 | CCS_CFLAGS | |
859 | CCS_LIBS | |
860 | GULM_CFLAGS | |
861 | GULM_LIBS | |
862 | CMAN_CFLAGS | |
863 | CMAN_LIBS | |
864 | COROSYNC_CFLAGS | |
865 | COROSYNC_LIBS | |
e2997b73 AK |
866 | QUORUM_CFLAGS |
867 | QUORUM_LIBS | |
a946372e AK |
868 | SALCK_CFLAGS |
869 | SALCK_LIBS | |
e2997b73 AK |
870 | CONFDB_CFLAGS |
871 | CONFDB_LIBS | |
872 | CPG_CFLAGS | |
a946372e AK |
873 | CPG_LIBS |
874 | DLM_CFLAGS | |
90c80887 AK |
875 | DLM_LIBS |
876 | SACKPT_CFLAGS | |
877 | SACKPT_LIBS' | |
7a197a62 | 878 | |
795ca3e5 AK |
879 | |
880 | # Initialize some variables set by options. | |
ad6254c5 AK |
881 | ac_init_help= |
882 | ac_init_version=false | |
ec6a6fbe AK |
883 | ac_unrecognized_opts= |
884 | ac_unrecognized_sep= | |
795ca3e5 AK |
885 | # The variables have the same names as the options, with |
886 | # dashes changed to underlines. | |
ad6254c5 | 887 | cache_file=/dev/null |
795ca3e5 | 888 | exec_prefix=NONE |
795ca3e5 | 889 | no_create= |
795ca3e5 AK |
890 | no_recursion= |
891 | prefix=NONE | |
892 | program_prefix=NONE | |
893 | program_suffix=NONE | |
894 | program_transform_name=s,x,x, | |
895 | silent= | |
896 | site= | |
897 | srcdir= | |
795ca3e5 AK |
898 | verbose= |
899 | x_includes=NONE | |
900 | x_libraries=NONE | |
ad6254c5 AK |
901 | |
902 | # Installation directory options. | |
903 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
904 | # and all the variables that are supposed to be based on exec_prefix | |
905 | # by default will actually change. | |
906 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 907 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
908 | bindir='${exec_prefix}/bin' |
909 | sbindir='${exec_prefix}/sbin' | |
910 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
911 | datarootdir='${prefix}/share' |
912 | datadir='${datarootdir}' | |
795ca3e5 AK |
913 | sysconfdir='${prefix}/etc' |
914 | sharedstatedir='${prefix}/com' | |
915 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
916 | includedir='${prefix}/include' |
917 | oldincludedir='/usr/include' | |
7a197a62 AK |
918 | docdir='${datarootdir}/doc/${PACKAGE}' |
919 | infodir='${datarootdir}/info' | |
920 | htmldir='${docdir}' | |
921 | dvidir='${docdir}' | |
922 | pdfdir='${docdir}' | |
923 | psdir='${docdir}' | |
924 | libdir='${exec_prefix}/lib' | |
925 | localedir='${datarootdir}/locale' | |
926 | mandir='${datarootdir}/man' | |
795ca3e5 | 927 | |
795ca3e5 | 928 | ac_prev= |
7a197a62 | 929 | ac_dashdash= |
795ca3e5 AK |
930 | for ac_option |
931 | do | |
795ca3e5 AK |
932 | # If the previous option needs an argument, assign it. |
933 | if test -n "$ac_prev"; then | |
7a197a62 | 934 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
935 | ac_prev= |
936 | continue | |
937 | fi | |
938 | ||
7a197a62 AK |
939 | case $ac_option in |
940 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
941 | *) ac_optarg=yes ;; | |
942 | esac | |
795ca3e5 AK |
943 | |
944 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
945 | ||
7a197a62 AK |
946 | case $ac_dashdash$ac_option in |
947 | --) | |
948 | ac_dashdash=yes ;; | |
795ca3e5 AK |
949 | |
950 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
951 | ac_prev=bindir ;; | |
952 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 953 | bindir=$ac_optarg ;; |
795ca3e5 AK |
954 | |
955 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 956 | ac_prev=build_alias ;; |
795ca3e5 | 957 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 958 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
959 | |
960 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
961 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
962 | ac_prev=cache_file ;; | |
963 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
964 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
965 | cache_file=$ac_optarg ;; |
966 | ||
967 | --config-cache | -C) | |
968 | cache_file=config.cache ;; | |
795ca3e5 | 969 | |
7a197a62 | 970 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 971 | ac_prev=datadir ;; |
7a197a62 | 972 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 973 | datadir=$ac_optarg ;; |
795ca3e5 | 974 | |
7a197a62 AK |
975 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
976 | | --dataroo | --dataro | --datar) | |
977 | ac_prev=datarootdir ;; | |
978 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
979 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
980 | datarootdir=$ac_optarg ;; | |
981 | ||
795ca3e5 | 982 | -disable-* | --disable-*) |
ec6a6fbe | 983 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 984 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 985 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 986 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
987 | ac_useropt_orig=$ac_useropt |
988 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
989 | case $ac_user_opts in | |
990 | *" | |
991 | "enable_$ac_useropt" | |
992 | "*) ;; | |
993 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
994 | ac_unrecognized_sep=', ';; | |
995 | esac | |
996 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
997 | |
998 | -docdir | --docdir | --docdi | --doc | --do) | |
999 | ac_prev=docdir ;; | |
1000 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1001 | docdir=$ac_optarg ;; | |
1002 | ||
1003 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1004 | ac_prev=dvidir ;; | |
1005 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1006 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1007 | |
1008 | -enable-* | --enable-*) | |
ec6a6fbe | 1009 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1010 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1011 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1012 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
1013 | ac_useropt_orig=$ac_useropt |
1014 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1015 | case $ac_user_opts in | |
1016 | *" | |
1017 | "enable_$ac_useropt" | |
1018 | "*) ;; | |
1019 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1020 | ac_unrecognized_sep=', ';; | |
1021 | esac | |
1022 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1023 | |
1024 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1025 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1026 | | --exec | --exe | --ex) | |
1027 | ac_prev=exec_prefix ;; | |
1028 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1029 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1030 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1031 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1032 | |
1033 | -gas | --gas | --ga | --g) | |
1034 | # Obsolete; use --with-gas. | |
1035 | with_gas=yes ;; | |
1036 | ||
ad6254c5 AK |
1037 | -help | --help | --hel | --he | -h) |
1038 | ac_init_help=long ;; | |
1039 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1040 | ac_init_help=recursive ;; | |
1041 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1042 | ac_init_help=short ;; | |
795ca3e5 AK |
1043 | |
1044 | -host | --host | --hos | --ho) | |
ad6254c5 | 1045 | ac_prev=host_alias ;; |
795ca3e5 | 1046 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1047 | host_alias=$ac_optarg ;; |
795ca3e5 | 1048 | |
7a197a62 AK |
1049 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1050 | ac_prev=htmldir ;; | |
1051 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1052 | | --ht=*) | |
1053 | htmldir=$ac_optarg ;; | |
1054 | ||
795ca3e5 AK |
1055 | -includedir | --includedir | --includedi | --included | --include \ |
1056 | | --includ | --inclu | --incl | --inc) | |
1057 | ac_prev=includedir ;; | |
1058 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1059 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1060 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1061 | |
1062 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1063 | ac_prev=infodir ;; | |
1064 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1065 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1066 | |
1067 | -libdir | --libdir | --libdi | --libd) | |
1068 | ac_prev=libdir ;; | |
1069 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1070 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1071 | |
1072 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1073 | | --libexe | --libex | --libe) | |
1074 | ac_prev=libexecdir ;; | |
1075 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1076 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1077 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1078 | |
7a197a62 AK |
1079 | -localedir | --localedir | --localedi | --localed | --locale) |
1080 | ac_prev=localedir ;; | |
1081 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1082 | localedir=$ac_optarg ;; | |
1083 | ||
795ca3e5 | 1084 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1085 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1086 | ac_prev=localstatedir ;; |
1087 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1088 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1089 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1090 | |
1091 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1092 | ac_prev=mandir ;; | |
1093 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1094 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1095 | |
1096 | -nfp | --nfp | --nf) | |
1097 | # Obsolete; use --without-fp. | |
1098 | with_fp=no ;; | |
1099 | ||
1100 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1101 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1102 | no_create=yes ;; |
1103 | ||
1104 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1105 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1106 | no_recursion=yes ;; | |
1107 | ||
1108 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1109 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1110 | | --oldin | --oldi | --old | --ol | --o) | |
1111 | ac_prev=oldincludedir ;; | |
1112 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1113 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1114 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1115 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1116 | |
1117 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1118 | ac_prev=prefix ;; | |
1119 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1120 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1121 | |
1122 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1123 | | --program-pre | --program-pr | --program-p) | |
1124 | ac_prev=program_prefix ;; | |
1125 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1126 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1127 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1128 | |
1129 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1130 | | --program-suf | --program-su | --program-s) | |
1131 | ac_prev=program_suffix ;; | |
1132 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1133 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1134 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1135 | |
1136 | -program-transform-name | --program-transform-name \ | |
1137 | | --program-transform-nam | --program-transform-na \ | |
1138 | | --program-transform-n | --program-transform- \ | |
1139 | | --program-transform | --program-transfor \ | |
1140 | | --program-transfo | --program-transf \ | |
1141 | | --program-trans | --program-tran \ | |
1142 | | --progr-tra | --program-tr | --program-t) | |
1143 | ac_prev=program_transform_name ;; | |
1144 | -program-transform-name=* | --program-transform-name=* \ | |
1145 | | --program-transform-nam=* | --program-transform-na=* \ | |
1146 | | --program-transform-n=* | --program-transform-=* \ | |
1147 | | --program-transform=* | --program-transfor=* \ | |
1148 | | --program-transfo=* | --program-transf=* \ | |
1149 | | --program-trans=* | --program-tran=* \ | |
1150 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1151 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1152 | |
7a197a62 AK |
1153 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1154 | ac_prev=pdfdir ;; | |
1155 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1156 | pdfdir=$ac_optarg ;; | |
1157 | ||
1158 | -psdir | --psdir | --psdi | --psd | --ps) | |
1159 | ac_prev=psdir ;; | |
1160 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1161 | psdir=$ac_optarg ;; | |
1162 | ||
795ca3e5 AK |
1163 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1164 | | -silent | --silent | --silen | --sile | --sil) | |
1165 | silent=yes ;; | |
1166 | ||
1167 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1168 | ac_prev=sbindir ;; | |
1169 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1170 | | --sbi=* | --sb=*) | |
ad6254c5 | 1171 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1172 | |
1173 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1174 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1175 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1176 | | --sha | --sh) | |
1177 | ac_prev=sharedstatedir ;; | |
1178 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1179 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1180 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1181 | | --sha=* | --sh=*) | |
ad6254c5 | 1182 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1183 | |
1184 | -site | --site | --sit) | |
1185 | ac_prev=site ;; | |
1186 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1187 | site=$ac_optarg ;; |
795ca3e5 AK |
1188 | |
1189 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1190 | ac_prev=srcdir ;; | |
1191 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1192 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1193 | |
1194 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1195 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1196 | ac_prev=sysconfdir ;; | |
1197 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1198 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1199 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1200 | |
1201 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1202 | ac_prev=target_alias ;; |
795ca3e5 | 1203 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1204 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1205 | |
1206 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1207 | verbose=yes ;; | |
1208 | ||
ad6254c5 AK |
1209 | -version | --version | --versio | --versi | --vers | -V) |
1210 | ac_init_version=: ;; | |
795ca3e5 AK |
1211 | |
1212 | -with-* | --with-*) | |
ec6a6fbe | 1213 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1214 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1215 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1216 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1217 | ac_useropt_orig=$ac_useropt |
1218 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1219 | case $ac_user_opts in | |
1220 | *" | |
1221 | "with_$ac_useropt" | |
1222 | "*) ;; | |
1223 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1224 | ac_unrecognized_sep=', ';; | |
1225 | esac | |
1226 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1227 | |
1228 | -without-* | --without-*) | |
ec6a6fbe | 1229 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1230 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1231 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1232 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1233 | ac_useropt_orig=$ac_useropt |
1234 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1235 | case $ac_user_opts in | |
1236 | *" | |
1237 | "with_$ac_useropt" | |
1238 | "*) ;; | |
1239 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1240 | ac_unrecognized_sep=', ';; | |
1241 | esac | |
1242 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1243 | |
1244 | --x) | |
1245 | # Obsolete; use --with-x. | |
1246 | with_x=yes ;; | |
1247 | ||
1248 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1249 | | --x-incl | --x-inc | --x-in | --x-i) | |
1250 | ac_prev=x_includes ;; | |
1251 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1252 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1253 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1254 | |
1255 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1256 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1257 | ac_prev=x_libraries ;; | |
1258 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1259 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1260 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1261 | |
f11781c5 AK |
1262 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1263 | Try \`$0 --help' for more information" | |
795ca3e5 AK |
1264 | ;; |
1265 | ||
ad6254c5 AK |
1266 | *=*) |
1267 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1268 | # Reject names that are not valid shell variable names. | |
f11781c5 AK |
1269 | case $ac_envvar in #( |
1270 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1271 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1272 | esac | |
7a197a62 | 1273 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1274 | export $ac_envvar ;; |
1275 | ||
795ca3e5 | 1276 | *) |
ad6254c5 | 1277 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1278 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1279 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1280 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1281 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1282 | ;; |
1283 | ||
1284 | esac | |
1285 | done | |
1286 | ||
1287 | if test -n "$ac_prev"; then | |
ad6254c5 | 1288 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
f11781c5 | 1289 | as_fn_error $? "missing argument to $ac_option" |
795ca3e5 | 1290 | fi |
795ca3e5 | 1291 | |
ec6a6fbe AK |
1292 | if test -n "$ac_unrecognized_opts"; then |
1293 | case $enable_option_checking in | |
1294 | no) ;; | |
f11781c5 | 1295 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
ec6a6fbe AK |
1296 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1297 | esac | |
1298 | fi | |
1299 | ||
1300 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1301 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1302 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1303 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1304 | libdir localedir mandir | |
795ca3e5 | 1305 | do |
7a197a62 | 1306 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1307 | # Remove trailing slashes. |
1308 | case $ac_val in | |
1309 | */ ) | |
1310 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1311 | eval $ac_var=\$ac_val;; | |
1312 | esac | |
1313 | # Be sure to have absolute directory names. | |
ad6254c5 | 1314 | case $ac_val in |
7a197a62 AK |
1315 | [\\/$]* | ?:[\\/]* ) continue;; |
1316 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1317 | esac |
f11781c5 | 1318 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
795ca3e5 AK |
1319 | done |
1320 | ||
ad6254c5 AK |
1321 | # There might be people who depend on the old broken behavior: `$host' |
1322 | # used to hold the argument of --host etc. | |
1323 | # FIXME: To remove some day. | |
1324 | build=$build_alias | |
1325 | host=$host_alias | |
1326 | target=$target_alias | |
1327 | ||
1328 | # FIXME: To remove some day. | |
1329 | if test "x$host_alias" != x; then | |
1330 | if test "x$build_alias" = x; then | |
1331 | cross_compiling=maybe | |
f11781c5 AK |
1332 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1333 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
ad6254c5 AK |
1334 | elif test "x$build_alias" != "x$host_alias"; then |
1335 | cross_compiling=yes | |
1336 | fi | |
1337 | fi | |
8106cdd5 | 1338 | |
ad6254c5 AK |
1339 | ac_tool_prefix= |
1340 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1341 | ||
1342 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1343 | |
795ca3e5 | 1344 | |
7a197a62 AK |
1345 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1346 | ac_ls_di=`ls -di .` && | |
1347 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f11781c5 | 1348 | as_fn_error $? "working directory cannot be determined" |
7a197a62 | 1349 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f11781c5 | 1350 | as_fn_error $? "pwd does not report name of working directory" |
7a197a62 AK |
1351 | |
1352 | ||
795ca3e5 AK |
1353 | # Find the source files, if location was not specified. |
1354 | if test -z "$srcdir"; then | |
1355 | ac_srcdir_defaulted=yes | |
7a197a62 | 1356 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1357 | ac_confdir=`$as_dirname -- "$as_myself" || |
1358 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1359 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1360 | X"$as_myself" : 'X\(//\)$' \| \ | |
1361 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1362 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1363 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1364 | s//\1/ | |
1365 | q | |
1366 | } | |
1367 | /^X\(\/\/\)[^/].*/{ | |
1368 | s//\1/ | |
1369 | q | |
1370 | } | |
1371 | /^X\(\/\/\)$/{ | |
1372 | s//\1/ | |
1373 | q | |
1374 | } | |
1375 | /^X\(\/\).*/{ | |
1376 | s//\1/ | |
1377 | q | |
1378 | } | |
1379 | s/.*/./; q'` | |
795ca3e5 | 1380 | srcdir=$ac_confdir |
7a197a62 | 1381 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1382 | srcdir=.. |
1383 | fi | |
1384 | else | |
1385 | ac_srcdir_defaulted=no | |
1386 | fi | |
7a197a62 AK |
1387 | if test ! -r "$srcdir/$ac_unique_file"; then |
1388 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f11781c5 | 1389 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
795ca3e5 | 1390 | fi |
7a197a62 AK |
1391 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1392 | ac_abs_confdir=`( | |
f11781c5 | 1393 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7a197a62 AK |
1394 | pwd)` |
1395 | # When building in place, set srcdir=. | |
1396 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1397 | srcdir=. | |
1398 | fi | |
1399 | # Remove unnecessary trailing slashes from srcdir. | |
1400 | # Double slashes in file names in object file debugging info | |
1401 | # mess up M-x gdb in Emacs. | |
1402 | case $srcdir in | |
1403 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1404 | esac | |
1405 | for ac_var in $ac_precious_vars; do | |
1406 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1407 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1408 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1409 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1410 | done | |
ad6254c5 AK |
1411 | |
1412 | # | |
1413 | # Report the --help message. | |
1414 | # | |
1415 | if test "$ac_init_help" = "long"; then | |
1416 | # Omit some internal or obsolete options to make the list less imposing. | |
1417 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1418 | cat <<_ACEOF | |
1419 | \`configure' configures this package to adapt to many kinds of systems. | |
1420 | ||
1421 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1422 | ||
1423 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1424 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1425 | ||
1426 | Defaults for the options are specified in brackets. | |
1427 | ||
1428 | Configuration: | |
1429 | -h, --help display this help and exit | |
1430 | --help=short display options specific to this package | |
1431 | --help=recursive display the short help of all the included packages | |
1432 | -V, --version display version information and exit | |
f11781c5 | 1433 | -q, --quiet, --silent do not print \`checking ...' messages |
ad6254c5 AK |
1434 | --cache-file=FILE cache test results in FILE [disabled] |
1435 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1436 | -n, --no-create do not create output files | |
1437 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1438 | ||
ad6254c5 AK |
1439 | Installation directories: |
1440 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1441 | [$ac_default_prefix] |
ad6254c5 | 1442 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1443 | [PREFIX] |
ad6254c5 AK |
1444 | |
1445 | By default, \`make install' will install all the files in | |
1446 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1447 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1448 | for instance \`--prefix=\$HOME'. | |
1449 | ||
1450 | For better control, use the options below. | |
1451 | ||
1452 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1453 | --bindir=DIR user executables [EPREFIX/bin] |
1454 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1455 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1456 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1457 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1458 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1459 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1460 | --includedir=DIR C header files [PREFIX/include] | |
1461 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1462 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1463 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1464 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1465 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1466 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1467 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1468 | --htmldir=DIR html documentation [DOCDIR] | |
1469 | --dvidir=DIR dvi documentation [DOCDIR] | |
1470 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1471 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1472 | _ACEOF |
1473 | ||
1474 | cat <<\_ACEOF | |
1475 | ||
1476 | System types: | |
1477 | --build=BUILD configure for building on BUILD [guessed] | |
1478 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1479 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1480 | _ACEOF | |
1481 | fi | |
1482 | ||
1483 | if test -n "$ac_init_help"; then | |
1484 | ||
1485 | cat <<\_ACEOF | |
1486 | ||
1487 | Optional Features: | |
ec6a6fbe | 1488 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1489 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1490 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1491 | --enable-static_link use this to link the tools to their libraries |
1492 | statically (default is dynamic linking | |
1493 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1494 | device-mapper is missing from the kernel |
71082be4 ZK |
1495 | --disable-readline disable readline support |
1496 | --enable-realtime enable realtime clock support | |
37ddf259 AK |
1497 | --enable-ocf enable Open Cluster Framework (OCF) compliant |
1498 | resource agents | |
71082be4 ZK |
1499 | --enable-cmirrord enable the cluster mirror log daemon |
1500 | --enable-debug enable debugging | |
1501 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1502 | --enable-testing enable testing targets in the makefile |
d1e8046f | 1503 | --enable-valgrind-pool enable valgrind awareness of pools |
71082be4 ZK |
1504 | --disable-devmapper disable LVM2 device-mapper interaction |
1505 | --enable-udev_sync enable synchronisation with udev processing | |
1506 | --enable-udev_rules install rule files needed for udev synchronisation | |
1507 | --enable-compat enable support for old device-mapper versions | |
1508 | --enable-units-compat enable output compatibility with old versions that | |
1509 | that do not use KiB-style unit suffixes | |
1510 | --disable-driver disable calls to device-mapper in the kernel | |
1511 | --disable-o_direct disable O_DIRECT | |
1512 | --enable-applib build application library | |
1513 | --enable-cmdlib build shared command library | |
1514 | --enable-pkgconfig install pkgconfig support | |
1515 | --enable-write_install install user writable files | |
1516 | --disable-fsadm disable fsadm | |
1517 | --enable-dmeventd enable the device-mapper event daemon | |
1518 | --disable-selinux disable selinux support | |
1519 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1520 | |
1521 | Optional Packages: | |
1522 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1523 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
f11781c5 AK |
1524 | --with-user=USER set the owner of installed files [[USER=]] |
1525 | --with-group=GROUP set the group owner of installed files [[GROUP=]] | |
1526 | --with-device-uid=UID set the owner used for new device nodes [[UID=0]] | |
1527 | --with-device-gid=GID set the group used for new device nodes [[GID=0]] | |
1528 | --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]] | |
ad6254c5 | 1529 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
f11781c5 | 1530 | [[TYPE=internal]] |
ad6254c5 | 1531 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
f11781c5 | 1532 | [[TYPE=internal]] |
71082be4 | 1533 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none |
f11781c5 | 1534 | [[TYPE=internal]] |
71082be4 | 1535 | --with-snapshots=TYPE snapshot support: internal/shared/none |
f11781c5 | 1536 | [[TYPE=internal]] |
71082be4 | 1537 | --with-mirrors=TYPE mirror support: internal/shared/none |
f11781c5 | 1538 | [[TYPE=internal]] |
71082be4 | 1539 | --with-replicators=TYPE replicator support: internal/shared/none |
f11781c5 | 1540 | [[TYPE=none]] |
606d0858 AK |
1541 | --with-ocfdir=DIR install OCF files in DIR |
1542 | [[PREFIX/lib/ocf/resource.d/lvm2]] | |
71082be4 | 1543 | --with-clvmd=TYPE build cluster LVM Daemon |
8c222979 | 1544 | The following cluster manager combinations are valid: |
a946372e AK |
1545 | * cman,gulm (RHEL4 or equivalent) |
1546 | * cman (RHEL5 or equivalent) | |
1547 | * cman,corosync,openais (or selection of them) | |
1091650a | 1548 | * singlenode (localhost only) |
a946372e AK |
1549 | * all (autodetect) |
1550 | * none (disable build) | |
71082be4 | 1551 | [TYPE=none] |
8c4e8a18 | 1552 | --with-clvmd-pidfile=PATH |
f11781c5 | 1553 | clvmd pidfile [[/var/run/clvmd.pid]] |
71082be4 | 1554 | --with-cmirrord-pidfile=PATH |
f11781c5 AK |
1555 | cmirrord pidfile [[/var/run/cmirrord.pid]] |
1556 | --with-optimisation=OPT C optimisation flag [[OPT=-O2]] | |
1557 | --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]] | |
1558 | --with-confdir=DIR configuration files in DIR [[/etc]] | |
1559 | --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]] | |
1560 | --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]] | |
1561 | --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]] | |
71082be4 | 1562 | --with-udev-prefix=UPREFIX |
f11781c5 AK |
1563 | install udev rule files in UPREFIX [[EPREFIX]] |
1564 | --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]] | |
71082be4 | 1565 | --with-dmeventd-pidfile=PATH |
f11781c5 | 1566 | dmeventd pidfile [[/var/run/dmeventd.pid]] |
71082be4 | 1567 | --with-dmeventd-path=PATH |
f11781c5 | 1568 | dmeventd path [[EPREFIX/sbin/dmeventd]] |
8bae0a1e | 1569 | --with-default-run-dir=DIR Default run directory [/var/run/lvm] |
71082be4 | 1570 | --with-default-system-dir=DIR |
f11781c5 | 1571 | default LVM system directory [[/etc/lvm]] |
71082be4 | 1572 | --with-default-archive-subdir=SUBDIR |
f11781c5 | 1573 | default metadata archive subdir [[archive]] |
71082be4 | 1574 | --with-default-backup-subdir=SUBDIR |
f11781c5 | 1575 | default metadata backup subdir [[backup]] |
71082be4 | 1576 | --with-default-cache-subdir=SUBDIR |
f11781c5 | 1577 | default metadata cache subdir [[cache]] |
71082be4 | 1578 | --with-default-locking-dir=DIR |
f11781c5 | 1579 | default locking directory [[/var/lock/lvm]] |
fea55602 | 1580 | --with-default-data-alignment=NUM |
f11781c5 AK |
1581 | set the default data alignment in MiB [[1]] |
1582 | --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]] | |
ad6254c5 AK |
1583 | |
1584 | Some influential environment variables: | |
1585 | CC C compiler command | |
1586 | CFLAGS C compiler flags | |
1587 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1588 | nonstandard directory <lib dir> | |
25fbec5b | 1589 | LIBS libraries to pass to the linker, e.g. -l<library> |
f11781c5 | 1590 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7a197a62 | 1591 | you have headers in a nonstandard directory <include dir> |
ad6254c5 | 1592 | CPP C preprocessor |
e2997b73 | 1593 | PKG_CONFIG path to pkg-config utility |
f11781c5 AK |
1594 | PKG_CONFIG_PATH |
1595 | directories to add to pkg-config's search path | |
1596 | PKG_CONFIG_LIBDIR | |
1597 | path overriding pkg-config's built-in search path | |
a946372e AK |
1598 | PKGCONFIGINIT_CFLAGS |
1599 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1600 | PKGCONFIGINIT_LIBS | |
1601 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1602 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1603 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1604 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1605 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1606 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1607 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1608 | COROSYNC_CFLAGS | |
1609 | C compiler flags for COROSYNC, overriding pkg-config | |
1610 | COROSYNC_LIBS | |
1611 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1612 | QUORUM_CFLAGS |
1613 | C compiler flags for QUORUM, overriding pkg-config | |
1614 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1615 | SALCK_CFLAGS |
1616 | C compiler flags for SALCK, overriding pkg-config | |
1617 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1618 | CONFDB_CFLAGS |
1619 | C compiler flags for CONFDB, overriding pkg-config | |
1620 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1621 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1622 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1623 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1624 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1625 | SACKPT_CFLAGS |
1626 | C compiler flags for SACKPT, overriding pkg-config | |
1627 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
ad6254c5 AK |
1628 | |
1629 | Use these variables to override the choices made by `configure' or to help | |
1630 | it to find libraries and programs with nonstandard names/locations. | |
1631 | ||
f11781c5 | 1632 | Report bugs to the package provider. |
ad6254c5 | 1633 | _ACEOF |
7a197a62 | 1634 | ac_status=$? |
ad6254c5 AK |
1635 | fi |
1636 | ||
1637 | if test "$ac_init_help" = "recursive"; then | |
1638 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1639 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1640 | test -d "$ac_dir" || |
1641 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1642 | continue | |
ad6254c5 AK |
1643 | ac_builddir=. |
1644 | ||
7a197a62 AK |
1645 | case "$ac_dir" in |
1646 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1647 | *) | |
ec6a6fbe | 1648 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1649 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1650 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1651 | case $ac_top_builddir_sub in |
1652 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1653 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1654 | esac ;; | |
1655 | esac | |
1656 | ac_abs_top_builddir=$ac_pwd | |
1657 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1658 | # for backward compatibility: | |
1659 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1660 | |
1661 | case $srcdir in | |
7a197a62 | 1662 | .) # We are building in place. |
ad6254c5 | 1663 | ac_srcdir=. |
7a197a62 AK |
1664 | ac_top_srcdir=$ac_top_builddir_sub |
1665 | ac_abs_top_srcdir=$ac_pwd ;; | |
1666 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1667 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1668 | ac_top_srcdir=$srcdir |
1669 | ac_abs_top_srcdir=$srcdir ;; | |
1670 | *) # Relative name. | |
1671 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1672 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1673 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1674 | esac |
7a197a62 AK |
1675 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1676 | ||
1677 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1678 | # Check for guested configure. | |
1679 | if test -f "$ac_srcdir/configure.gnu"; then | |
1680 | echo && | |
1681 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1682 | elif test -f "$ac_srcdir/configure"; then | |
1683 | echo && | |
1684 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1685 | else |
ec6a6fbe | 1686 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1687 | fi || ac_status=$? |
1688 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1689 | done |
1690 | fi | |
1691 | ||
7a197a62 | 1692 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1693 | if $ac_init_version; then |
1694 | cat <<\_ACEOF | |
7a197a62 | 1695 | configure |
f11781c5 | 1696 | generated by GNU Autoconf 2.66 |
ad6254c5 | 1697 | |
f11781c5 | 1698 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
1699 | This configure script is free software; the Free Software Foundation |
1700 | gives unlimited permission to copy, distribute and modify it. | |
1701 | _ACEOF | |
7a197a62 | 1702 | exit |
ad6254c5 | 1703 | fi |
ad6254c5 | 1704 | |
f11781c5 AK |
1705 | ## ------------------------ ## |
1706 | ## Autoconf initialization. ## | |
1707 | ## ------------------------ ## | |
ad6254c5 | 1708 | |
f11781c5 AK |
1709 | # ac_fn_c_try_compile LINENO |
1710 | # -------------------------- | |
1711 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1712 | ac_fn_c_try_compile () | |
ad6254c5 | 1713 | { |
f11781c5 AK |
1714 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1715 | rm -f conftest.$ac_objext | |
1716 | if { { ac_try="$ac_compile" | |
1717 | case "(($ac_try" in | |
1718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1719 | *) ac_try_echo=$ac_try;; | |
1720 | esac | |
1721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1722 | $as_echo "$ac_try_echo"; } >&5 | |
1723 | (eval "$ac_compile") 2>conftest.err | |
1724 | ac_status=$? | |
1725 | if test -s conftest.err; then | |
1726 | grep -v '^ *+' conftest.err >conftest.er1 | |
1727 | cat conftest.er1 >&5 | |
1728 | mv -f conftest.er1 conftest.err | |
1729 | fi | |
1730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1731 | test $ac_status = 0; } && { | |
1732 | test -z "$ac_c_werror_flag" || | |
1733 | test ! -s conftest.err | |
1734 | } && test -s conftest.$ac_objext; then : | |
1735 | ac_retval=0 | |
1736 | else | |
1737 | $as_echo "$as_me: failed program was:" >&5 | |
1738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1739 | |
f11781c5 AK |
1740 | ac_retval=1 |
1741 | fi | |
1742 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1743 | as_fn_set_status $ac_retval | |
ad6254c5 | 1744 | |
f11781c5 | 1745 | } # ac_fn_c_try_compile |
ad6254c5 | 1746 | |
f11781c5 AK |
1747 | # ac_fn_c_try_cpp LINENO |
1748 | # ---------------------- | |
1749 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1750 | ac_fn_c_try_cpp () | |
1751 | { | |
1752 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1753 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1754 | case "(($ac_try" in | |
1755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1756 | *) ac_try_echo=$ac_try;; | |
1757 | esac | |
1758 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1759 | $as_echo "$ac_try_echo"; } >&5 | |
1760 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1761 | ac_status=$? | |
1762 | if test -s conftest.err; then | |
1763 | grep -v '^ *+' conftest.err >conftest.er1 | |
1764 | cat conftest.er1 >&5 | |
1765 | mv -f conftest.er1 conftest.err | |
1766 | fi | |
1767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1768 | test $ac_status = 0; } >/dev/null && { | |
1769 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1770 | test ! -s conftest.err | |
1771 | }; then : | |
1772 | ac_retval=0 | |
1773 | else | |
1774 | $as_echo "$as_me: failed program was:" >&5 | |
1775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1776 | |
f11781c5 AK |
1777 | ac_retval=1 |
1778 | fi | |
1779 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1780 | as_fn_set_status $ac_retval | |
ad6254c5 | 1781 | |
f11781c5 | 1782 | } # ac_fn_c_try_cpp |
d911ec67 | 1783 | |
f11781c5 AK |
1784 | # ac_fn_c_try_link LINENO |
1785 | # ----------------------- | |
1786 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1787 | ac_fn_c_try_link () | |
d911ec67 | 1788 | { |
f11781c5 AK |
1789 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1790 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1791 | if { { ac_try="$ac_link" | |
d911ec67 AK |
1792 | case "(($ac_try" in |
1793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1794 | *) ac_try_echo=$ac_try;; | |
1795 | esac | |
f11781c5 AK |
1796 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1797 | $as_echo "$ac_try_echo"; } >&5 | |
1798 | (eval "$ac_link") 2>conftest.err | |
d911ec67 | 1799 | ac_status=$? |
f11781c5 AK |
1800 | if test -s conftest.err; then |
1801 | grep -v '^ *+' conftest.err >conftest.er1 | |
1802 | cat conftest.er1 >&5 | |
1803 | mv -f conftest.er1 conftest.err | |
1804 | fi | |
1805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1806 | test $ac_status = 0; } && { | |
1807 | test -z "$ac_c_werror_flag" || | |
1808 | test ! -s conftest.err | |
1809 | } && test -s conftest$ac_exeext && { | |
1810 | test "$cross_compiling" = yes || | |
1811 | $as_test_x conftest$ac_exeext | |
1812 | }; then : | |
1813 | ac_retval=0 | |
d911ec67 | 1814 | else |
f11781c5 | 1815 | $as_echo "$as_me: failed program was:" >&5 |
d911ec67 AK |
1816 | sed 's/^/| /' conftest.$ac_ext >&5 |
1817 | ||
f11781c5 | 1818 | ac_retval=1 |
d911ec67 | 1819 | fi |
f11781c5 AK |
1820 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1821 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1822 | # interfere with the next link command; also delete a directory that is | |
1823 | # left behind by Apple's compiler. We do this before executing the actions. | |
1824 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1825 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1826 | as_fn_set_status $ac_retval | |
d911ec67 | 1827 | |
f11781c5 | 1828 | } # ac_fn_c_try_link |
d911ec67 | 1829 | |
f11781c5 AK |
1830 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1831 | # ------------------------------------------------------- | |
1832 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1833 | # the include files in INCLUDES and setting the cache variable VAR | |
1834 | # accordingly. | |
1835 | ac_fn_c_check_header_mongrel () | |
1836 | { | |
1837 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1838 | if eval "test \"\${$3+set}\"" = set; then : | |
1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1840 | $as_echo_n "checking for $2... " >&6; } | |
1841 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1842 | $as_echo_n "(cached) " >&6 |
1843 | fi | |
f11781c5 AK |
1844 | eval ac_res=\$$3 |
1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 AK |
1846 | $as_echo "$ac_res" >&6; } |
1847 | else | |
1848 | # Is the header compilable? | |
f11781c5 AK |
1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1850 | $as_echo_n "checking $2 usability... " >&6; } | |
1851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1852 | /* end confdefs.h. */ |
f11781c5 AK |
1853 | $4 |
1854 | #include <$2> | |
d911ec67 | 1855 | _ACEOF |
f11781c5 | 1856 | if ac_fn_c_try_compile "$LINENO"; then : |
d911ec67 AK |
1857 | ac_header_compiler=yes |
1858 | else | |
f11781c5 | 1859 | ac_header_compiler=no |
d911ec67 | 1860 | fi |
d911ec67 | 1861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f11781c5 | 1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
d911ec67 AK |
1863 | $as_echo "$ac_header_compiler" >&6; } |
1864 | ||
1865 | # Is the header present? | |
f11781c5 AK |
1866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1867 | $as_echo_n "checking $2 presence... " >&6; } | |
1868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1869 | /* end confdefs.h. */ |
f11781c5 | 1870 | #include <$2> |
d911ec67 | 1871 | _ACEOF |
f11781c5 | 1872 | if ac_fn_c_try_cpp "$LINENO"; then : |
d911ec67 AK |
1873 | ac_header_preproc=yes |
1874 | else | |
d911ec67 AK |
1875 | ac_header_preproc=no |
1876 | fi | |
d911ec67 | 1877 | rm -f conftest.err conftest.$ac_ext |
f11781c5 | 1878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
d911ec67 AK |
1879 | $as_echo "$ac_header_preproc" >&6; } |
1880 | ||
1881 | # So? What about this header? | |
f11781c5 | 1882 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
d911ec67 | 1883 | yes:no: ) |
f11781c5 AK |
1884 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1885 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1887 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1888 | ;; |
1889 | no:yes:* ) | |
f11781c5 AK |
1890 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1891 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1893 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1895 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1896 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1897 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1898 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1899 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1900 | ;; |
1901 | esac | |
f11781c5 AK |
1902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1903 | $as_echo_n "checking for $2... " >&6; } | |
1904 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1905 | $as_echo_n "(cached) " >&6 |
1906 | else | |
f11781c5 | 1907 | eval "$3=\$ac_header_compiler" |
d911ec67 | 1908 | fi |
f11781c5 AK |
1909 | eval ac_res=\$$3 |
1910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 | 1911 | $as_echo "$ac_res" >&6; } |
ad6254c5 | 1912 | fi |
f11781c5 | 1913 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1914 | |
f11781c5 | 1915 | } # ac_fn_c_check_header_mongrel |
ad6254c5 | 1916 | |
f11781c5 AK |
1917 | # ac_fn_c_try_run LINENO |
1918 | # ---------------------- | |
1919 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1920 | # that executables *can* be run. | |
1921 | ac_fn_c_try_run () | |
ad6254c5 | 1922 | { |
f11781c5 AK |
1923 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1924 | if { { ac_try="$ac_link" | |
7a197a62 AK |
1925 | case "(($ac_try" in |
1926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1927 | *) ac_try_echo=$ac_try;; | |
1928 | esac | |
f11781c5 AK |
1929 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1930 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1931 | (eval "$ac_link") 2>&5 |
ad6254c5 | 1932 | ac_status=$? |
f11781c5 AK |
1933 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1934 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1935 | { { case "(($ac_try" in | |
7a197a62 AK |
1936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1937 | *) ac_try_echo=$ac_try;; | |
1938 | esac | |
f11781c5 AK |
1939 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1940 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1941 | (eval "$ac_try") 2>&5 |
ad6254c5 | 1942 | ac_status=$? |
f11781c5 AK |
1943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1944 | test $ac_status = 0; }; }; then : | |
1945 | ac_retval=0 | |
ad6254c5 | 1946 | else |
ec6a6fbe | 1947 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
f11781c5 | 1948 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
1949 | sed 's/^/| /' conftest.$ac_ext >&5 |
1950 | ||
f11781c5 | 1951 | ac_retval=$ac_status |
ad6254c5 | 1952 | fi |
f11781c5 AK |
1953 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1954 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1955 | as_fn_set_status $ac_retval | |
ad6254c5 | 1956 | |
f11781c5 | 1957 | } # ac_fn_c_try_run |
ad6254c5 | 1958 | |
f11781c5 AK |
1959 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1960 | # ------------------------------------------------------- | |
1961 | # Tests whether HEADER exists and can be compiled using the include files in | |
1962 | # INCLUDES, setting the cache variable VAR accordingly. | |
1963 | ac_fn_c_check_header_compile () | |
1964 | { | |
1965 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1967 | $as_echo_n "checking for $2... " >&6; } | |
1968 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 1969 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 1970 | else |
f11781c5 | 1971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 1972 | /* end confdefs.h. */ |
f11781c5 AK |
1973 | $4 |
1974 | #include <$2> | |
ad6254c5 | 1975 | _ACEOF |
f11781c5 AK |
1976 | if ac_fn_c_try_compile "$LINENO"; then : |
1977 | eval "$3=yes" | |
ad6254c5 | 1978 | else |
f11781c5 | 1979 | eval "$3=no" |
ad6254c5 | 1980 | fi |
7a197a62 | 1981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 1982 | fi |
f11781c5 AK |
1983 | eval ac_res=\$$3 |
1984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 1985 | $as_echo "$ac_res" >&6; } |
f11781c5 | 1986 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1987 | |
f11781c5 | 1988 | } # ac_fn_c_check_header_compile |
ad6254c5 | 1989 | |
f11781c5 AK |
1990 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
1991 | # ---------------------------------------------------- | |
1992 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1993 | # INCLUDES, setting cache variable VAR accordingly. | |
1994 | ac_fn_c_check_member () | |
1995 | { | |
1996 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1998 | $as_echo_n "checking for $2.$3... " >&6; } | |
1999 | if eval "test \"\${$4+set}\"" = set; then : | |
ec6a6fbe | 2000 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2001 | else |
f11781c5 AK |
2002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2003 | /* end confdefs.h. */ | |
2004 | $5 | |
2005 | int | |
2006 | main () | |
2007 | { | |
2008 | static $2 ac_aggr; | |
2009 | if (ac_aggr.$3) | |
2010 | return 0; | |
2011 | ; | |
2012 | return 0; | |
2013 | } | |
ad6254c5 | 2014 | _ACEOF |
f11781c5 AK |
2015 | if ac_fn_c_try_compile "$LINENO"; then : |
2016 | eval "$4=yes" | |
2017 | else | |
2018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2019 | /* end confdefs.h. */ |
f11781c5 AK |
2020 | $5 |
2021 | int | |
2022 | main () | |
2023 | { | |
2024 | static $2 ac_aggr; | |
2025 | if (sizeof ac_aggr.$3) | |
2026 | return 0; | |
2027 | ; | |
2028 | return 0; | |
2029 | } | |
2030 | _ACEOF | |
2031 | if ac_fn_c_try_compile "$LINENO"; then : | |
2032 | eval "$4=yes" | |
2033 | else | |
2034 | eval "$4=no" | |
2035 | fi | |
2036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2037 | fi | |
2038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2039 | fi | |
2040 | eval ac_res=\$$4 | |
2041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2042 | $as_echo "$ac_res" >&6; } | |
2043 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2044 | ||
2045 | } # ac_fn_c_check_member | |
795ca3e5 | 2046 | |
f11781c5 AK |
2047 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2048 | # ------------------------------------------- | |
2049 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2050 | # variable VAR accordingly. | |
2051 | ac_fn_c_check_type () | |
2052 | { | |
2053 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2055 | $as_echo_n "checking for $2... " >&6; } | |
2056 | if eval "test \"\${$3+set}\"" = set; then : | |
2057 | $as_echo_n "(cached) " >&6 | |
2058 | else | |
2059 | eval "$3=no" | |
2060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2061 | /* end confdefs.h. */ | |
2062 | $4 | |
ad6254c5 AK |
2063 | int |
2064 | main () | |
2065 | { | |
f11781c5 AK |
2066 | if (sizeof ($2)) |
2067 | return 0; | |
ad6254c5 AK |
2068 | ; |
2069 | return 0; | |
2070 | } | |
2071 | _ACEOF | |
f11781c5 AK |
2072 | if ac_fn_c_try_compile "$LINENO"; then : |
2073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2074 | /* end confdefs.h. */ | |
2075 | $4 | |
2076 | int | |
2077 | main () | |
2078 | { | |
2079 | if (sizeof (($2))) | |
2080 | return 0; | |
2081 | ; | |
2082 | return 0; | |
2083 | } | |
2084 | _ACEOF | |
2085 | if ac_fn_c_try_compile "$LINENO"; then : | |
ad6254c5 | 2086 | |
f11781c5 AK |
2087 | else |
2088 | eval "$3=yes" | |
795ca3e5 | 2089 | fi |
f11781c5 AK |
2090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2091 | fi | |
2092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2093 | fi |
f11781c5 AK |
2094 | eval ac_res=\$$3 |
2095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2096 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2097 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2098 | |
f11781c5 | 2099 | } # ac_fn_c_check_type |
ad6254c5 | 2100 | |
f11781c5 AK |
2101 | # ac_fn_c_find_intX_t LINENO BITS VAR |
2102 | # ----------------------------------- | |
2103 | # Finds a signed integer type with width BITS, setting cache variable VAR | |
2104 | # accordingly. | |
2105 | ac_fn_c_find_intX_t () | |
2106 | { | |
2107 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | |
2109 | $as_echo_n "checking for int$2_t... " >&6; } | |
2110 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2111 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2112 | else |
f11781c5 AK |
2113 | eval "$3=no" |
2114 | # Order is important - never check a type that is potentially smaller | |
2115 | # than half of the expected target width. | |
2116 | for ac_type in int$2_t 'int' 'long int' \ | |
2117 | 'long long int' 'short int' 'signed char'; do | |
2118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7a197a62 AK |
2119 | /* end confdefs.h. */ |
2120 | $ac_includes_default | |
f11781c5 | 2121 | enum { N = $2 / 2 - 1 }; |
7a197a62 AK |
2122 | int |
2123 | main () | |
2124 | { | |
f11781c5 AK |
2125 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
2126 | test_array [0] = 0 | |
7a197a62 | 2127 | |
f11781c5 AK |
2128 | ; |
2129 | return 0; | |
2130 | } | |
2131 | _ACEOF | |
2132 | if ac_fn_c_try_compile "$LINENO"; then : | |
2133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2134 | /* end confdefs.h. */ | |
2135 | $ac_includes_default | |
2136 | enum { N = $2 / 2 - 1 }; | |
2137 | int | |
2138 | main () | |
2139 | { | |
2140 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | |
2141 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | |
2142 | test_array [0] = 0 | |
7a197a62 AK |
2143 | |
2144 | ; | |
2145 | return 0; | |
2146 | } | |
ad6254c5 | 2147 | _ACEOF |
f11781c5 | 2148 | if ac_fn_c_try_compile "$LINENO"; then : |
ad6254c5 | 2149 | |
f11781c5 AK |
2150 | else |
2151 | case $ac_type in #( | |
2152 | int$2_t) : | |
2153 | eval "$3=yes" ;; #( | |
2154 | *) : | |
2155 | eval "$3=\$ac_type" ;; | |
2156 | esac | |
ad6254c5 | 2157 | fi |
f11781c5 | 2158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2159 | fi |
f11781c5 AK |
2160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2161 | if eval test \"x\$"$3"\" = x"no"; then : | |
ad6254c5 AK |
2162 | |
2163 | else | |
f11781c5 | 2164 | break |
ad6254c5 | 2165 | fi |
f11781c5 | 2166 | done |
ad6254c5 | 2167 | fi |
f11781c5 AK |
2168 | eval ac_res=\$$3 |
2169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2170 | $as_echo "$ac_res" >&6; } | |
2171 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2172 | ||
2173 | } # ac_fn_c_find_intX_t | |
2174 | ||
2175 | # ac_fn_c_find_uintX_t LINENO BITS VAR | |
2176 | # ------------------------------------ | |
2177 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
2178 | # accordingly. | |
2179 | ac_fn_c_find_uintX_t () | |
2180 | { | |
2181 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
2183 | $as_echo_n "checking for uint$2_t... " >&6; } | |
2184 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2185 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2186 | else |
f11781c5 AK |
2187 | eval "$3=no" |
2188 | # Order is important - never check a type that is potentially smaller | |
2189 | # than half of the expected target width. | |
2190 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
2191 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
2192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2193 | /* end confdefs.h. */ |
7a197a62 | 2194 | $ac_includes_default |
ad6254c5 AK |
2195 | int |
2196 | main () | |
2197 | { | |
f11781c5 AK |
2198 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
2199 | test_array [0] = 0 | |
ad6254c5 | 2200 | |
f11781c5 AK |
2201 | ; |
2202 | return 0; | |
ad6254c5 AK |
2203 | } |
2204 | _ACEOF | |
f11781c5 AK |
2205 | if ac_fn_c_try_compile "$LINENO"; then : |
2206 | case $ac_type in #( | |
2207 | uint$2_t) : | |
2208 | eval "$3=yes" ;; #( | |
2209 | *) : | |
2210 | eval "$3=\$ac_type" ;; | |
7a197a62 | 2211 | esac |
ad6254c5 | 2212 | fi |
f11781c5 AK |
2213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2214 | if eval test \"x\$"$3"\" = x"no"; then : | |
7a197a62 | 2215 | |
f11781c5 AK |
2216 | else |
2217 | break | |
ad6254c5 | 2218 | fi |
f11781c5 | 2219 | done |
ad6254c5 | 2220 | fi |
f11781c5 AK |
2221 | eval ac_res=\$$3 |
2222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2223 | $as_echo "$ac_res" >&6; } | |
2224 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
ad6254c5 | 2225 | |
f11781c5 | 2226 | } # ac_fn_c_find_uintX_t |
ad6254c5 | 2227 | |
f11781c5 AK |
2228 | # ac_fn_c_check_func LINENO FUNC VAR |
2229 | # ---------------------------------- | |
2230 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2231 | ac_fn_c_check_func () | |
2232 | { | |
2233 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2235 | $as_echo_n "checking for $2... " >&6; } | |
2236 | if eval "test \"\${$3+set}\"" = set; then : | |
2237 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2238 | else |
f11781c5 AK |
2239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2240 | /* end confdefs.h. */ | |
2241 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2242 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2243 | #define $2 innocuous_$2 | |
ad6254c5 | 2244 | |
f11781c5 AK |
2245 | /* System header to define __stub macros and hopefully few prototypes, |
2246 | which can conflict with char $2 (); below. | |
2247 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2248 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 2249 | |
f11781c5 AK |
2250 | #ifdef __STDC__ |
2251 | # include <limits.h> | |
2252 | #else | |
2253 | # include <assert.h> | |
2254 | #endif | |
ad6254c5 | 2255 | |
f11781c5 AK |
2256 | #undef $2 |
2257 | ||
2258 | /* Override any GCC internal prototype to avoid an error. | |
2259 | Use char because int might match the return type of a GCC | |
2260 | builtin and then its argument prototype would still apply. */ | |
2261 | #ifdef __cplusplus | |
2262 | extern "C" | |
2263 | #endif | |
2264 | char $2 (); | |
2265 | /* The GNU C library defines this for functions which it implements | |
2266 | to always fail with ENOSYS. Some functions are actually named | |
2267 | something starting with __ and the normal name is an alias. */ | |
2268 | #if defined __stub_$2 || defined __stub___$2 | |
2269 | choke me | |
2270 | #endif | |
ad6254c5 | 2271 | |
ad6254c5 AK |
2272 | int |
2273 | main () | |
2274 | { | |
f11781c5 | 2275 | return $2 (); |
ad6254c5 AK |
2276 | ; |
2277 | return 0; | |
2278 | } | |
2279 | _ACEOF | |
f11781c5 AK |
2280 | if ac_fn_c_try_link "$LINENO"; then : |
2281 | eval "$3=yes" | |
ad6254c5 | 2282 | else |
f11781c5 | 2283 | eval "$3=no" |
ad6254c5 | 2284 | fi |
f11781c5 AK |
2285 | rm -f core conftest.err conftest.$ac_objext \ |
2286 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2287 | fi |
f11781c5 AK |
2288 | eval ac_res=\$$3 |
2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2290 | $as_echo "$ac_res" >&6; } | |
2291 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
7a197a62 | 2292 | |
f11781c5 AK |
2293 | } # ac_fn_c_check_func |
2294 | cat >config.log <<_ACEOF | |
2295 | This file contains any messages produced by compilers while | |
2296 | running configure, to aid debugging if configure makes a mistake. | |
7a197a62 | 2297 | |
f11781c5 AK |
2298 | It was created by $as_me, which was |
2299 | generated by GNU Autoconf 2.66. Invocation command line was | |
ad6254c5 | 2300 | |
f11781c5 | 2301 | $ $0 $@ |
ad6254c5 | 2302 | |
ad6254c5 | 2303 | _ACEOF |
f11781c5 AK |
2304 | exec 5>>config.log |
2305 | { | |
2306 | cat <<_ASUNAME | |
2307 | ## --------- ## | |
2308 | ## Platform. ## | |
2309 | ## --------- ## | |
ad6254c5 | 2310 | |
f11781c5 AK |
2311 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2312 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2313 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2314 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2315 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
ad6254c5 | 2316 | |
f11781c5 AK |
2317 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2318 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8a2fc586 | 2319 | |
f11781c5 AK |
2320 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2321 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2322 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2323 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2324 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2325 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2326 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2327 | ||
2328 | _ASUNAME | |
2329 | ||
2330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2331 | for as_dir in $PATH | |
2332 | do | |
2333 | IFS=$as_save_IFS | |
2334 | test -z "$as_dir" && as_dir=. | |
2335 | $as_echo "PATH: $as_dir" | |
2336 | done | |
2337 | IFS=$as_save_IFS | |
2338 | ||
2339 | } >&5 | |
2340 | ||
2341 | cat >&5 <<_ACEOF | |
2342 | ||
2343 | ||
2344 | ## ----------- ## | |
2345 | ## Core tests. ## | |
2346 | ## ----------- ## | |
ad6254c5 | 2347 | |
ad6254c5 | 2348 | _ACEOF |
ad6254c5 | 2349 | |
7a197a62 | 2350 | |
f11781c5 AK |
2351 | # Keep a trace of the command line. |
2352 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2353 | # Strip out --silent because we don't want to record it for future runs. | |
2354 | # Also quote any args containing shell meta-characters. | |
2355 | # Make two passes to allow for proper duplicate-argument suppression. | |
2356 | ac_configure_args= | |
2357 | ac_configure_args0= | |
2358 | ac_configure_args1= | |
2359 | ac_must_keep_next=false | |
2360 | for ac_pass in 1 2 | |
2361 | do | |
2362 | for ac_arg | |
2363 | do | |
2364 | case $ac_arg in | |
2365 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2366 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2367 | | -silent | --silent | --silen | --sile | --sil) | |
2368 | continue ;; | |
2369 | *\'*) | |
2370 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2371 | esac | |
2372 | case $ac_pass in | |
2373 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2374 | 2) | |
2375 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2376 | if test $ac_must_keep_next = true; then | |
2377 | ac_must_keep_next=false # Got value, back to normal. | |
2378 | else | |
2379 | case $ac_arg in | |
2380 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2381 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2382 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2383 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2384 | case "$ac_configure_args0 " in | |
2385 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2386 | esac | |
2387 | ;; | |
2388 | -* ) ac_must_keep_next=true ;; | |
2389 | esac | |
2390 | fi | |
2391 | as_fn_append ac_configure_args " '$ac_arg'" | |
2392 | ;; | |
2393 | esac | |
2394 | done | |
2395 | done | |
2396 | { ac_configure_args0=; unset ac_configure_args0;} | |
2397 | { ac_configure_args1=; unset ac_configure_args1;} | |
2398 | ||
2399 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2400 | # config.log. We remove comments because anyway the quotes in there | |
2401 | # would cause problems or look ugly. | |
2402 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2403 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2404 | trap 'exit_status=$? | |
2405 | # Save into config.log some information that might help in debugging. | |
2406 | { | |
2407 | echo | |
2408 | ||
2409 | $as_echo "## ---------------- ## | |
2410 | ## Cache variables. ## | |
2411 | ## ---------------- ##" | |
2412 | echo | |
2413 | # The following way of writing the cache mishandles newlines in values, | |
2414 | ( | |
2415 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2416 | eval ac_val=\$$ac_var | |
2417 | case $ac_val in #( | |
2418 | *${as_nl}*) | |
2419 | case $ac_var in #( | |
2420 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2421 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2422 | esac | |
2423 | case $ac_var in #( | |
2424 | _ | IFS | as_nl) ;; #( | |
2425 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2426 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2427 | esac ;; | |
2428 | esac | |
2429 | done | |
2430 | (set) 2>&1 | | |
2431 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2432 | *${as_nl}ac_space=\ *) | |
2433 | sed -n \ | |
2434 | "s/'\''/'\''\\\\'\'''\''/g; | |
2435 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2436 | ;; #( | |
2437 | *) | |
2438 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2439 | ;; | |
2440 | esac | | |
2441 | sort | |
2442 | ) | |
2443 | echo | |
2444 | ||
2445 | $as_echo "## ----------------- ## | |
2446 | ## Output variables. ## | |
2447 | ## ----------------- ##" | |
2448 | echo | |
2449 | for ac_var in $ac_subst_vars | |
2450 | do | |
2451 | eval ac_val=\$$ac_var | |
2452 | case $ac_val in | |
2453 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2454 | esac | |
2455 | $as_echo "$ac_var='\''$ac_val'\''" | |
2456 | done | sort | |
2457 | echo | |
2458 | ||
2459 | if test -n "$ac_subst_files"; then | |
2460 | $as_echo "## ------------------- ## | |
2461 | ## File substitutions. ## | |
2462 | ## ------------------- ##" | |
2463 | echo | |
2464 | for ac_var in $ac_subst_files | |
2465 | do | |
2466 | eval ac_val=\$$ac_var | |
2467 | case $ac_val in | |
2468 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2469 | esac | |
2470 | $as_echo "$ac_var='\''$ac_val'\''" | |
2471 | done | sort | |
2472 | echo | |
2473 | fi | |
2474 | ||
2475 | if test -s confdefs.h; then | |
2476 | $as_echo "## ----------- ## | |
2477 | ## confdefs.h. ## | |
2478 | ## ----------- ##" | |
2479 | echo | |
2480 | cat confdefs.h | |
2481 | echo | |
2482 | fi | |
2483 | test "$ac_signal" != 0 && | |
2484 | $as_echo "$as_me: caught signal $ac_signal" | |
2485 | $as_echo "$as_me: exit $exit_status" | |
2486 | } >&5 | |
2487 | rm -f core *.core core.conftest.* && | |
2488 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2489 | exit $exit_status | |
2490 | ' 0 | |
2491 | for ac_signal in 1 2 13 15; do | |
2492 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2493 | done | |
2494 | ac_signal=0 | |
2495 | ||
2496 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2497 | rm -f -r conftest* confdefs.h | |
7a197a62 | 2498 | |
f11781c5 | 2499 | $as_echo "/* confdefs.h */" > confdefs.h |
8a2fc586 | 2500 | |
f11781c5 | 2501 | # Predefined preprocessor variables. |
ad6254c5 AK |
2502 | |
2503 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 2504 | #define PACKAGE_NAME "$PACKAGE_NAME" |
ad6254c5 AK |
2505 | _ACEOF |
2506 | ||
f11781c5 AK |
2507 | cat >>confdefs.h <<_ACEOF |
2508 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
ad6254c5 | 2509 | _ACEOF |
ad6254c5 | 2510 | |
f11781c5 AK |
2511 | cat >>confdefs.h <<_ACEOF |
2512 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
ad6254c5 | 2513 | _ACEOF |
f11781c5 AK |
2514 | |
2515 | cat >>confdefs.h <<_ACEOF | |
2516 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
ad6254c5 | 2517 | _ACEOF |
ad6254c5 | 2518 | |
f11781c5 AK |
2519 | cat >>confdefs.h <<_ACEOF |
2520 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2521 | _ACEOF | |
7a197a62 | 2522 | |
f11781c5 AK |
2523 | cat >>confdefs.h <<_ACEOF |
2524 | #define PACKAGE_URL "$PACKAGE_URL" | |
2525 | _ACEOF | |
ad6254c5 | 2526 | |
7a197a62 | 2527 | |
f11781c5 AK |
2528 | # Let the site file select an alternate cache file if it wants to. |
2529 | # Prefer an explicitly selected file to automatically selected ones. | |
2530 | ac_site_file1=NONE | |
2531 | ac_site_file2=NONE | |
2532 | if test -n "$CONFIG_SITE"; then | |
2533 | # We do not want a PATH search for config.site. | |
2534 | case $CONFIG_SITE in #(( | |
2535 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2536 | */*) ac_site_file1=$CONFIG_SITE;; | |
2537 | *) ac_site_file1=./$CONFIG_SITE;; | |
2538 | esac | |
2539 | elif test "x$prefix" != xNONE; then | |
2540 | ac_site_file1=$prefix/share/config.site | |
2541 | ac_site_file2=$prefix/etc/config.site | |
ad6254c5 | 2542 | else |
f11781c5 AK |
2543 | ac_site_file1=$ac_default_prefix/share/config.site |
2544 | ac_site_file2=$ac_default_prefix/etc/config.site | |
ad6254c5 | 2545 | fi |
f11781c5 AK |
2546 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2547 | do | |
2548 | test "x$ac_site_file" = xNONE && continue | |
2549 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2551 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2552 | sed 's/^/| /' "$ac_site_file" >&5 | |
2553 | . "$ac_site_file" \ | |
2554 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2555 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2556 | as_fn_error $? "failed to load site script $ac_site_file | |
2557 | See \`config.log' for more details" "$LINENO" 5; } | |
2558 | fi | |
2559 | done | |
ad6254c5 | 2560 | |
f11781c5 AK |
2561 | if test -r "$cache_file"; then |
2562 | # Some versions of bash will fail to source /dev/null (special files | |
2563 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2564 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2566 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2567 | case $cache_file in | |
2568 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2569 | *) . "./$cache_file";; | |
2570 | esac | |
2571 | fi | |
2572 | else | |
2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2574 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2575 | >$cache_file | |
ad6254c5 | 2576 | fi |
ad6254c5 | 2577 | |
f11781c5 AK |
2578 | as_fn_append ac_header_list " stdlib.h" |
2579 | as_fn_append ac_header_list " unistd.h" | |
2580 | as_fn_append ac_header_list " sys/param.h" | |
2581 | # Check that the precious variables saved in the cache have kept the same | |
2582 | # value. | |
2583 | ac_cache_corrupted=false | |
2584 | for ac_var in $ac_precious_vars; do | |
2585 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2586 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2587 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2588 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2589 | case $ac_old_set,$ac_new_set in | |
2590 | set,) | |
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2592 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2593 | ac_cache_corrupted=: ;; | |
2594 | ,set) | |
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2596 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2597 | ac_cache_corrupted=: ;; | |
2598 | ,);; | |
2599 | *) | |
2600 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2601 | # differences in whitespace do not lead to failure. | |
2602 | ac_old_val_w=`echo x $ac_old_val` | |
2603 | ac_new_val_w=`echo x $ac_new_val` | |
2604 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2606 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2607 | ac_cache_corrupted=: | |
2608 | else | |
2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2610 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2611 | eval $ac_var=\$ac_old_val | |
2612 | fi | |
2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2614 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2616 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2617 | fi;; | |
2618 | esac | |
2619 | # Pass precious variables to config.status. | |
2620 | if test "$ac_new_set" = set; then | |
2621 | case $ac_new_val in | |
2622 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2623 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2624 | esac | |
2625 | case " $ac_configure_args " in | |
2626 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2627 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2628 | esac | |
2629 | fi | |
2630 | done | |
2631 | if $ac_cache_corrupted; then | |
2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2633 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2635 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2636 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
ad6254c5 | 2637 | fi |
f11781c5 AK |
2638 | ## -------------------- ## |
2639 | ## Main body of script. ## | |
2640 | ## -------------------- ## | |
ad6254c5 | 2641 | |
f11781c5 AK |
2642 | ac_ext=c |
2643 | ac_cpp='$CPP $CPPFLAGS' | |
2644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2647 | |
ad6254c5 | 2648 | |
ad6254c5 | 2649 | |
f11781c5 | 2650 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
7a197a62 AK |
2651 | |
2652 | ||
f11781c5 AK |
2653 | ################################################################################ |
2654 | ac_aux_dir= | |
2655 | for ac_dir in autoconf "$srcdir"/autoconf; do | |
2656 | if 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/install.sh"; then | |
2661 | ac_aux_dir=$ac_dir | |
2662 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2663 | break | |
2664 | elif test -f "$ac_dir/shtool"; then | |
2665 | ac_aux_dir=$ac_dir | |
2666 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2667 | break | |
2668 | fi | |
2669 | done | |
2670 | if test -z "$ac_aux_dir"; then | |
2671 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 | |
ad6254c5 | 2672 | fi |
ad6254c5 | 2673 | |
f11781c5 AK |
2674 | # These three variables are undocumented and unsupported, |
2675 | # and are intended to be withdrawn in a future Autoconf release. | |
2676 | # They can cause serious problems if a builder's source tree is in a directory | |
2677 | # whose full name contains unusual characters. | |
2678 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2679 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2680 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
ad6254c5 | 2681 | |
ad6254c5 | 2682 | |
8a2fc586 | 2683 | |
f11781c5 AK |
2684 | ################################################################################ |
2685 | # Make sure we can run config.sub. | |
2686 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2687 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
ad6254c5 | 2688 | |
f11781c5 AK |
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2690 | $as_echo_n "checking build system type... " >&6; } | |
2691 | if test "${ac_cv_build+set}" = set; then : | |
2692 | $as_echo_n "(cached) " >&6 | |
2693 | else | |
2694 | ac_build_alias=$build_alias | |
2695 | test "x$ac_build_alias" = x && | |
2696 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2697 | test "x$ac_build_alias" = x && | |
2698 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2699 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2700 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
ad6254c5 AK |
2701 | |
2702 | fi | |
f11781c5 AK |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2704 | $as_echo "$ac_cv_build" >&6; } | |
2705 | case $ac_cv_build in | |
2706 | *-*-*) ;; | |
2707 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2708 | esac | |
2709 | build=$ac_cv_build | |
2710 | ac_save_IFS=$IFS; IFS='-' | |
2711 | set x $ac_cv_build | |
2712 | shift | |
2713 | build_cpu=$1 | |
2714 | build_vendor=$2 | |
2715 | shift; shift | |
2716 | # Remember, the first character of IFS is used to create $*, | |
2717 | # except with old shells: | |
2718 | build_os=$* | |
2719 | IFS=$ac_save_IFS | |
2720 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2721 | |
2722 | ||
f11781c5 AK |
2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2724 | $as_echo_n "checking host system type... " >&6; } | |
2725 | if test "${ac_cv_host+set}" = set; then : | |
ec6a6fbe | 2726 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2727 | else |
f11781c5 AK |
2728 | if test "x$host_alias" = x; then |
2729 | ac_cv_host=$ac_cv_build | |
ad6254c5 | 2730 | else |
f11781c5 AK |
2731 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2732 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2733 | fi | |
ad6254c5 | 2734 | |
f11781c5 AK |
2735 | fi |
2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2737 | $as_echo "$ac_cv_host" >&6; } | |
2738 | case $ac_cv_host in | |
2739 | *-*-*) ;; | |
2740 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2741 | esac | |
2742 | host=$ac_cv_host | |
2743 | ac_save_IFS=$IFS; IFS='-' | |
2744 | set x $ac_cv_host | |
2745 | shift | |
2746 | host_cpu=$1 | |
2747 | host_vendor=$2 | |
2748 | shift; shift | |
2749 | # Remember, the first character of IFS is used to create $*, | |
2750 | # except with old shells: | |
2751 | host_os=$* | |
2752 | IFS=$ac_save_IFS | |
2753 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 | 2754 | |
ad6254c5 | 2755 | |
f11781c5 AK |
2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2757 | $as_echo_n "checking target system type... " >&6; } | |
2758 | if test "${ac_cv_target+set}" = set; then : | |
2759 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2760 | else |
f11781c5 AK |
2761 | if test "x$target_alias" = x; then |
2762 | ac_cv_target=$ac_cv_host | |
2763 | else | |
2764 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2765 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
ad6254c5 | 2766 | fi |
7a197a62 | 2767 | |
ad6254c5 | 2768 | fi |
f11781c5 AK |
2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2770 | $as_echo "$ac_cv_target" >&6; } | |
2771 | case $ac_cv_target in | |
2772 | *-*-*) ;; | |
2773 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
8a2fc586 | 2774 | esac |
f11781c5 AK |
2775 | target=$ac_cv_target |
2776 | ac_save_IFS=$IFS; IFS='-' | |
2777 | set x $ac_cv_target | |
2778 | shift | |
2779 | target_cpu=$1 | |
2780 | target_vendor=$2 | |
2781 | shift; shift | |
2782 | # Remember, the first character of IFS is used to create $*, | |
2783 | # except with old shells: | |
2784 | target_os=$* | |
2785 | IFS=$ac_save_IFS | |
2786 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8a2fc586 | 2787 | |
ad6254c5 | 2788 | |
f11781c5 AK |
2789 | # The aliases save the names the user supplied, while $host etc. |
2790 | # will get canonicalized. | |
2791 | test -n "$target_alias" && | |
2792 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2793 | NONENONEs,x,x, && | |
2794 | program_prefix=${target_alias}- | |
ad6254c5 | 2795 | |
f11781c5 AK |
2796 | case "$host_os" in |
2797 | linux*) | |
2798 | CFLAGS="$CFLAGS" | |
2799 | COPTIMISE_FLAG="-O2" | |
2800 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2801 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2802 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2803 | LDDEPS="$LDDEPS .export.sym" | |
2804 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
2805 | LIB_SUFFIX=so | |
2806 | DEVMAPPER=yes | |
2807 | ODIRECT=yes | |
2808 | DM_IOCTLS=yes | |
2809 | SELINUX=yes | |
2810 | CLUSTER=internal | |
2811 | FSADM=yes | |
2812 | ;; | |
2813 | darwin*) | |
2814 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2815 | COPTIMISE_FLAG="-O2" | |
2816 | CLDFLAGS="$CLDFLAGS" | |
2817 | CLDWHOLEARCHIVE="-all_load" | |
2818 | CLDNOWHOLEARCHIVE= | |
2819 | LIB_SUFFIX=dylib | |
2820 | DEVMAPPER=yes | |
2821 | ODIRECT=no | |
2822 | DM_IOCTLS=no | |
2823 | SELINUX=no | |
2824 | CLUSTER=none | |
2825 | FSADM=no | |
2826 | ;; | |
2827 | esac | |
ad6254c5 | 2828 | |
f11781c5 AK |
2829 | ################################################################################ |
2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
2831 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2832 | if test "${ac_cv_path_SED+set}" = set; then : | |
ec6a6fbe | 2833 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2834 | else |
f11781c5 AK |
2835 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
2836 | for ac_i in 1 2 3 4 5 6 7; do | |
2837 | ac_script="$ac_script$as_nl$ac_script" | |
2838 | done | |
2839 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2840 | { ac_script=; unset ac_script;} | |
2841 | if test -z "$SED"; then | |
2842 | ac_path_SED_found=false | |
2843 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2845 | for as_dir in $PATH | |
2846 | do | |
2847 | IFS=$as_save_IFS | |
2848 | test -z "$as_dir" && as_dir=. | |
2849 | for ac_prog in sed gsed; do | |
2850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2851 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2852 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2853 | # Check for GNU ac_path_SED and select it if it is found. | |
2854 | # Check for GNU $ac_path_SED | |
2855 | case `"$ac_path_SED" --version 2>&1` in | |
2856 | *GNU*) | |
2857 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2858 | *) | |
2859 | ac_count=0 | |
2860 | $as_echo_n 0123456789 >"conftest.in" | |
2861 | while : | |
2862 | do | |
2863 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2864 | mv "conftest.tmp" "conftest.in" | |
2865 | cp "conftest.in" "conftest.nl" | |
2866 | $as_echo '' >> "conftest.nl" | |
2867 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2868 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2869 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2870 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2871 | # Best one so far, save it but keep looking for a better one | |
2872 | ac_cv_path_SED="$ac_path_SED" | |
2873 | ac_path_SED_max=$ac_count | |
2874 | fi | |
2875 | # 10*(2^10) chars as input seems more than enough | |
2876 | test $ac_count -gt 10 && break | |
2877 | done | |
2878 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7a197a62 | 2879 | esac |
ad6254c5 | 2880 | |
f11781c5 AK |
2881 | $ac_path_SED_found && break 3 |
2882 | done | |
2883 | done | |
2884 | done | |
2885 | IFS=$as_save_IFS | |
2886 | if test -z "$ac_cv_path_SED"; then | |
2887 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2888 | fi | |
2889 | else | |
2890 | ac_cv_path_SED=$SED | |
ad6254c5 | 2891 | fi |
7a197a62 | 2892 | |
f11781c5 AK |
2893 | fi |
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2895 | $as_echo "$ac_cv_path_SED" >&6; } | |
2896 | SED="$ac_cv_path_SED" | |
2897 | rm -f conftest.sed | |
ad6254c5 | 2898 | |
f11781c5 AK |
2899 | for ac_prog in gawk mawk nawk awk |
2900 | do | |
2901 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2902 | set dummy $ac_prog; ac_word=$2 | |
2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2904 | $as_echo_n "checking for $ac_word... " >&6; } | |
2905 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2906 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2907 | else |
f11781c5 AK |
2908 | if test -n "$AWK"; then |
2909 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2910 | else | |
2911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2912 | for as_dir in $PATH | |
2913 | do | |
2914 | IFS=$as_save_IFS | |
2915 | test -z "$as_dir" && as_dir=. | |
2916 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2917 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2918 | ac_cv_prog_AWK="$ac_prog" | |
2919 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2920 | break 2 | |
2921 | fi | |
2922 | done | |
2923 | done | |
2924 | IFS=$as_save_IFS | |
ad6254c5 | 2925 | |
ad6254c5 | 2926 | fi |
ad6254c5 | 2927 | fi |
f11781c5 AK |
2928 | AWK=$ac_cv_prog_AWK |
2929 | if test -n "$AWK"; then | |
2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2931 | $as_echo "$AWK" >&6; } | |
2932 | else | |
2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2934 | $as_echo "no" >&6; } | |
ad6254c5 | 2935 | fi |
ad6254c5 | 2936 | |
ad6254c5 | 2937 | |
f11781c5 | 2938 | test -n "$AWK" && break |
ad6254c5 AK |
2939 | done |
2940 | ||
f11781c5 AK |
2941 | ac_ext=c |
2942 | ac_cpp='$CPP $CPPFLAGS' | |
2943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2946 | if test -n "$ac_tool_prefix"; then | |
2947 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2948 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2950 | $as_echo_n "checking for $ac_word... " >&6; } | |
2951 | if test "${ac_cv_prog_CC+set}" = set; then : | |
ec6a6fbe | 2952 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2953 | else |
f11781c5 AK |
2954 | if test -n "$CC"; then |
2955 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
ad6254c5 | 2956 | else |
f11781c5 AK |
2957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2958 | for as_dir in $PATH | |
2959 | do | |
2960 | IFS=$as_save_IFS | |
2961 | test -z "$as_dir" && as_dir=. | |
2962 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2964 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2966 | break 2 | |
2967 | fi | |
2968 | done | |
2969 | done | |
2970 | IFS=$as_save_IFS | |
ad6254c5 | 2971 | |
ad6254c5 | 2972 | fi |
ad6254c5 | 2973 | fi |
f11781c5 AK |
2974 | CC=$ac_cv_prog_CC |
2975 | if test -n "$CC"; then | |
2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2977 | $as_echo "$CC" >&6; } | |
2978 | else | |
2979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2980 | $as_echo "no" >&6; } | |
ad6254c5 | 2981 | fi |
ad6254c5 | 2982 | |
f11781c5 AK |
2983 | |
2984 | fi | |
2985 | if test -z "$ac_cv_prog_CC"; then | |
2986 | ac_ct_CC=$CC | |
2987 | # Extract the first word of "gcc", so it can be a program name with args. | |
2988 | set dummy gcc; ac_word=$2 | |
2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2990 | $as_echo_n "checking for $ac_word... " >&6; } | |
2991 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
ec6a6fbe | 2992 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2993 | else |
f11781c5 AK |
2994 | if test -n "$ac_ct_CC"; then |
2995 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d911ec67 | 2996 | else |
f11781c5 AK |
2997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2998 | for as_dir in $PATH | |
2999 | do | |
3000 | IFS=$as_save_IFS | |
3001 | test -z "$as_dir" && as_dir=. | |
3002 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3003 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3004 | ac_cv_prog_ac_ct_CC="gcc" | |
3005 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3006 | break 2 | |
3007 | fi | |
3008 | done | |
3009 | done | |
3010 | IFS=$as_save_IFS | |
d911ec67 | 3011 | |
d911ec67 | 3012 | fi |
d911ec67 | 3013 | fi |
f11781c5 AK |
3014 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3015 | if test -n "$ac_ct_CC"; then | |
3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3017 | $as_echo "$ac_ct_CC" >&6; } | |
3018 | else | |
3019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3020 | $as_echo "no" >&6; } | |
d911ec67 | 3021 | fi |
d911ec67 | 3022 | |
f11781c5 AK |
3023 | if test "x$ac_ct_CC" = x; then |
3024 | CC="" | |
3025 | else | |
3026 | case $cross_compiling:$ac_tool_warned in | |
3027 | yes:) | |
3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3029 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3030 | ac_tool_warned=yes ;; | |
3031 | esac | |
3032 | CC=$ac_ct_CC | |
3033 | fi | |
3034 | else | |
3035 | CC="$ac_cv_prog_CC" | |
d911ec67 | 3036 | fi |
d911ec67 | 3037 | |
f11781c5 AK |
3038 | if test -z "$CC"; then |
3039 | if test -n "$ac_tool_prefix"; then | |
3040 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3041 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3043 | $as_echo_n "checking for $ac_word... " >&6; } | |
3044 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 | 3045 | $as_echo_n "(cached) " >&6 |
d911ec67 | 3046 | else |
f11781c5 AK |
3047 | if test -n "$CC"; then |
3048 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d911ec67 | 3049 | else |
f11781c5 AK |
3050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3051 | for as_dir in $PATH | |
3052 | do | |
3053 | IFS=$as_save_IFS | |
3054 | test -z "$as_dir" && as_dir=. | |
3055 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3056 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3057 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3058 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3059 | break 2 | |
3060 | fi | |
3061 | done | |
3062 | done | |
3063 | IFS=$as_save_IFS | |
d911ec67 | 3064 | |
f11781c5 AK |
3065 | fi |
3066 | fi | |
3067 | CC=$ac_cv_prog_CC | |
3068 | if test -n "$CC"; then | |
3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3070 | $as_echo "$CC" >&6; } | |
3071 | else | |
3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3073 | $as_echo "no" >&6; } | |
d911ec67 AK |
3074 | fi |
3075 | ||
d911ec67 | 3076 | |
f11781c5 AK |
3077 | fi |
3078 | fi | |
3079 | if test -z "$CC"; then | |
3080 | # Extract the first word of "cc", so it can be a program name with args. | |
3081 | set dummy cc; ac_word=$2 | |
3082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3083 | $as_echo_n "checking for $ac_word... " >&6; } | |
3084 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3085 | $as_echo_n "(cached) " >&6 | |
d911ec67 | 3086 | else |
f11781c5 AK |
3087 | if test -n "$CC"; then |
3088 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3089 | else | |
3090 | ac_prog_rejected=no | |
3091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3092 | for as_dir in $PATH | |
3093 | do | |
3094 | IFS=$as_save_IFS | |
3095 | test -z "$as_dir" && as_dir=. | |
3096 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3098 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3099 | ac_prog_rejected=yes | |
3100 | continue | |
3101 | fi | |
3102 | ac_cv_prog_CC="cc" | |
3103 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3104 | break 2 | |
3105 | fi | |
3106 | done | |
3107 | done | |
3108 | IFS=$as_save_IFS | |
d911ec67 | 3109 | |
f11781c5 AK |
3110 | if test $ac_prog_rejected = yes; then |
3111 | # We found a bogon in the path, so make sure we never use it. | |
3112 | set dummy $ac_cv_prog_CC | |
3113 | shift | |
3114 | if test $# != 0; then | |
3115 | # We chose a different compiler from the bogus one. | |
3116 | # However, it has the same basename, so the bogon will be chosen | |
3117 | # first if we set CC to just the basename; use the full file name. | |
3118 | shift | |
3119 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3120 | fi | |
3121 | fi | |
3122 | fi | |
3123 | fi | |
3124 | CC=$ac_cv_prog_CC | |
3125 | if test -n "$CC"; then | |
3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3127 | $as_echo "$CC" >&6; } | |
3128 | else | |
3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3130 | $as_echo "no" >&6; } | |
d911ec67 AK |
3131 | fi |
3132 | ||
d911ec67 | 3133 | |
f11781c5 AK |
3134 | fi |
3135 | if test -z "$CC"; then | |
3136 | if test -n "$ac_tool_prefix"; then | |
3137 | for ac_prog in cl.exe | |
3138 | do | |
3139 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3140 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3142 | $as_echo_n "checking for $ac_word... " >&6; } | |
3143 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 AK |
3144 | $as_echo_n "(cached) " >&6 |
3145 | else | |
f11781c5 AK |
3146 | if test -n "$CC"; then |
3147 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3148 | else | |
3149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3150 | for as_dir in $PATH | |
3151 | do | |
3152 | IFS=$as_save_IFS | |
3153 | test -z "$as_dir" && as_dir=. | |
3154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3155 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3156 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3158 | break 2 | |
3159 | fi | |
3160 | done | |
3161 | done | |
3162 | IFS=$as_save_IFS | |
d911ec67 AK |
3163 | |
3164 | fi | |
f11781c5 AK |
3165 | fi |
3166 | CC=$ac_cv_prog_CC | |
3167 | if test -n "$CC"; then | |
3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3169 | $as_echo "$CC" >&6; } | |
3170 | else | |
3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3172 | $as_echo "no" >&6; } | |
d911ec67 AK |
3173 | fi |
3174 | ||
d911ec67 | 3175 | |
f11781c5 AK |
3176 | test -n "$CC" && break |
3177 | done | |
3178 | fi | |
3179 | if test -z "$CC"; then | |
3180 | ac_ct_CC=$CC | |
3181 | for ac_prog in cl.exe | |
3182 | do | |
3183 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3184 | set dummy $ac_prog; ac_word=$2 | |
3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3186 | $as_echo_n "checking for $ac_word... " >&6; } | |
3187 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
d911ec67 AK |
3188 | $as_echo_n "(cached) " >&6 |
3189 | else | |
f11781c5 AK |
3190 | if test -n "$ac_ct_CC"; then |
3191 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
ad6254c5 | 3192 | else |
f11781c5 AK |
3193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3194 | for as_dir in $PATH | |
3195 | do | |
3196 | IFS=$as_save_IFS | |
3197 | test -z "$as_dir" && as_dir=. | |
3198 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3199 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3200 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3201 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3202 | break 2 | |
3203 | fi | |
3204 | done | |
3205 | done | |
3206 | IFS=$as_save_IFS | |
ad6254c5 | 3207 | |
ad6254c5 | 3208 | fi |
ad6254c5 | 3209 | fi |
f11781c5 AK |
3210 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3211 | if test -n "$ac_ct_CC"; then | |
3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3213 | $as_echo "$ac_ct_CC" >&6; } | |
3214 | else | |
3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3216 | $as_echo "no" >&6; } | |
ad6254c5 | 3217 | fi |
ad6254c5 | 3218 | |
d911ec67 | 3219 | |
f11781c5 AK |
3220 | test -n "$ac_ct_CC" && break |
3221 | done | |
d911ec67 | 3222 | |
f11781c5 AK |
3223 | if test "x$ac_ct_CC" = x; then |
3224 | CC="" | |
3225 | else | |
3226 | case $cross_compiling:$ac_tool_warned in | |
3227 | yes:) | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3229 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3230 | ac_tool_warned=yes ;; | |
d911ec67 | 3231 | esac |
f11781c5 AK |
3232 | CC=$ac_ct_CC |
3233 | fi | |
3234 | fi | |
ad6254c5 AK |
3235 | |
3236 | fi | |
d911ec67 AK |
3237 | |
3238 | ||
f11781c5 AK |
3239 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3240 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3241 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3242 | See \`config.log' for more details" "$LINENO" 5; } | |
3243 | ||
3244 | # Provide some information about the compiler. | |
3245 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3246 | set X $ac_compile | |
3247 | ac_compiler=$2 | |
3248 | for ac_option in --version -v -V -qversion; do | |
3249 | { { ac_try="$ac_compiler $ac_option >&5" | |
3250 | case "(($ac_try" in | |
3251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3252 | *) ac_try_echo=$ac_try;; | |
3253 | esac | |
3254 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3255 | $as_echo "$ac_try_echo"; } >&5 | |
3256 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3257 | ac_status=$? | |
3258 | if test -s conftest.err; then | |
3259 | sed '10a\ | |
3260 | ... rest of stderr output deleted ... | |
3261 | 10q' conftest.err >conftest.er1 | |
3262 | cat conftest.er1 >&5 | |
3263 | fi | |
3264 | rm -f conftest.er1 conftest.err | |
3265 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3266 | test $ac_status = 0; } | |
3267 | done | |
ad6254c5 | 3268 | |
f11781c5 | 3269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 3270 | /* end confdefs.h. */ |
f11781c5 | 3271 | |
ad6254c5 AK |
3272 | int |
3273 | main () | |
3274 | { | |
f11781c5 | 3275 | |
ad6254c5 AK |
3276 | ; |
3277 | return 0; | |
3278 | } | |
3279 | _ACEOF | |
f11781c5 AK |
3280 | ac_clean_files_save=$ac_clean_files |
3281 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3282 | # Try to create an executable without -o first, disregard a.out. | |
3283 | # It will help us diagnose broken compilers, and finding out an intuition | |
3284 | # of exeext. | |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3286 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3287 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3288 | ||
3289 | # The possible output files: | |
3290 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3291 | ||
3292 | ac_rmfiles= | |
3293 | for ac_file in $ac_files | |
3294 | do | |
3295 | case $ac_file in | |
3296 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3297 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3298 | esac | |
3299 | done | |
3300 | rm -f $ac_rmfiles | |
3301 | ||
3302 | if { { ac_try="$ac_link_default" | |
7a197a62 AK |
3303 | case "(($ac_try" in |
3304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3305 | *) ac_try_echo=$ac_try;; | |
3306 | esac | |
f11781c5 AK |
3307 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3308 | $as_echo "$ac_try_echo"; } >&5 | |
3309 | (eval "$ac_link_default") 2>&5 | |
ad6254c5 | 3310 | ac_status=$? |
f11781c5 AK |
3311 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3312 | test $ac_status = 0; }; then : | |
3313 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3314 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3315 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3316 | # so that the user can short-circuit this test for compilers unknown to | |
3317 | # Autoconf. | |
3318 | for ac_file in $ac_files '' | |
3319 | do | |
3320 | test -f "$ac_file" || continue | |
3321 | case $ac_file in | |
3322 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3323 | ;; | |
3324 | [ab].out ) | |
3325 | # We found the default executable, but exeext='' is most | |
3326 | # certainly right. | |
3327 | break;; | |
3328 | *.* ) | |
3329 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3330 | then :; else | |
3331 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3332 | fi | |
3333 | # We set ac_cv_exeext here because the later test for it is not | |
3334 | # safe: cross compilers may not add the suffix if given an `-o' | |
3335 | # argument, so we may need to know it at that point already. | |
3336 | # Even if this section looks crufty: it has the advantage of | |
3337 | # actually working. | |
3338 | break;; | |
3339 | * ) | |
3340 | break;; | |
3341 | esac | |
3342 | done | |
3343 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3344 | ||
ad6254c5 | 3345 | else |
f11781c5 AK |
3346 | ac_file='' |
3347 | fi | |
3348 | if test -z "$ac_file"; then : | |
3349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3350 | $as_echo "no" >&6; } | |
ec6a6fbe | 3351 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3352 | sed 's/^/| /' conftest.$ac_ext >&5 |
3353 | ||
f11781c5 AK |
3354 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3355 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3356 | as_fn_error 77 "C compiler cannot create executables | |
3357 | See \`config.log' for more details" "$LINENO" 5; } | |
3358 | else | |
3359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3360 | $as_echo "yes" >&6; } | |
ad6254c5 | 3361 | fi |
f11781c5 AK |
3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3363 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3365 | $as_echo "$ac_file" >&6; } | |
3366 | ac_exeext=$ac_cv_exeext | |
7a197a62 | 3367 | |
f11781c5 AK |
3368 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3369 | ac_clean_files=$ac_clean_files_save | |
3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3371 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3372 | if { { ac_try="$ac_link" | |
3373 | case "(($ac_try" in | |
3374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3375 | *) ac_try_echo=$ac_try;; | |
8a2fc586 | 3376 | esac |
f11781c5 AK |
3377 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3378 | $as_echo "$ac_try_echo"; } >&5 | |
3379 | (eval "$ac_link") 2>&5 | |
3380 | ac_status=$? | |
3381 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3382 | test $ac_status = 0; }; then : | |
3383 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3384 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3385 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3386 | # `rm'. | |
3387 | for ac_file in conftest.exe conftest conftest.*; do | |
3388 | test -f "$ac_file" || continue | |
3389 | case $ac_file in | |
3390 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3391 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3392 | break;; | |
3393 | * ) break;; | |
3394 | esac | |
3395 | done | |
3396 | else | |
3397 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3398 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3399 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3400 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3401 | fi |
f11781c5 AK |
3402 | rm -f conftest conftest$ac_cv_exeext |
3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3404 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 | 3405 | |
f11781c5 AK |
3406 | rm -f conftest.$ac_ext |
3407 | EXEEXT=$ac_cv_exeext | |
3408 | ac_exeext=$EXEEXT | |
3409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 3410 | /* end confdefs.h. */ |
f11781c5 | 3411 | #include <stdio.h> |
ad6254c5 | 3412 | int |
f11781c5 | 3413 | main () |
ad6254c5 | 3414 | { |
f11781c5 AK |
3415 | FILE *f = fopen ("conftest.out", "w"); |
3416 | return ferror (f) || fclose (f) != 0; | |
ad6254c5 | 3417 | |
f11781c5 | 3418 | ; |
7a197a62 | 3419 | return 0; |
ad6254c5 | 3420 | } |
ad6254c5 | 3421 | _ACEOF |
f11781c5 AK |
3422 | ac_clean_files="$ac_clean_files conftest.out" |
3423 | # Check that the compiler produces executables we can run. If not, either | |
3424 | # the compiler is broken, or we cross compile. | |
3425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3426 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3427 | if test "$cross_compiling" != yes; then | |
3428 | { { ac_try="$ac_link" | |
7a197a62 AK |
3429 | case "(($ac_try" in |
3430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3431 | *) ac_try_echo=$ac_try;; | |
3432 | esac | |
f11781c5 AK |
3433 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3434 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3435 | (eval "$ac_link") 2>&5 |
ad6254c5 | 3436 | ac_status=$? |
f11781c5 AK |
3437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3438 | test $ac_status = 0; } | |
3439 | if { ac_try='./conftest$ac_cv_exeext' | |
3440 | { { case "(($ac_try" in | |
7a197a62 AK |
3441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3442 | *) ac_try_echo=$ac_try;; | |
3443 | esac | |
f11781c5 AK |
3444 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3445 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3446 | (eval "$ac_try") 2>&5 |
ad6254c5 | 3447 | ac_status=$? |
f11781c5 AK |
3448 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3449 | test $ac_status = 0; }; }; then | |
3450 | cross_compiling=no | |
3451 | else | |
3452 | if test "$cross_compiling" = maybe; then | |
3453 | cross_compiling=yes | |
3454 | else | |
3455 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3456 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3457 | as_fn_error $? "cannot run C compiled programs. | |
3458 | If you meant to cross compile, use \`--host'. | |
3459 | See \`config.log' for more details" "$LINENO" 5; } | |
3460 | fi | |
3461 | fi | |
3462 | fi | |
3463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3464 | $as_echo "$cross_compiling" >&6; } | |
3465 | ||
3466 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3467 | ac_clean_files=$ac_clean_files_save | |
3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3469 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3470 | if test "${ac_cv_objext+set}" = set; then : | |
3471 | $as_echo_n "(cached) " >&6 | |
3472 | else | |
3473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3474 | /* end confdefs.h. */ | |
ad6254c5 AK |
3475 | |
3476 | int | |
3477 | main () | |
3478 | { | |
f11781c5 | 3479 | |
ad6254c5 AK |
3480 | ; |
3481 | return 0; | |
3482 | } | |
3483 | _ACEOF | |
f11781c5 AK |
3484 | rm -f conftest.o conftest.obj |
3485 | if { { ac_try="$ac_compile" | |
7a197a62 AK |
3486 | case "(($ac_try" in |
3487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3488 | *) ac_try_echo=$ac_try;; | |
3489 | esac | |
f11781c5 AK |
3490 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3491 | $as_echo "$ac_try_echo"; } >&5 | |
3492 | (eval "$ac_compile") 2>&5 | |
ad6254c5 | 3493 | ac_status=$? |
f11781c5 AK |
3494 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3495 | test $ac_status = 0; }; then : | |
3496 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3497 | test -f "$ac_file" || continue; | |
3498 | case $ac_file in | |
3499 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3500 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3501 | break;; | |
3502 | esac | |
3503 | done | |
ad6254c5 | 3504 | else |
ec6a6fbe | 3505 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3506 | sed 's/^/| /' conftest.$ac_ext >&5 |
3507 | ||
f11781c5 AK |
3508 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3509 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3510 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3511 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3512 | fi |
f11781c5 | 3513 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ad6254c5 | 3514 | fi |
f11781c5 AK |
3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3516 | $as_echo "$ac_cv_objext" >&6; } | |
3517 | OBJEXT=$ac_cv_objext | |
3518 | ac_objext=$OBJEXT | |
3519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3520 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3521 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
ec6a6fbe | 3522 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3523 | else |
f11781c5 | 3524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 AK |
3525 | /* end confdefs.h. */ |
3526 | ||
ad6254c5 AK |
3527 | int |
3528 | main () | |
3529 | { | |
f11781c5 AK |
3530 | #ifndef __GNUC__ |
3531 | choke me | |
3532 | #endif | |
3533 | ||
ad6254c5 AK |
3534 | ; |
3535 | return 0; | |
3536 | } | |
3537 | _ACEOF | |
f11781c5 AK |
3538 | if ac_fn_c_try_compile "$LINENO"; then : |
3539 | ac_compiler_gnu=yes | |
ad6254c5 | 3540 | else |
f11781c5 | 3541 | ac_compiler_gnu=no |
ad6254c5 | 3542 | fi |
f11781c5 AK |
3543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3544 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
7a197a62 | 3545 | |
d0191583 | 3546 | fi |
f11781c5 AK |
3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3548 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3549 | if test $ac_compiler_gnu = yes; then | |
3550 | GCC=yes | |
d0191583 | 3551 | else |
f11781c5 | 3552 | GCC= |
d0191583 | 3553 | fi |
f11781c5 AK |
3554 | ac_test_CFLAGS=${CFLAGS+set} |
3555 | ac_save_CFLAGS=$CFLAGS | |
3556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3557 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3558 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3559 | $as_echo_n "(cached) " >&6 | |
3560 | else | |
3561 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3562 | ac_c_werror_flag=yes | |
3563 | ac_cv_prog_cc_g=no | |
3564 | CFLAGS="-g" | |
3565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3566 | /* end confdefs.h. */ | |
72b2cb61 | 3567 | |
f11781c5 AK |
3568 | int |
3569 | main () | |
3570 | { | |
72b2cb61 | 3571 | |
f11781c5 AK |
3572 | ; |
3573 | return 0; | |
3574 | } | |
3575 | _ACEOF | |
3576 | if ac_fn_c_try_compile "$LINENO"; then : | |
3577 | ac_cv_prog_cc_g=yes | |
3578 | else | |
3579 | CFLAGS="" | |
3580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3581 | /* end confdefs.h. */ | |
ad6254c5 | 3582 | |
f11781c5 AK |
3583 | int |
3584 | main () | |
3585 | { | |
ad6254c5 | 3586 | |
f11781c5 AK |
3587 | ; |
3588 | return 0; | |
3589 | } | |
d0191583 | 3590 | _ACEOF |
f11781c5 AK |
3591 | if ac_fn_c_try_compile "$LINENO"; then : |
3592 | ||
3593 | else | |
3594 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3595 | CFLAGS="-g" | |
3596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3597 | /* end confdefs.h. */ |
7a197a62 | 3598 | |
f11781c5 AK |
3599 | int |
3600 | main () | |
3601 | { | |
ad6254c5 | 3602 | |
f11781c5 AK |
3603 | ; |
3604 | return 0; | |
3605 | } | |
3606 | _ACEOF | |
3607 | if ac_fn_c_try_compile "$LINENO"; then : | |
3608 | ac_cv_prog_cc_g=yes | |
3609 | fi | |
3610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3611 | fi | |
3612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3613 | fi | |
3614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3615 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3616 | fi | |
3617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3618 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3619 | if test "$ac_test_CFLAGS" = set; then | |
3620 | CFLAGS=$ac_save_CFLAGS | |
3621 | elif test $ac_cv_prog_cc_g = yes; then | |
3622 | if test "$GCC" = yes; then | |
3623 | CFLAGS="-g -O2" | |
3624 | else | |
3625 | CFLAGS="-g" | |
3626 | fi | |
3627 | else | |
3628 | if test "$GCC" = yes; then | |
3629 | CFLAGS="-O2" | |
3630 | else | |
3631 | CFLAGS= | |
3632 | fi | |
3633 | fi | |
3634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3635 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3636 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3637 | $as_echo_n "(cached) " >&6 | |
3638 | else | |
3639 | ac_cv_prog_cc_c89=no | |
3640 | ac_save_CC=$CC | |
3641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3642 | /* end confdefs.h. */ | |
3643 | #include <stdarg.h> | |
3644 | #include <stdio.h> | |
3645 | #include <sys/types.h> | |
3646 | #include <sys/stat.h> | |
3647 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3648 | struct buf { int x; }; | |
3649 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3650 | static char *e (p, i) | |
3651 | char **p; | |
3652 | int i; | |
3653 | { | |
3654 | return p[i]; | |
3655 | } | |
3656 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3657 | { | |
3658 | char *s; | |
3659 | va_list v; | |
3660 | va_start (v,p); | |
3661 | s = g (p, va_arg (v,int)); | |
3662 | va_end (v); | |
3663 | return s; | |
3664 | } | |
ad6254c5 | 3665 | |
f11781c5 AK |
3666 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3667 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3668 | These don't provoke an error unfortunately, instead are silently treated | |
3669 | as 'x'. The following induces an error, until -std is added to get | |
3670 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3671 | array size at least. It's necessary to write '\x00'==0 to get something | |
3672 | that's true only with -std. */ | |
3673 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
72b2cb61 | 3674 | |
f11781c5 AK |
3675 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3676 | inside strings and character constants. */ | |
3677 | #define FOO(x) 'x' | |
3678 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
d0191583 | 3679 | |
f11781c5 AK |
3680 | int test (int i, double x); |
3681 | struct s1 {int (*f) (int a);}; | |
3682 | struct s2 {int (*f) (double a);}; | |
3683 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3684 | int argc; | |
3685 | char **argv; | |
d0191583 JM |
3686 | int |
3687 | main () | |
3688 | { | |
f11781c5 | 3689 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
d0191583 JM |
3690 | ; |
3691 | return 0; | |
3692 | } | |
72b2cb61 | 3693 | _ACEOF |
f11781c5 AK |
3694 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3695 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3696 | do | |
3697 | CC="$ac_save_CC $ac_arg" | |
3698 | if ac_fn_c_try_compile "$LINENO"; then : | |
3699 | ac_cv_prog_cc_c89=$ac_arg | |
3700 | fi | |
3701 | rm -f core conftest.err conftest.$ac_objext | |
3702 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3703 | done | |
3704 | rm -f conftest.$ac_ext | |
3705 | CC=$ac_save_CC | |
3706 | ||
3707 | fi | |
3708 | # AC_CACHE_VAL | |
3709 | case "x$ac_cv_prog_cc_c89" in | |
3710 | x) | |
3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3712 | $as_echo "none needed" >&6; } ;; | |
3713 | xno) | |
3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3715 | $as_echo "unsupported" >&6; } ;; | |
3716 | *) | |
3717 | CC="$CC $ac_cv_prog_cc_c89" | |
3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3719 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d0191583 | 3720 | esac |
f11781c5 AK |
3721 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
3722 | ||
3723 | fi | |
3724 | ||
3725 | ac_ext=c | |
3726 | ac_cpp='$CPP $CPPFLAGS' | |
3727 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3728 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3729 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
72b2cb61 | 3730 | |
ad6254c5 | 3731 | |
7a197a62 | 3732 | |
f11781c5 AK |
3733 | ac_ext=c |
3734 | ac_cpp='$CPP $CPPFLAGS' | |
3735 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3736 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3737 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3739 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3740 | # On Suns, sometimes $CPP names a directory. | |
3741 | if test -n "$CPP" && test -d "$CPP"; then | |
3742 | CPP= | |
3743 | fi | |
3744 | if test -z "$CPP"; then | |
3745 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
ec6a6fbe | 3746 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3747 | else |
f11781c5 AK |
3748 | # Double quotes because CPP needs to be expanded |
3749 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3750 | do | |
3751 | ac_preproc_ok=false | |
3752 | for ac_c_preproc_warn_flag in '' yes | |
3753 | do | |
3754 | # Use a header file that comes with gcc, so configuring glibc | |
3755 | # with a fresh cross-compiler works. | |
3756 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3757 | # <limits.h> exists even on freestanding compilers. | |
3758 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3759 | # not just through cpp. "Syntax error" is here to catch this case. | |
3760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3761 | /* end confdefs.h. */ |
d0191583 JM |
3762 | #ifdef __STDC__ |
3763 | # include <limits.h> | |
3764 | #else | |
3765 | # include <assert.h> | |
3766 | #endif | |
f11781c5 AK |
3767 | Syntax error |
3768 | _ACEOF | |
3769 | if ac_fn_c_try_cpp "$LINENO"; then : | |
72b2cb61 | 3770 | |
f11781c5 AK |
3771 | else |
3772 | # Broken: fails on valid input. | |
3773 | continue | |
3774 | fi | |
3775 | rm -f conftest.err conftest.$ac_ext | |
d0191583 | 3776 | |
f11781c5 AK |
3777 | # OK, works on sane cases. Now check whether nonexistent headers |
3778 | # can be detected and how. | |
3779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3780 | /* end confdefs.h. */ | |
3781 | #include <ac_nonexistent.h> | |
72b2cb61 | 3782 | _ACEOF |
f11781c5 AK |
3783 | if ac_fn_c_try_cpp "$LINENO"; then : |
3784 | # Broken: success on invalid input. | |
3785 | continue | |
d0191583 | 3786 | else |
f11781c5 AK |
3787 | # Passes both tests. |
3788 | ac_preproc_ok=: | |
3789 | break | |
ad6254c5 | 3790 | fi |
f11781c5 | 3791 | rm -f conftest.err conftest.$ac_ext |
ad6254c5 | 3792 | |
f11781c5 AK |
3793 | done |
3794 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3795 | rm -f conftest.err conftest.$ac_ext | |
3796 | if $ac_preproc_ok; then : | |
3797 | break | |
7a197a62 AK |
3798 | fi |
3799 | ||
f11781c5 AK |
3800 | done |
3801 | ac_cv_prog_CPP=$CPP | |
ad6254c5 | 3802 | |
7a197a62 | 3803 | fi |
f11781c5 AK |
3804 | CPP=$ac_cv_prog_CPP |
3805 | else | |
3806 | ac_cv_prog_CPP=$CPP | |
d0191583 | 3807 | fi |
f11781c5 AK |
3808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3809 | $as_echo "$CPP" >&6; } | |
3810 | ac_preproc_ok=false | |
3811 | for ac_c_preproc_warn_flag in '' yes | |
3812 | do | |
3813 | # Use a header file that comes with gcc, so configuring glibc | |
3814 | # with a fresh cross-compiler works. | |
3815 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3816 | # <limits.h> exists even on freestanding compilers. | |
3817 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3818 | # not just through cpp. "Syntax error" is here to catch this case. | |
3819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3820 | /* end confdefs.h. */ | |
3821 | #ifdef __STDC__ | |
3822 | # include <limits.h> | |
3823 | #else | |
3824 | # include <assert.h> | |
3825 | #endif | |
3826 | Syntax error | |
3827 | _ACEOF | |
3828 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7a197a62 | 3829 | |
9c961554 | 3830 | else |
f11781c5 AK |
3831 | # Broken: fails on valid input. |
3832 | continue | |
9c961554 | 3833 | fi |
f11781c5 | 3834 | rm -f conftest.err conftest.$ac_ext |
9c961554 | 3835 | |
f11781c5 AK |
3836 | # OK, works on sane cases. Now check whether nonexistent headers |
3837 | # can be detected and how. | |
3838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3839 | /* end confdefs.h. */ | |
3840 | #include <ac_nonexistent.h> | |
3841 | _ACEOF | |
3842 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3843 | # Broken: success on invalid input. | |
3844 | continue | |
3845 | else | |
3846 | # Passes both tests. | |
3847 | ac_preproc_ok=: | |
3848 | break | |
3849 | fi | |
3850 | rm -f conftest.err conftest.$ac_ext | |
ad6254c5 | 3851 | |
f11781c5 AK |
3852 | done |
3853 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3854 | rm -f conftest.err conftest.$ac_ext | |
3855 | if $ac_preproc_ok; then : | |
d0191583 | 3856 | |
f11781c5 AK |
3857 | else |
3858 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3859 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3860 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3861 | See \`config.log' for more details" "$LINENO" 5; } | |
7a197a62 AK |
3862 | fi |
3863 | ||
f11781c5 AK |
3864 | ac_ext=c |
3865 | ac_cpp='$CPP $CPPFLAGS' | |
3866 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3867 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3868 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 3869 | |
ad6254c5 | 3870 | |
f11781c5 AK |
3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3872 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3873 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3874 | $as_echo_n "(cached) " >&6 | |
3875 | else | |
3876 | if test -z "$GREP"; then | |
3877 | ac_path_GREP_found=false | |
3878 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3880 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3881 | do | |
3882 | IFS=$as_save_IFS | |
3883 | test -z "$as_dir" && as_dir=. | |
3884 | for ac_prog in grep ggrep; do | |
3885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3886 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3887 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3888 | # Check for GNU ac_path_GREP and select it if it is found. | |
3889 | # Check for GNU $ac_path_GREP | |
3890 | case `"$ac_path_GREP" --version 2>&1` in | |
3891 | *GNU*) | |
3892 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3893 | *) | |
3894 | ac_count=0 | |
3895 | $as_echo_n 0123456789 >"conftest.in" | |
3896 | while : | |
3897 | do | |
3898 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3899 | mv "conftest.tmp" "conftest.in" | |
3900 | cp "conftest.in" "conftest.nl" | |
3901 | $as_echo 'GREP' >> "conftest.nl" | |
3902 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3903 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3904 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3905 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3906 | # Best one so far, save it but keep looking for a better one | |
3907 | ac_cv_path_GREP="$ac_path_GREP" | |
3908 | ac_path_GREP_max=$ac_count | |
3909 | fi | |
3910 | # 10*(2^10) chars as input seems more than enough | |
3911 | test $ac_count -gt 10 && break | |
3912 | done | |
3913 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3914 | esac | |
ad6254c5 | 3915 | |
f11781c5 AK |
3916 | $ac_path_GREP_found && break 3 |
3917 | done | |
3918 | done | |
3919 | done | |
3920 | IFS=$as_save_IFS | |
3921 | if test -z "$ac_cv_path_GREP"; then | |
3922 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3923 | fi | |
3924 | else | |
3925 | ac_cv_path_GREP=$GREP | |
7a197a62 AK |
3926 | fi |
3927 | ||
d0191583 | 3928 | fi |
f11781c5 AK |
3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3930 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3931 | GREP="$ac_cv_path_GREP" | |
ad6254c5 | 3932 | |
24bbc4d7 | 3933 | |
f11781c5 AK |
3934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3935 | $as_echo_n "checking for egrep... " >&6; } | |
3936 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3937 | $as_echo_n "(cached) " >&6 | |
3938 | else | |
3939 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3940 | then ac_cv_path_EGREP="$GREP -E" | |
3941 | else | |
3942 | if test -z "$EGREP"; then | |
3943 | ac_path_EGREP_found=false | |
3944 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3946 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3947 | do | |
3948 | IFS=$as_save_IFS | |
3949 | test -z "$as_dir" && as_dir=. | |
3950 | for ac_prog in egrep; do | |
3951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3952 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3953 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3954 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3955 | # Check for GNU $ac_path_EGREP | |
3956 | case `"$ac_path_EGREP" --version 2>&1` in | |
3957 | *GNU*) | |
3958 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3959 | *) | |
3960 | ac_count=0 | |
3961 | $as_echo_n 0123456789 >"conftest.in" | |
3962 | while : | |
3963 | do | |
3964 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3965 | mv "conftest.tmp" "conftest.in" | |
3966 | cp "conftest.in" "conftest.nl" | |
3967 | $as_echo 'EGREP' >> "conftest.nl" | |
3968 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3969 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3970 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3971 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3972 | # Best one so far, save it but keep looking for a better one | |
3973 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3974 | ac_path_EGREP_max=$ac_count | |
3975 | fi | |
3976 | # 10*(2^10) chars as input seems more than enough | |
3977 | test $ac_count -gt 10 && break | |
3978 | done | |
3979 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3980 | esac | |
24bbc4d7 | 3981 | |
f11781c5 AK |
3982 | $ac_path_EGREP_found && break 3 |
3983 | done | |
3984 | done | |
3985 | done | |
3986 | IFS=$as_save_IFS | |
3987 | if test -z "$ac_cv_path_EGREP"; then | |
3988 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3989 | fi | |
24bbc4d7 | 3990 | else |
f11781c5 | 3991 | ac_cv_path_EGREP=$EGREP |
24bbc4d7 AK |
3992 | fi |
3993 | ||
f11781c5 | 3994 | fi |
24bbc4d7 | 3995 | fi |
f11781c5 AK |
3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
3997 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3998 | EGREP="$ac_cv_path_EGREP" | |
93bd259b AK |
3999 | |
4000 | ||
f11781c5 AK |
4001 | if test $ac_cv_c_compiler_gnu = yes; then |
4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4003 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
4004 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : | |
4005 | $as_echo_n "(cached) " >&6 | |
93bd259b | 4006 | else |
f11781c5 AK |
4007 | ac_pattern="Autoconf.*'x'" |
4008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4009 | /* end confdefs.h. */ | |
4010 | #include <sgtty.h> | |
4011 | Autoconf TIOCGETP | |
4012 | _ACEOF | |
4013 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4014 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4015 | ac_cv_prog_gcc_traditional=yes | |
d0191583 | 4016 | else |
f11781c5 | 4017 | ac_cv_prog_gcc_traditional=no |
7a197a62 | 4018 | fi |
f11781c5 | 4019 | rm -f conftest* |
7a197a62 | 4020 | |
72b2cb61 | 4021 | |
f11781c5 AK |
4022 | if test $ac_cv_prog_gcc_traditional = no; then |
4023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4024 | /* end confdefs.h. */ | |
4025 | #include <termio.h> | |
4026 | Autoconf TCGETA | |
72b2cb61 | 4027 | _ACEOF |
f11781c5 AK |
4028 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4029 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4030 | ac_cv_prog_gcc_traditional=yes | |
ad6254c5 | 4031 | fi |
f11781c5 | 4032 | rm -f conftest* |
ad6254c5 | 4033 | |
f11781c5 | 4034 | fi |
7a197a62 | 4035 | fi |
f11781c5 AK |
4036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
4037 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4038 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4039 | CC="$CC -traditional" | |
4040 | fi | |
ad6254c5 AK |
4041 | fi |
4042 | ||
f11781c5 AK |
4043 | # Find a good install program. We prefer a C program (faster), |
4044 | # so one script is as good as another. But avoid the broken or | |
4045 | # incompatible versions: | |
4046 | # SysV /etc/install, /usr/sbin/install | |
4047 | # SunOS /usr/etc/install | |
4048 | # IRIX /sbin/install | |
4049 | # AIX /bin/install | |
4050 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4051 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4052 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4053 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4054 | # OS/2's system install, which has a completely different semantic | |
4055 | # ./install, which can be erroneously created by make from ./install.sh. | |
4056 | # Reject install programs that cannot install multiple files. | |
4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4058 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4059 | if test -z "$INSTALL"; then | |
4060 | if test "${ac_cv_path_install+set}" = set; then : | |
4061 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 4062 | else |
f11781c5 AK |
4063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4064 | for as_dir in $PATH | |
4065 | do | |
4066 | IFS=$as_save_IFS | |
4067 | test -z "$as_dir" && as_dir=. | |
4068 | # Account for people who put trailing slashes in PATH elements. | |
4069 | case $as_dir/ in #(( | |
4070 | ./ | .// | /[cC]/* | \ | |
4071 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4072 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4073 | /usr/ucb/* ) ;; | |
4074 | *) | |
4075 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4076 | # Don't use installbsd from OSF since it installs stuff as root | |
4077 | # by default. | |
4078 | for ac_prog in ginstall scoinst install; do | |
4079 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4080 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4081 | if test $ac_prog = install && | |
4082 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4083 | # AIX install. It has an incompatible calling convention. | |
4084 | : | |
4085 | elif test $ac_prog = install && | |
4086 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4087 | # program-specific install script used by HP pwplus--don't use. | |
4088 | : | |
4089 | else | |
4090 | rm -rf conftest.one conftest.two conftest.dir | |
4091 | echo one > conftest.one | |
4092 | echo two > conftest.two | |
4093 | mkdir conftest.dir | |
4094 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4095 | test -s conftest.one && test -s conftest.two && | |
4096 | test -s conftest.dir/conftest.one && | |
4097 | test -s conftest.dir/conftest.two | |
4098 | then | |
4099 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4100 | break 3 | |
4101 | fi | |
4102 | fi | |
4103 | fi | |
4104 | done | |
4105 | done | |
4106 | ;; | |
4107 | esac | |
7a197a62 | 4108 | |
f11781c5 AK |
4109 | done |
4110 | IFS=$as_save_IFS | |
d0191583 | 4111 | |
f11781c5 | 4112 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
4113 | |
4114 | fi | |
f11781c5 AK |
4115 | if test "${ac_cv_path_install+set}" = set; then |
4116 | INSTALL=$ac_cv_path_install | |
4117 | else | |
4118 | # As a last resort, use the slow shell script. Don't cache a | |
4119 | # value for INSTALL within a source directory, because that will | |
4120 | # break other packages using the cache if that directory is | |
4121 | # removed, or if the value is a relative name. | |
4122 | INSTALL=$ac_install_sh | |
4123 | fi | |
7a197a62 | 4124 | fi |
f11781c5 AK |
4125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4126 | $as_echo "$INSTALL" >&6; } | |
7a197a62 | 4127 | |
f11781c5 AK |
4128 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4129 | # It thinks the first close brace ends the variable substitution. | |
4130 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
06f62ad1 | 4131 | |
f11781c5 | 4132 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
72b2cb61 | 4133 | |
f11781c5 | 4134 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
72b2cb61 | 4135 | |
f11781c5 AK |
4136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4137 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4138 | LN_S=$as_ln_s | |
4139 | if test "$LN_S" = "ln -s"; then | |
4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4141 | $as_echo "yes" >&6; } | |
4142 | else | |
4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4144 | $as_echo "no, using $LN_S" >&6; } | |
15d91f5a | 4145 | fi |
ad6254c5 | 4146 | |
f11781c5 AK |
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4148 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4149 | set x ${MAKE-make} | |
4150 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4151 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | |
4152 | $as_echo_n "(cached) " >&6 | |
d0191583 | 4153 | else |
f11781c5 AK |
4154 | cat >conftest.make <<\_ACEOF |
4155 | SHELL = /bin/sh | |
4156 | all: | |
4157 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4158 | _ACEOF | |
4159 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4160 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4161 | *@@@%%%=?*=@@@%%%*) | |
4162 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4163 | *) | |
4164 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4165 | esac | |
4166 | rm -f conftest.make | |
4167 | fi | |
4168 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4170 | $as_echo "yes" >&6; } | |
4171 | SET_MAKE= | |
4172 | else | |
4173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4174 | $as_echo "no" >&6; } | |
4175 | SET_MAKE="MAKE=${MAKE-make}" | |
ad6254c5 AK |
4176 | fi |
4177 | ||
f11781c5 AK |
4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4179 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4180 | if test -z "$MKDIR_P"; then | |
4181 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
4182 | $as_echo_n "(cached) " >&6 | |
4183 | else | |
4184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4185 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4186 | do | |
4187 | IFS=$as_save_IFS | |
4188 | test -z "$as_dir" && as_dir=. | |
4189 | for ac_prog in mkdir gmkdir; do | |
4190 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4191 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
4192 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4193 | 'mkdir (GNU coreutils) '* | \ | |
4194 | 'mkdir (coreutils) '* | \ | |
4195 | 'mkdir (fileutils) '4.1*) | |
4196 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4197 | break 3;; | |
4198 | esac | |
4199 | done | |
4200 | done | |
4201 | done | |
4202 | IFS=$as_save_IFS | |
d0191583 | 4203 | |
f11781c5 | 4204 | fi |
ad6254c5 | 4205 | |
f11781c5 AK |
4206 | test -d ./--version && rmdir ./--version |
4207 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4208 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4209 | else | |
4210 | # As a last resort, use the slow shell script. Don't cache a | |
4211 | # value for MKDIR_P within a source directory, because that will | |
4212 | # break other packages using the cache if that directory is | |
4213 | # removed, or if the value is a relative name. | |
4214 | MKDIR_P="$ac_install_sh -d" | |
4215 | fi | |
ad6254c5 | 4216 | fi |
f11781c5 AK |
4217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4218 | $as_echo "$MKDIR_P" >&6; } | |
7a197a62 | 4219 | |
f11781c5 AK |
4220 | if test -n "$ac_tool_prefix"; then |
4221 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4222 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4224 | $as_echo_n "checking for $ac_word... " >&6; } | |
4225 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4226 | $as_echo_n "(cached) " >&6 | |
4227 | else | |
4228 | if test -n "$RANLIB"; then | |
4229 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4230 | else | |
4231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4232 | for as_dir in $PATH | |
4233 | do | |
4234 | IFS=$as_save_IFS | |
4235 | test -z "$as_dir" && as_dir=. | |
4236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4237 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4238 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4239 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4240 | break 2 | |
4241 | fi | |
4242 | done | |
4243 | done | |
4244 | IFS=$as_save_IFS | |
d0191583 | 4245 | |
f11781c5 AK |
4246 | fi |
4247 | fi | |
4248 | RANLIB=$ac_cv_prog_RANLIB | |
4249 | if test -n "$RANLIB"; then | |
4250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4251 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 4252 | else |
f11781c5 AK |
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4254 | $as_echo "no" >&6; } | |
ad6254c5 | 4255 | fi |
ad6254c5 | 4256 | |
8a2fc586 | 4257 | |
d0191583 | 4258 | fi |
f11781c5 AK |
4259 | if test -z "$ac_cv_prog_RANLIB"; then |
4260 | ac_ct_RANLIB=$RANLIB | |
4261 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4262 | set dummy ranlib; ac_word=$2 | |
4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4264 | $as_echo_n "checking for $ac_word... " >&6; } | |
4265 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4266 | $as_echo_n "(cached) " >&6 | |
4267 | else | |
4268 | if test -n "$ac_ct_RANLIB"; then | |
4269 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4270 | else | |
4271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4272 | for as_dir in $PATH | |
4273 | do | |
4274 | IFS=$as_save_IFS | |
4275 | test -z "$as_dir" && as_dir=. | |
4276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4278 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4280 | break 2 | |
4281 | fi | |
4282 | done | |
4283 | done | |
4284 | IFS=$as_save_IFS | |
8a2fc586 | 4285 | |
f11781c5 AK |
4286 | fi |
4287 | fi | |
4288 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4289 | if test -n "$ac_ct_RANLIB"; then | |
4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4291 | $as_echo "$ac_ct_RANLIB" >&6; } | |
8fea97b7 | 4292 | else |
f11781c5 AK |
4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4294 | $as_echo "no" >&6; } | |
8fea97b7 ZK |
4295 | fi |
4296 | ||
f11781c5 AK |
4297 | if test "x$ac_ct_RANLIB" = x; then |
4298 | RANLIB=":" | |
4299 | else | |
4300 | case $cross_compiling:$ac_tool_warned in | |
4301 | yes:) | |
4302 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4303 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4304 | ac_tool_warned=yes ;; | |
8fea97b7 | 4305 | esac |
f11781c5 AK |
4306 | RANLIB=$ac_ct_RANLIB |
4307 | fi | |
d0191583 | 4308 | else |
f11781c5 | 4309 | RANLIB="$ac_cv_prog_RANLIB" |
d0191583 | 4310 | fi |
8a2fc586 | 4311 | |
f11781c5 AK |
4312 | # Extract the first word of "cflow", so it can be a program name with args. |
4313 | set dummy cflow; ac_word=$2 | |
4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4315 | $as_echo_n "checking for $ac_word... " >&6; } | |
4316 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then : | |
4317 | $as_echo_n "(cached) " >&6 | |
4318 | else | |
4319 | case $CFLOW_CMD in | |
4320 | [\\/]* | ?:[\\/]*) | |
4321 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4322 | ;; | |
4323 | *) | |
4324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4325 | for as_dir in $PATH | |
4326 | do | |
4327 | IFS=$as_save_IFS | |
4328 | test -z "$as_dir" && as_dir=. | |
4329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4331 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
4332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4333 | break 2 | |
4334 | fi | |
4335 | done | |
4336 | done | |
4337 | IFS=$as_save_IFS | |
8a2fc586 | 4338 | |
f11781c5 AK |
4339 | ;; |
4340 | esac | |
ad6254c5 | 4341 | fi |
f11781c5 AK |
4342 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD |
4343 | if test -n "$CFLOW_CMD"; then | |
4344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5 | |
4345 | $as_echo "$CFLOW_CMD" >&6; } | |
37ddf259 | 4346 | else |
f11781c5 AK |
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4348 | $as_echo "no" >&6; } | |
37ddf259 AK |
4349 | fi |
4350 | ||
e2997b73 | 4351 | |
f11781c5 AK |
4352 | # Extract the first word of "cscope", so it can be a program name with args. |
4353 | set dummy cscope; ac_word=$2 | |
4354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
e2997b73 | 4355 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 4356 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then : |
e2997b73 AK |
4357 | $as_echo_n "(cached) " >&6 |
4358 | else | |
f11781c5 | 4359 | case $CSCOPE_CMD in |
e2997b73 | 4360 | [\\/]* | ?:[\\/]*) |
f11781c5 | 4361 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. |
e2997b73 AK |
4362 | ;; |
4363 | *) | |
4364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4365 | for as_dir in $PATH | |
4366 | do | |
4367 | IFS=$as_save_IFS | |
4368 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 4369 | for ac_exec_ext in '' $ac_executable_extensions; do |
e2997b73 | 4370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
4371 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" |
4372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
e2997b73 AK |
4373 | break 2 |
4374 | fi | |
4375 | done | |
f11781c5 | 4376 | done |
e2997b73 AK |
4377 | IFS=$as_save_IFS |
4378 | ||
4379 | ;; | |
4380 | esac | |
4381 | fi | |
f11781c5 AK |
4382 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4383 | if test -n "$CSCOPE_CMD"; then | |
4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5 | |
4385 | $as_echo "$CSCOPE_CMD" >&6; } | |
e2997b73 | 4386 | else |
f11781c5 | 4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
e2997b73 AK |
4388 | $as_echo "no" >&6; } |
4389 | fi | |
f11781c5 AK |
4390 | |
4391 | ||
4392 | ||
4393 | ################################################################################ | |
4394 | ac_header_dirent=no | |
4395 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
4396 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4398 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4399 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : | |
4400 | $as_echo_n "(cached) " >&6 | |
4401 | else | |
4402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4403 | /* end confdefs.h. */ | |
4404 | #include <sys/types.h> | |
4405 | #include <$ac_hdr> | |
4406 | ||
4407 | int | |
4408 | main () | |
4409 | { | |
4410 | if ((DIR *) 0) | |
4411 | return 0; | |
4412 | ; | |
4413 | return 0; | |
4414 | } | |
4415 | _ACEOF | |
4416 | if ac_fn_c_try_compile "$LINENO"; then : | |
4417 | eval "$as_ac_Header=yes" | |
4418 | else | |
4419 | eval "$as_ac_Header=no" | |
4420 | fi | |
4421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4422 | fi | |
4423 | eval ac_res=\$$as_ac_Header | |
4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4425 | $as_echo "$ac_res" >&6; } | |
4426 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4427 | cat >>confdefs.h <<_ACEOF | |
4428 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
4429 | _ACEOF | |
4430 | ||
4431 | ac_header_dirent=$ac_hdr; break | |
4432 | fi | |
4433 | ||
4434 | done | |
4435 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4436 | if test $ac_header_dirent = dirent.h; then | |
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4438 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4439 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4440 | $as_echo_n "(cached) " >&6 | |
4441 | else | |
4442 | ac_func_search_save_LIBS=$LIBS | |
4443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4444 | /* end confdefs.h. */ | |
4445 | ||
4446 | /* Override any GCC internal prototype to avoid an error. | |
4447 | Use char because int might match the return type of a GCC | |
4448 | builtin and then its argument prototype would still apply. */ | |
4449 | #ifdef __cplusplus | |
4450 | extern "C" | |
4451 | #endif | |
4452 | char opendir (); | |
4453 | int | |
4454 | main () | |
4455 | { | |
4456 | return opendir (); | |
4457 | ; | |
4458 | return 0; | |
4459 | } | |
4460 | _ACEOF | |
4461 | for ac_lib in '' dir; do | |
4462 | if test -z "$ac_lib"; then | |
4463 | ac_res="none required" | |
4464 | else | |
4465 | ac_res=-l$ac_lib | |
4466 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4467 | fi | |
4468 | if ac_fn_c_try_link "$LINENO"; then : | |
4469 | ac_cv_search_opendir=$ac_res | |
4470 | fi | |
4471 | rm -f core conftest.err conftest.$ac_objext \ | |
4472 | conftest$ac_exeext | |
4473 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4474 | break | |
4475 | fi | |
4476 | done | |
4477 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4478 | ||
4479 | else | |
4480 | ac_cv_search_opendir=no | |
4481 | fi | |
4482 | rm conftest.$ac_ext | |
4483 | LIBS=$ac_func_search_save_LIBS | |
4484 | fi | |
4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4486 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4487 | ac_res=$ac_cv_search_opendir | |
4488 | if test "$ac_res" != no; then : | |
4489 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4490 | |
4491 | fi | |
f11781c5 AK |
4492 | |
4493 | else | |
4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4495 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4496 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 AK |
4497 | $as_echo_n "(cached) " >&6 |
4498 | else | |
f11781c5 AK |
4499 | ac_func_search_save_LIBS=$LIBS |
4500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4501 | /* end confdefs.h. */ | |
e2997b73 | 4502 | |
f11781c5 AK |
4503 | /* Override any GCC internal prototype to avoid an error. |
4504 | Use char because int might match the return type of a GCC | |
4505 | builtin and then its argument prototype would still apply. */ | |
4506 | #ifdef __cplusplus | |
4507 | extern "C" | |
4508 | #endif | |
4509 | char opendir (); | |
4510 | int | |
4511 | main () | |
4512 | { | |
4513 | return opendir (); | |
4514 | ; | |
4515 | return 0; | |
4516 | } | |
4517 | _ACEOF | |
4518 | for ac_lib in '' x; do | |
4519 | if test -z "$ac_lib"; then | |
4520 | ac_res="none required" | |
4521 | else | |
4522 | ac_res=-l$ac_lib | |
4523 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4524 | fi | |
4525 | if ac_fn_c_try_link "$LINENO"; then : | |
4526 | ac_cv_search_opendir=$ac_res | |
e2997b73 | 4527 | fi |
f11781c5 AK |
4528 | rm -f core conftest.err conftest.$ac_objext \ |
4529 | conftest$ac_exeext | |
4530 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4531 | break | |
e2997b73 | 4532 | fi |
f11781c5 AK |
4533 | done |
4534 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 | 4535 | |
e2997b73 | 4536 | else |
f11781c5 AK |
4537 | ac_cv_search_opendir=no |
4538 | fi | |
4539 | rm conftest.$ac_ext | |
4540 | LIBS=$ac_func_search_save_LIBS | |
e2997b73 | 4541 | fi |
f11781c5 AK |
4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4543 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4544 | ac_res=$ac_cv_search_opendir | |
4545 | if test "$ac_res" != no; then : | |
4546 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4547 | |
4548 | fi | |
8c4e8a18 | 4549 | |
e2997b73 AK |
4550 | fi |
4551 | ||
f11781c5 AK |
4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4553 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4554 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4555 | $as_echo_n "(cached) " >&6 | |
4556 | else | |
4557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4558 | /* end confdefs.h. */ | |
4559 | #include <stdlib.h> | |
4560 | #include <stdarg.h> | |
4561 | #include <string.h> | |
4562 | #include <float.h> | |
e2997b73 | 4563 | |
f11781c5 AK |
4564 | int |
4565 | main () | |
4566 | { | |
4567 | ||
4568 | ; | |
4569 | return 0; | |
4570 | } | |
4571 | _ACEOF | |
4572 | if ac_fn_c_try_compile "$LINENO"; then : | |
4573 | ac_cv_header_stdc=yes | |
e2997b73 | 4574 | else |
f11781c5 | 4575 | ac_cv_header_stdc=no |
e2997b73 | 4576 | fi |
f11781c5 AK |
4577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4578 | ||
4579 | if test $ac_cv_header_stdc = yes; then | |
4580 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4582 | /* end confdefs.h. */ | |
4583 | #include <string.h> | |
4584 | ||
4585 | _ACEOF | |
4586 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4587 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4588 | ||
e2997b73 | 4589 | else |
f11781c5 | 4590 | ac_cv_header_stdc=no |
e2997b73 | 4591 | fi |
f11781c5 | 4592 | rm -f conftest* |
e2997b73 | 4593 | |
f11781c5 | 4594 | fi |
e2997b73 | 4595 | |
f11781c5 AK |
4596 | if test $ac_cv_header_stdc = yes; then |
4597 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4599 | /* end confdefs.h. */ | |
4600 | #include <stdlib.h> | |
e2997b73 | 4601 | |
f11781c5 AK |
4602 | _ACEOF |
4603 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4604 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4605 | |
e2997b73 | 4606 | else |
f11781c5 | 4607 | ac_cv_header_stdc=no |
e2997b73 | 4608 | fi |
f11781c5 | 4609 | rm -f conftest* |
e2997b73 | 4610 | |
e2997b73 | 4611 | fi |
90c80887 | 4612 | |
f11781c5 AK |
4613 | if test $ac_cv_header_stdc = yes; then |
4614 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4615 | if test "$cross_compiling" = yes; then : | |
4616 | : | |
4617 | else | |
4618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4619 | /* end confdefs.h. */ | |
4620 | #include <ctype.h> | |
4621 | #include <stdlib.h> | |
4622 | #if ((' ' & 0x0FF) == 0x020) | |
4623 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4624 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4625 | #else | |
4626 | # define ISLOWER(c) \ | |
4627 | (('a' <= (c) && (c) <= 'i') \ | |
4628 | || ('j' <= (c) && (c) <= 'r') \ | |
4629 | || ('s' <= (c) && (c) <= 'z')) | |
4630 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4631 | #endif | |
4632 | ||
4633 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4634 | int | |
4635 | main () | |
4636 | { | |
4637 | int i; | |
4638 | for (i = 0; i < 256; i++) | |
4639 | if (XOR (islower (i), ISLOWER (i)) | |
4640 | || toupper (i) != TOUPPER (i)) | |
4641 | return 2; | |
4642 | return 0; | |
4643 | } | |
4644 | _ACEOF | |
4645 | if ac_fn_c_try_run "$LINENO"; then : | |
90c80887 | 4646 | |
90c80887 | 4647 | else |
f11781c5 | 4648 | ac_cv_header_stdc=no |
90c80887 | 4649 | fi |
f11781c5 AK |
4650 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4651 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
90c80887 | 4652 | fi |
90c80887 | 4653 | |
90c80887 | 4654 | fi |
90c80887 | 4655 | fi |
f11781c5 AK |
4656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4657 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4658 | if test $ac_cv_header_stdc = yes; then | |
90c80887 | 4659 | |
f11781c5 | 4660 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
90c80887 | 4661 | |
90c80887 | 4662 | fi |
f11781c5 AK |
4663 | |
4664 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4665 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4666 | inttypes.h stdint.h unistd.h | |
4667 | do : | |
4668 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4669 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4670 | " | |
4671 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4672 | cat >>confdefs.h <<_ACEOF | |
4673 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4674 | _ACEOF | |
4675 | ||
90c80887 | 4676 | fi |
f11781c5 AK |
4677 | |
4678 | done | |
4679 | ||
4680 | ||
4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | |
4682 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4683 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : | |
4684 | $as_echo_n "(cached) " >&6 | |
4685 | else | |
4686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4687 | /* end confdefs.h. */ | |
4688 | #include <sys/types.h> | |
4689 | int | |
4690 | main () | |
4691 | { | |
4692 | return makedev(0, 0); | |
4693 | ; | |
4694 | return 0; | |
4695 | } | |
4696 | _ACEOF | |
4697 | if ac_fn_c_try_link "$LINENO"; then : | |
4698 | ac_cv_header_sys_types_h_makedev=yes | |
4699 | else | |
4700 | ac_cv_header_sys_types_h_makedev=no | |
90c80887 | 4701 | fi |
f11781c5 AK |
4702 | rm -f core conftest.err conftest.$ac_objext \ |
4703 | conftest$ac_exeext conftest.$ac_ext | |
4704 | ||
90c80887 | 4705 | fi |
f11781c5 AK |
4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4707 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
4708 | ||
4709 | if test $ac_cv_header_sys_types_h_makedev = no; then | |
4710 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | |
4711 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : | |
4712 | ||
4713 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | |
90c80887 | 4714 | |
a946372e | 4715 | fi |
e2997b73 | 4716 | |
e2997b73 | 4717 | |
a946372e | 4718 | |
f11781c5 AK |
4719 | if test $ac_cv_header_sys_mkdev_h = no; then |
4720 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
4721 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : | |
4722 | ||
4723 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | |
4724 | ||
e2997b73 | 4725 | fi |
a946372e | 4726 | |
a946372e | 4727 | |
f11781c5 AK |
4728 | fi |
4729 | fi | |
4730 | ||
4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4732 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4733 | if test "${ac_cv_header_stdc+set}" = set; then : | |
a946372e AK |
4734 | $as_echo_n "(cached) " >&6 |
4735 | else | |
f11781c5 | 4736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4737 | /* end confdefs.h. */ |
f11781c5 AK |
4738 | #include <stdlib.h> |
4739 | #include <stdarg.h> | |
4740 | #include <string.h> | |
4741 | #include <float.h> | |
a946372e | 4742 | |
a946372e AK |
4743 | int |
4744 | main () | |
4745 | { | |
f11781c5 | 4746 | |
a946372e AK |
4747 | ; |
4748 | return 0; | |
4749 | } | |
4750 | _ACEOF | |
f11781c5 AK |
4751 | if ac_fn_c_try_compile "$LINENO"; then : |
4752 | ac_cv_header_stdc=yes | |
e2997b73 | 4753 | else |
f11781c5 AK |
4754 | ac_cv_header_stdc=no |
4755 | fi | |
4756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4757 | ||
4758 | if test $ac_cv_header_stdc = yes; then | |
4759 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4761 | /* end confdefs.h. */ | |
4762 | #include <string.h> | |
4763 | ||
4764 | _ACEOF | |
4765 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4766 | $EGREP "memchr" >/dev/null 2>&1; then : | |
e2997b73 | 4767 | |
f11781c5 AK |
4768 | else |
4769 | ac_cv_header_stdc=no | |
a946372e | 4770 | fi |
f11781c5 | 4771 | rm -f conftest* |
e2997b73 | 4772 | |
a946372e | 4773 | fi |
e2997b73 | 4774 | |
f11781c5 AK |
4775 | if test $ac_cv_header_stdc = yes; then |
4776 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4778 | /* end confdefs.h. */ | |
4779 | #include <stdlib.h> | |
4780 | ||
4781 | _ACEOF | |
4782 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4783 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4784 | |
e2997b73 | 4785 | else |
f11781c5 | 4786 | ac_cv_header_stdc=no |
e2997b73 | 4787 | fi |
f11781c5 | 4788 | rm -f conftest* |
e2997b73 | 4789 | |
f11781c5 | 4790 | fi |
a946372e | 4791 | |
f11781c5 AK |
4792 | if test $ac_cv_header_stdc = yes; then |
4793 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4794 | if test "$cross_compiling" = yes; then : | |
4795 | : | |
4796 | else | |
4797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4798 | /* end confdefs.h. */ | |
4799 | #include <ctype.h> | |
4800 | #include <stdlib.h> | |
4801 | #if ((' ' & 0x0FF) == 0x020) | |
4802 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4803 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4804 | #else | |
4805 | # define ISLOWER(c) \ | |
4806 | (('a' <= (c) && (c) <= 'i') \ | |
4807 | || ('j' <= (c) && (c) <= 'r') \ | |
4808 | || ('s' <= (c) && (c) <= 'z')) | |
4809 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4810 | #endif | |
e2997b73 | 4811 | |
f11781c5 AK |
4812 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4813 | int | |
4814 | main () | |
4815 | { | |
4816 | int i; | |
4817 | for (i = 0; i < 256; i++) | |
4818 | if (XOR (islower (i), ISLOWER (i)) | |
4819 | || toupper (i) != TOUPPER (i)) | |
4820 | return 2; | |
4821 | return 0; | |
4822 | } | |
4823 | _ACEOF | |
4824 | if ac_fn_c_try_run "$LINENO"; then : | |
e2997b73 | 4825 | |
e2997b73 | 4826 | else |
f11781c5 | 4827 | ac_cv_header_stdc=no |
e2997b73 | 4828 | fi |
f11781c5 AK |
4829 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4830 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
e2997b73 | 4831 | fi |
f11781c5 | 4832 | |
e2997b73 | 4833 | fi |
e2997b73 | 4834 | fi |
f11781c5 AK |
4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4836 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4837 | if test $ac_cv_header_stdc = yes; then | |
e2997b73 | 4838 | |
f11781c5 | 4839 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
e2997b73 | 4840 | |
f11781c5 | 4841 | fi |
e2997b73 | 4842 | |
f11781c5 AK |
4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4844 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
4845 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : | |
4846 | $as_echo_n "(cached) " >&6 | |
4847 | else | |
4848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4849 | /* end confdefs.h. */ | |
4850 | #include <sys/types.h> | |
4851 | #include <sys/wait.h> | |
4852 | #ifndef WEXITSTATUS | |
4853 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
4854 | #endif | |
4855 | #ifndef WIFEXITED | |
4856 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4857 | #endif | |
e2997b73 | 4858 | |
f11781c5 AK |
4859 | int |
4860 | main () | |
4861 | { | |
4862 | int s; | |
4863 | wait (&s); | |
4864 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4865 | ; | |
4866 | return 0; | |
4867 | } | |
4868 | _ACEOF | |
4869 | if ac_fn_c_try_compile "$LINENO"; then : | |
4870 | ac_cv_header_sys_wait_h=yes | |
e2997b73 | 4871 | else |
f11781c5 | 4872 | ac_cv_header_sys_wait_h=no |
e2997b73 | 4873 | fi |
f11781c5 AK |
4874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4875 | fi | |
4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | |
4877 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
4878 | if test $ac_cv_header_sys_wait_h = yes; then | |
e2997b73 | 4879 | |
f11781c5 | 4880 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
e2997b73 | 4881 | |
d0191583 | 4882 | fi |
f11781c5 AK |
4883 | |
4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
4885 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
4886 | if test "${ac_cv_header_time+set}" = set; then : | |
4887 | $as_echo_n "(cached) " >&6 | |
fc54be10 | 4888 | else |
f11781c5 | 4889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4890 | /* end confdefs.h. */ |
f11781c5 AK |
4891 | #include <sys/types.h> |
4892 | #include <sys/time.h> | |
4893 | #include <time.h> | |
4894 | ||
4895 | int | |
4896 | main () | |
4897 | { | |
4898 | if ((struct tm *) 0) | |
4899 | return 0; | |
4900 | ; | |
4901 | return 0; | |
4902 | } | |
a946372e | 4903 | _ACEOF |
f11781c5 AK |
4904 | if ac_fn_c_try_compile "$LINENO"; then : |
4905 | ac_cv_header_time=yes | |
a946372e | 4906 | else |
f11781c5 AK |
4907 | ac_cv_header_time=no |
4908 | fi | |
4909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4910 | fi | |
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
4912 | $as_echo "$ac_cv_header_time" >&6; } | |
4913 | if test $ac_cv_header_time = yes; then | |
4914 | ||
4915 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
4916 | ||
4917 | fi | |
4918 | ||
4919 | ||
4920 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4921 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
4922 | sys/wait.h time.h | |
4923 | do : | |
4924 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4925 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4926 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4927 | cat >>confdefs.h <<_ACEOF | |
4928 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4929 | _ACEOF | |
d0191583 | 4930 | |
f11781c5 AK |
4931 | else |
4932 | as_fn_error $? "bailing out" "$LINENO" 5 | |
d0191583 JM |
4933 | fi |
4934 | ||
f11781c5 | 4935 | done |
fddafd51 | 4936 | |
f11781c5 AK |
4937 | |
4938 | case "$host_os" in | |
4939 | linux*) | |
4940 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4941 | do : | |
4942 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4943 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4944 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4945 | cat >>confdefs.h <<_ACEOF | |
4946 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a946372e | 4947 | _ACEOF |
a946372e | 4948 | |
f11781c5 AK |
4949 | else |
4950 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a946372e AK |
4951 | fi |
4952 | ||
f11781c5 AK |
4953 | done |
4954 | ;; | |
4955 | darwin*) | |
4956 | for ac_header in machine/endian.h sys/disk.h | |
4957 | do : | |
4958 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4959 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4960 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4961 | cat >>confdefs.h <<_ACEOF | |
4962 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4963 | _ACEOF | |
a946372e | 4964 | |
f11781c5 AK |
4965 | else |
4966 | as_fn_error $? "bailing out" "$LINENO" 5 | |
4967 | fi | |
a946372e | 4968 | |
f11781c5 AK |
4969 | done |
4970 | ;; | |
a946372e | 4971 | esac |
f11781c5 AK |
4972 | |
4973 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
4974 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
4975 | sys/types.h unistd.h | |
4976 | do : | |
4977 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4978 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4979 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4980 | cat >>confdefs.h <<_ACEOF | |
4981 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4982 | _ACEOF | |
4983 | ||
a946372e | 4984 | else |
f11781c5 | 4985 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 4986 | fi |
a946372e | 4987 | |
f11781c5 AK |
4988 | done |
4989 | ||
4990 | for ac_header in termios.h sys/statvfs.h | |
4991 | do : | |
4992 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4993 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4994 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
4995 | cat >>confdefs.h <<_ACEOF |
4996 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4997 | _ACEOF | |
4998 | ||
a946372e AK |
4999 | fi |
5000 | ||
5001 | done | |
5002 | ||
a946372e | 5003 | |
f11781c5 AK |
5004 | ################################################################################ |
5005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
5006 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
5007 | if test "${ac_cv_c_const+set}" = set; then : | |
a946372e | 5008 | $as_echo_n "(cached) " >&6 |
a946372e | 5009 | else |
f11781c5 | 5010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5011 | /* end confdefs.h. */ |
a946372e | 5012 | |
f11781c5 AK |
5013 | int |
5014 | main () | |
5015 | { | |
5016 | /* FIXME: Include the comments suggested by Paul. */ | |
5017 | #ifndef __cplusplus | |
5018 | /* Ultrix mips cc rejects this. */ | |
5019 | typedef int charset[2]; | |
5020 | const charset cs; | |
5021 | /* SunOS 4.1.1 cc rejects this. */ | |
5022 | char const *const *pcpcc; | |
5023 | char **ppc; | |
5024 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5025 | struct point {int x, y;}; | |
5026 | static struct point const zero = {0,0}; | |
5027 | /* AIX XL C 1.02.0.0 rejects this. | |
5028 | It does not let you subtract one const X* pointer from another in | |
5029 | an arm of an if-expression whose if-part is not a constant | |
5030 | expression */ | |
5031 | const char *g = "string"; | |
5032 | pcpcc = &g + (g ? g-g : 0); | |
5033 | /* HPUX 7.0 cc rejects these. */ | |
5034 | ++pcpcc; | |
5035 | ppc = (char**) pcpcc; | |
5036 | pcpcc = (char const *const *) ppc; | |
5037 | { /* SCO 3.2v4 cc rejects this. */ | |
5038 | char *t; | |
5039 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
a946372e | 5040 | |
f11781c5 AK |
5041 | *t++ = 0; |
5042 | if (s) return 0; | |
5043 | } | |
5044 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5045 | int x[] = {25, 17}; | |
5046 | const int *foo = &x[0]; | |
5047 | ++foo; | |
5048 | } | |
5049 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5050 | typedef const int *iptr; | |
5051 | iptr p = 0; | |
5052 | ++p; | |
5053 | } | |
5054 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5055 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5056 | struct s { int j; const int *ap[3]; }; | |
5057 | struct s *b; b->j = 5; | |
5058 | } | |
5059 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5060 | const int foo = 10; | |
5061 | if (!foo) return 0; | |
5062 | } | |
5063 | return !cs[0] && !zero.x; | |
5064 | #endif | |
a946372e | 5065 | |
f11781c5 AK |
5066 | ; |
5067 | return 0; | |
5068 | } | |
a946372e | 5069 | _ACEOF |
f11781c5 AK |
5070 | if ac_fn_c_try_compile "$LINENO"; then : |
5071 | ac_cv_c_const=yes | |
a946372e | 5072 | else |
f11781c5 AK |
5073 | ac_cv_c_const=no |
5074 | fi | |
5075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a946372e | 5076 | fi |
f11781c5 AK |
5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5078 | $as_echo "$ac_cv_c_const" >&6; } | |
5079 | if test $ac_cv_c_const = no; then | |
a946372e | 5080 | |
f11781c5 | 5081 | $as_echo "#define const /**/" >>confdefs.h |
a946372e | 5082 | |
f11781c5 | 5083 | fi |
a946372e | 5084 | |
f11781c5 AK |
5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
5086 | $as_echo_n "checking for inline... " >&6; } | |
5087 | if test "${ac_cv_c_inline+set}" = set; then : | |
a946372e AK |
5088 | $as_echo_n "(cached) " >&6 |
5089 | else | |
f11781c5 AK |
5090 | ac_cv_c_inline=no |
5091 | for ac_kw in inline __inline__ __inline; do | |
5092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5093 | /* end confdefs.h. */ | |
5094 | #ifndef __cplusplus | |
5095 | typedef int foo_t; | |
5096 | static $ac_kw foo_t static_foo () {return 0; } | |
5097 | $ac_kw foo_t foo () {return 0; } | |
5098 | #endif | |
5099 | ||
5100 | _ACEOF | |
5101 | if ac_fn_c_try_compile "$LINENO"; then : | |
5102 | ac_cv_c_inline=$ac_kw | |
a946372e | 5103 | fi |
f11781c5 AK |
5104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5105 | test "$ac_cv_c_inline" != no && break | |
5106 | done | |
a946372e AK |
5107 | |
5108 | fi | |
f11781c5 AK |
5109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
5110 | $as_echo "$ac_cv_c_inline" >&6; } | |
5111 | ||
5112 | case $ac_cv_c_inline in | |
5113 | inline | yes) ;; | |
5114 | *) | |
5115 | case $ac_cv_c_inline in | |
5116 | no) ac_val=;; | |
5117 | *) ac_val=$ac_cv_c_inline;; | |
5118 | esac | |
5119 | cat >>confdefs.h <<_ACEOF | |
5120 | #ifndef __cplusplus | |
5121 | #define inline $ac_val | |
5122 | #endif | |
5123 | _ACEOF | |
5124 | ;; | |
5125 | esac | |
5126 | ||
5127 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5128 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5129 | ||
5130 | cat >>confdefs.h <<_ACEOF | |
5131 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
a946372e AK |
5132 | _ACEOF |
5133 | ||
f11781c5 | 5134 | |
a946372e AK |
5135 | fi |
5136 | ||
f11781c5 AK |
5137 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
5138 | if test "x$ac_cv_type_off_t" = x""yes; then : | |
a946372e | 5139 | |
a946372e | 5140 | else |
f11781c5 AK |
5141 | |
5142 | cat >>confdefs.h <<_ACEOF | |
5143 | #define off_t long int | |
5144 | _ACEOF | |
5145 | ||
a946372e AK |
5146 | fi |
5147 | ||
f11781c5 AK |
5148 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
5149 | if test "x$ac_cv_type_pid_t" = x""yes; then : | |
a946372e | 5150 | |
a946372e | 5151 | else |
f11781c5 AK |
5152 | |
5153 | cat >>confdefs.h <<_ACEOF | |
5154 | #define pid_t int | |
5155 | _ACEOF | |
5156 | ||
5157 | fi | |
5158 | ||
5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
5160 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5161 | if test "${ac_cv_type_signal+set}" = set; then : | |
5162 | $as_echo_n "(cached) " >&6 | |
a946372e | 5163 | else |
f11781c5 AK |
5164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5165 | /* end confdefs.h. */ | |
5166 | #include <sys/types.h> | |
5167 | #include <signal.h> | |
5168 | ||
5169 | int | |
5170 | main () | |
5171 | { | |
5172 | return *(signal (0, 0)) (0) == 1; | |
5173 | ; | |
5174 | return 0; | |
5175 | } | |
5176 | _ACEOF | |
5177 | if ac_fn_c_try_compile "$LINENO"; then : | |
5178 | ac_cv_type_signal=int | |
5179 | else | |
5180 | ac_cv_type_signal=void | |
a946372e | 5181 | fi |
f11781c5 | 5182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a946372e | 5183 | fi |
f11781c5 AK |
5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
5185 | $as_echo "$ac_cv_type_signal" >&6; } | |
a946372e | 5186 | |
f11781c5 AK |
5187 | cat >>confdefs.h <<_ACEOF |
5188 | #define RETSIGTYPE $ac_cv_type_signal | |
5189 | _ACEOF | |
a946372e AK |
5190 | |
5191 | ||
f11781c5 AK |
5192 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
5193 | if test "x$ac_cv_type_size_t" = x""yes; then : | |
a946372e | 5194 | |
a946372e | 5195 | else |
a946372e | 5196 | |
f11781c5 AK |
5197 | cat >>confdefs.h <<_ACEOF |
5198 | #define size_t unsigned int | |
5199 | _ACEOF | |
a946372e | 5200 | |
a946372e | 5201 | fi |
f11781c5 AK |
5202 | |
5203 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
5204 | if test "x$ac_cv_type_mode_t" = x""yes; then : | |
5205 | ||
a946372e | 5206 | else |
f11781c5 AK |
5207 | |
5208 | cat >>confdefs.h <<_ACEOF | |
5209 | #define mode_t int | |
a946372e | 5210 | _ACEOF |
a946372e | 5211 | |
a946372e AK |
5212 | fi |
5213 | ||
f11781c5 AK |
5214 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
5215 | case $ac_cv_c_int8_t in #( | |
5216 | no|yes) ;; #( | |
5217 | *) | |
a946372e | 5218 | |
f11781c5 AK |
5219 | cat >>confdefs.h <<_ACEOF |
5220 | #define int8_t $ac_cv_c_int8_t | |
a946372e | 5221 | _ACEOF |
f11781c5 | 5222 | ;; |
a946372e | 5223 | esac |
a946372e | 5224 | |
f11781c5 AK |
5225 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
5226 | case $ac_cv_c_int16_t in #( | |
5227 | no|yes) ;; #( | |
5228 | *) | |
a946372e | 5229 | |
f11781c5 AK |
5230 | cat >>confdefs.h <<_ACEOF |
5231 | #define int16_t $ac_cv_c_int16_t | |
5232 | _ACEOF | |
5233 | ;; | |
5234 | esac | |
a946372e | 5235 | |
f11781c5 AK |
5236 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
5237 | case $ac_cv_c_int32_t in #( | |
5238 | no|yes) ;; #( | |
5239 | *) | |
a946372e | 5240 | |
f11781c5 AK |
5241 | cat >>confdefs.h <<_ACEOF |
5242 | #define int32_t $ac_cv_c_int32_t | |
5243 | _ACEOF | |
5244 | ;; | |
a946372e | 5245 | esac |
a946372e | 5246 | |
f11781c5 AK |
5247 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
5248 | case $ac_cv_c_int64_t in #( | |
5249 | no|yes) ;; #( | |
5250 | *) | |
5251 | ||
5252 | cat >>confdefs.h <<_ACEOF | |
5253 | #define int64_t $ac_cv_c_int64_t | |
a946372e | 5254 | _ACEOF |
f11781c5 AK |
5255 | ;; |
5256 | esac | |
5257 | ||
5258 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | |
5259 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | |
a946372e AK |
5260 | |
5261 | else | |
a946372e | 5262 | |
f11781c5 AK |
5263 | cat >>confdefs.h <<_ACEOF |
5264 | #define ssize_t int | |
5265 | _ACEOF | |
a946372e | 5266 | |
f11781c5 | 5267 | fi |
a946372e | 5268 | |
f11781c5 AK |
5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
5270 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5271 | if test "${ac_cv_type_uid_t+set}" = set; then : | |
a946372e | 5272 | $as_echo_n "(cached) " >&6 |
a946372e | 5273 | else |
f11781c5 | 5274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5275 | /* end confdefs.h. */ |
f11781c5 AK |
5276 | #include <sys/types.h> |
5277 | ||
a946372e | 5278 | _ACEOF |
f11781c5 AK |
5279 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5280 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5281 | ac_cv_type_uid_t=yes | |
a946372e | 5282 | else |
f11781c5 AK |
5283 | ac_cv_type_uid_t=no |
5284 | fi | |
5285 | rm -f conftest* | |
a946372e | 5286 | |
a946372e | 5287 | fi |
f11781c5 AK |
5288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
5289 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5290 | if test $ac_cv_type_uid_t = no; then | |
a946372e | 5291 | |
f11781c5 | 5292 | $as_echo "#define uid_t int" >>confdefs.h |
a946372e | 5293 | |
f11781c5 AK |
5294 | |
5295 | $as_echo "#define gid_t int" >>confdefs.h | |
5296 | ||
5297 | fi | |
5298 | ||
5299 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | |
5300 | case $ac_cv_c_uint8_t in #( | |
5301 | no|yes) ;; #( | |
5302 | *) | |
5303 | ||
5304 | $as_echo "#define _UINT8_T 1" >>confdefs.h | |
5305 | ||
5306 | ||
5307 | cat >>confdefs.h <<_ACEOF | |
5308 | #define uint8_t $ac_cv_c_uint8_t | |
a946372e | 5309 | _ACEOF |
f11781c5 AK |
5310 | ;; |
5311 | esac | |
5312 | ||
5313 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | |
5314 | case $ac_cv_c_uint16_t in #( | |
5315 | no|yes) ;; #( | |
5316 | *) | |
5317 | ||
5318 | ||
5319 | cat >>confdefs.h <<_ACEOF | |
5320 | #define uint16_t $ac_cv_c_uint16_t | |
a946372e | 5321 | _ACEOF |
f11781c5 AK |
5322 | ;; |
5323 | esac | |
a946372e | 5324 | |
f11781c5 AK |
5325 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
5326 | case $ac_cv_c_uint32_t in #( | |
5327 | no|yes) ;; #( | |
5328 | *) | |
a946372e | 5329 | |
f11781c5 | 5330 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
a946372e | 5331 | |
a946372e | 5332 | |
f11781c5 AK |
5333 | cat >>confdefs.h <<_ACEOF |
5334 | #define uint32_t $ac_cv_c_uint32_t | |
5335 | _ACEOF | |
5336 | ;; | |
5337 | esac | |
5338 | ||
5339 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | |
5340 | case $ac_cv_c_uint64_t in #( | |
5341 | no|yes) ;; #( | |
5342 | *) | |
5343 | ||
5344 | $as_echo "#define _UINT64_T 1" >>confdefs.h | |
5345 | ||
5346 | ||
5347 | cat >>confdefs.h <<_ACEOF | |
5348 | #define uint64_t $ac_cv_c_uint64_t | |
5349 | _ACEOF | |
5350 | ;; | |
5351 | esac | |
5352 | ||
5353 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5354 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5355 | ||
5356 | cat >>confdefs.h <<_ACEOF | |
5357 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5358 | _ACEOF | |
5359 | ||
5360 | ||
5361 | fi | |
5362 | ||
5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
5364 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
5365 | if test "${ac_cv_struct_tm+set}" = set; then : | |
a946372e AK |
5366 | $as_echo_n "(cached) " >&6 |
5367 | else | |
f11781c5 AK |
5368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5369 | /* end confdefs.h. */ | |
5370 | #include <sys/types.h> | |
5371 | #include <time.h> | |
5372 | ||
5373 | int | |
5374 | main () | |
5375 | { | |
5376 | struct tm tm; | |
5377 | int *p = &tm.tm_sec; | |
5378 | return !p; | |
5379 | ; | |
5380 | return 0; | |
5381 | } | |
5382 | _ACEOF | |
5383 | if ac_fn_c_try_compile "$LINENO"; then : | |
5384 | ac_cv_struct_tm=time.h | |
5385 | else | |
5386 | ac_cv_struct_tm=sys/time.h | |
a946372e | 5387 | fi |
f11781c5 AK |
5388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5389 | fi | |
5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5391 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5392 | if test $ac_cv_struct_tm = sys/time.h; then | |
5393 | ||
5394 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
a946372e AK |
5395 | |
5396 | fi | |
f11781c5 AK |
5397 | |
5398 | ||
5399 | ################################################################################ | |
5400 | for ac_func in ftruncate gethostname getpagesize \ | |
5401 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
5402 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
5403 | strstr strtol strtoul uname | |
5404 | do : | |
5405 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5406 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5407 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5408 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 5409 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a946372e AK |
5410 | _ACEOF |
5411 | ||
5412 | else | |
f11781c5 | 5413 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5414 | fi |
a946372e AK |
5415 | done |
5416 | ||
f11781c5 AK |
5417 | for ac_func in siginterrupt |
5418 | do : | |
5419 | ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt" | |
5420 | if test "x$ac_cv_func_siginterrupt" = x""yes; then : | |
5421 | cat >>confdefs.h <<_ACEOF | |
5422 | #define HAVE_SIGINTERRUPT 1 | |
5423 | _ACEOF | |
a946372e | 5424 | |
f11781c5 AK |
5425 | fi |
5426 | done | |
a946372e | 5427 | |
f11781c5 AK |
5428 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5429 | # for constant arguments. Useless! | |
5430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
5431 | $as_echo_n "checking for working alloca.h... " >&6; } | |
5432 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
5433 | $as_echo_n "(cached) " >&6 | |
a946372e | 5434 | else |
f11781c5 AK |
5435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5436 | /* end confdefs.h. */ | |
5437 | #include <alloca.h> | |
5438 | int | |
5439 | main () | |
5440 | { | |
5441 | char *p = (char *) alloca (2 * sizeof (int)); | |
5442 | if (p) return 0; | |
5443 | ; | |
5444 | return 0; | |
5445 | } | |
5446 | _ACEOF | |
5447 | if ac_fn_c_try_link "$LINENO"; then : | |
5448 | ac_cv_working_alloca_h=yes | |
a946372e | 5449 | else |
f11781c5 | 5450 | ac_cv_working_alloca_h=no |
a946372e | 5451 | fi |
f11781c5 AK |
5452 | rm -f core conftest.err conftest.$ac_objext \ |
5453 | conftest$ac_exeext conftest.$ac_ext | |
a946372e | 5454 | fi |
f11781c5 AK |
5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
5456 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
5457 | if test $ac_cv_working_alloca_h = yes; then | |
a946372e | 5458 | |
f11781c5 | 5459 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
a946372e | 5460 | |
a946372e | 5461 | fi |
a946372e | 5462 | |
f11781c5 AK |
5463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
5464 | $as_echo_n "checking for alloca... " >&6; } | |
5465 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
a946372e | 5466 | $as_echo_n "(cached) " >&6 |
a946372e | 5467 | else |
f11781c5 | 5468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5469 | /* end confdefs.h. */ |
f11781c5 AK |
5470 | #ifdef __GNUC__ |
5471 | # define alloca __builtin_alloca | |
5472 | #else | |
5473 | # ifdef _MSC_VER | |
5474 | # include <malloc.h> | |
5475 | # define alloca _alloca | |
5476 | # else | |
5477 | # ifdef HAVE_ALLOCA_H | |
5478 | # include <alloca.h> | |
5479 | # else | |
5480 | # ifdef _AIX | |
5481 | #pragma alloca | |
5482 | # else | |
5483 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5484 | char *alloca (); | |
5485 | # endif | |
5486 | # endif | |
5487 | # endif | |
5488 | # endif | |
5489 | #endif | |
a946372e | 5490 | |
f11781c5 AK |
5491 | int |
5492 | main () | |
5493 | { | |
5494 | char *p = (char *) alloca (1); | |
5495 | if (p) return 0; | |
5496 | ; | |
5497 | return 0; | |
5498 | } | |
a946372e | 5499 | _ACEOF |
f11781c5 AK |
5500 | if ac_fn_c_try_link "$LINENO"; then : |
5501 | ac_cv_func_alloca_works=yes | |
a946372e | 5502 | else |
f11781c5 | 5503 | ac_cv_func_alloca_works=no |
a946372e | 5504 | fi |
f11781c5 AK |
5505 | rm -f core conftest.err conftest.$ac_objext \ |
5506 | conftest$ac_exeext conftest.$ac_ext | |
5507 | fi | |
5508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
5509 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
a946372e | 5510 | |
f11781c5 | 5511 | if test $ac_cv_func_alloca_works = yes; then |
a946372e | 5512 | |
f11781c5 | 5513 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
a946372e | 5514 | |
a946372e | 5515 | else |
f11781c5 AK |
5516 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5517 | # that cause trouble. Some versions do not even contain alloca or | |
5518 | # contain a buggy version. If you still want to use their alloca, | |
5519 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
a946372e | 5520 | |
f11781c5 | 5521 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
a946372e | 5522 | |
f11781c5 | 5523 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
a946372e | 5524 | |
a946372e | 5525 | |
f11781c5 AK |
5526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
5527 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
5528 | if test "${ac_cv_os_cray+set}" = set; then : | |
a946372e | 5529 | $as_echo_n "(cached) " >&6 |
a946372e | 5530 | else |
f11781c5 | 5531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5532 | /* end confdefs.h. */ |
f11781c5 AK |
5533 | #if defined CRAY && ! defined CRAY2 |
5534 | webecray | |
5535 | #else | |
5536 | wenotbecray | |
5537 | #endif | |
5538 | ||
a946372e | 5539 | _ACEOF |
f11781c5 AK |
5540 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5541 | $EGREP "webecray" >/dev/null 2>&1; then : | |
5542 | ac_cv_os_cray=yes | |
a946372e | 5543 | else |
f11781c5 | 5544 | ac_cv_os_cray=no |
a946372e | 5545 | fi |
f11781c5 | 5546 | rm -f conftest* |
a946372e | 5547 | |
f11781c5 AK |
5548 | fi |
5549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
5550 | $as_echo "$ac_cv_os_cray" >&6; } | |
5551 | if test $ac_cv_os_cray = yes; then | |
5552 | for ac_func in _getb67 GETB67 getb67; do | |
5553 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5554 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5555 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5556 | |
f11781c5 AK |
5557 | cat >>confdefs.h <<_ACEOF |
5558 | #define CRAY_STACKSEG_END $ac_func | |
a946372e | 5559 | _ACEOF |
a946372e | 5560 | |
f11781c5 | 5561 | break |
a946372e AK |
5562 | fi |
5563 | ||
f11781c5 AK |
5564 | done |
5565 | fi | |
a946372e | 5566 | |
f11781c5 AK |
5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
5568 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
5569 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
a946372e AK |
5570 | $as_echo_n "(cached) " >&6 |
5571 | else | |
f11781c5 AK |
5572 | if test "$cross_compiling" = yes; then : |
5573 | ac_cv_c_stack_direction=0 | |
5574 | else | |
5575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5576 | /* end confdefs.h. */ | |
5577 | $ac_includes_default | |
5578 | int | |
5579 | find_stack_direction () | |
5580 | { | |
5581 | static char *addr = 0; | |
5582 | auto char dummy; | |
5583 | if (addr == 0) | |
5584 | { | |
5585 | addr = &dummy; | |
5586 | return find_stack_direction (); | |
5587 | } | |
5588 | else | |
5589 | return (&dummy > addr) ? 1 : -1; | |
5590 | } | |
5591 | ||
5592 | int | |
5593 | main () | |
5594 | { | |
5595 | return find_stack_direction () < 0; | |
5596 | } | |
5597 | _ACEOF | |
5598 | if ac_fn_c_try_run "$LINENO"; then : | |
5599 | ac_cv_c_stack_direction=1 | |
5600 | else | |
5601 | ac_cv_c_stack_direction=-1 | |
5602 | fi | |
5603 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5604 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5605 | fi |
a946372e AK |
5606 | |
5607 | fi | |
f11781c5 AK |
5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
5609 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
5610 | cat >>confdefs.h <<_ACEOF | |
5611 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
a946372e AK |
5612 | _ACEOF |
5613 | ||
f11781c5 | 5614 | |
a946372e AK |
5615 | fi |
5616 | ||
f11781c5 AK |
5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
5618 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
5619 | if test "${ac_cv_func_closedir_void+set}" = set; then : | |
5620 | $as_echo_n "(cached) " >&6 | |
5621 | else | |
5622 | if test "$cross_compiling" = yes; then : | |
5623 | ac_cv_func_closedir_void=yes | |
5624 | else | |
5625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5626 | /* end confdefs.h. */ | |
5627 | $ac_includes_default | |
5628 | #include <$ac_header_dirent> | |
5629 | #ifndef __cplusplus | |
5630 | int closedir (); | |
5631 | #endif | |
a946372e | 5632 | |
f11781c5 AK |
5633 | int |
5634 | main () | |
5635 | { | |
5636 | return closedir (opendir (".")) != 0; | |
5637 | ; | |
5638 | return 0; | |
5639 | } | |
5640 | _ACEOF | |
5641 | if ac_fn_c_try_run "$LINENO"; then : | |
5642 | ac_cv_func_closedir_void=no | |
a946372e | 5643 | else |
f11781c5 | 5644 | ac_cv_func_closedir_void=yes |
a946372e | 5645 | fi |
f11781c5 AK |
5646 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5647 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5648 | fi |
5649 | ||
f11781c5 AK |
5650 | fi |
5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 | |
5652 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
5653 | if test $ac_cv_func_closedir_void = yes; then | |
a946372e | 5654 | |
f11781c5 | 5655 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
a946372e | 5656 | |
a946372e AK |
5657 | fi |
5658 | ||
f11781c5 AK |
5659 | for ac_header in unistd.h |
5660 | do : | |
5661 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
5662 | if test "x$ac_cv_header_unistd_h" = x""yes; then : | |
5663 | cat >>confdefs.h <<_ACEOF | |
5664 | #define HAVE_UNISTD_H 1 | |
5665 | _ACEOF | |
a946372e | 5666 | |
f11781c5 | 5667 | fi |
a946372e | 5668 | |
f11781c5 | 5669 | done |
a946372e | 5670 | |
f11781c5 AK |
5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 |
5672 | $as_echo_n "checking for working chown... " >&6; } | |
5673 | if test "${ac_cv_func_chown_works+set}" = set; then : | |
5674 | $as_echo_n "(cached) " >&6 | |
a946372e | 5675 | else |
f11781c5 AK |
5676 | if test "$cross_compiling" = yes; then : |
5677 | ac_cv_func_chown_works=no | |
a946372e | 5678 | else |
f11781c5 AK |
5679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5680 | /* end confdefs.h. */ | |
5681 | $ac_includes_default | |
5682 | #include <fcntl.h> | |
a946372e | 5683 | |
f11781c5 AK |
5684 | int |
5685 | main () | |
5686 | { | |
5687 | char *f = "conftest.chown"; | |
5688 | struct stat before, after; | |
a946372e | 5689 | |
f11781c5 AK |
5690 | if (creat (f, 0600) < 0) |
5691 | return 1; | |
5692 | if (stat (f, &before) < 0) | |
5693 | return 1; | |
5694 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
5695 | return 1; | |
5696 | if (stat (f, &after) < 0) | |
5697 | return 1; | |
5698 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
a946372e | 5699 | |
f11781c5 AK |
5700 | ; |
5701 | return 0; | |
5702 | } | |
5703 | _ACEOF | |
5704 | if ac_fn_c_try_run "$LINENO"; then : | |
5705 | ac_cv_func_chown_works=yes | |
a946372e | 5706 | else |
f11781c5 | 5707 | ac_cv_func_chown_works=no |
a946372e | 5708 | fi |
f11781c5 AK |
5709 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5710 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5711 | fi |
5712 | ||
f11781c5 | 5713 | rm -f conftest.chown |
a946372e | 5714 | |
f11781c5 AK |
5715 | fi |
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 | |
5717 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
5718 | if test $ac_cv_func_chown_works = yes; then | |
a946372e | 5719 | |
f11781c5 | 5720 | $as_echo "#define HAVE_CHOWN 1" >>confdefs.h |
a946372e | 5721 | |
a946372e | 5722 | fi |
a946372e | 5723 | |
f11781c5 AK |
5724 | for ac_header in vfork.h |
5725 | do : | |
5726 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
5727 | if test "x$ac_cv_header_vfork_h" = x""yes; then : | |
5728 | cat >>confdefs.h <<_ACEOF | |
5729 | #define HAVE_VFORK_H 1 | |
5730 | _ACEOF | |
a946372e | 5731 | |
f11781c5 | 5732 | fi |
a946372e | 5733 | |
f11781c5 | 5734 | done |
a946372e | 5735 | |
f11781c5 AK |
5736 | for ac_func in fork vfork |
5737 | do : | |
5738 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5739 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5740 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5741 | cat >>confdefs.h <<_ACEOF | |
5742 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5743 | _ACEOF | |
a946372e | 5744 | |
f11781c5 AK |
5745 | fi |
5746 | done | |
a946372e | 5747 | |
f11781c5 AK |
5748 | if test "x$ac_cv_func_fork" = xyes; then |
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
5750 | $as_echo_n "checking for working fork... " >&6; } | |
5751 | if test "${ac_cv_func_fork_works+set}" = set; then : | |
5752 | $as_echo_n "(cached) " >&6 | |
5753 | else | |
5754 | if test "$cross_compiling" = yes; then : | |
5755 | ac_cv_func_fork_works=cross | |
5756 | else | |
5757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5758 | /* end confdefs.h. */ | |
5759 | $ac_includes_default | |
5760 | int | |
5761 | main () | |
5762 | { | |
a946372e | 5763 | |
f11781c5 AK |
5764 | /* By Ruediger Kuhlmann. */ |
5765 | return fork () < 0; | |
a946372e | 5766 | |
f11781c5 AK |
5767 | ; |
5768 | return 0; | |
5769 | } | |
5770 | _ACEOF | |
5771 | if ac_fn_c_try_run "$LINENO"; then : | |
5772 | ac_cv_func_fork_works=yes | |
a946372e | 5773 | else |
f11781c5 AK |
5774 | ac_cv_func_fork_works=no |
5775 | fi | |
5776 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5777 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5778 | fi |
a946372e | 5779 | |
f11781c5 AK |
5780 | fi |
5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
5782 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
5783 | ||
a946372e | 5784 | else |
f11781c5 | 5785 | ac_cv_func_fork_works=$ac_cv_func_fork |
a946372e | 5786 | fi |
f11781c5 AK |
5787 | if test "x$ac_cv_func_fork_works" = xcross; then |
5788 | case $host in | |
5789 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5790 | # Override, as these systems have only a dummy fork() stub | |
5791 | ac_cv_func_fork_works=no | |
5792 | ;; | |
5793 | *) | |
5794 | ac_cv_func_fork_works=yes | |
5795 | ;; | |
5796 | esac | |
5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5798 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
a946372e | 5799 | fi |
f11781c5 AK |
5800 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
5801 | if test "x$ac_cv_func_vfork" = xyes; then | |
5802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
5803 | $as_echo_n "checking for working vfork... " >&6; } | |
5804 | if test "${ac_cv_func_vfork_works+set}" = set; then : | |
5805 | $as_echo_n "(cached) " >&6 | |
5806 | else | |
5807 | if test "$cross_compiling" = yes; then : | |
5808 | ac_cv_func_vfork_works=cross | |
5809 | else | |
5810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5811 | /* end confdefs.h. */ | |
5812 | /* Thanks to Paul Eggert for this test. */ | |
5813 | $ac_includes_default | |
5814 | #include <sys/wait.h> | |
5815 | #ifdef HAVE_VFORK_H | |
5816 | # include <vfork.h> | |
5817 | #endif | |
5818 | /* On some sparc systems, changes by the child to local and incoming | |
5819 | argument registers are propagated back to the parent. The compiler | |
5820 | is told about this with #include <vfork.h>, but some compilers | |
5821 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5822 | static variable whose address is put into a register that is | |
5823 | clobbered by the vfork. */ | |
5824 | static void | |
5825 | #ifdef __cplusplus | |
5826 | sparc_address_test (int arg) | |
5827 | # else | |
5828 | sparc_address_test (arg) int arg; | |
5829 | #endif | |
5830 | { | |
5831 | static pid_t child; | |
5832 | if (!child) { | |
5833 | child = vfork (); | |
5834 | if (child < 0) { | |
5835 | perror ("vfork"); | |
5836 | _exit(2); | |
5837 | } | |
5838 | if (!child) { | |
5839 | arg = getpid(); | |
5840 | write(-1, "", 0); | |
5841 | _exit (arg); | |
5842 | } | |
5843 | } | |
5844 | } | |
a946372e | 5845 | |
f11781c5 AK |
5846 | int |
5847 | main () | |
5848 | { | |
5849 | pid_t parent = getpid (); | |
5850 | pid_t child; | |
a946372e | 5851 | |
f11781c5 | 5852 | sparc_address_test (0); |
a946372e | 5853 | |
f11781c5 | 5854 | child = vfork (); |
a946372e | 5855 | |
f11781c5 AK |
5856 | if (child == 0) { |
5857 | /* Here is another test for sparc vfork register problems. This | |
5858 | test uses lots of local variables, at least as many local | |
5859 | variables as main has allocated so far including compiler | |
5860 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5861 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5862 | reuse the register of parent for one of the local variables, | |
5863 | since it will think that parent can't possibly be used any more | |
5864 | in this routine. Assigning to the local variable will thus | |
5865 | munge parent in the parent process. */ | |
5866 | pid_t | |
5867 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5868 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5869 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5870 | use the same hardware register for all 8 local variables. */ | |
5871 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5872 | || p != p5 || p != p6 || p != p7) | |
5873 | _exit(1); | |
a946372e | 5874 | |
f11781c5 AK |
5875 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
5876 | from child file descriptors. If the child closes a descriptor | |
5877 | before it execs or exits, this munges the parent's descriptor | |
5878 | as well. Test for this by closing stdout in the child. */ | |
5879 | _exit(close(fileno(stdout)) != 0); | |
5880 | } else { | |
5881 | int status; | |
5882 | struct stat st; | |
5883 | ||
5884 | while (wait(&status) != child) | |
5885 | ; | |
5886 | return ( | |
5887 | /* Was there some problem with vforking? */ | |
5888 | child < 0 | |
5889 | ||
5890 | /* Did the child fail? (This shouldn't happen.) */ | |
5891 | || status | |
5892 | ||
5893 | /* Did the vfork/compiler bug occur? */ | |
5894 | || parent != getpid() | |
5895 | ||
5896 | /* Did the file descriptor bug occur? */ | |
5897 | || fstat(fileno(stdout), &st) != 0 | |
5898 | ); | |
5899 | } | |
5900 | } | |
5901 | _ACEOF | |
5902 | if ac_fn_c_try_run "$LINENO"; then : | |
5903 | ac_cv_func_vfork_works=yes | |
a946372e | 5904 | else |
f11781c5 | 5905 | ac_cv_func_vfork_works=no |
a946372e | 5906 | fi |
f11781c5 AK |
5907 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5908 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5909 | fi |
f11781c5 | 5910 | |
a946372e | 5911 | fi |
f11781c5 AK |
5912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
5913 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
a946372e | 5914 | |
f11781c5 AK |
5915 | fi; |
5916 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5917 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
5919 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5920 | fi | |
a946372e | 5921 | |
f11781c5 | 5922 | if test "x$ac_cv_func_vfork_works" = xyes; then |
a946372e | 5923 | |
f11781c5 | 5924 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
a946372e | 5925 | |
a946372e | 5926 | else |
a946372e | 5927 | |
f11781c5 AK |
5928 | $as_echo "#define vfork fork" >>confdefs.h |
5929 | ||
a946372e | 5930 | fi |
f11781c5 | 5931 | if test "x$ac_cv_func_fork_works" = xyes; then |
a946372e | 5932 | |
f11781c5 | 5933 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
a946372e | 5934 | |
a946372e | 5935 | fi |
f11781c5 AK |
5936 | |
5937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 | |
5938 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } | |
5939 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : | |
5940 | $as_echo_n "(cached) " >&6 | |
a946372e | 5941 | else |
f11781c5 AK |
5942 | rm -f conftest.sym conftest.file |
5943 | echo >conftest.file | |
5944 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5945 | if test "$cross_compiling" = yes; then : | |
5946 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 5947 | else |
f11781c5 | 5948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5949 | /* end confdefs.h. */ |
f11781c5 AK |
5950 | $ac_includes_default |
5951 | int | |
5952 | main () | |
5953 | { | |
5954 | struct stat sbuf; | |
5955 | /* Linux will dereference the symlink and fail, as required by POSIX. | |
5956 | That is better in the sense that it means we will not | |
5957 | have to compile and use the lstat wrapper. */ | |
5958 | return lstat ("conftest.sym/", &sbuf) == 0; | |
5959 | ; | |
5960 | return 0; | |
5961 | } | |
a946372e | 5962 | _ACEOF |
f11781c5 AK |
5963 | if ac_fn_c_try_run "$LINENO"; then : |
5964 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
a946372e | 5965 | else |
f11781c5 | 5966 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
a946372e | 5967 | fi |
f11781c5 AK |
5968 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5969 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5970 | fi |
a946372e | 5971 | |
a946372e | 5972 | else |
f11781c5 AK |
5973 | # If the `ln -s' command failed, then we probably don't even |
5974 | # have an lstat function. | |
5975 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 5976 | fi |
f11781c5 | 5977 | rm -f conftest.sym conftest.file |
a946372e | 5978 | |
f11781c5 AK |
5979 | fi |
5980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
5981 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
a946372e | 5982 | |
f11781c5 | 5983 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
a946372e | 5984 | |
f11781c5 AK |
5985 | cat >>confdefs.h <<_ACEOF |
5986 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
5987 | _ACEOF | |
a946372e | 5988 | |
a946372e | 5989 | |
f11781c5 AK |
5990 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
5991 | case " $LIBOBJS " in | |
5992 | *" lstat.$ac_objext "* ) ;; | |
5993 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
5994 | ;; | |
5995 | esac | |
a946372e | 5996 | |
f11781c5 | 5997 | fi |
a946372e | 5998 | |
f11781c5 AK |
5999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 |
6000 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
6001 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then : | |
6002 | $as_echo_n "(cached) " >&6 | |
a946372e | 6003 | else |
f11781c5 AK |
6004 | if test "$cross_compiling" = yes; then : |
6005 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6006 | else |
f11781c5 AK |
6007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6008 | /* end confdefs.h. */ | |
6009 | $ac_includes_default | |
6010 | int | |
6011 | main () | |
6012 | { | |
6013 | struct stat sbuf; | |
6014 | return lstat ("", &sbuf) == 0; | |
6015 | ; | |
6016 | return 0; | |
6017 | } | |
6018 | _ACEOF | |
6019 | if ac_fn_c_try_run "$LINENO"; then : | |
6020 | ac_cv_func_lstat_empty_string_bug=no | |
6021 | else | |
6022 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6023 | fi |
f11781c5 AK |
6024 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6025 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6026 | fi |
6027 | ||
f11781c5 AK |
6028 | fi |
6029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6030 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
6031 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
6032 | case " $LIBOBJS " in | |
6033 | *" lstat.$ac_objext "* ) ;; | |
6034 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6035 | ;; | |
6036 | esac | |
a946372e AK |
6037 | |
6038 | ||
f11781c5 AK |
6039 | cat >>confdefs.h <<_ACEOF |
6040 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6041 | _ACEOF | |
a946372e | 6042 | |
a946372e | 6043 | fi |
a946372e | 6044 | |
f11781c5 AK |
6045 | for ac_header in stdlib.h |
6046 | do : | |
6047 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6048 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6049 | cat >>confdefs.h <<_ACEOF | |
6050 | #define HAVE_STDLIB_H 1 | |
6051 | _ACEOF | |
6052 | ||
a946372e AK |
6053 | fi |
6054 | ||
f11781c5 | 6055 | done |
a946372e | 6056 | |
f11781c5 AK |
6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
6058 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
6059 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : | |
6060 | $as_echo_n "(cached) " >&6 | |
6061 | else | |
6062 | if test "$cross_compiling" = yes; then : | |
6063 | ac_cv_func_malloc_0_nonnull=no | |
6064 | else | |
6065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6066 | /* end confdefs.h. */ | |
6067 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
6068 | # include <stdlib.h> | |
6069 | #else | |
6070 | char *malloc (); | |
6071 | #endif | |
a946372e | 6072 | |
f11781c5 AK |
6073 | int |
6074 | main () | |
6075 | { | |
6076 | return ! malloc (0); | |
6077 | ; | |
6078 | return 0; | |
6079 | } | |
6080 | _ACEOF | |
6081 | if ac_fn_c_try_run "$LINENO"; then : | |
6082 | ac_cv_func_malloc_0_nonnull=yes | |
a946372e | 6083 | else |
f11781c5 | 6084 | ac_cv_func_malloc_0_nonnull=no |
a946372e | 6085 | fi |
f11781c5 AK |
6086 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6087 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6088 | fi |
f11781c5 | 6089 | |
a946372e | 6090 | fi |
f11781c5 AK |
6091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
6092 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
6093 | if test $ac_cv_func_malloc_0_nonnull = yes; then : | |
a946372e | 6094 | |
f11781c5 | 6095 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h |
a946372e | 6096 | |
f11781c5 AK |
6097 | else |
6098 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h | |
a946372e | 6099 | |
f11781c5 AK |
6100 | case " $LIBOBJS " in |
6101 | *" malloc.$ac_objext "* ) ;; | |
6102 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | |
6103 | ;; | |
6104 | esac | |
6105 | ||
6106 | ||
6107 | $as_echo "#define malloc rpl_malloc" >>confdefs.h | |
a946372e | 6108 | |
a946372e | 6109 | fi |
a946372e | 6110 | |
a946372e | 6111 | |
f11781c5 AK |
6112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
6113 | $as_echo_n "checking for working memcmp... " >&6; } | |
6114 | if test "${ac_cv_func_memcmp_working+set}" = set; then : | |
a946372e | 6115 | $as_echo_n "(cached) " >&6 |
a946372e | 6116 | else |
f11781c5 AK |
6117 | if test "$cross_compiling" = yes; then : |
6118 | ac_cv_func_memcmp_working=no | |
6119 | else | |
6120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6121 | /* end confdefs.h. */ |
6122 | $ac_includes_default | |
f11781c5 AK |
6123 | int |
6124 | main () | |
6125 | { | |
a946372e | 6126 | |
f11781c5 AK |
6127 | /* Some versions of memcmp are not 8-bit clean. */ |
6128 | char c0 = '\100', c1 = '\200', c2 = '\201'; | |
6129 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6130 | return 1; | |
a946372e | 6131 | |
f11781c5 AK |
6132 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
6133 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6134 | William Lewis provided this test program. */ | |
6135 | { | |
6136 | char foo[21]; | |
6137 | char bar[21]; | |
6138 | int i; | |
6139 | for (i = 0; i < 4; i++) | |
6140 | { | |
6141 | char *a = foo + i; | |
6142 | char *b = bar + i; | |
6143 | strcpy (a, "--------01111111"); | |
6144 | strcpy (b, "--------10000000"); | |
6145 | if (memcmp (a, b, 16) >= 0) | |
6146 | return 1; | |
6147 | } | |
6148 | return 0; | |
6149 | } | |
a946372e | 6150 | |
f11781c5 AK |
6151 | ; |
6152 | return 0; | |
6153 | } | |
a946372e | 6154 | _ACEOF |
f11781c5 AK |
6155 | if ac_fn_c_try_run "$LINENO"; then : |
6156 | ac_cv_func_memcmp_working=yes | |
a946372e | 6157 | else |
f11781c5 AK |
6158 | ac_cv_func_memcmp_working=no |
6159 | fi | |
6160 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6161 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6162 | fi | |
a946372e | 6163 | |
a946372e | 6164 | fi |
f11781c5 AK |
6165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
6166 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
6167 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
6168 | *" memcmp.$ac_objext "* ) ;; | |
6169 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
6170 | ;; | |
6171 | esac | |
a946372e | 6172 | |
a946372e | 6173 | |
a946372e | 6174 | |
a946372e | 6175 | |
f11781c5 AK |
6176 | |
6177 | for ac_header in $ac_header_list | |
6178 | do : | |
6179 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6180 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6181 | " | |
6182 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
6183 | cat >>confdefs.h <<_ACEOF |
6184 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6185 | _ACEOF | |
6186 | ||
a946372e AK |
6187 | fi |
6188 | ||
6189 | done | |
6190 | ||
a946372e | 6191 | |
f11781c5 AK |
6192 | |
6193 | ||
6194 | ||
6195 | ||
6196 | ||
6197 | ||
6198 | for ac_func in getpagesize | |
6199 | do : | |
6200 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
6201 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | |
6202 | cat >>confdefs.h <<_ACEOF | |
6203 | #define HAVE_GETPAGESIZE 1 | |
6204 | _ACEOF | |
6205 | ||
a946372e | 6206 | fi |
f11781c5 AK |
6207 | done |
6208 | ||
6209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
6210 | $as_echo_n "checking for working mmap... " >&6; } | |
6211 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
6212 | $as_echo_n "(cached) " >&6 | |
a946372e | 6213 | else |
f11781c5 AK |
6214 | if test "$cross_compiling" = yes; then : |
6215 | ac_cv_func_mmap_fixed_mapped=no | |
6216 | else | |
6217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6218 | /* end confdefs.h. */ |
6219 | $ac_includes_default | |
f11781c5 AK |
6220 | /* malloc might have been renamed as rpl_malloc. */ |
6221 | #undef malloc | |
6222 | ||
6223 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6224 | Here is a matrix of mmap possibilities: | |
6225 | mmap private not fixed | |
6226 | mmap private fixed at somewhere currently unmapped | |
6227 | mmap private fixed at somewhere already mapped | |
6228 | mmap shared not fixed | |
6229 | mmap shared fixed at somewhere currently unmapped | |
6230 | mmap shared fixed at somewhere already mapped | |
6231 | For private mappings, we should verify that changes cannot be read() | |
6232 | back from the file, nor mmap's back from the file at a different | |
6233 | address. (There have been systems where private was not correctly | |
6234 | implemented like the infamous i386 svr4.0, and systems where the | |
6235 | VM page cache was not coherent with the file system buffer cache | |
6236 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6237 | For shared mappings, we should conversely verify that changes get | |
6238 | propagated back to all the places they're supposed to be. | |
6239 | ||
6240 | Grep wants private fixed already mapped. | |
6241 | The main things grep needs to know about mmap are: | |
6242 | * does it exist and is it safe to write into the mmap'd area | |
6243 | * how to use it (BSD variants) */ | |
6244 | ||
6245 | #include <fcntl.h> | |
6246 | #include <sys/mman.h> | |
6247 | ||
6248 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
6249 | char *malloc (); | |
6250 | #endif | |
6251 | ||
6252 | /* This mess was copied from the GNU getpagesize.h. */ | |
6253 | #ifndef HAVE_GETPAGESIZE | |
6254 | # ifdef _SC_PAGESIZE | |
6255 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6256 | # else /* no _SC_PAGESIZE */ | |
6257 | # ifdef HAVE_SYS_PARAM_H | |
6258 | # include <sys/param.h> | |
6259 | # ifdef EXEC_PAGESIZE | |
6260 | # define getpagesize() EXEC_PAGESIZE | |
6261 | # else /* no EXEC_PAGESIZE */ | |
6262 | # ifdef NBPG | |
6263 | # define getpagesize() NBPG * CLSIZE | |
6264 | # ifndef CLSIZE | |
6265 | # define CLSIZE 1 | |
6266 | # endif /* no CLSIZE */ | |
6267 | # else /* no NBPG */ | |
6268 | # ifdef NBPC | |
6269 | # define getpagesize() NBPC | |
6270 | # else /* no NBPC */ | |
6271 | # ifdef PAGESIZE | |
6272 | # define getpagesize() PAGESIZE | |
6273 | # endif /* PAGESIZE */ | |
6274 | # endif /* no NBPC */ | |
6275 | # endif /* no NBPG */ | |
6276 | # endif /* no EXEC_PAGESIZE */ | |
6277 | # else /* no HAVE_SYS_PARAM_H */ | |
6278 | # define getpagesize() 8192 /* punt totally */ | |
6279 | # endif /* no HAVE_SYS_PARAM_H */ | |
6280 | # endif /* no _SC_PAGESIZE */ | |
6281 | ||
6282 | #endif /* no HAVE_GETPAGESIZE */ | |
6283 | ||
6284 | int | |
6285 | main () | |
6286 | { | |
6287 | char *data, *data2, *data3; | |
6288 | const char *cdata2; | |
6289 | int i, pagesize; | |
6290 | int fd, fd2; | |
6291 | ||
6292 | pagesize = getpagesize (); | |
6293 | ||
6294 | /* First, make a file with some known garbage in it. */ | |
6295 | data = (char *) malloc (pagesize); | |
6296 | if (!data) | |
6297 | return 1; | |
6298 | for (i = 0; i < pagesize; ++i) | |
6299 | *(data + i) = rand (); | |
6300 | umask (0); | |
6301 | fd = creat ("conftest.mmap", 0600); | |
6302 | if (fd < 0) | |
6303 | return 2; | |
6304 | if (write (fd, data, pagesize) != pagesize) | |
6305 | return 3; | |
6306 | close (fd); | |
6307 | ||
6308 | /* Next, check that the tail of a page is zero-filled. File must have | |
6309 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
6310 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
6311 | if (fd2 < 0) | |
6312 | return 4; | |
6313 | cdata2 = ""; | |
6314 | if (write (fd2, cdata2, 1) != 1) | |
6315 | return 5; | |
6316 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
6317 | if (data2 == MAP_FAILED) | |
6318 | return 6; | |
6319 | for (i = 0; i < pagesize; ++i) | |
6320 | if (*(data2 + i)) | |
6321 | return 7; | |
6322 | close (fd2); | |
6323 | if (munmap (data2, pagesize)) | |
6324 | return 8; | |
6325 | ||
6326 | /* Next, try to mmap the file at a fixed address which already has | |
6327 | something else allocated at it. If we can, also make sure that | |
6328 | we see the same garbage. */ | |
6329 | fd = open ("conftest.mmap", O_RDWR); | |
6330 | if (fd < 0) | |
6331 | return 9; | |
6332 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6333 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6334 | return 10; | |
6335 | for (i = 0; i < pagesize; ++i) | |
6336 | if (*(data + i) != *(data2 + i)) | |
6337 | return 11; | |
6338 | ||
6339 | /* Finally, make sure that changes to the mapped area do not | |
6340 | percolate back to the file as seen by read(). (This is a bug on | |
6341 | some variants of i386 svr4.0.) */ | |
6342 | for (i = 0; i < pagesize; ++i) | |
6343 | *(data2 + i) = *(data2 + i) + 1; | |
6344 | data3 = (char *) malloc (pagesize); | |
6345 | if (!data3) | |
6346 | return 12; | |
6347 | if (read (fd, data3, pagesize) != pagesize) | |
6348 | return 13; | |
6349 | for (i = 0; i < pagesize; ++i) | |
6350 | if (*(data + i) != *(data3 + i)) | |
6351 | return 14; | |
6352 | close (fd); | |
6353 | return 0; | |
6354 | } | |
a946372e | 6355 | _ACEOF |
f11781c5 AK |
6356 | if ac_fn_c_try_run "$LINENO"; then : |
6357 | ac_cv_func_mmap_fixed_mapped=yes | |
a946372e | 6358 | else |
f11781c5 AK |
6359 | ac_cv_func_mmap_fixed_mapped=no |
6360 | fi | |
6361 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6362 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6363 | fi | |
a946372e | 6364 | |
a946372e | 6365 | fi |
f11781c5 AK |
6366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6367 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
6368 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
a946372e | 6369 | |
f11781c5 | 6370 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
a946372e | 6371 | |
f11781c5 AK |
6372 | fi |
6373 | rm -f conftest.mmap conftest.txt | |
6374 | ||
6375 | for ac_header in stdlib.h | |
6376 | do : | |
6377 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6378 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6379 | cat >>confdefs.h <<_ACEOF | |
6380 | #define HAVE_STDLIB_H 1 | |
a946372e | 6381 | _ACEOF |
f11781c5 AK |
6382 | |
6383 | fi | |
6384 | ||
6385 | done | |
6386 | ||
6387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 | |
6388 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
6389 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : | |
6390 | $as_echo_n "(cached) " >&6 | |
6391 | else | |
6392 | if test "$cross_compiling" = yes; then : | |
6393 | ac_cv_func_realloc_0_nonnull=no | |
6394 | else | |
6395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e | 6396 | /* end confdefs.h. */ |
f11781c5 AK |
6397 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
6398 | # include <stdlib.h> | |
6399 | #else | |
6400 | char *realloc (); | |
6401 | #endif | |
6402 | ||
6403 | int | |
6404 | main () | |
6405 | { | |
6406 | return ! realloc (0, 0); | |
6407 | ; | |
6408 | return 0; | |
6409 | } | |
a946372e | 6410 | _ACEOF |
f11781c5 AK |
6411 | if ac_fn_c_try_run "$LINENO"; then : |
6412 | ac_cv_func_realloc_0_nonnull=yes | |
a946372e | 6413 | else |
f11781c5 AK |
6414 | ac_cv_func_realloc_0_nonnull=no |
6415 | fi | |
6416 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6417 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6418 | fi |
6419 | ||
f11781c5 AK |
6420 | fi |
6421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 | |
6422 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
6423 | if test $ac_cv_func_realloc_0_nonnull = yes; then : | |
a946372e | 6424 | |
f11781c5 | 6425 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h |
a946372e | 6426 | |
a946372e | 6427 | else |
f11781c5 AK |
6428 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h |
6429 | ||
6430 | case " $LIBOBJS " in | |
6431 | *" realloc.$ac_objext "* ) ;; | |
6432 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
6433 | ;; | |
6434 | esac | |
a946372e | 6435 | |
a946372e | 6436 | |
f11781c5 AK |
6437 | $as_echo "#define realloc rpl_realloc" >>confdefs.h |
6438 | ||
a946372e AK |
6439 | fi |
6440 | ||
a946372e | 6441 | |
f11781c5 AK |
6442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
6443 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
6444 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then : | |
6445 | $as_echo_n "(cached) " >&6 | |
a946372e | 6446 | else |
f11781c5 AK |
6447 | if test "$cross_compiling" = yes; then : |
6448 | ac_cv_func_stat_empty_string_bug=yes | |
6449 | else | |
6450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6451 | /* end confdefs.h. */ | |
6452 | $ac_includes_default | |
6453 | int | |
6454 | main () | |
6455 | { | |
6456 | struct stat sbuf; | |
6457 | return stat ("", &sbuf) == 0; | |
6458 | ; | |
6459 | return 0; | |
6460 | } | |
6461 | _ACEOF | |
6462 | if ac_fn_c_try_run "$LINENO"; then : | |
6463 | ac_cv_func_stat_empty_string_bug=no | |
6464 | else | |
6465 | ac_cv_func_stat_empty_string_bug=yes | |
a946372e | 6466 | fi |
f11781c5 AK |
6467 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6468 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6469 | fi |
6470 | ||
8c4e8a18 | 6471 | fi |
f11781c5 AK |
6472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
6473 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
6474 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
6475 | case " $LIBOBJS " in | |
6476 | *" stat.$ac_objext "* ) ;; | |
6477 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" | |
6478 | ;; | |
6479 | esac | |
8c4e8a18 FDN |
6480 | |
6481 | ||
6482 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 6483 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
8c4e8a18 FDN |
6484 | _ACEOF |
6485 | ||
6486 | fi | |
6487 | ||
f11781c5 AK |
6488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
6489 | $as_echo_n "checking for working strtod... " >&6; } | |
6490 | if test "${ac_cv_func_strtod+set}" = set; then : | |
6491 | $as_echo_n "(cached) " >&6 | |
66fd4529 | 6492 | else |
f11781c5 AK |
6493 | if test "$cross_compiling" = yes; then : |
6494 | ac_cv_func_strtod=no | |
6495 | else | |
6496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6497 | /* end confdefs.h. */ | |
66fd4529 | 6498 | |
f11781c5 AK |
6499 | $ac_includes_default |
6500 | #ifndef strtod | |
6501 | double strtod (); | |
6502 | #endif | |
6503 | int | |
6504 | main() | |
6505 | { | |
6506 | { | |
6507 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6508 | char *string = " +69"; | |
6509 | char *term; | |
6510 | double value; | |
6511 | value = strtod (string, &term); | |
6512 | if (value != 69 || term != (string + 4)) | |
6513 | return 1; | |
6514 | } | |
66fd4529 | 6515 | |
f11781c5 AK |
6516 | { |
6517 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6518 | terminating character under some conditions. */ | |
6519 | char *string = "NaN"; | |
6520 | char *term; | |
6521 | strtod (string, &term); | |
6522 | if (term != string && *(term - 1) == 0) | |
6523 | return 1; | |
6524 | } | |
6525 | return 0; | |
6526 | } | |
66fd4529 | 6527 | |
f11781c5 AK |
6528 | _ACEOF |
6529 | if ac_fn_c_try_run "$LINENO"; then : | |
6530 | ac_cv_func_strtod=yes | |
66fd4529 | 6531 | else |
f11781c5 AK |
6532 | ac_cv_func_strtod=no |
6533 | fi | |
6534 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6535 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6536 | fi |
6537 | ||
f11781c5 AK |
6538 | fi |
6539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | |
6540 | $as_echo "$ac_cv_func_strtod" >&6; } | |
6541 | if test $ac_cv_func_strtod = no; then | |
6542 | case " $LIBOBJS " in | |
6543 | *" strtod.$ac_objext "* ) ;; | |
6544 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
6545 | ;; | |
6546 | esac | |
71082be4 | 6547 | |
f11781c5 AK |
6548 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
6549 | if test "x$ac_cv_func_pow" = x""yes; then : | |
71082be4 | 6550 | |
66fd4529 | 6551 | fi |
a946372e | 6552 | |
f11781c5 AK |
6553 | if test $ac_cv_func_pow = no; then |
6554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
6555 | $as_echo_n "checking for pow in -lm... " >&6; } | |
6556 | if test "${ac_cv_lib_m_pow+set}" = set; then : | |
6557 | $as_echo_n "(cached) " >&6 | |
6558 | else | |
6559 | ac_check_lib_save_LIBS=$LIBS | |
6560 | LIBS="-lm $LIBS" | |
6561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6562 | /* end confdefs.h. */ | |
90c80887 | 6563 | |
f11781c5 AK |
6564 | /* Override any GCC internal prototype to avoid an error. |
6565 | Use char because int might match the return type of a GCC | |
6566 | builtin and then its argument prototype would still apply. */ | |
6567 | #ifdef __cplusplus | |
6568 | extern "C" | |
6569 | #endif | |
6570 | char pow (); | |
6571 | int | |
6572 | main () | |
6573 | { | |
6574 | return pow (); | |
6575 | ; | |
6576 | return 0; | |
6577 | } | |
6578 | _ACEOF | |
6579 | if ac_fn_c_try_link "$LINENO"; then : | |
6580 | ac_cv_lib_m_pow=yes | |
90c80887 | 6581 | else |
f11781c5 | 6582 | ac_cv_lib_m_pow=no |
90c80887 | 6583 | fi |
f11781c5 AK |
6584 | rm -f core conftest.err conftest.$ac_objext \ |
6585 | conftest$ac_exeext conftest.$ac_ext | |
6586 | LIBS=$ac_check_lib_save_LIBS | |
90c80887 | 6587 | fi |
f11781c5 AK |
6588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
6589 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
6590 | if test "x$ac_cv_lib_m_pow" = x""yes; then : | |
6591 | POW_LIB=-lm | |
90c80887 | 6592 | else |
f11781c5 AK |
6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
6594 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
90c80887 | 6595 | fi |
f11781c5 | 6596 | |
90c80887 AK |
6597 | fi |
6598 | ||
f11781c5 AK |
6599 | fi |
6600 | ||
6601 | for ac_func in vprintf | |
6602 | do : | |
6603 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
6604 | if test "x$ac_cv_func_vprintf" = x""yes; then : | |
6605 | cat >>confdefs.h <<_ACEOF | |
6606 | #define HAVE_VPRINTF 1 | |
6607 | _ACEOF | |
90c80887 | 6608 | |
f11781c5 AK |
6609 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
6610 | if test "x$ac_cv_func__doprnt" = x""yes; then : | |
90c80887 | 6611 | |
f11781c5 | 6612 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
90c80887 | 6613 | |
90c80887 | 6614 | fi |
90c80887 | 6615 | |
f11781c5 AK |
6616 | fi |
6617 | done | |
90c80887 | 6618 | |
90c80887 | 6619 | |
90c80887 | 6620 | |
f11781c5 AK |
6621 | ################################################################################ |
6622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5 | |
6623 | $as_echo_n "checking whether to use static linking... " >&6; } | |
6624 | # Check whether --enable-static_link was given. | |
6625 | if test "${enable_static_link+set}" = set; then : | |
6626 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
6627 | else | |
6628 | STATIC_LINK=no | |
6629 | fi | |
90c80887 | 6630 | |
f11781c5 AK |
6631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5 |
6632 | $as_echo "$STATIC_LINK" >&6; } | |
90c80887 | 6633 | |
f11781c5 | 6634 | ################################################################################ |
90c80887 | 6635 | |
90c80887 | 6636 | |
f11781c5 AK |
6637 | ################################################################################ |
6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5 | |
6639 | $as_echo_n "checking file owner... " >&6; } | |
90c80887 | 6640 | |
f11781c5 AK |
6641 | # Check whether --with-user was given. |
6642 | if test "${with_user+set}" = set; then : | |
6643 | withval=$with_user; OWNER=$withval | |
6644 | fi | |
90c80887 | 6645 | |
f11781c5 AK |
6646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5 |
6647 | $as_echo "$OWNER" >&6; } | |
90c80887 | 6648 | |
f11781c5 AK |
6649 | if test x$OWNER != x; then |
6650 | INSTALL="$INSTALL -o $OWNER" | |
90c80887 | 6651 | fi |
a946372e | 6652 | |
f11781c5 AK |
6653 | ################################################################################ |
6654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5 | |
6655 | $as_echo_n "checking group owner... " >&6; } | |
a946372e | 6656 | |
f11781c5 AK |
6657 | # Check whether --with-group was given. |
6658 | if test "${with_group+set}" = set; then : | |
6659 | withval=$with_group; GROUP=$withval | |
a946372e | 6660 | fi |
f11781c5 AK |
6661 | |
6662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5 | |
6663 | $as_echo "$GROUP" >&6; } | |
6664 | ||
6665 | if test x$GROUP != x; then | |
6666 | INSTALL="$INSTALL -g $GROUP" | |
a946372e | 6667 | fi |
f11781c5 AK |
6668 | |
6669 | ################################################################################ | |
6670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5 | |
6671 | $as_echo_n "checking device node uid... " >&6; } | |
6672 | ||
6673 | ||
6674 | # Check whether --with-device-uid was given. | |
6675 | if test "${with_device_uid+set}" = set; then : | |
6676 | withval=$with_device_uid; DM_DEVICE_UID=$withval | |
a946372e | 6677 | else |
f11781c5 | 6678 | DM_DEVICE_UID=0 |
a946372e AK |
6679 | fi |
6680 | ||
f11781c5 AK |
6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5 |
6682 | $as_echo "$DM_DEVICE_UID" >&6; } | |
a946372e | 6683 | |
f11781c5 AK |
6684 | ################################################################################ |
6685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5 | |
6686 | $as_echo_n "checking device node gid... " >&6; } | |
a946372e | 6687 | |
a946372e | 6688 | |
f11781c5 AK |
6689 | # Check whether --with-device-gid was given. |
6690 | if test "${with_device_gid+set}" = set; then : | |
6691 | withval=$with_device_gid; DM_DEVICE_GID=$withval | |
a946372e | 6692 | else |
f11781c5 | 6693 | DM_DEVICE_GID=0 |
a946372e | 6694 | fi |
a946372e | 6695 | |
f11781c5 AK |
6696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5 |
6697 | $as_echo "$DM_DEVICE_GID" >&6; } | |
90c80887 | 6698 | |
f11781c5 AK |
6699 | ################################################################################ |
6700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5 | |
6701 | $as_echo_n "checking device node mode... " >&6; } | |
90c80887 | 6702 | |
90c80887 | 6703 | |
f11781c5 AK |
6704 | # Check whether --with-device-mode was given. |
6705 | if test "${with_device_mode+set}" = set; then : | |
6706 | withval=$with_device_mode; DM_DEVICE_MODE=$withval | |
6707 | else | |
6708 | DM_DEVICE_MODE=0600 | |
6709 | fi | |
90c80887 | 6710 | |
f11781c5 AK |
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5 |
6712 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
90c80887 | 6713 | |
f11781c5 AK |
6714 | ################################################################################ |
6715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5 | |
6716 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
6717 | # Check whether --enable-lvm1_fallback was given. | |
6718 | if test "${enable_lvm1_fallback+set}" = set; then : | |
6719 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
6720 | else | |
6721 | LVM1_FALLBACK=no | |
6722 | fi | |
90c80887 | 6723 | |
f11781c5 AK |
6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5 |
6725 | $as_echo "$LVM1_FALLBACK" >&6; } | |
90c80887 | 6726 | |
f11781c5 | 6727 | if test x$LVM1_FALLBACK = xyes; then |
90c80887 | 6728 | |
f11781c5 | 6729 | $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h |
90c80887 | 6730 | |
f11781c5 | 6731 | fi |
90c80887 | 6732 | |
f11781c5 AK |
6733 | ################################################################################ |
6734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5 | |
6735 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
6736 | ||
6737 | # Check whether --with-lvm1 was given. | |
6738 | if test "${with_lvm1+set}" = set; then : | |
6739 | withval=$with_lvm1; LVM1=$withval | |
a946372e | 6740 | else |
f11781c5 | 6741 | LVM1=internal |
a946372e | 6742 | fi |
f11781c5 AK |
6743 | |
6744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5 | |
6745 | $as_echo "$LVM1" >&6; } | |
6746 | ||
6747 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
6748 | then as_fn_error $? "--with-lvm1 parameter invalid | |
6749 | " "$LINENO" 5 | |
6750 | fi; | |
6751 | ||
6752 | if test x$LVM1 = xinternal; then | |
6753 | ||
6754 | $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h | |
6755 | ||
a946372e AK |
6756 | fi |
6757 | ||
6758 | ################################################################################ | |
f11781c5 AK |
6759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5 |
6760 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
6761 | ||
6762 | # Check whether --with-pool was given. | |
6763 | if test "${with_pool+set}" = set; then : | |
6764 | withval=$with_pool; POOL=$withval | |
a946372e | 6765 | else |
f11781c5 | 6766 | POOL=internal |
a946372e AK |
6767 | fi |
6768 | ||
f11781c5 AK |
6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5 |
6770 | $as_echo "$POOL" >&6; } | |
6771 | ||
6772 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
6773 | then as_fn_error $? "--with-pool parameter invalid | |
6774 | " "$LINENO" 5 | |
6775 | fi; | |
6776 | ||
6777 | if test x$POOL = xinternal; then | |
6778 | ||
6779 | $as_echo "#define POOL_INTERNAL 1" >>confdefs.h | |
a946372e | 6780 | |
a946372e AK |
6781 | fi |
6782 | ||
6783 | ################################################################################ | |
f11781c5 AK |
6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5 |
6785 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
a946372e | 6786 | |
f11781c5 AK |
6787 | # Check whether --with-cluster was given. |
6788 | if test "${with_cluster+set}" = set; then : | |
6789 | withval=$with_cluster; CLUSTER=$withval | |
a946372e AK |
6790 | fi |
6791 | ||
f11781c5 AK |
6792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5 |
6793 | $as_echo "$CLUSTER" >&6; } | |
a946372e | 6794 | |
f11781c5 AK |
6795 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
6796 | then as_fn_error $? "--with-cluster parameter invalid | |
6797 | " "$LINENO" 5 | |
6798 | fi; | |
fddafd51 | 6799 | |
f11781c5 | 6800 | if test x$CLUSTER = xinternal; then |
5556819a | 6801 | |
f11781c5 | 6802 | $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h |
fddafd51 | 6803 | |
fddafd51 | 6804 | fi |
f11781c5 AK |
6805 | |
6806 | ################################################################################ | |
6807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5 | |
6808 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
6809 | ||
6810 | # Check whether --with-snapshots was given. | |
6811 | if test "${with_snapshots+set}" = set; then : | |
6812 | withval=$with_snapshots; SNAPSHOTS=$withval | |
fddafd51 | 6813 | else |
f11781c5 | 6814 | SNAPSHOTS=internal |
fddafd51 ZK |
6815 | fi |
6816 | ||
f11781c5 AK |
6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5 |
6818 | $as_echo "$SNAPSHOTS" >&6; } | |
fddafd51 | 6819 | |
f11781c5 AK |
6820 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
6821 | then as_fn_error $? "--with-snapshots parameter invalid | |
6822 | " "$LINENO" 5 | |
6823 | fi; | |
fddafd51 | 6824 | |
f11781c5 AK |
6825 | if test x$SNAPSHOTS = xinternal; then |
6826 | ||
6827 | $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h | |
6828 | ||
6829 | fi | |
6830 | ||
6831 | ################################################################################ | |
6832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5 | |
6833 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
6834 | ||
6835 | # Check whether --with-mirrors was given. | |
6836 | if test "${with_mirrors+set}" = set; then : | |
6837 | withval=$with_mirrors; MIRRORS=$withval | |
fddafd51 | 6838 | else |
f11781c5 | 6839 | MIRRORS=internal |
fddafd51 ZK |
6840 | fi |
6841 | ||
f11781c5 AK |
6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5 |
6843 | $as_echo "$MIRRORS" >&6; } | |
fddafd51 | 6844 | |
f11781c5 AK |
6845 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
6846 | then as_fn_error $? "--with-mirrors parameter invalid | |
6847 | " "$LINENO" 5 | |
6848 | fi; | |
6849 | ||
6850 | if test x$MIRRORS = xinternal; then | |
6851 | ||
6852 | $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h | |
6853 | ||
6854 | fi | |
6855 | ||
6856 | ################################################################################ | |
6857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5 | |
6858 | $as_echo_n "checking whether to include replicators... " >&6; } | |
6859 | ||
6860 | # Check whether --with-replicators was given. | |
6861 | if test "${with_replicators+set}" = set; then : | |
6862 | withval=$with_replicators; REPLICATORS=$withval | |
fd4728e1 | 6863 | else |
f11781c5 AK |
6864 | REPLICATORS=none |
6865 | fi | |
fd4728e1 | 6866 | |
f11781c5 AK |
6867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5 |
6868 | $as_echo "$REPLICATORS" >&6; } | |
6869 | ||
6870 | case "$REPLICATORS" in | |
6871 | none|shared) ;; | |
6872 | internal) | |
6873 | $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h | |
6874 | ;; | |
6875 | *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;; | |
fd4728e1 | 6876 | esac |
f11781c5 AK |
6877 | |
6878 | ################################################################################ | |
6879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5 | |
6880 | $as_echo_n "checking whether to enable readline... " >&6; } | |
6881 | # Check whether --enable-readline was given. | |
6882 | if test "${enable_readline+set}" = set; then : | |
6883 | enableval=$enable_readline; READLINE=$enableval | |
fd4728e1 | 6884 | else |
f11781c5 | 6885 | READLINE=maybe |
fd4728e1 ZK |
6886 | fi |
6887 | ||
f11781c5 AK |
6888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5 |
6889 | $as_echo "$READLINE" >&6; } | |
fd4728e1 | 6890 | |
f11781c5 AK |
6891 | ################################################################################ |
6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5 | |
6893 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
6894 | # Check whether --enable-realtime was given. | |
6895 | if test "${enable_realtime+set}" = set; then : | |
6896 | enableval=$enable_realtime; REALTIME=$enableval | |
5556819a | 6897 | fi |
d0191583 | 6898 | |
f11781c5 AK |
6899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5 |
6900 | $as_echo "$REALTIME" >&6; } | |
6901 | ||
54b362f9 | 6902 | ################################################################################ |
f11781c5 AK |
6903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5 |
6904 | $as_echo_n "checking whether to enable OCF resource agents... " >&6; } | |
6905 | # Check whether --enable-ocf was given. | |
6906 | if test "${enable_ocf+set}" = set; then : | |
6907 | enableval=$enable_ocf; OCF=$enableval | |
54b362f9 | 6908 | else |
f11781c5 | 6909 | OCF=no |
54b362f9 AK |
6910 | fi |
6911 | ||
f11781c5 AK |
6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5 |
6913 | $as_echo "$OCF" >&6; } | |
54b362f9 | 6914 | |
606d0858 AK |
6915 | # Check whether --with-ocfdir was given. |
6916 | if test "${with_ocfdir+set}" = set; then : | |
6917 | withval=$with_ocfdir; OCFDIR=$withval | |
6918 | else | |
6919 | OCFDIR='${prefix}/lib/ocf/resource.d/lvm2' | |
6920 | fi | |
6921 | ||
6922 | ||
f11781c5 AK |
6923 | ################################################################################ |
6924 | pkg_config_init() { | |
6925 | ||
6926 | ||
6927 | ||
6928 | ||
6929 | ||
6930 | ||
6931 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
6932 | if test -n "$ac_tool_prefix"; then | |
6933 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
6934 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
6935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 6936 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 6937 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
6938 | $as_echo_n "(cached) " >&6 |
6939 | else | |
f11781c5 | 6940 | case $PKG_CONFIG in |
54b362f9 | 6941 | [\\/]* | ?:[\\/]*) |
f11781c5 | 6942 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
6943 | ;; |
6944 | *) | |
6945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6946 | for as_dir in $PATH | |
6947 | do | |
6948 | IFS=$as_save_IFS | |
6949 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 6950 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 6951 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
6952 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
6953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
6954 | break 2 |
6955 | fi | |
6956 | done | |
f11781c5 | 6957 | done |
54b362f9 AK |
6958 | IFS=$as_save_IFS |
6959 | ||
6960 | ;; | |
6961 | esac | |
6962 | fi | |
f11781c5 AK |
6963 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
6964 | if test -n "$PKG_CONFIG"; then | |
6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
6966 | $as_echo "$PKG_CONFIG" >&6; } | |
54b362f9 | 6967 | else |
f11781c5 | 6968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
6969 | $as_echo "no" >&6; } |
6970 | fi | |
6971 | ||
6972 | ||
f11781c5 AK |
6973 | fi |
6974 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
6975 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
6976 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
6977 | set dummy pkg-config; ac_word=$2 | |
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 6979 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 6980 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
6981 | $as_echo_n "(cached) " >&6 |
6982 | else | |
f11781c5 | 6983 | case $ac_pt_PKG_CONFIG in |
54b362f9 | 6984 | [\\/]* | ?:[\\/]*) |
f11781c5 | 6985 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
6986 | ;; |
6987 | *) | |
6988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6989 | for as_dir in $PATH | |
6990 | do | |
6991 | IFS=$as_save_IFS | |
6992 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 6993 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 6994 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
6995 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
6996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
6997 | break 2 |
6998 | fi | |
6999 | done | |
f11781c5 | 7000 | done |
54b362f9 AK |
7001 | IFS=$as_save_IFS |
7002 | ||
7003 | ;; | |
7004 | esac | |
7005 | fi | |
f11781c5 AK |
7006 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
7007 | if test -n "$ac_pt_PKG_CONFIG"; then | |
7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
7009 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
54b362f9 | 7010 | else |
f11781c5 | 7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7012 | $as_echo "no" >&6; } |
7013 | fi | |
7014 | ||
f11781c5 AK |
7015 | if test "x$ac_pt_PKG_CONFIG" = x; then |
7016 | PKG_CONFIG="" | |
7017 | else | |
7018 | case $cross_compiling:$ac_tool_warned in | |
7019 | yes:) | |
7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7021 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7022 | ac_tool_warned=yes ;; | |
7023 | esac | |
7024 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7025 | fi | |
d1e8046f | 7026 | else |
f11781c5 | 7027 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
d1e8046f AK |
7028 | fi |
7029 | ||
f11781c5 AK |
7030 | fi |
7031 | if test -n "$PKG_CONFIG"; then | |
7032 | _pkg_min_version=0.9.0 | |
7033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
7034 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
7035 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
7036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7037 | $as_echo "yes" >&6; } | |
7038 | else | |
7039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7040 | $as_echo "no" >&6; } | |
7041 | PKG_CONFIG="" | |
7042 | fi | |
7043 | fi | |
d1e8046f | 7044 | |
f11781c5 AK |
7045 | pkg_failed=no |
7046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5 | |
7047 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
d1e8046f | 7048 | |
f11781c5 AK |
7049 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
7050 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
7051 | elif test -n "$PKG_CONFIG"; then | |
7052 | if test -n "$PKG_CONFIG" && \ | |
7053 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7054 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
7055 | ac_status=$? | |
7056 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7057 | test $ac_status = 0; }; then | |
7058 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7059 | else |
f11781c5 AK |
7060 | pkg_failed=yes |
7061 | fi | |
7062 | else | |
7063 | pkg_failed=untried | |
7064 | fi | |
7065 | if test -n "$PKGCONFIGINIT_LIBS"; then | |
7066 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
7067 | elif test -n "$PKG_CONFIG"; then | |
7068 | if test -n "$PKG_CONFIG" && \ | |
7069 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7070 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
d1e8046f | 7071 | ac_status=$? |
f11781c5 AK |
7072 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7073 | test $ac_status = 0; }; then | |
7074 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7075 | else |
f11781c5 AK |
7076 | pkg_failed=yes |
7077 | fi | |
7078 | else | |
7079 | pkg_failed=untried | |
d1e8046f AK |
7080 | fi |
7081 | ||
d1e8046f | 7082 | |
f11781c5 AK |
7083 | |
7084 | if test $pkg_failed = yes; then | |
7085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7086 | $as_echo "no" >&6; } | |
7087 | ||
7088 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7089 | _pkg_short_errors_supported=yes | |
7090 | else | |
7091 | _pkg_short_errors_supported=no | |
7092 | fi | |
7093 | if test $_pkg_short_errors_supported = yes; then | |
7094 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` | |
7095 | else | |
7096 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` | |
7097 | fi | |
7098 | # Put the nasty error message in config.log where it belongs | |
7099 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 | |
7100 | ||
7101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7102 | $as_echo "pkg-config initialized" >&6; } | |
7103 | elif test $pkg_failed = untried; then | |
7104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7105 | $as_echo "no" >&6; } | |
7106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7107 | $as_echo "pkg-config initialized" >&6; } | |
d1e8046f | 7108 | else |
f11781c5 AK |
7109 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
7110 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
7111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7112 | $as_echo "yes" >&6; } | |
d1e8046f | 7113 | |
d1e8046f | 7114 | fi |
f11781c5 AK |
7115 | PKGCONFIG_INIT=1 |
7116 | } | |
d1e8046f | 7117 | |
f11781c5 AK |
7118 | ################################################################################ |
7119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5 | |
7120 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d1e8046f | 7121 | |
f11781c5 AK |
7122 | # Check whether --with-clvmd was given. |
7123 | if test "${with_clvmd+set}" = set; then : | |
7124 | withval=$with_clvmd; CLVMD=$withval | |
d1e8046f | 7125 | else |
f11781c5 | 7126 | CLVMD=none |
d1e8046f | 7127 | fi |
d1e8046f | 7128 | |
f11781c5 AK |
7129 | if test x$CLVMD = xyes; then |
7130 | CLVMD=all | |
d1e8046f | 7131 | fi |
f11781c5 AK |
7132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5 |
7133 | $as_echo "$CLVMD" >&6; } | |
d1e8046f | 7134 | |
f11781c5 AK |
7135 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
7136 | CLUSTER=internal | |
d1e8046f AK |
7137 | fi |
7138 | ||
f11781c5 AK |
7139 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then |
7140 | pkg_config_init | |
7141 | fi | |
d1e8046f | 7142 | |
f11781c5 AK |
7143 | CLVMD_CMANAGERS="" |
7144 | CLVMD_NEEDS_QDISKD=no | |
d1e8046f | 7145 | |
f11781c5 AK |
7146 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then |
7147 | BUILDGULM=yes | |
7148 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd" | |
7149 | CLVMD_NEEDS_QDISKD=yes | |
d1e8046f | 7150 | fi |
f11781c5 AK |
7151 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then |
7152 | BUILDCMAN=yes | |
7153 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
7154 | CLVMD_NEEDS_QDISKD=yes | |
7155 | fi | |
7156 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
7157 | BUILDCOROSYNC=yes | |
7158 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
7159 | fi | |
7160 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
7161 | BUILDOPENAIS=yes | |
7162 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
7163 | fi | |
7164 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
7165 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
fc54be10 AK |
7166 | fi |
7167 | ||
f11781c5 AK |
7168 | if test x$BUILDGULM = xyes; then |
7169 | if test x$BUILDCOROSYNC = xyes || \ | |
7170 | test x$BUILDOPENAIS = xyes; then | |
7171 | as_fn_error $? "requested clvmd configuration is not valid" "$LINENO" 5 | |
7172 | fi | |
7173 | fi | |
ad6254c5 | 7174 | |
f11781c5 AK |
7175 | soft_bailout() { |
7176 | NOTFOUND=1 | |
7177 | } | |
ad6254c5 | 7178 | |
f11781c5 AK |
7179 | hard_bailout() { |
7180 | as_fn_error $? "bailing out" "$LINENO" 5 | |
7181 | } | |
ad6254c5 | 7182 | |
f11781c5 AK |
7183 | if test x$CLVMD = xall; then |
7184 | bailout=soft_bailout | |
7185 | BUILDGULM=yes | |
7186 | BUILDCMAN=yes | |
7187 | BUILDCOROSYNC=yes | |
7188 | BUILDOPENAIS=yes | |
a5f46f6a | 7189 | else |
f11781c5 | 7190 | bailout=hard_bailout |
a5f46f6a AK |
7191 | fi |
7192 | ||
f11781c5 AK |
7193 | check_lib_no_libs() { |
7194 | lib_no_libs_arg1=$1 | |
7195 | shift | |
7196 | lib_no_libs_arg2=$1 | |
7197 | shift | |
7198 | lib_no_libs_args=$@ | |
7199 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
7201 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
7202 | if eval "test \"\${$as_ac_Lib+set}\"" = set; then : | |
90c80887 AK |
7203 | $as_echo_n "(cached) " >&6 |
7204 | else | |
7205 | ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
7206 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" |
7207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
90c80887 AK |
7208 | /* end confdefs.h. */ |
7209 | ||
7210 | /* Override any GCC internal prototype to avoid an error. | |
7211 | Use char because int might match the return type of a GCC | |
7212 | builtin and then its argument prototype would still apply. */ | |
7213 | #ifdef __cplusplus | |
7214 | extern "C" | |
7215 | #endif | |
f11781c5 | 7216 | char $lib_no_libs_arg2 (); |
90c80887 AK |
7217 | int |
7218 | main () | |
7219 | { | |
f11781c5 | 7220 | return $lib_no_libs_arg2 (); |
90c80887 AK |
7221 | ; |
7222 | return 0; | |
7223 | } | |
7224 | _ACEOF | |
f11781c5 AK |
7225 | if ac_fn_c_try_link "$LINENO"; then : |
7226 | eval "$as_ac_Lib=yes" | |
90c80887 | 7227 | else |
f11781c5 | 7228 | eval "$as_ac_Lib=no" |
90c80887 | 7229 | fi |
f11781c5 AK |
7230 | rm -f core conftest.err conftest.$ac_objext \ |
7231 | conftest$ac_exeext conftest.$ac_ext | |
90c80887 AK |
7232 | LIBS=$ac_check_lib_save_LIBS |
7233 | fi | |
f11781c5 AK |
7234 | eval ac_res=\$$as_ac_Lib |
7235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7236 | $as_echo "$ac_res" >&6; } | |
7237 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
7238 | cat >>confdefs.h <<_ACEOF | |
7239 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
7240 | _ACEOF | |
7241 | ||
7242 | LIBS="-l$lib_no_libs_arg1 $LIBS" | |
7243 | ||
90c80887 | 7244 | else |
f11781c5 | 7245 | $bailout |
90c80887 AK |
7246 | fi |
7247 | ||
f11781c5 AK |
7248 | LIBS=$ac_check_lib_save_LIBS |
7249 | } | |
90c80887 | 7250 | |
f11781c5 | 7251 | if test x$BUILDGULM = xyes; then |
90c80887 | 7252 | |
f11781c5 AK |
7253 | pkg_failed=no |
7254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5 | |
7255 | $as_echo_n "checking for CCS... " >&6; } | |
90c80887 | 7256 | |
f11781c5 AK |
7257 | if test -n "$CCS_CFLAGS"; then |
7258 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
7259 | elif test -n "$PKG_CONFIG"; then | |
7260 | if test -n "$PKG_CONFIG" && \ | |
7261 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5 | |
7262 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
7263 | ac_status=$? | |
7264 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7265 | test $ac_status = 0; }; then | |
7266 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` | |
5161ecb9 | 7267 | else |
f11781c5 AK |
7268 | pkg_failed=yes |
7269 | fi | |
7270 | else | |
7271 | pkg_failed=untried | |
7272 | fi | |
7273 | if test -n "$CCS_LIBS"; then | |
7274 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
7275 | elif test -n "$PKG_CONFIG"; then | |
7276 | if test -n "$PKG_CONFIG" && \ | |
7277 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5 | |
7278 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
7279 | ac_status=$? | |
7280 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7281 | test $ac_status = 0; }; then | |
7282 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` | |
7283 | else | |
7284 | pkg_failed=yes | |
7285 | fi | |
7286 | else | |
7287 | pkg_failed=untried | |
5161ecb9 PR |
7288 | fi |
7289 | ||
5161ecb9 | 7290 | |
f11781c5 AK |
7291 | |
7292 | if test $pkg_failed = yes; then | |
7293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7294 | $as_echo "no" >&6; } | |
7295 | ||
7296 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7297 | _pkg_short_errors_supported=yes | |
93bd259b | 7298 | else |
f11781c5 | 7299 | _pkg_short_errors_supported=no |
93bd259b | 7300 | fi |
f11781c5 AK |
7301 | if test $_pkg_short_errors_supported = yes; then |
7302 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` | |
7303 | else | |
7304 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` | |
7305 | fi | |
7306 | # Put the nasty error message in config.log where it belongs | |
7307 | echo "$CCS_PKG_ERRORS" >&5 | |
93bd259b | 7308 | |
f11781c5 AK |
7309 | NOTFOUND=0 |
7310 | for ac_header in ccs.h | |
7311 | do : | |
7312 | ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default" | |
7313 | if test "x$ac_cv_header_ccs_h" = x""yes; then : | |
7314 | cat >>confdefs.h <<_ACEOF | |
7315 | #define HAVE_CCS_H 1 | |
7316 | _ACEOF | |
93bd259b | 7317 | |
95eaa683 | 7318 | else |
f11781c5 | 7319 | $bailout |
95eaa683 AK |
7320 | fi |
7321 | ||
f11781c5 | 7322 | done |
95eaa683 | 7323 | |
f11781c5 AK |
7324 | check_lib_no_libs ccs ccs_connect |
7325 | if test $NOTFOUND = 0; then | |
7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5 | |
7327 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
7328 | CCS_LIBS="-lccs" | |
7329 | HAVE_CCS=yes | |
7330 | fi | |
7331 | elif test $pkg_failed = untried; then | |
7332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7333 | $as_echo "no" >&6; } | |
7334 | NOTFOUND=0 | |
7335 | for ac_header in ccs.h | |
7336 | do : | |
7337 | ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default" | |
7338 | if test "x$ac_cv_header_ccs_h" = x""yes; then : | |
7339 | cat >>confdefs.h <<_ACEOF | |
7340 | #define HAVE_CCS_H 1 | |
95eaa683 AK |
7341 | _ACEOF |
7342 | ||
f11781c5 AK |
7343 | else |
7344 | $bailout | |
95eaa683 AK |
7345 | fi |
7346 | ||
f11781c5 AK |
7347 | done |
7348 | ||
7349 | check_lib_no_libs ccs ccs_connect | |
7350 | if test $NOTFOUND = 0; then | |
7351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5 | |
7352 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
7353 | CCS_LIBS="-lccs" | |
7354 | HAVE_CCS=yes | |
7355 | fi | |
7356 | else | |
7357 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
7358 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
7359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7360 | $as_echo "yes" >&6; } | |
7361 | HAVE_CCS=yes | |
7362 | fi | |
7363 | ||
7364 | pkg_failed=no | |
7365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GULM" >&5 | |
7366 | $as_echo_n "checking for GULM... " >&6; } | |
7367 | ||
7368 | if test -n "$GULM_CFLAGS"; then | |
7369 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
7370 | elif test -n "$PKG_CONFIG"; then | |
7371 | if test -n "$PKG_CONFIG" && \ | |
7372 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5 | |
7373 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
7374 | ac_status=$? | |
7375 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7376 | test $ac_status = 0; }; then | |
7377 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
7378 | else | |
7379 | pkg_failed=yes | |
7380 | fi | |
7381 | else | |
7382 | pkg_failed=untried | |
7383 | fi | |
7384 | if test -n "$GULM_LIBS"; then | |
7385 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
7386 | elif test -n "$PKG_CONFIG"; then | |
7387 | if test -n "$PKG_CONFIG" && \ | |
7388 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5 | |
7389 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
7390 | ac_status=$? | |
7391 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7392 | test $ac_status = 0; }; then | |
7393 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
7394 | else | |
7395 | pkg_failed=yes | |
93bd259b | 7396 | fi |
f11781c5 AK |
7397 | else |
7398 | pkg_failed=untried | |
ad6254c5 | 7399 | fi |
ad6254c5 | 7400 | |
ad6254c5 AK |
7401 | |
7402 | ||
f11781c5 AK |
7403 | if test $pkg_failed = yes; then |
7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7405 | $as_echo "no" >&6; } | |
ad6254c5 | 7406 | |
f11781c5 AK |
7407 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7408 | _pkg_short_errors_supported=yes | |
572fefeb | 7409 | else |
f11781c5 | 7410 | _pkg_short_errors_supported=no |
572fefeb | 7411 | fi |
f11781c5 AK |
7412 | if test $_pkg_short_errors_supported = yes; then |
7413 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
7414 | else | |
7415 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
7416 | fi | |
7417 | # Put the nasty error message in config.log where it belongs | |
7418 | echo "$GULM_PKG_ERRORS" >&5 | |
572fefeb | 7419 | |
f11781c5 AK |
7420 | NOTFOUND=0 |
7421 | for ac_header in libgulm.h | |
7422 | do : | |
7423 | ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default" | |
7424 | if test "x$ac_cv_header_libgulm_h" = x""yes; then : | |
7425 | cat >>confdefs.h <<_ACEOF | |
7426 | #define HAVE_LIBGULM_H 1 | |
7427 | _ACEOF | |
572fefeb | 7428 | |
ad6254c5 | 7429 | else |
f11781c5 | 7430 | $bailout |
d0191583 | 7431 | fi |
8a2fc586 | 7432 | |
f11781c5 | 7433 | done |
8a2fc586 | 7434 | |
f11781c5 AK |
7435 | check_lib_no_libs gulm lg_core_login |
7436 | if test $NOTFOUND = 0; then | |
7437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5 | |
7438 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
7439 | GULM_LIBS="-lgulm" | |
7440 | HAVE_GULM=yes | |
7441 | fi | |
7442 | elif test $pkg_failed = untried; then | |
7443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7444 | $as_echo "no" >&6; } | |
7445 | NOTFOUND=0 | |
7446 | for ac_header in libgulm.h | |
7447 | do : | |
7448 | ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default" | |
7449 | if test "x$ac_cv_header_libgulm_h" = x""yes; then : | |
7450 | cat >>confdefs.h <<_ACEOF | |
7451 | #define HAVE_LIBGULM_H 1 | |
7452 | _ACEOF | |
d179cc7a | 7453 | |
93bd259b | 7454 | else |
f11781c5 | 7455 | $bailout |
93bd259b AK |
7456 | fi |
7457 | ||
f11781c5 | 7458 | done |
2a9a80c9 | 7459 | |
f11781c5 AK |
7460 | check_lib_no_libs gulm lg_core_login |
7461 | if test $NOTFOUND = 0; then | |
7462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5 | |
7463 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
7464 | GULM_LIBS="-lgulm" | |
7465 | HAVE_GULM=yes | |
7466 | fi | |
23b059e7 | 7467 | else |
f11781c5 AK |
7468 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS |
7469 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
7470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7471 | $as_echo "yes" >&6; } | |
7472 | HAVE_GULM=yes | |
d0191583 | 7473 | fi |
d0191583 | 7474 | fi |
ad6254c5 | 7475 | |
f11781c5 | 7476 | if test x$BUILDCMAN = xyes; then |
ad6254c5 | 7477 | |
f11781c5 AK |
7478 | pkg_failed=no |
7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5 | |
7480 | $as_echo_n "checking for CMAN... " >&6; } | |
93bd259b | 7481 | |
f11781c5 AK |
7482 | if test -n "$CMAN_CFLAGS"; then |
7483 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
7484 | elif test -n "$PKG_CONFIG"; then | |
7485 | if test -n "$PKG_CONFIG" && \ | |
7486 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7487 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
7488 | ac_status=$? | |
7489 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7490 | test $ac_status = 0; }; then | |
7491 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
7492 | else | |
7493 | pkg_failed=yes | |
ad6254c5 | 7494 | fi |
f11781c5 AK |
7495 | else |
7496 | pkg_failed=untried | |
ad6254c5 | 7497 | fi |
f11781c5 AK |
7498 | if test -n "$CMAN_LIBS"; then |
7499 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
7500 | elif test -n "$PKG_CONFIG"; then | |
7501 | if test -n "$PKG_CONFIG" && \ | |
7502 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7503 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
93bd259b | 7504 | ac_status=$? |
f11781c5 AK |
7505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7506 | test $ac_status = 0; }; then | |
7507 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
93bd259b | 7508 | else |
f11781c5 AK |
7509 | pkg_failed=yes |
7510 | fi | |
7511 | else | |
7512 | pkg_failed=untried | |
93bd259b AK |
7513 | fi |
7514 | ||
f11781c5 AK |
7515 | |
7516 | ||
7517 | if test $pkg_failed = yes; then | |
7518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7519 | $as_echo "no" >&6; } | |
7520 | ||
7521 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7522 | _pkg_short_errors_supported=yes | |
7523 | else | |
7524 | _pkg_short_errors_supported=no | |
93bd259b | 7525 | fi |
f11781c5 AK |
7526 | if test $_pkg_short_errors_supported = yes; then |
7527 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
7528 | else | |
7529 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
7530 | fi | |
7531 | # Put the nasty error message in config.log where it belongs | |
7532 | echo "$CMAN_PKG_ERRORS" >&5 | |
93bd259b | 7533 | |
f11781c5 AK |
7534 | NOTFOUND=0 |
7535 | for ac_header in libcman.h | |
7536 | do : | |
7537 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7538 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7539 | cat >>confdefs.h <<_ACEOF | |
7540 | #define HAVE_LIBCMAN_H 1 | |
93bd259b AK |
7541 | _ACEOF |
7542 | ||
f11781c5 AK |
7543 | else |
7544 | $bailout | |
93bd259b AK |
7545 | fi |
7546 | ||
f11781c5 | 7547 | done |
93bd259b | 7548 | |
f11781c5 AK |
7549 | check_lib_no_libs cman cman_init |
7550 | if test $NOTFOUND = 0; then | |
7551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7552 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7553 | CMAN_LIBS="-lcman" | |
7554 | HAVE_CMAN=yes | |
7555 | fi | |
7556 | elif test $pkg_failed = untried; then | |
7557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7558 | $as_echo "no" >&6; } | |
7559 | NOTFOUND=0 | |
7560 | for ac_header in libcman.h | |
7561 | do : | |
7562 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7563 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7564 | cat >>confdefs.h <<_ACEOF | |
7565 | #define HAVE_LIBCMAN_H 1 | |
93bd259b | 7566 | _ACEOF |
93bd259b | 7567 | |
93bd259b | 7568 | else |
f11781c5 | 7569 | $bailout |
93bd259b AK |
7570 | fi |
7571 | ||
f11781c5 AK |
7572 | done |
7573 | ||
7574 | check_lib_no_libs cman cman_init | |
7575 | if test $NOTFOUND = 0; then | |
7576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7577 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7578 | CMAN_LIBS="-lcman" | |
7579 | HAVE_CMAN=yes | |
7580 | fi | |
7581 | else | |
7582 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
7583 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
7584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7585 | $as_echo "yes" >&6; } | |
7586 | HAVE_CMAN=yes | |
93bd259b | 7587 | fi |
f11781c5 AK |
7588 | CHECKCONFDB=yes |
7589 | CHECKDLM=yes | |
93bd259b AK |
7590 | fi |
7591 | ||
f11781c5 AK |
7592 | if test x$BUILDCOROSYNC = xyes || \ |
7593 | test x$BUILDOPENAIS = xyes; then | |
93bd259b | 7594 | |
f11781c5 AK |
7595 | pkg_failed=no |
7596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5 | |
7597 | $as_echo_n "checking for COROSYNC... " >&6; } | |
ad6254c5 | 7598 | |
f11781c5 AK |
7599 | if test -n "$COROSYNC_CFLAGS"; then |
7600 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
7601 | elif test -n "$PKG_CONFIG"; then | |
7602 | if test -n "$PKG_CONFIG" && \ | |
7603 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7604 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
7605 | ac_status=$? | |
7606 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7607 | test $ac_status = 0; }; then | |
7608 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
ad6254c5 | 7609 | else |
f11781c5 AK |
7610 | pkg_failed=yes |
7611 | fi | |
7612 | else | |
7613 | pkg_failed=untried | |
7614 | fi | |
7615 | if test -n "$COROSYNC_LIBS"; then | |
7616 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
7617 | elif test -n "$PKG_CONFIG"; then | |
7618 | if test -n "$PKG_CONFIG" && \ | |
7619 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7620 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
ad6254c5 | 7621 | ac_status=$? |
f11781c5 AK |
7622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7623 | test $ac_status = 0; }; then | |
7624 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
ad6254c5 | 7625 | else |
f11781c5 | 7626 | pkg_failed=yes |
ad6254c5 | 7627 | fi |
f11781c5 AK |
7628 | else |
7629 | pkg_failed=untried | |
ad6254c5 | 7630 | fi |
ad6254c5 | 7631 | |
72b2cb61 | 7632 | |
72b2cb61 | 7633 | |
f11781c5 AK |
7634 | if test $pkg_failed = yes; then |
7635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7636 | $as_echo "no" >&6; } | |
19a2c6e0 | 7637 | |
f11781c5 AK |
7638 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7639 | _pkg_short_errors_supported=yes | |
7640 | else | |
7641 | _pkg_short_errors_supported=no | |
ad6254c5 | 7642 | fi |
f11781c5 AK |
7643 | if test $_pkg_short_errors_supported = yes; then |
7644 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
7645 | else | |
7646 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
7647 | fi | |
7648 | # Put the nasty error message in config.log where it belongs | |
7649 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
ad6254c5 | 7650 | |
f11781c5 AK |
7651 | $bailout |
7652 | elif test $pkg_failed = untried; then | |
7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7654 | $as_echo "no" >&6; } | |
7655 | $bailout | |
7656 | else | |
7657 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
7658 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
7659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7660 | $as_echo "yes" >&6; } | |
7661 | HAVE_COROSYNC=yes | |
7662 | fi | |
7663 | CHECKCONFDB=yes | |
ad6254c5 AK |
7664 | fi |
7665 | ||
f11781c5 | 7666 | if test x$BUILDCOROSYNC = xyes; then |
f30875db | 7667 | |
f11781c5 AK |
7668 | pkg_failed=no |
7669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5 | |
7670 | $as_echo_n "checking for QUORUM... " >&6; } | |
7671 | ||
7672 | if test -n "$QUORUM_CFLAGS"; then | |
7673 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
7674 | elif test -n "$PKG_CONFIG"; then | |
7675 | if test -n "$PKG_CONFIG" && \ | |
7676 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7677 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
f30875db | 7678 | ac_status=$? |
f11781c5 AK |
7679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7680 | test $ac_status = 0; }; then | |
7681 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
f30875db | 7682 | else |
f11781c5 | 7683 | pkg_failed=yes |
f30875db | 7684 | fi |
f11781c5 AK |
7685 | else |
7686 | pkg_failed=untried | |
f30875db | 7687 | fi |
f11781c5 AK |
7688 | if test -n "$QUORUM_LIBS"; then |
7689 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
7690 | elif test -n "$PKG_CONFIG"; then | |
7691 | if test -n "$PKG_CONFIG" && \ | |
7692 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7693 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
7694 | ac_status=$? | |
7695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7696 | test $ac_status = 0; }; then | |
7697 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
f30875db | 7698 | else |
f11781c5 | 7699 | pkg_failed=yes |
f30875db | 7700 | fi |
f11781c5 AK |
7701 | else |
7702 | pkg_failed=untried | |
7703 | fi | |
7704 | ||
f30875db | 7705 | |
f11781c5 AK |
7706 | |
7707 | if test $pkg_failed = yes; then | |
7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7709 | $as_echo "no" >&6; } | |
7710 | ||
7711 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7712 | _pkg_short_errors_supported=yes | |
7713 | else | |
7714 | _pkg_short_errors_supported=no | |
f30875db | 7715 | fi |
f11781c5 AK |
7716 | if test $_pkg_short_errors_supported = yes; then |
7717 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
7718 | else | |
7719 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
7720 | fi | |
7721 | # Put the nasty error message in config.log where it belongs | |
7722 | echo "$QUORUM_PKG_ERRORS" >&5 | |
f30875db | 7723 | |
f11781c5 AK |
7724 | $bailout |
7725 | elif test $pkg_failed = untried; then | |
7726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7727 | $as_echo "no" >&6; } | |
7728 | $bailout | |
7729 | else | |
7730 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
7731 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
7732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7733 | $as_echo "yes" >&6; } | |
7734 | HAVE_QUORUM=yes | |
7735 | fi | |
7736 | CHECKCPG=yes | |
7737 | CHECKDLM=yes | |
d0191583 JM |
7738 | fi |
7739 | ||
f11781c5 | 7740 | if test x$BUILDOPENAIS = xyes; then |
d0191583 | 7741 | |
f11781c5 AK |
7742 | pkg_failed=no |
7743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5 | |
7744 | $as_echo_n "checking for SALCK... " >&6; } | |
8a2fc586 | 7745 | |
f11781c5 AK |
7746 | if test -n "$SALCK_CFLAGS"; then |
7747 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
7748 | elif test -n "$PKG_CONFIG"; then | |
7749 | if test -n "$PKG_CONFIG" && \ | |
7750 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7751 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
7752 | ac_status=$? | |
7753 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7754 | test $ac_status = 0; }; then | |
7755 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
7756 | else | |
7757 | pkg_failed=yes | |
7758 | fi | |
7759 | else | |
7760 | pkg_failed=untried | |
7761 | fi | |
7762 | if test -n "$SALCK_LIBS"; then | |
7763 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
7764 | elif test -n "$PKG_CONFIG"; then | |
7765 | if test -n "$PKG_CONFIG" && \ | |
7766 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7767 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
8a2fc586 | 7768 | ac_status=$? |
f11781c5 AK |
7769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7770 | test $ac_status = 0; }; then | |
7771 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
8a2fc586 | 7772 | else |
f11781c5 | 7773 | pkg_failed=yes |
8a2fc586 | 7774 | fi |
f11781c5 AK |
7775 | else |
7776 | pkg_failed=untried | |
8a2fc586 | 7777 | fi |
d0191583 | 7778 | |
d0191583 | 7779 | |
f8f6ec92 | 7780 | |
f11781c5 AK |
7781 | if test $pkg_failed = yes; then |
7782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7783 | $as_echo "no" >&6; } | |
8a2fc586 | 7784 | |
f11781c5 AK |
7785 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7786 | _pkg_short_errors_supported=yes | |
ad6254c5 | 7787 | else |
f11781c5 AK |
7788 | _pkg_short_errors_supported=no |
7789 | fi | |
7790 | if test $_pkg_short_errors_supported = yes; then | |
7791 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
7792 | else | |
7793 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
7794 | fi | |
7795 | # Put the nasty error message in config.log where it belongs | |
7796 | echo "$SALCK_PKG_ERRORS" >&5 | |
ad6254c5 | 7797 | |
f11781c5 AK |
7798 | $bailout |
7799 | elif test $pkg_failed = untried; then | |
7800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7801 | $as_echo "no" >&6; } | |
7802 | $bailout | |
ad6254c5 | 7803 | else |
f11781c5 AK |
7804 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS |
7805 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
7806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7807 | $as_echo "yes" >&6; } | |
7808 | HAVE_SALCK=yes | |
ad6254c5 | 7809 | fi |
f11781c5 | 7810 | CHECKCPG=yes |
ad6254c5 | 7811 | fi |
ad6254c5 | 7812 | |
72b2cb61 | 7813 | |
f8f6ec92 | 7814 | |
f11781c5 | 7815 | if test x$CHECKCONFDB = xyes; then |
f8f6ec92 | 7816 | |
f11781c5 AK |
7817 | pkg_failed=no |
7818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5 | |
7819 | $as_echo_n "checking for CONFDB... " >&6; } | |
f8f6ec92 | 7820 | |
f11781c5 AK |
7821 | if test -n "$CONFDB_CFLAGS"; then |
7822 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
7823 | elif test -n "$PKG_CONFIG"; then | |
7824 | if test -n "$PKG_CONFIG" && \ | |
7825 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7826 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
f8f6ec92 | 7827 | ac_status=$? |
f11781c5 AK |
7828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7829 | test $ac_status = 0; }; then | |
7830 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
66e941e8 | 7831 | else |
f11781c5 AK |
7832 | pkg_failed=yes |
7833 | fi | |
7834 | else | |
7835 | pkg_failed=untried | |
7836 | fi | |
7837 | if test -n "$CONFDB_LIBS"; then | |
7838 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
7839 | elif test -n "$PKG_CONFIG"; then | |
7840 | if test -n "$PKG_CONFIG" && \ | |
7841 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7842 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
7843 | ac_status=$? | |
7844 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7845 | test $ac_status = 0; }; then | |
7846 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
7847 | else | |
7848 | pkg_failed=yes | |
7849 | fi | |
7850 | else | |
7851 | pkg_failed=untried | |
f8f6ec92 ZK |
7852 | fi |
7853 | ||
f8f6ec92 | 7854 | |
66e941e8 | 7855 | |
f11781c5 AK |
7856 | if test $pkg_failed = yes; then |
7857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7858 | $as_echo "no" >&6; } | |
7859 | ||
7860 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7861 | _pkg_short_errors_supported=yes | |
f8f6ec92 | 7862 | else |
f11781c5 | 7863 | _pkg_short_errors_supported=no |
66e941e8 | 7864 | fi |
f11781c5 AK |
7865 | if test $_pkg_short_errors_supported = yes; then |
7866 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
7867 | else | |
7868 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
7869 | fi | |
7870 | # Put the nasty error message in config.log where it belongs | |
7871 | echo "$CONFDB_PKG_ERRORS" >&5 | |
66e941e8 | 7872 | |
f11781c5 AK |
7873 | HAVE_CONFDB=no |
7874 | elif test $pkg_failed = untried; then | |
7875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7876 | $as_echo "no" >&6; } | |
7877 | HAVE_CONFDB=no | |
7878 | else | |
7879 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
7880 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
7881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7882 | $as_echo "yes" >&6; } | |
7883 | HAVE_CONFDB=yes | |
66e941e8 | 7884 | fi |
f11781c5 AK |
7885 | |
7886 | for ac_header in corosync/confdb.h | |
7887 | do : | |
7888 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default" | |
7889 | if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then : | |
f8f6ec92 | 7890 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 7891 | #define HAVE_COROSYNC_CONFDB_H 1 |
f8f6ec92 | 7892 | _ACEOF |
f11781c5 | 7893 | HAVE_CONFDB_H=yes |
66e941e8 | 7894 | else |
f11781c5 | 7895 | HAVE_CONFDB_H=no |
66e941e8 | 7896 | fi |
dd1f2c09 MB |
7897 | |
7898 | done | |
7899 | ||
7900 | ||
f11781c5 AK |
7901 | if test x$HAVE_CONFDB != xyes && \ |
7902 | test x$HAVE_CONFDB_H = xyes; then | |
7903 | check_lib_no_libs confdb confdb_initialize | |
7904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5 | |
7905 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
7906 | CONFDB_LIBS="-lconfdb" | |
7907 | HAVE_CONFDB=yes | |
7908 | fi | |
7909 | ||
7910 | if test x$BUILDCOROSYNC = xyes && \ | |
7911 | test x$HAVE_CONFDB != xyes && | |
7912 | test x$CLVMD != xall; then | |
7913 | as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5 | |
7914 | fi | |
dd1f2c09 | 7915 | fi |
f11781c5 AK |
7916 | |
7917 | if test x$CHECKCPG = xyes; then | |
7918 | ||
7919 | pkg_failed=no | |
7920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
7921 | $as_echo_n "checking for CPG... " >&6; } | |
7922 | ||
7923 | if test -n "$CPG_CFLAGS"; then | |
7924 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
7925 | elif test -n "$PKG_CONFIG"; then | |
7926 | if test -n "$PKG_CONFIG" && \ | |
7927 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
7928 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
7929 | ac_status=$? | |
7930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7931 | test $ac_status = 0; }; then | |
7932 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
dd1f2c09 | 7933 | else |
f11781c5 AK |
7934 | pkg_failed=yes |
7935 | fi | |
7936 | else | |
7937 | pkg_failed=untried | |
7938 | fi | |
7939 | if test -n "$CPG_LIBS"; then | |
7940 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
7941 | elif test -n "$PKG_CONFIG"; then | |
7942 | if test -n "$PKG_CONFIG" && \ | |
7943 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
7944 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
dd1f2c09 | 7945 | ac_status=$? |
f11781c5 AK |
7946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7947 | test $ac_status = 0; }; then | |
7948 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
dd1f2c09 | 7949 | else |
f11781c5 AK |
7950 | pkg_failed=yes |
7951 | fi | |
7952 | else | |
7953 | pkg_failed=untried | |
7954 | fi | |
7955 | ||
7956 | ||
7957 | ||
7958 | if test $pkg_failed = yes; then | |
7959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7960 | $as_echo "no" >&6; } | |
7961 | ||
7962 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7963 | _pkg_short_errors_supported=yes | |
7964 | else | |
7965 | _pkg_short_errors_supported=no | |
7966 | fi | |
7967 | if test $_pkg_short_errors_supported = yes; then | |
7968 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
7969 | else | |
7970 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
7971 | fi | |
7972 | # Put the nasty error message in config.log where it belongs | |
7973 | echo "$CPG_PKG_ERRORS" >&5 | |
dd1f2c09 | 7974 | |
f11781c5 AK |
7975 | $bailout |
7976 | elif test $pkg_failed = untried; then | |
7977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7978 | $as_echo "no" >&6; } | |
7979 | $bailout | |
7980 | else | |
7981 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
7982 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7984 | $as_echo "yes" >&6; } | |
7985 | HAVE_CPG=yes | |
7986 | fi | |
dd1f2c09 MB |
7987 | fi |
7988 | ||
f11781c5 | 7989 | if test x$CHECKDLM = xyes; then |
dd1f2c09 | 7990 | |
f11781c5 AK |
7991 | pkg_failed=no |
7992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5 | |
7993 | $as_echo_n "checking for DLM... " >&6; } | |
7994 | ||
7995 | if test -n "$DLM_CFLAGS"; then | |
7996 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
7997 | elif test -n "$PKG_CONFIG"; then | |
7998 | if test -n "$PKG_CONFIG" && \ | |
7999 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8000 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
dd1f2c09 | 8001 | ac_status=$? |
f11781c5 AK |
8002 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8003 | test $ac_status = 0; }; then | |
8004 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
dd1f2c09 | 8005 | else |
f11781c5 AK |
8006 | pkg_failed=yes |
8007 | fi | |
8008 | else | |
8009 | pkg_failed=untried | |
8010 | fi | |
8011 | if test -n "$DLM_LIBS"; then | |
8012 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
8013 | elif test -n "$PKG_CONFIG"; then | |
8014 | if test -n "$PKG_CONFIG" && \ | |
8015 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8016 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
8017 | ac_status=$? | |
8018 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8019 | test $ac_status = 0; }; then | |
8020 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
8021 | else | |
8022 | pkg_failed=yes | |
8023 | fi | |
8024 | else | |
8025 | pkg_failed=untried | |
dd1f2c09 MB |
8026 | fi |
8027 | ||
dd1f2c09 | 8028 | |
dd1f2c09 | 8029 | |
f11781c5 AK |
8030 | if test $pkg_failed = yes; then |
8031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8032 | $as_echo "no" >&6; } | |
8033 | ||
8034 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8035 | _pkg_short_errors_supported=yes | |
dd1f2c09 | 8036 | else |
f11781c5 | 8037 | _pkg_short_errors_supported=no |
dd1f2c09 | 8038 | fi |
f11781c5 AK |
8039 | if test $_pkg_short_errors_supported = yes; then |
8040 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
8041 | else | |
8042 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
8043 | fi | |
8044 | # Put the nasty error message in config.log where it belongs | |
8045 | echo "$DLM_PKG_ERRORS" >&5 | |
dd1f2c09 | 8046 | |
f11781c5 AK |
8047 | NOTFOUND=0 |
8048 | for ac_header in libdlm.h | |
8049 | do : | |
8050 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8051 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
dd1f2c09 | 8052 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 8053 | #define HAVE_LIBDLM_H 1 |
dd1f2c09 MB |
8054 | _ACEOF |
8055 | ||
f11781c5 AK |
8056 | else |
8057 | $bailout | |
dd1f2c09 | 8058 | fi |
f8f6ec92 ZK |
8059 | |
8060 | done | |
8061 | ||
f11781c5 AK |
8062 | check_lib_no_libs dlm dlm_lock -lpthread |
8063 | if test $NOTFOUND = 0; then | |
8064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8065 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8066 | DLM_LIBS="-ldlm -lpthread" | |
8067 | HAVE_DLM=yes | |
8068 | fi | |
8069 | elif test $pkg_failed = untried; then | |
8070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8071 | $as_echo "no" >&6; } | |
8072 | NOTFOUND=0 | |
8073 | for ac_header in libdlm.h | |
8074 | do : | |
8075 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8076 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
8077 | cat >>confdefs.h <<_ACEOF | |
8078 | #define HAVE_LIBDLM_H 1 | |
f8f6ec92 ZK |
8079 | _ACEOF |
8080 | ||
f8f6ec92 | 8081 | else |
f11781c5 | 8082 | $bailout |
ad6254c5 AK |
8083 | fi |
8084 | ||
f11781c5 | 8085 | done |
8b1a3214 | 8086 | |
f11781c5 AK |
8087 | check_lib_no_libs dlm dlm_lock -lpthread |
8088 | if test $NOTFOUND = 0; then | |
8089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8090 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8091 | DLM_LIBS="-ldlm -lpthread" | |
8092 | HAVE_DLM=yes | |
8093 | fi | |
8b1a3214 | 8094 | else |
f11781c5 AK |
8095 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS |
8096 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8098 | $as_echo "yes" >&6; } | |
8099 | HAVE_DLM=yes | |
8b1a3214 | 8100 | fi |
8b1a3214 AK |
8101 | fi |
8102 | ||
f11781c5 AK |
8103 | if test x$CLVMD = xall; then |
8104 | CLVMD=none | |
8105 | CLVMD_CMANAGERS="" | |
8106 | CLVMD_NEEDS_QDISKD=no | |
8107 | if test x$HAVE_CCS = xyes && \ | |
8108 | test x$HAVE_GULM = xyes; then | |
8109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd gulm cluster manager" >&5 | |
8110 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
8111 | CLVMD="$CLVMD,gulm" | |
8112 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd" | |
8113 | CLVMD_NEEDS_QDISKD=yes | |
8114 | fi | |
8115 | if test x$HAVE_CMAN = xyes && \ | |
8116 | test x$HAVE_DLM = xyes; then | |
8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5 | |
8118 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
8119 | CLVMD="$CLVMD,cman" | |
8120 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
8121 | CLVMD_NEEDS_QDISKD=yes | |
8122 | fi | |
8123 | if test x$HAVE_COROSYNC = xyes && \ | |
8124 | test x$HAVE_QUORUM = xyes && \ | |
8125 | test x$HAVE_CPG = xyes && \ | |
8126 | test x$HAVE_DLM = xyes && \ | |
8127 | test x$HAVE_CONFDB = xyes; then | |
8128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5 | |
8129 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
8130 | CLVMD="$CLVMD,corosync" | |
8131 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
8132 | fi | |
8133 | if test x$HAVE_COROSYNC = xyes && \ | |
8134 | test x$HAVE_CPG = xyes && \ | |
8135 | test x$HAVE_SALCK = xyes; then | |
8136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5 | |
8137 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
8138 | CLVMD="$CLVMD,openais" | |
8139 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
8140 | fi | |
8141 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
8142 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
8143 | fi | |
8144 | if test x$CLVMD = xnone; then | |
8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5 | |
8146 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
8b1a3214 AK |
8147 | fi |
8148 | fi | |
8149 | ||
ad6254c5 | 8150 | ################################################################################ |
f11781c5 | 8151 | if test "x$CLVMD" != xnone; then |
ad6254c5 | 8152 | |
f11781c5 AK |
8153 | # Check whether --with-clvmd-pidfile was given. |
8154 | if test "${with_clvmd_pidfile+set}" = set; then : | |
8155 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
ad6254c5 | 8156 | else |
f11781c5 | 8157 | CLVMD_PIDFILE="/var/run/clvmd.pid" |
ad6254c5 | 8158 | fi |
7a197a62 | 8159 | |
ad6254c5 | 8160 | |
f11781c5 AK |
8161 | cat >>confdefs.h <<_ACEOF |
8162 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
ad6254c5 | 8163 | _ACEOF |
ad6254c5 | 8164 | |
ad6254c5 | 8165 | fi |
7a197a62 | 8166 | |
f11781c5 AK |
8167 | ################################################################################ |
8168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5 | |
8169 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
8170 | # Check whether --enable-cmirrord was given. | |
8171 | if test "${enable_cmirrord+set}" = set; then : | |
8172 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
8173 | else | |
8174 | CMIRRORD=no | |
8175 | fi | |
8176 | ||
8177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5 | |
8178 | $as_echo "$CMIRRORD" >&6; } | |
ad6254c5 | 8179 | |
f11781c5 | 8180 | BUILD_CMIRRORD=$CMIRRORD |
7a197a62 | 8181 | |
f11781c5 AK |
8182 | ################################################################################ |
8183 | if test "x$BUILD_CMIRRORD" = xyes; then | |
8184 | ||
8185 | # Check whether --with-cmirrord-pidfile was given. | |
8186 | if test "${with_cmirrord_pidfile+set}" = set; then : | |
8187 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval | |
ad6254c5 | 8188 | else |
f11781c5 | 8189 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
ad6254c5 | 8190 | fi |
ad6254c5 | 8191 | |
72b2cb61 | 8192 | |
f11781c5 AK |
8193 | cat >>confdefs.h <<_ACEOF |
8194 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
72b2cb61 AK |
8195 | _ACEOF |
8196 | ||
ad6254c5 AK |
8197 | fi |
8198 | ||
f11781c5 AK |
8199 | ################################################################################ |
8200 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
8201 | if test x$PKGCONFIG_INIT != x1; then | |
8202 | pkg_config_init | |
8203 | fi | |
ad6254c5 | 8204 | |
f11781c5 AK |
8205 | pkg_failed=no |
8206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5 | |
8207 | $as_echo_n "checking for SACKPT... " >&6; } | |
ad6254c5 | 8208 | |
f11781c5 AK |
8209 | if test -n "$SACKPT_CFLAGS"; then |
8210 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
8211 | elif test -n "$PKG_CONFIG"; then | |
8212 | if test -n "$PKG_CONFIG" && \ | |
8213 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8214 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
8215 | ac_status=$? | |
8216 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8217 | test $ac_status = 0; }; then | |
8218 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8219 | else |
f11781c5 AK |
8220 | pkg_failed=yes |
8221 | fi | |
8222 | else | |
8223 | pkg_failed=untried | |
8224 | fi | |
8225 | if test -n "$SACKPT_LIBS"; then | |
8226 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
8227 | elif test -n "$PKG_CONFIG"; then | |
8228 | if test -n "$PKG_CONFIG" && \ | |
8229 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8230 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
539f4a77 | 8231 | ac_status=$? |
f11781c5 AK |
8232 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8233 | test $ac_status = 0; }; then | |
8234 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8235 | else |
f11781c5 AK |
8236 | pkg_failed=yes |
8237 | fi | |
8238 | else | |
8239 | pkg_failed=untried | |
8240 | fi | |
539f4a77 ZK |
8241 | |
8242 | ||
539f4a77 | 8243 | |
f11781c5 AK |
8244 | if test $pkg_failed = yes; then |
8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8246 | $as_echo "no" >&6; } | |
8247 | ||
8248 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8249 | _pkg_short_errors_supported=yes | |
539f4a77 | 8250 | else |
f11781c5 | 8251 | _pkg_short_errors_supported=no |
539f4a77 | 8252 | fi |
f11781c5 AK |
8253 | if test $_pkg_short_errors_supported = yes; then |
8254 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
8255 | else | |
8256 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
8257 | fi | |
8258 | # Put the nasty error message in config.log where it belongs | |
8259 | echo "$SACKPT_PKG_ERRORS" >&5 | |
8260 | ||
8261 | as_fn_error $? "Package requirements (libSaCkpt) were not met: | |
8262 | ||
8263 | $SACKPT_PKG_ERRORS | |
8264 | ||
8265 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8266 | installed software in a non-standard prefix. | |
8267 | ||
8268 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
8269 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8270 | See the pkg-config man page for more details." "$LINENO" 5 | |
8271 | ||
8272 | elif test $pkg_failed = untried; then | |
8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8274 | $as_echo "no" >&6; } | |
8275 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8276 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8277 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8278 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8279 | path to pkg-config. | |
8280 | ||
8281 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
8282 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8283 | See the pkg-config man page for more details. | |
8284 | ||
8285 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8286 | See \`config.log' for more details" "$LINENO" 5; } | |
8287 | ||
539f4a77 | 8288 | else |
f11781c5 AK |
8289 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS |
8290 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
8291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8292 | $as_echo "yes" >&6; } | |
539f4a77 | 8293 | |
539f4a77 | 8294 | fi |
f11781c5 | 8295 | if test x$HAVE_CPG != xyes; then |
539f4a77 | 8296 | |
f11781c5 AK |
8297 | pkg_failed=no |
8298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
8299 | $as_echo_n "checking for CPG... " >&6; } | |
ad6254c5 | 8300 | |
f11781c5 AK |
8301 | if test -n "$CPG_CFLAGS"; then |
8302 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
8303 | elif test -n "$PKG_CONFIG"; then | |
8304 | if test -n "$PKG_CONFIG" && \ | |
8305 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8306 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
ad6254c5 | 8307 | ac_status=$? |
f11781c5 AK |
8308 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8309 | test $ac_status = 0; }; then | |
8310 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
ad6254c5 | 8311 | else |
f11781c5 AK |
8312 | pkg_failed=yes |
8313 | fi | |
8314 | else | |
8315 | pkg_failed=untried | |
8316 | fi | |
8317 | if test -n "$CPG_LIBS"; then | |
8318 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8319 | elif test -n "$PKG_CONFIG"; then | |
8320 | if test -n "$PKG_CONFIG" && \ | |
8321 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8322 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
8323 | ac_status=$? | |
8324 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8325 | test $ac_status = 0; }; then | |
8326 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
8327 | else | |
8328 | pkg_failed=yes | |
8329 | fi | |
8330 | else | |
8331 | pkg_failed=untried | |
8332 | fi | |
8333 | ||
8334 | ||
8335 | ||
8336 | if test $pkg_failed = yes; then | |
8337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8338 | $as_echo "no" >&6; } | |
ad6254c5 | 8339 | |
f11781c5 AK |
8340 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
8341 | _pkg_short_errors_supported=yes | |
8342 | else | |
8343 | _pkg_short_errors_supported=no | |
ad6254c5 | 8344 | fi |
f11781c5 AK |
8345 | if test $_pkg_short_errors_supported = yes; then |
8346 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8347 | else | |
8348 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8349 | fi | |
8350 | # Put the nasty error message in config.log where it belongs | |
8351 | echo "$CPG_PKG_ERRORS" >&5 | |
8352 | ||
8353 | as_fn_error $? "Package requirements (libcpg) were not met: | |
8354 | ||
8355 | $CPG_PKG_ERRORS | |
8356 | ||
8357 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8358 | installed software in a non-standard prefix. | |
8359 | ||
8360 | Alternatively, you may set the environment variables CPG_CFLAGS | |
8361 | and CPG_LIBS to avoid the need to call pkg-config. | |
8362 | See the pkg-config man page for more details." "$LINENO" 5 | |
7a197a62 | 8363 | |
f11781c5 AK |
8364 | elif test $pkg_failed = untried; then |
8365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8366 | $as_echo "no" >&6; } | |
8367 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8368 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8369 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8370 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8371 | path to pkg-config. | |
539f4a77 | 8372 | |
f11781c5 AK |
8373 | Alternatively, you may set the environment variables CPG_CFLAGS |
8374 | and CPG_LIBS to avoid the need to call pkg-config. | |
8375 | See the pkg-config man page for more details. | |
539f4a77 | 8376 | |
f11781c5 AK |
8377 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
8378 | See \`config.log' for more details" "$LINENO" 5; } | |
bc1024f8 | 8379 | |
539f4a77 | 8380 | else |
f11781c5 AK |
8381 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS |
8382 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8384 | $as_echo "yes" >&6; } | |
bc1024f8 | 8385 | |
f11781c5 AK |
8386 | fi |
8387 | fi | |
8388 | fi | |
8389 | ||
8390 | ################################################################################ | |
8391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 | |
8392 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
8393 | # Check whether --enable-debug was given. | |
8394 | if test "${enable_debug+set}" = set; then : | |
8395 | enableval=$enable_debug; DEBUG=$enableval | |
ad6254c5 | 8396 | else |
f11781c5 AK |
8397 | DEBUG=no |
8398 | fi | |
8399 | ||
8400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5 | |
8401 | $as_echo "$DEBUG" >&6; } | |
539f4a77 | 8402 | |
f11781c5 AK |
8403 | if test x$DEBUG = xyes; then |
8404 | COPTIMISE_FLAG= | |
8405 | else | |
8406 | CSCOPE_CMD= | |
06e459df JM |
8407 | fi |
8408 | ||
f11781c5 AK |
8409 | ################################################################################ |
8410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5 | |
8411 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
8412 | ||
8413 | # Check whether --with-optimisation was given. | |
8414 | if test "${with_optimisation+set}" = set; then : | |
8415 | withval=$with_optimisation; COPTIMISE_FLAG=$withval | |
539f4a77 | 8416 | fi |
539f4a77 | 8417 | |
f11781c5 AK |
8418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5 |
8419 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
539f4a77 | 8420 | |
f11781c5 AK |
8421 | ################################################################################ |
8422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5 | |
8423 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
8424 | # Check whether --enable-profiling was given. | |
8425 | if test "${enable_profiling+set}" = set; then : | |
8426 | enableval=$enable_profiling; PROFILING=$enableval | |
8427 | else | |
8428 | PROFILING=no | |
539f4a77 ZK |
8429 | fi |
8430 | ||
f11781c5 AK |
8431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5 |
8432 | $as_echo "$PROFILING" >&6; } | |
8433 | ||
8434 | if test "x$PROFILING" = xyes; then | |
8435 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8436 | # Extract the first word of "lcov", so it can be a program name with args. | |
8437 | set dummy lcov; ac_word=$2 | |
8438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8439 | $as_echo_n "checking for $ac_word... " >&6; } | |
8440 | if test "${ac_cv_path_LCOV+set}" = set; then : | |
8441 | $as_echo_n "(cached) " >&6 | |
539f4a77 | 8442 | else |
f11781c5 AK |
8443 | case $LCOV in |
8444 | [\\/]* | ?:[\\/]*) | |
8445 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8446 | ;; | |
8447 | *) | |
8448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8449 | for as_dir in $PATH | |
8450 | do | |
8451 | IFS=$as_save_IFS | |
8452 | test -z "$as_dir" && as_dir=. | |
8453 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8454 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8455 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
8456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8457 | break 2 | |
8458 | fi | |
8459 | done | |
8460 | done | |
8461 | IFS=$as_save_IFS | |
539f4a77 | 8462 | |
f11781c5 AK |
8463 | ;; |
8464 | esac | |
8465 | fi | |
8466 | LCOV=$ac_cv_path_LCOV | |
8467 | if test -n "$LCOV"; then | |
8468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 | |
8469 | $as_echo "$LCOV" >&6; } | |
8470 | else | |
8471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8472 | $as_echo "no" >&6; } | |
539f4a77 ZK |
8473 | fi |
8474 | ||
bc1024f8 | 8475 | |
f11781c5 AK |
8476 | # Extract the first word of "genhtml", so it can be a program name with args. |
8477 | set dummy genhtml; ac_word=$2 | |
8478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8479 | $as_echo_n "checking for $ac_word... " >&6; } | |
8480 | if test "${ac_cv_path_GENHTML+set}" = set; then : | |
ec6a6fbe | 8481 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8482 | else |
f11781c5 AK |
8483 | case $GENHTML in |
8484 | [\\/]* | ?:[\\/]*) | |
8485 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8486 | ;; | |
8487 | *) | |
8488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8489 | for as_dir in $PATH | |
8490 | do | |
8491 | IFS=$as_save_IFS | |
8492 | test -z "$as_dir" && as_dir=. | |
8493 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8494 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8495 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
8496 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8497 | break 2 | |
8498 | fi | |
8499 | done | |
8500 | done | |
8501 | IFS=$as_save_IFS | |
8a2fc586 | 8502 | |
f11781c5 AK |
8503 | ;; |
8504 | esac | |
8505 | fi | |
8506 | GENHTML=$ac_cv_path_GENHTML | |
8507 | if test -n "$GENHTML"; then | |
8508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 | |
8509 | $as_echo "$GENHTML" >&6; } | |
8510 | else | |
8511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8512 | $as_echo "no" >&6; } | |
8513 | fi | |
8a2fc586 | 8514 | |
8a2fc586 | 8515 | |
f11781c5 AK |
8516 | if test -z "$LCOV" -o -z "$GENHTML"; then |
8517 | as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5 | |
8518 | fi | |
8519 | # Extract the first word of "genpng", so it can be a program name with args. | |
8520 | set dummy genpng; ac_word=$2 | |
8521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8522 | $as_echo_n "checking for $ac_word... " >&6; } | |
8523 | if test "${ac_cv_path_GENPNG+set}" = set; then : | |
8524 | $as_echo_n "(cached) " >&6 | |
8525 | else | |
8526 | case $GENPNG in | |
8527 | [\\/]* | ?:[\\/]*) | |
8528 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
8529 | ;; | |
8530 | *) | |
8531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8532 | for as_dir in $PATH | |
8533 | do | |
8534 | IFS=$as_save_IFS | |
8535 | test -z "$as_dir" && as_dir=. | |
8536 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8537 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8538 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
8539 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8540 | break 2 | |
8541 | fi | |
8542 | done | |
8543 | done | |
8544 | IFS=$as_save_IFS | |
ad6254c5 | 8545 | |
f11781c5 | 8546 | ;; |
7a197a62 | 8547 | esac |
f11781c5 AK |
8548 | fi |
8549 | GENPNG=$ac_cv_path_GENPNG | |
8550 | if test -n "$GENPNG"; then | |
8551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5 | |
8552 | $as_echo "$GENPNG" >&6; } | |
ad6254c5 | 8553 | else |
f11781c5 AK |
8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8555 | $as_echo "no" >&6; } | |
8556 | fi | |
8557 | ||
8558 | ||
8559 | if test -n "$GENPNG"; then | |
8560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5 | |
8561 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
8562 | if $GENPNG --help > /dev/null 2>&1 ; then | |
8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
8564 | $as_echo "ok" >&6; } | |
8565 | GENHTML="$GENHTML --frames" | |
8566 | else | |
8567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 | |
8568 | $as_echo "not supported" >&6; } | |
8569 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5 | |
8570 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
8571 | GENPNG= | |
8572 | fi | |
8573 | fi | |
8574 | fi | |
ad6254c5 | 8575 | |
f11781c5 AK |
8576 | ################################################################################ |
8577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5 | |
8578 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
8579 | # Check whether --enable-testing was given. | |
8580 | if test "${enable_testing+set}" = set; then : | |
8581 | enableval=$enable_testing; TESTING=$enableval | |
8582 | else | |
8583 | TESTING=no | |
ad6254c5 | 8584 | fi |
7a197a62 | 8585 | |
f11781c5 AK |
8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5 |
8587 | $as_echo "$TESTING" >&6; } | |
72b2cb61 | 8588 | |
f11781c5 AK |
8589 | if test "$TESTING" = yes; then |
8590 | # Extract the first word of "ruby1.9", so it can be a program name with args. | |
8591 | set dummy ruby1.9; ac_word=$2 | |
8592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8593 | $as_echo_n "checking for $ac_word... " >&6; } | |
8594 | if test "${ac_cv_path_RUBY19+set}" = set; then : | |
8595 | $as_echo_n "(cached) " >&6 | |
8596 | else | |
8597 | case $RUBY19 in | |
8598 | [\\/]* | ?:[\\/]*) | |
8599 | ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path. | |
8600 | ;; | |
8601 | *) | |
8602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8603 | for as_dir in $PATH | |
8604 | do | |
8605 | IFS=$as_save_IFS | |
8606 | test -z "$as_dir" && as_dir=. | |
8607 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8608 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8609 | ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext" | |
8610 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8611 | break 2 | |
8612 | fi | |
bc1024f8 | 8613 | done |
f11781c5 AK |
8614 | done |
8615 | IFS=$as_save_IFS | |
ad6254c5 | 8616 | |
f11781c5 AK |
8617 | ;; |
8618 | esac | |
ad6254c5 | 8619 | fi |
f11781c5 AK |
8620 | RUBY19=$ac_cv_path_RUBY19 |
8621 | if test -n "$RUBY19"; then | |
8622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5 | |
8623 | $as_echo "$RUBY19" >&6; } | |
ad6254c5 | 8624 | else |
f11781c5 AK |
8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8626 | $as_echo "no" >&6; } | |
7a197a62 AK |
8627 | fi |
8628 | ||
ad6254c5 | 8629 | |
f11781c5 AK |
8630 | # Extract the first word of "valgrind", so it can be a program name with args. |
8631 | set dummy valgrind; ac_word=$2 | |
8632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
ec6a6fbe | 8633 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 8634 | if test "${ac_cv_path_VALGRIND+set}" = set; then : |
ec6a6fbe | 8635 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8636 | else |
f11781c5 | 8637 | case $VALGRIND in |
ad6254c5 | 8638 | [\\/]* | ?:[\\/]*) |
f11781c5 | 8639 | ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. |
ad6254c5 AK |
8640 | ;; |
8641 | *) | |
8642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8643 | for as_dir in $PATH | |
8644 | do | |
8645 | IFS=$as_save_IFS | |
8646 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 8647 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 8648 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
8649 | ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext" |
8650 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
ad6254c5 AK |
8651 | break 2 |
8652 | fi | |
8653 | done | |
f11781c5 | 8654 | done |
7a197a62 | 8655 | IFS=$as_save_IFS |
ad6254c5 AK |
8656 | |
8657 | ;; | |
8658 | esac | |
8659 | fi | |
f11781c5 AK |
8660 | VALGRIND=$ac_cv_path_VALGRIND |
8661 | if test -n "$VALGRIND"; then | |
8662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 | |
8663 | $as_echo "$VALGRIND" >&6; } | |
ad6254c5 | 8664 | else |
f11781c5 | 8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 8666 | $as_echo "no" >&6; } |
ad6254c5 AK |
8667 | fi |
8668 | ||
7a197a62 | 8669 | |
f11781c5 AK |
8670 | if test -z "$RUBY19" -o -z "$VALGRIND"; then |
8671 | as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5 | |
8672 | fi | |
8673 | fi | |
ad6254c5 | 8674 | |
f11781c5 AK |
8675 | ################################################################################ |
8676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5 | |
8677 | $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; } | |
8678 | # Check whether --enable-valgrind_pool was given. | |
8679 | if test "${enable_valgrind_pool+set}" = set; then : | |
8680 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval | |
8681 | else | |
8682 | VALGRIND_POOL=no | |
8683 | fi | |
8684 | ||
8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5 | |
8686 | $as_echo "$VALGRIND_POOL" >&6; } | |
8687 | ||
8688 | if test "$VALGRIND_POOL" = yes; then | |
8689 | for ac_header in valgrind/memcheck.h | |
8690 | do : | |
8691 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" | |
8692 | if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then : | |
8693 | cat >>confdefs.h <<_ACEOF | |
8694 | #define HAVE_VALGRIND_MEMCHECK_H 1 | |
8695 | _ACEOF | |
ad6254c5 | 8696 | |
ad6254c5 | 8697 | else |
f11781c5 | 8698 | as_fn_error $? "bailing out" "$LINENO" 5 |
7a197a62 AK |
8699 | fi |
8700 | ||
f11781c5 AK |
8701 | done |
8702 | ||
8703 | ||
8704 | $as_echo "#define VALGRIND_POOL 1" >>confdefs.h | |
8705 | ||
ad6254c5 AK |
8706 | fi |
8707 | ||
8708 | ################################################################################ | |
f11781c5 AK |
8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5 |
8710 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
8711 | # Check whether --enable-devmapper was given. | |
8712 | if test "${enable_devmapper+set}" = set; then : | |
8713 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
7a197a62 AK |
8714 | fi |
8715 | ||
f11781c5 AK |
8716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5 |
8717 | $as_echo "$DEVMAPPER" >&6; } | |
ad6254c5 | 8718 | |
f11781c5 | 8719 | if test x$DEVMAPPER = xyes; then |
ad6254c5 | 8720 | |
f11781c5 AK |
8721 | $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h |
8722 | ||
8723 | fi | |
8724 | ||
8725 | ################################################################################ | |
8726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5 | |
8727 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
8728 | # Check whether --enable-udev_sync was given. | |
8729 | if test "${enable_udev_sync+set}" = set; then : | |
8730 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
ad6254c5 | 8731 | else |
f11781c5 | 8732 | UDEV_SYNC=no |
7a197a62 | 8733 | fi |
ad6254c5 | 8734 | |
f11781c5 AK |
8735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5 |
8736 | $as_echo "$UDEV_SYNC" >&6; } | |
33f732c5 | 8737 | |
f11781c5 AK |
8738 | if test x$UDEV_SYNC = xyes; then |
8739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_queue_get_udev_is_active in -ludev" >&5 | |
8740 | $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; } | |
8741 | if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then : | |
8742 | $as_echo_n "(cached) " >&6 | |
8743 | else | |
8744 | ac_check_lib_save_LIBS=$LIBS | |
8745 | LIBS="-ludev $LIBS" | |
8746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8747 | /* end confdefs.h. */ | |
7a197a62 | 8748 | |
f11781c5 AK |
8749 | /* Override any GCC internal prototype to avoid an error. |
8750 | Use char because int might match the return type of a GCC | |
8751 | builtin and then its argument prototype would still apply. */ | |
8752 | #ifdef __cplusplus | |
8753 | extern "C" | |
8754 | #endif | |
8755 | char udev_queue_get_udev_is_active (); | |
8756 | int | |
8757 | main () | |
8758 | { | |
8759 | return udev_queue_get_udev_is_active (); | |
8760 | ; | |
8761 | return 0; | |
8762 | } | |
8763 | _ACEOF | |
8764 | if ac_fn_c_try_link "$LINENO"; then : | |
8765 | ac_cv_lib_udev_udev_queue_get_udev_is_active=yes | |
68f2de6d | 8766 | else |
f11781c5 AK |
8767 | ac_cv_lib_udev_udev_queue_get_udev_is_active=no |
8768 | fi | |
8769 | rm -f core conftest.err conftest.$ac_objext \ | |
8770 | conftest$ac_exeext conftest.$ac_ext | |
8771 | LIBS=$ac_check_lib_save_LIBS | |
8772 | fi | |
8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5 | |
8774 | $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; } | |
8775 | if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then : | |
8776 | UDEV_PC="libudev"; UDEV_LIBS="-ludev" | |
8777 | else | |
8778 | as_fn_error $? "bailing out... libudev library is required" "$LINENO" 5 | |
68f2de6d AK |
8779 | fi |
8780 | ||
8781 | ||
f11781c5 | 8782 | $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h |
68f2de6d | 8783 | |
f11781c5 AK |
8784 | fi |
8785 | ||
8786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
8787 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
8788 | # Check whether --enable-udev_rules was given. | |
8789 | if test "${enable_udev_rules+set}" = set; then : | |
8790 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
68f2de6d | 8791 | else |
f11781c5 | 8792 | UDEV_RULES=$UDEV_SYNC |
68f2de6d AK |
8793 | fi |
8794 | ||
f11781c5 AK |
8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5 |
8796 | $as_echo "$UDEV_RULES" >&6; } | |
68f2de6d | 8797 | |
a5f46f6a | 8798 | ################################################################################ |
f11781c5 AK |
8799 | # Check whether --enable-compat was given. |
8800 | if test "${enable_compat+set}" = set; then : | |
8801 | enableval=$enable_compat; DM_COMPAT=$enableval | |
8802 | else | |
8803 | DM_COMPAT=no | |
8804 | fi | |
a5f46f6a | 8805 | |
f11781c5 AK |
8806 | |
8807 | ################################################################################ | |
8808 | # Check whether --enable-units-compat was given. | |
8809 | if test "${enable_units_compat+set}" = set; then : | |
8810 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
a5f46f6a | 8811 | else |
f11781c5 | 8812 | UNITS_COMPAT=no |
a5f46f6a AK |
8813 | fi |
8814 | ||
8815 | ||
f11781c5 | 8816 | if test x$UNITS_COMPAT = xyes; then |
78ce7acc | 8817 | |
f11781c5 AK |
8818 | $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h |
8819 | ||
8820 | fi | |
8821 | ||
8822 | ################################################################################ | |
8823 | # Check whether --enable-ioctl was given. | |
8824 | if test "${enable_ioctl+set}" = set; then : | |
8825 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
78ce7acc AK |
8826 | fi |
8827 | ||
a5f46f6a | 8828 | |
ad6254c5 | 8829 | ################################################################################ |
f11781c5 AK |
8830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5 |
8831 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
8832 | # Check whether --enable-o_direct was given. | |
8833 | if test "${enable_o_direct+set}" = set; then : | |
8834 | enableval=$enable_o_direct; ODIRECT=$enableval | |
8835 | fi | |
ad6254c5 | 8836 | |
f11781c5 AK |
8837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5 |
8838 | $as_echo "$ODIRECT" >&6; } | |
8839 | ||
8840 | if test x$ODIRECT = xyes; then | |
8841 | ||
8842 | $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h | |
ad6254c5 | 8843 | |
ad6254c5 | 8844 | fi |
ad6254c5 | 8845 | |
f11781c5 AK |
8846 | ################################################################################ |
8847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5 | |
8848 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
8849 | # Check whether --enable-applib was given. | |
8850 | if test "${enable_applib+set}" = set; then : | |
8851 | enableval=$enable_applib; APPLIB=$enableval | |
8852 | else | |
8853 | APPLIB=no | |
ad6254c5 | 8854 | fi |
7a197a62 | 8855 | |
f11781c5 AK |
8856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5 |
8857 | $as_echo "$APPLIB" >&6; } | |
ad6254c5 | 8858 | |
f11781c5 AK |
8859 | test x$APPLIB = xyes \ |
8860 | && LVM2APP_LIB=-llvm2app \ | |
8861 | || LVM2APP_LIB= | |
ad6254c5 | 8862 | |
f11781c5 AK |
8863 | ################################################################################ |
8864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5 | |
8865 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
8866 | # Check whether --enable-cmdlib was given. | |
8867 | if test "${enable_cmdlib+set}" = set; then : | |
8868 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
8869 | else | |
8870 | CMDLIB=no | |
ad6254c5 | 8871 | fi |
7a197a62 | 8872 | |
f11781c5 AK |
8873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5 |
8874 | $as_echo "$CMDLIB" >&6; } | |
7a197a62 | 8875 | |
f11781c5 AK |
8876 | test x$CMDLIB = xyes \ |
8877 | && LVM2CMD_LIB=-llvm2cmd \ | |
8878 | || LVM2CMD_LIB= | |
8879 | ||
8880 | ################################################################################ | |
8881 | # Check whether --enable-pkgconfig was given. | |
8882 | if test "${enable_pkgconfig+set}" = set; then : | |
8883 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
ad6254c5 | 8884 | else |
f11781c5 | 8885 | PKGCONFIG=no |
ad6254c5 | 8886 | fi |
ad6254c5 | 8887 | |
ad6254c5 | 8888 | |
f11781c5 AK |
8889 | ################################################################################ |
8890 | # Check whether --enable-write_install was given. | |
8891 | if test "${enable_write_install+set}" = set; then : | |
8892 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
ad6254c5 | 8893 | else |
f11781c5 | 8894 | WRITE_INSTALL=no |
ad6254c5 AK |
8895 | fi |
8896 | ||
ad6254c5 | 8897 | |
f11781c5 AK |
8898 | ################################################################################ |
8899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5 | |
8900 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
8901 | # Check whether --enable-fsadm was given. | |
8902 | if test "${enable_fsadm+set}" = set; then : | |
8903 | enableval=$enable_fsadm; FSADM=$enableval | |
ad6254c5 AK |
8904 | fi |
8905 | ||
f11781c5 AK |
8906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5 |
8907 | $as_echo "$FSADM" >&6; } | |
ad6254c5 | 8908 | |
f11781c5 AK |
8909 | ################################################################################ |
8910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5 | |
8911 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
8912 | # Check whether --enable-dmeventd was given. | |
8913 | if test "${enable_dmeventd+set}" = set; then : | |
8914 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
8915 | fi | |
ad6254c5 | 8916 | |
f11781c5 AK |
8917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5 |
8918 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 8919 | |
f11781c5 | 8920 | BUILD_DMEVENTD=$DMEVENTD |
ad6254c5 | 8921 | |
f11781c5 AK |
8922 | if test x$DMEVENTD = xyes; then |
8923 | if test x$MIRRORS != xinternal; then | |
8924 | as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal | |
8925 | " "$LINENO" 5 | |
8926 | fi | |
8927 | if test x$CMDLIB = xno; then | |
8928 | as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well | |
8929 | " "$LINENO" 5 | |
8930 | fi | |
8931 | fi | |
ad6254c5 | 8932 | |
f11781c5 | 8933 | if test x$DMEVENTD = xyes; then |
ad6254c5 | 8934 | |
f11781c5 | 8935 | $as_echo "#define DMEVENTD 1" >>confdefs.h |
ad6254c5 | 8936 | |
f11781c5 | 8937 | fi |
ad6254c5 | 8938 | |
f11781c5 | 8939 | ################################################################################ |
ad6254c5 | 8940 | |
f11781c5 AK |
8941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5 |
8942 | $as_echo_n "checking for getline in -lc... " >&6; } | |
8943 | if test "${ac_cv_lib_c_getline+set}" = set; then : | |
ec6a6fbe | 8944 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8945 | else |
f11781c5 AK |
8946 | ac_check_lib_save_LIBS=$LIBS |
8947 | LIBS="-lc $LIBS" | |
8948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 8949 | /* end confdefs.h. */ |
f11781c5 AK |
8950 | |
8951 | /* Override any GCC internal prototype to avoid an error. | |
8952 | Use char because int might match the return type of a GCC | |
8953 | builtin and then its argument prototype would still apply. */ | |
8954 | #ifdef __cplusplus | |
8955 | extern "C" | |
8956 | #endif | |
8957 | char getline (); | |
8958 | int | |
8959 | main () | |
8960 | { | |
8961 | return getline (); | |
8962 | ; | |
8963 | return 0; | |
8964 | } | |
ad6254c5 | 8965 | _ACEOF |
f11781c5 AK |
8966 | if ac_fn_c_try_link "$LINENO"; then : |
8967 | ac_cv_lib_c_getline=yes | |
ad6254c5 | 8968 | else |
f11781c5 AK |
8969 | ac_cv_lib_c_getline=no |
8970 | fi | |
8971 | rm -f core conftest.err conftest.$ac_objext \ | |
8972 | conftest$ac_exeext conftest.$ac_ext | |
8973 | LIBS=$ac_check_lib_save_LIBS | |
8974 | fi | |
8975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5 | |
8976 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
8977 | if test "x$ac_cv_lib_c_getline" = x""yes; then : | |
8978 | ||
8979 | $as_echo "#define HAVE_GETLINE 1" >>confdefs.h | |
ad6254c5 | 8980 | |
ad6254c5 | 8981 | fi |
7a197a62 | 8982 | |
ad6254c5 | 8983 | |
f11781c5 AK |
8984 | ################################################################################ |
8985 | ||
8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5 | |
8987 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
8988 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then : | |
8989 | $as_echo_n "(cached) " >&6 | |
8990 | else | |
8991 | ac_check_lib_save_LIBS=$LIBS | |
8992 | LIBS="-lc $LIBS" | |
8993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 8994 | /* end confdefs.h. */ |
f11781c5 AK |
8995 | |
8996 | /* Override any GCC internal prototype to avoid an error. | |
8997 | Use char because int might match the return type of a GCC | |
8998 | builtin and then its argument prototype would still apply. */ | |
8999 | #ifdef __cplusplus | |
9000 | extern "C" | |
9001 | #endif | |
9002 | char canonicalize_file_name (); | |
9003 | int | |
9004 | main () | |
9005 | { | |
9006 | return canonicalize_file_name (); | |
9007 | ; | |
9008 | return 0; | |
9009 | } | |
ad6254c5 | 9010 | _ACEOF |
f11781c5 AK |
9011 | if ac_fn_c_try_link "$LINENO"; then : |
9012 | ac_cv_lib_c_canonicalize_file_name=yes | |
ad6254c5 | 9013 | else |
f11781c5 AK |
9014 | ac_cv_lib_c_canonicalize_file_name=no |
9015 | fi | |
9016 | rm -f core conftest.err conftest.$ac_objext \ | |
9017 | conftest$ac_exeext conftest.$ac_ext | |
9018 | LIBS=$ac_check_lib_save_LIBS | |
9019 | fi | |
9020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5 | |
9021 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9022 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then : | |
9023 | ||
9024 | $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h | |
ad6254c5 | 9025 | |
ad6254c5 | 9026 | fi |
7a197a62 | 9027 | |
ad6254c5 | 9028 | |
f11781c5 AK |
9029 | ################################################################################ |
9030 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9031 | then exec_prefix=""; | |
9032 | fi; | |
7a197a62 | 9033 | |
f11781c5 AK |
9034 | ################################################################################ |
9035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9036 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9037 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
ec6a6fbe | 9038 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9039 | else |
f11781c5 AK |
9040 | ac_check_lib_save_LIBS=$LIBS |
9041 | LIBS="-ldl $LIBS" | |
9042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9043 | /* end confdefs.h. */ | |
ad6254c5 | 9044 | |
f11781c5 AK |
9045 | /* Override any GCC internal prototype to avoid an error. |
9046 | Use char because int might match the return type of a GCC | |
9047 | builtin and then its argument prototype would still apply. */ | |
9048 | #ifdef __cplusplus | |
9049 | extern "C" | |
9050 | #endif | |
9051 | char dlopen (); | |
9052 | int | |
9053 | main () | |
9054 | { | |
9055 | return dlopen (); | |
9056 | ; | |
9057 | return 0; | |
9058 | } | |
ad6254c5 | 9059 | _ACEOF |
f11781c5 AK |
9060 | if ac_fn_c_try_link "$LINENO"; then : |
9061 | ac_cv_lib_dl_dlopen=yes | |
ad6254c5 | 9062 | else |
f11781c5 | 9063 | ac_cv_lib_dl_dlopen=no |
795ca3e5 | 9064 | fi |
f11781c5 AK |
9065 | rm -f core conftest.err conftest.$ac_objext \ |
9066 | conftest$ac_exeext conftest.$ac_ext | |
9067 | LIBS=$ac_check_lib_save_LIBS | |
9068 | fi | |
9069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9070 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9071 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
795ca3e5 | 9072 | |
ad6254c5 | 9073 | |
f11781c5 | 9074 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
ad6254c5 | 9075 | |
f11781c5 AK |
9076 | DL_LIBS="-ldl" |
9077 | HAVE_LIBDL=yes | |
9078 | else | |
795ca3e5 | 9079 | |
f11781c5 AK |
9080 | DL_LIBS= |
9081 | HAVE_LIBDL=no | |
9082 | fi | |
8106cdd5 | 9083 | |
ad6254c5 | 9084 | |
f11781c5 AK |
9085 | ################################################################################ |
9086 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9087 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
9088 | \) -a "x$STATIC_LINK" = xyes ]; | |
9089 | then as_fn_error $? "Features cannot be 'shared' when building statically | |
9090 | " "$LINENO" 5 | |
9091 | fi | |
ad6254c5 | 9092 | |
f11781c5 AK |
9093 | ################################################################################ |
9094 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
9095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 | |
9096 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
9097 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then : | |
ec6a6fbe | 9098 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9099 | else |
f11781c5 AK |
9100 | ac_check_lib_save_LIBS=$LIBS |
9101 | LIBS="-lpthread $LIBS" | |
9102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9103 | /* end confdefs.h. */ |
8a2fc586 | 9104 | |
f11781c5 AK |
9105 | /* Override any GCC internal prototype to avoid an error. |
9106 | Use char because int might match the return type of a GCC | |
9107 | builtin and then its argument prototype would still apply. */ | |
9108 | #ifdef __cplusplus | |
9109 | extern "C" | |
ad6254c5 | 9110 | #endif |
f11781c5 AK |
9111 | char pthread_mutex_lock (); |
9112 | int | |
9113 | main () | |
9114 | { | |
9115 | return pthread_mutex_lock (); | |
9116 | ; | |
9117 | return 0; | |
9118 | } | |
9119 | _ACEOF | |
9120 | if ac_fn_c_try_link "$LINENO"; then : | |
9121 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
9122 | else | |
9123 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
9124 | fi | |
9125 | rm -f core conftest.err conftest.$ac_objext \ | |
9126 | conftest$ac_exeext conftest.$ac_ext | |
9127 | LIBS=$ac_check_lib_save_LIBS | |
9128 | fi | |
9129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
9130 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
9131 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then : | |
9132 | PTHREAD_LIBS="-lpthread" | |
9133 | else | |
9134 | hard_bailout | |
9135 | fi | |
9136 | ||
9137 | fi | |
9138 | ||
9139 | ################################################################################ | |
9140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5 | |
9141 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
9142 | # Check whether --enable-selinux was given. | |
9143 | if test "${enable_selinux+set}" = set; then : | |
9144 | enableval=$enable_selinux; SELINUX=$enableval | |
9145 | fi | |
9146 | ||
9147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5 | |
9148 | $as_echo "$SELINUX" >&6; } | |
8a2fc586 | 9149 | |
f11781c5 AK |
9150 | ################################################################################ |
9151 | if test x$SELINUX = xyes; then | |
9152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5 | |
9153 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
9154 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then : | |
9155 | $as_echo_n "(cached) " >&6 | |
9156 | else | |
9157 | ac_check_lib_save_LIBS=$LIBS | |
9158 | LIBS="-lsepol $LIBS" | |
9159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9160 | /* end confdefs.h. */ | |
8a2fc586 | 9161 | |
7a197a62 AK |
9162 | /* Override any GCC internal prototype to avoid an error. |
9163 | Use char because int might match the return type of a GCC | |
9164 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9165 | #ifdef __cplusplus |
9166 | extern "C" | |
ad6254c5 | 9167 | #endif |
f11781c5 | 9168 | char sepol_check_context (); |
ad6254c5 AK |
9169 | int |
9170 | main () | |
9171 | { | |
f11781c5 | 9172 | return sepol_check_context (); |
ad6254c5 AK |
9173 | ; |
9174 | return 0; | |
9175 | } | |
9176 | _ACEOF | |
f11781c5 AK |
9177 | if ac_fn_c_try_link "$LINENO"; then : |
9178 | ac_cv_lib_sepol_sepol_check_context=yes | |
795ca3e5 | 9179 | else |
f11781c5 AK |
9180 | ac_cv_lib_sepol_sepol_check_context=no |
9181 | fi | |
9182 | rm -f core conftest.err conftest.$ac_objext \ | |
9183 | conftest$ac_exeext conftest.$ac_ext | |
9184 | LIBS=$ac_check_lib_save_LIBS | |
80992638 | 9185 | fi |
f11781c5 AK |
9186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9187 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
9188 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then : | |
7a197a62 | 9189 | |
80992638 | 9190 | |
f11781c5 AK |
9191 | $as_echo "#define HAVE_SEPOL 1" >>confdefs.h |
9192 | ||
9193 | SELINUX_LIBS="-lsepol" | |
8106cdd5 | 9194 | fi |
795ca3e5 | 9195 | |
f11781c5 AK |
9196 | |
9197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 | |
9198 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
9199 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then : | |
ec6a6fbe | 9200 | $as_echo_n "(cached) " >&6 |
25fbec5b | 9201 | else |
f11781c5 AK |
9202 | ac_check_lib_save_LIBS=$LIBS |
9203 | LIBS="-lselinux $LIBS" | |
9204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25fbec5b | 9205 | /* end confdefs.h. */ |
80992638 | 9206 | |
7a197a62 AK |
9207 | /* Override any GCC internal prototype to avoid an error. |
9208 | Use char because int might match the return type of a GCC | |
ad6254c5 | 9209 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
9210 | #ifdef __cplusplus |
9211 | extern "C" | |
9212 | #endif | |
f11781c5 | 9213 | char is_selinux_enabled (); |
ad6254c5 AK |
9214 | int |
9215 | main () | |
9216 | { | |
f11781c5 | 9217 | return is_selinux_enabled (); |
ad6254c5 AK |
9218 | ; |
9219 | return 0; | |
9220 | } | |
9221 | _ACEOF | |
f11781c5 AK |
9222 | if ac_fn_c_try_link "$LINENO"; then : |
9223 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
25fbec5b | 9224 | else |
f11781c5 | 9225 | ac_cv_lib_selinux_is_selinux_enabled=no |
25fbec5b | 9226 | fi |
f11781c5 AK |
9227 | rm -f core conftest.err conftest.$ac_objext \ |
9228 | conftest$ac_exeext conftest.$ac_ext | |
9229 | LIBS=$ac_check_lib_save_LIBS | |
25fbec5b | 9230 | fi |
f11781c5 AK |
9231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9232 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
9233 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then : | |
25fbec5b | 9234 | |
f11781c5 AK |
9235 | for ac_header in selinux/selinux.h |
9236 | do : | |
9237 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | |
9238 | if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then : | |
9239 | cat >>confdefs.h <<_ACEOF | |
9240 | #define HAVE_SELINUX_SELINUX_H 1 | |
ad6254c5 | 9241 | _ACEOF |
795ca3e5 | 9242 | |
25fbec5b | 9243 | else |
f11781c5 | 9244 | hard_bailout |
795ca3e5 | 9245 | fi |
795ca3e5 | 9246 | |
f11781c5 | 9247 | done |
795ca3e5 | 9248 | |
f11781c5 AK |
9249 | for ac_header in selinux/label.h |
9250 | do : | |
9251 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default" | |
9252 | if test "x$ac_cv_header_selinux_label_h" = x""yes; then : | |
9253 | cat >>confdefs.h <<_ACEOF | |
9254 | #define HAVE_SELINUX_LABEL_H 1 | |
ad6254c5 | 9255 | _ACEOF |
ad6254c5 | 9256 | |
ad6254c5 | 9257 | fi |
7a197a62 | 9258 | |
f11781c5 | 9259 | done |
7a197a62 | 9260 | |
ad6254c5 | 9261 | |
f11781c5 | 9262 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h |
7a197a62 | 9263 | |
f11781c5 AK |
9264 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
9265 | SELINUX_PC="libselinux" | |
9266 | HAVE_SELINUX=yes | |
ad6254c5 | 9267 | else |
8106cdd5 | 9268 | |
f11781c5 AK |
9269 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5 |
9270 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
9271 | SELINUX_LIBS= | |
9272 | SELINUX_PC= | |
9273 | HAVE_SELINUX=no | |
795ca3e5 | 9274 | fi |
ad6254c5 | 9275 | |
795ca3e5 AK |
9276 | fi |
9277 | ||
f11781c5 AK |
9278 | ################################################################################ |
9279 | if test x$REALTIME = xyes; then | |
9280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
9281 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
9282 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
ec6a6fbe | 9283 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 9284 | else |
f11781c5 AK |
9285 | ac_check_lib_save_LIBS=$LIBS |
9286 | LIBS="-lrt $LIBS" | |
9287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9288 | /* end confdefs.h. */ |
ad6254c5 | 9289 | |
f11781c5 AK |
9290 | /* Override any GCC internal prototype to avoid an error. |
9291 | Use char because int might match the return type of a GCC | |
9292 | builtin and then its argument prototype would still apply. */ | |
9293 | #ifdef __cplusplus | |
9294 | extern "C" | |
9295 | #endif | |
9296 | char clock_gettime (); | |
ad6254c5 AK |
9297 | int |
9298 | main () | |
9299 | { | |
f11781c5 | 9300 | return clock_gettime (); |
ad6254c5 AK |
9301 | ; |
9302 | return 0; | |
9303 | } | |
9304 | _ACEOF | |
f11781c5 AK |
9305 | if ac_fn_c_try_link "$LINENO"; then : |
9306 | ac_cv_lib_rt_clock_gettime=yes | |
ad6254c5 | 9307 | else |
f11781c5 | 9308 | ac_cv_lib_rt_clock_gettime=no |
ad6254c5 | 9309 | fi |
f11781c5 AK |
9310 | rm -f core conftest.err conftest.$ac_objext \ |
9311 | conftest$ac_exeext conftest.$ac_ext | |
9312 | LIBS=$ac_check_lib_save_LIBS | |
26e7f2e0 | 9313 | fi |
f11781c5 AK |
9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9315 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
9316 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
9317 | HAVE_REALTIME=yes | |
9318 | else | |
9319 | HAVE_REALTIME=no | |
8106cdd5 | 9320 | fi |
ad6254c5 | 9321 | |
ad6254c5 | 9322 | |
f11781c5 | 9323 | if test x$HAVE_REALTIME = xyes; then |
7a197a62 | 9324 | |
f11781c5 | 9325 | $as_echo "#define HAVE_REALTIME 1" >>confdefs.h |
ad6254c5 | 9326 | |
f11781c5 AK |
9327 | LIBS="-lrt $LIBS" |
9328 | else | |
9329 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5 | |
9330 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
9331 | fi | |
9332 | fi | |
9333 | ||
9334 | ################################################################################ | |
9335 | for ac_header in getopt.h | |
9336 | do : | |
9337 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
9338 | if test "x$ac_cv_header_getopt_h" = x""yes; then : | |
9339 | cat >>confdefs.h <<_ACEOF | |
9340 | #define HAVE_GETOPT_H 1 | |
9341 | _ACEOF | |
9342 | ||
9343 | $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h | |
ad6254c5 | 9344 | |
ad6254c5 | 9345 | fi |
7a197a62 | 9346 | |
f11781c5 | 9347 | done |
ad6254c5 | 9348 | |
7a197a62 | 9349 | |
f11781c5 AK |
9350 | ################################################################################ |
9351 | if test x$READLINE != xno; then | |
9352 | lvm_saved_libs=$LIBS | |
9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
9354 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
9355 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ec6a6fbe | 9356 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9357 | else |
f11781c5 AK |
9358 | ac_func_search_save_LIBS=$LIBS |
9359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9360 | /* end confdefs.h. */ | |
ad6254c5 | 9361 | |
f11781c5 AK |
9362 | /* Override any GCC internal prototype to avoid an error. |
9363 | Use char because int might match the return type of a GCC | |
9364 | builtin and then its argument prototype would still apply. */ | |
9365 | #ifdef __cplusplus | |
9366 | extern "C" | |
9367 | #endif | |
9368 | char tgetent (); | |
9369 | int | |
9370 | main () | |
9371 | { | |
9372 | return tgetent (); | |
9373 | ; | |
9374 | return 0; | |
9375 | } | |
ad6254c5 | 9376 | _ACEOF |
f11781c5 AK |
9377 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
9378 | if test -z "$ac_lib"; then | |
9379 | ac_res="none required" | |
9380 | else | |
9381 | ac_res=-l$ac_lib | |
9382 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9383 | fi | |
9384 | if ac_fn_c_try_link "$LINENO"; then : | |
9385 | ac_cv_search_tgetent=$ac_res | |
9386 | fi | |
9387 | rm -f core conftest.err conftest.$ac_objext \ | |
9388 | conftest$ac_exeext | |
9389 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
9390 | break | |
9391 | fi | |
9392 | done | |
9393 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ad6254c5 | 9394 | |
80992638 | 9395 | else |
f11781c5 | 9396 | ac_cv_search_tgetent=no |
b896caa1 | 9397 | fi |
f11781c5 AK |
9398 | rm conftest.$ac_ext |
9399 | LIBS=$ac_func_search_save_LIBS | |
9400 | fi | |
9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
9402 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
9403 | ac_res=$ac_cv_search_tgetent | |
9404 | if test "$ac_res" != no; then : | |
9405 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9406 | READLINE_LIBS=$ac_cv_search_tgetent | |
9407 | else | |
ad6254c5 | 9408 | |
f11781c5 AK |
9409 | if test "$READLINE" = yes; then |
9410 | as_fn_error $? "termcap could not be found which is required for the | |
9411 | --enable-readline option (which is enabled by default). Either disable readline | |
9412 | support with --disable-readline or download and install termcap from: | |
9413 | ftp.gnu.org/gnu/termcap | |
9414 | Note: if you are using precompiled packages you will also need the development | |
9415 | package as well (which may be called termcap-devel or something similar). | |
9416 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9417 | not found either - but you could try installing that as well." "$LINENO" 5 | |
9418 | fi | |
9419 | fi | |
b896caa1 | 9420 | |
f11781c5 AK |
9421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 |
9422 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
9423 | if test "${ac_cv_lib_readline_readline+set}" = set; then : | |
ec6a6fbe | 9424 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9425 | else |
f11781c5 AK |
9426 | ac_check_lib_save_LIBS=$LIBS |
9427 | LIBS="-lreadline $LIBS" | |
9428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9429 | /* end confdefs.h. */ |
8a2fc586 | 9430 | |
f11781c5 AK |
9431 | /* Override any GCC internal prototype to avoid an error. |
9432 | Use char because int might match the return type of a GCC | |
9433 | builtin and then its argument prototype would still apply. */ | |
9434 | #ifdef __cplusplus | |
9435 | extern "C" | |
ad6254c5 | 9436 | #endif |
f11781c5 AK |
9437 | char readline (); |
9438 | int | |
9439 | main () | |
9440 | { | |
9441 | return readline (); | |
9442 | ; | |
9443 | return 0; | |
9444 | } | |
9445 | _ACEOF | |
9446 | if ac_fn_c_try_link "$LINENO"; then : | |
9447 | ac_cv_lib_readline_readline=yes | |
9448 | else | |
9449 | ac_cv_lib_readline_readline=no | |
9450 | fi | |
9451 | rm -f core conftest.err conftest.$ac_objext \ | |
9452 | conftest$ac_exeext conftest.$ac_ext | |
9453 | LIBS=$ac_check_lib_save_LIBS | |
9454 | fi | |
9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
9456 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
9457 | if test "x$ac_cv_lib_readline_readline" = x""yes; then : | |
9458 | ||
8a2fc586 | 9459 | |
f11781c5 AK |
9460 | $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h |
9461 | ||
9462 | LIBS=$lvm_saved_libs | |
9463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5 | |
9464 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
9465 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then : | |
9466 | $as_echo_n "(cached) " >&6 | |
9467 | else | |
9468 | ac_check_lib_save_LIBS=$LIBS | |
9469 | LIBS="-lreadline $LIBS" | |
9470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9471 | /* end confdefs.h. */ | |
8a2fc586 | 9472 | |
7a197a62 AK |
9473 | /* Override any GCC internal prototype to avoid an error. |
9474 | Use char because int might match the return type of a GCC | |
9475 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9476 | #ifdef __cplusplus |
9477 | extern "C" | |
ad6254c5 | 9478 | #endif |
f11781c5 | 9479 | char rl_line_buffer (); |
ad6254c5 AK |
9480 | int |
9481 | main () | |
9482 | { | |
f11781c5 | 9483 | return rl_line_buffer (); |
ad6254c5 AK |
9484 | ; |
9485 | return 0; | |
9486 | } | |
9487 | _ACEOF | |
f11781c5 AK |
9488 | if ac_fn_c_try_link "$LINENO"; then : |
9489 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 9490 | else |
f11781c5 AK |
9491 | ac_cv_lib_readline_rl_line_buffer=no |
9492 | fi | |
9493 | rm -f core conftest.err conftest.$ac_objext \ | |
9494 | conftest$ac_exeext conftest.$ac_ext | |
9495 | LIBS=$ac_check_lib_save_LIBS | |
9496 | fi | |
9497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
9498 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
9499 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then : | |
9500 | READLINE_LIBS="-lreadline" | |
9501 | else | |
9502 | ||
9503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
9504 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
9505 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
ad6254c5 | 9506 | |
ad6254c5 | 9507 | fi |
7a197a62 | 9508 | |
f11781c5 AK |
9509 | else |
9510 | ||
9511 | READLINE_LIBS= | |
9512 | if test "$READLINE" = yes; then | |
9513 | as_fn_error $? "GNU Readline could not be found which is required for the | |
9514 | --enable-readline option (which is enabled by default). Either disable readline | |
9515 | support with --disable-readline or download and install readline from: | |
9516 | ftp.gnu.org/gnu/readline | |
9517 | Note: if you are using precompiled packages you will also need the development | |
9518 | package as well (which may be called readline-devel or something similar)." "$LINENO" 5 | |
9519 | fi | |
ad6254c5 | 9520 | fi |
f11781c5 AK |
9521 | |
9522 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
9523 | for ac_func in rl_completion_matches | |
9524 | do : | |
9525 | ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" | |
9526 | if test "x$ac_cv_func_rl_completion_matches" = x""yes; then : | |
ad6254c5 | 9527 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 9528 | #define HAVE_RL_COMPLETION_MATCHES 1 |
ad6254c5 AK |
9529 | _ACEOF |
9530 | ||
ad6254c5 AK |
9531 | fi |
9532 | done | |
9533 | ||
f11781c5 | 9534 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
9535 | fi |
9536 | ||
f11781c5 AK |
9537 | ################################################################################ |
9538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5 | |
9539 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
9540 | # Check whether --enable-nls was given. | |
9541 | if test "${enable_nls+set}" = set; then : | |
9542 | enableval=$enable_nls; INTL=$enableval | |
9543 | else | |
9544 | INTL=no | |
9545 | fi | |
d911ec67 | 9546 | |
f11781c5 AK |
9547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5 |
9548 | $as_echo "$INTL" >&6; } | |
9549 | ||
9550 | if test x$INTL = xyes; then | |
9551 | # FIXME - Move this - can be device-mapper too | |
9552 | INTL_PACKAGE="lvm2" | |
9553 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9554 | set dummy msgfmt; ac_word=$2 | |
9555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9556 | $as_echo_n "checking for $ac_word... " >&6; } | |
9557 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
d911ec67 | 9558 | $as_echo_n "(cached) " >&6 |
d911ec67 | 9559 | else |
f11781c5 AK |
9560 | case $MSGFMT in |
9561 | [\\/]* | ?:[\\/]*) | |
9562 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9563 | ;; | |
9564 | *) | |
9565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9566 | for as_dir in $PATH | |
9567 | do | |
9568 | IFS=$as_save_IFS | |
9569 | test -z "$as_dir" && as_dir=. | |
9570 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9571 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9572 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
9573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9574 | break 2 | |
9575 | fi | |
9576 | done | |
9577 | done | |
9578 | IFS=$as_save_IFS | |
9579 | ||
9580 | ;; | |
d911ec67 | 9581 | esac |
f11781c5 AK |
9582 | fi |
9583 | MSGFMT=$ac_cv_path_MSGFMT | |
9584 | if test -n "$MSGFMT"; then | |
9585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
9586 | $as_echo "$MSGFMT" >&6; } | |
d911ec67 | 9587 | else |
f11781c5 AK |
9588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9589 | $as_echo "no" >&6; } | |
9590 | fi | |
d911ec67 | 9591 | |
f11781c5 AK |
9592 | |
9593 | if [ "x$MSGFMT" == x ]; | |
9594 | then as_fn_error $? "msgfmt not found in path $PATH | |
9595 | " "$LINENO" 5 | |
9596 | fi; | |
9597 | ||
9598 | ||
9599 | # Check whether --with-localedir was given. | |
9600 | if test "${with_localedir+set}" = set; then : | |
9601 | withval=$with_localedir; LOCALEDIR=$withval | |
9602 | else | |
9603 | LOCALEDIR='${prefix}/share/locale' | |
9604 | fi | |
9605 | ||
9606 | fi | |
9607 | ||
9608 | ################################################################################ | |
9609 | ||
9610 | # Check whether --with-confdir was given. | |
9611 | if test "${with_confdir+set}" = set; then : | |
9612 | withval=$with_confdir; CONFDIR=$withval | |
9613 | else | |
9614 | CONFDIR="/etc" | |
9615 | fi | |
9616 | ||
9617 | ||
9618 | ||
9619 | # Check whether --with-staticdir was given. | |
9620 | if test "${with_staticdir+set}" = set; then : | |
9621 | withval=$with_staticdir; STATICDIR=$withval | |
9622 | else | |
9623 | STATICDIR='${exec_prefix}/sbin' | |
9624 | fi | |
9625 | ||
9626 | ||
9627 | ||
9628 | # Check whether --with-usrlibdir was given. | |
9629 | if test "${with_usrlibdir+set}" = set; then : | |
9630 | withval=$with_usrlibdir; usrlibdir=$withval | |
9631 | else | |
9632 | usrlibdir='${prefix}/lib' | |
d911ec67 AK |
9633 | fi |
9634 | ||
d911ec67 | 9635 | |
d911ec67 | 9636 | |
f11781c5 AK |
9637 | # Check whether --with-usrsbindir was given. |
9638 | if test "${with_usrsbindir+set}" = set; then : | |
9639 | withval=$with_usrsbindir; usrsbindir=$withval | |
9640 | else | |
9641 | usrsbindir='${prefix}/sbin' | |
d911ec67 AK |
9642 | fi |
9643 | ||
d911ec67 | 9644 | |
f11781c5 | 9645 | ################################################################################ |
d911ec67 | 9646 | |
f11781c5 AK |
9647 | # Check whether --with-udev_prefix was given. |
9648 | if test "${with_udev_prefix+set}" = set; then : | |
9649 | withval=$with_udev_prefix; udev_prefix=$withval | |
d911ec67 | 9650 | else |
f11781c5 | 9651 | udev_prefix='${exec_prefix}' |
d911ec67 | 9652 | fi |
d911ec67 | 9653 | |
f11781c5 AK |
9654 | |
9655 | ||
9656 | # Check whether --with-udevdir was given. | |
9657 | if test "${with_udevdir+set}" = set; then : | |
9658 | withval=$with_udevdir; udevdir=$withval | |
9659 | else | |
9660 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
d911ec67 | 9661 | fi |
f11781c5 AK |
9662 | |
9663 | ||
9664 | ################################################################################ | |
9665 | if test x$READLINE = xyes; then | |
9666 | for ac_header in readline/readline.h readline/history.h | |
9667 | do : | |
9668 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9669 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9670 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
d911ec67 AK |
9671 | cat >>confdefs.h <<_ACEOF |
9672 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9673 | _ACEOF | |
9674 | ||
9675 | else | |
f11781c5 | 9676 | as_fn_error $? "bailing out" "$LINENO" 5 |
d911ec67 AK |
9677 | fi |
9678 | ||
9679 | done | |
9680 | ||
9681 | fi | |
9682 | ||
f11781c5 AK |
9683 | if test x$CLVMD != xnone; then |
9684 | 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 | |
9685 | do : | |
9686 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9687 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9688 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9689 | cat >>confdefs.h <<_ACEOF | |
9690 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 9691 | _ACEOF |
ad6254c5 | 9692 | |
f11781c5 AK |
9693 | else |
9694 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9695 | fi |
7a197a62 | 9696 | |
f11781c5 | 9697 | done |
ad6254c5 | 9698 | |
f11781c5 AK |
9699 | for ac_func in dup2 getmntent memmove select socket |
9700 | do : | |
9701 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9702 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9703 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9704 | cat >>confdefs.h <<_ACEOF | |
9705 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ad6254c5 | 9706 | _ACEOF |
ad6254c5 | 9707 | |
f11781c5 AK |
9708 | else |
9709 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9710 | fi |
f11781c5 | 9711 | done |
7a197a62 | 9712 | |
f11781c5 AK |
9713 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
9714 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
9715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 | |
9716 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
9717 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9718 | $as_echo_n "(cached) " >&6 | |
9719 | else | |
9720 | ac_func_search_save_LIBS=$LIBS | |
9721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9722 | /* end confdefs.h. */ | |
ad6254c5 | 9723 | |
f11781c5 AK |
9724 | /* Override any GCC internal prototype to avoid an error. |
9725 | Use char because int might match the return type of a GCC | |
9726 | builtin and then its argument prototype would still apply. */ | |
9727 | #ifdef __cplusplus | |
9728 | extern "C" | |
9729 | #endif | |
9730 | char getmntent (); | |
9731 | int | |
9732 | main () | |
9733 | { | |
9734 | return getmntent (); | |
9735 | ; | |
9736 | return 0; | |
9737 | } | |
9738 | _ACEOF | |
9739 | for ac_lib in '' sun seq gen; do | |
9740 | if test -z "$ac_lib"; then | |
9741 | ac_res="none required" | |
9742 | else | |
9743 | ac_res=-l$ac_lib | |
9744 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9745 | fi | |
9746 | if ac_fn_c_try_link "$LINENO"; then : | |
9747 | ac_cv_search_getmntent=$ac_res | |
9748 | fi | |
9749 | rm -f core conftest.err conftest.$ac_objext \ | |
9750 | conftest$ac_exeext | |
9751 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9752 | break | |
9753 | fi | |
9754 | done | |
9755 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
7a197a62 | 9756 | |
ad6254c5 | 9757 | else |
f11781c5 | 9758 | ac_cv_search_getmntent=no |
795ca3e5 | 9759 | fi |
f11781c5 AK |
9760 | rm conftest.$ac_ext |
9761 | LIBS=$ac_func_search_save_LIBS | |
9762 | fi | |
9763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 | |
9764 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
9765 | ac_res=$ac_cv_search_getmntent | |
9766 | if test "$ac_res" != no; then : | |
9767 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9768 | ac_cv_func_getmntent=yes | |
9769 | ||
9770 | $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h | |
80992638 | 9771 | |
f11781c5 AK |
9772 | else |
9773 | ac_cv_func_getmntent=no | |
8106cdd5 | 9774 | fi |
f11781c5 AK |
9775 | |
9776 | ||
9777 | for ac_header in sys/select.h sys/socket.h | |
9778 | do : | |
9779 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9780 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9781 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
ad6254c5 | 9782 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9783 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9784 | _ACEOF |
795ca3e5 | 9785 | |
795ca3e5 AK |
9786 | fi |
9787 | ||
ad6254c5 | 9788 | done |
80992638 | 9789 | |
f11781c5 AK |
9790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
9791 | $as_echo_n "checking types of arguments for select... " >&6; } | |
9792 | if test "${ac_cv_func_select_args+set}" = set; then : | |
ec6a6fbe | 9793 | $as_echo_n "(cached) " >&6 |
83912faa | 9794 | else |
f11781c5 AK |
9795 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
9796 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | |
9797 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
9798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 AK |
9799 | /* end confdefs.h. */ |
9800 | $ac_includes_default | |
f11781c5 AK |
9801 | #ifdef HAVE_SYS_SELECT_H |
9802 | # include <sys/select.h> | |
9803 | #endif | |
9804 | #ifdef HAVE_SYS_SOCKET_H | |
9805 | # include <sys/socket.h> | |
9806 | #endif | |
9807 | ||
9808 | int | |
9809 | main () | |
9810 | { | |
9811 | extern int select ($ac_arg1, | |
9812 | $ac_arg234, $ac_arg234, $ac_arg234, | |
9813 | $ac_arg5); | |
9814 | ; | |
9815 | return 0; | |
9816 | } | |
ad6254c5 | 9817 | _ACEOF |
f11781c5 AK |
9818 | if ac_fn_c_try_compile "$LINENO"; then : |
9819 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
9820 | fi | |
9821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9822 | done | |
9823 | done | |
9824 | done | |
9825 | # Provide a safe default value. | |
9826 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
ad6254c5 | 9827 | |
ad6254c5 | 9828 | fi |
f11781c5 AK |
9829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
9830 | $as_echo "$ac_cv_func_select_args" >&6; } | |
9831 | ac_save_IFS=$IFS; IFS=',' | |
9832 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
9833 | IFS=$ac_save_IFS | |
9834 | shift | |
7a197a62 | 9835 | |
f11781c5 AK |
9836 | cat >>confdefs.h <<_ACEOF |
9837 | #define SELECT_TYPE_ARG1 $1 | |
9838 | _ACEOF | |
ad6254c5 | 9839 | |
f11781c5 AK |
9840 | |
9841 | cat >>confdefs.h <<_ACEOF | |
9842 | #define SELECT_TYPE_ARG234 ($2) | |
ad6254c5 | 9843 | _ACEOF |
f11781c5 AK |
9844 | |
9845 | ||
9846 | cat >>confdefs.h <<_ACEOF | |
9847 | #define SELECT_TYPE_ARG5 ($3) | |
ad6254c5 | 9848 | _ACEOF |
ad6254c5 | 9849 | |
f11781c5 AK |
9850 | rm -f conftest* |
9851 | ||
ad6254c5 | 9852 | fi |
7a197a62 | 9853 | |
f11781c5 AK |
9854 | if test x$CLUSTER != xnone; then |
9855 | for ac_header in sys/socket.h sys/un.h | |
9856 | do : | |
9857 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9858 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9859 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9860 | cat >>confdefs.h <<_ACEOF | |
9861 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9862 | _ACEOF | |
ad6254c5 | 9863 | |
f11781c5 AK |
9864 | else |
9865 | as_fn_error $? "bailing out" "$LINENO" 5 | |
9866 | fi | |
9867 | ||
9868 | done | |
9869 | ||
9870 | for ac_func in socket | |
9871 | do : | |
9872 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" | |
9873 | if test "x$ac_cv_func_socket" = x""yes; then : | |
9874 | cat >>confdefs.h <<_ACEOF | |
9875 | #define HAVE_SOCKET 1 | |
9876 | _ACEOF | |
7a197a62 | 9877 | |
80992638 | 9878 | else |
f11781c5 | 9879 | as_fn_error $? "bailing out" "$LINENO" 5 |
83912faa | 9880 | fi |
f11781c5 | 9881 | done |
83912faa | 9882 | |
69792976 | 9883 | fi |
f11781c5 AK |
9884 | |
9885 | if test x$DMEVENTD = xyes; then | |
9886 | for ac_header in arpa/inet.h | |
9887 | do : | |
9888 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" | |
9889 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : | |
ad6254c5 | 9890 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 9891 | #define HAVE_ARPA_INET_H 1 |
ad6254c5 | 9892 | _ACEOF |
69792976 | 9893 | |
69792976 | 9894 | else |
f11781c5 | 9895 | as_fn_error $? "bailing out" "$LINENO" 5 |
80992638 AK |
9896 | fi |
9897 | ||
ad6254c5 | 9898 | done |
69792976 | 9899 | |
ad6254c5 AK |
9900 | fi |
9901 | ||
f11781c5 AK |
9902 | if test x$HAVE_LIBDL = xyes; then |
9903 | for ac_header in dlfcn.h | |
9904 | do : | |
9905 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
9906 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
9907 | cat >>confdefs.h <<_ACEOF | |
9908 | #define HAVE_DLFCN_H 1 | |
a5f46f6a | 9909 | _ACEOF |
a5f46f6a | 9910 | |
f11781c5 AK |
9911 | else |
9912 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a5f46f6a AK |
9913 | fi |
9914 | ||
f11781c5 | 9915 | done |
a5f46f6a | 9916 | |
a5f46f6a AK |
9917 | fi |
9918 | ||
f11781c5 AK |
9919 | if test x$INTL = xyes; then |
9920 | for ac_header in libintl.h | |
9921 | do : | |
9922 | ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" | |
9923 | if test "x$ac_cv_header_libintl_h" = x""yes; then : | |
9924 | cat >>confdefs.h <<_ACEOF | |
9925 | #define HAVE_LIBINTL_H 1 | |
9926 | _ACEOF | |
a5f46f6a | 9927 | |
a5f46f6a | 9928 | else |
f11781c5 | 9929 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a | 9930 | fi |
f11781c5 AK |
9931 | |
9932 | done | |
a5f46f6a AK |
9933 | |
9934 | fi | |
f11781c5 AK |
9935 | |
9936 | if test x$UDEV_SYNC = xyes; then | |
9937 | for ac_header in sys/ipc.h sys/sem.h | |
9938 | do : | |
9939 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9940 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9941 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a5f46f6a AK |
9942 | cat >>confdefs.h <<_ACEOF |
9943 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9944 | _ACEOF | |
9945 | ||
9946 | else | |
f11781c5 | 9947 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a AK |
9948 | fi |
9949 | ||
9950 | done | |
9951 | ||
9952 | fi | |
9953 | ||
a653923f AK |
9954 | ################################################################################ |
9955 | # Extract the first word of "modprobe", so it can be a program name with args. | |
9956 | set dummy modprobe; ac_word=$2 | |
f11781c5 | 9957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
ec6a6fbe | 9958 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 9959 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then : |
ec6a6fbe | 9960 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
9961 | else |
9962 | case $MODPROBE_CMD in | |
9963 | [\\/]* | ?:[\\/]*) | |
9964 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
9965 | ;; | |
9966 | *) | |
9967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9968 | for as_dir in $PATH | |
9969 | do | |
9970 | IFS=$as_save_IFS | |
9971 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 9972 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 9973 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 9974 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
f11781c5 | 9975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
9976 | break 2 |
9977 | fi | |
9978 | done | |
f11781c5 | 9979 | done |
7a197a62 | 9980 | IFS=$as_save_IFS |
72b2cb61 AK |
9981 | |
9982 | ;; | |
9983 | esac | |
9984 | fi | |
9985 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 9986 | if test -n "$MODPROBE_CMD"; then |
f11781c5 | 9987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5 |
ec6a6fbe | 9988 | $as_echo "$MODPROBE_CMD" >&6; } |
72b2cb61 | 9989 | else |
f11781c5 | 9990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 9991 | $as_echo "no" >&6; } |
72b2cb61 AK |
9992 | fi |
9993 | ||
a653923f | 9994 | |
7a197a62 | 9995 | |
a653923f | 9996 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
9997 | |
9998 | cat >>confdefs.h <<_ACEOF | |
9999 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
10000 | _ACEOF | |
10001 | ||
a653923f AK |
10002 | fi |
10003 | ||
b5c2529b | 10004 | |
a9b601e2 ZK |
10005 | lvm_exec_prefix=$exec_prefix |
10006 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
10007 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
10008 | ||
b5c2529b | 10009 | cat >>confdefs.h <<_ACEOF |
a9b601e2 | 10010 | #define LVM_PATH "$lvm_exec_prefix/sbin/lvm" |
b5c2529b ZK |
10011 | _ACEOF |
10012 | ||
10013 | ||
10014 | if test "$CLVMD" != none; then | |
10015 | clvmd_prefix=$ac_default_prefix | |
10016 | test "$prefix" != NONE && clvmd_prefix=$prefix | |
10017 | ||
10018 | cat >>confdefs.h <<_ACEOF | |
10019 | #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd" | |
10020 | _ACEOF | |
10021 | ||
10022 | fi | |
10023 | ||
80992638 | 10024 | ################################################################################ |
93bd259b AK |
10025 | if test "$BUILD_DMEVENTD" = yes; then |
10026 | ||
10027 | # Check whether --with-dmeventd-pidfile was given. | |
f11781c5 | 10028 | if test "${with_dmeventd_pidfile+set}" = set; then : |
71082be4 | 10029 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 10030 | else |
71082be4 | 10031 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
10032 | fi |
10033 | ||
93bd259b | 10034 | |
71082be4 ZK |
10035 | cat >>confdefs.h <<_ACEOF |
10036 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
10037 | _ACEOF | |
93bd259b | 10038 | |
71082be4 | 10039 | fi |
93bd259b AK |
10040 | |
10041 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
10042 | |
10043 | # Check whether --with-dmeventd-path was given. | |
f11781c5 | 10044 | if test "${with_dmeventd_path+set}" = set; then : |
71082be4 | 10045 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 10046 | else |
71082be4 | 10047 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
10048 | fi |
10049 | ||
93bd259b | 10050 | |
71082be4 ZK |
10051 | cat >>confdefs.h <<_ACEOF |
10052 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
10053 | _ACEOF | |
3399ae32 | 10054 | |
71082be4 | 10055 | fi |
3399ae32 | 10056 | |
8bae0a1e AK |
10057 | |
10058 | ||
8bae0a1e | 10059 | # Check whether --with-default-run-dir was given. |
f11781c5 | 10060 | if test "${with_default_run_dir+set}" = set; then : |
8bae0a1e AK |
10061 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" |
10062 | else | |
10063 | DEFAULT_RUN_DIR="/var/run/lvm" | |
10064 | fi | |
10065 | ||
10066 | cat >>confdefs.h <<_ACEOF | |
10067 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
10068 | _ACEOF | |
10069 | ||
10070 | ||
71082be4 | 10071 | ################################################################################ |
3399ae32 AK |
10072 | |
10073 | # Check whether --with-default-system-dir was given. | |
f11781c5 | 10074 | if test "${with_default_system_dir+set}" = set; then : |
71082be4 | 10075 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 10076 | else |
71082be4 | 10077 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
10078 | fi |
10079 | ||
71082be4 | 10080 | |
3399ae32 AK |
10081 | cat >>confdefs.h <<_ACEOF |
10082 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
10083 | _ACEOF | |
10084 | ||
10085 | ||
10086 | ||
3399ae32 | 10087 | # Check whether --with-default-archive-subdir was given. |
f11781c5 | 10088 | if test "${with_default_archive_subdir+set}" = set; then : |
71082be4 | 10089 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 10090 | else |
71082be4 | 10091 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
10092 | fi |
10093 | ||
71082be4 | 10094 | |
3399ae32 AK |
10095 | cat >>confdefs.h <<_ACEOF |
10096 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
10097 | _ACEOF | |
10098 | ||
10099 | ||
10100 | ||
3399ae32 | 10101 | # Check whether --with-default-backup-subdir was given. |
f11781c5 | 10102 | if test "${with_default_backup_subdir+set}" = set; then : |
71082be4 | 10103 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 10104 | else |
71082be4 | 10105 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
10106 | fi |
10107 | ||
71082be4 | 10108 | |
3399ae32 AK |
10109 | cat >>confdefs.h <<_ACEOF |
10110 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
10111 | _ACEOF | |
10112 | ||
10113 | ||
10114 | ||
3399ae32 | 10115 | # Check whether --with-default-cache-subdir was given. |
f11781c5 | 10116 | if test "${with_default_cache_subdir+set}" = set; then : |
71082be4 | 10117 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 10118 | else |
71082be4 | 10119 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
10120 | fi |
10121 | ||
71082be4 | 10122 | |
3399ae32 AK |
10123 | cat >>confdefs.h <<_ACEOF |
10124 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
10125 | _ACEOF | |
10126 | ||
10127 | ||
10128 | ||
3399ae32 | 10129 | # Check whether --with-default-locking-dir was given. |
f11781c5 | 10130 | if test "${with_default_locking_dir+set}" = set; then : |
71082be4 | 10131 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 10132 | else |
71082be4 | 10133 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
10134 | fi |
10135 | ||
71082be4 | 10136 | |
3399ae32 AK |
10137 | cat >>confdefs.h <<_ACEOF |
10138 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
10139 | _ACEOF | |
10140 | ||
10141 | ||
fea55602 DW |
10142 | ################################################################################ |
10143 | ||
10144 | # Check whether --with-default-data-alignment was given. | |
f11781c5 | 10145 | if test "${with_default_data_alignment+set}" = set; then : |
fea55602 DW |
10146 | withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval |
10147 | else | |
10148 | DEFAULT_DATA_ALIGNMENT=1 | |
10149 | fi | |
10150 | ||
10151 | ||
10152 | cat >>confdefs.h <<_ACEOF | |
10153 | #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT | |
10154 | _ACEOF | |
10155 | ||
10156 | ||
93bd259b | 10157 | ################################################################################ |
f11781c5 | 10158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5 |
ec6a6fbe | 10159 | $as_echo_n "checking for kernel interface choice... " >&6; } |
93bd259b AK |
10160 | |
10161 | # Check whether --with-interface was given. | |
f11781c5 | 10162 | if test "${with_interface+set}" = set; then : |
71082be4 | 10163 | withval=$with_interface; interface=$withval |
93bd259b | 10164 | else |
71082be4 | 10165 | interface=ioctl |
93bd259b AK |
10166 | fi |
10167 | ||
10168 | if [ "x$interface" != xioctl ]; | |
10169 | then | |
f11781c5 | 10170 | as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5 |
93bd259b | 10171 | fi |
f11781c5 | 10172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5 |
ec6a6fbe | 10173 | $as_echo "$interface" >&6; } |
93bd259b AK |
10174 | |
10175 | ################################################################################ | |
db8b5af9 | 10176 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
10177 | |
10178 | cat >>confdefs.h <<_ACEOF | |
10179 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
10180 | _ACEOF | |
10181 | ||
10182 | ||
db8b5af9 | 10183 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 10184 | |
db8b5af9 | 10185 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 10186 | |
db8b5af9 | 10187 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 10188 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
10189 | VER=`echo "$VER" | $AWK '{print $1}'` |
10190 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
10191 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
10192 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
10193 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
10194 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
10195 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 10196 | |
80992638 | 10197 | ################################################################################ |
fae0c576 | 10198 | |
83912faa | 10199 | |
795ca3e5 AK |
10200 | |
10201 | ||
10202 | ||
10203 | ||
10204 | ||
10205 | ||
5a52dca9 | 10206 | |
8ef2b021 | 10207 | |
199e490e | 10208 | |
69792976 AK |
10209 | |
10210 | ||
10211 | ||
d0191583 | 10212 | |
69792976 | 10213 | |
8106cdd5 AK |
10214 | |
10215 | ||
10216 | ||
10217 | ||
10218 | ||
d68a82ec | 10219 | |
036f273a | 10220 | |
7d1552c9 | 10221 | |
8106cdd5 | 10222 | |
0a62c911 | 10223 | |
8106cdd5 | 10224 | |
4a7f3eb2 | 10225 | |
4922197a AK |
10226 | |
10227 | ||
d8ac0fbc | 10228 | |
1a9ea74d | 10229 | |
8a2fc586 AK |
10230 | |
10231 | ||
d0191583 | 10232 | |
93bd259b AK |
10233 | |
10234 | ||
10235 | ||
10236 | ||
10237 | ||
d0191583 JM |
10238 | |
10239 | ||
10240 | ||
10241 | ||
10242 | ||
8a2fc586 | 10243 | |
19a2c6e0 | 10244 | |
f7f0854e ZK |
10245 | |
10246 | ||
3ceb7608 | 10247 | |
8ce0cbda | 10248 | |
8b1a3214 | 10249 | |
ec6a6fbe AK |
10250 | |
10251 | ||
10252 | ||
10253 | ||
e2997b73 AK |
10254 | |
10255 | ||
10256 | ||
10257 | ||
10258 | ||
10259 | ||
a946372e AK |
10260 | |
10261 | ||
10262 | ||
10263 | ||
10264 | ||
10265 | ||
10266 | ||
10267 | ||
10268 | ||
10269 | ||
10270 | ||
ec6a6fbe | 10271 | |
33f732c5 | 10272 | |
66e941e8 | 10273 | |
d3c8211f | 10274 | |
7e3fe830 | 10275 | |
a5f46f6a AK |
10276 | |
10277 | ||
10278 | ||
572fefeb | 10279 | |
90c80887 | 10280 | |
3399ae32 AK |
10281 | |
10282 | ||
10283 | ||
10284 | ||
10285 | ||
90c80887 | 10286 | |
bf456146 | 10287 | |
e1b8a236 | 10288 | |
0878503f | 10289 | |
8fea97b7 | 10290 | |
54b362f9 | 10291 | |
b1f08e51 | 10292 | |
d1e8046f | 10293 | |
fea55602 | 10294 | |
c89bc357 | 10295 | |
37ddf259 | 10296 | |
606d0858 | 10297 | |
68f2de6d AK |
10298 | |
10299 | ||
80992638 | 10300 | ################################################################################ |
d1e8046f | 10301 | 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 | 10302 | |
ad6254c5 | 10303 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
10304 | # This file is a shell script that caches the results of configure |
10305 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
10306 | # scripts and configure runs, see configure's option --config-cache. |
10307 | # It is not useful on other systems. If it contains results you don't | |
10308 | # want to keep, you may remove or edit it. | |
795ca3e5 | 10309 | # |
ad6254c5 AK |
10310 | # config.status only pays attention to the cache file if you give it |
10311 | # the --recheck option to rerun configure. | |
795ca3e5 | 10312 | # |
ad6254c5 AK |
10313 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10314 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10315 | # following values. | |
10316 | ||
10317 | _ACEOF | |
10318 | ||
795ca3e5 AK |
10319 | # The following way of writing the cache mishandles newlines in values, |
10320 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 10321 | # So, we kill variables containing newlines. |
795ca3e5 AK |
10322 | # Ultrix sh set writes to stderr and can't be redirected directly, |
10323 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
10324 | ( |
10325 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10326 | eval ac_val=\$$ac_var | |
10327 | case $ac_val in #( | |
10328 | *${as_nl}*) | |
10329 | case $ac_var in #( | |
f11781c5 | 10330 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
ec6a6fbe | 10331 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7a197a62 AK |
10332 | esac |
10333 | case $ac_var in #( | |
10334 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 10335 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
f11781c5 | 10336 | *) { eval $ac_var=; unset $ac_var;} ;; |
7a197a62 AK |
10337 | esac ;; |
10338 | esac | |
10339 | done | |
10340 | ||
ad6254c5 | 10341 | (set) 2>&1 | |
7a197a62 AK |
10342 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
10343 | *${as_nl}ac_space=\ *) | |
f11781c5 AK |
10344 | # `set' does not quote correctly, so add quotes: double-quote |
10345 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
ad6254c5 | 10346 | sed -n \ |
8a2fc586 AK |
10347 | "s/'/'\\\\''/g; |
10348 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 10349 | ;; #( |
ad6254c5 AK |
10350 | *) |
10351 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 10352 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 10353 | ;; |
7a197a62 AK |
10354 | esac | |
10355 | sort | |
10356 | ) | | |
ad6254c5 | 10357 | sed ' |
7a197a62 | 10358 | /^ac_cv_env_/b end |
ad6254c5 | 10359 | t clear |
7a197a62 | 10360 | :clear |
ad6254c5 AK |
10361 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
10362 | t end | |
7a197a62 AK |
10363 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
10364 | :end' >>confcache | |
10365 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10366 | if test -w "$cache_file"; then | |
10367 | test "x$cache_file" != "x/dev/null" && | |
f11781c5 | 10368 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
ec6a6fbe | 10369 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
ad6254c5 | 10370 | cat confcache >$cache_file |
795ca3e5 | 10371 | else |
f11781c5 | 10372 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
ec6a6fbe | 10373 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
795ca3e5 AK |
10374 | fi |
10375 | fi | |
10376 | rm -f confcache | |
10377 | ||
795ca3e5 AK |
10378 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
10379 | # Let make expand exec_prefix. | |
10380 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10381 | ||
72b2cb61 | 10382 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
10383 | |
10384 | ac_libobjs= | |
10385 | ac_ltlibobjs= | |
f11781c5 | 10386 | U= |
ad6254c5 AK |
10387 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
10388 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 10389 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 10390 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
10391 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
10392 | # will be set to the directory where LIBOBJS objects are built. | |
f11781c5 AK |
10393 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
10394 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
10395 | done |
10396 | LIBOBJS=$ac_libobjs | |
80992638 | 10397 | |
ad6254c5 AK |
10398 | LTLIBOBJS=$ac_ltlibobjs |
10399 | ||
10400 | ||
10401 | ||
10402 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 10403 | ac_write_fail=0 |
ad6254c5 AK |
10404 | ac_clean_files_save=$ac_clean_files |
10405 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
f11781c5 | 10406 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
ec6a6fbe | 10407 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
f11781c5 AK |
10408 | as_write_fail=0 |
10409 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
ad6254c5 AK |
10410 | #! $SHELL |
10411 | # Generated by $as_me. | |
795ca3e5 | 10412 | # Run this file to recreate the current configuration. |
795ca3e5 | 10413 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
10414 | # configure, is in config.log if it exists. |
10415 | ||
10416 | debug=false | |
10417 | ac_cs_recheck=false | |
10418 | ac_cs_silent=false | |
ad6254c5 | 10419 | |
f11781c5 AK |
10420 | SHELL=\${CONFIG_SHELL-$SHELL} |
10421 | export SHELL | |
10422 | _ASEOF | |
10423 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10424 | ## -------------------- ## | |
10425 | ## M4sh Initialization. ## | |
10426 | ## -------------------- ## | |
ad6254c5 | 10427 | |
25fbec5b AK |
10428 | # Be more Bourne compatible |
10429 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 10430 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
10431 | emulate sh |
10432 | NULLCMD=: | |
ec6a6fbe | 10433 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
10434 | # is contrary to our usage. Disable this feature. |
10435 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
10436 | setopt NO_GLOB_SUBST |
10437 | else | |
f11781c5 AK |
10438 | case `(set -o) 2>/dev/null` in #( |
10439 | *posix*) : | |
10440 | set -o posix ;; #( | |
10441 | *) : | |
10442 | ;; | |
25fbec5b | 10443 | esac |
7a197a62 | 10444 | fi |
25fbec5b AK |
10445 | |
10446 | ||
ec6a6fbe AK |
10447 | as_nl=' |
10448 | ' | |
10449 | export as_nl | |
10450 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10451 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10452 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10453 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
10454 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
10455 | # but without wasting forks for bash or zsh. | |
10456 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10457 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10458 | as_echo='print -r --' | |
10459 | as_echo_n='print -rn --' | |
10460 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
10461 | as_echo='printf %s\n' |
10462 | as_echo_n='printf %s' | |
10463 | else | |
10464 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10465 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10466 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 10467 | else |
ec6a6fbe AK |
10468 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
10469 | as_echo_n_body='eval | |
10470 | arg=$1; | |
f11781c5 | 10471 | case $arg in #( |
ec6a6fbe AK |
10472 | *"$as_nl"*) |
10473 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10474 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10475 | esac; | |
10476 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10477 | ' | |
10478 | export as_echo_n_body | |
10479 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 10480 | fi |
ec6a6fbe AK |
10481 | export as_echo_body |
10482 | as_echo='sh -c $as_echo_body as_echo' | |
10483 | fi | |
10484 | ||
10485 | # The user is always right. | |
10486 | if test "${PATH_SEPARATOR+set}" != set; then | |
10487 | PATH_SEPARATOR=: | |
10488 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10489 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10490 | PATH_SEPARATOR=';' | |
10491 | } | |
ad6254c5 AK |
10492 | fi |
10493 | ||
ad6254c5 | 10494 | |
7a197a62 AK |
10495 | # IFS |
10496 | # We need space, tab and new line, in precisely that order. Quoting is | |
10497 | # there to prevent editors from complaining about space-tab. | |
10498 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10499 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
10500 | IFS=" "" $as_nl" |
10501 | ||
10502 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 10503 | case $0 in #(( |
7a197a62 AK |
10504 | *[\\/]* ) as_myself=$0 ;; |
10505 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10506 | for as_dir in $PATH | |
10507 | do | |
10508 | IFS=$as_save_IFS | |
10509 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
10510 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
10511 | done | |
7a197a62 AK |
10512 | IFS=$as_save_IFS |
10513 | ||
10514 | ;; | |
10515 | esac | |
10516 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10517 | # in which case we are not to be found in the path. | |
10518 | if test "x$as_myself" = x; then | |
10519 | as_myself=$0 | |
10520 | fi | |
10521 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 10522 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 10523 | exit 1 |
7a197a62 AK |
10524 | fi |
10525 | ||
f11781c5 AK |
10526 | # Unset variables that we do not need and which cause bugs (e.g. in |
10527 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10528 | # suppresses any "Segmentation fault" message there. '((' could | |
10529 | # trigger a bug in pdksh 5.2.14. | |
10530 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10531 | do eval test x\${$as_var+set} = xset \ | |
10532 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 10533 | done |
ad6254c5 AK |
10534 | PS1='$ ' |
10535 | PS2='> ' | |
10536 | PS4='+ ' | |
10537 | ||
10538 | # NLS nuisances. | |
ec6a6fbe AK |
10539 | LC_ALL=C |
10540 | export LC_ALL | |
10541 | LANGUAGE=C | |
10542 | export LANGUAGE | |
8106cdd5 | 10543 | |
f11781c5 AK |
10544 | # CDPATH. |
10545 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10546 | ||
10547 | ||
10548 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
10549 | # ---------------------------------------- | |
10550 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
10551 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
10552 | # script with STATUS, using 1 if that was 0. | |
10553 | as_fn_error () | |
10554 | { | |
10555 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
10556 | if test "$4"; then | |
10557 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10558 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
10559 | fi | |
10560 | $as_echo "$as_me: error: $2" >&2 | |
10561 | as_fn_exit $as_status | |
10562 | } # as_fn_error | |
10563 | ||
10564 | ||
10565 | # as_fn_set_status STATUS | |
10566 | # ----------------------- | |
10567 | # Set $? to STATUS, without forking. | |
10568 | as_fn_set_status () | |
10569 | { | |
10570 | return $1 | |
10571 | } # as_fn_set_status | |
10572 | ||
10573 | # as_fn_exit STATUS | |
10574 | # ----------------- | |
10575 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10576 | as_fn_exit () | |
10577 | { | |
10578 | set +e | |
10579 | as_fn_set_status $1 | |
10580 | exit $1 | |
10581 | } # as_fn_exit | |
10582 | ||
10583 | # as_fn_unset VAR | |
10584 | # --------------- | |
10585 | # Portably unset VAR. | |
10586 | as_fn_unset () | |
10587 | { | |
10588 | { eval $1=; unset $1;} | |
10589 | } | |
10590 | as_unset=as_fn_unset | |
10591 | # as_fn_append VAR VALUE | |
10592 | # ---------------------- | |
10593 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10594 | # advantage of any shell optimizations that allow amortized linear growth over | |
10595 | # repeated appends, instead of the typical quadratic growth present in naive | |
10596 | # implementations. | |
10597 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10598 | eval 'as_fn_append () | |
10599 | { | |
10600 | eval $1+=\$2 | |
10601 | }' | |
10602 | else | |
10603 | as_fn_append () | |
10604 | { | |
10605 | eval $1=\$$1\$2 | |
10606 | } | |
10607 | fi # as_fn_append | |
10608 | ||
10609 | # as_fn_arith ARG... | |
10610 | # ------------------ | |
10611 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10612 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10613 | # must be portable across $(()) and expr. | |
10614 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10615 | eval 'as_fn_arith () | |
10616 | { | |
10617 | as_val=$(( $* )) | |
10618 | }' | |
10619 | else | |
10620 | as_fn_arith () | |
10621 | { | |
10622 | as_val=`expr "$@" || test $? -eq 1` | |
10623 | } | |
10624 | fi # as_fn_arith | |
10625 | ||
10626 | ||
7a197a62 AK |
10627 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10628 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
10629 | as_expr=expr |
10630 | else | |
10631 | as_expr=false | |
10632 | fi | |
8106cdd5 | 10633 | |
7a197a62 | 10634 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
10635 | as_basename=basename |
10636 | else | |
10637 | as_basename=false | |
10638 | fi | |
10639 | ||
f11781c5 AK |
10640 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10641 | as_dirname=dirname | |
10642 | else | |
10643 | as_dirname=false | |
10644 | fi | |
ad6254c5 | 10645 | |
7a197a62 | 10646 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
10647 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10648 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 10649 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 10650 | $as_echo X/"$0" | |
7a197a62 AK |
10651 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10652 | s//\1/ | |
10653 | q | |
10654 | } | |
10655 | /^X\/\(\/\/\)$/{ | |
10656 | s//\1/ | |
10657 | q | |
10658 | } | |
10659 | /^X\/\(\/\).*/{ | |
10660 | s//\1/ | |
10661 | q | |
10662 | } | |
10663 | s/.*/./; q'` | |
ad6254c5 | 10664 | |
f11781c5 AK |
10665 | # Avoid depending upon Character Ranges. |
10666 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10667 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10668 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10669 | as_cr_digits='0123456789' | |
10670 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7a197a62 AK |
10671 | |
10672 | ECHO_C= ECHO_N= ECHO_T= | |
f11781c5 | 10673 | case `echo -n x` in #((((( |
7a197a62 | 10674 | -n*) |
f11781c5 | 10675 | case `echo 'xy\c'` in |
7a197a62 | 10676 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
f11781c5 AK |
10677 | xy) ECHO_C='\c';; |
10678 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10679 | ECHO_T=' ';; | |
7a197a62 AK |
10680 | esac;; |
10681 | *) | |
10682 | ECHO_N='-n';; | |
ad6254c5 | 10683 | esac |
80992638 | 10684 | |
ad6254c5 | 10685 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
10686 | if test -d conf$$.dir; then |
10687 | rm -f conf$$.dir/conf$$.file | |
10688 | else | |
10689 | rm -f conf$$.dir | |
ec6a6fbe AK |
10690 | mkdir conf$$.dir 2>/dev/null |
10691 | fi | |
10692 | if (echo >conf$$.file) 2>/dev/null; then | |
10693 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10694 | as_ln_s='ln -s' | |
10695 | # ... but there are two gotchas: | |
10696 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10697 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10698 | # In both cases, we have to default to `cp -p'. | |
10699 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
10700 | as_ln_s='cp -p' | |
10701 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
10702 | as_ln_s=ln | |
10703 | else | |
ad6254c5 | 10704 | as_ln_s='cp -p' |
ec6a6fbe | 10705 | fi |
ad6254c5 AK |
10706 | else |
10707 | as_ln_s='cp -p' | |
10708 | fi | |
7a197a62 AK |
10709 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10710 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 10711 | |
f11781c5 AK |
10712 | |
10713 | # as_fn_mkdir_p | |
10714 | # ------------- | |
10715 | # Create "$as_dir" as a directory, including parents if necessary. | |
10716 | as_fn_mkdir_p () | |
10717 | { | |
10718 | ||
10719 | case $as_dir in #( | |
10720 | -*) as_dir=./$as_dir;; | |
10721 | esac | |
10722 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10723 | as_dirs= | |
10724 | while :; do | |
10725 | case $as_dir in #( | |
10726 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10727 | *) as_qdir=$as_dir;; | |
10728 | esac | |
10729 | as_dirs="'$as_qdir' $as_dirs" | |
10730 | as_dir=`$as_dirname -- "$as_dir" || | |
10731 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10732 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10733 | X"$as_dir" : 'X\(//\)$' \| \ | |
10734 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10735 | $as_echo X"$as_dir" | | |
10736 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10737 | s//\1/ | |
10738 | q | |
10739 | } | |
10740 | /^X\(\/\/\)[^/].*/{ | |
10741 | s//\1/ | |
10742 | q | |
10743 | } | |
10744 | /^X\(\/\/\)$/{ | |
10745 | s//\1/ | |
10746 | q | |
10747 | } | |
10748 | /^X\(\/\).*/{ | |
10749 | s//\1/ | |
10750 | q | |
10751 | } | |
10752 | s/.*/./; q'` | |
10753 | test -d "$as_dir" && break | |
10754 | done | |
10755 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10756 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
10757 | ||
10758 | ||
10759 | } # as_fn_mkdir_p | |
ad6254c5 | 10760 | if mkdir -p . 2>/dev/null; then |
f11781c5 | 10761 | as_mkdir_p='mkdir -p "$as_dir"' |
ad6254c5 | 10762 | else |
8a2fc586 | 10763 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
10764 | as_mkdir_p=false |
10765 | fi | |
10766 | ||
25fbec5b AK |
10767 | if test -x / >/dev/null 2>&1; then |
10768 | as_test_x='test -x' | |
7a197a62 | 10769 | else |
25fbec5b AK |
10770 | if ls -dL / >/dev/null 2>&1; then |
10771 | as_ls_L_option=L | |
10772 | else | |
10773 | as_ls_L_option= | |
10774 | fi | |
10775 | as_test_x=' | |
10776 | eval sh -c '\'' | |
10777 | if test -d "$1"; then | |
ec6a6fbe | 10778 | test -d "$1/."; |
25fbec5b | 10779 | else |
f11781c5 | 10780 | case $1 in #( |
ec6a6fbe | 10781 | -*)set "./$1";; |
25fbec5b | 10782 | esac; |
f11781c5 | 10783 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
25fbec5b AK |
10784 | ???[sx]*):;;*)false;;esac;fi |
10785 | '\'' sh | |
10786 | ' | |
7a197a62 | 10787 | fi |
25fbec5b | 10788 | as_executable_p=$as_test_x |
ad6254c5 AK |
10789 | |
10790 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 10791 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10792 | |
10793 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 10794 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10795 | |
10796 | ||
ad6254c5 | 10797 | exec 6>&1 |
f11781c5 AK |
10798 | ## ----------------------------------- ## |
10799 | ## Main body of $CONFIG_STATUS script. ## | |
10800 | ## ----------------------------------- ## | |
10801 | _ASEOF | |
10802 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
ad6254c5 | 10803 | |
f11781c5 AK |
10804 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10805 | # Save the log message, to keep $0 and so on meaningful, and to | |
ad6254c5 | 10806 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
10807 | # values after options handling. |
10808 | ac_log=" | |
ad6254c5 | 10809 | This file was extended by $as_me, which was |
f11781c5 | 10810 | generated by GNU Autoconf 2.66. Invocation command line was |
ad6254c5 AK |
10811 | |
10812 | CONFIG_FILES = $CONFIG_FILES | |
10813 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10814 | CONFIG_LINKS = $CONFIG_LINKS | |
10815 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10816 | $ $0 $@ | |
10817 | ||
7a197a62 AK |
10818 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
10819 | " | |
10820 | ||
ad6254c5 AK |
10821 | _ACEOF |
10822 | ||
ec6a6fbe AK |
10823 | case $ac_config_files in *" |
10824 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10825 | esac | |
10826 | ||
10827 | case $ac_config_headers in *" | |
10828 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10829 | esac | |
10830 | ||
10831 | ||
10832 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 10833 | # Files that config.status was made for. |
68f2de6d AK |
10834 | config_files="$ac_config_files" |
10835 | config_headers="$ac_config_headers" | |
ad6254c5 | 10836 | |
7a197a62 | 10837 | _ACEOF |
ad6254c5 | 10838 | |
ec6a6fbe | 10839 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 | 10840 | ac_cs_usage="\ |
f11781c5 AK |
10841 | \`$as_me' instantiates files and other configuration actions |
10842 | from templates according to the current configuration. Unless the files | |
10843 | and actions are specified as TAGs, all are instantiated by default. | |
ad6254c5 | 10844 | |
f11781c5 | 10845 | Usage: $0 [OPTION]... [TAG]... |
ad6254c5 AK |
10846 | |
10847 | -h, --help print this help, then exit | |
25fbec5b | 10848 | -V, --version print version number and configuration settings, then exit |
f11781c5 | 10849 | --config print configuration, then exit |
ec6a6fbe AK |
10850 | -q, --quiet, --silent |
10851 | do not print progress messages | |
ad6254c5 AK |
10852 | -d, --debug don't remove temporary files |
10853 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
10854 | --file=FILE[:TEMPLATE] |
10855 | instantiate the configuration file FILE | |
10856 | --header=FILE[:TEMPLATE] | |
10857 | instantiate the configuration header FILE | |
ad6254c5 AK |
10858 | |
10859 | Configuration files: | |
10860 | $config_files | |
10861 | ||
72b2cb61 AK |
10862 | Configuration headers: |
10863 | $config_headers | |
10864 | ||
f11781c5 | 10865 | Report bugs to the package provider." |
ad6254c5 | 10866 | |
7a197a62 | 10867 | _ACEOF |
ec6a6fbe | 10868 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
f11781c5 | 10869 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
ad6254c5 AK |
10870 | ac_cs_version="\\ |
10871 | config.status | |
f11781c5 AK |
10872 | configured by $0, generated by GNU Autoconf 2.66, |
10873 | with options \\"\$ac_cs_config\\" | |
ad6254c5 | 10874 | |
f11781c5 | 10875 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
10876 | This config.status script is free software; the Free Software Foundation |
10877 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
10878 | |
10879 | ac_pwd='$ac_pwd' | |
10880 | srcdir='$srcdir' | |
10881 | INSTALL='$INSTALL' | |
fddafd51 | 10882 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
10883 | AWK='$AWK' |
10884 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
10885 | _ACEOF |
10886 | ||
ec6a6fbe AK |
10887 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10888 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
10889 | ac_need_defaults=: |
10890 | while test $# != 0 | |
10891 | do | |
10892 | case $1 in | |
10893 | --*=*) | |
7a197a62 AK |
10894 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
10895 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
10896 | ac_shift=: |
10897 | ;; | |
7a197a62 | 10898 | *) |
ad6254c5 AK |
10899 | ac_option=$1 |
10900 | ac_optarg=$2 | |
10901 | ac_shift=shift | |
10902 | ;; | |
ad6254c5 AK |
10903 | esac |
10904 | ||
10905 | case $ac_option in | |
10906 | # Handling of the options. | |
ad6254c5 AK |
10907 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
10908 | ac_cs_recheck=: ;; | |
7a197a62 | 10909 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 10910 | $as_echo "$ac_cs_version"; exit ;; |
f11781c5 AK |
10911 | --config | --confi | --conf | --con | --co | --c ) |
10912 | $as_echo "$ac_cs_config"; exit ;; | |
7a197a62 | 10913 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
10914 | debug=: ;; |
10915 | --file | --fil | --fi | --f ) | |
10916 | $ac_shift | |
ec6a6fbe AK |
10917 | case $ac_optarg in |
10918 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10919 | esac | |
f11781c5 | 10920 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
ad6254c5 AK |
10921 | ac_need_defaults=false;; |
10922 | --header | --heade | --head | --hea ) | |
10923 | $ac_shift | |
ec6a6fbe AK |
10924 | case $ac_optarg in |
10925 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10926 | esac | |
f11781c5 | 10927 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
ad6254c5 | 10928 | ac_need_defaults=false;; |
7a197a62 AK |
10929 | --he | --h) |
10930 | # Conflict between --help and --header | |
f11781c5 AK |
10931 | as_fn_error $? "ambiguous option: \`$1' |
10932 | Try \`$0 --help' for more information.";; | |
7a197a62 | 10933 | --help | --hel | -h ) |
ec6a6fbe | 10934 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
10935 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
10936 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10937 | ac_cs_silent=: ;; | |
10938 | ||
10939 | # This is an error. | |
f11781c5 AK |
10940 | -*) as_fn_error $? "unrecognized option: \`$1' |
10941 | Try \`$0 --help' for more information." ;; | |
ad6254c5 | 10942 | |
f11781c5 | 10943 | *) as_fn_append ac_config_targets " $1" |
7a197a62 | 10944 | ac_need_defaults=false ;; |
ad6254c5 AK |
10945 | |
10946 | esac | |
10947 | shift | |
10948 | done | |
10949 | ||
10950 | ac_configure_extra_args= | |
10951 | ||
10952 | if $ac_cs_silent; then | |
10953 | exec 6>/dev/null | |
10954 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10955 | fi | |
10956 | ||
10957 | _ACEOF | |
ec6a6fbe | 10958 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 10959 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
10960 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
10961 | shift | |
10962 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
10963 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 10964 | export CONFIG_SHELL |
ec6a6fbe | 10965 | exec "\$@" |
ad6254c5 AK |
10966 | fi |
10967 | ||
10968 | _ACEOF | |
ec6a6fbe | 10969 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
10970 | exec 5>>config.log |
10971 | { | |
10972 | echo | |
10973 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10974 | ## Running $as_me. ## | |
10975 | _ASBOX | |
ec6a6fbe | 10976 | $as_echo "$ac_log" |
7a197a62 | 10977 | } >&5 |
ad6254c5 | 10978 | |
7a197a62 | 10979 | _ACEOF |
ec6a6fbe | 10980 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 10981 | _ACEOF |
ad6254c5 | 10982 | |
ec6a6fbe | 10983 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
10984 | |
10985 | # Handling of arguments. | |
ad6254c5 AK |
10986 | for ac_config_target in $ac_config_targets |
10987 | do | |
7a197a62 AK |
10988 | case $ac_config_target in |
10989 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
10990 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
10991 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
10992 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
10993 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 10994 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
10995 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
10996 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 10997 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 10998 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
10999 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
11000 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 11001 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 11002 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 11003 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
11004 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
11005 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
11006 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
11007 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11008 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11009 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 11010 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 11011 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 11012 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
11013 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
11014 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 11015 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 11016 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
11017 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
11018 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 11019 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 11020 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 11021 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
7a197a62 | 11022 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 11023 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 11024 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 11025 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 11026 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
11027 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
11028 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
d1e8046f | 11029 | "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;; |
7a197a62 | 11030 | |
f11781c5 | 11031 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
80992638 | 11032 | esac |
ad6254c5 AK |
11033 | done |
11034 | ||
7a197a62 | 11035 | |
ad6254c5 AK |
11036 | # If the user did not use the arguments to specify the items to instantiate, |
11037 | # then the envvar interface is used. Set only those that are not. | |
11038 | # We use the long form for the default assignment because of an extremely | |
11039 | # bizarre bug on SunOS 4.1.3. | |
11040 | if $ac_need_defaults; then | |
11041 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 11042 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
11043 | fi |
11044 | ||
11045 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 11046 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 11047 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
11048 | # Hook for its removal unless debugging. |
11049 | # Note that there is a small window in which the directory will not be cleaned: | |
11050 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
11051 | $debug || |
11052 | { | |
7a197a62 AK |
11053 | tmp= |
11054 | trap 'exit_status=$? | |
11055 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
11056 | ' 0 | |
f11781c5 | 11057 | trap 'as_fn_exit 1' 1 2 13 15 |
ad6254c5 | 11058 | } |
ad6254c5 AK |
11059 | # Create a (secure) tmp directory for tmp files. |
11060 | ||
11061 | { | |
7a197a62 | 11062 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
11063 | test -n "$tmp" && test -d "$tmp" |
11064 | } || | |
11065 | { | |
7a197a62 AK |
11066 | tmp=./conf$$-$RANDOM |
11067 | (umask 077 && mkdir "$tmp") | |
f11781c5 | 11068 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ad6254c5 | 11069 | |
ec6a6fbe AK |
11070 | # Set up the scripts for CONFIG_FILES section. |
11071 | # No need to generate them if there are no CONFIG_FILES. | |
11072 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 11073 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 11074 | |
68f2de6d | 11075 | |
f11781c5 AK |
11076 | ac_cr=`echo X | tr X '\015'` |
11077 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
11078 | # But we know of no other shell where ac_cr would be empty at this | |
11079 | # point, so we can use a bashism as a fallback. | |
11080 | if test "x$ac_cr" = x; then | |
11081 | eval ac_cr=\$\'\\r\' | |
11082 | fi | |
ec6a6fbe AK |
11083 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
11084 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
11085 | ac_cs_awk_cr='\\r' | |
11086 | else | |
11087 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 11088 | fi |
7a197a62 | 11089 | |
ec6a6fbe | 11090 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 11091 | _ACEOF |
7a197a62 | 11092 | |
8106cdd5 | 11093 | |
ec6a6fbe AK |
11094 | { |
11095 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
11096 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
11097 | echo "_ACEOF" | |
11098 | } >conf$$subs.sh || | |
f11781c5 AK |
11099 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
11100 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
1995c9ff AK |
11101 | ac_delim='%!_!# ' |
11102 | for ac_last_try in false false false false false :; do | |
ec6a6fbe | 11103 | . ./conf$$subs.sh || |
f11781c5 | 11104 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe AK |
11105 | |
11106 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
11107 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
11108 | break |
11109 | elif $ac_last_try; then | |
f11781c5 | 11110 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
1995c9ff AK |
11111 | else |
11112 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11113 | fi | |
11114 | done | |
ec6a6fbe AK |
11115 | rm -f conf$$subs.sh |
11116 | ||
11117 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11118 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
11119 | _ACEOF | |
11120 | sed -n ' | |
11121 | h | |
11122 | s/^/S["/; s/!.*/"]=/ | |
11123 | p | |
11124 | g | |
11125 | s/^[^!]*!// | |
11126 | :repl | |
11127 | t repl | |
11128 | s/'"$ac_delim"'$// | |
11129 | t delim | |
11130 | :nl | |
11131 | h | |
f11781c5 | 11132 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11133 | t more1 |
11134 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
11135 | p | |
11136 | n | |
11137 | b repl | |
11138 | :more1 | |
11139 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11140 | p | |
11141 | g | |
11142 | s/.\{148\}// | |
11143 | t nl | |
11144 | :delim | |
11145 | h | |
f11781c5 | 11146 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11147 | t more2 |
11148 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
11149 | p | |
11150 | b | |
11151 | :more2 | |
11152 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11153 | p | |
11154 | g | |
11155 | s/.\{148\}// | |
11156 | t delim | |
11157 | ' <conf$$subs.awk | sed ' | |
11158 | /^[^""]/{ | |
11159 | N | |
11160 | s/\n// | |
11161 | } | |
11162 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
11163 | rm -f conf$$subs.awk | |
11164 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11165 | _ACAWK | |
11166 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
11167 | for (key in S) S_is_set[key] = 1 | |
11168 | FS = "\a" | |
7a197a62 | 11169 | |
ec6a6fbe AK |
11170 | } |
11171 | { | |
11172 | line = $ 0 | |
11173 | nfields = split(line, field, "@") | |
11174 | substed = 0 | |
11175 | len = length(field[1]) | |
11176 | for (i = 2; i < nfields; i++) { | |
11177 | key = field[i] | |
11178 | keylen = length(key) | |
11179 | if (S_is_set[key]) { | |
11180 | value = S[key] | |
11181 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
11182 | len += length(value) + length(field[++i]) | |
11183 | substed = 1 | |
11184 | } else | |
11185 | len += 1 + keylen | |
11186 | } | |
11187 | ||
11188 | print line | |
11189 | } | |
fddafd51 | 11190 | |
ec6a6fbe | 11191 | _ACAWK |
1995c9ff | 11192 | _ACEOF |
ec6a6fbe AK |
11193 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11194 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
11195 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
11196 | else | |
11197 | cat | |
11198 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
f11781c5 | 11199 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7a197a62 AK |
11200 | _ACEOF |
11201 | ||
f11781c5 AK |
11202 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
11203 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7a197a62 AK |
11204 | # trailing colons and then remove the whole line if VPATH becomes empty |
11205 | # (actually we leave an empty line to preserve line numbers). | |
11206 | if test "x$srcdir" = x.; then | |
f11781c5 AK |
11207 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
11208 | h | |
11209 | s/// | |
11210 | s/^/:/ | |
11211 | s/[ ]*$/:/ | |
11212 | s/:\$(srcdir):/:/g | |
11213 | s/:\${srcdir}:/:/g | |
11214 | s/:@srcdir@:/:/g | |
11215 | s/^:*// | |
7a197a62 | 11216 | s/:*$// |
f11781c5 AK |
11217 | x |
11218 | s/\(=[ ]*\).*/\1/ | |
11219 | G | |
11220 | s/\n// | |
7a197a62 AK |
11221 | s/^[^=]*=[ ]*$// |
11222 | }' | |
11223 | fi | |
11224 | ||
ec6a6fbe | 11225 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11226 | fi # test -n "$CONFIG_FILES" |
11227 | ||
ec6a6fbe AK |
11228 | # Set up the scripts for CONFIG_HEADERS section. |
11229 | # No need to generate them if there are no CONFIG_HEADERS. | |
11230 | # This happens for instance with `./config.status Makefile'. | |
11231 | if test -n "$CONFIG_HEADERS"; then | |
11232 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
11233 | BEGIN { | |
11234 | _ACEOF | |
11235 | ||
11236 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11237 | # here-document in config.status, that substitutes the proper values into | |
11238 | # config.h.in to produce config.h. | |
11239 | ||
11240 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11241 | # handling of long lines. | |
11242 | ac_delim='%!_!# ' | |
11243 | for ac_last_try in false false :; do | |
11244 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
11245 | if test -z "$ac_t"; then | |
11246 | break | |
11247 | elif $ac_last_try; then | |
f11781c5 | 11248 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
ec6a6fbe AK |
11249 | else |
11250 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11251 | fi | |
11252 | done | |
11253 | ||
11254 | # For the awk script, D is an array of macro values keyed by name, | |
11255 | # likewise P contains macro parameters if any. Preserve backslash | |
11256 | # newline sequences. | |
11257 | ||
11258 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11259 | sed -n ' | |
11260 | s/.\{148\}/&'"$ac_delim"'/g | |
11261 | t rset | |
11262 | :rset | |
11263 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11264 | t def | |
11265 | d | |
11266 | :def | |
11267 | s/\\$// | |
11268 | t bsnl | |
11269 | s/["\\]/\\&/g | |
11270 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11271 | D["\1"]=" \3"/p | |
11272 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11273 | d | |
11274 | :bsnl | |
11275 | s/["\\]/\\&/g | |
11276 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11277 | D["\1"]=" \3\\\\\\n"\\/p | |
11278 | t cont | |
11279 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11280 | t cont | |
11281 | d | |
11282 | :cont | |
11283 | n | |
11284 | s/.\{148\}/&'"$ac_delim"'/g | |
11285 | t clear | |
11286 | :clear | |
11287 | s/\\$// | |
11288 | t bsnlc | |
11289 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11290 | d | |
11291 | :bsnlc | |
11292 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11293 | b cont | |
11294 | ' <confdefs.h | sed ' | |
11295 | s/'"$ac_delim"'/"\\\ | |
11296 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11297 | ||
11298 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11299 | for (key in D) D_is_set[key] = 1 | |
11300 | FS = "\a" | |
11301 | } | |
11302 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11303 | line = \$ 0 | |
11304 | split(line, arg, " ") | |
11305 | if (arg[1] == "#") { | |
11306 | defundef = arg[2] | |
11307 | mac1 = arg[3] | |
11308 | } else { | |
11309 | defundef = substr(arg[1], 2) | |
11310 | mac1 = arg[2] | |
11311 | } | |
11312 | split(mac1, mac2, "(") #) | |
11313 | macro = mac2[1] | |
11314 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11315 | if (D_is_set[macro]) { | |
11316 | # Preserve the white space surrounding the "#". | |
11317 | print prefix "define", macro P[macro] D[macro] | |
11318 | next | |
11319 | } else { | |
11320 | # Replace #undef with comments. This is necessary, for example, | |
11321 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11322 | # on some systems where configure will not decide to define it. | |
11323 | if (defundef == "undef") { | |
11324 | print "/*", prefix defundef, macro, "*/" | |
11325 | next | |
11326 | } | |
11327 | } | |
11328 | } | |
11329 | { print } | |
11330 | _ACAWK | |
11331 | _ACEOF | |
11332 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
f11781c5 | 11333 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
ec6a6fbe AK |
11334 | fi # test -n "$CONFIG_HEADERS" |
11335 | ||
7a197a62 | 11336 | |
ec6a6fbe AK |
11337 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
11338 | shift | |
11339 | for ac_tag | |
7a197a62 AK |
11340 | do |
11341 | case $ac_tag in | |
11342 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11343 | esac | |
11344 | case $ac_mode$ac_tag in | |
11345 | :[FHL]*:*);; | |
f11781c5 | 11346 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7a197a62 AK |
11347 | :[FH]-) ac_tag=-:-;; |
11348 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11349 | esac | |
11350 | ac_save_IFS=$IFS | |
11351 | IFS=: | |
11352 | set x $ac_tag | |
11353 | IFS=$ac_save_IFS | |
11354 | shift | |
11355 | ac_file=$1 | |
11356 | shift | |
11357 | ||
11358 | case $ac_mode in | |
11359 | :L) ac_source=$1;; | |
11360 | :[FH]) | |
11361 | ac_file_inputs= | |
11362 | for ac_f | |
11363 | do | |
11364 | case $ac_f in | |
11365 | -) ac_f="$tmp/stdin";; | |
11366 | *) # Look for the file first in the build tree, then in the source tree | |
11367 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11368 | # because $ac_f cannot contain `:'. | |
11369 | test -f "$ac_f" || | |
11370 | case $ac_f in | |
11371 | [\\/$]*) false;; | |
11372 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11373 | esac || | |
f11781c5 | 11374 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7a197a62 | 11375 | esac |
ec6a6fbe | 11376 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
f11781c5 | 11377 | as_fn_append ac_file_inputs " '$ac_f'" |
7a197a62 AK |
11378 | done |
11379 | ||
11380 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11381 | # use $as_me), people would be surprised to read: | |
11382 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
11383 | configure_input='Generated from '` |
11384 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
11385 | `' by configure.' | |
7a197a62 AK |
11386 | if test x"$ac_file" != x-; then |
11387 | configure_input="$ac_file. $configure_input" | |
f11781c5 | 11388 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
ec6a6fbe | 11389 | $as_echo "$as_me: creating $ac_file" >&6;} |
7a197a62 | 11390 | fi |
ec6a6fbe AK |
11391 | # Neutralize special characters interpreted by sed in replacement strings. |
11392 | case $configure_input in #( | |
11393 | *\&* | *\|* | *\\* ) | |
11394 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
11395 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
11396 | *) ac_sed_conf_input=$configure_input;; | |
11397 | esac | |
7a197a62 AK |
11398 | |
11399 | case $ac_tag in | |
ec6a6fbe | 11400 | *:-:* | *:-) cat >"$tmp/stdin" \ |
f11781c5 | 11401 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7a197a62 AK |
11402 | esac |
11403 | ;; | |
80992638 | 11404 | esac |
8106cdd5 | 11405 | |
7a197a62 | 11406 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 11407 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
11408 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11409 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 11410 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 11411 | $as_echo X"$ac_file" | |
7a197a62 AK |
11412 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11413 | s//\1/ | |
11414 | q | |
11415 | } | |
11416 | /^X\(\/\/\)[^/].*/{ | |
11417 | s//\1/ | |
11418 | q | |
11419 | } | |
11420 | /^X\(\/\/\)$/{ | |
11421 | s//\1/ | |
11422 | q | |
11423 | } | |
11424 | /^X\(\/\).*/{ | |
11425 | s//\1/ | |
11426 | q | |
11427 | } | |
11428 | s/.*/./; q'` | |
f11781c5 | 11429 | as_dir="$ac_dir"; as_fn_mkdir_p |
ad6254c5 AK |
11430 | ac_builddir=. |
11431 | ||
7a197a62 AK |
11432 | case "$ac_dir" in |
11433 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11434 | *) | |
ec6a6fbe | 11435 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 11436 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 11437 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
11438 | case $ac_top_builddir_sub in |
11439 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11440 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11441 | esac ;; | |
11442 | esac | |
11443 | ac_abs_top_builddir=$ac_pwd | |
11444 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11445 | # for backward compatibility: | |
11446 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
11447 | |
11448 | case $srcdir in | |
7a197a62 | 11449 | .) # We are building in place. |
ad6254c5 | 11450 | ac_srcdir=. |
7a197a62 AK |
11451 | ac_top_srcdir=$ac_top_builddir_sub |
11452 | ac_abs_top_srcdir=$ac_pwd ;; | |
11453 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 11454 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
11455 | ac_top_srcdir=$srcdir |
11456 | ac_abs_top_srcdir=$srcdir ;; | |
11457 | *) # Relative name. | |
11458 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11459 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11460 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 11461 | esac |
7a197a62 | 11462 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 11463 | |
ad6254c5 | 11464 | |
7a197a62 AK |
11465 | case $ac_mode in |
11466 | :F) | |
11467 | # | |
11468 | # CONFIG_FILE | |
11469 | # | |
ad6254c5 AK |
11470 | |
11471 | case $INSTALL in | |
11472 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 11473 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 11474 | esac |
fddafd51 ZK |
11475 | ac_MKDIR_P=$MKDIR_P |
11476 | case $MKDIR_P in | |
11477 | [\\/$]* | ?:[\\/]* ) ;; | |
11478 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
11479 | esac | |
7a197a62 | 11480 | _ACEOF |
795ca3e5 | 11481 | |
ec6a6fbe | 11482 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11483 | # If the template does not know about datarootdir, expand it. |
11484 | # FIXME: This hack should be removed a few years after 2.60. | |
11485 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
ec6a6fbe AK |
11486 | ac_sed_dataroot=' |
11487 | /datarootdir/ { | |
7a197a62 AK |
11488 | p |
11489 | q | |
11490 | } | |
11491 | /@datadir@/p | |
11492 | /@docdir@/p | |
11493 | /@infodir@/p | |
11494 | /@localedir@/p | |
f11781c5 | 11495 | /@mandir@/p' |
ec6a6fbe | 11496 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7a197a62 AK |
11497 | *datarootdir*) ac_datarootdir_seen=yes;; |
11498 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
f11781c5 | 11499 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
ec6a6fbe | 11500 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
ad6254c5 | 11501 | _ACEOF |
ec6a6fbe | 11502 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11503 | ac_datarootdir_hack=' |
11504 | s&@datadir@&$datadir&g | |
11505 | s&@docdir@&$docdir&g | |
11506 | s&@infodir@&$infodir&g | |
11507 | s&@localedir@&$localedir&g | |
11508 | s&@mandir@&$mandir&g | |
f11781c5 | 11509 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7a197a62 AK |
11510 | esac |
11511 | _ACEOF | |
11512 | ||
11513 | # Neutralize VPATH when `$srcdir' = `.'. | |
11514 | # Shell code in configure.ac might set extrasub. | |
11515 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
11516 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11517 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
11518 | $extrasub |
11519 | _ACEOF | |
ec6a6fbe | 11520 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
11521 | :t |
11522 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 11523 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 11524 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 11525 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
11526 | s&@srcdir@&$ac_srcdir&;t t |
11527 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11528 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11529 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11530 | s&@builddir@&$ac_builddir&;t t | |
11531 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11532 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11533 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 11534 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 11535 | $ac_datarootdir_hack |
ec6a6fbe AK |
11536 | " |
11537 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
f11781c5 | 11538 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11539 | |
11540 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11541 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
11542 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
f11781c5 AK |
11543 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
11544 | which seems to be undefined. Please make sure it is defined" >&5 | |
ec6a6fbe | 11545 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f11781c5 | 11546 | which seems to be undefined. Please make sure it is defined" >&2;} |
7a197a62 AK |
11547 | |
11548 | rm -f "$tmp/stdin" | |
72b2cb61 | 11549 | case $ac_file in |
ec6a6fbe AK |
11550 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
11551 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
11552 | esac \ | |
f11781c5 | 11553 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11554 | ;; |
11555 | :H) | |
11556 | # | |
11557 | # CONFIG_HEADER | |
11558 | # | |
72b2cb61 | 11559 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
11560 | { |
11561 | $as_echo "/* $configure_input */" \ | |
11562 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
11563 | } >"$tmp/config.h" \ | |
f11781c5 | 11564 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
ec6a6fbe | 11565 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
f11781c5 | 11566 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
ec6a6fbe | 11567 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
72b2cb61 | 11568 | else |
ec6a6fbe AK |
11569 | rm -f "$ac_file" |
11570 | mv "$tmp/config.h" "$ac_file" \ | |
f11781c5 | 11571 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
72b2cb61 AK |
11572 | fi |
11573 | else | |
ec6a6fbe AK |
11574 | $as_echo "/* $configure_input */" \ |
11575 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
f11781c5 | 11576 | || as_fn_error $? "could not create -" "$LINENO" 5 |
72b2cb61 | 11577 | fi |
7a197a62 AK |
11578 | ;; |
11579 | ||
11580 | ||
11581 | esac | |
11582 | ||
11583 | done # for ac_tag | |
795ca3e5 | 11584 | |
795ca3e5 | 11585 | |
f11781c5 | 11586 | as_fn_exit 0 |
ad6254c5 | 11587 | _ACEOF |
ad6254c5 AK |
11588 | ac_clean_files=$ac_clean_files_save |
11589 | ||
ec6a6fbe | 11590 | test $ac_write_fail = 0 || |
f11781c5 | 11591 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe | 11592 | |
ad6254c5 AK |
11593 | |
11594 | # configure is writing to config.log, and then calls config.status. | |
11595 | # config.status does its own redirection, appending to config.log. | |
11596 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11597 | # by configure, so config.status won't be able to write to it; its | |
11598 | # output is simply discarded. So we exec the FD to /dev/null, | |
11599 | # effectively closing config.log, so it can be properly (re)opened and | |
11600 | # appended to by config.status. When coming back to configure, we | |
11601 | # need to make the FD available again. | |
11602 | if test "$no_create" != yes; then | |
11603 | ac_cs_success=: | |
11604 | ac_config_status_args= | |
11605 | test "$silent" = yes && | |
11606 | ac_config_status_args="$ac_config_status_args --quiet" | |
11607 | exec 5>/dev/null | |
11608 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11609 | exec 5>>config.log | |
11610 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11611 | # would make configure fail if this is the last instruction. | |
f11781c5 | 11612 | $ac_cs_success || as_fn_exit 1 |
ad6254c5 | 11613 | fi |
ec6a6fbe | 11614 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
f11781c5 | 11615 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
ec6a6fbe AK |
11616 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
11617 | fi | |
795ca3e5 | 11618 | |
2dc95e1c AK |
11619 | |
11620 | if test x$ODIRECT != xyes; then | |
f11781c5 | 11621 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
ec6a6fbe | 11622 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} |
2dc95e1c | 11623 | fi |