]>
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 |
4417a8bd | 599 | tmpfilesdir |
e587cb6a | 600 | systemdsystemunitdir |
a5f46f6a AK |
601 | udevdir |
602 | udev_prefix | |
ec6a6fbe AK |
603 | tmpdir |
604 | kernelvsn | |
605 | missingkernel | |
606 | kerneldir | |
607 | interface | |
6e5c1f75 | 608 | DMEVENTD_PIDFILE |
23b059e7 | 609 | WRITE_INSTALL |
b559a1e6 | 610 | UDEV_HAS_BUILTIN_BLKID |
0878503f | 611 | UDEV_SYNC |
a5f46f6a | 612 | UDEV_RULES |
f7f0854e | 613 | UDEV_PC |
3ba4a195 | 614 | THIN |
54b362f9 | 615 | TESTING |
ec6a6fbe AK |
616 | STATIC_LINK |
617 | STATICDIR | |
618 | SNAPSHOTS | |
f7f0854e | 619 | SELINUX_PC |
e1b8a236 | 620 | SELINUX_LIBS |
cac52ca4 | 621 | REPLICATORS |
539f4a77 | 622 | READLINE_LIBS |
cac52ca4 | 623 | RAID |
f30875db | 624 | PTHREAD_LIBS |
ec6a6fbe AK |
625 | POOL |
626 | PKGCONFIG | |
606d0858 | 627 | OCFDIR |
37ddf259 | 628 | OCF |
ec6a6fbe AK |
629 | MIRRORS |
630 | LVM_RELEASE_DATE | |
631 | LVM_RELEASE | |
d2c11605 | 632 | LVM_PATH |
ec6a6fbe AK |
633 | LVM_PATCHLEVEL |
634 | LVM_MINOR | |
635 | LVM_MAJOR | |
bf456146 | 636 | LVM_LIBAPI |
ec6a6fbe | 637 | LVM_VERSION |
ec6a6fbe AK |
638 | LVM1_FALLBACK |
639 | LVM1 | |
640 | LOCALEDIR | |
641 | LIB_SUFFIX | |
642 | LDDEPS | |
643 | JOBS | |
644 | INTL_PACKAGE | |
645 | INTL | |
ec6a6fbe AK |
646 | HAVE_REALTIME |
647 | HAVE_LIBDL | |
ec6a6fbe | 648 | FSADM |
bf09a320 | 649 | ELDFLAGS |
ec6a6fbe AK |
650 | DM_LIB_PATCHLEVEL |
651 | DM_LIB_VERSION | |
652 | DM_IOCTLS | |
653 | DM_DEVICE_UID | |
654 | DM_DEVICE_MODE | |
655 | DM_DEVICE_GID | |
656 | DM_COMPAT | |
d1e8046f | 657 | DMEVENTD_PATH |
ec6a6fbe | 658 | DMEVENTD |
19a2c6e0 | 659 | DL_LIBS |
ec6a6fbe | 660 | DEVMAPPER |
b1f08e51 | 661 | DEFAULT_RUN_DIR |
3399ae32 | 662 | DEFAULT_LOCK_DIR |
fea55602 | 663 | DEFAULT_DATA_ALIGNMENT |
3399ae32 AK |
664 | DEFAULT_CACHE_SUBDIR |
665 | DEFAULT_BACKUP_SUBDIR | |
666 | DEFAULT_ARCHIVE_SUBDIR | |
667 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
668 | DEBUG |
669 | COPTIMISE_FLAG | |
e2997b73 | 670 | CONFDIR |
ec6a6fbe | 671 | CMDLIB |
d2c11605 | 672 | CLVMD_PATH |
c89bc357 | 673 | CLVMD_CMANAGERS |
ec6a6fbe AK |
674 | CLVMD |
675 | CLUSTER | |
676 | CLDWHOLEARCHIVE | |
677 | CLDNOWHOLEARCHIVE | |
678 | CLDFLAGS | |
cdd50823 | 679 | BUILD_LVMETAD |
ec6a6fbe | 680 | BUILD_DMEVENTD |
66fd4529 | 681 | BUILD_CMIRRORD |
572fefeb | 682 | APPLIB |
ec6a6fbe AK |
683 | MODPROBE_CMD |
684 | MSGFMT | |
685 | LVM2CMD_LIB | |
572fefeb | 686 | LVM2APP_LIB |
d93275eb PR |
687 | UDEV_LIBS |
688 | UDEV_CFLAGS | |
426fc742 PR |
689 | CUNIT_LIBS |
690 | CUNIT_CFLAGS | |
fd4728e1 | 691 | GENPNG |
ec6a6fbe AK |
692 | GENHTML |
693 | LCOV | |
90c80887 AK |
694 | SACKPT_LIBS |
695 | SACKPT_CFLAGS | |
a946372e AK |
696 | DLM_LIBS |
697 | DLM_CFLAGS | |
e2997b73 AK |
698 | CPG_LIBS |
699 | CPG_CFLAGS | |
b6d7a484 AK |
700 | CMAP_LIBS |
701 | CMAP_CFLAGS | |
e2997b73 AK |
702 | CONFDB_LIBS |
703 | CONFDB_CFLAGS | |
a946372e AK |
704 | SALCK_LIBS |
705 | SALCK_CFLAGS | |
e2997b73 AK |
706 | QUORUM_LIBS |
707 | QUORUM_CFLAGS | |
a946372e AK |
708 | COROSYNC_LIBS |
709 | COROSYNC_CFLAGS | |
710 | CMAN_LIBS | |
711 | CMAN_CFLAGS | |
a946372e AK |
712 | PKGCONFIGINIT_LIBS |
713 | PKGCONFIGINIT_CFLAGS | |
f11781c5 AK |
714 | PKG_CONFIG_LIBDIR |
715 | PKG_CONFIG_PATH | |
e2997b73 | 716 | PKG_CONFIG |
ec6a6fbe AK |
717 | POW_LIB |
718 | LIBOBJS | |
719 | ALLOCA | |
720 | CSCOPE_CMD | |
721 | CFLOW_CMD | |
722 | RANLIB | |
723 | MKDIR_P | |
724 | SET_MAKE | |
725 | LN_S | |
726 | INSTALL_DATA | |
727 | INSTALL_SCRIPT | |
728 | INSTALL_PROGRAM | |
729 | EGREP | |
730 | GREP | |
731 | CPP | |
732 | OBJEXT | |
733 | EXEEXT | |
734 | ac_ct_CC | |
735 | CPPFLAGS | |
736 | LDFLAGS | |
737 | CFLAGS | |
738 | CC | |
739 | AWK | |
740 | SED | |
741 | target_os | |
742 | target_vendor | |
743 | target_cpu | |
744 | target | |
745 | host_os | |
746 | host_vendor | |
747 | host_cpu | |
748 | host | |
749 | build_os | |
750 | build_vendor | |
751 | build_cpu | |
752 | build | |
753 | target_alias | |
754 | host_alias | |
755 | build_alias | |
756 | LIBS | |
757 | ECHO_T | |
758 | ECHO_N | |
759 | ECHO_C | |
760 | DEFS | |
761 | mandir | |
762 | localedir | |
763 | libdir | |
764 | psdir | |
765 | pdfdir | |
766 | dvidir | |
767 | htmldir | |
768 | infodir | |
769 | docdir | |
770 | oldincludedir | |
771 | includedir | |
772 | localstatedir | |
773 | sharedstatedir | |
774 | sysconfdir | |
775 | datadir | |
776 | datarootdir | |
777 | libexecdir | |
778 | sbindir | |
779 | bindir | |
780 | program_transform_name | |
781 | prefix | |
782 | exec_prefix | |
f11781c5 | 783 | PACKAGE_URL |
ec6a6fbe AK |
784 | PACKAGE_BUGREPORT |
785 | PACKAGE_STRING | |
786 | PACKAGE_VERSION | |
787 | PACKAGE_TARNAME | |
788 | PACKAGE_NAME | |
789 | PATH_SEPARATOR | |
790 | SHELL' | |
ad6254c5 | 791 | ac_subst_files='' |
ec6a6fbe AK |
792 | ac_user_opts=' |
793 | enable_option_checking | |
794 | enable_static_link | |
795 | with_user | |
796 | with_group | |
797 | with_device_uid | |
798 | with_device_gid | |
799 | with_device_mode | |
d0df875d | 800 | with_device_nodes_on |
c64d7cd3 | 801 | with_default_name_mangling |
ec6a6fbe AK |
802 | enable_lvm1_fallback |
803 | with_lvm1 | |
804 | with_pool | |
805 | with_cluster | |
806 | with_snapshots | |
807 | with_mirrors | |
cac52ca4 | 808 | with_raid |
8fea97b7 | 809 | with_replicators |
3ba4a195 | 810 | with_thin |
ec6a6fbe AK |
811 | enable_readline |
812 | enable_realtime | |
37ddf259 | 813 | enable_ocf |
606d0858 | 814 | with_ocfdir |
ec6a6fbe | 815 | with_clvmd |
8c4e8a18 | 816 | with_clvmd_pidfile |
66fd4529 AK |
817 | enable_cmirrord |
818 | with_cmirrord_pidfile | |
ec6a6fbe AK |
819 | enable_debug |
820 | with_optimisation | |
821 | enable_profiling | |
54b362f9 | 822 | enable_testing |
d1e8046f | 823 | enable_valgrind_pool |
ec6a6fbe | 824 | enable_devmapper |
cdd50823 | 825 | enable_lvmetad |
a5f46f6a AK |
826 | enable_udev_sync |
827 | enable_udev_rules | |
ec6a6fbe | 828 | enable_compat |
95eaa683 | 829 | enable_units_compat |
ec6a6fbe AK |
830 | enable_ioctl |
831 | enable_o_direct | |
572fefeb | 832 | enable_applib |
ec6a6fbe AK |
833 | enable_cmdlib |
834 | enable_pkgconfig | |
23b059e7 | 835 | enable_write_install |
ec6a6fbe AK |
836 | enable_fsadm |
837 | enable_dmeventd | |
838 | enable_selinux | |
839 | enable_nls | |
840 | with_localedir | |
841 | with_confdir | |
842 | with_staticdir | |
843 | with_usrlibdir | |
844 | with_usrsbindir | |
a5f46f6a | 845 | with_udev_prefix |
78ce7acc | 846 | with_udevdir |
e587cb6a | 847 | with_systemdsystemunitdir |
4417a8bd | 848 | with_tmpfilesdir |
ec6a6fbe AK |
849 | with_dmeventd_pidfile |
850 | with_dmeventd_path | |
8bae0a1e | 851 | with_default_run_dir |
3399ae32 AK |
852 | with_default_system_dir |
853 | with_default_archive_subdir | |
854 | with_default_backup_subdir | |
855 | with_default_cache_subdir | |
856 | with_default_locking_dir | |
fea55602 | 857 | with_default_data_alignment |
ec6a6fbe AK |
858 | with_interface |
859 | ' | |
7a197a62 AK |
860 | ac_precious_vars='build_alias |
861 | host_alias | |
862 | target_alias | |
863 | CC | |
864 | CFLAGS | |
865 | LDFLAGS | |
25fbec5b | 866 | LIBS |
7a197a62 | 867 | CPPFLAGS |
e2997b73 AK |
868 | CPP |
869 | PKG_CONFIG | |
f11781c5 AK |
870 | PKG_CONFIG_PATH |
871 | PKG_CONFIG_LIBDIR | |
a946372e AK |
872 | PKGCONFIGINIT_CFLAGS |
873 | PKGCONFIGINIT_LIBS | |
a946372e AK |
874 | CMAN_CFLAGS |
875 | CMAN_LIBS | |
876 | COROSYNC_CFLAGS | |
877 | COROSYNC_LIBS | |
e2997b73 AK |
878 | QUORUM_CFLAGS |
879 | QUORUM_LIBS | |
a946372e AK |
880 | SALCK_CFLAGS |
881 | SALCK_LIBS | |
e2997b73 AK |
882 | CONFDB_CFLAGS |
883 | CONFDB_LIBS | |
b6d7a484 AK |
884 | CMAP_CFLAGS |
885 | CMAP_LIBS | |
e2997b73 | 886 | CPG_CFLAGS |
a946372e AK |
887 | CPG_LIBS |
888 | DLM_CFLAGS | |
90c80887 AK |
889 | DLM_LIBS |
890 | SACKPT_CFLAGS | |
d93275eb | 891 | SACKPT_LIBS |
426fc742 PR |
892 | CUNIT_CFLAGS |
893 | CUNIT_LIBS | |
d93275eb PR |
894 | UDEV_CFLAGS |
895 | UDEV_LIBS' | |
7a197a62 | 896 | |
795ca3e5 AK |
897 | |
898 | # Initialize some variables set by options. | |
ad6254c5 AK |
899 | ac_init_help= |
900 | ac_init_version=false | |
ec6a6fbe AK |
901 | ac_unrecognized_opts= |
902 | ac_unrecognized_sep= | |
795ca3e5 AK |
903 | # The variables have the same names as the options, with |
904 | # dashes changed to underlines. | |
ad6254c5 | 905 | cache_file=/dev/null |
795ca3e5 | 906 | exec_prefix=NONE |
795ca3e5 | 907 | no_create= |
795ca3e5 AK |
908 | no_recursion= |
909 | prefix=NONE | |
910 | program_prefix=NONE | |
911 | program_suffix=NONE | |
912 | program_transform_name=s,x,x, | |
913 | silent= | |
914 | site= | |
915 | srcdir= | |
795ca3e5 AK |
916 | verbose= |
917 | x_includes=NONE | |
918 | x_libraries=NONE | |
ad6254c5 AK |
919 | |
920 | # Installation directory options. | |
921 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
922 | # and all the variables that are supposed to be based on exec_prefix | |
923 | # by default will actually change. | |
924 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 925 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
926 | bindir='${exec_prefix}/bin' |
927 | sbindir='${exec_prefix}/sbin' | |
928 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
929 | datarootdir='${prefix}/share' |
930 | datadir='${datarootdir}' | |
795ca3e5 AK |
931 | sysconfdir='${prefix}/etc' |
932 | sharedstatedir='${prefix}/com' | |
933 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
934 | includedir='${prefix}/include' |
935 | oldincludedir='/usr/include' | |
7a197a62 AK |
936 | docdir='${datarootdir}/doc/${PACKAGE}' |
937 | infodir='${datarootdir}/info' | |
938 | htmldir='${docdir}' | |
939 | dvidir='${docdir}' | |
940 | pdfdir='${docdir}' | |
941 | psdir='${docdir}' | |
942 | libdir='${exec_prefix}/lib' | |
943 | localedir='${datarootdir}/locale' | |
944 | mandir='${datarootdir}/man' | |
795ca3e5 | 945 | |
795ca3e5 | 946 | ac_prev= |
7a197a62 | 947 | ac_dashdash= |
795ca3e5 AK |
948 | for ac_option |
949 | do | |
795ca3e5 AK |
950 | # If the previous option needs an argument, assign it. |
951 | if test -n "$ac_prev"; then | |
7a197a62 | 952 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
953 | ac_prev= |
954 | continue | |
955 | fi | |
956 | ||
7a197a62 AK |
957 | case $ac_option in |
958 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
959 | *) ac_optarg=yes ;; | |
960 | esac | |
795ca3e5 AK |
961 | |
962 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
963 | ||
7a197a62 AK |
964 | case $ac_dashdash$ac_option in |
965 | --) | |
966 | ac_dashdash=yes ;; | |
795ca3e5 AK |
967 | |
968 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
969 | ac_prev=bindir ;; | |
970 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 971 | bindir=$ac_optarg ;; |
795ca3e5 AK |
972 | |
973 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 974 | ac_prev=build_alias ;; |
795ca3e5 | 975 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 976 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
977 | |
978 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
979 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
980 | ac_prev=cache_file ;; | |
981 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
982 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
983 | cache_file=$ac_optarg ;; |
984 | ||
985 | --config-cache | -C) | |
986 | cache_file=config.cache ;; | |
795ca3e5 | 987 | |
7a197a62 | 988 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 989 | ac_prev=datadir ;; |
7a197a62 | 990 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 991 | datadir=$ac_optarg ;; |
795ca3e5 | 992 | |
7a197a62 AK |
993 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
994 | | --dataroo | --dataro | --datar) | |
995 | ac_prev=datarootdir ;; | |
996 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
997 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
998 | datarootdir=$ac_optarg ;; | |
999 | ||
795ca3e5 | 1000 | -disable-* | --disable-*) |
ec6a6fbe | 1001 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 1002 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1003 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1004 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
1005 | ac_useropt_orig=$ac_useropt |
1006 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1007 | case $ac_user_opts in | |
1008 | *" | |
1009 | "enable_$ac_useropt" | |
1010 | "*) ;; | |
1011 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1012 | ac_unrecognized_sep=', ';; | |
1013 | esac | |
1014 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1015 | |
1016 | -docdir | --docdir | --docdi | --doc | --do) | |
1017 | ac_prev=docdir ;; | |
1018 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1019 | docdir=$ac_optarg ;; | |
1020 | ||
1021 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1022 | ac_prev=dvidir ;; | |
1023 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1024 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1025 | |
1026 | -enable-* | --enable-*) | |
ec6a6fbe | 1027 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1028 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1029 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1030 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
1031 | ac_useropt_orig=$ac_useropt |
1032 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1033 | case $ac_user_opts in | |
1034 | *" | |
1035 | "enable_$ac_useropt" | |
1036 | "*) ;; | |
1037 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1038 | ac_unrecognized_sep=', ';; | |
1039 | esac | |
1040 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1041 | |
1042 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1043 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1044 | | --exec | --exe | --ex) | |
1045 | ac_prev=exec_prefix ;; | |
1046 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1047 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1048 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1049 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1050 | |
1051 | -gas | --gas | --ga | --g) | |
1052 | # Obsolete; use --with-gas. | |
1053 | with_gas=yes ;; | |
1054 | ||
ad6254c5 AK |
1055 | -help | --help | --hel | --he | -h) |
1056 | ac_init_help=long ;; | |
1057 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1058 | ac_init_help=recursive ;; | |
1059 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1060 | ac_init_help=short ;; | |
795ca3e5 AK |
1061 | |
1062 | -host | --host | --hos | --ho) | |
ad6254c5 | 1063 | ac_prev=host_alias ;; |
795ca3e5 | 1064 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1065 | host_alias=$ac_optarg ;; |
795ca3e5 | 1066 | |
7a197a62 AK |
1067 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1068 | ac_prev=htmldir ;; | |
1069 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1070 | | --ht=*) | |
1071 | htmldir=$ac_optarg ;; | |
1072 | ||
795ca3e5 AK |
1073 | -includedir | --includedir | --includedi | --included | --include \ |
1074 | | --includ | --inclu | --incl | --inc) | |
1075 | ac_prev=includedir ;; | |
1076 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1077 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1078 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1079 | |
1080 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1081 | ac_prev=infodir ;; | |
1082 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1083 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1084 | |
1085 | -libdir | --libdir | --libdi | --libd) | |
1086 | ac_prev=libdir ;; | |
1087 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1088 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1089 | |
1090 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1091 | | --libexe | --libex | --libe) | |
1092 | ac_prev=libexecdir ;; | |
1093 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1094 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1095 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1096 | |
7a197a62 AK |
1097 | -localedir | --localedir | --localedi | --localed | --locale) |
1098 | ac_prev=localedir ;; | |
1099 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1100 | localedir=$ac_optarg ;; | |
1101 | ||
795ca3e5 | 1102 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1103 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1104 | ac_prev=localstatedir ;; |
1105 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1106 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1107 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1108 | |
1109 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1110 | ac_prev=mandir ;; | |
1111 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1112 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1113 | |
1114 | -nfp | --nfp | --nf) | |
1115 | # Obsolete; use --without-fp. | |
1116 | with_fp=no ;; | |
1117 | ||
1118 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1119 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1120 | no_create=yes ;; |
1121 | ||
1122 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1123 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1124 | no_recursion=yes ;; | |
1125 | ||
1126 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1127 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1128 | | --oldin | --oldi | --old | --ol | --o) | |
1129 | ac_prev=oldincludedir ;; | |
1130 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1131 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1132 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1133 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1134 | |
1135 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1136 | ac_prev=prefix ;; | |
1137 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1138 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1139 | |
1140 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1141 | | --program-pre | --program-pr | --program-p) | |
1142 | ac_prev=program_prefix ;; | |
1143 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1144 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1145 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1146 | |
1147 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1148 | | --program-suf | --program-su | --program-s) | |
1149 | ac_prev=program_suffix ;; | |
1150 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1151 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1152 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1153 | |
1154 | -program-transform-name | --program-transform-name \ | |
1155 | | --program-transform-nam | --program-transform-na \ | |
1156 | | --program-transform-n | --program-transform- \ | |
1157 | | --program-transform | --program-transfor \ | |
1158 | | --program-transfo | --program-transf \ | |
1159 | | --program-trans | --program-tran \ | |
1160 | | --progr-tra | --program-tr | --program-t) | |
1161 | ac_prev=program_transform_name ;; | |
1162 | -program-transform-name=* | --program-transform-name=* \ | |
1163 | | --program-transform-nam=* | --program-transform-na=* \ | |
1164 | | --program-transform-n=* | --program-transform-=* \ | |
1165 | | --program-transform=* | --program-transfor=* \ | |
1166 | | --program-transfo=* | --program-transf=* \ | |
1167 | | --program-trans=* | --program-tran=* \ | |
1168 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1169 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1170 | |
7a197a62 AK |
1171 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1172 | ac_prev=pdfdir ;; | |
1173 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1174 | pdfdir=$ac_optarg ;; | |
1175 | ||
1176 | -psdir | --psdir | --psdi | --psd | --ps) | |
1177 | ac_prev=psdir ;; | |
1178 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1179 | psdir=$ac_optarg ;; | |
1180 | ||
795ca3e5 AK |
1181 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1182 | | -silent | --silent | --silen | --sile | --sil) | |
1183 | silent=yes ;; | |
1184 | ||
1185 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1186 | ac_prev=sbindir ;; | |
1187 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1188 | | --sbi=* | --sb=*) | |
ad6254c5 | 1189 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1190 | |
1191 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1192 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1193 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1194 | | --sha | --sh) | |
1195 | ac_prev=sharedstatedir ;; | |
1196 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1197 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1198 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1199 | | --sha=* | --sh=*) | |
ad6254c5 | 1200 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1201 | |
1202 | -site | --site | --sit) | |
1203 | ac_prev=site ;; | |
1204 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1205 | site=$ac_optarg ;; |
795ca3e5 AK |
1206 | |
1207 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1208 | ac_prev=srcdir ;; | |
1209 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1210 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1211 | |
1212 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1213 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1214 | ac_prev=sysconfdir ;; | |
1215 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1216 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1217 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1218 | |
1219 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1220 | ac_prev=target_alias ;; |
795ca3e5 | 1221 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1222 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1223 | |
1224 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1225 | verbose=yes ;; | |
1226 | ||
ad6254c5 AK |
1227 | -version | --version | --versio | --versi | --vers | -V) |
1228 | ac_init_version=: ;; | |
795ca3e5 AK |
1229 | |
1230 | -with-* | --with-*) | |
ec6a6fbe | 1231 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1232 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1233 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1234 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1235 | ac_useropt_orig=$ac_useropt |
1236 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1237 | case $ac_user_opts in | |
1238 | *" | |
1239 | "with_$ac_useropt" | |
1240 | "*) ;; | |
1241 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1242 | ac_unrecognized_sep=', ';; | |
1243 | esac | |
1244 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1245 | |
1246 | -without-* | --without-*) | |
ec6a6fbe | 1247 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1248 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1249 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1250 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1251 | ac_useropt_orig=$ac_useropt |
1252 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1253 | case $ac_user_opts in | |
1254 | *" | |
1255 | "with_$ac_useropt" | |
1256 | "*) ;; | |
1257 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1258 | ac_unrecognized_sep=', ';; | |
1259 | esac | |
1260 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1261 | |
1262 | --x) | |
1263 | # Obsolete; use --with-x. | |
1264 | with_x=yes ;; | |
1265 | ||
1266 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1267 | | --x-incl | --x-inc | --x-in | --x-i) | |
1268 | ac_prev=x_includes ;; | |
1269 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1270 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1271 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1272 | |
1273 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1274 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1275 | ac_prev=x_libraries ;; | |
1276 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1277 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1278 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1279 | |
f11781c5 AK |
1280 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1281 | Try \`$0 --help' for more information" | |
795ca3e5 AK |
1282 | ;; |
1283 | ||
ad6254c5 AK |
1284 | *=*) |
1285 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1286 | # Reject names that are not valid shell variable names. | |
f11781c5 AK |
1287 | case $ac_envvar in #( |
1288 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1289 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1290 | esac | |
7a197a62 | 1291 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1292 | export $ac_envvar ;; |
1293 | ||
795ca3e5 | 1294 | *) |
ad6254c5 | 1295 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1296 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1297 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1298 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1299 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1300 | ;; |
1301 | ||
1302 | esac | |
1303 | done | |
1304 | ||
1305 | if test -n "$ac_prev"; then | |
ad6254c5 | 1306 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
f11781c5 | 1307 | as_fn_error $? "missing argument to $ac_option" |
795ca3e5 | 1308 | fi |
795ca3e5 | 1309 | |
ec6a6fbe AK |
1310 | if test -n "$ac_unrecognized_opts"; then |
1311 | case $enable_option_checking in | |
1312 | no) ;; | |
f11781c5 | 1313 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
ec6a6fbe AK |
1314 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1315 | esac | |
1316 | fi | |
1317 | ||
1318 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1319 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1320 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1321 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1322 | libdir localedir mandir | |
795ca3e5 | 1323 | do |
7a197a62 | 1324 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1325 | # Remove trailing slashes. |
1326 | case $ac_val in | |
1327 | */ ) | |
1328 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1329 | eval $ac_var=\$ac_val;; | |
1330 | esac | |
1331 | # Be sure to have absolute directory names. | |
ad6254c5 | 1332 | case $ac_val in |
7a197a62 AK |
1333 | [\\/$]* | ?:[\\/]* ) continue;; |
1334 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1335 | esac |
f11781c5 | 1336 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
795ca3e5 AK |
1337 | done |
1338 | ||
ad6254c5 AK |
1339 | # There might be people who depend on the old broken behavior: `$host' |
1340 | # used to hold the argument of --host etc. | |
1341 | # FIXME: To remove some day. | |
1342 | build=$build_alias | |
1343 | host=$host_alias | |
1344 | target=$target_alias | |
1345 | ||
1346 | # FIXME: To remove some day. | |
1347 | if test "x$host_alias" != x; then | |
1348 | if test "x$build_alias" = x; then | |
1349 | cross_compiling=maybe | |
f11781c5 AK |
1350 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1351 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
ad6254c5 AK |
1352 | elif test "x$build_alias" != "x$host_alias"; then |
1353 | cross_compiling=yes | |
1354 | fi | |
1355 | fi | |
8106cdd5 | 1356 | |
ad6254c5 AK |
1357 | ac_tool_prefix= |
1358 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1359 | ||
1360 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1361 | |
795ca3e5 | 1362 | |
7a197a62 AK |
1363 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1364 | ac_ls_di=`ls -di .` && | |
1365 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f11781c5 | 1366 | as_fn_error $? "working directory cannot be determined" |
7a197a62 | 1367 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f11781c5 | 1368 | as_fn_error $? "pwd does not report name of working directory" |
7a197a62 AK |
1369 | |
1370 | ||
795ca3e5 AK |
1371 | # Find the source files, if location was not specified. |
1372 | if test -z "$srcdir"; then | |
1373 | ac_srcdir_defaulted=yes | |
7a197a62 | 1374 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1375 | ac_confdir=`$as_dirname -- "$as_myself" || |
1376 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1377 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1378 | X"$as_myself" : 'X\(//\)$' \| \ | |
1379 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1380 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1381 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1382 | s//\1/ | |
1383 | q | |
1384 | } | |
1385 | /^X\(\/\/\)[^/].*/{ | |
1386 | s//\1/ | |
1387 | q | |
1388 | } | |
1389 | /^X\(\/\/\)$/{ | |
1390 | s//\1/ | |
1391 | q | |
1392 | } | |
1393 | /^X\(\/\).*/{ | |
1394 | s//\1/ | |
1395 | q | |
1396 | } | |
1397 | s/.*/./; q'` | |
795ca3e5 | 1398 | srcdir=$ac_confdir |
7a197a62 | 1399 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1400 | srcdir=.. |
1401 | fi | |
1402 | else | |
1403 | ac_srcdir_defaulted=no | |
1404 | fi | |
7a197a62 AK |
1405 | if test ! -r "$srcdir/$ac_unique_file"; then |
1406 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f11781c5 | 1407 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
795ca3e5 | 1408 | fi |
7a197a62 AK |
1409 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1410 | ac_abs_confdir=`( | |
f11781c5 | 1411 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7a197a62 AK |
1412 | pwd)` |
1413 | # When building in place, set srcdir=. | |
1414 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1415 | srcdir=. | |
1416 | fi | |
1417 | # Remove unnecessary trailing slashes from srcdir. | |
1418 | # Double slashes in file names in object file debugging info | |
1419 | # mess up M-x gdb in Emacs. | |
1420 | case $srcdir in | |
1421 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1422 | esac | |
1423 | for ac_var in $ac_precious_vars; do | |
1424 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1425 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1426 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1427 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1428 | done | |
ad6254c5 AK |
1429 | |
1430 | # | |
1431 | # Report the --help message. | |
1432 | # | |
1433 | if test "$ac_init_help" = "long"; then | |
1434 | # Omit some internal or obsolete options to make the list less imposing. | |
1435 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1436 | cat <<_ACEOF | |
1437 | \`configure' configures this package to adapt to many kinds of systems. | |
1438 | ||
1439 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1440 | ||
1441 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1442 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1443 | ||
1444 | Defaults for the options are specified in brackets. | |
1445 | ||
1446 | Configuration: | |
1447 | -h, --help display this help and exit | |
1448 | --help=short display options specific to this package | |
1449 | --help=recursive display the short help of all the included packages | |
1450 | -V, --version display version information and exit | |
f11781c5 | 1451 | -q, --quiet, --silent do not print \`checking ...' messages |
ad6254c5 AK |
1452 | --cache-file=FILE cache test results in FILE [disabled] |
1453 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1454 | -n, --no-create do not create output files | |
1455 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1456 | ||
ad6254c5 AK |
1457 | Installation directories: |
1458 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1459 | [$ac_default_prefix] |
ad6254c5 | 1460 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1461 | [PREFIX] |
ad6254c5 AK |
1462 | |
1463 | By default, \`make install' will install all the files in | |
1464 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1465 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1466 | for instance \`--prefix=\$HOME'. | |
1467 | ||
1468 | For better control, use the options below. | |
1469 | ||
1470 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1471 | --bindir=DIR user executables [EPREFIX/bin] |
1472 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1473 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1474 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1475 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1476 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1477 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1478 | --includedir=DIR C header files [PREFIX/include] | |
1479 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1480 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1481 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1482 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1483 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1484 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1485 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1486 | --htmldir=DIR html documentation [DOCDIR] | |
1487 | --dvidir=DIR dvi documentation [DOCDIR] | |
1488 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1489 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1490 | _ACEOF |
1491 | ||
1492 | cat <<\_ACEOF | |
1493 | ||
1494 | System types: | |
1495 | --build=BUILD configure for building on BUILD [guessed] | |
1496 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1497 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1498 | _ACEOF | |
1499 | fi | |
1500 | ||
1501 | if test -n "$ac_init_help"; then | |
1502 | ||
1503 | cat <<\_ACEOF | |
1504 | ||
1505 | Optional Features: | |
ec6a6fbe | 1506 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1507 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1508 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1509 | --enable-static_link use this to link the tools to their libraries |
1510 | statically (default is dynamic linking | |
1511 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1512 | device-mapper is missing from the kernel |
71082be4 ZK |
1513 | --disable-readline disable readline support |
1514 | --enable-realtime enable realtime clock support | |
37ddf259 AK |
1515 | --enable-ocf enable Open Cluster Framework (OCF) compliant |
1516 | resource agents | |
71082be4 ZK |
1517 | --enable-cmirrord enable the cluster mirror log daemon |
1518 | --enable-debug enable debugging | |
1519 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1520 | --enable-testing enable testing targets in the makefile |
d1e8046f | 1521 | --enable-valgrind-pool enable valgrind awareness of pools |
71082be4 | 1522 | --disable-devmapper disable LVM2 device-mapper interaction |
d38de32b | 1523 | --enable-lvmetad enable the LVM Metadata Daemon |
71082be4 ZK |
1524 | --enable-udev_sync enable synchronisation with udev processing |
1525 | --enable-udev_rules install rule files needed for udev synchronisation | |
1526 | --enable-compat enable support for old device-mapper versions | |
1527 | --enable-units-compat enable output compatibility with old versions that | |
1528 | that do not use KiB-style unit suffixes | |
1529 | --disable-driver disable calls to device-mapper in the kernel | |
1530 | --disable-o_direct disable O_DIRECT | |
1531 | --enable-applib build application library | |
1532 | --enable-cmdlib build shared command library | |
1533 | --enable-pkgconfig install pkgconfig support | |
1534 | --enable-write_install install user writable files | |
1535 | --disable-fsadm disable fsadm | |
1536 | --enable-dmeventd enable the device-mapper event daemon | |
1537 | --disable-selinux disable selinux support | |
1538 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1539 | |
1540 | Optional Packages: | |
1541 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1542 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
f11781c5 AK |
1543 | --with-user=USER set the owner of installed files [[USER=]] |
1544 | --with-group=GROUP set the group owner of installed files [[GROUP=]] | |
1545 | --with-device-uid=UID set the owner used for new device nodes [[UID=0]] | |
1546 | --with-device-gid=GID set the group used for new device nodes [[GID=0]] | |
1547 | --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]] | |
d0df875d ZK |
1548 | --with-device-nodes-on=ON |
1549 | create nodes on resume or create [[ON=resume]] | |
c64d7cd3 PR |
1550 | --with-default-name-mangling=MANGLING |
1551 | default name mangling: auto/none/hex | |
1552 | [[MANGLING=auto]] | |
ad6254c5 | 1553 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
f11781c5 | 1554 | [[TYPE=internal]] |
ad6254c5 | 1555 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
f11781c5 | 1556 | [[TYPE=internal]] |
71082be4 | 1557 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none |
f11781c5 | 1558 | [[TYPE=internal]] |
71082be4 | 1559 | --with-snapshots=TYPE snapshot support: internal/shared/none |
f11781c5 | 1560 | [[TYPE=internal]] |
71082be4 | 1561 | --with-mirrors=TYPE mirror support: internal/shared/none |
f11781c5 | 1562 | [[TYPE=internal]] |
cac52ca4 JEB |
1563 | --with-raid=TYPE mirror support: internal/shared/none |
1564 | [[TYPE=internal]] | |
71082be4 | 1565 | --with-replicators=TYPE replicator support: internal/shared/none |
f11781c5 | 1566 | [[TYPE=none]] |
3ba4a195 ZK |
1567 | --with-thin=TYPE thin provisioning support: internal/shared/none |
1568 | [[TYPE=none]] | |
606d0858 AK |
1569 | --with-ocfdir=DIR install OCF files in DIR |
1570 | [[PREFIX/lib/ocf/resource.d/lvm2]] | |
71082be4 | 1571 | --with-clvmd=TYPE build cluster LVM Daemon |
8c222979 | 1572 | The following cluster manager combinations are valid: |
a946372e AK |
1573 | * cman (RHEL5 or equivalent) |
1574 | * cman,corosync,openais (or selection of them) | |
1091650a | 1575 | * singlenode (localhost only) |
a946372e AK |
1576 | * all (autodetect) |
1577 | * none (disable build) | |
71082be4 | 1578 | [TYPE=none] |
8c4e8a18 | 1579 | --with-clvmd-pidfile=PATH |
f11781c5 | 1580 | clvmd pidfile [[/var/run/clvmd.pid]] |
71082be4 | 1581 | --with-cmirrord-pidfile=PATH |
f11781c5 AK |
1582 | cmirrord pidfile [[/var/run/cmirrord.pid]] |
1583 | --with-optimisation=OPT C optimisation flag [[OPT=-O2]] | |
1584 | --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]] | |
1585 | --with-confdir=DIR configuration files in DIR [[/etc]] | |
1586 | --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]] | |
1587 | --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]] | |
1588 | --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]] | |
71082be4 | 1589 | --with-udev-prefix=UPREFIX |
f11781c5 AK |
1590 | install udev rule files in UPREFIX [[EPREFIX]] |
1591 | --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]] | |
e587cb6a PR |
1592 | --with-systemdsystemunitdir=DIR |
1593 | systemd service files in DIR | |
4417a8bd PR |
1594 | --with-tmpfilesdir=DIR install configuration files for management of |
1595 | volatile files and directories in DIR | |
1596 | [[SYSCONFDIR/tmpfiles.d]] | |
71082be4 | 1597 | --with-dmeventd-pidfile=PATH |
f11781c5 | 1598 | dmeventd pidfile [[/var/run/dmeventd.pid]] |
71082be4 | 1599 | --with-dmeventd-path=PATH |
f11781c5 | 1600 | dmeventd path [[EPREFIX/sbin/dmeventd]] |
8bae0a1e | 1601 | --with-default-run-dir=DIR Default run directory [/var/run/lvm] |
71082be4 | 1602 | --with-default-system-dir=DIR |
f11781c5 | 1603 | default LVM system directory [[/etc/lvm]] |
71082be4 | 1604 | --with-default-archive-subdir=SUBDIR |
f11781c5 | 1605 | default metadata archive subdir [[archive]] |
71082be4 | 1606 | --with-default-backup-subdir=SUBDIR |
f11781c5 | 1607 | default metadata backup subdir [[backup]] |
71082be4 | 1608 | --with-default-cache-subdir=SUBDIR |
f11781c5 | 1609 | default metadata cache subdir [[cache]] |
71082be4 | 1610 | --with-default-locking-dir=DIR |
f11781c5 | 1611 | default locking directory [[/var/lock/lvm]] |
fea55602 | 1612 | --with-default-data-alignment=NUM |
f11781c5 AK |
1613 | set the default data alignment in MiB [[1]] |
1614 | --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]] | |
ad6254c5 AK |
1615 | |
1616 | Some influential environment variables: | |
1617 | CC C compiler command | |
1618 | CFLAGS C compiler flags | |
1619 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1620 | nonstandard directory <lib dir> | |
25fbec5b | 1621 | LIBS libraries to pass to the linker, e.g. -l<library> |
f11781c5 | 1622 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7a197a62 | 1623 | you have headers in a nonstandard directory <include dir> |
ad6254c5 | 1624 | CPP C preprocessor |
e2997b73 | 1625 | PKG_CONFIG path to pkg-config utility |
f11781c5 AK |
1626 | PKG_CONFIG_PATH |
1627 | directories to add to pkg-config's search path | |
1628 | PKG_CONFIG_LIBDIR | |
1629 | path overriding pkg-config's built-in search path | |
a946372e AK |
1630 | PKGCONFIGINIT_CFLAGS |
1631 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1632 | PKGCONFIGINIT_LIBS | |
1633 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
a946372e AK |
1634 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config |
1635 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1636 | COROSYNC_CFLAGS | |
1637 | C compiler flags for COROSYNC, overriding pkg-config | |
1638 | COROSYNC_LIBS | |
1639 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1640 | QUORUM_CFLAGS |
1641 | C compiler flags for QUORUM, overriding pkg-config | |
1642 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1643 | SALCK_CFLAGS |
1644 | C compiler flags for SALCK, overriding pkg-config | |
1645 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1646 | CONFDB_CFLAGS |
1647 | C compiler flags for CONFDB, overriding pkg-config | |
1648 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
b6d7a484 AK |
1649 | CMAP_CFLAGS C compiler flags for CMAP, overriding pkg-config |
1650 | CMAP_LIBS linker flags for CMAP, overriding pkg-config | |
e2997b73 AK |
1651 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config |
1652 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1653 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1654 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1655 | SACKPT_CFLAGS |
1656 | C compiler flags for SACKPT, overriding pkg-config | |
1657 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
426fc742 PR |
1658 | CUNIT_CFLAGS |
1659 | C compiler flags for CUNIT, overriding pkg-config | |
1660 | CUNIT_LIBS linker flags for CUNIT, overriding pkg-config | |
d93275eb PR |
1661 | UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config |
1662 | UDEV_LIBS linker flags for UDEV, overriding pkg-config | |
ad6254c5 AK |
1663 | |
1664 | Use these variables to override the choices made by `configure' or to help | |
1665 | it to find libraries and programs with nonstandard names/locations. | |
1666 | ||
f11781c5 | 1667 | Report bugs to the package provider. |
ad6254c5 | 1668 | _ACEOF |
7a197a62 | 1669 | ac_status=$? |
ad6254c5 AK |
1670 | fi |
1671 | ||
1672 | if test "$ac_init_help" = "recursive"; then | |
1673 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1674 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1675 | test -d "$ac_dir" || |
1676 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1677 | continue | |
ad6254c5 AK |
1678 | ac_builddir=. |
1679 | ||
7a197a62 AK |
1680 | case "$ac_dir" in |
1681 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1682 | *) | |
ec6a6fbe | 1683 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1684 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1685 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1686 | case $ac_top_builddir_sub in |
1687 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1688 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1689 | esac ;; | |
1690 | esac | |
1691 | ac_abs_top_builddir=$ac_pwd | |
1692 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1693 | # for backward compatibility: | |
1694 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1695 | |
1696 | case $srcdir in | |
7a197a62 | 1697 | .) # We are building in place. |
ad6254c5 | 1698 | ac_srcdir=. |
7a197a62 AK |
1699 | ac_top_srcdir=$ac_top_builddir_sub |
1700 | ac_abs_top_srcdir=$ac_pwd ;; | |
1701 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1702 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1703 | ac_top_srcdir=$srcdir |
1704 | ac_abs_top_srcdir=$srcdir ;; | |
1705 | *) # Relative name. | |
1706 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1707 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1708 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1709 | esac |
7a197a62 AK |
1710 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1711 | ||
1712 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1713 | # Check for guested configure. | |
1714 | if test -f "$ac_srcdir/configure.gnu"; then | |
1715 | echo && | |
1716 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1717 | elif test -f "$ac_srcdir/configure"; then | |
1718 | echo && | |
1719 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1720 | else |
ec6a6fbe | 1721 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1722 | fi || ac_status=$? |
1723 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1724 | done |
1725 | fi | |
1726 | ||
7a197a62 | 1727 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1728 | if $ac_init_version; then |
1729 | cat <<\_ACEOF | |
7a197a62 | 1730 | configure |
f11781c5 | 1731 | generated by GNU Autoconf 2.66 |
ad6254c5 | 1732 | |
f11781c5 | 1733 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
1734 | This configure script is free software; the Free Software Foundation |
1735 | gives unlimited permission to copy, distribute and modify it. | |
1736 | _ACEOF | |
7a197a62 | 1737 | exit |
ad6254c5 | 1738 | fi |
ad6254c5 | 1739 | |
f11781c5 AK |
1740 | ## ------------------------ ## |
1741 | ## Autoconf initialization. ## | |
1742 | ## ------------------------ ## | |
ad6254c5 | 1743 | |
f11781c5 AK |
1744 | # ac_fn_c_try_compile LINENO |
1745 | # -------------------------- | |
1746 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1747 | ac_fn_c_try_compile () | |
ad6254c5 | 1748 | { |
f11781c5 AK |
1749 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1750 | rm -f conftest.$ac_objext | |
1751 | if { { ac_try="$ac_compile" | |
1752 | case "(($ac_try" in | |
1753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1754 | *) ac_try_echo=$ac_try;; | |
1755 | esac | |
1756 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1757 | $as_echo "$ac_try_echo"; } >&5 | |
1758 | (eval "$ac_compile") 2>conftest.err | |
1759 | ac_status=$? | |
1760 | if test -s conftest.err; then | |
1761 | grep -v '^ *+' conftest.err >conftest.er1 | |
1762 | cat conftest.er1 >&5 | |
1763 | mv -f conftest.er1 conftest.err | |
1764 | fi | |
1765 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1766 | test $ac_status = 0; } && { | |
1767 | test -z "$ac_c_werror_flag" || | |
1768 | test ! -s conftest.err | |
1769 | } && test -s conftest.$ac_objext; then : | |
1770 | ac_retval=0 | |
1771 | else | |
1772 | $as_echo "$as_me: failed program was:" >&5 | |
1773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1774 | |
f11781c5 AK |
1775 | ac_retval=1 |
1776 | fi | |
1777 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1778 | as_fn_set_status $ac_retval | |
ad6254c5 | 1779 | |
f11781c5 | 1780 | } # ac_fn_c_try_compile |
ad6254c5 | 1781 | |
f11781c5 AK |
1782 | # ac_fn_c_try_cpp LINENO |
1783 | # ---------------------- | |
1784 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1785 | ac_fn_c_try_cpp () | |
1786 | { | |
1787 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1788 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1789 | case "(($ac_try" in | |
1790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1791 | *) ac_try_echo=$ac_try;; | |
1792 | esac | |
1793 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1794 | $as_echo "$ac_try_echo"; } >&5 | |
1795 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1796 | ac_status=$? | |
1797 | if test -s conftest.err; then | |
1798 | grep -v '^ *+' conftest.err >conftest.er1 | |
1799 | cat conftest.er1 >&5 | |
1800 | mv -f conftest.er1 conftest.err | |
1801 | fi | |
1802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1803 | test $ac_status = 0; } >/dev/null && { | |
1804 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1805 | test ! -s conftest.err | |
1806 | }; then : | |
1807 | ac_retval=0 | |
1808 | else | |
1809 | $as_echo "$as_me: failed program was:" >&5 | |
1810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1811 | |
f11781c5 AK |
1812 | ac_retval=1 |
1813 | fi | |
1814 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1815 | as_fn_set_status $ac_retval | |
ad6254c5 | 1816 | |
f11781c5 | 1817 | } # ac_fn_c_try_cpp |
d911ec67 | 1818 | |
f11781c5 AK |
1819 | # ac_fn_c_try_link LINENO |
1820 | # ----------------------- | |
1821 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1822 | ac_fn_c_try_link () | |
d911ec67 | 1823 | { |
f11781c5 AK |
1824 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1825 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1826 | if { { ac_try="$ac_link" | |
d911ec67 AK |
1827 | case "(($ac_try" in |
1828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1829 | *) ac_try_echo=$ac_try;; | |
1830 | esac | |
f11781c5 AK |
1831 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1832 | $as_echo "$ac_try_echo"; } >&5 | |
1833 | (eval "$ac_link") 2>conftest.err | |
d911ec67 | 1834 | ac_status=$? |
f11781c5 AK |
1835 | if test -s conftest.err; then |
1836 | grep -v '^ *+' conftest.err >conftest.er1 | |
1837 | cat conftest.er1 >&5 | |
1838 | mv -f conftest.er1 conftest.err | |
1839 | fi | |
1840 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1841 | test $ac_status = 0; } && { | |
1842 | test -z "$ac_c_werror_flag" || | |
1843 | test ! -s conftest.err | |
1844 | } && test -s conftest$ac_exeext && { | |
1845 | test "$cross_compiling" = yes || | |
1846 | $as_test_x conftest$ac_exeext | |
1847 | }; then : | |
1848 | ac_retval=0 | |
d911ec67 | 1849 | else |
f11781c5 | 1850 | $as_echo "$as_me: failed program was:" >&5 |
d911ec67 AK |
1851 | sed 's/^/| /' conftest.$ac_ext >&5 |
1852 | ||
f11781c5 | 1853 | ac_retval=1 |
d911ec67 | 1854 | fi |
f11781c5 AK |
1855 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1856 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1857 | # interfere with the next link command; also delete a directory that is | |
1858 | # left behind by Apple's compiler. We do this before executing the actions. | |
1859 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1860 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1861 | as_fn_set_status $ac_retval | |
d911ec67 | 1862 | |
f11781c5 | 1863 | } # ac_fn_c_try_link |
d911ec67 | 1864 | |
f11781c5 AK |
1865 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1866 | # ------------------------------------------------------- | |
1867 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1868 | # the include files in INCLUDES and setting the cache variable VAR | |
1869 | # accordingly. | |
1870 | ac_fn_c_check_header_mongrel () | |
1871 | { | |
1872 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1873 | if eval "test \"\${$3+set}\"" = set; then : | |
1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1875 | $as_echo_n "checking for $2... " >&6; } | |
1876 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1877 | $as_echo_n "(cached) " >&6 |
1878 | fi | |
f11781c5 AK |
1879 | eval ac_res=\$$3 |
1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 AK |
1881 | $as_echo "$ac_res" >&6; } |
1882 | else | |
1883 | # Is the header compilable? | |
f11781c5 AK |
1884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1885 | $as_echo_n "checking $2 usability... " >&6; } | |
1886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1887 | /* end confdefs.h. */ |
f11781c5 AK |
1888 | $4 |
1889 | #include <$2> | |
d911ec67 | 1890 | _ACEOF |
f11781c5 | 1891 | if ac_fn_c_try_compile "$LINENO"; then : |
d911ec67 AK |
1892 | ac_header_compiler=yes |
1893 | else | |
f11781c5 | 1894 | ac_header_compiler=no |
d911ec67 | 1895 | fi |
d911ec67 | 1896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f11781c5 | 1897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
d911ec67 AK |
1898 | $as_echo "$ac_header_compiler" >&6; } |
1899 | ||
1900 | # Is the header present? | |
f11781c5 AK |
1901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1902 | $as_echo_n "checking $2 presence... " >&6; } | |
1903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1904 | /* end confdefs.h. */ |
f11781c5 | 1905 | #include <$2> |
d911ec67 | 1906 | _ACEOF |
f11781c5 | 1907 | if ac_fn_c_try_cpp "$LINENO"; then : |
d911ec67 AK |
1908 | ac_header_preproc=yes |
1909 | else | |
d911ec67 AK |
1910 | ac_header_preproc=no |
1911 | fi | |
d911ec67 | 1912 | rm -f conftest.err conftest.$ac_ext |
f11781c5 | 1913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
d911ec67 AK |
1914 | $as_echo "$ac_header_preproc" >&6; } |
1915 | ||
1916 | # So? What about this header? | |
f11781c5 | 1917 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
d911ec67 | 1918 | yes:no: ) |
f11781c5 AK |
1919 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1920 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1922 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1923 | ;; |
1924 | no:yes:* ) | |
f11781c5 AK |
1925 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1926 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1927 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1928 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1929 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1930 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1931 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1932 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1933 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1934 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1935 | ;; |
1936 | esac | |
f11781c5 AK |
1937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1938 | $as_echo_n "checking for $2... " >&6; } | |
1939 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1940 | $as_echo_n "(cached) " >&6 |
1941 | else | |
f11781c5 | 1942 | eval "$3=\$ac_header_compiler" |
d911ec67 | 1943 | fi |
f11781c5 AK |
1944 | eval ac_res=\$$3 |
1945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 | 1946 | $as_echo "$ac_res" >&6; } |
ad6254c5 | 1947 | fi |
f11781c5 | 1948 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1949 | |
f11781c5 | 1950 | } # ac_fn_c_check_header_mongrel |
ad6254c5 | 1951 | |
f11781c5 AK |
1952 | # ac_fn_c_try_run LINENO |
1953 | # ---------------------- | |
1954 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1955 | # that executables *can* be run. | |
1956 | ac_fn_c_try_run () | |
ad6254c5 | 1957 | { |
f11781c5 AK |
1958 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1959 | if { { ac_try="$ac_link" | |
7a197a62 AK |
1960 | case "(($ac_try" in |
1961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1962 | *) ac_try_echo=$ac_try;; | |
1963 | esac | |
f11781c5 AK |
1964 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1965 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1966 | (eval "$ac_link") 2>&5 |
ad6254c5 | 1967 | ac_status=$? |
f11781c5 AK |
1968 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1969 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1970 | { { case "(($ac_try" in | |
7a197a62 AK |
1971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1972 | *) ac_try_echo=$ac_try;; | |
1973 | esac | |
f11781c5 AK |
1974 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1975 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1976 | (eval "$ac_try") 2>&5 |
ad6254c5 | 1977 | ac_status=$? |
f11781c5 AK |
1978 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1979 | test $ac_status = 0; }; }; then : | |
1980 | ac_retval=0 | |
ad6254c5 | 1981 | else |
ec6a6fbe | 1982 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
f11781c5 | 1983 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
1984 | sed 's/^/| /' conftest.$ac_ext >&5 |
1985 | ||
f11781c5 | 1986 | ac_retval=$ac_status |
ad6254c5 | 1987 | fi |
f11781c5 AK |
1988 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1989 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1990 | as_fn_set_status $ac_retval | |
ad6254c5 | 1991 | |
f11781c5 | 1992 | } # ac_fn_c_try_run |
ad6254c5 | 1993 | |
f11781c5 AK |
1994 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1995 | # ------------------------------------------------------- | |
1996 | # Tests whether HEADER exists and can be compiled using the include files in | |
1997 | # INCLUDES, setting the cache variable VAR accordingly. | |
1998 | ac_fn_c_check_header_compile () | |
1999 | { | |
2000 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2002 | $as_echo_n "checking for $2... " >&6; } | |
2003 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2004 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2005 | else |
f11781c5 | 2006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 2007 | /* end confdefs.h. */ |
f11781c5 AK |
2008 | $4 |
2009 | #include <$2> | |
ad6254c5 | 2010 | _ACEOF |
f11781c5 AK |
2011 | if ac_fn_c_try_compile "$LINENO"; then : |
2012 | eval "$3=yes" | |
ad6254c5 | 2013 | else |
f11781c5 | 2014 | eval "$3=no" |
ad6254c5 | 2015 | fi |
7a197a62 | 2016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2017 | fi |
f11781c5 AK |
2018 | eval ac_res=\$$3 |
2019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2020 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2021 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2022 | |
f11781c5 | 2023 | } # ac_fn_c_check_header_compile |
ad6254c5 | 2024 | |
f11781c5 AK |
2025 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2026 | # ---------------------------------------------------- | |
2027 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2028 | # INCLUDES, setting cache variable VAR accordingly. | |
2029 | ac_fn_c_check_member () | |
2030 | { | |
2031 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2033 | $as_echo_n "checking for $2.$3... " >&6; } | |
2034 | if eval "test \"\${$4+set}\"" = set; then : | |
ec6a6fbe | 2035 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2036 | else |
f11781c5 AK |
2037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2038 | /* end confdefs.h. */ | |
2039 | $5 | |
2040 | int | |
2041 | main () | |
2042 | { | |
2043 | static $2 ac_aggr; | |
2044 | if (ac_aggr.$3) | |
2045 | return 0; | |
2046 | ; | |
2047 | return 0; | |
2048 | } | |
ad6254c5 | 2049 | _ACEOF |
f11781c5 AK |
2050 | if ac_fn_c_try_compile "$LINENO"; then : |
2051 | eval "$4=yes" | |
2052 | else | |
2053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2054 | /* end confdefs.h. */ |
f11781c5 AK |
2055 | $5 |
2056 | int | |
2057 | main () | |
2058 | { | |
2059 | static $2 ac_aggr; | |
2060 | if (sizeof ac_aggr.$3) | |
2061 | return 0; | |
2062 | ; | |
2063 | return 0; | |
2064 | } | |
2065 | _ACEOF | |
2066 | if ac_fn_c_try_compile "$LINENO"; then : | |
2067 | eval "$4=yes" | |
2068 | else | |
2069 | eval "$4=no" | |
2070 | fi | |
2071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2072 | fi | |
2073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2074 | fi | |
2075 | eval ac_res=\$$4 | |
2076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2077 | $as_echo "$ac_res" >&6; } | |
2078 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2079 | ||
2080 | } # ac_fn_c_check_member | |
795ca3e5 | 2081 | |
f11781c5 AK |
2082 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2083 | # ------------------------------------------- | |
2084 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2085 | # variable VAR accordingly. | |
2086 | ac_fn_c_check_type () | |
2087 | { | |
2088 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2090 | $as_echo_n "checking for $2... " >&6; } | |
2091 | if eval "test \"\${$3+set}\"" = set; then : | |
2092 | $as_echo_n "(cached) " >&6 | |
2093 | else | |
2094 | eval "$3=no" | |
2095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2096 | /* end confdefs.h. */ | |
2097 | $4 | |
ad6254c5 AK |
2098 | int |
2099 | main () | |
2100 | { | |
f11781c5 AK |
2101 | if (sizeof ($2)) |
2102 | return 0; | |
ad6254c5 AK |
2103 | ; |
2104 | return 0; | |
2105 | } | |
2106 | _ACEOF | |
f11781c5 AK |
2107 | if ac_fn_c_try_compile "$LINENO"; then : |
2108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2109 | /* end confdefs.h. */ | |
2110 | $4 | |
2111 | int | |
2112 | main () | |
2113 | { | |
2114 | if (sizeof (($2))) | |
2115 | return 0; | |
2116 | ; | |
2117 | return 0; | |
2118 | } | |
2119 | _ACEOF | |
2120 | if ac_fn_c_try_compile "$LINENO"; then : | |
ad6254c5 | 2121 | |
f11781c5 AK |
2122 | else |
2123 | eval "$3=yes" | |
795ca3e5 | 2124 | fi |
f11781c5 AK |
2125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2126 | fi | |
2127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2128 | fi |
f11781c5 AK |
2129 | eval ac_res=\$$3 |
2130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2131 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2132 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2133 | |
f11781c5 | 2134 | } # ac_fn_c_check_type |
ad6254c5 | 2135 | |
f11781c5 AK |
2136 | # ac_fn_c_find_intX_t LINENO BITS VAR |
2137 | # ----------------------------------- | |
2138 | # Finds a signed integer type with width BITS, setting cache variable VAR | |
2139 | # accordingly. | |
2140 | ac_fn_c_find_intX_t () | |
2141 | { | |
2142 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | |
2144 | $as_echo_n "checking for int$2_t... " >&6; } | |
2145 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2146 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2147 | else |
f11781c5 AK |
2148 | eval "$3=no" |
2149 | # Order is important - never check a type that is potentially smaller | |
2150 | # than half of the expected target width. | |
2151 | for ac_type in int$2_t 'int' 'long int' \ | |
2152 | 'long long int' 'short int' 'signed char'; do | |
2153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7a197a62 AK |
2154 | /* end confdefs.h. */ |
2155 | $ac_includes_default | |
f11781c5 | 2156 | enum { N = $2 / 2 - 1 }; |
7a197a62 AK |
2157 | int |
2158 | main () | |
2159 | { | |
f11781c5 AK |
2160 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
2161 | test_array [0] = 0 | |
7a197a62 | 2162 | |
f11781c5 AK |
2163 | ; |
2164 | return 0; | |
2165 | } | |
2166 | _ACEOF | |
2167 | if ac_fn_c_try_compile "$LINENO"; then : | |
2168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2169 | /* end confdefs.h. */ | |
2170 | $ac_includes_default | |
2171 | enum { N = $2 / 2 - 1 }; | |
2172 | int | |
2173 | main () | |
2174 | { | |
2175 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | |
2176 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | |
2177 | test_array [0] = 0 | |
7a197a62 AK |
2178 | |
2179 | ; | |
2180 | return 0; | |
2181 | } | |
ad6254c5 | 2182 | _ACEOF |
f11781c5 | 2183 | if ac_fn_c_try_compile "$LINENO"; then : |
ad6254c5 | 2184 | |
f11781c5 AK |
2185 | else |
2186 | case $ac_type in #( | |
2187 | int$2_t) : | |
2188 | eval "$3=yes" ;; #( | |
2189 | *) : | |
2190 | eval "$3=\$ac_type" ;; | |
2191 | esac | |
ad6254c5 | 2192 | fi |
f11781c5 | 2193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2194 | fi |
f11781c5 AK |
2195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2196 | if eval test \"x\$"$3"\" = x"no"; then : | |
ad6254c5 AK |
2197 | |
2198 | else | |
f11781c5 | 2199 | break |
ad6254c5 | 2200 | fi |
f11781c5 | 2201 | done |
ad6254c5 | 2202 | fi |
f11781c5 AK |
2203 | eval ac_res=\$$3 |
2204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2205 | $as_echo "$ac_res" >&6; } | |
2206 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2207 | ||
2208 | } # ac_fn_c_find_intX_t | |
2209 | ||
2210 | # ac_fn_c_find_uintX_t LINENO BITS VAR | |
2211 | # ------------------------------------ | |
2212 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
2213 | # accordingly. | |
2214 | ac_fn_c_find_uintX_t () | |
2215 | { | |
2216 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
2218 | $as_echo_n "checking for uint$2_t... " >&6; } | |
2219 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2220 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2221 | else |
f11781c5 AK |
2222 | eval "$3=no" |
2223 | # Order is important - never check a type that is potentially smaller | |
2224 | # than half of the expected target width. | |
2225 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
2226 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
2227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2228 | /* end confdefs.h. */ |
7a197a62 | 2229 | $ac_includes_default |
ad6254c5 AK |
2230 | int |
2231 | main () | |
2232 | { | |
f11781c5 AK |
2233 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
2234 | test_array [0] = 0 | |
ad6254c5 | 2235 | |
f11781c5 AK |
2236 | ; |
2237 | return 0; | |
ad6254c5 AK |
2238 | } |
2239 | _ACEOF | |
f11781c5 AK |
2240 | if ac_fn_c_try_compile "$LINENO"; then : |
2241 | case $ac_type in #( | |
2242 | uint$2_t) : | |
2243 | eval "$3=yes" ;; #( | |
2244 | *) : | |
2245 | eval "$3=\$ac_type" ;; | |
7a197a62 | 2246 | esac |
ad6254c5 | 2247 | fi |
f11781c5 AK |
2248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2249 | if eval test \"x\$"$3"\" = x"no"; then : | |
7a197a62 | 2250 | |
f11781c5 AK |
2251 | else |
2252 | break | |
ad6254c5 | 2253 | fi |
f11781c5 | 2254 | done |
ad6254c5 | 2255 | fi |
f11781c5 AK |
2256 | eval ac_res=\$$3 |
2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2258 | $as_echo "$ac_res" >&6; } | |
2259 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
ad6254c5 | 2260 | |
f11781c5 | 2261 | } # ac_fn_c_find_uintX_t |
ad6254c5 | 2262 | |
f11781c5 AK |
2263 | # ac_fn_c_check_func LINENO FUNC VAR |
2264 | # ---------------------------------- | |
2265 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2266 | ac_fn_c_check_func () | |
2267 | { | |
2268 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2270 | $as_echo_n "checking for $2... " >&6; } | |
2271 | if eval "test \"\${$3+set}\"" = set; then : | |
2272 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2273 | else |
f11781c5 AK |
2274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2275 | /* end confdefs.h. */ | |
2276 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2277 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2278 | #define $2 innocuous_$2 | |
ad6254c5 | 2279 | |
f11781c5 AK |
2280 | /* System header to define __stub macros and hopefully few prototypes, |
2281 | which can conflict with char $2 (); below. | |
2282 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2283 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 2284 | |
f11781c5 AK |
2285 | #ifdef __STDC__ |
2286 | # include <limits.h> | |
2287 | #else | |
2288 | # include <assert.h> | |
2289 | #endif | |
ad6254c5 | 2290 | |
f11781c5 AK |
2291 | #undef $2 |
2292 | ||
2293 | /* Override any GCC internal prototype to avoid an error. | |
2294 | Use char because int might match the return type of a GCC | |
2295 | builtin and then its argument prototype would still apply. */ | |
2296 | #ifdef __cplusplus | |
2297 | extern "C" | |
2298 | #endif | |
2299 | char $2 (); | |
2300 | /* The GNU C library defines this for functions which it implements | |
2301 | to always fail with ENOSYS. Some functions are actually named | |
2302 | something starting with __ and the normal name is an alias. */ | |
2303 | #if defined __stub_$2 || defined __stub___$2 | |
2304 | choke me | |
2305 | #endif | |
ad6254c5 | 2306 | |
ad6254c5 AK |
2307 | int |
2308 | main () | |
2309 | { | |
f11781c5 | 2310 | return $2 (); |
ad6254c5 AK |
2311 | ; |
2312 | return 0; | |
2313 | } | |
2314 | _ACEOF | |
f11781c5 AK |
2315 | if ac_fn_c_try_link "$LINENO"; then : |
2316 | eval "$3=yes" | |
ad6254c5 | 2317 | else |
f11781c5 | 2318 | eval "$3=no" |
ad6254c5 | 2319 | fi |
f11781c5 AK |
2320 | rm -f core conftest.err conftest.$ac_objext \ |
2321 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2322 | fi |
f11781c5 AK |
2323 | eval ac_res=\$$3 |
2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2325 | $as_echo "$ac_res" >&6; } | |
2326 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
7a197a62 | 2327 | |
f11781c5 AK |
2328 | } # ac_fn_c_check_func |
2329 | cat >config.log <<_ACEOF | |
2330 | This file contains any messages produced by compilers while | |
2331 | running configure, to aid debugging if configure makes a mistake. | |
7a197a62 | 2332 | |
f11781c5 AK |
2333 | It was created by $as_me, which was |
2334 | generated by GNU Autoconf 2.66. Invocation command line was | |
ad6254c5 | 2335 | |
f11781c5 | 2336 | $ $0 $@ |
ad6254c5 | 2337 | |
ad6254c5 | 2338 | _ACEOF |
f11781c5 AK |
2339 | exec 5>>config.log |
2340 | { | |
2341 | cat <<_ASUNAME | |
2342 | ## --------- ## | |
2343 | ## Platform. ## | |
2344 | ## --------- ## | |
ad6254c5 | 2345 | |
f11781c5 AK |
2346 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2347 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2348 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2349 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2350 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
ad6254c5 | 2351 | |
f11781c5 AK |
2352 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2353 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8a2fc586 | 2354 | |
f11781c5 AK |
2355 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2356 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2357 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2358 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2359 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2360 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2361 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2362 | ||
2363 | _ASUNAME | |
2364 | ||
2365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2366 | for as_dir in $PATH | |
2367 | do | |
2368 | IFS=$as_save_IFS | |
2369 | test -z "$as_dir" && as_dir=. | |
2370 | $as_echo "PATH: $as_dir" | |
2371 | done | |
2372 | IFS=$as_save_IFS | |
2373 | ||
2374 | } >&5 | |
2375 | ||
2376 | cat >&5 <<_ACEOF | |
2377 | ||
2378 | ||
2379 | ## ----------- ## | |
2380 | ## Core tests. ## | |
2381 | ## ----------- ## | |
ad6254c5 | 2382 | |
ad6254c5 | 2383 | _ACEOF |
ad6254c5 | 2384 | |
7a197a62 | 2385 | |
f11781c5 AK |
2386 | # Keep a trace of the command line. |
2387 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2388 | # Strip out --silent because we don't want to record it for future runs. | |
2389 | # Also quote any args containing shell meta-characters. | |
2390 | # Make two passes to allow for proper duplicate-argument suppression. | |
2391 | ac_configure_args= | |
2392 | ac_configure_args0= | |
2393 | ac_configure_args1= | |
2394 | ac_must_keep_next=false | |
2395 | for ac_pass in 1 2 | |
2396 | do | |
2397 | for ac_arg | |
2398 | do | |
2399 | case $ac_arg in | |
2400 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2401 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2402 | | -silent | --silent | --silen | --sile | --sil) | |
2403 | continue ;; | |
2404 | *\'*) | |
2405 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2406 | esac | |
2407 | case $ac_pass in | |
2408 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2409 | 2) | |
2410 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2411 | if test $ac_must_keep_next = true; then | |
2412 | ac_must_keep_next=false # Got value, back to normal. | |
2413 | else | |
2414 | case $ac_arg in | |
2415 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2416 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2417 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2418 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2419 | case "$ac_configure_args0 " in | |
2420 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2421 | esac | |
2422 | ;; | |
2423 | -* ) ac_must_keep_next=true ;; | |
2424 | esac | |
2425 | fi | |
2426 | as_fn_append ac_configure_args " '$ac_arg'" | |
2427 | ;; | |
2428 | esac | |
2429 | done | |
2430 | done | |
2431 | { ac_configure_args0=; unset ac_configure_args0;} | |
2432 | { ac_configure_args1=; unset ac_configure_args1;} | |
2433 | ||
2434 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2435 | # config.log. We remove comments because anyway the quotes in there | |
2436 | # would cause problems or look ugly. | |
2437 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2438 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2439 | trap 'exit_status=$? | |
2440 | # Save into config.log some information that might help in debugging. | |
2441 | { | |
2442 | echo | |
2443 | ||
2444 | $as_echo "## ---------------- ## | |
2445 | ## Cache variables. ## | |
2446 | ## ---------------- ##" | |
2447 | echo | |
2448 | # The following way of writing the cache mishandles newlines in values, | |
2449 | ( | |
2450 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2451 | eval ac_val=\$$ac_var | |
2452 | case $ac_val in #( | |
2453 | *${as_nl}*) | |
2454 | case $ac_var in #( | |
2455 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2456 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2457 | esac | |
2458 | case $ac_var in #( | |
2459 | _ | IFS | as_nl) ;; #( | |
2460 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2461 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2462 | esac ;; | |
2463 | esac | |
2464 | done | |
2465 | (set) 2>&1 | | |
2466 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2467 | *${as_nl}ac_space=\ *) | |
2468 | sed -n \ | |
2469 | "s/'\''/'\''\\\\'\'''\''/g; | |
2470 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2471 | ;; #( | |
2472 | *) | |
2473 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2474 | ;; | |
2475 | esac | | |
2476 | sort | |
2477 | ) | |
2478 | echo | |
2479 | ||
2480 | $as_echo "## ----------------- ## | |
2481 | ## Output variables. ## | |
2482 | ## ----------------- ##" | |
2483 | echo | |
2484 | for ac_var in $ac_subst_vars | |
2485 | do | |
2486 | eval ac_val=\$$ac_var | |
2487 | case $ac_val in | |
2488 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2489 | esac | |
2490 | $as_echo "$ac_var='\''$ac_val'\''" | |
2491 | done | sort | |
2492 | echo | |
2493 | ||
2494 | if test -n "$ac_subst_files"; then | |
2495 | $as_echo "## ------------------- ## | |
2496 | ## File substitutions. ## | |
2497 | ## ------------------- ##" | |
2498 | echo | |
2499 | for ac_var in $ac_subst_files | |
2500 | do | |
2501 | eval ac_val=\$$ac_var | |
2502 | case $ac_val in | |
2503 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2504 | esac | |
2505 | $as_echo "$ac_var='\''$ac_val'\''" | |
2506 | done | sort | |
2507 | echo | |
2508 | fi | |
2509 | ||
2510 | if test -s confdefs.h; then | |
2511 | $as_echo "## ----------- ## | |
2512 | ## confdefs.h. ## | |
2513 | ## ----------- ##" | |
2514 | echo | |
2515 | cat confdefs.h | |
2516 | echo | |
2517 | fi | |
2518 | test "$ac_signal" != 0 && | |
2519 | $as_echo "$as_me: caught signal $ac_signal" | |
2520 | $as_echo "$as_me: exit $exit_status" | |
2521 | } >&5 | |
2522 | rm -f core *.core core.conftest.* && | |
2523 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2524 | exit $exit_status | |
2525 | ' 0 | |
2526 | for ac_signal in 1 2 13 15; do | |
2527 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2528 | done | |
2529 | ac_signal=0 | |
2530 | ||
2531 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2532 | rm -f -r conftest* confdefs.h | |
7a197a62 | 2533 | |
f11781c5 | 2534 | $as_echo "/* confdefs.h */" > confdefs.h |
8a2fc586 | 2535 | |
f11781c5 | 2536 | # Predefined preprocessor variables. |
ad6254c5 AK |
2537 | |
2538 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 2539 | #define PACKAGE_NAME "$PACKAGE_NAME" |
ad6254c5 AK |
2540 | _ACEOF |
2541 | ||
f11781c5 AK |
2542 | cat >>confdefs.h <<_ACEOF |
2543 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
ad6254c5 | 2544 | _ACEOF |
ad6254c5 | 2545 | |
f11781c5 AK |
2546 | cat >>confdefs.h <<_ACEOF |
2547 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
ad6254c5 | 2548 | _ACEOF |
f11781c5 AK |
2549 | |
2550 | cat >>confdefs.h <<_ACEOF | |
2551 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
ad6254c5 | 2552 | _ACEOF |
ad6254c5 | 2553 | |
f11781c5 AK |
2554 | cat >>confdefs.h <<_ACEOF |
2555 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2556 | _ACEOF | |
7a197a62 | 2557 | |
f11781c5 AK |
2558 | cat >>confdefs.h <<_ACEOF |
2559 | #define PACKAGE_URL "$PACKAGE_URL" | |
2560 | _ACEOF | |
ad6254c5 | 2561 | |
7a197a62 | 2562 | |
f11781c5 AK |
2563 | # Let the site file select an alternate cache file if it wants to. |
2564 | # Prefer an explicitly selected file to automatically selected ones. | |
2565 | ac_site_file1=NONE | |
2566 | ac_site_file2=NONE | |
2567 | if test -n "$CONFIG_SITE"; then | |
2568 | # We do not want a PATH search for config.site. | |
2569 | case $CONFIG_SITE in #(( | |
2570 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2571 | */*) ac_site_file1=$CONFIG_SITE;; | |
2572 | *) ac_site_file1=./$CONFIG_SITE;; | |
2573 | esac | |
2574 | elif test "x$prefix" != xNONE; then | |
2575 | ac_site_file1=$prefix/share/config.site | |
2576 | ac_site_file2=$prefix/etc/config.site | |
ad6254c5 | 2577 | else |
f11781c5 AK |
2578 | ac_site_file1=$ac_default_prefix/share/config.site |
2579 | ac_site_file2=$ac_default_prefix/etc/config.site | |
ad6254c5 | 2580 | fi |
f11781c5 AK |
2581 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2582 | do | |
2583 | test "x$ac_site_file" = xNONE && continue | |
2584 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2586 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2587 | sed 's/^/| /' "$ac_site_file" >&5 | |
2588 | . "$ac_site_file" \ | |
2589 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2590 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2591 | as_fn_error $? "failed to load site script $ac_site_file | |
2592 | See \`config.log' for more details" "$LINENO" 5; } | |
2593 | fi | |
2594 | done | |
ad6254c5 | 2595 | |
f11781c5 AK |
2596 | if test -r "$cache_file"; then |
2597 | # Some versions of bash will fail to source /dev/null (special files | |
2598 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2599 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2601 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2602 | case $cache_file in | |
2603 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2604 | *) . "./$cache_file";; | |
2605 | esac | |
2606 | fi | |
2607 | else | |
2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2609 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2610 | >$cache_file | |
ad6254c5 | 2611 | fi |
ad6254c5 | 2612 | |
f11781c5 AK |
2613 | as_fn_append ac_header_list " stdlib.h" |
2614 | as_fn_append ac_header_list " unistd.h" | |
2615 | as_fn_append ac_header_list " sys/param.h" | |
2616 | # Check that the precious variables saved in the cache have kept the same | |
2617 | # value. | |
2618 | ac_cache_corrupted=false | |
2619 | for ac_var in $ac_precious_vars; do | |
2620 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2621 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2622 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2623 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2624 | case $ac_old_set,$ac_new_set in | |
2625 | set,) | |
2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2627 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2628 | ac_cache_corrupted=: ;; | |
2629 | ,set) | |
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2631 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2632 | ac_cache_corrupted=: ;; | |
2633 | ,);; | |
2634 | *) | |
2635 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2636 | # differences in whitespace do not lead to failure. | |
2637 | ac_old_val_w=`echo x $ac_old_val` | |
2638 | ac_new_val_w=`echo x $ac_new_val` | |
2639 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2641 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2642 | ac_cache_corrupted=: | |
2643 | else | |
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2645 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2646 | eval $ac_var=\$ac_old_val | |
2647 | fi | |
2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2649 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2651 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2652 | fi;; | |
2653 | esac | |
2654 | # Pass precious variables to config.status. | |
2655 | if test "$ac_new_set" = set; then | |
2656 | case $ac_new_val in | |
2657 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2658 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2659 | esac | |
2660 | case " $ac_configure_args " in | |
2661 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2662 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2663 | esac | |
2664 | fi | |
2665 | done | |
2666 | if $ac_cache_corrupted; then | |
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2668 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2670 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2671 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
ad6254c5 | 2672 | fi |
f11781c5 AK |
2673 | ## -------------------- ## |
2674 | ## Main body of script. ## | |
2675 | ## -------------------- ## | |
ad6254c5 | 2676 | |
f11781c5 AK |
2677 | ac_ext=c |
2678 | ac_cpp='$CPP $CPPFLAGS' | |
2679 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2680 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2681 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2682 | |
ad6254c5 | 2683 | |
ad6254c5 | 2684 | |
f11781c5 | 2685 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
7a197a62 AK |
2686 | |
2687 | ||
f11781c5 AK |
2688 | ################################################################################ |
2689 | ac_aux_dir= | |
2690 | for ac_dir in autoconf "$srcdir"/autoconf; do | |
2691 | if test -f "$ac_dir/install-sh"; then | |
2692 | ac_aux_dir=$ac_dir | |
2693 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2694 | break | |
2695 | elif test -f "$ac_dir/install.sh"; then | |
2696 | ac_aux_dir=$ac_dir | |
2697 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2698 | break | |
2699 | elif test -f "$ac_dir/shtool"; then | |
2700 | ac_aux_dir=$ac_dir | |
2701 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2702 | break | |
2703 | fi | |
2704 | done | |
2705 | if test -z "$ac_aux_dir"; then | |
2706 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 | |
ad6254c5 | 2707 | fi |
ad6254c5 | 2708 | |
f11781c5 AK |
2709 | # These three variables are undocumented and unsupported, |
2710 | # and are intended to be withdrawn in a future Autoconf release. | |
2711 | # They can cause serious problems if a builder's source tree is in a directory | |
2712 | # whose full name contains unusual characters. | |
2713 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2714 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2715 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
ad6254c5 | 2716 | |
ad6254c5 | 2717 | |
8a2fc586 | 2718 | |
f11781c5 AK |
2719 | ################################################################################ |
2720 | # Make sure we can run config.sub. | |
2721 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2722 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
ad6254c5 | 2723 | |
f11781c5 AK |
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2725 | $as_echo_n "checking build system type... " >&6; } | |
2726 | if test "${ac_cv_build+set}" = set; then : | |
2727 | $as_echo_n "(cached) " >&6 | |
2728 | else | |
2729 | ac_build_alias=$build_alias | |
2730 | test "x$ac_build_alias" = x && | |
2731 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2732 | test "x$ac_build_alias" = x && | |
2733 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2734 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2735 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
ad6254c5 AK |
2736 | |
2737 | fi | |
f11781c5 AK |
2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2739 | $as_echo "$ac_cv_build" >&6; } | |
2740 | case $ac_cv_build in | |
2741 | *-*-*) ;; | |
2742 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2743 | esac | |
2744 | build=$ac_cv_build | |
2745 | ac_save_IFS=$IFS; IFS='-' | |
2746 | set x $ac_cv_build | |
2747 | shift | |
2748 | build_cpu=$1 | |
2749 | build_vendor=$2 | |
2750 | shift; shift | |
2751 | # Remember, the first character of IFS is used to create $*, | |
2752 | # except with old shells: | |
2753 | build_os=$* | |
2754 | IFS=$ac_save_IFS | |
2755 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2756 | |
2757 | ||
f11781c5 AK |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2759 | $as_echo_n "checking host system type... " >&6; } | |
2760 | if test "${ac_cv_host+set}" = set; then : | |
ec6a6fbe | 2761 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2762 | else |
f11781c5 AK |
2763 | if test "x$host_alias" = x; then |
2764 | ac_cv_host=$ac_cv_build | |
ad6254c5 | 2765 | else |
f11781c5 AK |
2766 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2767 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2768 | fi | |
ad6254c5 | 2769 | |
f11781c5 AK |
2770 | fi |
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2772 | $as_echo "$ac_cv_host" >&6; } | |
2773 | case $ac_cv_host in | |
2774 | *-*-*) ;; | |
2775 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2776 | esac | |
2777 | host=$ac_cv_host | |
2778 | ac_save_IFS=$IFS; IFS='-' | |
2779 | set x $ac_cv_host | |
2780 | shift | |
2781 | host_cpu=$1 | |
2782 | host_vendor=$2 | |
2783 | shift; shift | |
2784 | # Remember, the first character of IFS is used to create $*, | |
2785 | # except with old shells: | |
2786 | host_os=$* | |
2787 | IFS=$ac_save_IFS | |
2788 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 | 2789 | |
ad6254c5 | 2790 | |
f11781c5 AK |
2791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2792 | $as_echo_n "checking target system type... " >&6; } | |
2793 | if test "${ac_cv_target+set}" = set; then : | |
2794 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2795 | else |
f11781c5 AK |
2796 | if test "x$target_alias" = x; then |
2797 | ac_cv_target=$ac_cv_host | |
2798 | else | |
2799 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2800 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
ad6254c5 | 2801 | fi |
7a197a62 | 2802 | |
ad6254c5 | 2803 | fi |
f11781c5 AK |
2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2805 | $as_echo "$ac_cv_target" >&6; } | |
2806 | case $ac_cv_target in | |
2807 | *-*-*) ;; | |
2808 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
8a2fc586 | 2809 | esac |
f11781c5 AK |
2810 | target=$ac_cv_target |
2811 | ac_save_IFS=$IFS; IFS='-' | |
2812 | set x $ac_cv_target | |
2813 | shift | |
2814 | target_cpu=$1 | |
2815 | target_vendor=$2 | |
2816 | shift; shift | |
2817 | # Remember, the first character of IFS is used to create $*, | |
2818 | # except with old shells: | |
2819 | target_os=$* | |
2820 | IFS=$ac_save_IFS | |
2821 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8a2fc586 | 2822 | |
ad6254c5 | 2823 | |
f11781c5 AK |
2824 | # The aliases save the names the user supplied, while $host etc. |
2825 | # will get canonicalized. | |
2826 | test -n "$target_alias" && | |
2827 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2828 | NONENONEs,x,x, && | |
2829 | program_prefix=${target_alias}- | |
ad6254c5 | 2830 | |
f11781c5 AK |
2831 | case "$host_os" in |
2832 | linux*) | |
2833 | CFLAGS="$CFLAGS" | |
2834 | COPTIMISE_FLAG="-O2" | |
2835 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
bf09a320 AK |
2836 | ELDFLAGS="-Wl,--export-dynamic" |
2837 | # FIXME Generate list and use --dynamic-list=.dlopen.sym | |
f11781c5 AK |
2838 | CLDWHOLEARCHIVE="-Wl,-whole-archive" |
2839 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2840 | LDDEPS="$LDDEPS .export.sym" | |
f11781c5 AK |
2841 | LIB_SUFFIX=so |
2842 | DEVMAPPER=yes | |
cdd50823 | 2843 | LVMETAD=no |
f11781c5 AK |
2844 | ODIRECT=yes |
2845 | DM_IOCTLS=yes | |
2846 | SELINUX=yes | |
2847 | CLUSTER=internal | |
2848 | FSADM=yes | |
2849 | ;; | |
2850 | darwin*) | |
2851 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2852 | COPTIMISE_FLAG="-O2" | |
2853 | CLDFLAGS="$CLDFLAGS" | |
bf09a320 | 2854 | ELDFLAGS= |
f11781c5 AK |
2855 | CLDWHOLEARCHIVE="-all_load" |
2856 | CLDNOWHOLEARCHIVE= | |
2857 | LIB_SUFFIX=dylib | |
2858 | DEVMAPPER=yes | |
2859 | ODIRECT=no | |
2860 | DM_IOCTLS=no | |
2861 | SELINUX=no | |
2862 | CLUSTER=none | |
2863 | FSADM=no | |
2864 | ;; | |
2865 | esac | |
ad6254c5 | 2866 | |
f11781c5 AK |
2867 | ################################################################################ |
2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
2869 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2870 | if test "${ac_cv_path_SED+set}" = set; then : | |
ec6a6fbe | 2871 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2872 | else |
f11781c5 AK |
2873 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
2874 | for ac_i in 1 2 3 4 5 6 7; do | |
2875 | ac_script="$ac_script$as_nl$ac_script" | |
2876 | done | |
2877 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2878 | { ac_script=; unset ac_script;} | |
2879 | if test -z "$SED"; then | |
2880 | ac_path_SED_found=false | |
2881 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2883 | for as_dir in $PATH | |
2884 | do | |
2885 | IFS=$as_save_IFS | |
2886 | test -z "$as_dir" && as_dir=. | |
2887 | for ac_prog in sed gsed; do | |
2888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2889 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2890 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2891 | # Check for GNU ac_path_SED and select it if it is found. | |
2892 | # Check for GNU $ac_path_SED | |
2893 | case `"$ac_path_SED" --version 2>&1` in | |
2894 | *GNU*) | |
2895 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2896 | *) | |
2897 | ac_count=0 | |
2898 | $as_echo_n 0123456789 >"conftest.in" | |
2899 | while : | |
2900 | do | |
2901 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2902 | mv "conftest.tmp" "conftest.in" | |
2903 | cp "conftest.in" "conftest.nl" | |
2904 | $as_echo '' >> "conftest.nl" | |
2905 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2906 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2907 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2908 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2909 | # Best one so far, save it but keep looking for a better one | |
2910 | ac_cv_path_SED="$ac_path_SED" | |
2911 | ac_path_SED_max=$ac_count | |
2912 | fi | |
2913 | # 10*(2^10) chars as input seems more than enough | |
2914 | test $ac_count -gt 10 && break | |
2915 | done | |
2916 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7a197a62 | 2917 | esac |
ad6254c5 | 2918 | |
f11781c5 AK |
2919 | $ac_path_SED_found && break 3 |
2920 | done | |
2921 | done | |
2922 | done | |
2923 | IFS=$as_save_IFS | |
2924 | if test -z "$ac_cv_path_SED"; then | |
2925 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2926 | fi | |
2927 | else | |
2928 | ac_cv_path_SED=$SED | |
ad6254c5 | 2929 | fi |
7a197a62 | 2930 | |
f11781c5 AK |
2931 | fi |
2932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2933 | $as_echo "$ac_cv_path_SED" >&6; } | |
2934 | SED="$ac_cv_path_SED" | |
2935 | rm -f conftest.sed | |
ad6254c5 | 2936 | |
f11781c5 AK |
2937 | for ac_prog in gawk mawk nawk awk |
2938 | do | |
2939 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2940 | set dummy $ac_prog; ac_word=$2 | |
2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2942 | $as_echo_n "checking for $ac_word... " >&6; } | |
2943 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2944 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2945 | else |
f11781c5 AK |
2946 | if test -n "$AWK"; then |
2947 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2948 | else | |
2949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2950 | for as_dir in $PATH | |
2951 | do | |
2952 | IFS=$as_save_IFS | |
2953 | test -z "$as_dir" && as_dir=. | |
2954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2955 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2956 | ac_cv_prog_AWK="$ac_prog" | |
2957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2958 | break 2 | |
2959 | fi | |
2960 | done | |
2961 | done | |
2962 | IFS=$as_save_IFS | |
ad6254c5 | 2963 | |
ad6254c5 | 2964 | fi |
ad6254c5 | 2965 | fi |
f11781c5 AK |
2966 | AWK=$ac_cv_prog_AWK |
2967 | if test -n "$AWK"; then | |
2968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2969 | $as_echo "$AWK" >&6; } | |
2970 | else | |
2971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2972 | $as_echo "no" >&6; } | |
ad6254c5 | 2973 | fi |
ad6254c5 | 2974 | |
ad6254c5 | 2975 | |
f11781c5 | 2976 | test -n "$AWK" && break |
ad6254c5 AK |
2977 | done |
2978 | ||
f11781c5 AK |
2979 | ac_ext=c |
2980 | ac_cpp='$CPP $CPPFLAGS' | |
2981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2984 | if test -n "$ac_tool_prefix"; then | |
2985 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2986 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2988 | $as_echo_n "checking for $ac_word... " >&6; } | |
2989 | if test "${ac_cv_prog_CC+set}" = set; then : | |
ec6a6fbe | 2990 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2991 | else |
f11781c5 AK |
2992 | if test -n "$CC"; then |
2993 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
ad6254c5 | 2994 | else |
f11781c5 AK |
2995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2996 | for as_dir in $PATH | |
2997 | do | |
2998 | IFS=$as_save_IFS | |
2999 | test -z "$as_dir" && as_dir=. | |
3000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3002 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3003 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3004 | break 2 | |
3005 | fi | |
3006 | done | |
3007 | done | |
3008 | IFS=$as_save_IFS | |
ad6254c5 | 3009 | |
ad6254c5 | 3010 | fi |
ad6254c5 | 3011 | fi |
f11781c5 AK |
3012 | CC=$ac_cv_prog_CC |
3013 | if test -n "$CC"; then | |
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3015 | $as_echo "$CC" >&6; } | |
3016 | else | |
3017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3018 | $as_echo "no" >&6; } | |
ad6254c5 | 3019 | fi |
ad6254c5 | 3020 | |
f11781c5 AK |
3021 | |
3022 | fi | |
3023 | if test -z "$ac_cv_prog_CC"; then | |
3024 | ac_ct_CC=$CC | |
3025 | # Extract the first word of "gcc", so it can be a program name with args. | |
3026 | set dummy gcc; ac_word=$2 | |
3027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3028 | $as_echo_n "checking for $ac_word... " >&6; } | |
3029 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
ec6a6fbe | 3030 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3031 | else |
f11781c5 AK |
3032 | if test -n "$ac_ct_CC"; then |
3033 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d911ec67 | 3034 | else |
f11781c5 AK |
3035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3036 | for as_dir in $PATH | |
3037 | do | |
3038 | IFS=$as_save_IFS | |
3039 | test -z "$as_dir" && as_dir=. | |
3040 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3041 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3042 | ac_cv_prog_ac_ct_CC="gcc" | |
3043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3044 | break 2 | |
3045 | fi | |
3046 | done | |
3047 | done | |
3048 | IFS=$as_save_IFS | |
d911ec67 | 3049 | |
d911ec67 | 3050 | fi |
d911ec67 | 3051 | fi |
f11781c5 AK |
3052 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3053 | if test -n "$ac_ct_CC"; then | |
3054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3055 | $as_echo "$ac_ct_CC" >&6; } | |
3056 | else | |
3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3058 | $as_echo "no" >&6; } | |
d911ec67 | 3059 | fi |
d911ec67 | 3060 | |
f11781c5 AK |
3061 | if test "x$ac_ct_CC" = x; then |
3062 | CC="" | |
3063 | else | |
3064 | case $cross_compiling:$ac_tool_warned in | |
3065 | yes:) | |
3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3067 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3068 | ac_tool_warned=yes ;; | |
3069 | esac | |
3070 | CC=$ac_ct_CC | |
3071 | fi | |
3072 | else | |
3073 | CC="$ac_cv_prog_CC" | |
d911ec67 | 3074 | fi |
d911ec67 | 3075 | |
f11781c5 AK |
3076 | if test -z "$CC"; then |
3077 | if test -n "$ac_tool_prefix"; then | |
3078 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3079 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3081 | $as_echo_n "checking for $ac_word... " >&6; } | |
3082 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 | 3083 | $as_echo_n "(cached) " >&6 |
d911ec67 | 3084 | else |
f11781c5 AK |
3085 | if test -n "$CC"; then |
3086 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d911ec67 | 3087 | else |
f11781c5 AK |
3088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3089 | for as_dir in $PATH | |
3090 | do | |
3091 | IFS=$as_save_IFS | |
3092 | test -z "$as_dir" && as_dir=. | |
3093 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3094 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3095 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3097 | break 2 | |
3098 | fi | |
3099 | done | |
3100 | done | |
3101 | IFS=$as_save_IFS | |
d911ec67 | 3102 | |
f11781c5 AK |
3103 | fi |
3104 | fi | |
3105 | CC=$ac_cv_prog_CC | |
3106 | if test -n "$CC"; then | |
3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3108 | $as_echo "$CC" >&6; } | |
3109 | else | |
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3111 | $as_echo "no" >&6; } | |
d911ec67 AK |
3112 | fi |
3113 | ||
d911ec67 | 3114 | |
f11781c5 AK |
3115 | fi |
3116 | fi | |
3117 | if test -z "$CC"; then | |
3118 | # Extract the first word of "cc", so it can be a program name with args. | |
3119 | set dummy cc; ac_word=$2 | |
3120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3121 | $as_echo_n "checking for $ac_word... " >&6; } | |
3122 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3123 | $as_echo_n "(cached) " >&6 | |
d911ec67 | 3124 | else |
f11781c5 AK |
3125 | if test -n "$CC"; then |
3126 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3127 | else | |
3128 | ac_prog_rejected=no | |
3129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3130 | for as_dir in $PATH | |
3131 | do | |
3132 | IFS=$as_save_IFS | |
3133 | test -z "$as_dir" && as_dir=. | |
3134 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3135 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3136 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3137 | ac_prog_rejected=yes | |
3138 | continue | |
3139 | fi | |
3140 | ac_cv_prog_CC="cc" | |
3141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3142 | break 2 | |
3143 | fi | |
3144 | done | |
3145 | done | |
3146 | IFS=$as_save_IFS | |
d911ec67 | 3147 | |
f11781c5 AK |
3148 | if test $ac_prog_rejected = yes; then |
3149 | # We found a bogon in the path, so make sure we never use it. | |
3150 | set dummy $ac_cv_prog_CC | |
3151 | shift | |
3152 | if test $# != 0; then | |
3153 | # We chose a different compiler from the bogus one. | |
3154 | # However, it has the same basename, so the bogon will be chosen | |
3155 | # first if we set CC to just the basename; use the full file name. | |
3156 | shift | |
3157 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3158 | fi | |
3159 | fi | |
3160 | fi | |
3161 | fi | |
3162 | CC=$ac_cv_prog_CC | |
3163 | if test -n "$CC"; then | |
3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3165 | $as_echo "$CC" >&6; } | |
3166 | else | |
3167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3168 | $as_echo "no" >&6; } | |
d911ec67 AK |
3169 | fi |
3170 | ||
d911ec67 | 3171 | |
f11781c5 AK |
3172 | fi |
3173 | if test -z "$CC"; then | |
3174 | if test -n "$ac_tool_prefix"; then | |
3175 | for ac_prog in cl.exe | |
3176 | do | |
3177 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3178 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3180 | $as_echo_n "checking for $ac_word... " >&6; } | |
3181 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 AK |
3182 | $as_echo_n "(cached) " >&6 |
3183 | else | |
f11781c5 AK |
3184 | if test -n "$CC"; then |
3185 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3186 | else | |
3187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3188 | for as_dir in $PATH | |
3189 | do | |
3190 | IFS=$as_save_IFS | |
3191 | test -z "$as_dir" && as_dir=. | |
3192 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3194 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3196 | break 2 | |
3197 | fi | |
3198 | done | |
3199 | done | |
3200 | IFS=$as_save_IFS | |
d911ec67 AK |
3201 | |
3202 | fi | |
f11781c5 AK |
3203 | fi |
3204 | CC=$ac_cv_prog_CC | |
3205 | if test -n "$CC"; then | |
3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3207 | $as_echo "$CC" >&6; } | |
3208 | else | |
3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3210 | $as_echo "no" >&6; } | |
d911ec67 AK |
3211 | fi |
3212 | ||
d911ec67 | 3213 | |
f11781c5 AK |
3214 | test -n "$CC" && break |
3215 | done | |
3216 | fi | |
3217 | if test -z "$CC"; then | |
3218 | ac_ct_CC=$CC | |
3219 | for ac_prog in cl.exe | |
3220 | do | |
3221 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3222 | set dummy $ac_prog; ac_word=$2 | |
3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3224 | $as_echo_n "checking for $ac_word... " >&6; } | |
3225 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
d911ec67 AK |
3226 | $as_echo_n "(cached) " >&6 |
3227 | else | |
f11781c5 AK |
3228 | if test -n "$ac_ct_CC"; then |
3229 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
ad6254c5 | 3230 | else |
f11781c5 AK |
3231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3232 | for as_dir in $PATH | |
3233 | do | |
3234 | IFS=$as_save_IFS | |
3235 | test -z "$as_dir" && as_dir=. | |
3236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3237 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3238 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3239 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3240 | break 2 | |
3241 | fi | |
3242 | done | |
3243 | done | |
3244 | IFS=$as_save_IFS | |
ad6254c5 | 3245 | |
ad6254c5 | 3246 | fi |
ad6254c5 | 3247 | fi |
f11781c5 AK |
3248 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3249 | if test -n "$ac_ct_CC"; then | |
3250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3251 | $as_echo "$ac_ct_CC" >&6; } | |
3252 | else | |
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3254 | $as_echo "no" >&6; } | |
ad6254c5 | 3255 | fi |
ad6254c5 | 3256 | |
d911ec67 | 3257 | |
f11781c5 AK |
3258 | test -n "$ac_ct_CC" && break |
3259 | done | |
d911ec67 | 3260 | |
f11781c5 AK |
3261 | if test "x$ac_ct_CC" = x; then |
3262 | CC="" | |
3263 | else | |
3264 | case $cross_compiling:$ac_tool_warned in | |
3265 | yes:) | |
3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3267 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3268 | ac_tool_warned=yes ;; | |
d911ec67 | 3269 | esac |
f11781c5 AK |
3270 | CC=$ac_ct_CC |
3271 | fi | |
3272 | fi | |
ad6254c5 AK |
3273 | |
3274 | fi | |
d911ec67 AK |
3275 | |
3276 | ||
f11781c5 AK |
3277 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3278 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3279 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3280 | See \`config.log' for more details" "$LINENO" 5; } | |
3281 | ||
3282 | # Provide some information about the compiler. | |
3283 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3284 | set X $ac_compile | |
3285 | ac_compiler=$2 | |
3286 | for ac_option in --version -v -V -qversion; do | |
3287 | { { ac_try="$ac_compiler $ac_option >&5" | |
3288 | case "(($ac_try" in | |
3289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3290 | *) ac_try_echo=$ac_try;; | |
3291 | esac | |
3292 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3293 | $as_echo "$ac_try_echo"; } >&5 | |
3294 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3295 | ac_status=$? | |
3296 | if test -s conftest.err; then | |
3297 | sed '10a\ | |
3298 | ... rest of stderr output deleted ... | |
3299 | 10q' conftest.err >conftest.er1 | |
3300 | cat conftest.er1 >&5 | |
3301 | fi | |
3302 | rm -f conftest.er1 conftest.err | |
3303 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3304 | test $ac_status = 0; } | |
3305 | done | |
ad6254c5 | 3306 | |
f11781c5 | 3307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 3308 | /* end confdefs.h. */ |
f11781c5 | 3309 | |
ad6254c5 AK |
3310 | int |
3311 | main () | |
3312 | { | |
f11781c5 | 3313 | |
ad6254c5 AK |
3314 | ; |
3315 | return 0; | |
3316 | } | |
3317 | _ACEOF | |
f11781c5 AK |
3318 | ac_clean_files_save=$ac_clean_files |
3319 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3320 | # Try to create an executable without -o first, disregard a.out. | |
3321 | # It will help us diagnose broken compilers, and finding out an intuition | |
3322 | # of exeext. | |
3323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3324 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3325 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3326 | ||
3327 | # The possible output files: | |
3328 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3329 | ||
3330 | ac_rmfiles= | |
3331 | for ac_file in $ac_files | |
3332 | do | |
3333 | case $ac_file in | |
3334 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3335 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3336 | esac | |
3337 | done | |
3338 | rm -f $ac_rmfiles | |
3339 | ||
3340 | if { { ac_try="$ac_link_default" | |
7a197a62 AK |
3341 | case "(($ac_try" in |
3342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3343 | *) ac_try_echo=$ac_try;; | |
3344 | esac | |
f11781c5 AK |
3345 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3346 | $as_echo "$ac_try_echo"; } >&5 | |
3347 | (eval "$ac_link_default") 2>&5 | |
ad6254c5 | 3348 | ac_status=$? |
f11781c5 AK |
3349 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3350 | test $ac_status = 0; }; then : | |
3351 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3352 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3353 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3354 | # so that the user can short-circuit this test for compilers unknown to | |
3355 | # Autoconf. | |
3356 | for ac_file in $ac_files '' | |
3357 | do | |
3358 | test -f "$ac_file" || continue | |
3359 | case $ac_file in | |
3360 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3361 | ;; | |
3362 | [ab].out ) | |
3363 | # We found the default executable, but exeext='' is most | |
3364 | # certainly right. | |
3365 | break;; | |
3366 | *.* ) | |
3367 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3368 | then :; else | |
3369 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3370 | fi | |
3371 | # We set ac_cv_exeext here because the later test for it is not | |
3372 | # safe: cross compilers may not add the suffix if given an `-o' | |
3373 | # argument, so we may need to know it at that point already. | |
3374 | # Even if this section looks crufty: it has the advantage of | |
3375 | # actually working. | |
3376 | break;; | |
3377 | * ) | |
3378 | break;; | |
3379 | esac | |
3380 | done | |
3381 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3382 | ||
ad6254c5 | 3383 | else |
f11781c5 AK |
3384 | ac_file='' |
3385 | fi | |
3386 | if test -z "$ac_file"; then : | |
3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3388 | $as_echo "no" >&6; } | |
ec6a6fbe | 3389 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3390 | sed 's/^/| /' conftest.$ac_ext >&5 |
3391 | ||
f11781c5 AK |
3392 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3393 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3394 | as_fn_error 77 "C compiler cannot create executables | |
3395 | See \`config.log' for more details" "$LINENO" 5; } | |
3396 | else | |
3397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3398 | $as_echo "yes" >&6; } | |
ad6254c5 | 3399 | fi |
f11781c5 AK |
3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3401 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3403 | $as_echo "$ac_file" >&6; } | |
3404 | ac_exeext=$ac_cv_exeext | |
7a197a62 | 3405 | |
f11781c5 AK |
3406 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3407 | ac_clean_files=$ac_clean_files_save | |
3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3409 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3410 | if { { ac_try="$ac_link" | |
3411 | case "(($ac_try" in | |
3412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3413 | *) ac_try_echo=$ac_try;; | |
8a2fc586 | 3414 | esac |
f11781c5 AK |
3415 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3416 | $as_echo "$ac_try_echo"; } >&5 | |
3417 | (eval "$ac_link") 2>&5 | |
3418 | ac_status=$? | |
3419 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3420 | test $ac_status = 0; }; then : | |
3421 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3422 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3423 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3424 | # `rm'. | |
3425 | for ac_file in conftest.exe conftest conftest.*; do | |
3426 | test -f "$ac_file" || continue | |
3427 | case $ac_file in | |
3428 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3429 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3430 | break;; | |
3431 | * ) break;; | |
3432 | esac | |
3433 | done | |
3434 | else | |
3435 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3436 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3437 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3438 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3439 | fi |
f11781c5 AK |
3440 | rm -f conftest conftest$ac_cv_exeext |
3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3442 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 | 3443 | |
f11781c5 AK |
3444 | rm -f conftest.$ac_ext |
3445 | EXEEXT=$ac_cv_exeext | |
3446 | ac_exeext=$EXEEXT | |
3447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 3448 | /* end confdefs.h. */ |
f11781c5 | 3449 | #include <stdio.h> |
ad6254c5 | 3450 | int |
f11781c5 | 3451 | main () |
ad6254c5 | 3452 | { |
f11781c5 AK |
3453 | FILE *f = fopen ("conftest.out", "w"); |
3454 | return ferror (f) || fclose (f) != 0; | |
ad6254c5 | 3455 | |
f11781c5 | 3456 | ; |
7a197a62 | 3457 | return 0; |
ad6254c5 | 3458 | } |
ad6254c5 | 3459 | _ACEOF |
f11781c5 AK |
3460 | ac_clean_files="$ac_clean_files conftest.out" |
3461 | # Check that the compiler produces executables we can run. If not, either | |
3462 | # the compiler is broken, or we cross compile. | |
3463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3464 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3465 | if test "$cross_compiling" != yes; then | |
3466 | { { ac_try="$ac_link" | |
7a197a62 AK |
3467 | case "(($ac_try" in |
3468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3469 | *) ac_try_echo=$ac_try;; | |
3470 | esac | |
f11781c5 AK |
3471 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3472 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3473 | (eval "$ac_link") 2>&5 |
ad6254c5 | 3474 | ac_status=$? |
f11781c5 AK |
3475 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3476 | test $ac_status = 0; } | |
3477 | if { ac_try='./conftest$ac_cv_exeext' | |
3478 | { { case "(($ac_try" in | |
7a197a62 AK |
3479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3480 | *) ac_try_echo=$ac_try;; | |
3481 | esac | |
f11781c5 AK |
3482 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3483 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3484 | (eval "$ac_try") 2>&5 |
ad6254c5 | 3485 | ac_status=$? |
f11781c5 AK |
3486 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3487 | test $ac_status = 0; }; }; then | |
3488 | cross_compiling=no | |
3489 | else | |
3490 | if test "$cross_compiling" = maybe; then | |
3491 | cross_compiling=yes | |
3492 | else | |
3493 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3494 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3495 | as_fn_error $? "cannot run C compiled programs. | |
3496 | If you meant to cross compile, use \`--host'. | |
3497 | See \`config.log' for more details" "$LINENO" 5; } | |
3498 | fi | |
3499 | fi | |
3500 | fi | |
3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3502 | $as_echo "$cross_compiling" >&6; } | |
3503 | ||
3504 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3505 | ac_clean_files=$ac_clean_files_save | |
3506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3507 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3508 | if test "${ac_cv_objext+set}" = set; then : | |
3509 | $as_echo_n "(cached) " >&6 | |
3510 | else | |
3511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3512 | /* end confdefs.h. */ | |
ad6254c5 AK |
3513 | |
3514 | int | |
3515 | main () | |
3516 | { | |
f11781c5 | 3517 | |
ad6254c5 AK |
3518 | ; |
3519 | return 0; | |
3520 | } | |
3521 | _ACEOF | |
f11781c5 AK |
3522 | rm -f conftest.o conftest.obj |
3523 | if { { ac_try="$ac_compile" | |
7a197a62 AK |
3524 | case "(($ac_try" in |
3525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3526 | *) ac_try_echo=$ac_try;; | |
3527 | esac | |
f11781c5 AK |
3528 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3529 | $as_echo "$ac_try_echo"; } >&5 | |
3530 | (eval "$ac_compile") 2>&5 | |
ad6254c5 | 3531 | ac_status=$? |
f11781c5 AK |
3532 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3533 | test $ac_status = 0; }; then : | |
3534 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3535 | test -f "$ac_file" || continue; | |
3536 | case $ac_file in | |
3537 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3538 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3539 | break;; | |
3540 | esac | |
3541 | done | |
ad6254c5 | 3542 | else |
ec6a6fbe | 3543 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3544 | sed 's/^/| /' conftest.$ac_ext >&5 |
3545 | ||
f11781c5 AK |
3546 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3547 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3548 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3549 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3550 | fi |
f11781c5 | 3551 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ad6254c5 | 3552 | fi |
f11781c5 AK |
3553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3554 | $as_echo "$ac_cv_objext" >&6; } | |
3555 | OBJEXT=$ac_cv_objext | |
3556 | ac_objext=$OBJEXT | |
3557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3558 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3559 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
ec6a6fbe | 3560 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3561 | else |
f11781c5 | 3562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 AK |
3563 | /* end confdefs.h. */ |
3564 | ||
ad6254c5 AK |
3565 | int |
3566 | main () | |
3567 | { | |
f11781c5 AK |
3568 | #ifndef __GNUC__ |
3569 | choke me | |
3570 | #endif | |
3571 | ||
ad6254c5 AK |
3572 | ; |
3573 | return 0; | |
3574 | } | |
3575 | _ACEOF | |
f11781c5 AK |
3576 | if ac_fn_c_try_compile "$LINENO"; then : |
3577 | ac_compiler_gnu=yes | |
ad6254c5 | 3578 | else |
f11781c5 | 3579 | ac_compiler_gnu=no |
ad6254c5 | 3580 | fi |
f11781c5 AK |
3581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3582 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
7a197a62 | 3583 | |
d0191583 | 3584 | fi |
f11781c5 AK |
3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3586 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3587 | if test $ac_compiler_gnu = yes; then | |
3588 | GCC=yes | |
d0191583 | 3589 | else |
f11781c5 | 3590 | GCC= |
d0191583 | 3591 | fi |
f11781c5 AK |
3592 | ac_test_CFLAGS=${CFLAGS+set} |
3593 | ac_save_CFLAGS=$CFLAGS | |
3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3595 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3596 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3597 | $as_echo_n "(cached) " >&6 | |
3598 | else | |
3599 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3600 | ac_c_werror_flag=yes | |
3601 | ac_cv_prog_cc_g=no | |
3602 | CFLAGS="-g" | |
3603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3604 | /* end confdefs.h. */ | |
72b2cb61 | 3605 | |
f11781c5 AK |
3606 | int |
3607 | main () | |
3608 | { | |
72b2cb61 | 3609 | |
f11781c5 AK |
3610 | ; |
3611 | return 0; | |
3612 | } | |
3613 | _ACEOF | |
3614 | if ac_fn_c_try_compile "$LINENO"; then : | |
3615 | ac_cv_prog_cc_g=yes | |
3616 | else | |
3617 | CFLAGS="" | |
3618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3619 | /* end confdefs.h. */ | |
ad6254c5 | 3620 | |
f11781c5 AK |
3621 | int |
3622 | main () | |
3623 | { | |
ad6254c5 | 3624 | |
f11781c5 AK |
3625 | ; |
3626 | return 0; | |
3627 | } | |
d0191583 | 3628 | _ACEOF |
f11781c5 AK |
3629 | if ac_fn_c_try_compile "$LINENO"; then : |
3630 | ||
3631 | else | |
3632 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3633 | CFLAGS="-g" | |
3634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3635 | /* end confdefs.h. */ |
7a197a62 | 3636 | |
f11781c5 AK |
3637 | int |
3638 | main () | |
3639 | { | |
ad6254c5 | 3640 | |
f11781c5 AK |
3641 | ; |
3642 | return 0; | |
3643 | } | |
3644 | _ACEOF | |
3645 | if ac_fn_c_try_compile "$LINENO"; then : | |
3646 | ac_cv_prog_cc_g=yes | |
3647 | fi | |
3648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3649 | fi | |
3650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3651 | fi | |
3652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3653 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3654 | fi | |
3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3656 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3657 | if test "$ac_test_CFLAGS" = set; then | |
3658 | CFLAGS=$ac_save_CFLAGS | |
3659 | elif test $ac_cv_prog_cc_g = yes; then | |
3660 | if test "$GCC" = yes; then | |
3661 | CFLAGS="-g -O2" | |
3662 | else | |
3663 | CFLAGS="-g" | |
3664 | fi | |
3665 | else | |
3666 | if test "$GCC" = yes; then | |
3667 | CFLAGS="-O2" | |
3668 | else | |
3669 | CFLAGS= | |
3670 | fi | |
3671 | fi | |
3672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3673 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3674 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3675 | $as_echo_n "(cached) " >&6 | |
3676 | else | |
3677 | ac_cv_prog_cc_c89=no | |
3678 | ac_save_CC=$CC | |
3679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3680 | /* end confdefs.h. */ | |
3681 | #include <stdarg.h> | |
3682 | #include <stdio.h> | |
3683 | #include <sys/types.h> | |
3684 | #include <sys/stat.h> | |
3685 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3686 | struct buf { int x; }; | |
3687 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3688 | static char *e (p, i) | |
3689 | char **p; | |
3690 | int i; | |
3691 | { | |
3692 | return p[i]; | |
3693 | } | |
3694 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3695 | { | |
3696 | char *s; | |
3697 | va_list v; | |
3698 | va_start (v,p); | |
3699 | s = g (p, va_arg (v,int)); | |
3700 | va_end (v); | |
3701 | return s; | |
3702 | } | |
ad6254c5 | 3703 | |
f11781c5 AK |
3704 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3705 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3706 | These don't provoke an error unfortunately, instead are silently treated | |
3707 | as 'x'. The following induces an error, until -std is added to get | |
3708 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3709 | array size at least. It's necessary to write '\x00'==0 to get something | |
3710 | that's true only with -std. */ | |
3711 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
72b2cb61 | 3712 | |
f11781c5 AK |
3713 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3714 | inside strings and character constants. */ | |
3715 | #define FOO(x) 'x' | |
3716 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
d0191583 | 3717 | |
f11781c5 AK |
3718 | int test (int i, double x); |
3719 | struct s1 {int (*f) (int a);}; | |
3720 | struct s2 {int (*f) (double a);}; | |
3721 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3722 | int argc; | |
3723 | char **argv; | |
d0191583 JM |
3724 | int |
3725 | main () | |
3726 | { | |
f11781c5 | 3727 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
d0191583 JM |
3728 | ; |
3729 | return 0; | |
3730 | } | |
72b2cb61 | 3731 | _ACEOF |
f11781c5 AK |
3732 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3733 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3734 | do | |
3735 | CC="$ac_save_CC $ac_arg" | |
3736 | if ac_fn_c_try_compile "$LINENO"; then : | |
3737 | ac_cv_prog_cc_c89=$ac_arg | |
3738 | fi | |
3739 | rm -f core conftest.err conftest.$ac_objext | |
3740 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3741 | done | |
3742 | rm -f conftest.$ac_ext | |
3743 | CC=$ac_save_CC | |
3744 | ||
3745 | fi | |
3746 | # AC_CACHE_VAL | |
3747 | case "x$ac_cv_prog_cc_c89" in | |
3748 | x) | |
3749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3750 | $as_echo "none needed" >&6; } ;; | |
3751 | xno) | |
3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3753 | $as_echo "unsupported" >&6; } ;; | |
3754 | *) | |
3755 | CC="$CC $ac_cv_prog_cc_c89" | |
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3757 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d0191583 | 3758 | esac |
f11781c5 AK |
3759 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
3760 | ||
3761 | fi | |
3762 | ||
3763 | ac_ext=c | |
3764 | ac_cpp='$CPP $CPPFLAGS' | |
3765 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3766 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3767 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
72b2cb61 | 3768 | |
ad6254c5 | 3769 | |
7a197a62 | 3770 | |
f11781c5 AK |
3771 | ac_ext=c |
3772 | ac_cpp='$CPP $CPPFLAGS' | |
3773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3777 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3778 | # On Suns, sometimes $CPP names a directory. | |
3779 | if test -n "$CPP" && test -d "$CPP"; then | |
3780 | CPP= | |
3781 | fi | |
3782 | if test -z "$CPP"; then | |
3783 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
ec6a6fbe | 3784 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3785 | else |
f11781c5 AK |
3786 | # Double quotes because CPP needs to be expanded |
3787 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3788 | do | |
3789 | ac_preproc_ok=false | |
3790 | for ac_c_preproc_warn_flag in '' yes | |
3791 | do | |
3792 | # Use a header file that comes with gcc, so configuring glibc | |
3793 | # with a fresh cross-compiler works. | |
3794 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3795 | # <limits.h> exists even on freestanding compilers. | |
3796 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3797 | # not just through cpp. "Syntax error" is here to catch this case. | |
3798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3799 | /* end confdefs.h. */ |
d0191583 JM |
3800 | #ifdef __STDC__ |
3801 | # include <limits.h> | |
3802 | #else | |
3803 | # include <assert.h> | |
3804 | #endif | |
f11781c5 AK |
3805 | Syntax error |
3806 | _ACEOF | |
3807 | if ac_fn_c_try_cpp "$LINENO"; then : | |
72b2cb61 | 3808 | |
f11781c5 AK |
3809 | else |
3810 | # Broken: fails on valid input. | |
3811 | continue | |
3812 | fi | |
3813 | rm -f conftest.err conftest.$ac_ext | |
d0191583 | 3814 | |
f11781c5 AK |
3815 | # OK, works on sane cases. Now check whether nonexistent headers |
3816 | # can be detected and how. | |
3817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3818 | /* end confdefs.h. */ | |
3819 | #include <ac_nonexistent.h> | |
72b2cb61 | 3820 | _ACEOF |
f11781c5 AK |
3821 | if ac_fn_c_try_cpp "$LINENO"; then : |
3822 | # Broken: success on invalid input. | |
3823 | continue | |
d0191583 | 3824 | else |
f11781c5 AK |
3825 | # Passes both tests. |
3826 | ac_preproc_ok=: | |
3827 | break | |
ad6254c5 | 3828 | fi |
f11781c5 | 3829 | rm -f conftest.err conftest.$ac_ext |
ad6254c5 | 3830 | |
f11781c5 AK |
3831 | done |
3832 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3833 | rm -f conftest.err conftest.$ac_ext | |
3834 | if $ac_preproc_ok; then : | |
3835 | break | |
7a197a62 AK |
3836 | fi |
3837 | ||
f11781c5 AK |
3838 | done |
3839 | ac_cv_prog_CPP=$CPP | |
ad6254c5 | 3840 | |
7a197a62 | 3841 | fi |
f11781c5 AK |
3842 | CPP=$ac_cv_prog_CPP |
3843 | else | |
3844 | ac_cv_prog_CPP=$CPP | |
d0191583 | 3845 | fi |
f11781c5 AK |
3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3847 | $as_echo "$CPP" >&6; } | |
3848 | ac_preproc_ok=false | |
3849 | for ac_c_preproc_warn_flag in '' yes | |
3850 | do | |
3851 | # Use a header file that comes with gcc, so configuring glibc | |
3852 | # with a fresh cross-compiler works. | |
3853 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3854 | # <limits.h> exists even on freestanding compilers. | |
3855 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3856 | # not just through cpp. "Syntax error" is here to catch this case. | |
3857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3858 | /* end confdefs.h. */ | |
3859 | #ifdef __STDC__ | |
3860 | # include <limits.h> | |
3861 | #else | |
3862 | # include <assert.h> | |
3863 | #endif | |
3864 | Syntax error | |
3865 | _ACEOF | |
3866 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7a197a62 | 3867 | |
9c961554 | 3868 | else |
f11781c5 AK |
3869 | # Broken: fails on valid input. |
3870 | continue | |
9c961554 | 3871 | fi |
f11781c5 | 3872 | rm -f conftest.err conftest.$ac_ext |
9c961554 | 3873 | |
f11781c5 AK |
3874 | # OK, works on sane cases. Now check whether nonexistent headers |
3875 | # can be detected and how. | |
3876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3877 | /* end confdefs.h. */ | |
3878 | #include <ac_nonexistent.h> | |
3879 | _ACEOF | |
3880 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3881 | # Broken: success on invalid input. | |
3882 | continue | |
3883 | else | |
3884 | # Passes both tests. | |
3885 | ac_preproc_ok=: | |
3886 | break | |
3887 | fi | |
3888 | rm -f conftest.err conftest.$ac_ext | |
ad6254c5 | 3889 | |
f11781c5 AK |
3890 | done |
3891 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3892 | rm -f conftest.err conftest.$ac_ext | |
3893 | if $ac_preproc_ok; then : | |
d0191583 | 3894 | |
f11781c5 AK |
3895 | else |
3896 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3897 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3898 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3899 | See \`config.log' for more details" "$LINENO" 5; } | |
7a197a62 AK |
3900 | fi |
3901 | ||
f11781c5 AK |
3902 | ac_ext=c |
3903 | ac_cpp='$CPP $CPPFLAGS' | |
3904 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3905 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3906 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 3907 | |
ad6254c5 | 3908 | |
f11781c5 AK |
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3910 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3911 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3912 | $as_echo_n "(cached) " >&6 | |
3913 | else | |
3914 | if test -z "$GREP"; then | |
3915 | ac_path_GREP_found=false | |
3916 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3918 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3919 | do | |
3920 | IFS=$as_save_IFS | |
3921 | test -z "$as_dir" && as_dir=. | |
3922 | for ac_prog in grep ggrep; do | |
3923 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3924 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3925 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3926 | # Check for GNU ac_path_GREP and select it if it is found. | |
3927 | # Check for GNU $ac_path_GREP | |
3928 | case `"$ac_path_GREP" --version 2>&1` in | |
3929 | *GNU*) | |
3930 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3931 | *) | |
3932 | ac_count=0 | |
3933 | $as_echo_n 0123456789 >"conftest.in" | |
3934 | while : | |
3935 | do | |
3936 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3937 | mv "conftest.tmp" "conftest.in" | |
3938 | cp "conftest.in" "conftest.nl" | |
3939 | $as_echo 'GREP' >> "conftest.nl" | |
3940 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3941 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3942 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3943 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3944 | # Best one so far, save it but keep looking for a better one | |
3945 | ac_cv_path_GREP="$ac_path_GREP" | |
3946 | ac_path_GREP_max=$ac_count | |
3947 | fi | |
3948 | # 10*(2^10) chars as input seems more than enough | |
3949 | test $ac_count -gt 10 && break | |
3950 | done | |
3951 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3952 | esac | |
ad6254c5 | 3953 | |
f11781c5 AK |
3954 | $ac_path_GREP_found && break 3 |
3955 | done | |
3956 | done | |
3957 | done | |
3958 | IFS=$as_save_IFS | |
3959 | if test -z "$ac_cv_path_GREP"; then | |
3960 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3961 | fi | |
3962 | else | |
3963 | ac_cv_path_GREP=$GREP | |
7a197a62 AK |
3964 | fi |
3965 | ||
d0191583 | 3966 | fi |
f11781c5 AK |
3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3968 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3969 | GREP="$ac_cv_path_GREP" | |
ad6254c5 | 3970 | |
24bbc4d7 | 3971 | |
f11781c5 AK |
3972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3973 | $as_echo_n "checking for egrep... " >&6; } | |
3974 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3975 | $as_echo_n "(cached) " >&6 | |
3976 | else | |
3977 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3978 | then ac_cv_path_EGREP="$GREP -E" | |
3979 | else | |
3980 | if test -z "$EGREP"; then | |
3981 | ac_path_EGREP_found=false | |
3982 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3984 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3985 | do | |
3986 | IFS=$as_save_IFS | |
3987 | test -z "$as_dir" && as_dir=. | |
3988 | for ac_prog in egrep; do | |
3989 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3990 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3991 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3992 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3993 | # Check for GNU $ac_path_EGREP | |
3994 | case `"$ac_path_EGREP" --version 2>&1` in | |
3995 | *GNU*) | |
3996 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3997 | *) | |
3998 | ac_count=0 | |
3999 | $as_echo_n 0123456789 >"conftest.in" | |
4000 | while : | |
4001 | do | |
4002 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4003 | mv "conftest.tmp" "conftest.in" | |
4004 | cp "conftest.in" "conftest.nl" | |
4005 | $as_echo 'EGREP' >> "conftest.nl" | |
4006 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4007 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4008 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4009 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4010 | # Best one so far, save it but keep looking for a better one | |
4011 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4012 | ac_path_EGREP_max=$ac_count | |
4013 | fi | |
4014 | # 10*(2^10) chars as input seems more than enough | |
4015 | test $ac_count -gt 10 && break | |
4016 | done | |
4017 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4018 | esac | |
24bbc4d7 | 4019 | |
f11781c5 AK |
4020 | $ac_path_EGREP_found && break 3 |
4021 | done | |
4022 | done | |
4023 | done | |
4024 | IFS=$as_save_IFS | |
4025 | if test -z "$ac_cv_path_EGREP"; then | |
4026 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4027 | fi | |
24bbc4d7 | 4028 | else |
f11781c5 | 4029 | ac_cv_path_EGREP=$EGREP |
24bbc4d7 AK |
4030 | fi |
4031 | ||
f11781c5 | 4032 | fi |
24bbc4d7 | 4033 | fi |
f11781c5 AK |
4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4035 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4036 | EGREP="$ac_cv_path_EGREP" | |
93bd259b AK |
4037 | |
4038 | ||
f11781c5 AK |
4039 | if test $ac_cv_c_compiler_gnu = yes; then |
4040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4041 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
4042 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : | |
4043 | $as_echo_n "(cached) " >&6 | |
93bd259b | 4044 | else |
f11781c5 AK |
4045 | ac_pattern="Autoconf.*'x'" |
4046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4047 | /* end confdefs.h. */ | |
4048 | #include <sgtty.h> | |
4049 | Autoconf TIOCGETP | |
4050 | _ACEOF | |
4051 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4052 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4053 | ac_cv_prog_gcc_traditional=yes | |
d0191583 | 4054 | else |
f11781c5 | 4055 | ac_cv_prog_gcc_traditional=no |
7a197a62 | 4056 | fi |
f11781c5 | 4057 | rm -f conftest* |
7a197a62 | 4058 | |
72b2cb61 | 4059 | |
f11781c5 AK |
4060 | if test $ac_cv_prog_gcc_traditional = no; then |
4061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4062 | /* end confdefs.h. */ | |
4063 | #include <termio.h> | |
4064 | Autoconf TCGETA | |
72b2cb61 | 4065 | _ACEOF |
f11781c5 AK |
4066 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4067 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4068 | ac_cv_prog_gcc_traditional=yes | |
ad6254c5 | 4069 | fi |
f11781c5 | 4070 | rm -f conftest* |
ad6254c5 | 4071 | |
f11781c5 | 4072 | fi |
7a197a62 | 4073 | fi |
f11781c5 AK |
4074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
4075 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4076 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4077 | CC="$CC -traditional" | |
4078 | fi | |
ad6254c5 AK |
4079 | fi |
4080 | ||
f11781c5 AK |
4081 | # Find a good install program. We prefer a C program (faster), |
4082 | # so one script is as good as another. But avoid the broken or | |
4083 | # incompatible versions: | |
4084 | # SysV /etc/install, /usr/sbin/install | |
4085 | # SunOS /usr/etc/install | |
4086 | # IRIX /sbin/install | |
4087 | # AIX /bin/install | |
4088 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4089 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4090 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4091 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4092 | # OS/2's system install, which has a completely different semantic | |
4093 | # ./install, which can be erroneously created by make from ./install.sh. | |
4094 | # Reject install programs that cannot install multiple files. | |
4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4096 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4097 | if test -z "$INSTALL"; then | |
4098 | if test "${ac_cv_path_install+set}" = set; then : | |
4099 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 4100 | else |
f11781c5 AK |
4101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4102 | for as_dir in $PATH | |
4103 | do | |
4104 | IFS=$as_save_IFS | |
4105 | test -z "$as_dir" && as_dir=. | |
4106 | # Account for people who put trailing slashes in PATH elements. | |
4107 | case $as_dir/ in #(( | |
4108 | ./ | .// | /[cC]/* | \ | |
4109 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4110 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4111 | /usr/ucb/* ) ;; | |
4112 | *) | |
4113 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4114 | # Don't use installbsd from OSF since it installs stuff as root | |
4115 | # by default. | |
4116 | for ac_prog in ginstall scoinst install; do | |
4117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4118 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4119 | if test $ac_prog = install && | |
4120 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4121 | # AIX install. It has an incompatible calling convention. | |
4122 | : | |
4123 | elif test $ac_prog = install && | |
4124 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4125 | # program-specific install script used by HP pwplus--don't use. | |
4126 | : | |
4127 | else | |
4128 | rm -rf conftest.one conftest.two conftest.dir | |
4129 | echo one > conftest.one | |
4130 | echo two > conftest.two | |
4131 | mkdir conftest.dir | |
4132 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4133 | test -s conftest.one && test -s conftest.two && | |
4134 | test -s conftest.dir/conftest.one && | |
4135 | test -s conftest.dir/conftest.two | |
4136 | then | |
4137 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4138 | break 3 | |
4139 | fi | |
4140 | fi | |
4141 | fi | |
4142 | done | |
4143 | done | |
4144 | ;; | |
4145 | esac | |
7a197a62 | 4146 | |
f11781c5 AK |
4147 | done |
4148 | IFS=$as_save_IFS | |
d0191583 | 4149 | |
f11781c5 | 4150 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
4151 | |
4152 | fi | |
f11781c5 AK |
4153 | if test "${ac_cv_path_install+set}" = set; then |
4154 | INSTALL=$ac_cv_path_install | |
4155 | else | |
4156 | # As a last resort, use the slow shell script. Don't cache a | |
4157 | # value for INSTALL within a source directory, because that will | |
4158 | # break other packages using the cache if that directory is | |
4159 | # removed, or if the value is a relative name. | |
4160 | INSTALL=$ac_install_sh | |
4161 | fi | |
7a197a62 | 4162 | fi |
f11781c5 AK |
4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4164 | $as_echo "$INSTALL" >&6; } | |
7a197a62 | 4165 | |
f11781c5 AK |
4166 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4167 | # It thinks the first close brace ends the variable substitution. | |
4168 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
06f62ad1 | 4169 | |
f11781c5 | 4170 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
72b2cb61 | 4171 | |
f11781c5 | 4172 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
72b2cb61 | 4173 | |
f11781c5 AK |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4175 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4176 | LN_S=$as_ln_s | |
4177 | if test "$LN_S" = "ln -s"; then | |
4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4179 | $as_echo "yes" >&6; } | |
4180 | else | |
4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4182 | $as_echo "no, using $LN_S" >&6; } | |
15d91f5a | 4183 | fi |
ad6254c5 | 4184 | |
f11781c5 AK |
4185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4186 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4187 | set x ${MAKE-make} | |
4188 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4189 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | |
4190 | $as_echo_n "(cached) " >&6 | |
d0191583 | 4191 | else |
f11781c5 AK |
4192 | cat >conftest.make <<\_ACEOF |
4193 | SHELL = /bin/sh | |
4194 | all: | |
4195 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4196 | _ACEOF | |
4197 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4198 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4199 | *@@@%%%=?*=@@@%%%*) | |
4200 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4201 | *) | |
4202 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4203 | esac | |
4204 | rm -f conftest.make | |
4205 | fi | |
4206 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4208 | $as_echo "yes" >&6; } | |
4209 | SET_MAKE= | |
4210 | else | |
4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4212 | $as_echo "no" >&6; } | |
4213 | SET_MAKE="MAKE=${MAKE-make}" | |
ad6254c5 AK |
4214 | fi |
4215 | ||
f11781c5 AK |
4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4217 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4218 | if test -z "$MKDIR_P"; then | |
4219 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
4220 | $as_echo_n "(cached) " >&6 | |
4221 | else | |
4222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4223 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4224 | do | |
4225 | IFS=$as_save_IFS | |
4226 | test -z "$as_dir" && as_dir=. | |
4227 | for ac_prog in mkdir gmkdir; do | |
4228 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4229 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
4230 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4231 | 'mkdir (GNU coreutils) '* | \ | |
4232 | 'mkdir (coreutils) '* | \ | |
4233 | 'mkdir (fileutils) '4.1*) | |
4234 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4235 | break 3;; | |
4236 | esac | |
4237 | done | |
4238 | done | |
4239 | done | |
4240 | IFS=$as_save_IFS | |
d0191583 | 4241 | |
f11781c5 | 4242 | fi |
ad6254c5 | 4243 | |
f11781c5 AK |
4244 | test -d ./--version && rmdir ./--version |
4245 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4246 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4247 | else | |
4248 | # As a last resort, use the slow shell script. Don't cache a | |
4249 | # value for MKDIR_P within a source directory, because that will | |
4250 | # break other packages using the cache if that directory is | |
4251 | # removed, or if the value is a relative name. | |
4252 | MKDIR_P="$ac_install_sh -d" | |
4253 | fi | |
ad6254c5 | 4254 | fi |
f11781c5 AK |
4255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4256 | $as_echo "$MKDIR_P" >&6; } | |
7a197a62 | 4257 | |
f11781c5 AK |
4258 | if test -n "$ac_tool_prefix"; then |
4259 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4260 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4262 | $as_echo_n "checking for $ac_word... " >&6; } | |
4263 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4264 | $as_echo_n "(cached) " >&6 | |
4265 | else | |
4266 | if test -n "$RANLIB"; then | |
4267 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4268 | else | |
4269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4270 | for as_dir in $PATH | |
4271 | do | |
4272 | IFS=$as_save_IFS | |
4273 | test -z "$as_dir" && as_dir=. | |
4274 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4275 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4276 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4277 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4278 | break 2 | |
4279 | fi | |
4280 | done | |
4281 | done | |
4282 | IFS=$as_save_IFS | |
d0191583 | 4283 | |
f11781c5 AK |
4284 | fi |
4285 | fi | |
4286 | RANLIB=$ac_cv_prog_RANLIB | |
4287 | if test -n "$RANLIB"; then | |
4288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4289 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 4290 | else |
f11781c5 AK |
4291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4292 | $as_echo "no" >&6; } | |
ad6254c5 | 4293 | fi |
ad6254c5 | 4294 | |
8a2fc586 | 4295 | |
d0191583 | 4296 | fi |
f11781c5 AK |
4297 | if test -z "$ac_cv_prog_RANLIB"; then |
4298 | ac_ct_RANLIB=$RANLIB | |
4299 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4300 | set dummy ranlib; ac_word=$2 | |
4301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4302 | $as_echo_n "checking for $ac_word... " >&6; } | |
4303 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4304 | $as_echo_n "(cached) " >&6 | |
4305 | else | |
4306 | if test -n "$ac_ct_RANLIB"; then | |
4307 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4308 | else | |
4309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4310 | for as_dir in $PATH | |
4311 | do | |
4312 | IFS=$as_save_IFS | |
4313 | test -z "$as_dir" && as_dir=. | |
4314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4316 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4318 | break 2 | |
4319 | fi | |
4320 | done | |
4321 | done | |
4322 | IFS=$as_save_IFS | |
8a2fc586 | 4323 | |
f11781c5 AK |
4324 | fi |
4325 | fi | |
4326 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4327 | if test -n "$ac_ct_RANLIB"; then | |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4329 | $as_echo "$ac_ct_RANLIB" >&6; } | |
8fea97b7 | 4330 | else |
f11781c5 AK |
4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4332 | $as_echo "no" >&6; } | |
8fea97b7 ZK |
4333 | fi |
4334 | ||
f11781c5 AK |
4335 | if test "x$ac_ct_RANLIB" = x; then |
4336 | RANLIB=":" | |
4337 | else | |
4338 | case $cross_compiling:$ac_tool_warned in | |
4339 | yes:) | |
4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4341 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4342 | ac_tool_warned=yes ;; | |
8fea97b7 | 4343 | esac |
f11781c5 AK |
4344 | RANLIB=$ac_ct_RANLIB |
4345 | fi | |
d0191583 | 4346 | else |
f11781c5 | 4347 | RANLIB="$ac_cv_prog_RANLIB" |
d0191583 | 4348 | fi |
8a2fc586 | 4349 | |
f11781c5 AK |
4350 | # Extract the first word of "cflow", so it can be a program name with args. |
4351 | set dummy cflow; ac_word=$2 | |
4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4353 | $as_echo_n "checking for $ac_word... " >&6; } | |
4354 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then : | |
4355 | $as_echo_n "(cached) " >&6 | |
4356 | else | |
4357 | case $CFLOW_CMD in | |
4358 | [\\/]* | ?:[\\/]*) | |
4359 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4360 | ;; | |
4361 | *) | |
4362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4363 | for as_dir in $PATH | |
4364 | do | |
4365 | IFS=$as_save_IFS | |
4366 | test -z "$as_dir" && as_dir=. | |
4367 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4368 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4369 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
4370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4371 | break 2 | |
4372 | fi | |
4373 | done | |
4374 | done | |
4375 | IFS=$as_save_IFS | |
8a2fc586 | 4376 | |
f11781c5 AK |
4377 | ;; |
4378 | esac | |
ad6254c5 | 4379 | fi |
f11781c5 AK |
4380 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD |
4381 | if test -n "$CFLOW_CMD"; then | |
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5 | |
4383 | $as_echo "$CFLOW_CMD" >&6; } | |
37ddf259 | 4384 | else |
f11781c5 AK |
4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4386 | $as_echo "no" >&6; } | |
37ddf259 AK |
4387 | fi |
4388 | ||
e2997b73 | 4389 | |
f11781c5 AK |
4390 | # Extract the first word of "cscope", so it can be a program name with args. |
4391 | set dummy cscope; ac_word=$2 | |
4392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
e2997b73 | 4393 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 4394 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then : |
e2997b73 AK |
4395 | $as_echo_n "(cached) " >&6 |
4396 | else | |
f11781c5 | 4397 | case $CSCOPE_CMD in |
e2997b73 | 4398 | [\\/]* | ?:[\\/]*) |
f11781c5 | 4399 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. |
e2997b73 AK |
4400 | ;; |
4401 | *) | |
4402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4403 | for as_dir in $PATH | |
4404 | do | |
4405 | IFS=$as_save_IFS | |
4406 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 4407 | for ac_exec_ext in '' $ac_executable_extensions; do |
e2997b73 | 4408 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
4409 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" |
4410 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
e2997b73 AK |
4411 | break 2 |
4412 | fi | |
4413 | done | |
f11781c5 | 4414 | done |
e2997b73 AK |
4415 | IFS=$as_save_IFS |
4416 | ||
4417 | ;; | |
4418 | esac | |
4419 | fi | |
f11781c5 AK |
4420 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4421 | if test -n "$CSCOPE_CMD"; then | |
4422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5 | |
4423 | $as_echo "$CSCOPE_CMD" >&6; } | |
e2997b73 | 4424 | else |
f11781c5 | 4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
e2997b73 AK |
4426 | $as_echo "no" >&6; } |
4427 | fi | |
f11781c5 AK |
4428 | |
4429 | ||
4430 | ||
4431 | ################################################################################ | |
4432 | ac_header_dirent=no | |
4433 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
4434 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4436 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4437 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : | |
4438 | $as_echo_n "(cached) " >&6 | |
4439 | else | |
4440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4441 | /* end confdefs.h. */ | |
4442 | #include <sys/types.h> | |
4443 | #include <$ac_hdr> | |
4444 | ||
4445 | int | |
4446 | main () | |
4447 | { | |
4448 | if ((DIR *) 0) | |
4449 | return 0; | |
4450 | ; | |
4451 | return 0; | |
4452 | } | |
4453 | _ACEOF | |
4454 | if ac_fn_c_try_compile "$LINENO"; then : | |
4455 | eval "$as_ac_Header=yes" | |
4456 | else | |
4457 | eval "$as_ac_Header=no" | |
4458 | fi | |
4459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4460 | fi | |
4461 | eval ac_res=\$$as_ac_Header | |
4462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4463 | $as_echo "$ac_res" >&6; } | |
4464 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4465 | cat >>confdefs.h <<_ACEOF | |
4466 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
4467 | _ACEOF | |
4468 | ||
4469 | ac_header_dirent=$ac_hdr; break | |
4470 | fi | |
4471 | ||
4472 | done | |
4473 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4474 | if test $ac_header_dirent = dirent.h; then | |
4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4476 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4477 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4478 | $as_echo_n "(cached) " >&6 | |
4479 | else | |
4480 | ac_func_search_save_LIBS=$LIBS | |
4481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4482 | /* end confdefs.h. */ | |
4483 | ||
4484 | /* Override any GCC internal prototype to avoid an error. | |
4485 | Use char because int might match the return type of a GCC | |
4486 | builtin and then its argument prototype would still apply. */ | |
4487 | #ifdef __cplusplus | |
4488 | extern "C" | |
4489 | #endif | |
4490 | char opendir (); | |
4491 | int | |
4492 | main () | |
4493 | { | |
4494 | return opendir (); | |
4495 | ; | |
4496 | return 0; | |
4497 | } | |
4498 | _ACEOF | |
4499 | for ac_lib in '' dir; do | |
4500 | if test -z "$ac_lib"; then | |
4501 | ac_res="none required" | |
4502 | else | |
4503 | ac_res=-l$ac_lib | |
4504 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4505 | fi | |
4506 | if ac_fn_c_try_link "$LINENO"; then : | |
4507 | ac_cv_search_opendir=$ac_res | |
4508 | fi | |
4509 | rm -f core conftest.err conftest.$ac_objext \ | |
4510 | conftest$ac_exeext | |
4511 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4512 | break | |
4513 | fi | |
4514 | done | |
4515 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4516 | ||
4517 | else | |
4518 | ac_cv_search_opendir=no | |
4519 | fi | |
4520 | rm conftest.$ac_ext | |
4521 | LIBS=$ac_func_search_save_LIBS | |
4522 | fi | |
4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4524 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4525 | ac_res=$ac_cv_search_opendir | |
4526 | if test "$ac_res" != no; then : | |
4527 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4528 | |
4529 | fi | |
f11781c5 AK |
4530 | |
4531 | else | |
4532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4533 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4534 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 AK |
4535 | $as_echo_n "(cached) " >&6 |
4536 | else | |
f11781c5 AK |
4537 | ac_func_search_save_LIBS=$LIBS |
4538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4539 | /* end confdefs.h. */ | |
e2997b73 | 4540 | |
f11781c5 AK |
4541 | /* Override any GCC internal prototype to avoid an error. |
4542 | Use char because int might match the return type of a GCC | |
4543 | builtin and then its argument prototype would still apply. */ | |
4544 | #ifdef __cplusplus | |
4545 | extern "C" | |
4546 | #endif | |
4547 | char opendir (); | |
4548 | int | |
4549 | main () | |
4550 | { | |
4551 | return opendir (); | |
4552 | ; | |
4553 | return 0; | |
4554 | } | |
4555 | _ACEOF | |
4556 | for ac_lib in '' x; do | |
4557 | if test -z "$ac_lib"; then | |
4558 | ac_res="none required" | |
4559 | else | |
4560 | ac_res=-l$ac_lib | |
4561 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4562 | fi | |
4563 | if ac_fn_c_try_link "$LINENO"; then : | |
4564 | ac_cv_search_opendir=$ac_res | |
e2997b73 | 4565 | fi |
f11781c5 AK |
4566 | rm -f core conftest.err conftest.$ac_objext \ |
4567 | conftest$ac_exeext | |
4568 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4569 | break | |
e2997b73 | 4570 | fi |
f11781c5 AK |
4571 | done |
4572 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 | 4573 | |
e2997b73 | 4574 | else |
f11781c5 AK |
4575 | ac_cv_search_opendir=no |
4576 | fi | |
4577 | rm conftest.$ac_ext | |
4578 | LIBS=$ac_func_search_save_LIBS | |
e2997b73 | 4579 | fi |
f11781c5 AK |
4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4581 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4582 | ac_res=$ac_cv_search_opendir | |
4583 | if test "$ac_res" != no; then : | |
4584 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4585 | |
4586 | fi | |
8c4e8a18 | 4587 | |
e2997b73 AK |
4588 | fi |
4589 | ||
f11781c5 AK |
4590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4591 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4592 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4593 | $as_echo_n "(cached) " >&6 | |
4594 | else | |
4595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4596 | /* end confdefs.h. */ | |
4597 | #include <stdlib.h> | |
4598 | #include <stdarg.h> | |
4599 | #include <string.h> | |
4600 | #include <float.h> | |
e2997b73 | 4601 | |
f11781c5 AK |
4602 | int |
4603 | main () | |
4604 | { | |
4605 | ||
4606 | ; | |
4607 | return 0; | |
4608 | } | |
4609 | _ACEOF | |
4610 | if ac_fn_c_try_compile "$LINENO"; then : | |
4611 | ac_cv_header_stdc=yes | |
e2997b73 | 4612 | else |
f11781c5 | 4613 | ac_cv_header_stdc=no |
e2997b73 | 4614 | fi |
f11781c5 AK |
4615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4616 | ||
4617 | if test $ac_cv_header_stdc = yes; then | |
4618 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4620 | /* end confdefs.h. */ | |
4621 | #include <string.h> | |
4622 | ||
4623 | _ACEOF | |
4624 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4625 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4626 | ||
e2997b73 | 4627 | else |
f11781c5 | 4628 | ac_cv_header_stdc=no |
e2997b73 | 4629 | fi |
f11781c5 | 4630 | rm -f conftest* |
e2997b73 | 4631 | |
f11781c5 | 4632 | fi |
e2997b73 | 4633 | |
f11781c5 AK |
4634 | if test $ac_cv_header_stdc = yes; then |
4635 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4637 | /* end confdefs.h. */ | |
4638 | #include <stdlib.h> | |
e2997b73 | 4639 | |
f11781c5 AK |
4640 | _ACEOF |
4641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4642 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4643 | |
e2997b73 | 4644 | else |
f11781c5 | 4645 | ac_cv_header_stdc=no |
e2997b73 | 4646 | fi |
f11781c5 | 4647 | rm -f conftest* |
e2997b73 | 4648 | |
e2997b73 | 4649 | fi |
90c80887 | 4650 | |
f11781c5 AK |
4651 | if test $ac_cv_header_stdc = yes; then |
4652 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4653 | if test "$cross_compiling" = yes; then : | |
4654 | : | |
4655 | else | |
4656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4657 | /* end confdefs.h. */ | |
4658 | #include <ctype.h> | |
4659 | #include <stdlib.h> | |
4660 | #if ((' ' & 0x0FF) == 0x020) | |
4661 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4662 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4663 | #else | |
4664 | # define ISLOWER(c) \ | |
4665 | (('a' <= (c) && (c) <= 'i') \ | |
4666 | || ('j' <= (c) && (c) <= 'r') \ | |
4667 | || ('s' <= (c) && (c) <= 'z')) | |
4668 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4669 | #endif | |
4670 | ||
4671 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4672 | int | |
4673 | main () | |
4674 | { | |
4675 | int i; | |
4676 | for (i = 0; i < 256; i++) | |
4677 | if (XOR (islower (i), ISLOWER (i)) | |
4678 | || toupper (i) != TOUPPER (i)) | |
4679 | return 2; | |
4680 | return 0; | |
4681 | } | |
4682 | _ACEOF | |
4683 | if ac_fn_c_try_run "$LINENO"; then : | |
90c80887 | 4684 | |
90c80887 | 4685 | else |
f11781c5 | 4686 | ac_cv_header_stdc=no |
90c80887 | 4687 | fi |
f11781c5 AK |
4688 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4689 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
90c80887 | 4690 | fi |
90c80887 | 4691 | |
90c80887 | 4692 | fi |
90c80887 | 4693 | fi |
f11781c5 AK |
4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4695 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4696 | if test $ac_cv_header_stdc = yes; then | |
90c80887 | 4697 | |
f11781c5 | 4698 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
90c80887 | 4699 | |
90c80887 | 4700 | fi |
f11781c5 AK |
4701 | |
4702 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4703 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4704 | inttypes.h stdint.h unistd.h | |
4705 | do : | |
4706 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4707 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4708 | " | |
4709 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4710 | cat >>confdefs.h <<_ACEOF | |
4711 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4712 | _ACEOF | |
4713 | ||
90c80887 | 4714 | fi |
f11781c5 AK |
4715 | |
4716 | done | |
4717 | ||
4718 | ||
4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | |
4720 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4721 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : | |
4722 | $as_echo_n "(cached) " >&6 | |
4723 | else | |
4724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4725 | /* end confdefs.h. */ | |
4726 | #include <sys/types.h> | |
4727 | int | |
4728 | main () | |
4729 | { | |
4730 | return makedev(0, 0); | |
4731 | ; | |
4732 | return 0; | |
4733 | } | |
4734 | _ACEOF | |
4735 | if ac_fn_c_try_link "$LINENO"; then : | |
4736 | ac_cv_header_sys_types_h_makedev=yes | |
4737 | else | |
4738 | ac_cv_header_sys_types_h_makedev=no | |
90c80887 | 4739 | fi |
f11781c5 AK |
4740 | rm -f core conftest.err conftest.$ac_objext \ |
4741 | conftest$ac_exeext conftest.$ac_ext | |
4742 | ||
90c80887 | 4743 | fi |
f11781c5 AK |
4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4745 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
4746 | ||
4747 | if test $ac_cv_header_sys_types_h_makedev = no; then | |
4748 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | |
4749 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : | |
4750 | ||
4751 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | |
90c80887 | 4752 | |
a946372e | 4753 | fi |
e2997b73 | 4754 | |
e2997b73 | 4755 | |
a946372e | 4756 | |
f11781c5 AK |
4757 | if test $ac_cv_header_sys_mkdev_h = no; then |
4758 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
4759 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : | |
4760 | ||
4761 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | |
4762 | ||
e2997b73 | 4763 | fi |
a946372e | 4764 | |
a946372e | 4765 | |
f11781c5 AK |
4766 | fi |
4767 | fi | |
4768 | ||
4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4770 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4771 | if test "${ac_cv_header_stdc+set}" = set; then : | |
a946372e AK |
4772 | $as_echo_n "(cached) " >&6 |
4773 | else | |
f11781c5 | 4774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4775 | /* end confdefs.h. */ |
f11781c5 AK |
4776 | #include <stdlib.h> |
4777 | #include <stdarg.h> | |
4778 | #include <string.h> | |
4779 | #include <float.h> | |
a946372e | 4780 | |
a946372e AK |
4781 | int |
4782 | main () | |
4783 | { | |
f11781c5 | 4784 | |
a946372e AK |
4785 | ; |
4786 | return 0; | |
4787 | } | |
4788 | _ACEOF | |
f11781c5 AK |
4789 | if ac_fn_c_try_compile "$LINENO"; then : |
4790 | ac_cv_header_stdc=yes | |
e2997b73 | 4791 | else |
f11781c5 AK |
4792 | ac_cv_header_stdc=no |
4793 | fi | |
4794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4795 | ||
4796 | if test $ac_cv_header_stdc = yes; then | |
4797 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4799 | /* end confdefs.h. */ | |
4800 | #include <string.h> | |
4801 | ||
4802 | _ACEOF | |
4803 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4804 | $EGREP "memchr" >/dev/null 2>&1; then : | |
e2997b73 | 4805 | |
f11781c5 AK |
4806 | else |
4807 | ac_cv_header_stdc=no | |
a946372e | 4808 | fi |
f11781c5 | 4809 | rm -f conftest* |
e2997b73 | 4810 | |
a946372e | 4811 | fi |
e2997b73 | 4812 | |
f11781c5 AK |
4813 | if test $ac_cv_header_stdc = yes; then |
4814 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4816 | /* end confdefs.h. */ | |
4817 | #include <stdlib.h> | |
4818 | ||
4819 | _ACEOF | |
4820 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4821 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4822 | |
e2997b73 | 4823 | else |
f11781c5 | 4824 | ac_cv_header_stdc=no |
e2997b73 | 4825 | fi |
f11781c5 | 4826 | rm -f conftest* |
e2997b73 | 4827 | |
f11781c5 | 4828 | fi |
a946372e | 4829 | |
f11781c5 AK |
4830 | if test $ac_cv_header_stdc = yes; then |
4831 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4832 | if test "$cross_compiling" = yes; then : | |
4833 | : | |
4834 | else | |
4835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4836 | /* end confdefs.h. */ | |
4837 | #include <ctype.h> | |
4838 | #include <stdlib.h> | |
4839 | #if ((' ' & 0x0FF) == 0x020) | |
4840 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4841 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4842 | #else | |
4843 | # define ISLOWER(c) \ | |
4844 | (('a' <= (c) && (c) <= 'i') \ | |
4845 | || ('j' <= (c) && (c) <= 'r') \ | |
4846 | || ('s' <= (c) && (c) <= 'z')) | |
4847 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4848 | #endif | |
e2997b73 | 4849 | |
f11781c5 AK |
4850 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4851 | int | |
4852 | main () | |
4853 | { | |
4854 | int i; | |
4855 | for (i = 0; i < 256; i++) | |
4856 | if (XOR (islower (i), ISLOWER (i)) | |
4857 | || toupper (i) != TOUPPER (i)) | |
4858 | return 2; | |
4859 | return 0; | |
4860 | } | |
4861 | _ACEOF | |
4862 | if ac_fn_c_try_run "$LINENO"; then : | |
e2997b73 | 4863 | |
e2997b73 | 4864 | else |
f11781c5 | 4865 | ac_cv_header_stdc=no |
e2997b73 | 4866 | fi |
f11781c5 AK |
4867 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4868 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
e2997b73 | 4869 | fi |
f11781c5 | 4870 | |
e2997b73 | 4871 | fi |
e2997b73 | 4872 | fi |
f11781c5 AK |
4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4874 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4875 | if test $ac_cv_header_stdc = yes; then | |
e2997b73 | 4876 | |
f11781c5 | 4877 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
e2997b73 | 4878 | |
f11781c5 | 4879 | fi |
e2997b73 | 4880 | |
f11781c5 AK |
4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4882 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
4883 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : | |
4884 | $as_echo_n "(cached) " >&6 | |
4885 | else | |
4886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4887 | /* end confdefs.h. */ | |
4888 | #include <sys/types.h> | |
4889 | #include <sys/wait.h> | |
4890 | #ifndef WEXITSTATUS | |
4891 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
4892 | #endif | |
4893 | #ifndef WIFEXITED | |
4894 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4895 | #endif | |
e2997b73 | 4896 | |
f11781c5 AK |
4897 | int |
4898 | main () | |
4899 | { | |
4900 | int s; | |
4901 | wait (&s); | |
4902 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4903 | ; | |
4904 | return 0; | |
4905 | } | |
4906 | _ACEOF | |
4907 | if ac_fn_c_try_compile "$LINENO"; then : | |
4908 | ac_cv_header_sys_wait_h=yes | |
e2997b73 | 4909 | else |
f11781c5 | 4910 | ac_cv_header_sys_wait_h=no |
e2997b73 | 4911 | fi |
f11781c5 AK |
4912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4913 | fi | |
4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | |
4915 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
4916 | if test $ac_cv_header_sys_wait_h = yes; then | |
e2997b73 | 4917 | |
f11781c5 | 4918 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
e2997b73 | 4919 | |
d0191583 | 4920 | fi |
f11781c5 AK |
4921 | |
4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
4923 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
4924 | if test "${ac_cv_header_time+set}" = set; then : | |
4925 | $as_echo_n "(cached) " >&6 | |
fc54be10 | 4926 | else |
f11781c5 | 4927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4928 | /* end confdefs.h. */ |
f11781c5 AK |
4929 | #include <sys/types.h> |
4930 | #include <sys/time.h> | |
4931 | #include <time.h> | |
4932 | ||
4933 | int | |
4934 | main () | |
4935 | { | |
4936 | if ((struct tm *) 0) | |
4937 | return 0; | |
4938 | ; | |
4939 | return 0; | |
4940 | } | |
a946372e | 4941 | _ACEOF |
f11781c5 AK |
4942 | if ac_fn_c_try_compile "$LINENO"; then : |
4943 | ac_cv_header_time=yes | |
a946372e | 4944 | else |
f11781c5 AK |
4945 | ac_cv_header_time=no |
4946 | fi | |
4947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4948 | fi | |
4949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
4950 | $as_echo "$ac_cv_header_time" >&6; } | |
4951 | if test $ac_cv_header_time = yes; then | |
4952 | ||
4953 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
4954 | ||
4955 | fi | |
4956 | ||
4957 | ||
4958 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4959 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
4960 | sys/wait.h time.h | |
4961 | do : | |
4962 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4963 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4964 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4965 | cat >>confdefs.h <<_ACEOF | |
4966 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4967 | _ACEOF | |
d0191583 | 4968 | |
f11781c5 AK |
4969 | else |
4970 | as_fn_error $? "bailing out" "$LINENO" 5 | |
d0191583 JM |
4971 | fi |
4972 | ||
f11781c5 | 4973 | done |
fddafd51 | 4974 | |
f11781c5 AK |
4975 | |
4976 | case "$host_os" in | |
4977 | linux*) | |
4978 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4979 | do : | |
4980 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4981 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4982 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4983 | cat >>confdefs.h <<_ACEOF | |
4984 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a946372e | 4985 | _ACEOF |
a946372e | 4986 | |
f11781c5 AK |
4987 | else |
4988 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a946372e AK |
4989 | fi |
4990 | ||
f11781c5 AK |
4991 | done |
4992 | ;; | |
4993 | darwin*) | |
4994 | for ac_header in machine/endian.h sys/disk.h | |
4995 | do : | |
4996 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4997 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4998 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4999 | cat >>confdefs.h <<_ACEOF | |
5000 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5001 | _ACEOF | |
a946372e | 5002 | |
f11781c5 AK |
5003 | else |
5004 | as_fn_error $? "bailing out" "$LINENO" 5 | |
5005 | fi | |
a946372e | 5006 | |
f11781c5 AK |
5007 | done |
5008 | ;; | |
a946372e | 5009 | esac |
f11781c5 AK |
5010 | |
5011 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5012 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5013 | sys/types.h unistd.h | |
5014 | do : | |
5015 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5016 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5017 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5018 | cat >>confdefs.h <<_ACEOF | |
5019 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5020 | _ACEOF | |
5021 | ||
a946372e | 5022 | else |
f11781c5 | 5023 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5024 | fi |
a946372e | 5025 | |
f11781c5 AK |
5026 | done |
5027 | ||
5028 | for ac_header in termios.h sys/statvfs.h | |
5029 | do : | |
5030 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5031 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5032 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
5033 | cat >>confdefs.h <<_ACEOF |
5034 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5035 | _ACEOF | |
5036 | ||
a946372e AK |
5037 | fi |
5038 | ||
5039 | done | |
5040 | ||
a946372e | 5041 | |
f11781c5 AK |
5042 | ################################################################################ |
5043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
5044 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
5045 | if test "${ac_cv_c_const+set}" = set; then : | |
a946372e | 5046 | $as_echo_n "(cached) " >&6 |
a946372e | 5047 | else |
f11781c5 | 5048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5049 | /* end confdefs.h. */ |
a946372e | 5050 | |
f11781c5 AK |
5051 | int |
5052 | main () | |
5053 | { | |
5054 | /* FIXME: Include the comments suggested by Paul. */ | |
5055 | #ifndef __cplusplus | |
5056 | /* Ultrix mips cc rejects this. */ | |
5057 | typedef int charset[2]; | |
5058 | const charset cs; | |
5059 | /* SunOS 4.1.1 cc rejects this. */ | |
5060 | char const *const *pcpcc; | |
5061 | char **ppc; | |
5062 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5063 | struct point {int x, y;}; | |
5064 | static struct point const zero = {0,0}; | |
5065 | /* AIX XL C 1.02.0.0 rejects this. | |
5066 | It does not let you subtract one const X* pointer from another in | |
5067 | an arm of an if-expression whose if-part is not a constant | |
5068 | expression */ | |
5069 | const char *g = "string"; | |
5070 | pcpcc = &g + (g ? g-g : 0); | |
5071 | /* HPUX 7.0 cc rejects these. */ | |
5072 | ++pcpcc; | |
5073 | ppc = (char**) pcpcc; | |
5074 | pcpcc = (char const *const *) ppc; | |
5075 | { /* SCO 3.2v4 cc rejects this. */ | |
5076 | char *t; | |
5077 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
a946372e | 5078 | |
f11781c5 AK |
5079 | *t++ = 0; |
5080 | if (s) return 0; | |
5081 | } | |
5082 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5083 | int x[] = {25, 17}; | |
5084 | const int *foo = &x[0]; | |
5085 | ++foo; | |
5086 | } | |
5087 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5088 | typedef const int *iptr; | |
5089 | iptr p = 0; | |
5090 | ++p; | |
5091 | } | |
5092 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5093 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5094 | struct s { int j; const int *ap[3]; }; | |
5095 | struct s *b; b->j = 5; | |
5096 | } | |
5097 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5098 | const int foo = 10; | |
5099 | if (!foo) return 0; | |
5100 | } | |
5101 | return !cs[0] && !zero.x; | |
5102 | #endif | |
a946372e | 5103 | |
f11781c5 AK |
5104 | ; |
5105 | return 0; | |
5106 | } | |
a946372e | 5107 | _ACEOF |
f11781c5 AK |
5108 | if ac_fn_c_try_compile "$LINENO"; then : |
5109 | ac_cv_c_const=yes | |
a946372e | 5110 | else |
f11781c5 AK |
5111 | ac_cv_c_const=no |
5112 | fi | |
5113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a946372e | 5114 | fi |
f11781c5 AK |
5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5116 | $as_echo "$ac_cv_c_const" >&6; } | |
5117 | if test $ac_cv_c_const = no; then | |
a946372e | 5118 | |
f11781c5 | 5119 | $as_echo "#define const /**/" >>confdefs.h |
a946372e | 5120 | |
f11781c5 | 5121 | fi |
a946372e | 5122 | |
f11781c5 AK |
5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
5124 | $as_echo_n "checking for inline... " >&6; } | |
5125 | if test "${ac_cv_c_inline+set}" = set; then : | |
a946372e AK |
5126 | $as_echo_n "(cached) " >&6 |
5127 | else | |
f11781c5 AK |
5128 | ac_cv_c_inline=no |
5129 | for ac_kw in inline __inline__ __inline; do | |
5130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5131 | /* end confdefs.h. */ | |
5132 | #ifndef __cplusplus | |
5133 | typedef int foo_t; | |
5134 | static $ac_kw foo_t static_foo () {return 0; } | |
5135 | $ac_kw foo_t foo () {return 0; } | |
5136 | #endif | |
5137 | ||
5138 | _ACEOF | |
5139 | if ac_fn_c_try_compile "$LINENO"; then : | |
5140 | ac_cv_c_inline=$ac_kw | |
a946372e | 5141 | fi |
f11781c5 AK |
5142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5143 | test "$ac_cv_c_inline" != no && break | |
5144 | done | |
a946372e AK |
5145 | |
5146 | fi | |
f11781c5 AK |
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
5148 | $as_echo "$ac_cv_c_inline" >&6; } | |
5149 | ||
5150 | case $ac_cv_c_inline in | |
5151 | inline | yes) ;; | |
5152 | *) | |
5153 | case $ac_cv_c_inline in | |
5154 | no) ac_val=;; | |
5155 | *) ac_val=$ac_cv_c_inline;; | |
5156 | esac | |
5157 | cat >>confdefs.h <<_ACEOF | |
5158 | #ifndef __cplusplus | |
5159 | #define inline $ac_val | |
5160 | #endif | |
5161 | _ACEOF | |
5162 | ;; | |
5163 | esac | |
5164 | ||
5165 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5166 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5167 | ||
5168 | cat >>confdefs.h <<_ACEOF | |
5169 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
a946372e AK |
5170 | _ACEOF |
5171 | ||
f11781c5 | 5172 | |
a946372e AK |
5173 | fi |
5174 | ||
f11781c5 AK |
5175 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
5176 | if test "x$ac_cv_type_off_t" = x""yes; then : | |
a946372e | 5177 | |
a946372e | 5178 | else |
f11781c5 AK |
5179 | |
5180 | cat >>confdefs.h <<_ACEOF | |
5181 | #define off_t long int | |
5182 | _ACEOF | |
5183 | ||
a946372e AK |
5184 | fi |
5185 | ||
f11781c5 AK |
5186 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
5187 | if test "x$ac_cv_type_pid_t" = x""yes; then : | |
a946372e | 5188 | |
a946372e | 5189 | else |
f11781c5 AK |
5190 | |
5191 | cat >>confdefs.h <<_ACEOF | |
5192 | #define pid_t int | |
5193 | _ACEOF | |
5194 | ||
5195 | fi | |
5196 | ||
5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
5198 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5199 | if test "${ac_cv_type_signal+set}" = set; then : | |
5200 | $as_echo_n "(cached) " >&6 | |
a946372e | 5201 | else |
f11781c5 AK |
5202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5203 | /* end confdefs.h. */ | |
5204 | #include <sys/types.h> | |
5205 | #include <signal.h> | |
5206 | ||
5207 | int | |
5208 | main () | |
5209 | { | |
5210 | return *(signal (0, 0)) (0) == 1; | |
5211 | ; | |
5212 | return 0; | |
5213 | } | |
5214 | _ACEOF | |
5215 | if ac_fn_c_try_compile "$LINENO"; then : | |
5216 | ac_cv_type_signal=int | |
5217 | else | |
5218 | ac_cv_type_signal=void | |
a946372e | 5219 | fi |
f11781c5 | 5220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a946372e | 5221 | fi |
f11781c5 AK |
5222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
5223 | $as_echo "$ac_cv_type_signal" >&6; } | |
a946372e | 5224 | |
f11781c5 AK |
5225 | cat >>confdefs.h <<_ACEOF |
5226 | #define RETSIGTYPE $ac_cv_type_signal | |
5227 | _ACEOF | |
a946372e AK |
5228 | |
5229 | ||
f11781c5 AK |
5230 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
5231 | if test "x$ac_cv_type_size_t" = x""yes; then : | |
a946372e | 5232 | |
a946372e | 5233 | else |
a946372e | 5234 | |
f11781c5 AK |
5235 | cat >>confdefs.h <<_ACEOF |
5236 | #define size_t unsigned int | |
5237 | _ACEOF | |
a946372e | 5238 | |
a946372e | 5239 | fi |
f11781c5 AK |
5240 | |
5241 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
5242 | if test "x$ac_cv_type_mode_t" = x""yes; then : | |
5243 | ||
a946372e | 5244 | else |
f11781c5 AK |
5245 | |
5246 | cat >>confdefs.h <<_ACEOF | |
5247 | #define mode_t int | |
a946372e | 5248 | _ACEOF |
a946372e | 5249 | |
a946372e AK |
5250 | fi |
5251 | ||
f11781c5 AK |
5252 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
5253 | case $ac_cv_c_int8_t in #( | |
5254 | no|yes) ;; #( | |
5255 | *) | |
a946372e | 5256 | |
f11781c5 AK |
5257 | cat >>confdefs.h <<_ACEOF |
5258 | #define int8_t $ac_cv_c_int8_t | |
a946372e | 5259 | _ACEOF |
f11781c5 | 5260 | ;; |
a946372e | 5261 | esac |
a946372e | 5262 | |
f11781c5 AK |
5263 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
5264 | case $ac_cv_c_int16_t in #( | |
5265 | no|yes) ;; #( | |
5266 | *) | |
a946372e | 5267 | |
f11781c5 AK |
5268 | cat >>confdefs.h <<_ACEOF |
5269 | #define int16_t $ac_cv_c_int16_t | |
5270 | _ACEOF | |
5271 | ;; | |
5272 | esac | |
a946372e | 5273 | |
f11781c5 AK |
5274 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
5275 | case $ac_cv_c_int32_t in #( | |
5276 | no|yes) ;; #( | |
5277 | *) | |
a946372e | 5278 | |
f11781c5 AK |
5279 | cat >>confdefs.h <<_ACEOF |
5280 | #define int32_t $ac_cv_c_int32_t | |
5281 | _ACEOF | |
5282 | ;; | |
a946372e | 5283 | esac |
a946372e | 5284 | |
f11781c5 AK |
5285 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
5286 | case $ac_cv_c_int64_t in #( | |
5287 | no|yes) ;; #( | |
5288 | *) | |
5289 | ||
5290 | cat >>confdefs.h <<_ACEOF | |
5291 | #define int64_t $ac_cv_c_int64_t | |
a946372e | 5292 | _ACEOF |
f11781c5 AK |
5293 | ;; |
5294 | esac | |
5295 | ||
5296 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | |
5297 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | |
a946372e AK |
5298 | |
5299 | else | |
a946372e | 5300 | |
f11781c5 AK |
5301 | cat >>confdefs.h <<_ACEOF |
5302 | #define ssize_t int | |
5303 | _ACEOF | |
a946372e | 5304 | |
f11781c5 | 5305 | fi |
a946372e | 5306 | |
f11781c5 AK |
5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
5308 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5309 | if test "${ac_cv_type_uid_t+set}" = set; then : | |
a946372e | 5310 | $as_echo_n "(cached) " >&6 |
a946372e | 5311 | else |
f11781c5 | 5312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5313 | /* end confdefs.h. */ |
f11781c5 AK |
5314 | #include <sys/types.h> |
5315 | ||
a946372e | 5316 | _ACEOF |
f11781c5 AK |
5317 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5318 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5319 | ac_cv_type_uid_t=yes | |
a946372e | 5320 | else |
f11781c5 AK |
5321 | ac_cv_type_uid_t=no |
5322 | fi | |
5323 | rm -f conftest* | |
a946372e | 5324 | |
a946372e | 5325 | fi |
f11781c5 AK |
5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
5327 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5328 | if test $ac_cv_type_uid_t = no; then | |
a946372e | 5329 | |
f11781c5 | 5330 | $as_echo "#define uid_t int" >>confdefs.h |
a946372e | 5331 | |
f11781c5 AK |
5332 | |
5333 | $as_echo "#define gid_t int" >>confdefs.h | |
5334 | ||
5335 | fi | |
5336 | ||
5337 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | |
5338 | case $ac_cv_c_uint8_t in #( | |
5339 | no|yes) ;; #( | |
5340 | *) | |
5341 | ||
5342 | $as_echo "#define _UINT8_T 1" >>confdefs.h | |
5343 | ||
5344 | ||
5345 | cat >>confdefs.h <<_ACEOF | |
5346 | #define uint8_t $ac_cv_c_uint8_t | |
a946372e | 5347 | _ACEOF |
f11781c5 AK |
5348 | ;; |
5349 | esac | |
5350 | ||
5351 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | |
5352 | case $ac_cv_c_uint16_t in #( | |
5353 | no|yes) ;; #( | |
5354 | *) | |
5355 | ||
5356 | ||
5357 | cat >>confdefs.h <<_ACEOF | |
5358 | #define uint16_t $ac_cv_c_uint16_t | |
a946372e | 5359 | _ACEOF |
f11781c5 AK |
5360 | ;; |
5361 | esac | |
a946372e | 5362 | |
f11781c5 AK |
5363 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
5364 | case $ac_cv_c_uint32_t in #( | |
5365 | no|yes) ;; #( | |
5366 | *) | |
a946372e | 5367 | |
f11781c5 | 5368 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
a946372e | 5369 | |
a946372e | 5370 | |
f11781c5 AK |
5371 | cat >>confdefs.h <<_ACEOF |
5372 | #define uint32_t $ac_cv_c_uint32_t | |
5373 | _ACEOF | |
5374 | ;; | |
5375 | esac | |
5376 | ||
5377 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | |
5378 | case $ac_cv_c_uint64_t in #( | |
5379 | no|yes) ;; #( | |
5380 | *) | |
5381 | ||
5382 | $as_echo "#define _UINT64_T 1" >>confdefs.h | |
5383 | ||
5384 | ||
5385 | cat >>confdefs.h <<_ACEOF | |
5386 | #define uint64_t $ac_cv_c_uint64_t | |
5387 | _ACEOF | |
5388 | ;; | |
5389 | esac | |
5390 | ||
5391 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5392 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5393 | ||
5394 | cat >>confdefs.h <<_ACEOF | |
5395 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5396 | _ACEOF | |
5397 | ||
5398 | ||
5399 | fi | |
5400 | ||
5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
5402 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
5403 | if test "${ac_cv_struct_tm+set}" = set; then : | |
a946372e AK |
5404 | $as_echo_n "(cached) " >&6 |
5405 | else | |
f11781c5 AK |
5406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5407 | /* end confdefs.h. */ | |
5408 | #include <sys/types.h> | |
5409 | #include <time.h> | |
5410 | ||
5411 | int | |
5412 | main () | |
5413 | { | |
5414 | struct tm tm; | |
5415 | int *p = &tm.tm_sec; | |
5416 | return !p; | |
5417 | ; | |
5418 | return 0; | |
5419 | } | |
5420 | _ACEOF | |
5421 | if ac_fn_c_try_compile "$LINENO"; then : | |
5422 | ac_cv_struct_tm=time.h | |
5423 | else | |
5424 | ac_cv_struct_tm=sys/time.h | |
a946372e | 5425 | fi |
f11781c5 AK |
5426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5427 | fi | |
5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5429 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5430 | if test $ac_cv_struct_tm = sys/time.h; then | |
5431 | ||
5432 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
a946372e AK |
5433 | |
5434 | fi | |
f11781c5 AK |
5435 | |
5436 | ||
5437 | ################################################################################ | |
5438 | for ac_func in ftruncate gethostname getpagesize \ | |
5439 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
5440 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
5441 | strstr strtol strtoul uname | |
5442 | do : | |
5443 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5444 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5445 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5446 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 5447 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a946372e AK |
5448 | _ACEOF |
5449 | ||
5450 | else | |
f11781c5 | 5451 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5452 | fi |
a946372e AK |
5453 | done |
5454 | ||
f11781c5 AK |
5455 | for ac_func in siginterrupt |
5456 | do : | |
5457 | ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt" | |
5458 | if test "x$ac_cv_func_siginterrupt" = x""yes; then : | |
5459 | cat >>confdefs.h <<_ACEOF | |
5460 | #define HAVE_SIGINTERRUPT 1 | |
5461 | _ACEOF | |
a946372e | 5462 | |
f11781c5 AK |
5463 | fi |
5464 | done | |
a946372e | 5465 | |
f11781c5 AK |
5466 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5467 | # for constant arguments. Useless! | |
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
5469 | $as_echo_n "checking for working alloca.h... " >&6; } | |
5470 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
5471 | $as_echo_n "(cached) " >&6 | |
a946372e | 5472 | else |
f11781c5 AK |
5473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5474 | /* end confdefs.h. */ | |
5475 | #include <alloca.h> | |
5476 | int | |
5477 | main () | |
5478 | { | |
5479 | char *p = (char *) alloca (2 * sizeof (int)); | |
5480 | if (p) return 0; | |
5481 | ; | |
5482 | return 0; | |
5483 | } | |
5484 | _ACEOF | |
5485 | if ac_fn_c_try_link "$LINENO"; then : | |
5486 | ac_cv_working_alloca_h=yes | |
a946372e | 5487 | else |
f11781c5 | 5488 | ac_cv_working_alloca_h=no |
a946372e | 5489 | fi |
f11781c5 AK |
5490 | rm -f core conftest.err conftest.$ac_objext \ |
5491 | conftest$ac_exeext conftest.$ac_ext | |
a946372e | 5492 | fi |
f11781c5 AK |
5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
5494 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
5495 | if test $ac_cv_working_alloca_h = yes; then | |
a946372e | 5496 | |
f11781c5 | 5497 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
a946372e | 5498 | |
a946372e | 5499 | fi |
a946372e | 5500 | |
f11781c5 AK |
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
5502 | $as_echo_n "checking for alloca... " >&6; } | |
5503 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
a946372e | 5504 | $as_echo_n "(cached) " >&6 |
a946372e | 5505 | else |
f11781c5 | 5506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5507 | /* end confdefs.h. */ |
f11781c5 AK |
5508 | #ifdef __GNUC__ |
5509 | # define alloca __builtin_alloca | |
5510 | #else | |
5511 | # ifdef _MSC_VER | |
5512 | # include <malloc.h> | |
5513 | # define alloca _alloca | |
5514 | # else | |
5515 | # ifdef HAVE_ALLOCA_H | |
5516 | # include <alloca.h> | |
5517 | # else | |
5518 | # ifdef _AIX | |
5519 | #pragma alloca | |
5520 | # else | |
5521 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5522 | char *alloca (); | |
5523 | # endif | |
5524 | # endif | |
5525 | # endif | |
5526 | # endif | |
5527 | #endif | |
a946372e | 5528 | |
f11781c5 AK |
5529 | int |
5530 | main () | |
5531 | { | |
5532 | char *p = (char *) alloca (1); | |
5533 | if (p) return 0; | |
5534 | ; | |
5535 | return 0; | |
5536 | } | |
a946372e | 5537 | _ACEOF |
f11781c5 AK |
5538 | if ac_fn_c_try_link "$LINENO"; then : |
5539 | ac_cv_func_alloca_works=yes | |
a946372e | 5540 | else |
f11781c5 | 5541 | ac_cv_func_alloca_works=no |
a946372e | 5542 | fi |
f11781c5 AK |
5543 | rm -f core conftest.err conftest.$ac_objext \ |
5544 | conftest$ac_exeext conftest.$ac_ext | |
5545 | fi | |
5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
5547 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
a946372e | 5548 | |
f11781c5 | 5549 | if test $ac_cv_func_alloca_works = yes; then |
a946372e | 5550 | |
f11781c5 | 5551 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
a946372e | 5552 | |
a946372e | 5553 | else |
f11781c5 AK |
5554 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5555 | # that cause trouble. Some versions do not even contain alloca or | |
5556 | # contain a buggy version. If you still want to use their alloca, | |
5557 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
a946372e | 5558 | |
f11781c5 | 5559 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
a946372e | 5560 | |
f11781c5 | 5561 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
a946372e | 5562 | |
a946372e | 5563 | |
f11781c5 AK |
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
5565 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
5566 | if test "${ac_cv_os_cray+set}" = set; then : | |
a946372e | 5567 | $as_echo_n "(cached) " >&6 |
a946372e | 5568 | else |
f11781c5 | 5569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5570 | /* end confdefs.h. */ |
f11781c5 AK |
5571 | #if defined CRAY && ! defined CRAY2 |
5572 | webecray | |
5573 | #else | |
5574 | wenotbecray | |
5575 | #endif | |
5576 | ||
a946372e | 5577 | _ACEOF |
f11781c5 AK |
5578 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5579 | $EGREP "webecray" >/dev/null 2>&1; then : | |
5580 | ac_cv_os_cray=yes | |
a946372e | 5581 | else |
f11781c5 | 5582 | ac_cv_os_cray=no |
a946372e | 5583 | fi |
f11781c5 | 5584 | rm -f conftest* |
a946372e | 5585 | |
f11781c5 AK |
5586 | fi |
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
5588 | $as_echo "$ac_cv_os_cray" >&6; } | |
5589 | if test $ac_cv_os_cray = yes; then | |
5590 | for ac_func in _getb67 GETB67 getb67; do | |
5591 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5592 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5593 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5594 | |
f11781c5 AK |
5595 | cat >>confdefs.h <<_ACEOF |
5596 | #define CRAY_STACKSEG_END $ac_func | |
a946372e | 5597 | _ACEOF |
a946372e | 5598 | |
f11781c5 | 5599 | break |
a946372e AK |
5600 | fi |
5601 | ||
f11781c5 AK |
5602 | done |
5603 | fi | |
a946372e | 5604 | |
f11781c5 AK |
5605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
5606 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
5607 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
a946372e AK |
5608 | $as_echo_n "(cached) " >&6 |
5609 | else | |
f11781c5 AK |
5610 | if test "$cross_compiling" = yes; then : |
5611 | ac_cv_c_stack_direction=0 | |
5612 | else | |
5613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5614 | /* end confdefs.h. */ | |
5615 | $ac_includes_default | |
5616 | int | |
5617 | find_stack_direction () | |
5618 | { | |
5619 | static char *addr = 0; | |
5620 | auto char dummy; | |
5621 | if (addr == 0) | |
5622 | { | |
5623 | addr = &dummy; | |
5624 | return find_stack_direction (); | |
5625 | } | |
5626 | else | |
5627 | return (&dummy > addr) ? 1 : -1; | |
5628 | } | |
5629 | ||
5630 | int | |
5631 | main () | |
5632 | { | |
5633 | return find_stack_direction () < 0; | |
5634 | } | |
5635 | _ACEOF | |
5636 | if ac_fn_c_try_run "$LINENO"; then : | |
5637 | ac_cv_c_stack_direction=1 | |
5638 | else | |
5639 | ac_cv_c_stack_direction=-1 | |
5640 | fi | |
5641 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5642 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5643 | fi |
a946372e AK |
5644 | |
5645 | fi | |
f11781c5 AK |
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
5647 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
5648 | cat >>confdefs.h <<_ACEOF | |
5649 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
a946372e AK |
5650 | _ACEOF |
5651 | ||
f11781c5 | 5652 | |
a946372e AK |
5653 | fi |
5654 | ||
f11781c5 AK |
5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
5656 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
5657 | if test "${ac_cv_func_closedir_void+set}" = set; then : | |
5658 | $as_echo_n "(cached) " >&6 | |
5659 | else | |
5660 | if test "$cross_compiling" = yes; then : | |
5661 | ac_cv_func_closedir_void=yes | |
5662 | else | |
5663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5664 | /* end confdefs.h. */ | |
5665 | $ac_includes_default | |
5666 | #include <$ac_header_dirent> | |
5667 | #ifndef __cplusplus | |
5668 | int closedir (); | |
5669 | #endif | |
a946372e | 5670 | |
f11781c5 AK |
5671 | int |
5672 | main () | |
5673 | { | |
5674 | return closedir (opendir (".")) != 0; | |
5675 | ; | |
5676 | return 0; | |
5677 | } | |
5678 | _ACEOF | |
5679 | if ac_fn_c_try_run "$LINENO"; then : | |
5680 | ac_cv_func_closedir_void=no | |
a946372e | 5681 | else |
f11781c5 | 5682 | ac_cv_func_closedir_void=yes |
a946372e | 5683 | fi |
f11781c5 AK |
5684 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5685 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5686 | fi |
5687 | ||
f11781c5 AK |
5688 | fi |
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 | |
5690 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
5691 | if test $ac_cv_func_closedir_void = yes; then | |
a946372e | 5692 | |
f11781c5 | 5693 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
a946372e | 5694 | |
a946372e AK |
5695 | fi |
5696 | ||
f11781c5 AK |
5697 | for ac_header in unistd.h |
5698 | do : | |
5699 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
5700 | if test "x$ac_cv_header_unistd_h" = x""yes; then : | |
5701 | cat >>confdefs.h <<_ACEOF | |
5702 | #define HAVE_UNISTD_H 1 | |
5703 | _ACEOF | |
a946372e | 5704 | |
f11781c5 | 5705 | fi |
a946372e | 5706 | |
f11781c5 | 5707 | done |
a946372e | 5708 | |
f11781c5 AK |
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 |
5710 | $as_echo_n "checking for working chown... " >&6; } | |
5711 | if test "${ac_cv_func_chown_works+set}" = set; then : | |
5712 | $as_echo_n "(cached) " >&6 | |
a946372e | 5713 | else |
f11781c5 AK |
5714 | if test "$cross_compiling" = yes; then : |
5715 | ac_cv_func_chown_works=no | |
a946372e | 5716 | else |
f11781c5 AK |
5717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5718 | /* end confdefs.h. */ | |
5719 | $ac_includes_default | |
5720 | #include <fcntl.h> | |
a946372e | 5721 | |
f11781c5 AK |
5722 | int |
5723 | main () | |
5724 | { | |
5725 | char *f = "conftest.chown"; | |
5726 | struct stat before, after; | |
a946372e | 5727 | |
f11781c5 AK |
5728 | if (creat (f, 0600) < 0) |
5729 | return 1; | |
5730 | if (stat (f, &before) < 0) | |
5731 | return 1; | |
5732 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
5733 | return 1; | |
5734 | if (stat (f, &after) < 0) | |
5735 | return 1; | |
5736 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
a946372e | 5737 | |
f11781c5 AK |
5738 | ; |
5739 | return 0; | |
5740 | } | |
5741 | _ACEOF | |
5742 | if ac_fn_c_try_run "$LINENO"; then : | |
5743 | ac_cv_func_chown_works=yes | |
a946372e | 5744 | else |
f11781c5 | 5745 | ac_cv_func_chown_works=no |
a946372e | 5746 | fi |
f11781c5 AK |
5747 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5748 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5749 | fi |
5750 | ||
f11781c5 | 5751 | rm -f conftest.chown |
a946372e | 5752 | |
f11781c5 AK |
5753 | fi |
5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 | |
5755 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
5756 | if test $ac_cv_func_chown_works = yes; then | |
a946372e | 5757 | |
f11781c5 | 5758 | $as_echo "#define HAVE_CHOWN 1" >>confdefs.h |
a946372e | 5759 | |
a946372e | 5760 | fi |
a946372e | 5761 | |
f11781c5 AK |
5762 | for ac_header in vfork.h |
5763 | do : | |
5764 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
5765 | if test "x$ac_cv_header_vfork_h" = x""yes; then : | |
5766 | cat >>confdefs.h <<_ACEOF | |
5767 | #define HAVE_VFORK_H 1 | |
5768 | _ACEOF | |
a946372e | 5769 | |
f11781c5 | 5770 | fi |
a946372e | 5771 | |
f11781c5 | 5772 | done |
a946372e | 5773 | |
f11781c5 AK |
5774 | for ac_func in fork vfork |
5775 | do : | |
5776 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5777 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5778 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5779 | cat >>confdefs.h <<_ACEOF | |
5780 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5781 | _ACEOF | |
a946372e | 5782 | |
f11781c5 AK |
5783 | fi |
5784 | done | |
a946372e | 5785 | |
f11781c5 AK |
5786 | if test "x$ac_cv_func_fork" = xyes; then |
5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
5788 | $as_echo_n "checking for working fork... " >&6; } | |
5789 | if test "${ac_cv_func_fork_works+set}" = set; then : | |
5790 | $as_echo_n "(cached) " >&6 | |
5791 | else | |
5792 | if test "$cross_compiling" = yes; then : | |
5793 | ac_cv_func_fork_works=cross | |
5794 | else | |
5795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5796 | /* end confdefs.h. */ | |
5797 | $ac_includes_default | |
5798 | int | |
5799 | main () | |
5800 | { | |
a946372e | 5801 | |
f11781c5 AK |
5802 | /* By Ruediger Kuhlmann. */ |
5803 | return fork () < 0; | |
a946372e | 5804 | |
f11781c5 AK |
5805 | ; |
5806 | return 0; | |
5807 | } | |
5808 | _ACEOF | |
5809 | if ac_fn_c_try_run "$LINENO"; then : | |
5810 | ac_cv_func_fork_works=yes | |
a946372e | 5811 | else |
f11781c5 AK |
5812 | ac_cv_func_fork_works=no |
5813 | fi | |
5814 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5815 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5816 | fi |
a946372e | 5817 | |
f11781c5 AK |
5818 | fi |
5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
5820 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
5821 | ||
a946372e | 5822 | else |
f11781c5 | 5823 | ac_cv_func_fork_works=$ac_cv_func_fork |
a946372e | 5824 | fi |
f11781c5 AK |
5825 | if test "x$ac_cv_func_fork_works" = xcross; then |
5826 | case $host in | |
5827 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5828 | # Override, as these systems have only a dummy fork() stub | |
5829 | ac_cv_func_fork_works=no | |
5830 | ;; | |
5831 | *) | |
5832 | ac_cv_func_fork_works=yes | |
5833 | ;; | |
5834 | esac | |
5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5836 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
a946372e | 5837 | fi |
f11781c5 AK |
5838 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
5839 | if test "x$ac_cv_func_vfork" = xyes; then | |
5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
5841 | $as_echo_n "checking for working vfork... " >&6; } | |
5842 | if test "${ac_cv_func_vfork_works+set}" = set; then : | |
5843 | $as_echo_n "(cached) " >&6 | |
5844 | else | |
5845 | if test "$cross_compiling" = yes; then : | |
5846 | ac_cv_func_vfork_works=cross | |
5847 | else | |
5848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5849 | /* end confdefs.h. */ | |
5850 | /* Thanks to Paul Eggert for this test. */ | |
5851 | $ac_includes_default | |
5852 | #include <sys/wait.h> | |
5853 | #ifdef HAVE_VFORK_H | |
5854 | # include <vfork.h> | |
5855 | #endif | |
5856 | /* On some sparc systems, changes by the child to local and incoming | |
5857 | argument registers are propagated back to the parent. The compiler | |
5858 | is told about this with #include <vfork.h>, but some compilers | |
5859 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5860 | static variable whose address is put into a register that is | |
5861 | clobbered by the vfork. */ | |
5862 | static void | |
5863 | #ifdef __cplusplus | |
5864 | sparc_address_test (int arg) | |
5865 | # else | |
5866 | sparc_address_test (arg) int arg; | |
5867 | #endif | |
5868 | { | |
5869 | static pid_t child; | |
5870 | if (!child) { | |
5871 | child = vfork (); | |
5872 | if (child < 0) { | |
5873 | perror ("vfork"); | |
5874 | _exit(2); | |
5875 | } | |
5876 | if (!child) { | |
5877 | arg = getpid(); | |
5878 | write(-1, "", 0); | |
5879 | _exit (arg); | |
5880 | } | |
5881 | } | |
5882 | } | |
a946372e | 5883 | |
f11781c5 AK |
5884 | int |
5885 | main () | |
5886 | { | |
5887 | pid_t parent = getpid (); | |
5888 | pid_t child; | |
a946372e | 5889 | |
f11781c5 | 5890 | sparc_address_test (0); |
a946372e | 5891 | |
f11781c5 | 5892 | child = vfork (); |
a946372e | 5893 | |
f11781c5 AK |
5894 | if (child == 0) { |
5895 | /* Here is another test for sparc vfork register problems. This | |
5896 | test uses lots of local variables, at least as many local | |
5897 | variables as main has allocated so far including compiler | |
5898 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5899 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5900 | reuse the register of parent for one of the local variables, | |
5901 | since it will think that parent can't possibly be used any more | |
5902 | in this routine. Assigning to the local variable will thus | |
5903 | munge parent in the parent process. */ | |
5904 | pid_t | |
5905 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5906 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5907 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5908 | use the same hardware register for all 8 local variables. */ | |
5909 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5910 | || p != p5 || p != p6 || p != p7) | |
5911 | _exit(1); | |
a946372e | 5912 | |
f11781c5 AK |
5913 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
5914 | from child file descriptors. If the child closes a descriptor | |
5915 | before it execs or exits, this munges the parent's descriptor | |
5916 | as well. Test for this by closing stdout in the child. */ | |
5917 | _exit(close(fileno(stdout)) != 0); | |
5918 | } else { | |
5919 | int status; | |
5920 | struct stat st; | |
5921 | ||
5922 | while (wait(&status) != child) | |
5923 | ; | |
5924 | return ( | |
5925 | /* Was there some problem with vforking? */ | |
5926 | child < 0 | |
5927 | ||
5928 | /* Did the child fail? (This shouldn't happen.) */ | |
5929 | || status | |
5930 | ||
5931 | /* Did the vfork/compiler bug occur? */ | |
5932 | || parent != getpid() | |
5933 | ||
5934 | /* Did the file descriptor bug occur? */ | |
5935 | || fstat(fileno(stdout), &st) != 0 | |
5936 | ); | |
5937 | } | |
5938 | } | |
5939 | _ACEOF | |
5940 | if ac_fn_c_try_run "$LINENO"; then : | |
5941 | ac_cv_func_vfork_works=yes | |
a946372e | 5942 | else |
f11781c5 | 5943 | ac_cv_func_vfork_works=no |
a946372e | 5944 | fi |
f11781c5 AK |
5945 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5946 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5947 | fi |
f11781c5 | 5948 | |
a946372e | 5949 | fi |
f11781c5 AK |
5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
5951 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
a946372e | 5952 | |
f11781c5 AK |
5953 | fi; |
5954 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5955 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
5957 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5958 | fi | |
a946372e | 5959 | |
f11781c5 | 5960 | if test "x$ac_cv_func_vfork_works" = xyes; then |
a946372e | 5961 | |
f11781c5 | 5962 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
a946372e | 5963 | |
a946372e | 5964 | else |
a946372e | 5965 | |
f11781c5 AK |
5966 | $as_echo "#define vfork fork" >>confdefs.h |
5967 | ||
a946372e | 5968 | fi |
f11781c5 | 5969 | if test "x$ac_cv_func_fork_works" = xyes; then |
a946372e | 5970 | |
f11781c5 | 5971 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
a946372e | 5972 | |
a946372e | 5973 | fi |
f11781c5 AK |
5974 | |
5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 | |
5976 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } | |
5977 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : | |
5978 | $as_echo_n "(cached) " >&6 | |
a946372e | 5979 | else |
f11781c5 AK |
5980 | rm -f conftest.sym conftest.file |
5981 | echo >conftest.file | |
5982 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5983 | if test "$cross_compiling" = yes; then : | |
5984 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 5985 | else |
f11781c5 | 5986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5987 | /* end confdefs.h. */ |
f11781c5 AK |
5988 | $ac_includes_default |
5989 | int | |
5990 | main () | |
5991 | { | |
5992 | struct stat sbuf; | |
5993 | /* Linux will dereference the symlink and fail, as required by POSIX. | |
5994 | That is better in the sense that it means we will not | |
5995 | have to compile and use the lstat wrapper. */ | |
5996 | return lstat ("conftest.sym/", &sbuf) == 0; | |
5997 | ; | |
5998 | return 0; | |
5999 | } | |
a946372e | 6000 | _ACEOF |
f11781c5 AK |
6001 | if ac_fn_c_try_run "$LINENO"; then : |
6002 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
a946372e | 6003 | else |
f11781c5 | 6004 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
a946372e | 6005 | fi |
f11781c5 AK |
6006 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6007 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6008 | fi |
a946372e | 6009 | |
a946372e | 6010 | else |
f11781c5 AK |
6011 | # If the `ln -s' command failed, then we probably don't even |
6012 | # have an lstat function. | |
6013 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 6014 | fi |
f11781c5 | 6015 | rm -f conftest.sym conftest.file |
a946372e | 6016 | |
f11781c5 AK |
6017 | fi |
6018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
6019 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
a946372e | 6020 | |
f11781c5 | 6021 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
a946372e | 6022 | |
f11781c5 AK |
6023 | cat >>confdefs.h <<_ACEOF |
6024 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6025 | _ACEOF | |
a946372e | 6026 | |
a946372e | 6027 | |
f11781c5 AK |
6028 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
6029 | case " $LIBOBJS " in | |
6030 | *" lstat.$ac_objext "* ) ;; | |
6031 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6032 | ;; | |
6033 | esac | |
a946372e | 6034 | |
f11781c5 | 6035 | fi |
a946372e | 6036 | |
f11781c5 AK |
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 |
6038 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
6039 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then : | |
6040 | $as_echo_n "(cached) " >&6 | |
a946372e | 6041 | else |
f11781c5 AK |
6042 | if test "$cross_compiling" = yes; then : |
6043 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6044 | else |
f11781c5 AK |
6045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6046 | /* end confdefs.h. */ | |
6047 | $ac_includes_default | |
6048 | int | |
6049 | main () | |
6050 | { | |
6051 | struct stat sbuf; | |
6052 | return lstat ("", &sbuf) == 0; | |
6053 | ; | |
6054 | return 0; | |
6055 | } | |
6056 | _ACEOF | |
6057 | if ac_fn_c_try_run "$LINENO"; then : | |
6058 | ac_cv_func_lstat_empty_string_bug=no | |
6059 | else | |
6060 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6061 | fi |
f11781c5 AK |
6062 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6063 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6064 | fi |
6065 | ||
f11781c5 AK |
6066 | fi |
6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6068 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
6069 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
6070 | case " $LIBOBJS " in | |
6071 | *" lstat.$ac_objext "* ) ;; | |
6072 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6073 | ;; | |
6074 | esac | |
a946372e AK |
6075 | |
6076 | ||
f11781c5 AK |
6077 | cat >>confdefs.h <<_ACEOF |
6078 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6079 | _ACEOF | |
a946372e | 6080 | |
a946372e | 6081 | fi |
a946372e | 6082 | |
f11781c5 AK |
6083 | for ac_header in stdlib.h |
6084 | do : | |
6085 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6086 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6087 | cat >>confdefs.h <<_ACEOF | |
6088 | #define HAVE_STDLIB_H 1 | |
6089 | _ACEOF | |
6090 | ||
a946372e AK |
6091 | fi |
6092 | ||
f11781c5 | 6093 | done |
a946372e | 6094 | |
f11781c5 AK |
6095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
6096 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
6097 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : | |
6098 | $as_echo_n "(cached) " >&6 | |
6099 | else | |
6100 | if test "$cross_compiling" = yes; then : | |
6101 | ac_cv_func_malloc_0_nonnull=no | |
6102 | else | |
6103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6104 | /* end confdefs.h. */ | |
6105 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
6106 | # include <stdlib.h> | |
6107 | #else | |
6108 | char *malloc (); | |
6109 | #endif | |
a946372e | 6110 | |
f11781c5 AK |
6111 | int |
6112 | main () | |
6113 | { | |
6114 | return ! malloc (0); | |
6115 | ; | |
6116 | return 0; | |
6117 | } | |
6118 | _ACEOF | |
6119 | if ac_fn_c_try_run "$LINENO"; then : | |
6120 | ac_cv_func_malloc_0_nonnull=yes | |
a946372e | 6121 | else |
f11781c5 | 6122 | ac_cv_func_malloc_0_nonnull=no |
a946372e | 6123 | fi |
f11781c5 AK |
6124 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6125 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6126 | fi |
f11781c5 | 6127 | |
a946372e | 6128 | fi |
f11781c5 AK |
6129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
6130 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
6131 | if test $ac_cv_func_malloc_0_nonnull = yes; then : | |
a946372e | 6132 | |
f11781c5 | 6133 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h |
a946372e | 6134 | |
f11781c5 AK |
6135 | else |
6136 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h | |
a946372e | 6137 | |
f11781c5 AK |
6138 | case " $LIBOBJS " in |
6139 | *" malloc.$ac_objext "* ) ;; | |
6140 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | |
6141 | ;; | |
6142 | esac | |
6143 | ||
6144 | ||
6145 | $as_echo "#define malloc rpl_malloc" >>confdefs.h | |
a946372e | 6146 | |
a946372e | 6147 | fi |
a946372e | 6148 | |
a946372e | 6149 | |
f11781c5 AK |
6150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
6151 | $as_echo_n "checking for working memcmp... " >&6; } | |
6152 | if test "${ac_cv_func_memcmp_working+set}" = set; then : | |
a946372e | 6153 | $as_echo_n "(cached) " >&6 |
a946372e | 6154 | else |
f11781c5 AK |
6155 | if test "$cross_compiling" = yes; then : |
6156 | ac_cv_func_memcmp_working=no | |
6157 | else | |
6158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6159 | /* end confdefs.h. */ |
6160 | $ac_includes_default | |
f11781c5 AK |
6161 | int |
6162 | main () | |
6163 | { | |
a946372e | 6164 | |
f11781c5 AK |
6165 | /* Some versions of memcmp are not 8-bit clean. */ |
6166 | char c0 = '\100', c1 = '\200', c2 = '\201'; | |
6167 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6168 | return 1; | |
a946372e | 6169 | |
f11781c5 AK |
6170 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
6171 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6172 | William Lewis provided this test program. */ | |
6173 | { | |
6174 | char foo[21]; | |
6175 | char bar[21]; | |
6176 | int i; | |
6177 | for (i = 0; i < 4; i++) | |
6178 | { | |
6179 | char *a = foo + i; | |
6180 | char *b = bar + i; | |
6181 | strcpy (a, "--------01111111"); | |
6182 | strcpy (b, "--------10000000"); | |
6183 | if (memcmp (a, b, 16) >= 0) | |
6184 | return 1; | |
6185 | } | |
6186 | return 0; | |
6187 | } | |
a946372e | 6188 | |
f11781c5 AK |
6189 | ; |
6190 | return 0; | |
6191 | } | |
a946372e | 6192 | _ACEOF |
f11781c5 AK |
6193 | if ac_fn_c_try_run "$LINENO"; then : |
6194 | ac_cv_func_memcmp_working=yes | |
a946372e | 6195 | else |
f11781c5 AK |
6196 | ac_cv_func_memcmp_working=no |
6197 | fi | |
6198 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6199 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6200 | fi | |
a946372e | 6201 | |
a946372e | 6202 | fi |
f11781c5 AK |
6203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
6204 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
6205 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
6206 | *" memcmp.$ac_objext "* ) ;; | |
6207 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
6208 | ;; | |
6209 | esac | |
a946372e | 6210 | |
a946372e | 6211 | |
a946372e | 6212 | |
a946372e | 6213 | |
f11781c5 AK |
6214 | |
6215 | for ac_header in $ac_header_list | |
6216 | do : | |
6217 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6218 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6219 | " | |
6220 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
6221 | cat >>confdefs.h <<_ACEOF |
6222 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6223 | _ACEOF | |
6224 | ||
a946372e AK |
6225 | fi |
6226 | ||
6227 | done | |
6228 | ||
a946372e | 6229 | |
f11781c5 AK |
6230 | |
6231 | ||
6232 | ||
6233 | ||
6234 | ||
6235 | ||
6236 | for ac_func in getpagesize | |
6237 | do : | |
6238 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
6239 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | |
6240 | cat >>confdefs.h <<_ACEOF | |
6241 | #define HAVE_GETPAGESIZE 1 | |
6242 | _ACEOF | |
6243 | ||
a946372e | 6244 | fi |
f11781c5 AK |
6245 | done |
6246 | ||
6247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
6248 | $as_echo_n "checking for working mmap... " >&6; } | |
6249 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
6250 | $as_echo_n "(cached) " >&6 | |
a946372e | 6251 | else |
f11781c5 AK |
6252 | if test "$cross_compiling" = yes; then : |
6253 | ac_cv_func_mmap_fixed_mapped=no | |
6254 | else | |
6255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6256 | /* end confdefs.h. */ |
6257 | $ac_includes_default | |
f11781c5 AK |
6258 | /* malloc might have been renamed as rpl_malloc. */ |
6259 | #undef malloc | |
6260 | ||
6261 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6262 | Here is a matrix of mmap possibilities: | |
6263 | mmap private not fixed | |
6264 | mmap private fixed at somewhere currently unmapped | |
6265 | mmap private fixed at somewhere already mapped | |
6266 | mmap shared not fixed | |
6267 | mmap shared fixed at somewhere currently unmapped | |
6268 | mmap shared fixed at somewhere already mapped | |
6269 | For private mappings, we should verify that changes cannot be read() | |
6270 | back from the file, nor mmap's back from the file at a different | |
6271 | address. (There have been systems where private was not correctly | |
6272 | implemented like the infamous i386 svr4.0, and systems where the | |
6273 | VM page cache was not coherent with the file system buffer cache | |
6274 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6275 | For shared mappings, we should conversely verify that changes get | |
6276 | propagated back to all the places they're supposed to be. | |
6277 | ||
6278 | Grep wants private fixed already mapped. | |
6279 | The main things grep needs to know about mmap are: | |
6280 | * does it exist and is it safe to write into the mmap'd area | |
6281 | * how to use it (BSD variants) */ | |
6282 | ||
6283 | #include <fcntl.h> | |
6284 | #include <sys/mman.h> | |
6285 | ||
6286 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
6287 | char *malloc (); | |
6288 | #endif | |
6289 | ||
6290 | /* This mess was copied from the GNU getpagesize.h. */ | |
6291 | #ifndef HAVE_GETPAGESIZE | |
6292 | # ifdef _SC_PAGESIZE | |
6293 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6294 | # else /* no _SC_PAGESIZE */ | |
6295 | # ifdef HAVE_SYS_PARAM_H | |
6296 | # include <sys/param.h> | |
6297 | # ifdef EXEC_PAGESIZE | |
6298 | # define getpagesize() EXEC_PAGESIZE | |
6299 | # else /* no EXEC_PAGESIZE */ | |
6300 | # ifdef NBPG | |
6301 | # define getpagesize() NBPG * CLSIZE | |
6302 | # ifndef CLSIZE | |
6303 | # define CLSIZE 1 | |
6304 | # endif /* no CLSIZE */ | |
6305 | # else /* no NBPG */ | |
6306 | # ifdef NBPC | |
6307 | # define getpagesize() NBPC | |
6308 | # else /* no NBPC */ | |
6309 | # ifdef PAGESIZE | |
6310 | # define getpagesize() PAGESIZE | |
6311 | # endif /* PAGESIZE */ | |
6312 | # endif /* no NBPC */ | |
6313 | # endif /* no NBPG */ | |
6314 | # endif /* no EXEC_PAGESIZE */ | |
6315 | # else /* no HAVE_SYS_PARAM_H */ | |
6316 | # define getpagesize() 8192 /* punt totally */ | |
6317 | # endif /* no HAVE_SYS_PARAM_H */ | |
6318 | # endif /* no _SC_PAGESIZE */ | |
6319 | ||
6320 | #endif /* no HAVE_GETPAGESIZE */ | |
6321 | ||
6322 | int | |
6323 | main () | |
6324 | { | |
6325 | char *data, *data2, *data3; | |
6326 | const char *cdata2; | |
6327 | int i, pagesize; | |
6328 | int fd, fd2; | |
6329 | ||
6330 | pagesize = getpagesize (); | |
6331 | ||
6332 | /* First, make a file with some known garbage in it. */ | |
6333 | data = (char *) malloc (pagesize); | |
6334 | if (!data) | |
6335 | return 1; | |
6336 | for (i = 0; i < pagesize; ++i) | |
6337 | *(data + i) = rand (); | |
6338 | umask (0); | |
6339 | fd = creat ("conftest.mmap", 0600); | |
6340 | if (fd < 0) | |
6341 | return 2; | |
6342 | if (write (fd, data, pagesize) != pagesize) | |
6343 | return 3; | |
6344 | close (fd); | |
6345 | ||
6346 | /* Next, check that the tail of a page is zero-filled. File must have | |
6347 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
6348 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
6349 | if (fd2 < 0) | |
6350 | return 4; | |
6351 | cdata2 = ""; | |
6352 | if (write (fd2, cdata2, 1) != 1) | |
6353 | return 5; | |
6354 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
6355 | if (data2 == MAP_FAILED) | |
6356 | return 6; | |
6357 | for (i = 0; i < pagesize; ++i) | |
6358 | if (*(data2 + i)) | |
6359 | return 7; | |
6360 | close (fd2); | |
6361 | if (munmap (data2, pagesize)) | |
6362 | return 8; | |
6363 | ||
6364 | /* Next, try to mmap the file at a fixed address which already has | |
6365 | something else allocated at it. If we can, also make sure that | |
6366 | we see the same garbage. */ | |
6367 | fd = open ("conftest.mmap", O_RDWR); | |
6368 | if (fd < 0) | |
6369 | return 9; | |
6370 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6371 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6372 | return 10; | |
6373 | for (i = 0; i < pagesize; ++i) | |
6374 | if (*(data + i) != *(data2 + i)) | |
6375 | return 11; | |
6376 | ||
6377 | /* Finally, make sure that changes to the mapped area do not | |
6378 | percolate back to the file as seen by read(). (This is a bug on | |
6379 | some variants of i386 svr4.0.) */ | |
6380 | for (i = 0; i < pagesize; ++i) | |
6381 | *(data2 + i) = *(data2 + i) + 1; | |
6382 | data3 = (char *) malloc (pagesize); | |
6383 | if (!data3) | |
6384 | return 12; | |
6385 | if (read (fd, data3, pagesize) != pagesize) | |
6386 | return 13; | |
6387 | for (i = 0; i < pagesize; ++i) | |
6388 | if (*(data + i) != *(data3 + i)) | |
6389 | return 14; | |
6390 | close (fd); | |
6391 | return 0; | |
6392 | } | |
a946372e | 6393 | _ACEOF |
f11781c5 AK |
6394 | if ac_fn_c_try_run "$LINENO"; then : |
6395 | ac_cv_func_mmap_fixed_mapped=yes | |
a946372e | 6396 | else |
f11781c5 AK |
6397 | ac_cv_func_mmap_fixed_mapped=no |
6398 | fi | |
6399 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6400 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6401 | fi | |
a946372e | 6402 | |
a946372e | 6403 | fi |
f11781c5 AK |
6404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6405 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
6406 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
a946372e | 6407 | |
f11781c5 | 6408 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
a946372e | 6409 | |
f11781c5 AK |
6410 | fi |
6411 | rm -f conftest.mmap conftest.txt | |
6412 | ||
6413 | for ac_header in stdlib.h | |
6414 | do : | |
6415 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6416 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6417 | cat >>confdefs.h <<_ACEOF | |
6418 | #define HAVE_STDLIB_H 1 | |
a946372e | 6419 | _ACEOF |
f11781c5 AK |
6420 | |
6421 | fi | |
6422 | ||
6423 | done | |
6424 | ||
6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 | |
6426 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
6427 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : | |
6428 | $as_echo_n "(cached) " >&6 | |
6429 | else | |
6430 | if test "$cross_compiling" = yes; then : | |
6431 | ac_cv_func_realloc_0_nonnull=no | |
6432 | else | |
6433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e | 6434 | /* end confdefs.h. */ |
f11781c5 AK |
6435 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
6436 | # include <stdlib.h> | |
6437 | #else | |
6438 | char *realloc (); | |
6439 | #endif | |
6440 | ||
6441 | int | |
6442 | main () | |
6443 | { | |
6444 | return ! realloc (0, 0); | |
6445 | ; | |
6446 | return 0; | |
6447 | } | |
a946372e | 6448 | _ACEOF |
f11781c5 AK |
6449 | if ac_fn_c_try_run "$LINENO"; then : |
6450 | ac_cv_func_realloc_0_nonnull=yes | |
a946372e | 6451 | else |
f11781c5 AK |
6452 | ac_cv_func_realloc_0_nonnull=no |
6453 | fi | |
6454 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6455 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6456 | fi |
6457 | ||
f11781c5 AK |
6458 | fi |
6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 | |
6460 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
6461 | if test $ac_cv_func_realloc_0_nonnull = yes; then : | |
a946372e | 6462 | |
f11781c5 | 6463 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h |
a946372e | 6464 | |
a946372e | 6465 | else |
f11781c5 AK |
6466 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h |
6467 | ||
6468 | case " $LIBOBJS " in | |
6469 | *" realloc.$ac_objext "* ) ;; | |
6470 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
6471 | ;; | |
6472 | esac | |
a946372e | 6473 | |
a946372e | 6474 | |
f11781c5 AK |
6475 | $as_echo "#define realloc rpl_realloc" >>confdefs.h |
6476 | ||
a946372e AK |
6477 | fi |
6478 | ||
a946372e | 6479 | |
f11781c5 AK |
6480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
6481 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
6482 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then : | |
6483 | $as_echo_n "(cached) " >&6 | |
a946372e | 6484 | else |
f11781c5 AK |
6485 | if test "$cross_compiling" = yes; then : |
6486 | ac_cv_func_stat_empty_string_bug=yes | |
6487 | else | |
6488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6489 | /* end confdefs.h. */ | |
6490 | $ac_includes_default | |
6491 | int | |
6492 | main () | |
6493 | { | |
6494 | struct stat sbuf; | |
6495 | return stat ("", &sbuf) == 0; | |
6496 | ; | |
6497 | return 0; | |
6498 | } | |
6499 | _ACEOF | |
6500 | if ac_fn_c_try_run "$LINENO"; then : | |
6501 | ac_cv_func_stat_empty_string_bug=no | |
6502 | else | |
6503 | ac_cv_func_stat_empty_string_bug=yes | |
a946372e | 6504 | fi |
f11781c5 AK |
6505 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6506 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6507 | fi |
6508 | ||
8c4e8a18 | 6509 | fi |
f11781c5 AK |
6510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
6511 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
6512 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
6513 | case " $LIBOBJS " in | |
6514 | *" stat.$ac_objext "* ) ;; | |
6515 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" | |
6516 | ;; | |
6517 | esac | |
8c4e8a18 FDN |
6518 | |
6519 | ||
6520 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 6521 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
8c4e8a18 FDN |
6522 | _ACEOF |
6523 | ||
6524 | fi | |
6525 | ||
f11781c5 AK |
6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
6527 | $as_echo_n "checking for working strtod... " >&6; } | |
6528 | if test "${ac_cv_func_strtod+set}" = set; then : | |
6529 | $as_echo_n "(cached) " >&6 | |
66fd4529 | 6530 | else |
f11781c5 AK |
6531 | if test "$cross_compiling" = yes; then : |
6532 | ac_cv_func_strtod=no | |
6533 | else | |
6534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6535 | /* end confdefs.h. */ | |
66fd4529 | 6536 | |
f11781c5 AK |
6537 | $ac_includes_default |
6538 | #ifndef strtod | |
6539 | double strtod (); | |
6540 | #endif | |
6541 | int | |
6542 | main() | |
6543 | { | |
6544 | { | |
6545 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6546 | char *string = " +69"; | |
6547 | char *term; | |
6548 | double value; | |
6549 | value = strtod (string, &term); | |
6550 | if (value != 69 || term != (string + 4)) | |
6551 | return 1; | |
6552 | } | |
66fd4529 | 6553 | |
f11781c5 AK |
6554 | { |
6555 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6556 | terminating character under some conditions. */ | |
6557 | char *string = "NaN"; | |
6558 | char *term; | |
6559 | strtod (string, &term); | |
6560 | if (term != string && *(term - 1) == 0) | |
6561 | return 1; | |
6562 | } | |
6563 | return 0; | |
6564 | } | |
66fd4529 | 6565 | |
f11781c5 AK |
6566 | _ACEOF |
6567 | if ac_fn_c_try_run "$LINENO"; then : | |
6568 | ac_cv_func_strtod=yes | |
66fd4529 | 6569 | else |
f11781c5 AK |
6570 | ac_cv_func_strtod=no |
6571 | fi | |
6572 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6573 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6574 | fi |
6575 | ||
f11781c5 AK |
6576 | fi |
6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | |
6578 | $as_echo "$ac_cv_func_strtod" >&6; } | |
6579 | if test $ac_cv_func_strtod = no; then | |
6580 | case " $LIBOBJS " in | |
6581 | *" strtod.$ac_objext "* ) ;; | |
6582 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
6583 | ;; | |
6584 | esac | |
71082be4 | 6585 | |
f11781c5 AK |
6586 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
6587 | if test "x$ac_cv_func_pow" = x""yes; then : | |
71082be4 | 6588 | |
66fd4529 | 6589 | fi |
a946372e | 6590 | |
f11781c5 AK |
6591 | if test $ac_cv_func_pow = no; then |
6592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
6593 | $as_echo_n "checking for pow in -lm... " >&6; } | |
6594 | if test "${ac_cv_lib_m_pow+set}" = set; then : | |
6595 | $as_echo_n "(cached) " >&6 | |
6596 | else | |
6597 | ac_check_lib_save_LIBS=$LIBS | |
6598 | LIBS="-lm $LIBS" | |
6599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6600 | /* end confdefs.h. */ | |
90c80887 | 6601 | |
f11781c5 AK |
6602 | /* Override any GCC internal prototype to avoid an error. |
6603 | Use char because int might match the return type of a GCC | |
6604 | builtin and then its argument prototype would still apply. */ | |
6605 | #ifdef __cplusplus | |
6606 | extern "C" | |
6607 | #endif | |
6608 | char pow (); | |
6609 | int | |
6610 | main () | |
6611 | { | |
6612 | return pow (); | |
6613 | ; | |
6614 | return 0; | |
6615 | } | |
6616 | _ACEOF | |
6617 | if ac_fn_c_try_link "$LINENO"; then : | |
6618 | ac_cv_lib_m_pow=yes | |
90c80887 | 6619 | else |
f11781c5 | 6620 | ac_cv_lib_m_pow=no |
90c80887 | 6621 | fi |
f11781c5 AK |
6622 | rm -f core conftest.err conftest.$ac_objext \ |
6623 | conftest$ac_exeext conftest.$ac_ext | |
6624 | LIBS=$ac_check_lib_save_LIBS | |
90c80887 | 6625 | fi |
f11781c5 AK |
6626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
6627 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
6628 | if test "x$ac_cv_lib_m_pow" = x""yes; then : | |
6629 | POW_LIB=-lm | |
90c80887 | 6630 | else |
f11781c5 AK |
6631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
6632 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
90c80887 | 6633 | fi |
f11781c5 | 6634 | |
90c80887 AK |
6635 | fi |
6636 | ||
f11781c5 AK |
6637 | fi |
6638 | ||
6639 | for ac_func in vprintf | |
6640 | do : | |
6641 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
6642 | if test "x$ac_cv_func_vprintf" = x""yes; then : | |
6643 | cat >>confdefs.h <<_ACEOF | |
6644 | #define HAVE_VPRINTF 1 | |
6645 | _ACEOF | |
90c80887 | 6646 | |
f11781c5 AK |
6647 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
6648 | if test "x$ac_cv_func__doprnt" = x""yes; then : | |
90c80887 | 6649 | |
f11781c5 | 6650 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
90c80887 | 6651 | |
90c80887 | 6652 | fi |
90c80887 | 6653 | |
f11781c5 AK |
6654 | fi |
6655 | done | |
90c80887 | 6656 | |
90c80887 | 6657 | |
90c80887 | 6658 | |
f11781c5 AK |
6659 | ################################################################################ |
6660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5 | |
6661 | $as_echo_n "checking whether to use static linking... " >&6; } | |
6662 | # Check whether --enable-static_link was given. | |
6663 | if test "${enable_static_link+set}" = set; then : | |
6664 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
6665 | else | |
6666 | STATIC_LINK=no | |
6667 | fi | |
90c80887 | 6668 | |
f11781c5 AK |
6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5 |
6670 | $as_echo "$STATIC_LINK" >&6; } | |
90c80887 | 6671 | |
f11781c5 | 6672 | ################################################################################ |
90c80887 | 6673 | |
90c80887 | 6674 | |
f11781c5 AK |
6675 | ################################################################################ |
6676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5 | |
6677 | $as_echo_n "checking file owner... " >&6; } | |
90c80887 | 6678 | |
f11781c5 AK |
6679 | # Check whether --with-user was given. |
6680 | if test "${with_user+set}" = set; then : | |
6681 | withval=$with_user; OWNER=$withval | |
6682 | fi | |
90c80887 | 6683 | |
f11781c5 AK |
6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5 |
6685 | $as_echo "$OWNER" >&6; } | |
90c80887 | 6686 | |
f11781c5 AK |
6687 | if test x$OWNER != x; then |
6688 | INSTALL="$INSTALL -o $OWNER" | |
90c80887 | 6689 | fi |
a946372e | 6690 | |
f11781c5 AK |
6691 | ################################################################################ |
6692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5 | |
6693 | $as_echo_n "checking group owner... " >&6; } | |
a946372e | 6694 | |
f11781c5 AK |
6695 | # Check whether --with-group was given. |
6696 | if test "${with_group+set}" = set; then : | |
6697 | withval=$with_group; GROUP=$withval | |
a946372e | 6698 | fi |
f11781c5 AK |
6699 | |
6700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5 | |
6701 | $as_echo "$GROUP" >&6; } | |
6702 | ||
6703 | if test x$GROUP != x; then | |
6704 | INSTALL="$INSTALL -g $GROUP" | |
a946372e | 6705 | fi |
f11781c5 AK |
6706 | |
6707 | ################################################################################ | |
6708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5 | |
6709 | $as_echo_n "checking device node uid... " >&6; } | |
6710 | ||
6711 | ||
6712 | # Check whether --with-device-uid was given. | |
6713 | if test "${with_device_uid+set}" = set; then : | |
6714 | withval=$with_device_uid; DM_DEVICE_UID=$withval | |
a946372e | 6715 | else |
f11781c5 | 6716 | DM_DEVICE_UID=0 |
a946372e AK |
6717 | fi |
6718 | ||
f11781c5 AK |
6719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5 |
6720 | $as_echo "$DM_DEVICE_UID" >&6; } | |
a946372e | 6721 | |
f11781c5 AK |
6722 | ################################################################################ |
6723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5 | |
6724 | $as_echo_n "checking device node gid... " >&6; } | |
a946372e | 6725 | |
a946372e | 6726 | |
f11781c5 AK |
6727 | # Check whether --with-device-gid was given. |
6728 | if test "${with_device_gid+set}" = set; then : | |
6729 | withval=$with_device_gid; DM_DEVICE_GID=$withval | |
a946372e | 6730 | else |
f11781c5 | 6731 | DM_DEVICE_GID=0 |
a946372e | 6732 | fi |
a946372e | 6733 | |
f11781c5 AK |
6734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5 |
6735 | $as_echo "$DM_DEVICE_GID" >&6; } | |
90c80887 | 6736 | |
f11781c5 AK |
6737 | ################################################################################ |
6738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5 | |
6739 | $as_echo_n "checking device node mode... " >&6; } | |
90c80887 | 6740 | |
90c80887 | 6741 | |
f11781c5 AK |
6742 | # Check whether --with-device-mode was given. |
6743 | if test "${with_device_mode+set}" = set; then : | |
6744 | withval=$with_device_mode; DM_DEVICE_MODE=$withval | |
6745 | else | |
6746 | DM_DEVICE_MODE=0600 | |
6747 | fi | |
90c80887 | 6748 | |
f11781c5 AK |
6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5 |
6750 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
90c80887 | 6751 | |
d0df875d ZK |
6752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5 |
6753 | $as_echo_n "checking when to create device nodes... " >&6; } | |
6754 | ||
6755 | # Check whether --with-device-nodes-on was given. | |
6756 | if test "${with_device_nodes_on+set}" = set; then : | |
6757 | withval=$with_device_nodes_on; ADD_NODE=$withval | |
6758 | else | |
6759 | ADD_NODE=resume | |
6760 | fi | |
6761 | ||
6762 | case "$ADD_NODE" in | |
6763 | resume) add_on=DM_ADD_NODE_ON_RESUME;; | |
6764 | create) add_on=DM_ADD_NODE_ON_CREATE;; | |
6765 | *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;; | |
6766 | esac | |
6767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5 | |
6768 | $as_echo "on $ADD_NODE" >&6; } | |
6769 | ||
6770 | cat >>confdefs.h <<_ACEOF | |
6771 | #define DEFAULT_DM_ADD_NODE $add_on | |
6772 | _ACEOF | |
6773 | ||
6774 | ||
c64d7cd3 PR |
6775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5 |
6776 | $as_echo_n "checking default name mangling... " >&6; } | |
6777 | ||
6778 | # Check whether --with-default-name-mangling was given. | |
6779 | if test "${with_default_name_mangling+set}" = set; then : | |
6780 | withval=$with_default_name_mangling; MANGLING=$withval | |
6781 | else | |
6782 | MANGLING=auto | |
6783 | fi | |
6784 | ||
6785 | case "$MANGLING" in | |
6786 | auto) mangling=DM_STRING_MANGLING_AUTO;; | |
6787 | disabled) mangling=DM_STRING_MANGLING_NONE;; | |
6788 | hex) mangling=DM_STRING_MANGLING_HEX;; | |
6789 | *) as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5;; | |
6790 | esac | |
6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5 | |
6792 | $as_echo "$MANGLING" >&6; } | |
6793 | ||
6794 | cat >>confdefs.h <<_ACEOF | |
6795 | #define DEFAULT_DM_NAME_MANGLING $mangling | |
6796 | _ACEOF | |
6797 | ||
6798 | ||
f11781c5 AK |
6799 | ################################################################################ |
6800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5 | |
6801 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
6802 | # Check whether --enable-lvm1_fallback was given. | |
6803 | if test "${enable_lvm1_fallback+set}" = set; then : | |
6804 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
6805 | else | |
6806 | LVM1_FALLBACK=no | |
6807 | fi | |
90c80887 | 6808 | |
f11781c5 AK |
6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5 |
6810 | $as_echo "$LVM1_FALLBACK" >&6; } | |
90c80887 | 6811 | |
f11781c5 | 6812 | if test x$LVM1_FALLBACK = xyes; then |
90c80887 | 6813 | |
f11781c5 | 6814 | $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h |
90c80887 | 6815 | |
f11781c5 | 6816 | fi |
90c80887 | 6817 | |
f11781c5 AK |
6818 | ################################################################################ |
6819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5 | |
6820 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
6821 | ||
6822 | # Check whether --with-lvm1 was given. | |
6823 | if test "${with_lvm1+set}" = set; then : | |
6824 | withval=$with_lvm1; LVM1=$withval | |
a946372e | 6825 | else |
f11781c5 | 6826 | LVM1=internal |
a946372e | 6827 | fi |
f11781c5 AK |
6828 | |
6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5 | |
6830 | $as_echo "$LVM1" >&6; } | |
6831 | ||
6832 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
6833 | then as_fn_error $? "--with-lvm1 parameter invalid | |
6834 | " "$LINENO" 5 | |
6835 | fi; | |
6836 | ||
6837 | if test x$LVM1 = xinternal; then | |
6838 | ||
6839 | $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h | |
6840 | ||
a946372e AK |
6841 | fi |
6842 | ||
6843 | ################################################################################ | |
f11781c5 AK |
6844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5 |
6845 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
6846 | ||
6847 | # Check whether --with-pool was given. | |
6848 | if test "${with_pool+set}" = set; then : | |
6849 | withval=$with_pool; POOL=$withval | |
a946372e | 6850 | else |
f11781c5 | 6851 | POOL=internal |
a946372e AK |
6852 | fi |
6853 | ||
f11781c5 AK |
6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5 |
6855 | $as_echo "$POOL" >&6; } | |
6856 | ||
6857 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
6858 | then as_fn_error $? "--with-pool parameter invalid | |
6859 | " "$LINENO" 5 | |
6860 | fi; | |
6861 | ||
6862 | if test x$POOL = xinternal; then | |
6863 | ||
6864 | $as_echo "#define POOL_INTERNAL 1" >>confdefs.h | |
a946372e | 6865 | |
a946372e AK |
6866 | fi |
6867 | ||
6868 | ################################################################################ | |
f11781c5 AK |
6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5 |
6870 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
a946372e | 6871 | |
f11781c5 AK |
6872 | # Check whether --with-cluster was given. |
6873 | if test "${with_cluster+set}" = set; then : | |
6874 | withval=$with_cluster; CLUSTER=$withval | |
a946372e AK |
6875 | fi |
6876 | ||
f11781c5 AK |
6877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5 |
6878 | $as_echo "$CLUSTER" >&6; } | |
a946372e | 6879 | |
f11781c5 AK |
6880 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
6881 | then as_fn_error $? "--with-cluster parameter invalid | |
6882 | " "$LINENO" 5 | |
6883 | fi; | |
fddafd51 | 6884 | |
f11781c5 | 6885 | if test x$CLUSTER = xinternal; then |
5556819a | 6886 | |
f11781c5 | 6887 | $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h |
fddafd51 | 6888 | |
fddafd51 | 6889 | fi |
f11781c5 AK |
6890 | |
6891 | ################################################################################ | |
6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5 | |
6893 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
6894 | ||
6895 | # Check whether --with-snapshots was given. | |
6896 | if test "${with_snapshots+set}" = set; then : | |
6897 | withval=$with_snapshots; SNAPSHOTS=$withval | |
fddafd51 | 6898 | else |
f11781c5 | 6899 | SNAPSHOTS=internal |
fddafd51 ZK |
6900 | fi |
6901 | ||
f11781c5 AK |
6902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5 |
6903 | $as_echo "$SNAPSHOTS" >&6; } | |
fddafd51 | 6904 | |
f11781c5 AK |
6905 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
6906 | then as_fn_error $? "--with-snapshots parameter invalid | |
6907 | " "$LINENO" 5 | |
6908 | fi; | |
fddafd51 | 6909 | |
f11781c5 AK |
6910 | if test x$SNAPSHOTS = xinternal; then |
6911 | ||
6912 | $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h | |
6913 | ||
6914 | fi | |
6915 | ||
6916 | ################################################################################ | |
6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5 | |
6918 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
6919 | ||
6920 | # Check whether --with-mirrors was given. | |
6921 | if test "${with_mirrors+set}" = set; then : | |
6922 | withval=$with_mirrors; MIRRORS=$withval | |
fddafd51 | 6923 | else |
f11781c5 | 6924 | MIRRORS=internal |
fddafd51 ZK |
6925 | fi |
6926 | ||
f11781c5 AK |
6927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5 |
6928 | $as_echo "$MIRRORS" >&6; } | |
fddafd51 | 6929 | |
f11781c5 AK |
6930 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
6931 | then as_fn_error $? "--with-mirrors parameter invalid | |
6932 | " "$LINENO" 5 | |
6933 | fi; | |
6934 | ||
6935 | if test x$MIRRORS = xinternal; then | |
6936 | ||
6937 | $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h | |
6938 | ||
6939 | fi | |
6940 | ||
cac52ca4 JEB |
6941 | ################################################################################ |
6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5 | |
6943 | $as_echo_n "checking whether to include raid... " >&6; } | |
6944 | ||
6945 | # Check whether --with-raid was given. | |
6946 | if test "${with_raid+set}" = set; then : | |
6947 | withval=$with_raid; RAID=$withval | |
6948 | else | |
6949 | RAID=internal | |
6950 | fi | |
6951 | ||
6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5 | |
6953 | $as_echo "$RAID" >&6; } | |
6954 | ||
6955 | if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ]; | |
6956 | then as_fn_error $? "--with-raid parameter invalid | |
6957 | " "$LINENO" 5 | |
6958 | fi; | |
6959 | ||
6960 | if test x$RAID = xinternal; then | |
6961 | ||
6962 | $as_echo "#define RAID_INTERNAL 1" >>confdefs.h | |
6963 | ||
6964 | fi | |
6965 | ||
f11781c5 AK |
6966 | ################################################################################ |
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5 | |
6968 | $as_echo_n "checking whether to include replicators... " >&6; } | |
6969 | ||
6970 | # Check whether --with-replicators was given. | |
6971 | if test "${with_replicators+set}" = set; then : | |
6972 | withval=$with_replicators; REPLICATORS=$withval | |
fd4728e1 | 6973 | else |
f11781c5 AK |
6974 | REPLICATORS=none |
6975 | fi | |
fd4728e1 | 6976 | |
f11781c5 AK |
6977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5 |
6978 | $as_echo "$REPLICATORS" >&6; } | |
6979 | ||
6980 | case "$REPLICATORS" in | |
6981 | none|shared) ;; | |
6982 | internal) | |
6983 | $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h | |
6984 | ;; | |
6985 | *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;; | |
fd4728e1 | 6986 | esac |
f11781c5 | 6987 | |
3ba4a195 ZK |
6988 | ################################################################################ |
6989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5 | |
6990 | $as_echo_n "checking whether to include thin provisioning... " >&6; } | |
6991 | ||
6992 | # Check whether --with-thin was given. | |
6993 | if test "${with_thin+set}" = set; then : | |
6994 | withval=$with_thin; THIN=$withval | |
6995 | else | |
6996 | THIN=none | |
6997 | fi | |
6998 | ||
6999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5 | |
7000 | $as_echo "$THIN" >&6; } | |
7001 | ||
7002 | case "$THIN" in | |
7003 | none|shared) ;; | |
7004 | internal) | |
7005 | $as_echo "#define THIN_INTERNAL 1" >>confdefs.h | |
7006 | ;; | |
7007 | *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;; | |
7008 | esac | |
7009 | ||
f11781c5 AK |
7010 | ################################################################################ |
7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5 | |
7012 | $as_echo_n "checking whether to enable readline... " >&6; } | |
7013 | # Check whether --enable-readline was given. | |
7014 | if test "${enable_readline+set}" = set; then : | |
7015 | enableval=$enable_readline; READLINE=$enableval | |
fd4728e1 | 7016 | else |
f11781c5 | 7017 | READLINE=maybe |
fd4728e1 ZK |
7018 | fi |
7019 | ||
f11781c5 AK |
7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5 |
7021 | $as_echo "$READLINE" >&6; } | |
fd4728e1 | 7022 | |
f11781c5 AK |
7023 | ################################################################################ |
7024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5 | |
7025 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
7026 | # Check whether --enable-realtime was given. | |
7027 | if test "${enable_realtime+set}" = set; then : | |
7028 | enableval=$enable_realtime; REALTIME=$enableval | |
5556819a | 7029 | fi |
d0191583 | 7030 | |
f11781c5 AK |
7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5 |
7032 | $as_echo "$REALTIME" >&6; } | |
7033 | ||
54b362f9 | 7034 | ################################################################################ |
f11781c5 AK |
7035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5 |
7036 | $as_echo_n "checking whether to enable OCF resource agents... " >&6; } | |
7037 | # Check whether --enable-ocf was given. | |
7038 | if test "${enable_ocf+set}" = set; then : | |
7039 | enableval=$enable_ocf; OCF=$enableval | |
54b362f9 | 7040 | else |
f11781c5 | 7041 | OCF=no |
54b362f9 AK |
7042 | fi |
7043 | ||
f11781c5 AK |
7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5 |
7045 | $as_echo "$OCF" >&6; } | |
54b362f9 | 7046 | |
606d0858 AK |
7047 | # Check whether --with-ocfdir was given. |
7048 | if test "${with_ocfdir+set}" = set; then : | |
7049 | withval=$with_ocfdir; OCFDIR=$withval | |
7050 | else | |
7051 | OCFDIR='${prefix}/lib/ocf/resource.d/lvm2' | |
7052 | fi | |
7053 | ||
7054 | ||
f11781c5 AK |
7055 | ################################################################################ |
7056 | pkg_config_init() { | |
7057 | ||
7058 | ||
7059 | ||
7060 | ||
7061 | ||
7062 | ||
7063 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
7064 | if test -n "$ac_tool_prefix"; then | |
7065 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
7066 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 7068 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 7069 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
7070 | $as_echo_n "(cached) " >&6 |
7071 | else | |
f11781c5 | 7072 | case $PKG_CONFIG in |
54b362f9 | 7073 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7074 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7075 | ;; |
7076 | *) | |
7077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7078 | for as_dir in $PATH | |
7079 | do | |
7080 | IFS=$as_save_IFS | |
7081 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7082 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7083 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7084 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7086 | break 2 |
7087 | fi | |
7088 | done | |
f11781c5 | 7089 | done |
54b362f9 AK |
7090 | IFS=$as_save_IFS |
7091 | ||
7092 | ;; | |
7093 | esac | |
7094 | fi | |
f11781c5 AK |
7095 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
7096 | if test -n "$PKG_CONFIG"; then | |
7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
7098 | $as_echo "$PKG_CONFIG" >&6; } | |
54b362f9 | 7099 | else |
f11781c5 | 7100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7101 | $as_echo "no" >&6; } |
7102 | fi | |
7103 | ||
7104 | ||
f11781c5 AK |
7105 | fi |
7106 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
7107 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
7108 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
7109 | set dummy pkg-config; ac_word=$2 | |
7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 7111 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 7112 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
7113 | $as_echo_n "(cached) " >&6 |
7114 | else | |
f11781c5 | 7115 | case $ac_pt_PKG_CONFIG in |
54b362f9 | 7116 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7117 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7118 | ;; |
7119 | *) | |
7120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7121 | for as_dir in $PATH | |
7122 | do | |
7123 | IFS=$as_save_IFS | |
7124 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7125 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7126 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7127 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7129 | break 2 |
7130 | fi | |
7131 | done | |
f11781c5 | 7132 | done |
54b362f9 AK |
7133 | IFS=$as_save_IFS |
7134 | ||
7135 | ;; | |
7136 | esac | |
7137 | fi | |
f11781c5 AK |
7138 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
7139 | if test -n "$ac_pt_PKG_CONFIG"; then | |
7140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
7141 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
54b362f9 | 7142 | else |
f11781c5 | 7143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7144 | $as_echo "no" >&6; } |
7145 | fi | |
7146 | ||
f11781c5 AK |
7147 | if test "x$ac_pt_PKG_CONFIG" = x; then |
7148 | PKG_CONFIG="" | |
7149 | else | |
7150 | case $cross_compiling:$ac_tool_warned in | |
7151 | yes:) | |
7152 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7153 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7154 | ac_tool_warned=yes ;; | |
7155 | esac | |
7156 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7157 | fi | |
d1e8046f | 7158 | else |
f11781c5 | 7159 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
d1e8046f AK |
7160 | fi |
7161 | ||
f11781c5 AK |
7162 | fi |
7163 | if test -n "$PKG_CONFIG"; then | |
7164 | _pkg_min_version=0.9.0 | |
7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
7166 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
7167 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7169 | $as_echo "yes" >&6; } | |
7170 | else | |
7171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7172 | $as_echo "no" >&6; } | |
7173 | PKG_CONFIG="" | |
7174 | fi | |
7175 | fi | |
d1e8046f | 7176 | |
f11781c5 AK |
7177 | pkg_failed=no |
7178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5 | |
7179 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
d1e8046f | 7180 | |
f11781c5 AK |
7181 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
7182 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
7183 | elif test -n "$PKG_CONFIG"; then | |
7184 | if test -n "$PKG_CONFIG" && \ | |
7185 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7186 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
7187 | ac_status=$? | |
7188 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7189 | test $ac_status = 0; }; then | |
7190 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7191 | else |
f11781c5 AK |
7192 | pkg_failed=yes |
7193 | fi | |
7194 | else | |
7195 | pkg_failed=untried | |
7196 | fi | |
7197 | if test -n "$PKGCONFIGINIT_LIBS"; then | |
7198 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
7199 | elif test -n "$PKG_CONFIG"; then | |
7200 | if test -n "$PKG_CONFIG" && \ | |
7201 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7202 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
d1e8046f | 7203 | ac_status=$? |
f11781c5 AK |
7204 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7205 | test $ac_status = 0; }; then | |
7206 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7207 | else |
f11781c5 AK |
7208 | pkg_failed=yes |
7209 | fi | |
7210 | else | |
7211 | pkg_failed=untried | |
d1e8046f AK |
7212 | fi |
7213 | ||
d1e8046f | 7214 | |
f11781c5 AK |
7215 | |
7216 | if test $pkg_failed = yes; then | |
7217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7218 | $as_echo "no" >&6; } | |
7219 | ||
7220 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7221 | _pkg_short_errors_supported=yes | |
7222 | else | |
7223 | _pkg_short_errors_supported=no | |
7224 | fi | |
7225 | if test $_pkg_short_errors_supported = yes; then | |
7226 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` | |
7227 | else | |
7228 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` | |
7229 | fi | |
7230 | # Put the nasty error message in config.log where it belongs | |
7231 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 | |
7232 | ||
7233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7234 | $as_echo "pkg-config initialized" >&6; } | |
7235 | elif test $pkg_failed = untried; then | |
7236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7237 | $as_echo "no" >&6; } | |
7238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7239 | $as_echo "pkg-config initialized" >&6; } | |
d1e8046f | 7240 | else |
f11781c5 AK |
7241 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
7242 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
7243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7244 | $as_echo "yes" >&6; } | |
d1e8046f | 7245 | |
d1e8046f | 7246 | fi |
f11781c5 AK |
7247 | PKGCONFIG_INIT=1 |
7248 | } | |
d1e8046f | 7249 | |
f11781c5 AK |
7250 | ################################################################################ |
7251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5 | |
7252 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d1e8046f | 7253 | |
f11781c5 AK |
7254 | # Check whether --with-clvmd was given. |
7255 | if test "${with_clvmd+set}" = set; then : | |
7256 | withval=$with_clvmd; CLVMD=$withval | |
d1e8046f | 7257 | else |
f11781c5 | 7258 | CLVMD=none |
d1e8046f | 7259 | fi |
d1e8046f | 7260 | |
f11781c5 AK |
7261 | if test x$CLVMD = xyes; then |
7262 | CLVMD=all | |
d1e8046f | 7263 | fi |
f11781c5 AK |
7264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5 |
7265 | $as_echo "$CLVMD" >&6; } | |
d1e8046f | 7266 | |
f11781c5 AK |
7267 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
7268 | CLUSTER=internal | |
d1e8046f AK |
7269 | fi |
7270 | ||
f11781c5 AK |
7271 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then |
7272 | pkg_config_init | |
7273 | fi | |
d1e8046f | 7274 | |
f11781c5 AK |
7275 | CLVMD_CMANAGERS="" |
7276 | CLVMD_NEEDS_QDISKD=no | |
d1e8046f | 7277 | |
f11781c5 | 7278 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then |
13db5983 | 7279 | as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5; |
d1e8046f | 7280 | fi |
f11781c5 AK |
7281 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then |
7282 | BUILDCMAN=yes | |
7283 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
7284 | CLVMD_NEEDS_QDISKD=yes | |
7285 | fi | |
7286 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
7287 | BUILDCOROSYNC=yes | |
7288 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
7289 | fi | |
7290 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
7291 | BUILDOPENAIS=yes | |
7292 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
7293 | fi | |
7294 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
7295 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
fc54be10 AK |
7296 | fi |
7297 | ||
f11781c5 AK |
7298 | soft_bailout() { |
7299 | NOTFOUND=1 | |
7300 | } | |
ad6254c5 | 7301 | |
f11781c5 AK |
7302 | hard_bailout() { |
7303 | as_fn_error $? "bailing out" "$LINENO" 5 | |
7304 | } | |
ad6254c5 | 7305 | |
f11781c5 AK |
7306 | if test x$CLVMD = xall; then |
7307 | bailout=soft_bailout | |
f11781c5 AK |
7308 | BUILDCMAN=yes |
7309 | BUILDCOROSYNC=yes | |
7310 | BUILDOPENAIS=yes | |
a5f46f6a | 7311 | else |
f11781c5 | 7312 | bailout=hard_bailout |
a5f46f6a AK |
7313 | fi |
7314 | ||
f11781c5 AK |
7315 | check_lib_no_libs() { |
7316 | lib_no_libs_arg1=$1 | |
7317 | shift | |
7318 | lib_no_libs_arg2=$1 | |
7319 | shift | |
7320 | lib_no_libs_args=$@ | |
7321 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
7322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
7323 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
7324 | if eval "test \"\${$as_ac_Lib+set}\"" = set; then : | |
90c80887 AK |
7325 | $as_echo_n "(cached) " >&6 |
7326 | else | |
7327 | ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
7328 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" |
7329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
90c80887 AK |
7330 | /* end confdefs.h. */ |
7331 | ||
7332 | /* Override any GCC internal prototype to avoid an error. | |
7333 | Use char because int might match the return type of a GCC | |
7334 | builtin and then its argument prototype would still apply. */ | |
7335 | #ifdef __cplusplus | |
7336 | extern "C" | |
7337 | #endif | |
f11781c5 | 7338 | char $lib_no_libs_arg2 (); |
90c80887 AK |
7339 | int |
7340 | main () | |
7341 | { | |
f11781c5 | 7342 | return $lib_no_libs_arg2 (); |
90c80887 AK |
7343 | ; |
7344 | return 0; | |
7345 | } | |
7346 | _ACEOF | |
f11781c5 AK |
7347 | if ac_fn_c_try_link "$LINENO"; then : |
7348 | eval "$as_ac_Lib=yes" | |
90c80887 | 7349 | else |
f11781c5 | 7350 | eval "$as_ac_Lib=no" |
90c80887 | 7351 | fi |
f11781c5 AK |
7352 | rm -f core conftest.err conftest.$ac_objext \ |
7353 | conftest$ac_exeext conftest.$ac_ext | |
90c80887 AK |
7354 | LIBS=$ac_check_lib_save_LIBS |
7355 | fi | |
f11781c5 AK |
7356 | eval ac_res=\$$as_ac_Lib |
7357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7358 | $as_echo "$ac_res" >&6; } | |
7359 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
7360 | cat >>confdefs.h <<_ACEOF | |
7361 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
7362 | _ACEOF | |
7363 | ||
7364 | LIBS="-l$lib_no_libs_arg1 $LIBS" | |
7365 | ||
90c80887 | 7366 | else |
f11781c5 | 7367 | $bailout |
90c80887 AK |
7368 | fi |
7369 | ||
f11781c5 AK |
7370 | LIBS=$ac_check_lib_save_LIBS |
7371 | } | |
90c80887 | 7372 | |
f11781c5 | 7373 | if test x$BUILDCMAN = xyes; then |
ad6254c5 | 7374 | |
f11781c5 AK |
7375 | pkg_failed=no |
7376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5 | |
7377 | $as_echo_n "checking for CMAN... " >&6; } | |
93bd259b | 7378 | |
f11781c5 AK |
7379 | if test -n "$CMAN_CFLAGS"; then |
7380 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
7381 | elif test -n "$PKG_CONFIG"; then | |
7382 | if test -n "$PKG_CONFIG" && \ | |
7383 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7384 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
7385 | ac_status=$? | |
7386 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7387 | test $ac_status = 0; }; then | |
7388 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
7389 | else | |
7390 | pkg_failed=yes | |
ad6254c5 | 7391 | fi |
f11781c5 AK |
7392 | else |
7393 | pkg_failed=untried | |
ad6254c5 | 7394 | fi |
f11781c5 AK |
7395 | if test -n "$CMAN_LIBS"; then |
7396 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
7397 | elif test -n "$PKG_CONFIG"; then | |
7398 | if test -n "$PKG_CONFIG" && \ | |
7399 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7400 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
93bd259b | 7401 | ac_status=$? |
f11781c5 AK |
7402 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7403 | test $ac_status = 0; }; then | |
7404 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
93bd259b | 7405 | else |
f11781c5 AK |
7406 | pkg_failed=yes |
7407 | fi | |
7408 | else | |
7409 | pkg_failed=untried | |
93bd259b AK |
7410 | fi |
7411 | ||
f11781c5 AK |
7412 | |
7413 | ||
7414 | if test $pkg_failed = yes; then | |
7415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7416 | $as_echo "no" >&6; } | |
7417 | ||
7418 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7419 | _pkg_short_errors_supported=yes | |
7420 | else | |
7421 | _pkg_short_errors_supported=no | |
93bd259b | 7422 | fi |
f11781c5 AK |
7423 | if test $_pkg_short_errors_supported = yes; then |
7424 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
7425 | else | |
7426 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
7427 | fi | |
7428 | # Put the nasty error message in config.log where it belongs | |
7429 | echo "$CMAN_PKG_ERRORS" >&5 | |
93bd259b | 7430 | |
f11781c5 AK |
7431 | NOTFOUND=0 |
7432 | for ac_header in libcman.h | |
7433 | do : | |
7434 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7435 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7436 | cat >>confdefs.h <<_ACEOF | |
7437 | #define HAVE_LIBCMAN_H 1 | |
93bd259b AK |
7438 | _ACEOF |
7439 | ||
f11781c5 AK |
7440 | else |
7441 | $bailout | |
93bd259b AK |
7442 | fi |
7443 | ||
f11781c5 | 7444 | done |
93bd259b | 7445 | |
f11781c5 AK |
7446 | check_lib_no_libs cman cman_init |
7447 | if test $NOTFOUND = 0; then | |
7448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7449 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7450 | CMAN_LIBS="-lcman" | |
7451 | HAVE_CMAN=yes | |
7452 | fi | |
7453 | elif test $pkg_failed = untried; then | |
7454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7455 | $as_echo "no" >&6; } | |
7456 | NOTFOUND=0 | |
7457 | for ac_header in libcman.h | |
7458 | do : | |
7459 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7460 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7461 | cat >>confdefs.h <<_ACEOF | |
7462 | #define HAVE_LIBCMAN_H 1 | |
93bd259b | 7463 | _ACEOF |
93bd259b | 7464 | |
93bd259b | 7465 | else |
f11781c5 | 7466 | $bailout |
93bd259b AK |
7467 | fi |
7468 | ||
f11781c5 AK |
7469 | done |
7470 | ||
7471 | check_lib_no_libs cman cman_init | |
7472 | if test $NOTFOUND = 0; then | |
7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7474 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7475 | CMAN_LIBS="-lcman" | |
7476 | HAVE_CMAN=yes | |
7477 | fi | |
7478 | else | |
7479 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
7480 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
7481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7482 | $as_echo "yes" >&6; } | |
7483 | HAVE_CMAN=yes | |
93bd259b | 7484 | fi |
f11781c5 AK |
7485 | CHECKCONFDB=yes |
7486 | CHECKDLM=yes | |
93bd259b AK |
7487 | fi |
7488 | ||
f11781c5 AK |
7489 | if test x$BUILDCOROSYNC = xyes || \ |
7490 | test x$BUILDOPENAIS = xyes; then | |
93bd259b | 7491 | |
f11781c5 AK |
7492 | pkg_failed=no |
7493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5 | |
7494 | $as_echo_n "checking for COROSYNC... " >&6; } | |
ad6254c5 | 7495 | |
f11781c5 AK |
7496 | if test -n "$COROSYNC_CFLAGS"; then |
7497 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
7498 | elif test -n "$PKG_CONFIG"; then | |
7499 | if test -n "$PKG_CONFIG" && \ | |
7500 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7501 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
7502 | ac_status=$? | |
7503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7504 | test $ac_status = 0; }; then | |
7505 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
ad6254c5 | 7506 | else |
f11781c5 AK |
7507 | pkg_failed=yes |
7508 | fi | |
7509 | else | |
7510 | pkg_failed=untried | |
7511 | fi | |
7512 | if test -n "$COROSYNC_LIBS"; then | |
7513 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
7514 | elif test -n "$PKG_CONFIG"; then | |
7515 | if test -n "$PKG_CONFIG" && \ | |
7516 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7517 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
ad6254c5 | 7518 | ac_status=$? |
f11781c5 AK |
7519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7520 | test $ac_status = 0; }; then | |
7521 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
ad6254c5 | 7522 | else |
f11781c5 | 7523 | pkg_failed=yes |
ad6254c5 | 7524 | fi |
f11781c5 AK |
7525 | else |
7526 | pkg_failed=untried | |
ad6254c5 | 7527 | fi |
ad6254c5 | 7528 | |
72b2cb61 | 7529 | |
72b2cb61 | 7530 | |
f11781c5 AK |
7531 | if test $pkg_failed = yes; then |
7532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7533 | $as_echo "no" >&6; } | |
19a2c6e0 | 7534 | |
f11781c5 AK |
7535 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7536 | _pkg_short_errors_supported=yes | |
7537 | else | |
7538 | _pkg_short_errors_supported=no | |
ad6254c5 | 7539 | fi |
f11781c5 AK |
7540 | if test $_pkg_short_errors_supported = yes; then |
7541 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
7542 | else | |
7543 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
7544 | fi | |
7545 | # Put the nasty error message in config.log where it belongs | |
7546 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
ad6254c5 | 7547 | |
f11781c5 AK |
7548 | $bailout |
7549 | elif test $pkg_failed = untried; then | |
7550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7551 | $as_echo "no" >&6; } | |
7552 | $bailout | |
7553 | else | |
7554 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
7555 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
7556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7557 | $as_echo "yes" >&6; } | |
7558 | HAVE_COROSYNC=yes | |
7559 | fi | |
7560 | CHECKCONFDB=yes | |
b6d7a484 | 7561 | CHECKCMAP=yes |
ad6254c5 AK |
7562 | fi |
7563 | ||
f11781c5 | 7564 | if test x$BUILDCOROSYNC = xyes; then |
f30875db | 7565 | |
f11781c5 AK |
7566 | pkg_failed=no |
7567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5 | |
7568 | $as_echo_n "checking for QUORUM... " >&6; } | |
7569 | ||
7570 | if test -n "$QUORUM_CFLAGS"; then | |
7571 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
7572 | elif test -n "$PKG_CONFIG"; then | |
7573 | if test -n "$PKG_CONFIG" && \ | |
7574 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7575 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
f30875db | 7576 | ac_status=$? |
f11781c5 AK |
7577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7578 | test $ac_status = 0; }; then | |
7579 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
f30875db | 7580 | else |
f11781c5 | 7581 | pkg_failed=yes |
f30875db | 7582 | fi |
f11781c5 AK |
7583 | else |
7584 | pkg_failed=untried | |
f30875db | 7585 | fi |
f11781c5 AK |
7586 | if test -n "$QUORUM_LIBS"; then |
7587 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
7588 | elif test -n "$PKG_CONFIG"; then | |
7589 | if test -n "$PKG_CONFIG" && \ | |
7590 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7591 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
7592 | ac_status=$? | |
7593 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7594 | test $ac_status = 0; }; then | |
7595 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
f30875db | 7596 | else |
f11781c5 | 7597 | pkg_failed=yes |
f30875db | 7598 | fi |
f11781c5 AK |
7599 | else |
7600 | pkg_failed=untried | |
7601 | fi | |
7602 | ||
f30875db | 7603 | |
f11781c5 AK |
7604 | |
7605 | if test $pkg_failed = yes; then | |
7606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7607 | $as_echo "no" >&6; } | |
7608 | ||
7609 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7610 | _pkg_short_errors_supported=yes | |
7611 | else | |
7612 | _pkg_short_errors_supported=no | |
f30875db | 7613 | fi |
f11781c5 AK |
7614 | if test $_pkg_short_errors_supported = yes; then |
7615 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
7616 | else | |
7617 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
7618 | fi | |
7619 | # Put the nasty error message in config.log where it belongs | |
7620 | echo "$QUORUM_PKG_ERRORS" >&5 | |
f30875db | 7621 | |
f11781c5 AK |
7622 | $bailout |
7623 | elif test $pkg_failed = untried; then | |
7624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7625 | $as_echo "no" >&6; } | |
7626 | $bailout | |
7627 | else | |
7628 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
7629 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
7630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7631 | $as_echo "yes" >&6; } | |
7632 | HAVE_QUORUM=yes | |
7633 | fi | |
7634 | CHECKCPG=yes | |
7635 | CHECKDLM=yes | |
d0191583 JM |
7636 | fi |
7637 | ||
f11781c5 | 7638 | if test x$BUILDOPENAIS = xyes; then |
d0191583 | 7639 | |
f11781c5 AK |
7640 | pkg_failed=no |
7641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5 | |
7642 | $as_echo_n "checking for SALCK... " >&6; } | |
8a2fc586 | 7643 | |
f11781c5 AK |
7644 | if test -n "$SALCK_CFLAGS"; then |
7645 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
7646 | elif test -n "$PKG_CONFIG"; then | |
7647 | if test -n "$PKG_CONFIG" && \ | |
7648 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7649 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
7650 | ac_status=$? | |
7651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7652 | test $ac_status = 0; }; then | |
7653 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
7654 | else | |
7655 | pkg_failed=yes | |
7656 | fi | |
7657 | else | |
7658 | pkg_failed=untried | |
7659 | fi | |
7660 | if test -n "$SALCK_LIBS"; then | |
7661 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
7662 | elif test -n "$PKG_CONFIG"; then | |
7663 | if test -n "$PKG_CONFIG" && \ | |
7664 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7665 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
8a2fc586 | 7666 | ac_status=$? |
f11781c5 AK |
7667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7668 | test $ac_status = 0; }; then | |
7669 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
8a2fc586 | 7670 | else |
f11781c5 | 7671 | pkg_failed=yes |
8a2fc586 | 7672 | fi |
f11781c5 AK |
7673 | else |
7674 | pkg_failed=untried | |
8a2fc586 | 7675 | fi |
d0191583 | 7676 | |
d0191583 | 7677 | |
f8f6ec92 | 7678 | |
f11781c5 AK |
7679 | if test $pkg_failed = yes; then |
7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7681 | $as_echo "no" >&6; } | |
8a2fc586 | 7682 | |
f11781c5 AK |
7683 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7684 | _pkg_short_errors_supported=yes | |
ad6254c5 | 7685 | else |
f11781c5 AK |
7686 | _pkg_short_errors_supported=no |
7687 | fi | |
7688 | if test $_pkg_short_errors_supported = yes; then | |
7689 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
7690 | else | |
7691 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
7692 | fi | |
7693 | # Put the nasty error message in config.log where it belongs | |
7694 | echo "$SALCK_PKG_ERRORS" >&5 | |
ad6254c5 | 7695 | |
f11781c5 AK |
7696 | $bailout |
7697 | elif test $pkg_failed = untried; then | |
7698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7699 | $as_echo "no" >&6; } | |
7700 | $bailout | |
ad6254c5 | 7701 | else |
f11781c5 AK |
7702 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS |
7703 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7705 | $as_echo "yes" >&6; } | |
7706 | HAVE_SALCK=yes | |
ad6254c5 | 7707 | fi |
f11781c5 | 7708 | CHECKCPG=yes |
ad6254c5 | 7709 | fi |
ad6254c5 | 7710 | |
72b2cb61 | 7711 | |
f8f6ec92 | 7712 | |
f11781c5 | 7713 | if test x$CHECKCONFDB = xyes; then |
f8f6ec92 | 7714 | |
f11781c5 AK |
7715 | pkg_failed=no |
7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5 | |
7717 | $as_echo_n "checking for CONFDB... " >&6; } | |
f8f6ec92 | 7718 | |
f11781c5 AK |
7719 | if test -n "$CONFDB_CFLAGS"; then |
7720 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
7721 | elif test -n "$PKG_CONFIG"; then | |
7722 | if test -n "$PKG_CONFIG" && \ | |
7723 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7724 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
f8f6ec92 | 7725 | ac_status=$? |
f11781c5 AK |
7726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7727 | test $ac_status = 0; }; then | |
7728 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
66e941e8 | 7729 | else |
f11781c5 AK |
7730 | pkg_failed=yes |
7731 | fi | |
7732 | else | |
7733 | pkg_failed=untried | |
7734 | fi | |
7735 | if test -n "$CONFDB_LIBS"; then | |
7736 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
7737 | elif test -n "$PKG_CONFIG"; then | |
7738 | if test -n "$PKG_CONFIG" && \ | |
7739 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7740 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
7741 | ac_status=$? | |
7742 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7743 | test $ac_status = 0; }; then | |
7744 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
7745 | else | |
7746 | pkg_failed=yes | |
7747 | fi | |
7748 | else | |
7749 | pkg_failed=untried | |
f8f6ec92 ZK |
7750 | fi |
7751 | ||
f8f6ec92 | 7752 | |
66e941e8 | 7753 | |
f11781c5 AK |
7754 | if test $pkg_failed = yes; then |
7755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7756 | $as_echo "no" >&6; } | |
7757 | ||
7758 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7759 | _pkg_short_errors_supported=yes | |
f8f6ec92 | 7760 | else |
f11781c5 | 7761 | _pkg_short_errors_supported=no |
66e941e8 | 7762 | fi |
f11781c5 AK |
7763 | if test $_pkg_short_errors_supported = yes; then |
7764 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
7765 | else | |
7766 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
7767 | fi | |
7768 | # Put the nasty error message in config.log where it belongs | |
7769 | echo "$CONFDB_PKG_ERRORS" >&5 | |
66e941e8 | 7770 | |
f11781c5 AK |
7771 | HAVE_CONFDB=no |
7772 | elif test $pkg_failed = untried; then | |
7773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7774 | $as_echo "no" >&6; } | |
7775 | HAVE_CONFDB=no | |
7776 | else | |
7777 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
7778 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7780 | $as_echo "yes" >&6; } | |
7781 | HAVE_CONFDB=yes | |
66e941e8 | 7782 | fi |
f11781c5 AK |
7783 | |
7784 | for ac_header in corosync/confdb.h | |
7785 | do : | |
7786 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default" | |
7787 | if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then : | |
f8f6ec92 | 7788 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 7789 | #define HAVE_COROSYNC_CONFDB_H 1 |
f8f6ec92 | 7790 | _ACEOF |
f11781c5 | 7791 | HAVE_CONFDB_H=yes |
66e941e8 | 7792 | else |
f11781c5 | 7793 | HAVE_CONFDB_H=no |
66e941e8 | 7794 | fi |
dd1f2c09 MB |
7795 | |
7796 | done | |
7797 | ||
7798 | ||
f11781c5 AK |
7799 | if test x$HAVE_CONFDB != xyes && \ |
7800 | test x$HAVE_CONFDB_H = xyes; then | |
7801 | check_lib_no_libs confdb confdb_initialize | |
7802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5 | |
7803 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
7804 | CONFDB_LIBS="-lconfdb" | |
7805 | HAVE_CONFDB=yes | |
7806 | fi | |
b6d7a484 AK |
7807 | fi |
7808 | ||
7809 | ||
7810 | if test x$CHECKCMAP = xyes; then | |
7811 | ||
7812 | pkg_failed=no | |
7813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5 | |
7814 | $as_echo_n "checking for CMAP... " >&6; } | |
7815 | ||
7816 | if test -n "$CMAP_CFLAGS"; then | |
7817 | pkg_cv_CMAP_CFLAGS="$CMAP_CFLAGS" | |
7818 | elif test -n "$PKG_CONFIG"; then | |
7819 | if test -n "$PKG_CONFIG" && \ | |
7820 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5 | |
7821 | ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5 | |
7822 | ac_status=$? | |
7823 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7824 | test $ac_status = 0; }; then | |
7825 | pkg_cv_CMAP_CFLAGS=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null` | |
7826 | else | |
7827 | pkg_failed=yes | |
7828 | fi | |
7829 | else | |
7830 | pkg_failed=untried | |
7831 | fi | |
7832 | if test -n "$CMAP_LIBS"; then | |
7833 | pkg_cv_CMAP_LIBS="$CMAP_LIBS" | |
7834 | elif test -n "$PKG_CONFIG"; then | |
7835 | if test -n "$PKG_CONFIG" && \ | |
7836 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5 | |
7837 | ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5 | |
7838 | ac_status=$? | |
7839 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7840 | test $ac_status = 0; }; then | |
7841 | pkg_cv_CMAP_LIBS=`$PKG_CONFIG --libs "libcmap" 2>/dev/null` | |
7842 | else | |
7843 | pkg_failed=yes | |
7844 | fi | |
7845 | else | |
7846 | pkg_failed=untried | |
7847 | fi | |
7848 | ||
7849 | ||
7850 | ||
7851 | if test $pkg_failed = yes; then | |
7852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7853 | $as_echo "no" >&6; } | |
f11781c5 | 7854 | |
b6d7a484 AK |
7855 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7856 | _pkg_short_errors_supported=yes | |
7857 | else | |
7858 | _pkg_short_errors_supported=no | |
7859 | fi | |
7860 | if test $_pkg_short_errors_supported = yes; then | |
7861 | CMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1` | |
7862 | else | |
7863 | CMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmap" 2>&1` | |
7864 | fi | |
7865 | # Put the nasty error message in config.log where it belongs | |
7866 | echo "$CMAP_PKG_ERRORS" >&5 | |
7867 | ||
7868 | HAVE_CMAP=no | |
7869 | elif test $pkg_failed = untried; then | |
7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7871 | $as_echo "no" >&6; } | |
7872 | HAVE_CMAP=no | |
7873 | else | |
7874 | CMAP_CFLAGS=$pkg_cv_CMAP_CFLAGS | |
7875 | CMAP_LIBS=$pkg_cv_CMAP_LIBS | |
7876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7877 | $as_echo "yes" >&6; } | |
7878 | HAVE_CMAP=yes | |
7879 | fi | |
7880 | ||
7881 | for ac_header in corosync/cmap.h | |
7882 | do : | |
7883 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default" | |
7884 | if test "x$ac_cv_header_corosync_cmap_h" = x""yes; then : | |
7885 | cat >>confdefs.h <<_ACEOF | |
7886 | #define HAVE_COROSYNC_CMAP_H 1 | |
7887 | _ACEOF | |
7888 | HAVE_CMAP_H=yes | |
7889 | else | |
7890 | HAVE_CMAP_H=no | |
7891 | fi | |
7892 | ||
7893 | done | |
7894 | ||
7895 | ||
7896 | if test x$HAVE_CMAP != xyes && \ | |
7897 | test x$HAVE_CMAP_H = xyes; then | |
7898 | check_lib_no_libs cmap cmap_initialize | |
7899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5 | |
7900 | $as_echo "no pkg for cmap, using -lcmap" >&6; } | |
7901 | CMAP_LIBS="-lcmap" | |
7902 | HAVE_CMAP=yes | |
7903 | fi | |
7904 | fi | |
7905 | ||
7906 | if test x$BUILDCOROSYNC = xyes; then | |
7907 | if test x$HAVE_CMAP != xyes && \ | |
7908 | test x$HAVE_CONFDB != xyes && \ | |
f11781c5 | 7909 | test x$CLVMD != xall; then |
b6d7a484 | 7910 | as_fn_error $? "bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5 |
f11781c5 | 7911 | fi |
dd1f2c09 | 7912 | fi |
f11781c5 AK |
7913 | |
7914 | if test x$CHECKCPG = xyes; then | |
7915 | ||
7916 | pkg_failed=no | |
7917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
7918 | $as_echo_n "checking for CPG... " >&6; } | |
7919 | ||
7920 | if test -n "$CPG_CFLAGS"; then | |
7921 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
7922 | elif test -n "$PKG_CONFIG"; then | |
7923 | if test -n "$PKG_CONFIG" && \ | |
7924 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
7925 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
7926 | ac_status=$? | |
7927 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7928 | test $ac_status = 0; }; then | |
7929 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
dd1f2c09 | 7930 | else |
f11781c5 AK |
7931 | pkg_failed=yes |
7932 | fi | |
7933 | else | |
7934 | pkg_failed=untried | |
7935 | fi | |
7936 | if test -n "$CPG_LIBS"; then | |
7937 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
7938 | elif test -n "$PKG_CONFIG"; then | |
7939 | if test -n "$PKG_CONFIG" && \ | |
7940 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
7941 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
dd1f2c09 | 7942 | ac_status=$? |
f11781c5 AK |
7943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7944 | test $ac_status = 0; }; then | |
7945 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
dd1f2c09 | 7946 | else |
f11781c5 AK |
7947 | pkg_failed=yes |
7948 | fi | |
7949 | else | |
7950 | pkg_failed=untried | |
7951 | fi | |
7952 | ||
7953 | ||
7954 | ||
7955 | if test $pkg_failed = yes; then | |
7956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7957 | $as_echo "no" >&6; } | |
7958 | ||
7959 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7960 | _pkg_short_errors_supported=yes | |
7961 | else | |
7962 | _pkg_short_errors_supported=no | |
7963 | fi | |
7964 | if test $_pkg_short_errors_supported = yes; then | |
7965 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
7966 | else | |
7967 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
7968 | fi | |
7969 | # Put the nasty error message in config.log where it belongs | |
7970 | echo "$CPG_PKG_ERRORS" >&5 | |
dd1f2c09 | 7971 | |
f11781c5 AK |
7972 | $bailout |
7973 | elif test $pkg_failed = untried; then | |
7974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7975 | $as_echo "no" >&6; } | |
7976 | $bailout | |
7977 | else | |
7978 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
7979 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7981 | $as_echo "yes" >&6; } | |
7982 | HAVE_CPG=yes | |
7983 | fi | |
dd1f2c09 MB |
7984 | fi |
7985 | ||
f11781c5 | 7986 | if test x$CHECKDLM = xyes; then |
dd1f2c09 | 7987 | |
f11781c5 AK |
7988 | pkg_failed=no |
7989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5 | |
7990 | $as_echo_n "checking for DLM... " >&6; } | |
7991 | ||
7992 | if test -n "$DLM_CFLAGS"; then | |
7993 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
7994 | elif test -n "$PKG_CONFIG"; then | |
7995 | if test -n "$PKG_CONFIG" && \ | |
7996 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
7997 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
dd1f2c09 | 7998 | ac_status=$? |
f11781c5 AK |
7999 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8000 | test $ac_status = 0; }; then | |
8001 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
dd1f2c09 | 8002 | else |
f11781c5 AK |
8003 | pkg_failed=yes |
8004 | fi | |
8005 | else | |
8006 | pkg_failed=untried | |
8007 | fi | |
8008 | if test -n "$DLM_LIBS"; then | |
8009 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
8010 | elif test -n "$PKG_CONFIG"; then | |
8011 | if test -n "$PKG_CONFIG" && \ | |
8012 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8013 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
8014 | ac_status=$? | |
8015 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8016 | test $ac_status = 0; }; then | |
8017 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
8018 | else | |
8019 | pkg_failed=yes | |
8020 | fi | |
8021 | else | |
8022 | pkg_failed=untried | |
dd1f2c09 MB |
8023 | fi |
8024 | ||
dd1f2c09 | 8025 | |
dd1f2c09 | 8026 | |
f11781c5 AK |
8027 | if test $pkg_failed = yes; then |
8028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8029 | $as_echo "no" >&6; } | |
8030 | ||
8031 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8032 | _pkg_short_errors_supported=yes | |
dd1f2c09 | 8033 | else |
f11781c5 | 8034 | _pkg_short_errors_supported=no |
dd1f2c09 | 8035 | fi |
f11781c5 AK |
8036 | if test $_pkg_short_errors_supported = yes; then |
8037 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
8038 | else | |
8039 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
8040 | fi | |
8041 | # Put the nasty error message in config.log where it belongs | |
8042 | echo "$DLM_PKG_ERRORS" >&5 | |
dd1f2c09 | 8043 | |
f11781c5 AK |
8044 | NOTFOUND=0 |
8045 | for ac_header in libdlm.h | |
8046 | do : | |
8047 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8048 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
dd1f2c09 | 8049 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 8050 | #define HAVE_LIBDLM_H 1 |
dd1f2c09 MB |
8051 | _ACEOF |
8052 | ||
f11781c5 AK |
8053 | else |
8054 | $bailout | |
dd1f2c09 | 8055 | fi |
f8f6ec92 ZK |
8056 | |
8057 | done | |
8058 | ||
f11781c5 AK |
8059 | check_lib_no_libs dlm dlm_lock -lpthread |
8060 | if test $NOTFOUND = 0; then | |
8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8062 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8063 | DLM_LIBS="-ldlm -lpthread" | |
8064 | HAVE_DLM=yes | |
8065 | fi | |
8066 | elif test $pkg_failed = untried; then | |
8067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8068 | $as_echo "no" >&6; } | |
8069 | NOTFOUND=0 | |
8070 | for ac_header in libdlm.h | |
8071 | do : | |
8072 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8073 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
8074 | cat >>confdefs.h <<_ACEOF | |
8075 | #define HAVE_LIBDLM_H 1 | |
f8f6ec92 ZK |
8076 | _ACEOF |
8077 | ||
f8f6ec92 | 8078 | else |
f11781c5 | 8079 | $bailout |
ad6254c5 AK |
8080 | fi |
8081 | ||
f11781c5 | 8082 | done |
8b1a3214 | 8083 | |
f11781c5 AK |
8084 | check_lib_no_libs dlm dlm_lock -lpthread |
8085 | if test $NOTFOUND = 0; then | |
8086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8087 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8088 | DLM_LIBS="-ldlm -lpthread" | |
8089 | HAVE_DLM=yes | |
8090 | fi | |
8b1a3214 | 8091 | else |
f11781c5 AK |
8092 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS |
8093 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
8094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8095 | $as_echo "yes" >&6; } | |
8096 | HAVE_DLM=yes | |
8b1a3214 | 8097 | fi |
8b1a3214 AK |
8098 | fi |
8099 | ||
f11781c5 AK |
8100 | if test x$CLVMD = xall; then |
8101 | CLVMD=none | |
8102 | CLVMD_CMANAGERS="" | |
8103 | CLVMD_NEEDS_QDISKD=no | |
f11781c5 AK |
8104 | if test x$HAVE_CMAN = xyes && \ |
8105 | test x$HAVE_DLM = xyes; then | |
8106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5 | |
8107 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
8108 | CLVMD="$CLVMD,cman" | |
8109 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
8110 | CLVMD_NEEDS_QDISKD=yes | |
8111 | fi | |
8112 | if test x$HAVE_COROSYNC = xyes && \ | |
8113 | test x$HAVE_QUORUM = xyes && \ | |
8114 | test x$HAVE_CPG = xyes && \ | |
b6d7a484 AK |
8115 | test x$HAVE_DLM = xyes; then |
8116 | if test x$HAVE_CONFDB = xyes || test x$HAVE_CMAP = xyes; then | |
f11781c5 AK |
8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5 |
8118 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
8119 | CLVMD="$CLVMD,corosync" | |
8120 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
b6d7a484 | 8121 | fi |
f11781c5 AK |
8122 | fi |
8123 | if test x$HAVE_COROSYNC = xyes && \ | |
8124 | test x$HAVE_CPG = xyes && \ | |
8125 | test x$HAVE_SALCK = xyes; then | |
8126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5 | |
8127 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
8128 | CLVMD="$CLVMD,openais" | |
8129 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
8130 | fi | |
8131 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
8132 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
8133 | fi | |
8134 | if test x$CLVMD = xnone; then | |
8135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5 | |
8136 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
8b1a3214 AK |
8137 | fi |
8138 | fi | |
8139 | ||
75fad6ea MB |
8140 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then |
8141 | if test x$HAVE_CMAP = xyes; then | |
8142 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm" | |
8143 | fi | |
8144 | fi | |
8145 | ||
ad6254c5 | 8146 | ################################################################################ |
f11781c5 | 8147 | if test "x$CLVMD" != xnone; then |
ad6254c5 | 8148 | |
f11781c5 AK |
8149 | # Check whether --with-clvmd-pidfile was given. |
8150 | if test "${with_clvmd_pidfile+set}" = set; then : | |
8151 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
ad6254c5 | 8152 | else |
f11781c5 | 8153 | CLVMD_PIDFILE="/var/run/clvmd.pid" |
ad6254c5 | 8154 | fi |
7a197a62 | 8155 | |
ad6254c5 | 8156 | |
f11781c5 AK |
8157 | cat >>confdefs.h <<_ACEOF |
8158 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
ad6254c5 | 8159 | _ACEOF |
ad6254c5 | 8160 | |
ad6254c5 | 8161 | fi |
7a197a62 | 8162 | |
f11781c5 AK |
8163 | ################################################################################ |
8164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5 | |
8165 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
8166 | # Check whether --enable-cmirrord was given. | |
8167 | if test "${enable_cmirrord+set}" = set; then : | |
8168 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
8169 | else | |
8170 | CMIRRORD=no | |
8171 | fi | |
8172 | ||
8173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5 | |
8174 | $as_echo "$CMIRRORD" >&6; } | |
ad6254c5 | 8175 | |
f11781c5 | 8176 | BUILD_CMIRRORD=$CMIRRORD |
7a197a62 | 8177 | |
f11781c5 AK |
8178 | ################################################################################ |
8179 | if test "x$BUILD_CMIRRORD" = xyes; then | |
8180 | ||
8181 | # Check whether --with-cmirrord-pidfile was given. | |
8182 | if test "${with_cmirrord_pidfile+set}" = set; then : | |
8183 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval | |
ad6254c5 | 8184 | else |
f11781c5 | 8185 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
ad6254c5 | 8186 | fi |
ad6254c5 | 8187 | |
72b2cb61 | 8188 | |
f11781c5 AK |
8189 | cat >>confdefs.h <<_ACEOF |
8190 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
72b2cb61 AK |
8191 | _ACEOF |
8192 | ||
ad6254c5 AK |
8193 | fi |
8194 | ||
f11781c5 AK |
8195 | ################################################################################ |
8196 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
8197 | if test x$PKGCONFIG_INIT != x1; then | |
8198 | pkg_config_init | |
8199 | fi | |
ad6254c5 | 8200 | |
62e38da1 JEB |
8201 | |
8202 | $as_echo "#define CMIRROR_HAS_CHECKPOINT 1" >>confdefs.h | |
8203 | ||
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 | ||
62e38da1 JEB |
8261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5 |
8262 | $as_echo "no libSaCkpt, compiling without it" >&6; } | |
f11781c5 | 8263 | |
62e38da1 | 8264 | $as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h |
f11781c5 AK |
8265 | |
8266 | elif test $pkg_failed = untried; then | |
8267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8268 | $as_echo "no" >&6; } | |
62e38da1 JEB |
8269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5 |
8270 | $as_echo "no libSaCkpt, compiling without it" >&6; } | |
f11781c5 | 8271 | |
62e38da1 | 8272 | $as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h |
f11781c5 | 8273 | |
539f4a77 | 8274 | else |
f11781c5 AK |
8275 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS |
8276 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
8277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8278 | $as_echo "yes" >&6; } | |
62e38da1 | 8279 | HAVE_SACKPT=yes |
539f4a77 | 8280 | fi |
62e38da1 | 8281 | |
f11781c5 | 8282 | if test x$HAVE_CPG != xyes; then |
539f4a77 | 8283 | |
f11781c5 AK |
8284 | pkg_failed=no |
8285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
8286 | $as_echo_n "checking for CPG... " >&6; } | |
ad6254c5 | 8287 | |
f11781c5 AK |
8288 | if test -n "$CPG_CFLAGS"; then |
8289 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
8290 | elif test -n "$PKG_CONFIG"; then | |
8291 | if test -n "$PKG_CONFIG" && \ | |
8292 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8293 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
ad6254c5 | 8294 | ac_status=$? |
f11781c5 AK |
8295 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8296 | test $ac_status = 0; }; then | |
8297 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
ad6254c5 | 8298 | else |
f11781c5 AK |
8299 | pkg_failed=yes |
8300 | fi | |
8301 | else | |
8302 | pkg_failed=untried | |
8303 | fi | |
8304 | if test -n "$CPG_LIBS"; then | |
8305 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8306 | elif test -n "$PKG_CONFIG"; then | |
8307 | if test -n "$PKG_CONFIG" && \ | |
8308 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8309 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
8310 | ac_status=$? | |
8311 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8312 | test $ac_status = 0; }; then | |
8313 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
8314 | else | |
8315 | pkg_failed=yes | |
8316 | fi | |
8317 | else | |
8318 | pkg_failed=untried | |
8319 | fi | |
8320 | ||
8321 | ||
8322 | ||
8323 | if test $pkg_failed = yes; then | |
8324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8325 | $as_echo "no" >&6; } | |
ad6254c5 | 8326 | |
f11781c5 AK |
8327 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
8328 | _pkg_short_errors_supported=yes | |
8329 | else | |
8330 | _pkg_short_errors_supported=no | |
ad6254c5 | 8331 | fi |
f11781c5 AK |
8332 | if test $_pkg_short_errors_supported = yes; then |
8333 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8334 | else | |
8335 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8336 | fi | |
8337 | # Put the nasty error message in config.log where it belongs | |
8338 | echo "$CPG_PKG_ERRORS" >&5 | |
8339 | ||
8340 | as_fn_error $? "Package requirements (libcpg) were not met: | |
8341 | ||
8342 | $CPG_PKG_ERRORS | |
8343 | ||
8344 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8345 | installed software in a non-standard prefix. | |
8346 | ||
8347 | Alternatively, you may set the environment variables CPG_CFLAGS | |
8348 | and CPG_LIBS to avoid the need to call pkg-config. | |
8349 | See the pkg-config man page for more details." "$LINENO" 5 | |
7a197a62 | 8350 | |
f11781c5 AK |
8351 | elif test $pkg_failed = untried; then |
8352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8353 | $as_echo "no" >&6; } | |
8354 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8355 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8356 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8357 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8358 | path to pkg-config. | |
539f4a77 | 8359 | |
f11781c5 AK |
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. | |
539f4a77 | 8363 | |
f11781c5 AK |
8364 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
8365 | See \`config.log' for more details" "$LINENO" 5; } | |
bc1024f8 | 8366 | |
539f4a77 | 8367 | else |
f11781c5 AK |
8368 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS |
8369 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8371 | $as_echo "yes" >&6; } | |
bc1024f8 | 8372 | |
f11781c5 AK |
8373 | fi |
8374 | fi | |
8375 | fi | |
8376 | ||
8377 | ################################################################################ | |
8378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 | |
8379 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
8380 | # Check whether --enable-debug was given. | |
8381 | if test "${enable_debug+set}" = set; then : | |
8382 | enableval=$enable_debug; DEBUG=$enableval | |
ad6254c5 | 8383 | else |
f11781c5 AK |
8384 | DEBUG=no |
8385 | fi | |
8386 | ||
8387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5 | |
8388 | $as_echo "$DEBUG" >&6; } | |
539f4a77 | 8389 | |
f11781c5 AK |
8390 | if test x$DEBUG = xyes; then |
8391 | COPTIMISE_FLAG= | |
8392 | else | |
8393 | CSCOPE_CMD= | |
06e459df JM |
8394 | fi |
8395 | ||
f11781c5 AK |
8396 | ################################################################################ |
8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5 | |
8398 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
8399 | ||
8400 | # Check whether --with-optimisation was given. | |
8401 | if test "${with_optimisation+set}" = set; then : | |
8402 | withval=$with_optimisation; COPTIMISE_FLAG=$withval | |
539f4a77 | 8403 | fi |
539f4a77 | 8404 | |
f11781c5 AK |
8405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5 |
8406 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
539f4a77 | 8407 | |
f11781c5 AK |
8408 | ################################################################################ |
8409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5 | |
8410 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
8411 | # Check whether --enable-profiling was given. | |
8412 | if test "${enable_profiling+set}" = set; then : | |
8413 | enableval=$enable_profiling; PROFILING=$enableval | |
8414 | else | |
8415 | PROFILING=no | |
539f4a77 ZK |
8416 | fi |
8417 | ||
f11781c5 AK |
8418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5 |
8419 | $as_echo "$PROFILING" >&6; } | |
8420 | ||
8421 | if test "x$PROFILING" = xyes; then | |
8422 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8423 | # Extract the first word of "lcov", so it can be a program name with args. | |
8424 | set dummy lcov; ac_word=$2 | |
8425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8426 | $as_echo_n "checking for $ac_word... " >&6; } | |
8427 | if test "${ac_cv_path_LCOV+set}" = set; then : | |
8428 | $as_echo_n "(cached) " >&6 | |
539f4a77 | 8429 | else |
f11781c5 AK |
8430 | case $LCOV in |
8431 | [\\/]* | ?:[\\/]*) | |
8432 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8433 | ;; | |
8434 | *) | |
8435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8436 | for as_dir in $PATH | |
8437 | do | |
8438 | IFS=$as_save_IFS | |
8439 | test -z "$as_dir" && as_dir=. | |
8440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8442 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
8443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8444 | break 2 | |
8445 | fi | |
8446 | done | |
8447 | done | |
8448 | IFS=$as_save_IFS | |
539f4a77 | 8449 | |
f11781c5 AK |
8450 | ;; |
8451 | esac | |
8452 | fi | |
8453 | LCOV=$ac_cv_path_LCOV | |
8454 | if test -n "$LCOV"; then | |
8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 | |
8456 | $as_echo "$LCOV" >&6; } | |
8457 | else | |
8458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8459 | $as_echo "no" >&6; } | |
539f4a77 ZK |
8460 | fi |
8461 | ||
bc1024f8 | 8462 | |
f11781c5 AK |
8463 | # Extract the first word of "genhtml", so it can be a program name with args. |
8464 | set dummy genhtml; ac_word=$2 | |
8465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8466 | $as_echo_n "checking for $ac_word... " >&6; } | |
8467 | if test "${ac_cv_path_GENHTML+set}" = set; then : | |
ec6a6fbe | 8468 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8469 | else |
f11781c5 AK |
8470 | case $GENHTML in |
8471 | [\\/]* | ?:[\\/]*) | |
8472 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8473 | ;; | |
8474 | *) | |
8475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8476 | for as_dir in $PATH | |
8477 | do | |
8478 | IFS=$as_save_IFS | |
8479 | test -z "$as_dir" && as_dir=. | |
8480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8482 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
8483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8484 | break 2 | |
8485 | fi | |
8486 | done | |
8487 | done | |
8488 | IFS=$as_save_IFS | |
8a2fc586 | 8489 | |
f11781c5 AK |
8490 | ;; |
8491 | esac | |
8492 | fi | |
8493 | GENHTML=$ac_cv_path_GENHTML | |
8494 | if test -n "$GENHTML"; then | |
8495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 | |
8496 | $as_echo "$GENHTML" >&6; } | |
8497 | else | |
8498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8499 | $as_echo "no" >&6; } | |
8500 | fi | |
8a2fc586 | 8501 | |
8a2fc586 | 8502 | |
f11781c5 AK |
8503 | if test -z "$LCOV" -o -z "$GENHTML"; then |
8504 | as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5 | |
8505 | fi | |
8506 | # Extract the first word of "genpng", so it can be a program name with args. | |
8507 | set dummy genpng; ac_word=$2 | |
8508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8509 | $as_echo_n "checking for $ac_word... " >&6; } | |
8510 | if test "${ac_cv_path_GENPNG+set}" = set; then : | |
8511 | $as_echo_n "(cached) " >&6 | |
8512 | else | |
8513 | case $GENPNG in | |
8514 | [\\/]* | ?:[\\/]*) | |
8515 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
8516 | ;; | |
8517 | *) | |
8518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8519 | for as_dir in $PATH | |
8520 | do | |
8521 | IFS=$as_save_IFS | |
8522 | test -z "$as_dir" && as_dir=. | |
8523 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8524 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8525 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
8526 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8527 | break 2 | |
8528 | fi | |
8529 | done | |
8530 | done | |
8531 | IFS=$as_save_IFS | |
ad6254c5 | 8532 | |
f11781c5 | 8533 | ;; |
7a197a62 | 8534 | esac |
f11781c5 AK |
8535 | fi |
8536 | GENPNG=$ac_cv_path_GENPNG | |
8537 | if test -n "$GENPNG"; then | |
8538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5 | |
8539 | $as_echo "$GENPNG" >&6; } | |
ad6254c5 | 8540 | else |
f11781c5 AK |
8541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8542 | $as_echo "no" >&6; } | |
8543 | fi | |
8544 | ||
8545 | ||
8546 | if test -n "$GENPNG"; then | |
8547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5 | |
8548 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
8549 | if $GENPNG --help > /dev/null 2>&1 ; then | |
8550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
8551 | $as_echo "ok" >&6; } | |
8552 | GENHTML="$GENHTML --frames" | |
8553 | else | |
8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 | |
8555 | $as_echo "not supported" >&6; } | |
8556 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5 | |
8557 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
8558 | GENPNG= | |
8559 | fi | |
8560 | fi | |
8561 | fi | |
ad6254c5 | 8562 | |
f11781c5 AK |
8563 | ################################################################################ |
8564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5 | |
8565 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
8566 | # Check whether --enable-testing was given. | |
8567 | if test "${enable_testing+set}" = set; then : | |
8568 | enableval=$enable_testing; TESTING=$enableval | |
8569 | else | |
8570 | TESTING=no | |
ad6254c5 | 8571 | fi |
7a197a62 | 8572 | |
f11781c5 AK |
8573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5 |
8574 | $as_echo "$TESTING" >&6; } | |
72b2cb61 | 8575 | |
f11781c5 | 8576 | if test "$TESTING" = yes; then |
426fc742 PR |
8577 | |
8578 | pkg_failed=no | |
8579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5 | |
8580 | $as_echo_n "checking for CUNIT... " >&6; } | |
8581 | ||
8582 | if test -n "$CUNIT_CFLAGS"; then | |
8583 | pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS" | |
8584 | elif test -n "$PKG_CONFIG"; then | |
8585 | if test -n "$PKG_CONFIG" && \ | |
8586 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5 | |
8587 | ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5 | |
8588 | ac_status=$? | |
8589 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8590 | test $ac_status = 0; }; then | |
8591 | pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null` | |
8592 | else | |
8593 | pkg_failed=yes | |
8594 | fi | |
8595 | else | |
8596 | pkg_failed=untried | |
8597 | fi | |
8598 | if test -n "$CUNIT_LIBS"; then | |
8599 | pkg_cv_CUNIT_LIBS="$CUNIT_LIBS" | |
8600 | elif test -n "$PKG_CONFIG"; then | |
8601 | if test -n "$PKG_CONFIG" && \ | |
8602 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5 | |
8603 | ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5 | |
8604 | ac_status=$? | |
8605 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8606 | test $ac_status = 0; }; then | |
8607 | pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null` | |
ad6254c5 | 8608 | else |
426fc742 PR |
8609 | pkg_failed=yes |
8610 | fi | |
8611 | else | |
8612 | pkg_failed=untried | |
ad6254c5 AK |
8613 | fi |
8614 | ||
7a197a62 | 8615 | |
426fc742 PR |
8616 | |
8617 | if test $pkg_failed = yes; then | |
8618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8619 | $as_echo "no" >&6; } | |
8620 | ||
8621 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8622 | _pkg_short_errors_supported=yes | |
8623 | else | |
8624 | _pkg_short_errors_supported=no | |
8625 | fi | |
8626 | if test $_pkg_short_errors_supported = yes; then | |
8627 | CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1` | |
8628 | else | |
8629 | CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1` | |
8630 | fi | |
8631 | # Put the nasty error message in config.log where it belongs | |
8632 | echo "$CUNIT_PKG_ERRORS" >&5 | |
8633 | ||
8634 | as_fn_error $? "Package requirements (cunit >= 2.0) were not met: | |
8635 | ||
8636 | $CUNIT_PKG_ERRORS | |
8637 | ||
8638 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8639 | installed software in a non-standard prefix. | |
8640 | ||
8641 | Alternatively, you may set the environment variables CUNIT_CFLAGS | |
8642 | and CUNIT_LIBS to avoid the need to call pkg-config. | |
8643 | See the pkg-config man page for more details." "$LINENO" 5 | |
8644 | ||
8645 | elif test $pkg_failed = untried; then | |
8646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8647 | $as_echo "no" >&6; } | |
8648 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8649 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8650 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8651 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8652 | path to pkg-config. | |
8653 | ||
8654 | Alternatively, you may set the environment variables CUNIT_CFLAGS | |
8655 | and CUNIT_LIBS to avoid the need to call pkg-config. | |
8656 | See the pkg-config man page for more details. | |
8657 | ||
8658 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8659 | See \`config.log' for more details" "$LINENO" 5; } | |
8660 | ||
8661 | else | |
8662 | CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS | |
8663 | CUNIT_LIBS=$pkg_cv_CUNIT_LIBS | |
8664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8665 | $as_echo "yes" >&6; } | |
8666 | ||
8667 | fi | |
f11781c5 | 8668 | fi |
ad6254c5 | 8669 | |
f11781c5 AK |
8670 | ################################################################################ |
8671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5 | |
8672 | $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; } | |
8673 | # Check whether --enable-valgrind_pool was given. | |
8674 | if test "${enable_valgrind_pool+set}" = set; then : | |
8675 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval | |
8676 | else | |
8677 | VALGRIND_POOL=no | |
8678 | fi | |
8679 | ||
8680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5 | |
8681 | $as_echo "$VALGRIND_POOL" >&6; } | |
8682 | ||
8683 | if test "$VALGRIND_POOL" = yes; then | |
8684 | for ac_header in valgrind/memcheck.h | |
8685 | do : | |
8686 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" | |
8687 | if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then : | |
8688 | cat >>confdefs.h <<_ACEOF | |
8689 | #define HAVE_VALGRIND_MEMCHECK_H 1 | |
8690 | _ACEOF | |
ad6254c5 | 8691 | |
ad6254c5 | 8692 | else |
f11781c5 | 8693 | as_fn_error $? "bailing out" "$LINENO" 5 |
7a197a62 AK |
8694 | fi |
8695 | ||
f11781c5 AK |
8696 | done |
8697 | ||
8698 | ||
8699 | $as_echo "#define VALGRIND_POOL 1" >>confdefs.h | |
8700 | ||
ad6254c5 AK |
8701 | fi |
8702 | ||
8703 | ################################################################################ | |
f11781c5 AK |
8704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5 |
8705 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
8706 | # Check whether --enable-devmapper was given. | |
8707 | if test "${enable_devmapper+set}" = set; then : | |
8708 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
7a197a62 AK |
8709 | fi |
8710 | ||
f11781c5 AK |
8711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5 |
8712 | $as_echo "$DEVMAPPER" >&6; } | |
ad6254c5 | 8713 | |
f11781c5 | 8714 | if test x$DEVMAPPER = xyes; then |
ad6254c5 | 8715 | |
f11781c5 AK |
8716 | $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h |
8717 | ||
8718 | fi | |
8719 | ||
cdd50823 ZK |
8720 | ################################################################################ |
8721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5 | |
8722 | $as_echo_n "checking whether to build LVMetaD... " >&6; } | |
8723 | # Check whether --enable-lvmetad was given. | |
8724 | if test "${enable_lvmetad+set}" = set; then : | |
8725 | enableval=$enable_lvmetad; LVMETAD=$enableval | |
8726 | fi | |
8727 | ||
8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5 | |
8729 | $as_echo "$LVMETAD" >&6; } | |
8730 | ||
8731 | BUILD_LVMETAD=$LVMETAD | |
8732 | ||
7126d8c2 AK |
8733 | if test x$BUILD_LVMETAD = xyes; then |
8734 | ||
8735 | $as_echo "#define LVMETAD_SUPPORT 1" >>confdefs.h | |
8736 | ||
8737 | fi | |
8738 | ||
f11781c5 AK |
8739 | ################################################################################ |
8740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5 | |
8741 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
8742 | # Check whether --enable-udev_sync was given. | |
8743 | if test "${enable_udev_sync+set}" = set; then : | |
8744 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
ad6254c5 | 8745 | else |
f11781c5 | 8746 | UDEV_SYNC=no |
7a197a62 | 8747 | fi |
ad6254c5 | 8748 | |
f11781c5 AK |
8749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5 |
8750 | $as_echo "$UDEV_SYNC" >&6; } | |
33f732c5 | 8751 | |
f11781c5 | 8752 | if test x$UDEV_SYNC = xyes; then |
86ba564a AK |
8753 | if test x$PKGCONFIG_INIT != x1; then |
8754 | pkg_config_init | |
8755 | fi | |
7a197a62 | 8756 | |
d93275eb PR |
8757 | pkg_failed=no |
8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 | |
8759 | $as_echo_n "checking for UDEV... " >&6; } | |
8760 | ||
8761 | if test -n "$UDEV_CFLAGS"; then | |
8762 | pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" | |
8763 | elif test -n "$PKG_CONFIG"; then | |
8764 | if test -n "$PKG_CONFIG" && \ | |
8765 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8766 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8767 | ac_status=$? | |
8768 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8769 | test $ac_status = 0; }; then | |
8770 | pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null` | |
68f2de6d | 8771 | else |
d93275eb | 8772 | pkg_failed=yes |
f11781c5 | 8773 | fi |
d93275eb PR |
8774 | else |
8775 | pkg_failed=untried | |
f11781c5 | 8776 | fi |
d93275eb PR |
8777 | if test -n "$UDEV_LIBS"; then |
8778 | pkg_cv_UDEV_LIBS="$UDEV_LIBS" | |
8779 | elif test -n "$PKG_CONFIG"; then | |
8780 | if test -n "$PKG_CONFIG" && \ | |
8781 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8782 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8783 | ac_status=$? | |
8784 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8785 | test $ac_status = 0; }; then | |
8786 | pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null` | |
f11781c5 | 8787 | else |
d93275eb | 8788 | pkg_failed=yes |
68f2de6d | 8789 | fi |
d93275eb PR |
8790 | else |
8791 | pkg_failed=untried | |
8792 | fi | |
8793 | ||
8794 | ||
8795 | ||
8796 | if test $pkg_failed = yes; then | |
8797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8798 | $as_echo "no" >&6; } | |
8799 | ||
8800 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8801 | _pkg_short_errors_supported=yes | |
8802 | else | |
8803 | _pkg_short_errors_supported=no | |
8804 | fi | |
8805 | if test $_pkg_short_errors_supported = yes; then | |
8806 | UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1` | |
8807 | else | |
8808 | UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1` | |
8809 | fi | |
8810 | # Put the nasty error message in config.log where it belongs | |
8811 | echo "$UDEV_PKG_ERRORS" >&5 | |
8812 | ||
8813 | as_fn_error $? "Package requirements (libudev >= 143) were not met: | |
8814 | ||
8815 | $UDEV_PKG_ERRORS | |
8816 | ||
8817 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8818 | installed software in a non-standard prefix. | |
8819 | ||
8820 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8821 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8822 | See the pkg-config man page for more details." "$LINENO" 5 | |
68f2de6d | 8823 | |
d93275eb PR |
8824 | elif test $pkg_failed = untried; then |
8825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8826 | $as_echo "no" >&6; } | |
8827 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8828 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8829 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8830 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8831 | path to pkg-config. | |
8832 | ||
8833 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8834 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8835 | See the pkg-config man page for more details. | |
8836 | ||
8837 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8838 | See \`config.log' for more details" "$LINENO" 5; } | |
8839 | ||
8840 | else | |
8841 | UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS | |
8842 | UDEV_LIBS=$pkg_cv_UDEV_LIBS | |
8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8844 | $as_echo "yes" >&6; } | |
8845 | UDEV_PC="libudev" | |
8846 | fi | |
68f2de6d | 8847 | |
f11781c5 | 8848 | $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h |
68f2de6d | 8849 | |
f11781c5 AK |
8850 | fi |
8851 | ||
8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
8853 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
8854 | # Check whether --enable-udev_rules was given. | |
8855 | if test "${enable_udev_rules+set}" = set; then : | |
8856 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
68f2de6d | 8857 | else |
f11781c5 | 8858 | UDEV_RULES=$UDEV_SYNC |
68f2de6d AK |
8859 | fi |
8860 | ||
f11781c5 AK |
8861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5 |
8862 | $as_echo "$UDEV_RULES" >&6; } | |
68f2de6d | 8863 | |
b559a1e6 PR |
8864 | if test x$UDEV_RULES = xyes; then |
8865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether udev supports builtin blkid" >&5 | |
8866 | $as_echo_n "checking whether udev supports builtin blkid... " >&6; } | |
8867 | udev_version=$(udevadm info --version 2>/dev/null) | |
8868 | if test -n "$udev_version" && test "$udev_version" -ge 176; then | |
8869 | UDEV_HAS_BUILTIN_BLKID=yes | |
8870 | else | |
8871 | UDEV_HAS_BUILTIN_BLKID=no | |
8872 | fi | |
8873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5 | |
8874 | $as_echo "$UDEV_HAS_BUILTIN_BLKID" >&6; } | |
8875 | fi | |
8876 | ||
a5f46f6a | 8877 | ################################################################################ |
f11781c5 AK |
8878 | # Check whether --enable-compat was given. |
8879 | if test "${enable_compat+set}" = set; then : | |
8880 | enableval=$enable_compat; DM_COMPAT=$enableval | |
8881 | else | |
8882 | DM_COMPAT=no | |
8883 | fi | |
a5f46f6a | 8884 | |
f11781c5 | 8885 | |
2061c0ec AK |
8886 | if test x$DM_COMPAT = xyes; then |
8887 | as_fn_error $? "--enable-compat is not currently supported. | |
8888 | Since device-mapper version 1.02.66, only one version (4) of the device-mapper | |
8889 | ioctl protocol is supported. | |
8890 | " "$LINENO" 5 | |
8891 | fi | |
8892 | ||
f11781c5 AK |
8893 | ################################################################################ |
8894 | # Check whether --enable-units-compat was given. | |
8895 | if test "${enable_units_compat+set}" = set; then : | |
8896 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
a5f46f6a | 8897 | else |
f11781c5 | 8898 | UNITS_COMPAT=no |
a5f46f6a AK |
8899 | fi |
8900 | ||
8901 | ||
f11781c5 | 8902 | if test x$UNITS_COMPAT = xyes; then |
78ce7acc | 8903 | |
f11781c5 AK |
8904 | $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h |
8905 | ||
8906 | fi | |
8907 | ||
8908 | ################################################################################ | |
8909 | # Check whether --enable-ioctl was given. | |
8910 | if test "${enable_ioctl+set}" = set; then : | |
8911 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
78ce7acc AK |
8912 | fi |
8913 | ||
a5f46f6a | 8914 | |
ad6254c5 | 8915 | ################################################################################ |
f11781c5 AK |
8916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5 |
8917 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
8918 | # Check whether --enable-o_direct was given. | |
8919 | if test "${enable_o_direct+set}" = set; then : | |
8920 | enableval=$enable_o_direct; ODIRECT=$enableval | |
8921 | fi | |
ad6254c5 | 8922 | |
f11781c5 AK |
8923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5 |
8924 | $as_echo "$ODIRECT" >&6; } | |
8925 | ||
8926 | if test x$ODIRECT = xyes; then | |
8927 | ||
8928 | $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h | |
ad6254c5 | 8929 | |
ad6254c5 | 8930 | fi |
ad6254c5 | 8931 | |
f11781c5 AK |
8932 | ################################################################################ |
8933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5 | |
8934 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
8935 | # Check whether --enable-applib was given. | |
8936 | if test "${enable_applib+set}" = set; then : | |
8937 | enableval=$enable_applib; APPLIB=$enableval | |
8938 | else | |
8939 | APPLIB=no | |
ad6254c5 | 8940 | fi |
7a197a62 | 8941 | |
f11781c5 AK |
8942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5 |
8943 | $as_echo "$APPLIB" >&6; } | |
ad6254c5 | 8944 | |
f11781c5 AK |
8945 | test x$APPLIB = xyes \ |
8946 | && LVM2APP_LIB=-llvm2app \ | |
8947 | || LVM2APP_LIB= | |
ad6254c5 | 8948 | |
f11781c5 AK |
8949 | ################################################################################ |
8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5 | |
8951 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
8952 | # Check whether --enable-cmdlib was given. | |
8953 | if test "${enable_cmdlib+set}" = set; then : | |
8954 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
8955 | else | |
8956 | CMDLIB=no | |
ad6254c5 | 8957 | fi |
7a197a62 | 8958 | |
f11781c5 AK |
8959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5 |
8960 | $as_echo "$CMDLIB" >&6; } | |
7a197a62 | 8961 | |
f11781c5 AK |
8962 | test x$CMDLIB = xyes \ |
8963 | && LVM2CMD_LIB=-llvm2cmd \ | |
8964 | || LVM2CMD_LIB= | |
8965 | ||
8966 | ################################################################################ | |
8967 | # Check whether --enable-pkgconfig was given. | |
8968 | if test "${enable_pkgconfig+set}" = set; then : | |
8969 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
ad6254c5 | 8970 | else |
f11781c5 | 8971 | PKGCONFIG=no |
ad6254c5 | 8972 | fi |
ad6254c5 | 8973 | |
ad6254c5 | 8974 | |
f11781c5 AK |
8975 | ################################################################################ |
8976 | # Check whether --enable-write_install was given. | |
8977 | if test "${enable_write_install+set}" = set; then : | |
8978 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
ad6254c5 | 8979 | else |
f11781c5 | 8980 | WRITE_INSTALL=no |
ad6254c5 AK |
8981 | fi |
8982 | ||
ad6254c5 | 8983 | |
f11781c5 AK |
8984 | ################################################################################ |
8985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5 | |
8986 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
8987 | # Check whether --enable-fsadm was given. | |
8988 | if test "${enable_fsadm+set}" = set; then : | |
8989 | enableval=$enable_fsadm; FSADM=$enableval | |
ad6254c5 AK |
8990 | fi |
8991 | ||
f11781c5 AK |
8992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5 |
8993 | $as_echo "$FSADM" >&6; } | |
ad6254c5 | 8994 | |
f11781c5 AK |
8995 | ################################################################################ |
8996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5 | |
8997 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
8998 | # Check whether --enable-dmeventd was given. | |
8999 | if test "${enable_dmeventd+set}" = set; then : | |
9000 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
9001 | fi | |
ad6254c5 | 9002 | |
f11781c5 AK |
9003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5 |
9004 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 9005 | |
f11781c5 | 9006 | BUILD_DMEVENTD=$DMEVENTD |
ad6254c5 | 9007 | |
f11781c5 AK |
9008 | if test x$DMEVENTD = xyes; then |
9009 | if test x$MIRRORS != xinternal; then | |
9010 | as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal | |
9011 | " "$LINENO" 5 | |
9012 | fi | |
9013 | if test x$CMDLIB = xno; then | |
9014 | as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well | |
9015 | " "$LINENO" 5 | |
9016 | fi | |
9017 | fi | |
ad6254c5 | 9018 | |
f11781c5 | 9019 | if test x$DMEVENTD = xyes; then |
ad6254c5 | 9020 | |
f11781c5 | 9021 | $as_echo "#define DMEVENTD 1" >>confdefs.h |
ad6254c5 | 9022 | |
f11781c5 | 9023 | fi |
ad6254c5 | 9024 | |
f11781c5 | 9025 | ################################################################################ |
ad6254c5 | 9026 | |
f11781c5 AK |
9027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5 |
9028 | $as_echo_n "checking for getline in -lc... " >&6; } | |
9029 | if test "${ac_cv_lib_c_getline+set}" = set; then : | |
ec6a6fbe | 9030 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9031 | else |
f11781c5 AK |
9032 | ac_check_lib_save_LIBS=$LIBS |
9033 | LIBS="-lc $LIBS" | |
9034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9035 | /* end confdefs.h. */ |
f11781c5 AK |
9036 | |
9037 | /* Override any GCC internal prototype to avoid an error. | |
9038 | Use char because int might match the return type of a GCC | |
9039 | builtin and then its argument prototype would still apply. */ | |
9040 | #ifdef __cplusplus | |
9041 | extern "C" | |
9042 | #endif | |
9043 | char getline (); | |
9044 | int | |
9045 | main () | |
9046 | { | |
9047 | return getline (); | |
9048 | ; | |
9049 | return 0; | |
9050 | } | |
ad6254c5 | 9051 | _ACEOF |
f11781c5 AK |
9052 | if ac_fn_c_try_link "$LINENO"; then : |
9053 | ac_cv_lib_c_getline=yes | |
ad6254c5 | 9054 | else |
f11781c5 AK |
9055 | ac_cv_lib_c_getline=no |
9056 | fi | |
9057 | rm -f core conftest.err conftest.$ac_objext \ | |
9058 | conftest$ac_exeext conftest.$ac_ext | |
9059 | LIBS=$ac_check_lib_save_LIBS | |
9060 | fi | |
9061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5 | |
9062 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
9063 | if test "x$ac_cv_lib_c_getline" = x""yes; then : | |
9064 | ||
9065 | $as_echo "#define HAVE_GETLINE 1" >>confdefs.h | |
ad6254c5 | 9066 | |
ad6254c5 | 9067 | fi |
7a197a62 | 9068 | |
ad6254c5 | 9069 | |
f11781c5 AK |
9070 | ################################################################################ |
9071 | ||
9072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5 | |
9073 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
9074 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then : | |
9075 | $as_echo_n "(cached) " >&6 | |
9076 | else | |
9077 | ac_check_lib_save_LIBS=$LIBS | |
9078 | LIBS="-lc $LIBS" | |
9079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9080 | /* end confdefs.h. */ |
f11781c5 AK |
9081 | |
9082 | /* Override any GCC internal prototype to avoid an error. | |
9083 | Use char because int might match the return type of a GCC | |
9084 | builtin and then its argument prototype would still apply. */ | |
9085 | #ifdef __cplusplus | |
9086 | extern "C" | |
9087 | #endif | |
9088 | char canonicalize_file_name (); | |
9089 | int | |
9090 | main () | |
9091 | { | |
9092 | return canonicalize_file_name (); | |
9093 | ; | |
9094 | return 0; | |
9095 | } | |
ad6254c5 | 9096 | _ACEOF |
f11781c5 AK |
9097 | if ac_fn_c_try_link "$LINENO"; then : |
9098 | ac_cv_lib_c_canonicalize_file_name=yes | |
ad6254c5 | 9099 | else |
f11781c5 AK |
9100 | ac_cv_lib_c_canonicalize_file_name=no |
9101 | fi | |
9102 | rm -f core conftest.err conftest.$ac_objext \ | |
9103 | conftest$ac_exeext conftest.$ac_ext | |
9104 | LIBS=$ac_check_lib_save_LIBS | |
9105 | fi | |
9106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5 | |
9107 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9108 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then : | |
9109 | ||
9110 | $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h | |
ad6254c5 | 9111 | |
ad6254c5 | 9112 | fi |
7a197a62 | 9113 | |
ad6254c5 | 9114 | |
f11781c5 AK |
9115 | ################################################################################ |
9116 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9117 | then exec_prefix=""; | |
9118 | fi; | |
7a197a62 | 9119 | |
f11781c5 AK |
9120 | ################################################################################ |
9121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9122 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9123 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
ec6a6fbe | 9124 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9125 | else |
f11781c5 AK |
9126 | ac_check_lib_save_LIBS=$LIBS |
9127 | LIBS="-ldl $LIBS" | |
9128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9129 | /* end confdefs.h. */ | |
ad6254c5 | 9130 | |
f11781c5 AK |
9131 | /* Override any GCC internal prototype to avoid an error. |
9132 | Use char because int might match the return type of a GCC | |
9133 | builtin and then its argument prototype would still apply. */ | |
9134 | #ifdef __cplusplus | |
9135 | extern "C" | |
9136 | #endif | |
9137 | char dlopen (); | |
9138 | int | |
9139 | main () | |
9140 | { | |
9141 | return dlopen (); | |
9142 | ; | |
9143 | return 0; | |
9144 | } | |
ad6254c5 | 9145 | _ACEOF |
f11781c5 AK |
9146 | if ac_fn_c_try_link "$LINENO"; then : |
9147 | ac_cv_lib_dl_dlopen=yes | |
ad6254c5 | 9148 | else |
f11781c5 | 9149 | ac_cv_lib_dl_dlopen=no |
795ca3e5 | 9150 | fi |
f11781c5 AK |
9151 | rm -f core conftest.err conftest.$ac_objext \ |
9152 | conftest$ac_exeext conftest.$ac_ext | |
9153 | LIBS=$ac_check_lib_save_LIBS | |
9154 | fi | |
9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9156 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9157 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
795ca3e5 | 9158 | |
ad6254c5 | 9159 | |
f11781c5 | 9160 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
ad6254c5 | 9161 | |
f11781c5 AK |
9162 | DL_LIBS="-ldl" |
9163 | HAVE_LIBDL=yes | |
9164 | else | |
795ca3e5 | 9165 | |
f11781c5 AK |
9166 | DL_LIBS= |
9167 | HAVE_LIBDL=no | |
9168 | fi | |
8106cdd5 | 9169 | |
ad6254c5 | 9170 | |
f11781c5 AK |
9171 | ################################################################################ |
9172 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9173 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
cac52ca4 | 9174 | -o "x$RAID" = xshared \ |
f11781c5 AK |
9175 | \) -a "x$STATIC_LINK" = xyes ]; |
9176 | then as_fn_error $? "Features cannot be 'shared' when building statically | |
9177 | " "$LINENO" 5 | |
9178 | fi | |
ad6254c5 | 9179 | |
f11781c5 AK |
9180 | ################################################################################ |
9181 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 | |
9183 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
9184 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then : | |
ec6a6fbe | 9185 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9186 | else |
f11781c5 AK |
9187 | ac_check_lib_save_LIBS=$LIBS |
9188 | LIBS="-lpthread $LIBS" | |
9189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9190 | /* end confdefs.h. */ |
8a2fc586 | 9191 | |
f11781c5 AK |
9192 | /* Override any GCC internal prototype to avoid an error. |
9193 | Use char because int might match the return type of a GCC | |
9194 | builtin and then its argument prototype would still apply. */ | |
9195 | #ifdef __cplusplus | |
9196 | extern "C" | |
ad6254c5 | 9197 | #endif |
f11781c5 AK |
9198 | char pthread_mutex_lock (); |
9199 | int | |
9200 | main () | |
9201 | { | |
9202 | return pthread_mutex_lock (); | |
9203 | ; | |
9204 | return 0; | |
9205 | } | |
9206 | _ACEOF | |
9207 | if ac_fn_c_try_link "$LINENO"; then : | |
9208 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
9209 | else | |
9210 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
9211 | fi | |
9212 | rm -f core conftest.err conftest.$ac_objext \ | |
9213 | conftest$ac_exeext conftest.$ac_ext | |
9214 | LIBS=$ac_check_lib_save_LIBS | |
9215 | fi | |
9216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
9217 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
9218 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then : | |
9219 | PTHREAD_LIBS="-lpthread" | |
9220 | else | |
9221 | hard_bailout | |
9222 | fi | |
9223 | ||
9224 | fi | |
9225 | ||
9226 | ################################################################################ | |
9227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5 | |
9228 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
9229 | # Check whether --enable-selinux was given. | |
9230 | if test "${enable_selinux+set}" = set; then : | |
9231 | enableval=$enable_selinux; SELINUX=$enableval | |
9232 | fi | |
9233 | ||
9234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5 | |
9235 | $as_echo "$SELINUX" >&6; } | |
8a2fc586 | 9236 | |
f11781c5 AK |
9237 | ################################################################################ |
9238 | if test x$SELINUX = xyes; then | |
9239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5 | |
9240 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
9241 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then : | |
9242 | $as_echo_n "(cached) " >&6 | |
9243 | else | |
9244 | ac_check_lib_save_LIBS=$LIBS | |
9245 | LIBS="-lsepol $LIBS" | |
9246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9247 | /* end confdefs.h. */ | |
8a2fc586 | 9248 | |
7a197a62 AK |
9249 | /* Override any GCC internal prototype to avoid an error. |
9250 | Use char because int might match the return type of a GCC | |
9251 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9252 | #ifdef __cplusplus |
9253 | extern "C" | |
ad6254c5 | 9254 | #endif |
f11781c5 | 9255 | char sepol_check_context (); |
ad6254c5 AK |
9256 | int |
9257 | main () | |
9258 | { | |
f11781c5 | 9259 | return sepol_check_context (); |
ad6254c5 AK |
9260 | ; |
9261 | return 0; | |
9262 | } | |
9263 | _ACEOF | |
f11781c5 AK |
9264 | if ac_fn_c_try_link "$LINENO"; then : |
9265 | ac_cv_lib_sepol_sepol_check_context=yes | |
795ca3e5 | 9266 | else |
f11781c5 AK |
9267 | ac_cv_lib_sepol_sepol_check_context=no |
9268 | fi | |
9269 | rm -f core conftest.err conftest.$ac_objext \ | |
9270 | conftest$ac_exeext conftest.$ac_ext | |
9271 | LIBS=$ac_check_lib_save_LIBS | |
80992638 | 9272 | fi |
f11781c5 AK |
9273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9274 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
9275 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then : | |
7a197a62 | 9276 | |
80992638 | 9277 | |
f11781c5 AK |
9278 | $as_echo "#define HAVE_SEPOL 1" >>confdefs.h |
9279 | ||
9280 | SELINUX_LIBS="-lsepol" | |
8106cdd5 | 9281 | fi |
795ca3e5 | 9282 | |
f11781c5 AK |
9283 | |
9284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 | |
9285 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
9286 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then : | |
ec6a6fbe | 9287 | $as_echo_n "(cached) " >&6 |
25fbec5b | 9288 | else |
f11781c5 AK |
9289 | ac_check_lib_save_LIBS=$LIBS |
9290 | LIBS="-lselinux $LIBS" | |
9291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25fbec5b | 9292 | /* end confdefs.h. */ |
80992638 | 9293 | |
7a197a62 AK |
9294 | /* Override any GCC internal prototype to avoid an error. |
9295 | Use char because int might match the return type of a GCC | |
ad6254c5 | 9296 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
9297 | #ifdef __cplusplus |
9298 | extern "C" | |
9299 | #endif | |
f11781c5 | 9300 | char is_selinux_enabled (); |
ad6254c5 AK |
9301 | int |
9302 | main () | |
9303 | { | |
f11781c5 | 9304 | return is_selinux_enabled (); |
ad6254c5 AK |
9305 | ; |
9306 | return 0; | |
9307 | } | |
9308 | _ACEOF | |
f11781c5 AK |
9309 | if ac_fn_c_try_link "$LINENO"; then : |
9310 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
25fbec5b | 9311 | else |
f11781c5 | 9312 | ac_cv_lib_selinux_is_selinux_enabled=no |
25fbec5b | 9313 | fi |
f11781c5 AK |
9314 | rm -f core conftest.err conftest.$ac_objext \ |
9315 | conftest$ac_exeext conftest.$ac_ext | |
9316 | LIBS=$ac_check_lib_save_LIBS | |
25fbec5b | 9317 | fi |
f11781c5 AK |
9318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9319 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
9320 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then : | |
25fbec5b | 9321 | |
f11781c5 AK |
9322 | for ac_header in selinux/selinux.h |
9323 | do : | |
9324 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | |
9325 | if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then : | |
9326 | cat >>confdefs.h <<_ACEOF | |
9327 | #define HAVE_SELINUX_SELINUX_H 1 | |
ad6254c5 | 9328 | _ACEOF |
795ca3e5 | 9329 | |
25fbec5b | 9330 | else |
f11781c5 | 9331 | hard_bailout |
795ca3e5 | 9332 | fi |
795ca3e5 | 9333 | |
f11781c5 | 9334 | done |
795ca3e5 | 9335 | |
f11781c5 AK |
9336 | for ac_header in selinux/label.h |
9337 | do : | |
9338 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default" | |
9339 | if test "x$ac_cv_header_selinux_label_h" = x""yes; then : | |
9340 | cat >>confdefs.h <<_ACEOF | |
9341 | #define HAVE_SELINUX_LABEL_H 1 | |
ad6254c5 | 9342 | _ACEOF |
ad6254c5 | 9343 | |
ad6254c5 | 9344 | fi |
7a197a62 | 9345 | |
f11781c5 | 9346 | done |
7a197a62 | 9347 | |
ad6254c5 | 9348 | |
f11781c5 | 9349 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h |
7a197a62 | 9350 | |
f11781c5 AK |
9351 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
9352 | SELINUX_PC="libselinux" | |
9353 | HAVE_SELINUX=yes | |
ad6254c5 | 9354 | else |
8106cdd5 | 9355 | |
f11781c5 AK |
9356 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5 |
9357 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
9358 | SELINUX_LIBS= | |
9359 | SELINUX_PC= | |
9360 | HAVE_SELINUX=no | |
795ca3e5 | 9361 | fi |
ad6254c5 | 9362 | |
795ca3e5 AK |
9363 | fi |
9364 | ||
f11781c5 AK |
9365 | ################################################################################ |
9366 | if test x$REALTIME = xyes; then | |
9367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
9368 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
9369 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
ec6a6fbe | 9370 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 9371 | else |
f11781c5 AK |
9372 | ac_check_lib_save_LIBS=$LIBS |
9373 | LIBS="-lrt $LIBS" | |
9374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9375 | /* end confdefs.h. */ |
ad6254c5 | 9376 | |
f11781c5 AK |
9377 | /* Override any GCC internal prototype to avoid an error. |
9378 | Use char because int might match the return type of a GCC | |
9379 | builtin and then its argument prototype would still apply. */ | |
9380 | #ifdef __cplusplus | |
9381 | extern "C" | |
9382 | #endif | |
9383 | char clock_gettime (); | |
ad6254c5 AK |
9384 | int |
9385 | main () | |
9386 | { | |
f11781c5 | 9387 | return clock_gettime (); |
ad6254c5 AK |
9388 | ; |
9389 | return 0; | |
9390 | } | |
9391 | _ACEOF | |
f11781c5 AK |
9392 | if ac_fn_c_try_link "$LINENO"; then : |
9393 | ac_cv_lib_rt_clock_gettime=yes | |
ad6254c5 | 9394 | else |
f11781c5 | 9395 | ac_cv_lib_rt_clock_gettime=no |
ad6254c5 | 9396 | fi |
f11781c5 AK |
9397 | rm -f core conftest.err conftest.$ac_objext \ |
9398 | conftest$ac_exeext conftest.$ac_ext | |
9399 | LIBS=$ac_check_lib_save_LIBS | |
26e7f2e0 | 9400 | fi |
f11781c5 AK |
9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9402 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
9403 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
9404 | HAVE_REALTIME=yes | |
9405 | else | |
9406 | HAVE_REALTIME=no | |
8106cdd5 | 9407 | fi |
ad6254c5 | 9408 | |
ad6254c5 | 9409 | |
f11781c5 | 9410 | if test x$HAVE_REALTIME = xyes; then |
7a197a62 | 9411 | |
f11781c5 | 9412 | $as_echo "#define HAVE_REALTIME 1" >>confdefs.h |
ad6254c5 | 9413 | |
f11781c5 AK |
9414 | LIBS="-lrt $LIBS" |
9415 | else | |
9416 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5 | |
9417 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
9418 | fi | |
9419 | fi | |
9420 | ||
9421 | ################################################################################ | |
9422 | for ac_header in getopt.h | |
9423 | do : | |
9424 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
9425 | if test "x$ac_cv_header_getopt_h" = x""yes; then : | |
9426 | cat >>confdefs.h <<_ACEOF | |
9427 | #define HAVE_GETOPT_H 1 | |
9428 | _ACEOF | |
9429 | ||
9430 | $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h | |
ad6254c5 | 9431 | |
ad6254c5 | 9432 | fi |
7a197a62 | 9433 | |
f11781c5 | 9434 | done |
ad6254c5 | 9435 | |
7a197a62 | 9436 | |
f11781c5 AK |
9437 | ################################################################################ |
9438 | if test x$READLINE != xno; then | |
9439 | lvm_saved_libs=$LIBS | |
9440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
9441 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
9442 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ec6a6fbe | 9443 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9444 | else |
f11781c5 AK |
9445 | ac_func_search_save_LIBS=$LIBS |
9446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9447 | /* end confdefs.h. */ | |
ad6254c5 | 9448 | |
f11781c5 AK |
9449 | /* Override any GCC internal prototype to avoid an error. |
9450 | Use char because int might match the return type of a GCC | |
9451 | builtin and then its argument prototype would still apply. */ | |
9452 | #ifdef __cplusplus | |
9453 | extern "C" | |
9454 | #endif | |
9455 | char tgetent (); | |
9456 | int | |
9457 | main () | |
9458 | { | |
9459 | return tgetent (); | |
9460 | ; | |
9461 | return 0; | |
9462 | } | |
ad6254c5 | 9463 | _ACEOF |
f11781c5 AK |
9464 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
9465 | if test -z "$ac_lib"; then | |
9466 | ac_res="none required" | |
9467 | else | |
9468 | ac_res=-l$ac_lib | |
9469 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9470 | fi | |
9471 | if ac_fn_c_try_link "$LINENO"; then : | |
9472 | ac_cv_search_tgetent=$ac_res | |
9473 | fi | |
9474 | rm -f core conftest.err conftest.$ac_objext \ | |
9475 | conftest$ac_exeext | |
9476 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
9477 | break | |
9478 | fi | |
9479 | done | |
9480 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ad6254c5 | 9481 | |
80992638 | 9482 | else |
f11781c5 | 9483 | ac_cv_search_tgetent=no |
b896caa1 | 9484 | fi |
f11781c5 AK |
9485 | rm conftest.$ac_ext |
9486 | LIBS=$ac_func_search_save_LIBS | |
9487 | fi | |
9488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
9489 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
9490 | ac_res=$ac_cv_search_tgetent | |
9491 | if test "$ac_res" != no; then : | |
9492 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9493 | READLINE_LIBS=$ac_cv_search_tgetent | |
9494 | else | |
ad6254c5 | 9495 | |
f11781c5 AK |
9496 | if test "$READLINE" = yes; then |
9497 | as_fn_error $? "termcap could not be found which is required for the | |
9498 | --enable-readline option (which is enabled by default). Either disable readline | |
9499 | support with --disable-readline or download and install termcap from: | |
9500 | ftp.gnu.org/gnu/termcap | |
9501 | Note: if you are using precompiled packages you will also need the development | |
9502 | package as well (which may be called termcap-devel or something similar). | |
9503 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9504 | not found either - but you could try installing that as well." "$LINENO" 5 | |
9505 | fi | |
9506 | fi | |
b896caa1 | 9507 | |
f11781c5 AK |
9508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 |
9509 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
9510 | if test "${ac_cv_lib_readline_readline+set}" = set; then : | |
ec6a6fbe | 9511 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9512 | else |
f11781c5 AK |
9513 | ac_check_lib_save_LIBS=$LIBS |
9514 | LIBS="-lreadline $LIBS" | |
9515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9516 | /* end confdefs.h. */ |
8a2fc586 | 9517 | |
f11781c5 AK |
9518 | /* Override any GCC internal prototype to avoid an error. |
9519 | Use char because int might match the return type of a GCC | |
9520 | builtin and then its argument prototype would still apply. */ | |
9521 | #ifdef __cplusplus | |
9522 | extern "C" | |
ad6254c5 | 9523 | #endif |
f11781c5 AK |
9524 | char readline (); |
9525 | int | |
9526 | main () | |
9527 | { | |
9528 | return readline (); | |
9529 | ; | |
9530 | return 0; | |
9531 | } | |
9532 | _ACEOF | |
9533 | if ac_fn_c_try_link "$LINENO"; then : | |
9534 | ac_cv_lib_readline_readline=yes | |
9535 | else | |
9536 | ac_cv_lib_readline_readline=no | |
9537 | fi | |
9538 | rm -f core conftest.err conftest.$ac_objext \ | |
9539 | conftest$ac_exeext conftest.$ac_ext | |
9540 | LIBS=$ac_check_lib_save_LIBS | |
9541 | fi | |
9542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
9543 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
9544 | if test "x$ac_cv_lib_readline_readline" = x""yes; then : | |
9545 | ||
8a2fc586 | 9546 | |
f11781c5 AK |
9547 | $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h |
9548 | ||
9549 | LIBS=$lvm_saved_libs | |
9550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5 | |
9551 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
9552 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then : | |
9553 | $as_echo_n "(cached) " >&6 | |
9554 | else | |
9555 | ac_check_lib_save_LIBS=$LIBS | |
9556 | LIBS="-lreadline $LIBS" | |
9557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9558 | /* end confdefs.h. */ | |
8a2fc586 | 9559 | |
7a197a62 AK |
9560 | /* Override any GCC internal prototype to avoid an error. |
9561 | Use char because int might match the return type of a GCC | |
9562 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9563 | #ifdef __cplusplus |
9564 | extern "C" | |
ad6254c5 | 9565 | #endif |
f11781c5 | 9566 | char rl_line_buffer (); |
ad6254c5 AK |
9567 | int |
9568 | main () | |
9569 | { | |
f11781c5 | 9570 | return rl_line_buffer (); |
ad6254c5 AK |
9571 | ; |
9572 | return 0; | |
9573 | } | |
9574 | _ACEOF | |
f11781c5 AK |
9575 | if ac_fn_c_try_link "$LINENO"; then : |
9576 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 9577 | else |
f11781c5 AK |
9578 | ac_cv_lib_readline_rl_line_buffer=no |
9579 | fi | |
9580 | rm -f core conftest.err conftest.$ac_objext \ | |
9581 | conftest$ac_exeext conftest.$ac_ext | |
9582 | LIBS=$ac_check_lib_save_LIBS | |
9583 | fi | |
9584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
9585 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
9586 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then : | |
9587 | READLINE_LIBS="-lreadline" | |
9588 | else | |
9589 | ||
9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
9591 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
9592 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
ad6254c5 | 9593 | |
ad6254c5 | 9594 | fi |
7a197a62 | 9595 | |
f11781c5 AK |
9596 | else |
9597 | ||
9598 | READLINE_LIBS= | |
9599 | if test "$READLINE" = yes; then | |
9600 | as_fn_error $? "GNU Readline could not be found which is required for the | |
9601 | --enable-readline option (which is enabled by default). Either disable readline | |
9602 | support with --disable-readline or download and install readline from: | |
9603 | ftp.gnu.org/gnu/readline | |
9604 | Note: if you are using precompiled packages you will also need the development | |
9605 | package as well (which may be called readline-devel or something similar)." "$LINENO" 5 | |
9606 | fi | |
ad6254c5 | 9607 | fi |
f11781c5 AK |
9608 | |
9609 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
9610 | for ac_func in rl_completion_matches | |
9611 | do : | |
9612 | ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" | |
9613 | if test "x$ac_cv_func_rl_completion_matches" = x""yes; then : | |
ad6254c5 | 9614 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 9615 | #define HAVE_RL_COMPLETION_MATCHES 1 |
ad6254c5 AK |
9616 | _ACEOF |
9617 | ||
ad6254c5 AK |
9618 | fi |
9619 | done | |
9620 | ||
f11781c5 | 9621 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
9622 | fi |
9623 | ||
f11781c5 AK |
9624 | ################################################################################ |
9625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5 | |
9626 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
9627 | # Check whether --enable-nls was given. | |
9628 | if test "${enable_nls+set}" = set; then : | |
9629 | enableval=$enable_nls; INTL=$enableval | |
9630 | else | |
9631 | INTL=no | |
9632 | fi | |
d911ec67 | 9633 | |
f11781c5 AK |
9634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5 |
9635 | $as_echo "$INTL" >&6; } | |
9636 | ||
9637 | if test x$INTL = xyes; then | |
9638 | # FIXME - Move this - can be device-mapper too | |
9639 | INTL_PACKAGE="lvm2" | |
9640 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9641 | set dummy msgfmt; ac_word=$2 | |
9642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9643 | $as_echo_n "checking for $ac_word... " >&6; } | |
9644 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
d911ec67 | 9645 | $as_echo_n "(cached) " >&6 |
d911ec67 | 9646 | else |
f11781c5 AK |
9647 | case $MSGFMT in |
9648 | [\\/]* | ?:[\\/]*) | |
9649 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9650 | ;; | |
9651 | *) | |
9652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9653 | for as_dir in $PATH | |
9654 | do | |
9655 | IFS=$as_save_IFS | |
9656 | test -z "$as_dir" && as_dir=. | |
9657 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9659 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
9660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9661 | break 2 | |
9662 | fi | |
9663 | done | |
9664 | done | |
9665 | IFS=$as_save_IFS | |
9666 | ||
9667 | ;; | |
d911ec67 | 9668 | esac |
f11781c5 AK |
9669 | fi |
9670 | MSGFMT=$ac_cv_path_MSGFMT | |
9671 | if test -n "$MSGFMT"; then | |
9672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
9673 | $as_echo "$MSGFMT" >&6; } | |
d911ec67 | 9674 | else |
f11781c5 AK |
9675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9676 | $as_echo "no" >&6; } | |
9677 | fi | |
d911ec67 | 9678 | |
f11781c5 AK |
9679 | |
9680 | if [ "x$MSGFMT" == x ]; | |
9681 | then as_fn_error $? "msgfmt not found in path $PATH | |
9682 | " "$LINENO" 5 | |
9683 | fi; | |
9684 | ||
9685 | ||
9686 | # Check whether --with-localedir was given. | |
9687 | if test "${with_localedir+set}" = set; then : | |
9688 | withval=$with_localedir; LOCALEDIR=$withval | |
9689 | else | |
9690 | LOCALEDIR='${prefix}/share/locale' | |
9691 | fi | |
9692 | ||
9693 | fi | |
9694 | ||
9695 | ################################################################################ | |
9696 | ||
9697 | # Check whether --with-confdir was given. | |
9698 | if test "${with_confdir+set}" = set; then : | |
9699 | withval=$with_confdir; CONFDIR=$withval | |
9700 | else | |
9701 | CONFDIR="/etc" | |
9702 | fi | |
9703 | ||
9704 | ||
9705 | ||
9706 | # Check whether --with-staticdir was given. | |
9707 | if test "${with_staticdir+set}" = set; then : | |
9708 | withval=$with_staticdir; STATICDIR=$withval | |
9709 | else | |
9710 | STATICDIR='${exec_prefix}/sbin' | |
9711 | fi | |
9712 | ||
9713 | ||
9714 | ||
9715 | # Check whether --with-usrlibdir was given. | |
9716 | if test "${with_usrlibdir+set}" = set; then : | |
9717 | withval=$with_usrlibdir; usrlibdir=$withval | |
9718 | else | |
9719 | usrlibdir='${prefix}/lib' | |
d911ec67 AK |
9720 | fi |
9721 | ||
d911ec67 | 9722 | |
d911ec67 | 9723 | |
f11781c5 AK |
9724 | # Check whether --with-usrsbindir was given. |
9725 | if test "${with_usrsbindir+set}" = set; then : | |
9726 | withval=$with_usrsbindir; usrsbindir=$withval | |
9727 | else | |
9728 | usrsbindir='${prefix}/sbin' | |
d911ec67 AK |
9729 | fi |
9730 | ||
d911ec67 | 9731 | |
f11781c5 | 9732 | ################################################################################ |
d911ec67 | 9733 | |
f11781c5 AK |
9734 | # Check whether --with-udev_prefix was given. |
9735 | if test "${with_udev_prefix+set}" = set; then : | |
9736 | withval=$with_udev_prefix; udev_prefix=$withval | |
d911ec67 | 9737 | else |
f11781c5 | 9738 | udev_prefix='${exec_prefix}' |
d911ec67 | 9739 | fi |
d911ec67 | 9740 | |
f11781c5 AK |
9741 | |
9742 | ||
9743 | # Check whether --with-udevdir was given. | |
9744 | if test "${with_udevdir+set}" = set; then : | |
9745 | withval=$with_udevdir; udevdir=$withval | |
9746 | else | |
9747 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
d911ec67 | 9748 | fi |
f11781c5 AK |
9749 | |
9750 | ||
e587cb6a PR |
9751 | ################################################################################ |
9752 | ||
9753 | # Check whether --with-systemdsystemunitdir was given. | |
9754 | if test "${with_systemdsystemunitdir+set}" = set; then : | |
9755 | withval=$with_systemdsystemunitdir; systemdsystemunitdir=$withval | |
9756 | else | |
9757 | pkg_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) | |
9758 | fi | |
9759 | ||
9760 | ||
9761 | if test -n "$pkg_systemdsystemunitdir"; then | |
9762 | systemdsystemunitdir=$pkg_systemdsystemunitdir; | |
9763 | fi | |
9764 | ||
9765 | if test -z "$systemdsystemunitdir"; then | |
9766 | systemdsystemunitdir='/lib/systemd/system'; | |
9767 | fi | |
4417a8bd PR |
9768 | ################################################################################ |
9769 | ||
9770 | # Check whether --with-tmpfilesdir was given. | |
9771 | if test "${with_tmpfilesdir+set}" = set; then : | |
9772 | withval=$with_tmpfilesdir; tmpfilesdir=$withval | |
9773 | else | |
9774 | tmpfilesdir='${sysconfdir}/tmpfiles.d' | |
9775 | fi | |
9776 | ||
f11781c5 AK |
9777 | ################################################################################ |
9778 | if test x$READLINE = xyes; then | |
9779 | for ac_header in readline/readline.h readline/history.h | |
9780 | do : | |
9781 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9782 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9783 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
d911ec67 AK |
9784 | cat >>confdefs.h <<_ACEOF |
9785 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9786 | _ACEOF | |
9787 | ||
9788 | else | |
f11781c5 | 9789 | as_fn_error $? "bailing out" "$LINENO" 5 |
d911ec67 AK |
9790 | fi |
9791 | ||
9792 | done | |
9793 | ||
9794 | fi | |
9795 | ||
f11781c5 AK |
9796 | if test x$CLVMD != xnone; then |
9797 | 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 | |
9798 | do : | |
9799 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9800 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9801 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9802 | cat >>confdefs.h <<_ACEOF | |
9803 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 9804 | _ACEOF |
ad6254c5 | 9805 | |
f11781c5 AK |
9806 | else |
9807 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9808 | fi |
7a197a62 | 9809 | |
f11781c5 | 9810 | done |
ad6254c5 | 9811 | |
f11781c5 AK |
9812 | for ac_func in dup2 getmntent memmove select socket |
9813 | do : | |
9814 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9815 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9816 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9817 | cat >>confdefs.h <<_ACEOF | |
9818 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ad6254c5 | 9819 | _ACEOF |
ad6254c5 | 9820 | |
f11781c5 AK |
9821 | else |
9822 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9823 | fi |
f11781c5 | 9824 | done |
7a197a62 | 9825 | |
f11781c5 AK |
9826 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
9827 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
9828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 | |
9829 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
9830 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9831 | $as_echo_n "(cached) " >&6 | |
9832 | else | |
9833 | ac_func_search_save_LIBS=$LIBS | |
9834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9835 | /* end confdefs.h. */ | |
ad6254c5 | 9836 | |
f11781c5 AK |
9837 | /* Override any GCC internal prototype to avoid an error. |
9838 | Use char because int might match the return type of a GCC | |
9839 | builtin and then its argument prototype would still apply. */ | |
9840 | #ifdef __cplusplus | |
9841 | extern "C" | |
9842 | #endif | |
9843 | char getmntent (); | |
9844 | int | |
9845 | main () | |
9846 | { | |
9847 | return getmntent (); | |
9848 | ; | |
9849 | return 0; | |
9850 | } | |
9851 | _ACEOF | |
9852 | for ac_lib in '' sun seq gen; do | |
9853 | if test -z "$ac_lib"; then | |
9854 | ac_res="none required" | |
9855 | else | |
9856 | ac_res=-l$ac_lib | |
9857 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9858 | fi | |
9859 | if ac_fn_c_try_link "$LINENO"; then : | |
9860 | ac_cv_search_getmntent=$ac_res | |
9861 | fi | |
9862 | rm -f core conftest.err conftest.$ac_objext \ | |
9863 | conftest$ac_exeext | |
9864 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9865 | break | |
9866 | fi | |
9867 | done | |
9868 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
7a197a62 | 9869 | |
ad6254c5 | 9870 | else |
f11781c5 | 9871 | ac_cv_search_getmntent=no |
795ca3e5 | 9872 | fi |
f11781c5 AK |
9873 | rm conftest.$ac_ext |
9874 | LIBS=$ac_func_search_save_LIBS | |
9875 | fi | |
9876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 | |
9877 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
9878 | ac_res=$ac_cv_search_getmntent | |
9879 | if test "$ac_res" != no; then : | |
9880 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9881 | ac_cv_func_getmntent=yes | |
9882 | ||
9883 | $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h | |
80992638 | 9884 | |
f11781c5 AK |
9885 | else |
9886 | ac_cv_func_getmntent=no | |
8106cdd5 | 9887 | fi |
f11781c5 AK |
9888 | |
9889 | ||
9890 | for ac_header in sys/select.h sys/socket.h | |
9891 | do : | |
9892 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9893 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9894 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
ad6254c5 | 9895 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9896 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9897 | _ACEOF |
795ca3e5 | 9898 | |
795ca3e5 AK |
9899 | fi |
9900 | ||
ad6254c5 | 9901 | done |
80992638 | 9902 | |
f11781c5 AK |
9903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
9904 | $as_echo_n "checking types of arguments for select... " >&6; } | |
9905 | if test "${ac_cv_func_select_args+set}" = set; then : | |
ec6a6fbe | 9906 | $as_echo_n "(cached) " >&6 |
83912faa | 9907 | else |
f11781c5 AK |
9908 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
9909 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | |
9910 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
9911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 AK |
9912 | /* end confdefs.h. */ |
9913 | $ac_includes_default | |
f11781c5 AK |
9914 | #ifdef HAVE_SYS_SELECT_H |
9915 | # include <sys/select.h> | |
9916 | #endif | |
9917 | #ifdef HAVE_SYS_SOCKET_H | |
9918 | # include <sys/socket.h> | |
9919 | #endif | |
9920 | ||
9921 | int | |
9922 | main () | |
9923 | { | |
9924 | extern int select ($ac_arg1, | |
9925 | $ac_arg234, $ac_arg234, $ac_arg234, | |
9926 | $ac_arg5); | |
9927 | ; | |
9928 | return 0; | |
9929 | } | |
ad6254c5 | 9930 | _ACEOF |
f11781c5 AK |
9931 | if ac_fn_c_try_compile "$LINENO"; then : |
9932 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
9933 | fi | |
9934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9935 | done | |
9936 | done | |
9937 | done | |
9938 | # Provide a safe default value. | |
9939 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
ad6254c5 | 9940 | |
ad6254c5 | 9941 | fi |
f11781c5 AK |
9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
9943 | $as_echo "$ac_cv_func_select_args" >&6; } | |
9944 | ac_save_IFS=$IFS; IFS=',' | |
9945 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
9946 | IFS=$ac_save_IFS | |
9947 | shift | |
7a197a62 | 9948 | |
f11781c5 AK |
9949 | cat >>confdefs.h <<_ACEOF |
9950 | #define SELECT_TYPE_ARG1 $1 | |
9951 | _ACEOF | |
ad6254c5 | 9952 | |
f11781c5 AK |
9953 | |
9954 | cat >>confdefs.h <<_ACEOF | |
9955 | #define SELECT_TYPE_ARG234 ($2) | |
ad6254c5 | 9956 | _ACEOF |
f11781c5 AK |
9957 | |
9958 | ||
9959 | cat >>confdefs.h <<_ACEOF | |
9960 | #define SELECT_TYPE_ARG5 ($3) | |
ad6254c5 | 9961 | _ACEOF |
ad6254c5 | 9962 | |
f11781c5 AK |
9963 | rm -f conftest* |
9964 | ||
ad6254c5 | 9965 | fi |
7a197a62 | 9966 | |
f11781c5 AK |
9967 | if test x$CLUSTER != xnone; then |
9968 | for ac_header in sys/socket.h sys/un.h | |
9969 | do : | |
9970 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9971 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9972 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9973 | cat >>confdefs.h <<_ACEOF | |
9974 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9975 | _ACEOF | |
ad6254c5 | 9976 | |
f11781c5 AK |
9977 | else |
9978 | as_fn_error $? "bailing out" "$LINENO" 5 | |
9979 | fi | |
9980 | ||
9981 | done | |
9982 | ||
9983 | for ac_func in socket | |
9984 | do : | |
9985 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" | |
9986 | if test "x$ac_cv_func_socket" = x""yes; then : | |
9987 | cat >>confdefs.h <<_ACEOF | |
9988 | #define HAVE_SOCKET 1 | |
9989 | _ACEOF | |
7a197a62 | 9990 | |
80992638 | 9991 | else |
f11781c5 | 9992 | as_fn_error $? "bailing out" "$LINENO" 5 |
83912faa | 9993 | fi |
f11781c5 | 9994 | done |
83912faa | 9995 | |
69792976 | 9996 | fi |
f11781c5 AK |
9997 | |
9998 | if test x$DMEVENTD = xyes; then | |
9999 | for ac_header in arpa/inet.h | |
10000 | do : | |
10001 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" | |
10002 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : | |
ad6254c5 | 10003 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 10004 | #define HAVE_ARPA_INET_H 1 |
ad6254c5 | 10005 | _ACEOF |
69792976 | 10006 | |
69792976 | 10007 | else |
f11781c5 | 10008 | as_fn_error $? "bailing out" "$LINENO" 5 |
80992638 AK |
10009 | fi |
10010 | ||
ad6254c5 | 10011 | done |
69792976 | 10012 | |
ad6254c5 AK |
10013 | fi |
10014 | ||
f11781c5 AK |
10015 | if test x$HAVE_LIBDL = xyes; then |
10016 | for ac_header in dlfcn.h | |
10017 | do : | |
10018 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
10019 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
10020 | cat >>confdefs.h <<_ACEOF | |
10021 | #define HAVE_DLFCN_H 1 | |
a5f46f6a | 10022 | _ACEOF |
a5f46f6a | 10023 | |
f11781c5 AK |
10024 | else |
10025 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a5f46f6a AK |
10026 | fi |
10027 | ||
f11781c5 | 10028 | done |
a5f46f6a | 10029 | |
a5f46f6a AK |
10030 | fi |
10031 | ||
f11781c5 AK |
10032 | if test x$INTL = xyes; then |
10033 | for ac_header in libintl.h | |
10034 | do : | |
10035 | ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" | |
10036 | if test "x$ac_cv_header_libintl_h" = x""yes; then : | |
10037 | cat >>confdefs.h <<_ACEOF | |
10038 | #define HAVE_LIBINTL_H 1 | |
10039 | _ACEOF | |
a5f46f6a | 10040 | |
a5f46f6a | 10041 | else |
f11781c5 | 10042 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a | 10043 | fi |
f11781c5 AK |
10044 | |
10045 | done | |
a5f46f6a AK |
10046 | |
10047 | fi | |
f11781c5 AK |
10048 | |
10049 | if test x$UDEV_SYNC = xyes; then | |
10050 | for ac_header in sys/ipc.h sys/sem.h | |
10051 | do : | |
10052 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10053 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10054 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a5f46f6a AK |
10055 | cat >>confdefs.h <<_ACEOF |
10056 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10057 | _ACEOF | |
10058 | ||
10059 | else | |
f11781c5 | 10060 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a AK |
10061 | fi |
10062 | ||
10063 | done | |
10064 | ||
10065 | fi | |
10066 | ||
a653923f AK |
10067 | ################################################################################ |
10068 | # Extract the first word of "modprobe", so it can be a program name with args. | |
10069 | set dummy modprobe; ac_word=$2 | |
f11781c5 | 10070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
ec6a6fbe | 10071 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 10072 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then : |
ec6a6fbe | 10073 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
10074 | else |
10075 | case $MODPROBE_CMD in | |
10076 | [\\/]* | ?:[\\/]*) | |
10077 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
10078 | ;; | |
10079 | *) | |
10080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10081 | for as_dir in $PATH | |
10082 | do | |
10083 | IFS=$as_save_IFS | |
10084 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 10085 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 10086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 10087 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
f11781c5 | 10088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
10089 | break 2 |
10090 | fi | |
10091 | done | |
f11781c5 | 10092 | done |
7a197a62 | 10093 | IFS=$as_save_IFS |
72b2cb61 AK |
10094 | |
10095 | ;; | |
10096 | esac | |
10097 | fi | |
10098 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 10099 | if test -n "$MODPROBE_CMD"; then |
f11781c5 | 10100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5 |
ec6a6fbe | 10101 | $as_echo "$MODPROBE_CMD" >&6; } |
72b2cb61 | 10102 | else |
f11781c5 | 10103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 10104 | $as_echo "no" >&6; } |
72b2cb61 AK |
10105 | fi |
10106 | ||
a653923f | 10107 | |
7a197a62 | 10108 | |
a653923f | 10109 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
10110 | |
10111 | cat >>confdefs.h <<_ACEOF | |
10112 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
10113 | _ACEOF | |
10114 | ||
a653923f AK |
10115 | fi |
10116 | ||
b5c2529b | 10117 | |
a9b601e2 ZK |
10118 | lvm_exec_prefix=$exec_prefix |
10119 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
10120 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
d2c11605 | 10121 | LVM_PATH="$lvm_exec_prefix/sbin/lvm" |
a9b601e2 | 10122 | |
b5c2529b | 10123 | cat >>confdefs.h <<_ACEOF |
d2c11605 | 10124 | #define LVM_PATH "$LVM_PATH" |
b5c2529b ZK |
10125 | _ACEOF |
10126 | ||
10127 | ||
10128 | if test "$CLVMD" != none; then | |
10129 | clvmd_prefix=$ac_default_prefix | |
d2c11605 | 10130 | CLVMD_PATH="$clvmd_prefix/sbin/clvmd" |
b5c2529b ZK |
10131 | test "$prefix" != NONE && clvmd_prefix=$prefix |
10132 | ||
10133 | cat >>confdefs.h <<_ACEOF | |
d2c11605 | 10134 | #define CLVMD_PATH "$CLVMD_PATH" |
b5c2529b ZK |
10135 | _ACEOF |
10136 | ||
10137 | fi | |
10138 | ||
80992638 | 10139 | ################################################################################ |
93bd259b AK |
10140 | if test "$BUILD_DMEVENTD" = yes; then |
10141 | ||
10142 | # Check whether --with-dmeventd-pidfile was given. | |
f11781c5 | 10143 | if test "${with_dmeventd_pidfile+set}" = set; then : |
71082be4 | 10144 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 10145 | else |
71082be4 | 10146 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
10147 | fi |
10148 | ||
93bd259b | 10149 | |
71082be4 ZK |
10150 | cat >>confdefs.h <<_ACEOF |
10151 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
10152 | _ACEOF | |
93bd259b | 10153 | |
71082be4 | 10154 | fi |
93bd259b AK |
10155 | |
10156 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
10157 | |
10158 | # Check whether --with-dmeventd-path was given. | |
f11781c5 | 10159 | if test "${with_dmeventd_path+set}" = set; then : |
71082be4 | 10160 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 10161 | else |
71082be4 | 10162 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
10163 | fi |
10164 | ||
93bd259b | 10165 | |
71082be4 ZK |
10166 | cat >>confdefs.h <<_ACEOF |
10167 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
10168 | _ACEOF | |
3399ae32 | 10169 | |
71082be4 | 10170 | fi |
3399ae32 | 10171 | |
8bae0a1e AK |
10172 | |
10173 | ||
8bae0a1e | 10174 | # Check whether --with-default-run-dir was given. |
f11781c5 | 10175 | if test "${with_default_run_dir+set}" = set; then : |
8bae0a1e AK |
10176 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" |
10177 | else | |
10178 | DEFAULT_RUN_DIR="/var/run/lvm" | |
10179 | fi | |
10180 | ||
10181 | cat >>confdefs.h <<_ACEOF | |
10182 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
10183 | _ACEOF | |
10184 | ||
10185 | ||
71082be4 | 10186 | ################################################################################ |
3399ae32 AK |
10187 | |
10188 | # Check whether --with-default-system-dir was given. | |
f11781c5 | 10189 | if test "${with_default_system_dir+set}" = set; then : |
71082be4 | 10190 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 10191 | else |
71082be4 | 10192 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
10193 | fi |
10194 | ||
71082be4 | 10195 | |
3399ae32 AK |
10196 | cat >>confdefs.h <<_ACEOF |
10197 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
10198 | _ACEOF | |
10199 | ||
10200 | ||
10201 | ||
3399ae32 | 10202 | # Check whether --with-default-archive-subdir was given. |
f11781c5 | 10203 | if test "${with_default_archive_subdir+set}" = set; then : |
71082be4 | 10204 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 10205 | else |
71082be4 | 10206 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
10207 | fi |
10208 | ||
71082be4 | 10209 | |
3399ae32 AK |
10210 | cat >>confdefs.h <<_ACEOF |
10211 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
10212 | _ACEOF | |
10213 | ||
10214 | ||
10215 | ||
3399ae32 | 10216 | # Check whether --with-default-backup-subdir was given. |
f11781c5 | 10217 | if test "${with_default_backup_subdir+set}" = set; then : |
71082be4 | 10218 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 10219 | else |
71082be4 | 10220 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
10221 | fi |
10222 | ||
71082be4 | 10223 | |
3399ae32 AK |
10224 | cat >>confdefs.h <<_ACEOF |
10225 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
10226 | _ACEOF | |
10227 | ||
10228 | ||
10229 | ||
3399ae32 | 10230 | # Check whether --with-default-cache-subdir was given. |
f11781c5 | 10231 | if test "${with_default_cache_subdir+set}" = set; then : |
71082be4 | 10232 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 10233 | else |
71082be4 | 10234 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
10235 | fi |
10236 | ||
71082be4 | 10237 | |
3399ae32 AK |
10238 | cat >>confdefs.h <<_ACEOF |
10239 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
10240 | _ACEOF | |
10241 | ||
10242 | ||
10243 | ||
3399ae32 | 10244 | # Check whether --with-default-locking-dir was given. |
f11781c5 | 10245 | if test "${with_default_locking_dir+set}" = set; then : |
71082be4 | 10246 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 10247 | else |
71082be4 | 10248 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
10249 | fi |
10250 | ||
71082be4 | 10251 | |
3399ae32 AK |
10252 | cat >>confdefs.h <<_ACEOF |
10253 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
10254 | _ACEOF | |
10255 | ||
10256 | ||
fea55602 DW |
10257 | ################################################################################ |
10258 | ||
10259 | # Check whether --with-default-data-alignment was given. | |
f11781c5 | 10260 | if test "${with_default_data_alignment+set}" = set; then : |
fea55602 DW |
10261 | withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval |
10262 | else | |
10263 | DEFAULT_DATA_ALIGNMENT=1 | |
10264 | fi | |
10265 | ||
10266 | ||
10267 | cat >>confdefs.h <<_ACEOF | |
10268 | #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT | |
10269 | _ACEOF | |
10270 | ||
10271 | ||
93bd259b | 10272 | ################################################################################ |
f11781c5 | 10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5 |
ec6a6fbe | 10274 | $as_echo_n "checking for kernel interface choice... " >&6; } |
93bd259b AK |
10275 | |
10276 | # Check whether --with-interface was given. | |
f11781c5 | 10277 | if test "${with_interface+set}" = set; then : |
71082be4 | 10278 | withval=$with_interface; interface=$withval |
93bd259b | 10279 | else |
71082be4 | 10280 | interface=ioctl |
93bd259b AK |
10281 | fi |
10282 | ||
10283 | if [ "x$interface" != xioctl ]; | |
10284 | then | |
f11781c5 | 10285 | as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5 |
93bd259b | 10286 | fi |
f11781c5 | 10287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5 |
ec6a6fbe | 10288 | $as_echo "$interface" >&6; } |
93bd259b AK |
10289 | |
10290 | ################################################################################ | |
db8b5af9 | 10291 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
10292 | |
10293 | cat >>confdefs.h <<_ACEOF | |
10294 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
10295 | _ACEOF | |
10296 | ||
10297 | ||
db8b5af9 | 10298 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 10299 | |
db8b5af9 | 10300 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 10301 | |
db8b5af9 | 10302 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 10303 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
10304 | VER=`echo "$VER" | $AWK '{print $1}'` |
10305 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
10306 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
10307 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
10308 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
10309 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
10310 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 10311 | |
80992638 | 10312 | ################################################################################ |
fae0c576 | 10313 | |
83912faa | 10314 | |
795ca3e5 AK |
10315 | |
10316 | ||
10317 | ||
10318 | ||
10319 | ||
10320 | ||
5a52dca9 | 10321 | |
8ef2b021 | 10322 | |
199e490e | 10323 | |
69792976 AK |
10324 | |
10325 | ||
10326 | ||
d0191583 | 10327 | |
69792976 | 10328 | |
8106cdd5 AK |
10329 | |
10330 | ||
10331 | ||
10332 | ||
10333 | ||
d68a82ec | 10334 | |
036f273a | 10335 | |
7d1552c9 | 10336 | |
8106cdd5 | 10337 | |
0a62c911 | 10338 | |
8106cdd5 | 10339 | |
4a7f3eb2 | 10340 | |
4922197a AK |
10341 | |
10342 | ||
d8ac0fbc | 10343 | |
1a9ea74d | 10344 | |
8a2fc586 AK |
10345 | |
10346 | ||
d0191583 | 10347 | |
93bd259b AK |
10348 | |
10349 | ||
10350 | ||
10351 | ||
10352 | ||
d0191583 JM |
10353 | |
10354 | ||
10355 | ||
10356 | ||
10357 | ||
8a2fc586 | 10358 | |
19a2c6e0 | 10359 | |
f7f0854e ZK |
10360 | |
10361 | ||
3ceb7608 | 10362 | |
8ce0cbda | 10363 | |
8b1a3214 | 10364 | |
ec6a6fbe AK |
10365 | |
10366 | ||
10367 | ||
10368 | ||
e2997b73 AK |
10369 | |
10370 | ||
10371 | ||
10372 | ||
10373 | ||
10374 | ||
a946372e AK |
10375 | |
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | ||
10381 | ||
10382 | ||
10383 | ||
10384 | ||
10385 | ||
ec6a6fbe | 10386 | |
cac52ca4 | 10387 | |
d3c8211f | 10388 | |
7e3fe830 | 10389 | |
a5f46f6a AK |
10390 | |
10391 | ||
10392 | ||
572fefeb | 10393 | |
90c80887 | 10394 | |
3399ae32 AK |
10395 | |
10396 | ||
10397 | ||
10398 | ||
10399 | ||
90c80887 | 10400 | |
bf456146 | 10401 | |
e1b8a236 | 10402 | |
0878503f | 10403 | |
8fea97b7 | 10404 | |
54b362f9 | 10405 | |
b1f08e51 | 10406 | |
d1e8046f | 10407 | |
fea55602 | 10408 | |
c89bc357 | 10409 | |
6e5c1f75 | 10410 | |
3ba4a195 | 10411 | |
d2c11605 ZK |
10412 | |
10413 | ||
cdd50823 | 10414 | |
426fc742 PR |
10415 | |
10416 | ||
b6d7a484 AK |
10417 | |
10418 | ||
bf09a320 | 10419 | |
e587cb6a | 10420 | |
b559a1e6 | 10421 | |
4417a8bd | 10422 | |
68f2de6d AK |
10423 | |
10424 | ||
80992638 | 10425 | ################################################################################ |
7126d8c2 | 10426 | 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/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/lvmetad/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/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/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_lvmetad_init_red_hat scripts/lvm2_lvmetad_systemd_red_hat.socket scripts/lvm2_lvmetad_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_tmpfiles_red_hat.conf scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile" |
7a197a62 | 10427 | |
ad6254c5 | 10428 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
10429 | # This file is a shell script that caches the results of configure |
10430 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
10431 | # scripts and configure runs, see configure's option --config-cache. |
10432 | # It is not useful on other systems. If it contains results you don't | |
10433 | # want to keep, you may remove or edit it. | |
795ca3e5 | 10434 | # |
ad6254c5 AK |
10435 | # config.status only pays attention to the cache file if you give it |
10436 | # the --recheck option to rerun configure. | |
795ca3e5 | 10437 | # |
ad6254c5 AK |
10438 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10439 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10440 | # following values. | |
10441 | ||
10442 | _ACEOF | |
10443 | ||
795ca3e5 AK |
10444 | # The following way of writing the cache mishandles newlines in values, |
10445 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 10446 | # So, we kill variables containing newlines. |
795ca3e5 AK |
10447 | # Ultrix sh set writes to stderr and can't be redirected directly, |
10448 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
10449 | ( |
10450 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10451 | eval ac_val=\$$ac_var | |
10452 | case $ac_val in #( | |
10453 | *${as_nl}*) | |
10454 | case $ac_var in #( | |
f11781c5 | 10455 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
ec6a6fbe | 10456 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7a197a62 AK |
10457 | esac |
10458 | case $ac_var in #( | |
10459 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 10460 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
f11781c5 | 10461 | *) { eval $ac_var=; unset $ac_var;} ;; |
7a197a62 AK |
10462 | esac ;; |
10463 | esac | |
10464 | done | |
10465 | ||
ad6254c5 | 10466 | (set) 2>&1 | |
7a197a62 AK |
10467 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
10468 | *${as_nl}ac_space=\ *) | |
f11781c5 AK |
10469 | # `set' does not quote correctly, so add quotes: double-quote |
10470 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
ad6254c5 | 10471 | sed -n \ |
8a2fc586 AK |
10472 | "s/'/'\\\\''/g; |
10473 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 10474 | ;; #( |
ad6254c5 AK |
10475 | *) |
10476 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 10477 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 10478 | ;; |
7a197a62 AK |
10479 | esac | |
10480 | sort | |
10481 | ) | | |
ad6254c5 | 10482 | sed ' |
7a197a62 | 10483 | /^ac_cv_env_/b end |
ad6254c5 | 10484 | t clear |
7a197a62 | 10485 | :clear |
ad6254c5 AK |
10486 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
10487 | t end | |
7a197a62 AK |
10488 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
10489 | :end' >>confcache | |
10490 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10491 | if test -w "$cache_file"; then | |
10492 | test "x$cache_file" != "x/dev/null" && | |
f11781c5 | 10493 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
ec6a6fbe | 10494 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
ad6254c5 | 10495 | cat confcache >$cache_file |
795ca3e5 | 10496 | else |
f11781c5 | 10497 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
ec6a6fbe | 10498 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
795ca3e5 AK |
10499 | fi |
10500 | fi | |
10501 | rm -f confcache | |
10502 | ||
795ca3e5 AK |
10503 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
10504 | # Let make expand exec_prefix. | |
10505 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10506 | ||
72b2cb61 | 10507 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
10508 | |
10509 | ac_libobjs= | |
10510 | ac_ltlibobjs= | |
f11781c5 | 10511 | U= |
ad6254c5 AK |
10512 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
10513 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 10514 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 10515 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
10516 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
10517 | # will be set to the directory where LIBOBJS objects are built. | |
f11781c5 AK |
10518 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
10519 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
10520 | done |
10521 | LIBOBJS=$ac_libobjs | |
80992638 | 10522 | |
ad6254c5 AK |
10523 | LTLIBOBJS=$ac_ltlibobjs |
10524 | ||
10525 | ||
10526 | ||
10527 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 10528 | ac_write_fail=0 |
ad6254c5 AK |
10529 | ac_clean_files_save=$ac_clean_files |
10530 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
f11781c5 | 10531 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
ec6a6fbe | 10532 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
f11781c5 AK |
10533 | as_write_fail=0 |
10534 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
ad6254c5 AK |
10535 | #! $SHELL |
10536 | # Generated by $as_me. | |
795ca3e5 | 10537 | # Run this file to recreate the current configuration. |
795ca3e5 | 10538 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
10539 | # configure, is in config.log if it exists. |
10540 | ||
10541 | debug=false | |
10542 | ac_cs_recheck=false | |
10543 | ac_cs_silent=false | |
ad6254c5 | 10544 | |
f11781c5 AK |
10545 | SHELL=\${CONFIG_SHELL-$SHELL} |
10546 | export SHELL | |
10547 | _ASEOF | |
10548 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10549 | ## -------------------- ## | |
10550 | ## M4sh Initialization. ## | |
10551 | ## -------------------- ## | |
ad6254c5 | 10552 | |
25fbec5b AK |
10553 | # Be more Bourne compatible |
10554 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 10555 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
10556 | emulate sh |
10557 | NULLCMD=: | |
ec6a6fbe | 10558 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
10559 | # is contrary to our usage. Disable this feature. |
10560 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
10561 | setopt NO_GLOB_SUBST |
10562 | else | |
f11781c5 AK |
10563 | case `(set -o) 2>/dev/null` in #( |
10564 | *posix*) : | |
10565 | set -o posix ;; #( | |
10566 | *) : | |
10567 | ;; | |
25fbec5b | 10568 | esac |
7a197a62 | 10569 | fi |
25fbec5b AK |
10570 | |
10571 | ||
ec6a6fbe AK |
10572 | as_nl=' |
10573 | ' | |
10574 | export as_nl | |
10575 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10576 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10577 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10578 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
10579 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
10580 | # but without wasting forks for bash or zsh. | |
10581 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10582 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10583 | as_echo='print -r --' | |
10584 | as_echo_n='print -rn --' | |
10585 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
10586 | as_echo='printf %s\n' |
10587 | as_echo_n='printf %s' | |
10588 | else | |
10589 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10590 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10591 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 10592 | else |
ec6a6fbe AK |
10593 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
10594 | as_echo_n_body='eval | |
10595 | arg=$1; | |
f11781c5 | 10596 | case $arg in #( |
ec6a6fbe AK |
10597 | *"$as_nl"*) |
10598 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10599 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10600 | esac; | |
10601 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10602 | ' | |
10603 | export as_echo_n_body | |
10604 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 10605 | fi |
ec6a6fbe AK |
10606 | export as_echo_body |
10607 | as_echo='sh -c $as_echo_body as_echo' | |
10608 | fi | |
10609 | ||
10610 | # The user is always right. | |
10611 | if test "${PATH_SEPARATOR+set}" != set; then | |
10612 | PATH_SEPARATOR=: | |
10613 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10614 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10615 | PATH_SEPARATOR=';' | |
10616 | } | |
ad6254c5 AK |
10617 | fi |
10618 | ||
ad6254c5 | 10619 | |
7a197a62 AK |
10620 | # IFS |
10621 | # We need space, tab and new line, in precisely that order. Quoting is | |
10622 | # there to prevent editors from complaining about space-tab. | |
10623 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10624 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
10625 | IFS=" "" $as_nl" |
10626 | ||
10627 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 10628 | case $0 in #(( |
7a197a62 AK |
10629 | *[\\/]* ) as_myself=$0 ;; |
10630 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10631 | for as_dir in $PATH | |
10632 | do | |
10633 | IFS=$as_save_IFS | |
10634 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
10635 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
10636 | done | |
7a197a62 AK |
10637 | IFS=$as_save_IFS |
10638 | ||
10639 | ;; | |
10640 | esac | |
10641 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10642 | # in which case we are not to be found in the path. | |
10643 | if test "x$as_myself" = x; then | |
10644 | as_myself=$0 | |
10645 | fi | |
10646 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 10647 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 10648 | exit 1 |
7a197a62 AK |
10649 | fi |
10650 | ||
f11781c5 AK |
10651 | # Unset variables that we do not need and which cause bugs (e.g. in |
10652 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10653 | # suppresses any "Segmentation fault" message there. '((' could | |
10654 | # trigger a bug in pdksh 5.2.14. | |
10655 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10656 | do eval test x\${$as_var+set} = xset \ | |
10657 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 10658 | done |
ad6254c5 AK |
10659 | PS1='$ ' |
10660 | PS2='> ' | |
10661 | PS4='+ ' | |
10662 | ||
10663 | # NLS nuisances. | |
ec6a6fbe AK |
10664 | LC_ALL=C |
10665 | export LC_ALL | |
10666 | LANGUAGE=C | |
10667 | export LANGUAGE | |
8106cdd5 | 10668 | |
f11781c5 AK |
10669 | # CDPATH. |
10670 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10671 | ||
10672 | ||
10673 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
10674 | # ---------------------------------------- | |
10675 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
10676 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
10677 | # script with STATUS, using 1 if that was 0. | |
10678 | as_fn_error () | |
10679 | { | |
10680 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
10681 | if test "$4"; then | |
10682 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10683 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
10684 | fi | |
10685 | $as_echo "$as_me: error: $2" >&2 | |
10686 | as_fn_exit $as_status | |
10687 | } # as_fn_error | |
10688 | ||
10689 | ||
10690 | # as_fn_set_status STATUS | |
10691 | # ----------------------- | |
10692 | # Set $? to STATUS, without forking. | |
10693 | as_fn_set_status () | |
10694 | { | |
10695 | return $1 | |
10696 | } # as_fn_set_status | |
10697 | ||
10698 | # as_fn_exit STATUS | |
10699 | # ----------------- | |
10700 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10701 | as_fn_exit () | |
10702 | { | |
10703 | set +e | |
10704 | as_fn_set_status $1 | |
10705 | exit $1 | |
10706 | } # as_fn_exit | |
10707 | ||
10708 | # as_fn_unset VAR | |
10709 | # --------------- | |
10710 | # Portably unset VAR. | |
10711 | as_fn_unset () | |
10712 | { | |
10713 | { eval $1=; unset $1;} | |
10714 | } | |
10715 | as_unset=as_fn_unset | |
10716 | # as_fn_append VAR VALUE | |
10717 | # ---------------------- | |
10718 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10719 | # advantage of any shell optimizations that allow amortized linear growth over | |
10720 | # repeated appends, instead of the typical quadratic growth present in naive | |
10721 | # implementations. | |
10722 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10723 | eval 'as_fn_append () | |
10724 | { | |
10725 | eval $1+=\$2 | |
10726 | }' | |
10727 | else | |
10728 | as_fn_append () | |
10729 | { | |
10730 | eval $1=\$$1\$2 | |
10731 | } | |
10732 | fi # as_fn_append | |
10733 | ||
10734 | # as_fn_arith ARG... | |
10735 | # ------------------ | |
10736 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10737 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10738 | # must be portable across $(()) and expr. | |
10739 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10740 | eval 'as_fn_arith () | |
10741 | { | |
10742 | as_val=$(( $* )) | |
10743 | }' | |
10744 | else | |
10745 | as_fn_arith () | |
10746 | { | |
10747 | as_val=`expr "$@" || test $? -eq 1` | |
10748 | } | |
10749 | fi # as_fn_arith | |
10750 | ||
10751 | ||
7a197a62 AK |
10752 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10753 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
10754 | as_expr=expr |
10755 | else | |
10756 | as_expr=false | |
10757 | fi | |
8106cdd5 | 10758 | |
7a197a62 | 10759 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
10760 | as_basename=basename |
10761 | else | |
10762 | as_basename=false | |
10763 | fi | |
10764 | ||
f11781c5 AK |
10765 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10766 | as_dirname=dirname | |
10767 | else | |
10768 | as_dirname=false | |
10769 | fi | |
ad6254c5 | 10770 | |
7a197a62 | 10771 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
10772 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10773 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 10774 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 10775 | $as_echo X/"$0" | |
7a197a62 AK |
10776 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10777 | s//\1/ | |
10778 | q | |
10779 | } | |
10780 | /^X\/\(\/\/\)$/{ | |
10781 | s//\1/ | |
10782 | q | |
10783 | } | |
10784 | /^X\/\(\/\).*/{ | |
10785 | s//\1/ | |
10786 | q | |
10787 | } | |
10788 | s/.*/./; q'` | |
ad6254c5 | 10789 | |
f11781c5 AK |
10790 | # Avoid depending upon Character Ranges. |
10791 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10792 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10793 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10794 | as_cr_digits='0123456789' | |
10795 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7a197a62 AK |
10796 | |
10797 | ECHO_C= ECHO_N= ECHO_T= | |
f11781c5 | 10798 | case `echo -n x` in #((((( |
7a197a62 | 10799 | -n*) |
f11781c5 | 10800 | case `echo 'xy\c'` in |
7a197a62 | 10801 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
f11781c5 AK |
10802 | xy) ECHO_C='\c';; |
10803 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10804 | ECHO_T=' ';; | |
7a197a62 AK |
10805 | esac;; |
10806 | *) | |
10807 | ECHO_N='-n';; | |
ad6254c5 | 10808 | esac |
80992638 | 10809 | |
ad6254c5 | 10810 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
10811 | if test -d conf$$.dir; then |
10812 | rm -f conf$$.dir/conf$$.file | |
10813 | else | |
10814 | rm -f conf$$.dir | |
ec6a6fbe AK |
10815 | mkdir conf$$.dir 2>/dev/null |
10816 | fi | |
10817 | if (echo >conf$$.file) 2>/dev/null; then | |
10818 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10819 | as_ln_s='ln -s' | |
10820 | # ... but there are two gotchas: | |
10821 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10822 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10823 | # In both cases, we have to default to `cp -p'. | |
10824 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
10825 | as_ln_s='cp -p' | |
10826 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
10827 | as_ln_s=ln | |
10828 | else | |
ad6254c5 | 10829 | as_ln_s='cp -p' |
ec6a6fbe | 10830 | fi |
ad6254c5 AK |
10831 | else |
10832 | as_ln_s='cp -p' | |
10833 | fi | |
7a197a62 AK |
10834 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10835 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 10836 | |
f11781c5 AK |
10837 | |
10838 | # as_fn_mkdir_p | |
10839 | # ------------- | |
10840 | # Create "$as_dir" as a directory, including parents if necessary. | |
10841 | as_fn_mkdir_p () | |
10842 | { | |
10843 | ||
10844 | case $as_dir in #( | |
10845 | -*) as_dir=./$as_dir;; | |
10846 | esac | |
10847 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10848 | as_dirs= | |
10849 | while :; do | |
10850 | case $as_dir in #( | |
10851 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10852 | *) as_qdir=$as_dir;; | |
10853 | esac | |
10854 | as_dirs="'$as_qdir' $as_dirs" | |
10855 | as_dir=`$as_dirname -- "$as_dir" || | |
10856 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10857 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10858 | X"$as_dir" : 'X\(//\)$' \| \ | |
10859 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10860 | $as_echo X"$as_dir" | | |
10861 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10862 | s//\1/ | |
10863 | q | |
10864 | } | |
10865 | /^X\(\/\/\)[^/].*/{ | |
10866 | s//\1/ | |
10867 | q | |
10868 | } | |
10869 | /^X\(\/\/\)$/{ | |
10870 | s//\1/ | |
10871 | q | |
10872 | } | |
10873 | /^X\(\/\).*/{ | |
10874 | s//\1/ | |
10875 | q | |
10876 | } | |
10877 | s/.*/./; q'` | |
10878 | test -d "$as_dir" && break | |
10879 | done | |
10880 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10881 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
10882 | ||
10883 | ||
10884 | } # as_fn_mkdir_p | |
ad6254c5 | 10885 | if mkdir -p . 2>/dev/null; then |
f11781c5 | 10886 | as_mkdir_p='mkdir -p "$as_dir"' |
ad6254c5 | 10887 | else |
8a2fc586 | 10888 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
10889 | as_mkdir_p=false |
10890 | fi | |
10891 | ||
25fbec5b AK |
10892 | if test -x / >/dev/null 2>&1; then |
10893 | as_test_x='test -x' | |
7a197a62 | 10894 | else |
25fbec5b AK |
10895 | if ls -dL / >/dev/null 2>&1; then |
10896 | as_ls_L_option=L | |
10897 | else | |
10898 | as_ls_L_option= | |
10899 | fi | |
10900 | as_test_x=' | |
10901 | eval sh -c '\'' | |
10902 | if test -d "$1"; then | |
ec6a6fbe | 10903 | test -d "$1/."; |
25fbec5b | 10904 | else |
f11781c5 | 10905 | case $1 in #( |
ec6a6fbe | 10906 | -*)set "./$1";; |
25fbec5b | 10907 | esac; |
f11781c5 | 10908 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
25fbec5b AK |
10909 | ???[sx]*):;;*)false;;esac;fi |
10910 | '\'' sh | |
10911 | ' | |
7a197a62 | 10912 | fi |
25fbec5b | 10913 | as_executable_p=$as_test_x |
ad6254c5 AK |
10914 | |
10915 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 10916 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10917 | |
10918 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 10919 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10920 | |
10921 | ||
ad6254c5 | 10922 | exec 6>&1 |
f11781c5 AK |
10923 | ## ----------------------------------- ## |
10924 | ## Main body of $CONFIG_STATUS script. ## | |
10925 | ## ----------------------------------- ## | |
10926 | _ASEOF | |
10927 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
ad6254c5 | 10928 | |
f11781c5 AK |
10929 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10930 | # Save the log message, to keep $0 and so on meaningful, and to | |
ad6254c5 | 10931 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
10932 | # values after options handling. |
10933 | ac_log=" | |
ad6254c5 | 10934 | This file was extended by $as_me, which was |
f11781c5 | 10935 | generated by GNU Autoconf 2.66. Invocation command line was |
ad6254c5 AK |
10936 | |
10937 | CONFIG_FILES = $CONFIG_FILES | |
10938 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10939 | CONFIG_LINKS = $CONFIG_LINKS | |
10940 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10941 | $ $0 $@ | |
10942 | ||
7a197a62 AK |
10943 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
10944 | " | |
10945 | ||
ad6254c5 AK |
10946 | _ACEOF |
10947 | ||
ec6a6fbe AK |
10948 | case $ac_config_files in *" |
10949 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10950 | esac | |
10951 | ||
10952 | case $ac_config_headers in *" | |
10953 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10954 | esac | |
10955 | ||
10956 | ||
10957 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 10958 | # Files that config.status was made for. |
68f2de6d AK |
10959 | config_files="$ac_config_files" |
10960 | config_headers="$ac_config_headers" | |
ad6254c5 | 10961 | |
7a197a62 | 10962 | _ACEOF |
ad6254c5 | 10963 | |
ec6a6fbe | 10964 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 | 10965 | ac_cs_usage="\ |
f11781c5 AK |
10966 | \`$as_me' instantiates files and other configuration actions |
10967 | from templates according to the current configuration. Unless the files | |
10968 | and actions are specified as TAGs, all are instantiated by default. | |
ad6254c5 | 10969 | |
f11781c5 | 10970 | Usage: $0 [OPTION]... [TAG]... |
ad6254c5 AK |
10971 | |
10972 | -h, --help print this help, then exit | |
25fbec5b | 10973 | -V, --version print version number and configuration settings, then exit |
f11781c5 | 10974 | --config print configuration, then exit |
ec6a6fbe AK |
10975 | -q, --quiet, --silent |
10976 | do not print progress messages | |
ad6254c5 AK |
10977 | -d, --debug don't remove temporary files |
10978 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
10979 | --file=FILE[:TEMPLATE] |
10980 | instantiate the configuration file FILE | |
10981 | --header=FILE[:TEMPLATE] | |
10982 | instantiate the configuration header FILE | |
ad6254c5 AK |
10983 | |
10984 | Configuration files: | |
10985 | $config_files | |
10986 | ||
72b2cb61 AK |
10987 | Configuration headers: |
10988 | $config_headers | |
10989 | ||
f11781c5 | 10990 | Report bugs to the package provider." |
ad6254c5 | 10991 | |
7a197a62 | 10992 | _ACEOF |
ec6a6fbe | 10993 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
f11781c5 | 10994 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
ad6254c5 AK |
10995 | ac_cs_version="\\ |
10996 | config.status | |
f11781c5 AK |
10997 | configured by $0, generated by GNU Autoconf 2.66, |
10998 | with options \\"\$ac_cs_config\\" | |
ad6254c5 | 10999 | |
f11781c5 | 11000 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
11001 | This config.status script is free software; the Free Software Foundation |
11002 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
11003 | |
11004 | ac_pwd='$ac_pwd' | |
11005 | srcdir='$srcdir' | |
11006 | INSTALL='$INSTALL' | |
fddafd51 | 11007 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
11008 | AWK='$AWK' |
11009 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
11010 | _ACEOF |
11011 | ||
ec6a6fbe AK |
11012 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11013 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
11014 | ac_need_defaults=: |
11015 | while test $# != 0 | |
11016 | do | |
11017 | case $1 in | |
11018 | --*=*) | |
7a197a62 AK |
11019 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
11020 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
11021 | ac_shift=: |
11022 | ;; | |
7a197a62 | 11023 | *) |
ad6254c5 AK |
11024 | ac_option=$1 |
11025 | ac_optarg=$2 | |
11026 | ac_shift=shift | |
11027 | ;; | |
ad6254c5 AK |
11028 | esac |
11029 | ||
11030 | case $ac_option in | |
11031 | # Handling of the options. | |
ad6254c5 AK |
11032 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11033 | ac_cs_recheck=: ;; | |
7a197a62 | 11034 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 11035 | $as_echo "$ac_cs_version"; exit ;; |
f11781c5 AK |
11036 | --config | --confi | --conf | --con | --co | --c ) |
11037 | $as_echo "$ac_cs_config"; exit ;; | |
7a197a62 | 11038 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
11039 | debug=: ;; |
11040 | --file | --fil | --fi | --f ) | |
11041 | $ac_shift | |
ec6a6fbe AK |
11042 | case $ac_optarg in |
11043 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11044 | esac | |
f11781c5 | 11045 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
ad6254c5 AK |
11046 | ac_need_defaults=false;; |
11047 | --header | --heade | --head | --hea ) | |
11048 | $ac_shift | |
ec6a6fbe AK |
11049 | case $ac_optarg in |
11050 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11051 | esac | |
f11781c5 | 11052 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
ad6254c5 | 11053 | ac_need_defaults=false;; |
7a197a62 AK |
11054 | --he | --h) |
11055 | # Conflict between --help and --header | |
f11781c5 AK |
11056 | as_fn_error $? "ambiguous option: \`$1' |
11057 | Try \`$0 --help' for more information.";; | |
7a197a62 | 11058 | --help | --hel | -h ) |
ec6a6fbe | 11059 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
11060 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11061 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11062 | ac_cs_silent=: ;; | |
11063 | ||
11064 | # This is an error. | |
f11781c5 AK |
11065 | -*) as_fn_error $? "unrecognized option: \`$1' |
11066 | Try \`$0 --help' for more information." ;; | |
ad6254c5 | 11067 | |
f11781c5 | 11068 | *) as_fn_append ac_config_targets " $1" |
7a197a62 | 11069 | ac_need_defaults=false ;; |
ad6254c5 AK |
11070 | |
11071 | esac | |
11072 | shift | |
11073 | done | |
11074 | ||
11075 | ac_configure_extra_args= | |
11076 | ||
11077 | if $ac_cs_silent; then | |
11078 | exec 6>/dev/null | |
11079 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11080 | fi | |
11081 | ||
11082 | _ACEOF | |
ec6a6fbe | 11083 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 11084 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
11085 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
11086 | shift | |
11087 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
11088 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 11089 | export CONFIG_SHELL |
ec6a6fbe | 11090 | exec "\$@" |
ad6254c5 AK |
11091 | fi |
11092 | ||
11093 | _ACEOF | |
ec6a6fbe | 11094 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11095 | exec 5>>config.log |
11096 | { | |
11097 | echo | |
11098 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11099 | ## Running $as_me. ## | |
11100 | _ASBOX | |
ec6a6fbe | 11101 | $as_echo "$ac_log" |
7a197a62 | 11102 | } >&5 |
ad6254c5 | 11103 | |
7a197a62 | 11104 | _ACEOF |
ec6a6fbe | 11105 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 11106 | _ACEOF |
ad6254c5 | 11107 | |
ec6a6fbe | 11108 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11109 | |
11110 | # Handling of arguments. | |
ad6254c5 AK |
11111 | for ac_config_target in $ac_config_targets |
11112 | do | |
7a197a62 AK |
11113 | case $ac_config_target in |
11114 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
11115 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11116 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
11117 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
11118 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 11119 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
11120 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
11121 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 11122 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 11123 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
3041b72f | 11124 | "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;; |
93bd259b AK |
11125 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
11126 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
2bc1d759 | 11127 | "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;; |
cdd50823 | 11128 | "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;; |
7a197a62 | 11129 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 11130 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 11131 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
11132 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
11133 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
11134 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
11135 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11136 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11137 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 11138 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 11139 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
40dbaac8 | 11140 | "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;; |
7a197a62 | 11141 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
3ba4a195 | 11142 | "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;; |
7126d8c2 AK |
11143 | "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;; |
11144 | "libdaemon/client/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/client/Makefile" ;; | |
11145 | "libdaemon/server/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/server/Makefile" ;; | |
93bd259b AK |
11146 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
11147 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 11148 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 11149 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
11150 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
11151 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 11152 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 11153 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
a30491b2 | 11154 | "scripts/lvm2_lvmetad_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_init_red_hat" ;; |
dac3c36f | 11155 | "scripts/lvm2_lvmetad_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.socket" ;; |
da532741 | 11156 | "scripts/lvm2_lvmetad_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.service" ;; |
595eaf92 | 11157 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
6e5c1f75 PR |
11158 | "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;; |
11159 | "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;; | |
4417a8bd | 11160 | "scripts/lvm2_tmpfiles_red_hat.conf") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_tmpfiles_red_hat.conf" ;; |
7a197a62 | 11161 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 11162 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 11163 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
9493f1df | 11164 | "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;; |
7a197a62 | 11165 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 11166 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
11167 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
11168 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
d1e8046f | 11169 | "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;; |
7a197a62 | 11170 | |
f11781c5 | 11171 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
80992638 | 11172 | esac |
ad6254c5 AK |
11173 | done |
11174 | ||
7a197a62 | 11175 | |
ad6254c5 AK |
11176 | # If the user did not use the arguments to specify the items to instantiate, |
11177 | # then the envvar interface is used. Set only those that are not. | |
11178 | # We use the long form for the default assignment because of an extremely | |
11179 | # bizarre bug on SunOS 4.1.3. | |
11180 | if $ac_need_defaults; then | |
11181 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 11182 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
11183 | fi |
11184 | ||
11185 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 11186 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 11187 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
11188 | # Hook for its removal unless debugging. |
11189 | # Note that there is a small window in which the directory will not be cleaned: | |
11190 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
11191 | $debug || |
11192 | { | |
7a197a62 AK |
11193 | tmp= |
11194 | trap 'exit_status=$? | |
11195 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
11196 | ' 0 | |
f11781c5 | 11197 | trap 'as_fn_exit 1' 1 2 13 15 |
ad6254c5 | 11198 | } |
ad6254c5 AK |
11199 | # Create a (secure) tmp directory for tmp files. |
11200 | ||
11201 | { | |
7a197a62 | 11202 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
11203 | test -n "$tmp" && test -d "$tmp" |
11204 | } || | |
11205 | { | |
7a197a62 AK |
11206 | tmp=./conf$$-$RANDOM |
11207 | (umask 077 && mkdir "$tmp") | |
f11781c5 | 11208 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ad6254c5 | 11209 | |
ec6a6fbe AK |
11210 | # Set up the scripts for CONFIG_FILES section. |
11211 | # No need to generate them if there are no CONFIG_FILES. | |
11212 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 11213 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 11214 | |
68f2de6d | 11215 | |
f11781c5 AK |
11216 | ac_cr=`echo X | tr X '\015'` |
11217 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
11218 | # But we know of no other shell where ac_cr would be empty at this | |
11219 | # point, so we can use a bashism as a fallback. | |
11220 | if test "x$ac_cr" = x; then | |
11221 | eval ac_cr=\$\'\\r\' | |
11222 | fi | |
ec6a6fbe AK |
11223 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
11224 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
11225 | ac_cs_awk_cr='\\r' | |
11226 | else | |
11227 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 11228 | fi |
7a197a62 | 11229 | |
ec6a6fbe | 11230 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 11231 | _ACEOF |
7a197a62 | 11232 | |
8106cdd5 | 11233 | |
ec6a6fbe AK |
11234 | { |
11235 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
11236 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
11237 | echo "_ACEOF" | |
11238 | } >conf$$subs.sh || | |
f11781c5 AK |
11239 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
11240 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
1995c9ff AK |
11241 | ac_delim='%!_!# ' |
11242 | for ac_last_try in false false false false false :; do | |
ec6a6fbe | 11243 | . ./conf$$subs.sh || |
f11781c5 | 11244 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe AK |
11245 | |
11246 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
11247 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
11248 | break |
11249 | elif $ac_last_try; then | |
f11781c5 | 11250 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
1995c9ff AK |
11251 | else |
11252 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11253 | fi | |
11254 | done | |
ec6a6fbe AK |
11255 | rm -f conf$$subs.sh |
11256 | ||
11257 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11258 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
11259 | _ACEOF | |
11260 | sed -n ' | |
11261 | h | |
11262 | s/^/S["/; s/!.*/"]=/ | |
11263 | p | |
11264 | g | |
11265 | s/^[^!]*!// | |
11266 | :repl | |
11267 | t repl | |
11268 | s/'"$ac_delim"'$// | |
11269 | t delim | |
11270 | :nl | |
11271 | h | |
f11781c5 | 11272 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11273 | t more1 |
11274 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
11275 | p | |
11276 | n | |
11277 | b repl | |
11278 | :more1 | |
11279 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11280 | p | |
11281 | g | |
11282 | s/.\{148\}// | |
11283 | t nl | |
11284 | :delim | |
11285 | h | |
f11781c5 | 11286 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11287 | t more2 |
11288 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
11289 | p | |
11290 | b | |
11291 | :more2 | |
11292 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11293 | p | |
11294 | g | |
11295 | s/.\{148\}// | |
11296 | t delim | |
11297 | ' <conf$$subs.awk | sed ' | |
11298 | /^[^""]/{ | |
11299 | N | |
11300 | s/\n// | |
11301 | } | |
11302 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
11303 | rm -f conf$$subs.awk | |
11304 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11305 | _ACAWK | |
11306 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
11307 | for (key in S) S_is_set[key] = 1 | |
11308 | FS = "\a" | |
7a197a62 | 11309 | |
ec6a6fbe AK |
11310 | } |
11311 | { | |
11312 | line = $ 0 | |
11313 | nfields = split(line, field, "@") | |
11314 | substed = 0 | |
11315 | len = length(field[1]) | |
11316 | for (i = 2; i < nfields; i++) { | |
11317 | key = field[i] | |
11318 | keylen = length(key) | |
11319 | if (S_is_set[key]) { | |
11320 | value = S[key] | |
11321 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
11322 | len += length(value) + length(field[++i]) | |
11323 | substed = 1 | |
11324 | } else | |
11325 | len += 1 + keylen | |
11326 | } | |
11327 | ||
11328 | print line | |
11329 | } | |
fddafd51 | 11330 | |
ec6a6fbe | 11331 | _ACAWK |
1995c9ff | 11332 | _ACEOF |
ec6a6fbe AK |
11333 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11334 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
11335 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
11336 | else | |
11337 | cat | |
11338 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
f11781c5 | 11339 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7a197a62 AK |
11340 | _ACEOF |
11341 | ||
f11781c5 AK |
11342 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
11343 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7a197a62 AK |
11344 | # trailing colons and then remove the whole line if VPATH becomes empty |
11345 | # (actually we leave an empty line to preserve line numbers). | |
11346 | if test "x$srcdir" = x.; then | |
f11781c5 AK |
11347 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
11348 | h | |
11349 | s/// | |
11350 | s/^/:/ | |
11351 | s/[ ]*$/:/ | |
11352 | s/:\$(srcdir):/:/g | |
11353 | s/:\${srcdir}:/:/g | |
11354 | s/:@srcdir@:/:/g | |
11355 | s/^:*// | |
7a197a62 | 11356 | s/:*$// |
f11781c5 AK |
11357 | x |
11358 | s/\(=[ ]*\).*/\1/ | |
11359 | G | |
11360 | s/\n// | |
7a197a62 AK |
11361 | s/^[^=]*=[ ]*$// |
11362 | }' | |
11363 | fi | |
11364 | ||
ec6a6fbe | 11365 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11366 | fi # test -n "$CONFIG_FILES" |
11367 | ||
ec6a6fbe AK |
11368 | # Set up the scripts for CONFIG_HEADERS section. |
11369 | # No need to generate them if there are no CONFIG_HEADERS. | |
11370 | # This happens for instance with `./config.status Makefile'. | |
11371 | if test -n "$CONFIG_HEADERS"; then | |
11372 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
11373 | BEGIN { | |
11374 | _ACEOF | |
11375 | ||
11376 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11377 | # here-document in config.status, that substitutes the proper values into | |
11378 | # config.h.in to produce config.h. | |
11379 | ||
11380 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11381 | # handling of long lines. | |
11382 | ac_delim='%!_!# ' | |
11383 | for ac_last_try in false false :; do | |
11384 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
11385 | if test -z "$ac_t"; then | |
11386 | break | |
11387 | elif $ac_last_try; then | |
f11781c5 | 11388 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
ec6a6fbe AK |
11389 | else |
11390 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11391 | fi | |
11392 | done | |
11393 | ||
11394 | # For the awk script, D is an array of macro values keyed by name, | |
11395 | # likewise P contains macro parameters if any. Preserve backslash | |
11396 | # newline sequences. | |
11397 | ||
11398 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11399 | sed -n ' | |
11400 | s/.\{148\}/&'"$ac_delim"'/g | |
11401 | t rset | |
11402 | :rset | |
11403 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11404 | t def | |
11405 | d | |
11406 | :def | |
11407 | s/\\$// | |
11408 | t bsnl | |
11409 | s/["\\]/\\&/g | |
11410 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11411 | D["\1"]=" \3"/p | |
11412 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11413 | d | |
11414 | :bsnl | |
11415 | s/["\\]/\\&/g | |
11416 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11417 | D["\1"]=" \3\\\\\\n"\\/p | |
11418 | t cont | |
11419 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11420 | t cont | |
11421 | d | |
11422 | :cont | |
11423 | n | |
11424 | s/.\{148\}/&'"$ac_delim"'/g | |
11425 | t clear | |
11426 | :clear | |
11427 | s/\\$// | |
11428 | t bsnlc | |
11429 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11430 | d | |
11431 | :bsnlc | |
11432 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11433 | b cont | |
11434 | ' <confdefs.h | sed ' | |
11435 | s/'"$ac_delim"'/"\\\ | |
11436 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11437 | ||
11438 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11439 | for (key in D) D_is_set[key] = 1 | |
11440 | FS = "\a" | |
11441 | } | |
11442 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11443 | line = \$ 0 | |
11444 | split(line, arg, " ") | |
11445 | if (arg[1] == "#") { | |
11446 | defundef = arg[2] | |
11447 | mac1 = arg[3] | |
11448 | } else { | |
11449 | defundef = substr(arg[1], 2) | |
11450 | mac1 = arg[2] | |
11451 | } | |
11452 | split(mac1, mac2, "(") #) | |
11453 | macro = mac2[1] | |
11454 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11455 | if (D_is_set[macro]) { | |
11456 | # Preserve the white space surrounding the "#". | |
11457 | print prefix "define", macro P[macro] D[macro] | |
11458 | next | |
11459 | } else { | |
11460 | # Replace #undef with comments. This is necessary, for example, | |
11461 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11462 | # on some systems where configure will not decide to define it. | |
11463 | if (defundef == "undef") { | |
11464 | print "/*", prefix defundef, macro, "*/" | |
11465 | next | |
11466 | } | |
11467 | } | |
11468 | } | |
11469 | { print } | |
11470 | _ACAWK | |
11471 | _ACEOF | |
11472 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
f11781c5 | 11473 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
ec6a6fbe AK |
11474 | fi # test -n "$CONFIG_HEADERS" |
11475 | ||
7a197a62 | 11476 | |
ec6a6fbe AK |
11477 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
11478 | shift | |
11479 | for ac_tag | |
7a197a62 AK |
11480 | do |
11481 | case $ac_tag in | |
11482 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11483 | esac | |
11484 | case $ac_mode$ac_tag in | |
11485 | :[FHL]*:*);; | |
f11781c5 | 11486 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7a197a62 AK |
11487 | :[FH]-) ac_tag=-:-;; |
11488 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11489 | esac | |
11490 | ac_save_IFS=$IFS | |
11491 | IFS=: | |
11492 | set x $ac_tag | |
11493 | IFS=$ac_save_IFS | |
11494 | shift | |
11495 | ac_file=$1 | |
11496 | shift | |
11497 | ||
11498 | case $ac_mode in | |
11499 | :L) ac_source=$1;; | |
11500 | :[FH]) | |
11501 | ac_file_inputs= | |
11502 | for ac_f | |
11503 | do | |
11504 | case $ac_f in | |
11505 | -) ac_f="$tmp/stdin";; | |
11506 | *) # Look for the file first in the build tree, then in the source tree | |
11507 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11508 | # because $ac_f cannot contain `:'. | |
11509 | test -f "$ac_f" || | |
11510 | case $ac_f in | |
11511 | [\\/$]*) false;; | |
11512 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11513 | esac || | |
f11781c5 | 11514 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7a197a62 | 11515 | esac |
ec6a6fbe | 11516 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
f11781c5 | 11517 | as_fn_append ac_file_inputs " '$ac_f'" |
7a197a62 AK |
11518 | done |
11519 | ||
11520 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11521 | # use $as_me), people would be surprised to read: | |
11522 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
11523 | configure_input='Generated from '` |
11524 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
11525 | `' by configure.' | |
7a197a62 AK |
11526 | if test x"$ac_file" != x-; then |
11527 | configure_input="$ac_file. $configure_input" | |
f11781c5 | 11528 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
ec6a6fbe | 11529 | $as_echo "$as_me: creating $ac_file" >&6;} |
7a197a62 | 11530 | fi |
ec6a6fbe AK |
11531 | # Neutralize special characters interpreted by sed in replacement strings. |
11532 | case $configure_input in #( | |
11533 | *\&* | *\|* | *\\* ) | |
11534 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
11535 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
11536 | *) ac_sed_conf_input=$configure_input;; | |
11537 | esac | |
7a197a62 AK |
11538 | |
11539 | case $ac_tag in | |
ec6a6fbe | 11540 | *:-:* | *:-) cat >"$tmp/stdin" \ |
f11781c5 | 11541 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7a197a62 AK |
11542 | esac |
11543 | ;; | |
80992638 | 11544 | esac |
8106cdd5 | 11545 | |
7a197a62 | 11546 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 11547 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
11548 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11549 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 11550 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 11551 | $as_echo X"$ac_file" | |
7a197a62 AK |
11552 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11553 | s//\1/ | |
11554 | q | |
11555 | } | |
11556 | /^X\(\/\/\)[^/].*/{ | |
11557 | s//\1/ | |
11558 | q | |
11559 | } | |
11560 | /^X\(\/\/\)$/{ | |
11561 | s//\1/ | |
11562 | q | |
11563 | } | |
11564 | /^X\(\/\).*/{ | |
11565 | s//\1/ | |
11566 | q | |
11567 | } | |
11568 | s/.*/./; q'` | |
f11781c5 | 11569 | as_dir="$ac_dir"; as_fn_mkdir_p |
ad6254c5 AK |
11570 | ac_builddir=. |
11571 | ||
7a197a62 AK |
11572 | case "$ac_dir" in |
11573 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11574 | *) | |
ec6a6fbe | 11575 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 11576 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 11577 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
11578 | case $ac_top_builddir_sub in |
11579 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11580 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11581 | esac ;; | |
11582 | esac | |
11583 | ac_abs_top_builddir=$ac_pwd | |
11584 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11585 | # for backward compatibility: | |
11586 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
11587 | |
11588 | case $srcdir in | |
7a197a62 | 11589 | .) # We are building in place. |
ad6254c5 | 11590 | ac_srcdir=. |
7a197a62 AK |
11591 | ac_top_srcdir=$ac_top_builddir_sub |
11592 | ac_abs_top_srcdir=$ac_pwd ;; | |
11593 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 11594 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
11595 | ac_top_srcdir=$srcdir |
11596 | ac_abs_top_srcdir=$srcdir ;; | |
11597 | *) # Relative name. | |
11598 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11599 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11600 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 11601 | esac |
7a197a62 | 11602 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 11603 | |
ad6254c5 | 11604 | |
7a197a62 AK |
11605 | case $ac_mode in |
11606 | :F) | |
11607 | # | |
11608 | # CONFIG_FILE | |
11609 | # | |
ad6254c5 AK |
11610 | |
11611 | case $INSTALL in | |
11612 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 11613 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 11614 | esac |
fddafd51 ZK |
11615 | ac_MKDIR_P=$MKDIR_P |
11616 | case $MKDIR_P in | |
11617 | [\\/$]* | ?:[\\/]* ) ;; | |
11618 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
11619 | esac | |
7a197a62 | 11620 | _ACEOF |
795ca3e5 | 11621 | |
ec6a6fbe | 11622 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11623 | # If the template does not know about datarootdir, expand it. |
11624 | # FIXME: This hack should be removed a few years after 2.60. | |
11625 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
ec6a6fbe AK |
11626 | ac_sed_dataroot=' |
11627 | /datarootdir/ { | |
7a197a62 AK |
11628 | p |
11629 | q | |
11630 | } | |
11631 | /@datadir@/p | |
11632 | /@docdir@/p | |
11633 | /@infodir@/p | |
11634 | /@localedir@/p | |
f11781c5 | 11635 | /@mandir@/p' |
ec6a6fbe | 11636 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7a197a62 AK |
11637 | *datarootdir*) ac_datarootdir_seen=yes;; |
11638 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
f11781c5 | 11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
ec6a6fbe | 11640 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
ad6254c5 | 11641 | _ACEOF |
ec6a6fbe | 11642 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11643 | ac_datarootdir_hack=' |
11644 | s&@datadir@&$datadir&g | |
11645 | s&@docdir@&$docdir&g | |
11646 | s&@infodir@&$infodir&g | |
11647 | s&@localedir@&$localedir&g | |
11648 | s&@mandir@&$mandir&g | |
f11781c5 | 11649 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7a197a62 AK |
11650 | esac |
11651 | _ACEOF | |
11652 | ||
11653 | # Neutralize VPATH when `$srcdir' = `.'. | |
11654 | # Shell code in configure.ac might set extrasub. | |
11655 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
11656 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11657 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
11658 | $extrasub |
11659 | _ACEOF | |
ec6a6fbe | 11660 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
11661 | :t |
11662 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 11663 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 11664 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 11665 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
11666 | s&@srcdir@&$ac_srcdir&;t t |
11667 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11668 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11669 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11670 | s&@builddir@&$ac_builddir&;t t | |
11671 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11672 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11673 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 11674 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 11675 | $ac_datarootdir_hack |
ec6a6fbe AK |
11676 | " |
11677 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
f11781c5 | 11678 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11679 | |
11680 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11681 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
11682 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
f11781c5 AK |
11683 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
11684 | which seems to be undefined. Please make sure it is defined" >&5 | |
ec6a6fbe | 11685 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f11781c5 | 11686 | which seems to be undefined. Please make sure it is defined" >&2;} |
7a197a62 AK |
11687 | |
11688 | rm -f "$tmp/stdin" | |
72b2cb61 | 11689 | case $ac_file in |
ec6a6fbe AK |
11690 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
11691 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
11692 | esac \ | |
f11781c5 | 11693 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11694 | ;; |
11695 | :H) | |
11696 | # | |
11697 | # CONFIG_HEADER | |
11698 | # | |
72b2cb61 | 11699 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
11700 | { |
11701 | $as_echo "/* $configure_input */" \ | |
11702 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
11703 | } >"$tmp/config.h" \ | |
f11781c5 | 11704 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
ec6a6fbe | 11705 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
f11781c5 | 11706 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
ec6a6fbe | 11707 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
72b2cb61 | 11708 | else |
ec6a6fbe AK |
11709 | rm -f "$ac_file" |
11710 | mv "$tmp/config.h" "$ac_file" \ | |
f11781c5 | 11711 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
72b2cb61 AK |
11712 | fi |
11713 | else | |
ec6a6fbe AK |
11714 | $as_echo "/* $configure_input */" \ |
11715 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
f11781c5 | 11716 | || as_fn_error $? "could not create -" "$LINENO" 5 |
72b2cb61 | 11717 | fi |
7a197a62 AK |
11718 | ;; |
11719 | ||
11720 | ||
11721 | esac | |
11722 | ||
11723 | done # for ac_tag | |
795ca3e5 | 11724 | |
795ca3e5 | 11725 | |
f11781c5 | 11726 | as_fn_exit 0 |
ad6254c5 | 11727 | _ACEOF |
ad6254c5 AK |
11728 | ac_clean_files=$ac_clean_files_save |
11729 | ||
ec6a6fbe | 11730 | test $ac_write_fail = 0 || |
f11781c5 | 11731 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe | 11732 | |
ad6254c5 AK |
11733 | |
11734 | # configure is writing to config.log, and then calls config.status. | |
11735 | # config.status does its own redirection, appending to config.log. | |
11736 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11737 | # by configure, so config.status won't be able to write to it; its | |
11738 | # output is simply discarded. So we exec the FD to /dev/null, | |
11739 | # effectively closing config.log, so it can be properly (re)opened and | |
11740 | # appended to by config.status. When coming back to configure, we | |
11741 | # need to make the FD available again. | |
11742 | if test "$no_create" != yes; then | |
11743 | ac_cs_success=: | |
11744 | ac_config_status_args= | |
11745 | test "$silent" = yes && | |
11746 | ac_config_status_args="$ac_config_status_args --quiet" | |
11747 | exec 5>/dev/null | |
11748 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11749 | exec 5>>config.log | |
11750 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11751 | # would make configure fail if this is the last instruction. | |
f11781c5 | 11752 | $ac_cs_success || as_fn_exit 1 |
ad6254c5 | 11753 | fi |
ec6a6fbe | 11754 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
f11781c5 | 11755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
ec6a6fbe AK |
11756 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
11757 | fi | |
795ca3e5 | 11758 | |
2dc95e1c AK |
11759 | |
11760 | if test x$ODIRECT != xyes; then | |
f11781c5 | 11761 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
ec6a6fbe | 11762 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} |
2dc95e1c | 11763 | fi |