]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
f11781c5 AK |
3 | # Generated by GNU Autoconf 2.66. |
4 | # | |
795ca3e5 | 5 | # |
7a197a62 | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
f11781c5 AK |
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
8 | # Foundation, Inc. | |
9 | # | |
10 | # | |
795ca3e5 AK |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
f11781c5 AK |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
ad6254c5 | 16 | |
25fbec5b AK |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
20 | emulate sh |
21 | NULLCMD=: | |
ec6a6fbe | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
25 | setopt NO_GLOB_SUBST |
26 | else | |
f11781c5 AK |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
25fbec5b | 32 | esac |
7a197a62 | 33 | fi |
25fbec5b AK |
34 | |
35 | ||
ec6a6fbe AK |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 56 | else |
ec6a6fbe AK |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
f11781c5 | 60 | case $arg in #( |
ec6a6fbe AK |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 69 | fi |
ec6a6fbe AK |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
ad6254c5 AK |
81 | fi |
82 | ||
ad6254c5 | 83 | |
7a197a62 AK |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 92 | case $0 in #(( |
7a197a62 AK |
93 | *[\\/]* ) as_myself=$0 ;; |
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
95 | for as_dir in $PATH | |
96 | do | |
97 | IFS=$as_save_IFS | |
98 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
100 | done | |
7a197a62 AK |
101 | IFS=$as_save_IFS |
102 | ||
103 | ;; | |
104 | esac | |
105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
106 | # in which case we are not to be found in the path. | |
107 | if test "x$as_myself" = x; then | |
108 | as_myself=$0 | |
109 | fi | |
110 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 112 | exit 1 |
7a197a62 AK |
113 | fi |
114 | ||
f11781c5 AK |
115 | # Unset variables that we do not need and which cause bugs (e.g. in |
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
117 | # suppresses any "Segmentation fault" message there. '((' could | |
118 | # trigger a bug in pdksh 5.2.14. | |
119 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
120 | do eval test x\${$as_var+set} = xset \ | |
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 122 | done |
ad6254c5 AK |
123 | PS1='$ ' |
124 | PS2='> ' | |
125 | PS4='+ ' | |
126 | ||
127 | # NLS nuisances. | |
ec6a6fbe AK |
128 | LC_ALL=C |
129 | export LC_ALL | |
130 | LANGUAGE=C | |
131 | export LANGUAGE | |
ad6254c5 | 132 | |
f11781c5 AK |
133 | # CDPATH. |
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
135 | ||
136 | if test "x$CONFIG_SHELL" = x; then | |
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
138 | emulate sh | |
139 | NULLCMD=: | |
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
141 | # is contrary to our usage. Disable this feature. | |
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
143 | setopt NO_GLOB_SUBST | |
144 | else | |
145 | case \`(set -o) 2>/dev/null\` in #( | |
146 | *posix*) : | |
147 | set -o posix ;; #( | |
148 | *) : | |
149 | ;; | |
150 | esac | |
151 | fi | |
152 | " | |
153 | as_required="as_fn_return () { (exit \$1); } | |
154 | as_fn_success () { as_fn_return 0; } | |
155 | as_fn_failure () { as_fn_return 1; } | |
156 | as_fn_ret_success () { return 0; } | |
157 | as_fn_ret_failure () { return 1; } | |
158 | ||
159 | exitcode=0 | |
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
165 | ||
166 | else | |
167 | exitcode=1; echo positional parameters were not saved. | |
168 | fi | |
169 | test x\$exitcode = x0 || exit 1" | |
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
174 | test \$(( 1 + 1 )) = 2 || exit 1" | |
175 | if (eval "$as_required") 2>/dev/null; then : | |
176 | as_have_required=yes | |
177 | else | |
178 | as_have_required=no | |
179 | fi | |
180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
181 | ||
182 | else | |
183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
184 | as_found=false | |
185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
186 | do | |
187 | IFS=$as_save_IFS | |
188 | test -z "$as_dir" && as_dir=. | |
189 | as_found=: | |
190 | case $as_dir in #( | |
191 | /*) | |
192 | for as_base in sh bash ksh sh5; do | |
193 | # Try only shells that exist, to save several forks. | |
194 | as_shell=$as_dir/$as_base | |
195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | CONFIG_SHELL=$as_shell as_have_required=yes | |
198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
199 | break 2 | |
200 | fi | |
201 | fi | |
202 | done;; | |
203 | esac | |
204 | as_found=false | |
205 | done | |
206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
208 | CONFIG_SHELL=$SHELL as_have_required=yes | |
209 | fi; } | |
210 | IFS=$as_save_IFS | |
211 | ||
212 | ||
213 | if test "x$CONFIG_SHELL" != x; then : | |
214 | # We cannot yet assume a decent shell, so we have to provide a | |
215 | # neutralization value for shells without unset; and this also | |
216 | # works around shells that cannot unset nonexistent variables. | |
217 | BASH_ENV=/dev/null | |
218 | ENV=/dev/null | |
219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
220 | export CONFIG_SHELL | |
221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
222 | fi | |
223 | ||
224 | if test x$as_have_required = xno; then : | |
225 | $as_echo "$0: This script requires a shell more modern than all" | |
226 | $as_echo "$0: the shells that I found on your system." | |
227 | if test x${ZSH_VERSION+set} = xset ; then | |
228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
230 | else | |
231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
232 | $0: including any error possibly output before this | |
233 | $0: message. Then install a modern shell, or manually run | |
234 | $0: the script under such a shell if you do have one." | |
235 | fi | |
236 | exit 1 | |
237 | fi | |
238 | fi | |
239 | fi | |
240 | SHELL=${CONFIG_SHELL-/bin/sh} | |
241 | export SHELL | |
242 | # Unset more variables known to interfere with behavior of common tools. | |
243 | CLICOLOR_FORCE= GREP_OPTIONS= | |
244 | unset CLICOLOR_FORCE GREP_OPTIONS | |
245 | ||
246 | ## --------------------- ## | |
247 | ## M4sh Shell Functions. ## | |
248 | ## --------------------- ## | |
249 | # as_fn_unset VAR | |
250 | # --------------- | |
251 | # Portably unset VAR. | |
252 | as_fn_unset () | |
253 | { | |
254 | { eval $1=; unset $1;} | |
255 | } | |
256 | as_unset=as_fn_unset | |
257 | ||
258 | # as_fn_set_status STATUS | |
259 | # ----------------------- | |
260 | # Set $? to STATUS, without forking. | |
261 | as_fn_set_status () | |
262 | { | |
263 | return $1 | |
264 | } # as_fn_set_status | |
265 | ||
266 | # as_fn_exit STATUS | |
267 | # ----------------- | |
268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
269 | as_fn_exit () | |
270 | { | |
271 | set +e | |
272 | as_fn_set_status $1 | |
273 | exit $1 | |
274 | } # as_fn_exit | |
275 | ||
276 | # as_fn_mkdir_p | |
277 | # ------------- | |
278 | # Create "$as_dir" as a directory, including parents if necessary. | |
279 | as_fn_mkdir_p () | |
280 | { | |
281 | ||
282 | case $as_dir in #( | |
283 | -*) as_dir=./$as_dir;; | |
284 | esac | |
285 | test -d "$as_dir" || eval $as_mkdir_p || { | |
286 | as_dirs= | |
287 | while :; do | |
288 | case $as_dir in #( | |
289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
290 | *) as_qdir=$as_dir;; | |
291 | esac | |
292 | as_dirs="'$as_qdir' $as_dirs" | |
293 | as_dir=`$as_dirname -- "$as_dir" || | |
294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
295 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
296 | X"$as_dir" : 'X\(//\)$' \| \ | |
297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
298 | $as_echo X"$as_dir" | | |
299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
300 | s//\1/ | |
301 | q | |
302 | } | |
303 | /^X\(\/\/\)[^/].*/{ | |
304 | s//\1/ | |
305 | q | |
306 | } | |
307 | /^X\(\/\/\)$/{ | |
308 | s//\1/ | |
309 | q | |
310 | } | |
311 | /^X\(\/\).*/{ | |
312 | s//\1/ | |
313 | q | |
314 | } | |
315 | s/.*/./; q'` | |
316 | test -d "$as_dir" && break | |
317 | done | |
318 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
319 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
320 | ||
321 | ||
322 | } # as_fn_mkdir_p | |
323 | # as_fn_append VAR VALUE | |
324 | # ---------------------- | |
325 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
326 | # advantage of any shell optimizations that allow amortized linear growth over | |
327 | # repeated appends, instead of the typical quadratic growth present in naive | |
328 | # implementations. | |
329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
330 | eval 'as_fn_append () | |
331 | { | |
332 | eval $1+=\$2 | |
333 | }' | |
334 | else | |
335 | as_fn_append () | |
336 | { | |
337 | eval $1=\$$1\$2 | |
338 | } | |
339 | fi # as_fn_append | |
340 | ||
341 | # as_fn_arith ARG... | |
342 | # ------------------ | |
343 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
345 | # must be portable across $(()) and expr. | |
346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
347 | eval 'as_fn_arith () | |
348 | { | |
349 | as_val=$(( $* )) | |
350 | }' | |
351 | else | |
352 | as_fn_arith () | |
353 | { | |
354 | as_val=`expr "$@" || test $? -eq 1` | |
355 | } | |
356 | fi # as_fn_arith | |
357 | ||
358 | ||
359 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
360 | # ---------------------------------------- | |
361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
363 | # script with STATUS, using 1 if that was 0. | |
364 | as_fn_error () | |
365 | { | |
366 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
367 | if test "$4"; then | |
368 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
370 | fi | |
371 | $as_echo "$as_me: error: $2" >&2 | |
372 | as_fn_exit $as_status | |
373 | } # as_fn_error | |
374 | ||
7a197a62 AK |
375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
377 | as_expr=expr |
378 | else | |
379 | as_expr=false | |
380 | fi | |
381 | ||
7a197a62 | 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
383 | as_basename=basename |
384 | else | |
385 | as_basename=false | |
386 | fi | |
387 | ||
f11781c5 AK |
388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
389 | as_dirname=dirname | |
390 | else | |
391 | as_dirname=false | |
392 | fi | |
ad6254c5 | 393 | |
7a197a62 | 394 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
396 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 398 | $as_echo X/"$0" | |
7a197a62 AK |
399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
400 | s//\1/ | |
401 | q | |
402 | } | |
403 | /^X\/\(\/\/\)$/{ | |
404 | s//\1/ | |
405 | q | |
406 | } | |
407 | /^X\/\(\/\).*/{ | |
408 | s//\1/ | |
409 | q | |
410 | } | |
411 | s/.*/./; q'` | |
ad6254c5 | 412 | |
f11781c5 AK |
413 | # Avoid depending upon Character Ranges. |
414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
417 | as_cr_digits='0123456789' | |
418 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
ad6254c5 | 419 | |
ad6254c5 | 420 | |
f11781c5 AK |
421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
426 | sed -n ' | |
427 | p | |
428 | /[$]LINENO/= | |
429 | ' <$as_myself | | |
430 | sed ' | |
431 | s/[$]LINENO.*/&-/ | |
432 | t lineno | |
433 | b | |
434 | :lineno | |
435 | N | |
436 | :loop | |
437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
438 | t loop | |
439 | s/-\n.*// | |
440 | ' >$as_me.lineno && | |
441 | chmod +x "$as_me.lineno" || | |
442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
ad6254c5 | 443 | |
f11781c5 AK |
444 | # Don't try to exec as it changes $[0], causing all sort of problems |
445 | # (the dirname of $[0] is not the place where we might find the | |
446 | # original and so on. Autoconf is especially sensitive to this). | |
447 | . "./$as_me.lineno" | |
448 | # Exit status is that of the last command. | |
449 | exit | |
7a197a62 | 450 | } |
ad6254c5 | 451 | |
f11781c5 AK |
452 | ECHO_C= ECHO_N= ECHO_T= |
453 | case `echo -n x` in #((((( | |
454 | -n*) | |
455 | case `echo 'xy\c'` in | |
456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
457 | xy) ECHO_C='\c';; | |
458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
459 | ECHO_T=' ';; | |
460 | esac;; | |
461 | *) | |
462 | ECHO_N='-n';; | |
463 | esac | |
ad6254c5 | 464 | |
f11781c5 AK |
465 | rm -f conf$$ conf$$.exe conf$$.file |
466 | if test -d conf$$.dir; then | |
467 | rm -f conf$$.dir/conf$$.file | |
468 | else | |
469 | rm -f conf$$.dir | |
470 | mkdir conf$$.dir 2>/dev/null | |
7a197a62 | 471 | fi |
f11781c5 AK |
472 | if (echo >conf$$.file) 2>/dev/null; then |
473 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
474 | as_ln_s='ln -s' | |
475 | # ... but there are two gotchas: | |
476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
478 | # In both cases, we have to default to `cp -p'. | |
479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
480 | as_ln_s='cp -p' | |
481 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
482 | as_ln_s=ln | |
483 | else | |
484 | as_ln_s='cp -p' | |
485 | fi | |
7a197a62 | 486 | else |
f11781c5 | 487 | as_ln_s='cp -p' |
7a197a62 | 488 | fi |
f11781c5 AK |
489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
490 | rmdir conf$$.dir 2>/dev/null | |
7a197a62 | 491 | |
f11781c5 AK |
492 | if mkdir -p . 2>/dev/null; then |
493 | as_mkdir_p='mkdir -p "$as_dir"' | |
494 | else | |
495 | test -d ./-p && rmdir ./-p | |
496 | as_mkdir_p=false | |
7a197a62 AK |
497 | fi |
498 | ||
f11781c5 AK |
499 | if test -x / >/dev/null 2>&1; then |
500 | as_test_x='test -x' | |
7a197a62 | 501 | else |
f11781c5 AK |
502 | if ls -dL / >/dev/null 2>&1; then |
503 | as_ls_L_option=L | |
504 | else | |
505 | as_ls_L_option= | |
506 | fi | |
507 | as_test_x=' | |
508 | eval sh -c '\'' | |
509 | if test -d "$1"; then | |
510 | test -d "$1/."; | |
511 | else | |
512 | case $1 in #( | |
513 | -*)set "./$1";; | |
514 | esac; | |
515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
516 | ???[sx]*):;;*)false;;esac;fi | |
517 | '\'' sh | |
518 | ' | |
7a197a62 | 519 | fi |
f11781c5 | 520 | as_executable_p=$as_test_x |
7a197a62 | 521 | |
f11781c5 AK |
522 | # Sed expression to map a string onto a valid CPP name. |
523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7a197a62 | 524 | |
f11781c5 AK |
525 | # Sed expression to map a string onto a valid variable name. |
526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7a197a62 AK |
527 | |
528 | ||
f11781c5 AK |
529 | test -n "$DJDIR" || exec 7<&0 </dev/null |
530 | exec 6>&1 | |
ad6254c5 AK |
531 | |
532 | # Name of the host. | |
f11781c5 | 533 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
ad6254c5 AK |
534 | # so uname gets run too. |
535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
536 | ||
ad6254c5 AK |
537 | # |
538 | # Initializations. | |
539 | # | |
795ca3e5 | 540 | ac_default_prefix=/usr/local |
7a197a62 | 541 | ac_clean_files= |
ad6254c5 | 542 | ac_config_libobj_dir=. |
7a197a62 | 543 | LIBOBJS= |
ad6254c5 AK |
544 | cross_compiling=no |
545 | subdirs= | |
546 | MFLAGS= | |
547 | MAKEFLAGS= | |
ad6254c5 | 548 | |
ad6254c5 AK |
549 | # Identity of this package. |
550 | PACKAGE_NAME= | |
551 | PACKAGE_TARNAME= | |
552 | PACKAGE_VERSION= | |
553 | PACKAGE_STRING= | |
554 | PACKAGE_BUGREPORT= | |
f11781c5 | 555 | PACKAGE_URL= |
ad6254c5 AK |
556 | |
557 | ac_unique_file="lib/device/dev-cache.h" | |
558 | # Factoring default headers for most tests. | |
559 | ac_includes_default="\ | |
560 | #include <stdio.h> | |
25fbec5b | 561 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
562 | # include <sys/types.h> |
563 | #endif | |
25fbec5b | 564 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
565 | # include <sys/stat.h> |
566 | #endif | |
25fbec5b | 567 | #ifdef STDC_HEADERS |
ad6254c5 AK |
568 | # include <stdlib.h> |
569 | # include <stddef.h> | |
570 | #else | |
25fbec5b | 571 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
572 | # include <stdlib.h> |
573 | # endif | |
574 | #endif | |
25fbec5b AK |
575 | #ifdef HAVE_STRING_H |
576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
577 | # include <memory.h> |
578 | # endif | |
579 | # include <string.h> | |
580 | #endif | |
25fbec5b | 581 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
582 | # include <strings.h> |
583 | #endif | |
25fbec5b | 584 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 585 | # include <inttypes.h> |
ad6254c5 | 586 | #endif |
25fbec5b | 587 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
588 | # include <stdint.h> |
589 | #endif | |
25fbec5b | 590 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
591 | # include <unistd.h> |
592 | #endif" | |
593 | ||
f11781c5 | 594 | ac_header_list= |
795ca3e5 | 595 | ac_default_prefix=/usr |
ec6a6fbe | 596 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 597 | usrsbindir |
ec6a6fbe | 598 | usrlibdir |
a5f46f6a AK |
599 | udevdir |
600 | udev_prefix | |
ec6a6fbe AK |
601 | tmpdir |
602 | kernelvsn | |
603 | missingkernel | |
604 | kerneldir | |
605 | interface | |
6e5c1f75 | 606 | DMEVENTD_PIDFILE |
23b059e7 | 607 | WRITE_INSTALL |
0878503f | 608 | UDEV_SYNC |
a5f46f6a | 609 | UDEV_RULES |
f7f0854e | 610 | UDEV_PC |
54b362f9 | 611 | TESTING |
ec6a6fbe AK |
612 | STATIC_LINK |
613 | STATICDIR | |
614 | SNAPSHOTS | |
f7f0854e | 615 | SELINUX_PC |
e1b8a236 | 616 | SELINUX_LIBS |
cac52ca4 | 617 | REPLICATORS |
539f4a77 | 618 | READLINE_LIBS |
cac52ca4 | 619 | RAID |
f30875db | 620 | PTHREAD_LIBS |
ec6a6fbe AK |
621 | POOL |
622 | PKGCONFIG | |
606d0858 | 623 | OCFDIR |
37ddf259 | 624 | OCF |
ec6a6fbe AK |
625 | MIRRORS |
626 | LVM_RELEASE_DATE | |
627 | LVM_RELEASE | |
628 | LVM_PATCHLEVEL | |
629 | LVM_MINOR | |
630 | LVM_MAJOR | |
bf456146 | 631 | LVM_LIBAPI |
ec6a6fbe | 632 | LVM_VERSION |
ec6a6fbe AK |
633 | LVM1_FALLBACK |
634 | LVM1 | |
635 | LOCALEDIR | |
636 | LIB_SUFFIX | |
637 | LDDEPS | |
638 | JOBS | |
639 | INTL_PACKAGE | |
640 | INTL | |
ec6a6fbe AK |
641 | HAVE_REALTIME |
642 | HAVE_LIBDL | |
ec6a6fbe AK |
643 | FSADM |
644 | DM_LIB_PATCHLEVEL | |
645 | DM_LIB_VERSION | |
646 | DM_IOCTLS | |
647 | DM_DEVICE_UID | |
648 | DM_DEVICE_MODE | |
649 | DM_DEVICE_GID | |
650 | DM_COMPAT | |
d1e8046f | 651 | DMEVENTD_PATH |
ec6a6fbe | 652 | DMEVENTD |
19a2c6e0 | 653 | DL_LIBS |
ec6a6fbe | 654 | DEVMAPPER |
b1f08e51 | 655 | DEFAULT_RUN_DIR |
3399ae32 | 656 | DEFAULT_LOCK_DIR |
fea55602 | 657 | DEFAULT_DATA_ALIGNMENT |
3399ae32 AK |
658 | DEFAULT_CACHE_SUBDIR |
659 | DEFAULT_BACKUP_SUBDIR | |
660 | DEFAULT_ARCHIVE_SUBDIR | |
661 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
662 | DEBUG |
663 | COPTIMISE_FLAG | |
e2997b73 | 664 | CONFDIR |
ec6a6fbe | 665 | CMDLIB |
c89bc357 | 666 | CLVMD_CMANAGERS |
ec6a6fbe AK |
667 | CLVMD |
668 | CLUSTER | |
669 | CLDWHOLEARCHIVE | |
670 | CLDNOWHOLEARCHIVE | |
671 | CLDFLAGS | |
672 | BUILD_DMEVENTD | |
66fd4529 | 673 | BUILD_CMIRRORD |
572fefeb | 674 | APPLIB |
ec6a6fbe AK |
675 | MODPROBE_CMD |
676 | MSGFMT | |
677 | LVM2CMD_LIB | |
572fefeb | 678 | LVM2APP_LIB |
d93275eb PR |
679 | UDEV_LIBS |
680 | UDEV_CFLAGS | |
54b362f9 AK |
681 | VALGRIND |
682 | RUBY19 | |
fd4728e1 | 683 | GENPNG |
ec6a6fbe AK |
684 | GENHTML |
685 | LCOV | |
90c80887 AK |
686 | SACKPT_LIBS |
687 | SACKPT_CFLAGS | |
a946372e AK |
688 | DLM_LIBS |
689 | DLM_CFLAGS | |
e2997b73 AK |
690 | CPG_LIBS |
691 | CPG_CFLAGS | |
692 | CONFDB_LIBS | |
693 | CONFDB_CFLAGS | |
a946372e AK |
694 | SALCK_LIBS |
695 | SALCK_CFLAGS | |
e2997b73 AK |
696 | QUORUM_LIBS |
697 | QUORUM_CFLAGS | |
a946372e AK |
698 | COROSYNC_LIBS |
699 | COROSYNC_CFLAGS | |
700 | CMAN_LIBS | |
701 | CMAN_CFLAGS | |
702 | GULM_LIBS | |
703 | GULM_CFLAGS | |
704 | CCS_LIBS | |
705 | CCS_CFLAGS | |
706 | PKGCONFIGINIT_LIBS | |
707 | PKGCONFIGINIT_CFLAGS | |
f11781c5 AK |
708 | PKG_CONFIG_LIBDIR |
709 | PKG_CONFIG_PATH | |
e2997b73 | 710 | PKG_CONFIG |
ec6a6fbe AK |
711 | POW_LIB |
712 | LIBOBJS | |
713 | ALLOCA | |
714 | CSCOPE_CMD | |
715 | CFLOW_CMD | |
716 | RANLIB | |
717 | MKDIR_P | |
718 | SET_MAKE | |
719 | LN_S | |
720 | INSTALL_DATA | |
721 | INSTALL_SCRIPT | |
722 | INSTALL_PROGRAM | |
723 | EGREP | |
724 | GREP | |
725 | CPP | |
726 | OBJEXT | |
727 | EXEEXT | |
728 | ac_ct_CC | |
729 | CPPFLAGS | |
730 | LDFLAGS | |
731 | CFLAGS | |
732 | CC | |
733 | AWK | |
734 | SED | |
735 | target_os | |
736 | target_vendor | |
737 | target_cpu | |
738 | target | |
739 | host_os | |
740 | host_vendor | |
741 | host_cpu | |
742 | host | |
743 | build_os | |
744 | build_vendor | |
745 | build_cpu | |
746 | build | |
747 | target_alias | |
748 | host_alias | |
749 | build_alias | |
750 | LIBS | |
751 | ECHO_T | |
752 | ECHO_N | |
753 | ECHO_C | |
754 | DEFS | |
755 | mandir | |
756 | localedir | |
757 | libdir | |
758 | psdir | |
759 | pdfdir | |
760 | dvidir | |
761 | htmldir | |
762 | infodir | |
763 | docdir | |
764 | oldincludedir | |
765 | includedir | |
766 | localstatedir | |
767 | sharedstatedir | |
768 | sysconfdir | |
769 | datadir | |
770 | datarootdir | |
771 | libexecdir | |
772 | sbindir | |
773 | bindir | |
774 | program_transform_name | |
775 | prefix | |
776 | exec_prefix | |
f11781c5 | 777 | PACKAGE_URL |
ec6a6fbe AK |
778 | PACKAGE_BUGREPORT |
779 | PACKAGE_STRING | |
780 | PACKAGE_VERSION | |
781 | PACKAGE_TARNAME | |
782 | PACKAGE_NAME | |
783 | PATH_SEPARATOR | |
784 | SHELL' | |
ad6254c5 | 785 | ac_subst_files='' |
ec6a6fbe AK |
786 | ac_user_opts=' |
787 | enable_option_checking | |
788 | enable_static_link | |
789 | with_user | |
790 | with_group | |
791 | with_device_uid | |
792 | with_device_gid | |
793 | with_device_mode | |
d0df875d | 794 | with_device_nodes_on |
ec6a6fbe AK |
795 | enable_lvm1_fallback |
796 | with_lvm1 | |
797 | with_pool | |
798 | with_cluster | |
799 | with_snapshots | |
800 | with_mirrors | |
cac52ca4 | 801 | with_raid |
8fea97b7 | 802 | with_replicators |
ec6a6fbe AK |
803 | enable_readline |
804 | enable_realtime | |
37ddf259 | 805 | enable_ocf |
606d0858 | 806 | with_ocfdir |
ec6a6fbe | 807 | with_clvmd |
8c4e8a18 | 808 | with_clvmd_pidfile |
66fd4529 AK |
809 | enable_cmirrord |
810 | with_cmirrord_pidfile | |
ec6a6fbe AK |
811 | enable_debug |
812 | with_optimisation | |
813 | enable_profiling | |
54b362f9 | 814 | enable_testing |
d1e8046f | 815 | enable_valgrind_pool |
ec6a6fbe | 816 | enable_devmapper |
a5f46f6a AK |
817 | enable_udev_sync |
818 | enable_udev_rules | |
ec6a6fbe | 819 | enable_compat |
95eaa683 | 820 | enable_units_compat |
ec6a6fbe AK |
821 | enable_ioctl |
822 | enable_o_direct | |
572fefeb | 823 | enable_applib |
ec6a6fbe AK |
824 | enable_cmdlib |
825 | enable_pkgconfig | |
23b059e7 | 826 | enable_write_install |
ec6a6fbe AK |
827 | enable_fsadm |
828 | enable_dmeventd | |
829 | enable_selinux | |
830 | enable_nls | |
831 | with_localedir | |
832 | with_confdir | |
833 | with_staticdir | |
834 | with_usrlibdir | |
835 | with_usrsbindir | |
a5f46f6a | 836 | with_udev_prefix |
78ce7acc | 837 | with_udevdir |
ec6a6fbe AK |
838 | with_dmeventd_pidfile |
839 | with_dmeventd_path | |
8bae0a1e | 840 | with_default_run_dir |
3399ae32 AK |
841 | with_default_system_dir |
842 | with_default_archive_subdir | |
843 | with_default_backup_subdir | |
844 | with_default_cache_subdir | |
845 | with_default_locking_dir | |
fea55602 | 846 | with_default_data_alignment |
ec6a6fbe AK |
847 | with_interface |
848 | ' | |
7a197a62 AK |
849 | ac_precious_vars='build_alias |
850 | host_alias | |
851 | target_alias | |
852 | CC | |
853 | CFLAGS | |
854 | LDFLAGS | |
25fbec5b | 855 | LIBS |
7a197a62 | 856 | CPPFLAGS |
e2997b73 AK |
857 | CPP |
858 | PKG_CONFIG | |
f11781c5 AK |
859 | PKG_CONFIG_PATH |
860 | PKG_CONFIG_LIBDIR | |
a946372e AK |
861 | PKGCONFIGINIT_CFLAGS |
862 | PKGCONFIGINIT_LIBS | |
863 | CCS_CFLAGS | |
864 | CCS_LIBS | |
865 | GULM_CFLAGS | |
866 | GULM_LIBS | |
867 | CMAN_CFLAGS | |
868 | CMAN_LIBS | |
869 | COROSYNC_CFLAGS | |
870 | COROSYNC_LIBS | |
e2997b73 AK |
871 | QUORUM_CFLAGS |
872 | QUORUM_LIBS | |
a946372e AK |
873 | SALCK_CFLAGS |
874 | SALCK_LIBS | |
e2997b73 AK |
875 | CONFDB_CFLAGS |
876 | CONFDB_LIBS | |
877 | CPG_CFLAGS | |
a946372e AK |
878 | CPG_LIBS |
879 | DLM_CFLAGS | |
90c80887 AK |
880 | DLM_LIBS |
881 | SACKPT_CFLAGS | |
d93275eb PR |
882 | SACKPT_LIBS |
883 | UDEV_CFLAGS | |
884 | UDEV_LIBS' | |
7a197a62 | 885 | |
795ca3e5 AK |
886 | |
887 | # Initialize some variables set by options. | |
ad6254c5 AK |
888 | ac_init_help= |
889 | ac_init_version=false | |
ec6a6fbe AK |
890 | ac_unrecognized_opts= |
891 | ac_unrecognized_sep= | |
795ca3e5 AK |
892 | # The variables have the same names as the options, with |
893 | # dashes changed to underlines. | |
ad6254c5 | 894 | cache_file=/dev/null |
795ca3e5 | 895 | exec_prefix=NONE |
795ca3e5 | 896 | no_create= |
795ca3e5 AK |
897 | no_recursion= |
898 | prefix=NONE | |
899 | program_prefix=NONE | |
900 | program_suffix=NONE | |
901 | program_transform_name=s,x,x, | |
902 | silent= | |
903 | site= | |
904 | srcdir= | |
795ca3e5 AK |
905 | verbose= |
906 | x_includes=NONE | |
907 | x_libraries=NONE | |
ad6254c5 AK |
908 | |
909 | # Installation directory options. | |
910 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
911 | # and all the variables that are supposed to be based on exec_prefix | |
912 | # by default will actually change. | |
913 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 914 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
915 | bindir='${exec_prefix}/bin' |
916 | sbindir='${exec_prefix}/sbin' | |
917 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
918 | datarootdir='${prefix}/share' |
919 | datadir='${datarootdir}' | |
795ca3e5 AK |
920 | sysconfdir='${prefix}/etc' |
921 | sharedstatedir='${prefix}/com' | |
922 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
923 | includedir='${prefix}/include' |
924 | oldincludedir='/usr/include' | |
7a197a62 AK |
925 | docdir='${datarootdir}/doc/${PACKAGE}' |
926 | infodir='${datarootdir}/info' | |
927 | htmldir='${docdir}' | |
928 | dvidir='${docdir}' | |
929 | pdfdir='${docdir}' | |
930 | psdir='${docdir}' | |
931 | libdir='${exec_prefix}/lib' | |
932 | localedir='${datarootdir}/locale' | |
933 | mandir='${datarootdir}/man' | |
795ca3e5 | 934 | |
795ca3e5 | 935 | ac_prev= |
7a197a62 | 936 | ac_dashdash= |
795ca3e5 AK |
937 | for ac_option |
938 | do | |
795ca3e5 AK |
939 | # If the previous option needs an argument, assign it. |
940 | if test -n "$ac_prev"; then | |
7a197a62 | 941 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
942 | ac_prev= |
943 | continue | |
944 | fi | |
945 | ||
7a197a62 AK |
946 | case $ac_option in |
947 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
948 | *) ac_optarg=yes ;; | |
949 | esac | |
795ca3e5 AK |
950 | |
951 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
952 | ||
7a197a62 AK |
953 | case $ac_dashdash$ac_option in |
954 | --) | |
955 | ac_dashdash=yes ;; | |
795ca3e5 AK |
956 | |
957 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
958 | ac_prev=bindir ;; | |
959 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 960 | bindir=$ac_optarg ;; |
795ca3e5 AK |
961 | |
962 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 963 | ac_prev=build_alias ;; |
795ca3e5 | 964 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 965 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
966 | |
967 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
968 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
969 | ac_prev=cache_file ;; | |
970 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
971 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
972 | cache_file=$ac_optarg ;; |
973 | ||
974 | --config-cache | -C) | |
975 | cache_file=config.cache ;; | |
795ca3e5 | 976 | |
7a197a62 | 977 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 978 | ac_prev=datadir ;; |
7a197a62 | 979 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 980 | datadir=$ac_optarg ;; |
795ca3e5 | 981 | |
7a197a62 AK |
982 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
983 | | --dataroo | --dataro | --datar) | |
984 | ac_prev=datarootdir ;; | |
985 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
986 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
987 | datarootdir=$ac_optarg ;; | |
988 | ||
795ca3e5 | 989 | -disable-* | --disable-*) |
ec6a6fbe | 990 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 991 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 992 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 993 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
994 | ac_useropt_orig=$ac_useropt |
995 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
996 | case $ac_user_opts in | |
997 | *" | |
998 | "enable_$ac_useropt" | |
999 | "*) ;; | |
1000 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1001 | ac_unrecognized_sep=', ';; | |
1002 | esac | |
1003 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1004 | |
1005 | -docdir | --docdir | --docdi | --doc | --do) | |
1006 | ac_prev=docdir ;; | |
1007 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1008 | docdir=$ac_optarg ;; | |
1009 | ||
1010 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1011 | ac_prev=dvidir ;; | |
1012 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1013 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1014 | |
1015 | -enable-* | --enable-*) | |
ec6a6fbe | 1016 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1017 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1018 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1019 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
1020 | ac_useropt_orig=$ac_useropt |
1021 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1022 | case $ac_user_opts in | |
1023 | *" | |
1024 | "enable_$ac_useropt" | |
1025 | "*) ;; | |
1026 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1027 | ac_unrecognized_sep=', ';; | |
1028 | esac | |
1029 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1030 | |
1031 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1032 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1033 | | --exec | --exe | --ex) | |
1034 | ac_prev=exec_prefix ;; | |
1035 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1036 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1037 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1038 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1039 | |
1040 | -gas | --gas | --ga | --g) | |
1041 | # Obsolete; use --with-gas. | |
1042 | with_gas=yes ;; | |
1043 | ||
ad6254c5 AK |
1044 | -help | --help | --hel | --he | -h) |
1045 | ac_init_help=long ;; | |
1046 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1047 | ac_init_help=recursive ;; | |
1048 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1049 | ac_init_help=short ;; | |
795ca3e5 AK |
1050 | |
1051 | -host | --host | --hos | --ho) | |
ad6254c5 | 1052 | ac_prev=host_alias ;; |
795ca3e5 | 1053 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1054 | host_alias=$ac_optarg ;; |
795ca3e5 | 1055 | |
7a197a62 AK |
1056 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1057 | ac_prev=htmldir ;; | |
1058 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1059 | | --ht=*) | |
1060 | htmldir=$ac_optarg ;; | |
1061 | ||
795ca3e5 AK |
1062 | -includedir | --includedir | --includedi | --included | --include \ |
1063 | | --includ | --inclu | --incl | --inc) | |
1064 | ac_prev=includedir ;; | |
1065 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1066 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1067 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1068 | |
1069 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1070 | ac_prev=infodir ;; | |
1071 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1072 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1073 | |
1074 | -libdir | --libdir | --libdi | --libd) | |
1075 | ac_prev=libdir ;; | |
1076 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1077 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1078 | |
1079 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1080 | | --libexe | --libex | --libe) | |
1081 | ac_prev=libexecdir ;; | |
1082 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1083 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1084 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1085 | |
7a197a62 AK |
1086 | -localedir | --localedir | --localedi | --localed | --locale) |
1087 | ac_prev=localedir ;; | |
1088 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1089 | localedir=$ac_optarg ;; | |
1090 | ||
795ca3e5 | 1091 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1092 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1093 | ac_prev=localstatedir ;; |
1094 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1095 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1096 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1097 | |
1098 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1099 | ac_prev=mandir ;; | |
1100 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1101 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1102 | |
1103 | -nfp | --nfp | --nf) | |
1104 | # Obsolete; use --without-fp. | |
1105 | with_fp=no ;; | |
1106 | ||
1107 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1108 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1109 | no_create=yes ;; |
1110 | ||
1111 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1112 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1113 | no_recursion=yes ;; | |
1114 | ||
1115 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1116 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1117 | | --oldin | --oldi | --old | --ol | --o) | |
1118 | ac_prev=oldincludedir ;; | |
1119 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1120 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1121 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1122 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1123 | |
1124 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1125 | ac_prev=prefix ;; | |
1126 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1127 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1128 | |
1129 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1130 | | --program-pre | --program-pr | --program-p) | |
1131 | ac_prev=program_prefix ;; | |
1132 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1133 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1134 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1135 | |
1136 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1137 | | --program-suf | --program-su | --program-s) | |
1138 | ac_prev=program_suffix ;; | |
1139 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1140 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1141 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1142 | |
1143 | -program-transform-name | --program-transform-name \ | |
1144 | | --program-transform-nam | --program-transform-na \ | |
1145 | | --program-transform-n | --program-transform- \ | |
1146 | | --program-transform | --program-transfor \ | |
1147 | | --program-transfo | --program-transf \ | |
1148 | | --program-trans | --program-tran \ | |
1149 | | --progr-tra | --program-tr | --program-t) | |
1150 | ac_prev=program_transform_name ;; | |
1151 | -program-transform-name=* | --program-transform-name=* \ | |
1152 | | --program-transform-nam=* | --program-transform-na=* \ | |
1153 | | --program-transform-n=* | --program-transform-=* \ | |
1154 | | --program-transform=* | --program-transfor=* \ | |
1155 | | --program-transfo=* | --program-transf=* \ | |
1156 | | --program-trans=* | --program-tran=* \ | |
1157 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1158 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1159 | |
7a197a62 AK |
1160 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1161 | ac_prev=pdfdir ;; | |
1162 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1163 | pdfdir=$ac_optarg ;; | |
1164 | ||
1165 | -psdir | --psdir | --psdi | --psd | --ps) | |
1166 | ac_prev=psdir ;; | |
1167 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1168 | psdir=$ac_optarg ;; | |
1169 | ||
795ca3e5 AK |
1170 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1171 | | -silent | --silent | --silen | --sile | --sil) | |
1172 | silent=yes ;; | |
1173 | ||
1174 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1175 | ac_prev=sbindir ;; | |
1176 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1177 | | --sbi=* | --sb=*) | |
ad6254c5 | 1178 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1179 | |
1180 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1181 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1182 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1183 | | --sha | --sh) | |
1184 | ac_prev=sharedstatedir ;; | |
1185 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1186 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1187 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1188 | | --sha=* | --sh=*) | |
ad6254c5 | 1189 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1190 | |
1191 | -site | --site | --sit) | |
1192 | ac_prev=site ;; | |
1193 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1194 | site=$ac_optarg ;; |
795ca3e5 AK |
1195 | |
1196 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1197 | ac_prev=srcdir ;; | |
1198 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1199 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1200 | |
1201 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1202 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1203 | ac_prev=sysconfdir ;; | |
1204 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1205 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1206 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1207 | |
1208 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1209 | ac_prev=target_alias ;; |
795ca3e5 | 1210 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1211 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1212 | |
1213 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1214 | verbose=yes ;; | |
1215 | ||
ad6254c5 AK |
1216 | -version | --version | --versio | --versi | --vers | -V) |
1217 | ac_init_version=: ;; | |
795ca3e5 AK |
1218 | |
1219 | -with-* | --with-*) | |
ec6a6fbe | 1220 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1221 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1222 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1223 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1224 | ac_useropt_orig=$ac_useropt |
1225 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1226 | case $ac_user_opts in | |
1227 | *" | |
1228 | "with_$ac_useropt" | |
1229 | "*) ;; | |
1230 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1231 | ac_unrecognized_sep=', ';; | |
1232 | esac | |
1233 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1234 | |
1235 | -without-* | --without-*) | |
ec6a6fbe | 1236 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1237 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1238 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1239 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1240 | ac_useropt_orig=$ac_useropt |
1241 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1242 | case $ac_user_opts in | |
1243 | *" | |
1244 | "with_$ac_useropt" | |
1245 | "*) ;; | |
1246 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1247 | ac_unrecognized_sep=', ';; | |
1248 | esac | |
1249 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1250 | |
1251 | --x) | |
1252 | # Obsolete; use --with-x. | |
1253 | with_x=yes ;; | |
1254 | ||
1255 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1256 | | --x-incl | --x-inc | --x-in | --x-i) | |
1257 | ac_prev=x_includes ;; | |
1258 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1259 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1260 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1261 | |
1262 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1263 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1264 | ac_prev=x_libraries ;; | |
1265 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1266 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1267 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1268 | |
f11781c5 AK |
1269 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1270 | Try \`$0 --help' for more information" | |
795ca3e5 AK |
1271 | ;; |
1272 | ||
ad6254c5 AK |
1273 | *=*) |
1274 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1275 | # Reject names that are not valid shell variable names. | |
f11781c5 AK |
1276 | case $ac_envvar in #( |
1277 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1278 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1279 | esac | |
7a197a62 | 1280 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1281 | export $ac_envvar ;; |
1282 | ||
795ca3e5 | 1283 | *) |
ad6254c5 | 1284 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1285 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1286 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1287 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1288 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1289 | ;; |
1290 | ||
1291 | esac | |
1292 | done | |
1293 | ||
1294 | if test -n "$ac_prev"; then | |
ad6254c5 | 1295 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
f11781c5 | 1296 | as_fn_error $? "missing argument to $ac_option" |
795ca3e5 | 1297 | fi |
795ca3e5 | 1298 | |
ec6a6fbe AK |
1299 | if test -n "$ac_unrecognized_opts"; then |
1300 | case $enable_option_checking in | |
1301 | no) ;; | |
f11781c5 | 1302 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
ec6a6fbe AK |
1303 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1304 | esac | |
1305 | fi | |
1306 | ||
1307 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1308 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1309 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1310 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1311 | libdir localedir mandir | |
795ca3e5 | 1312 | do |
7a197a62 | 1313 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1314 | # Remove trailing slashes. |
1315 | case $ac_val in | |
1316 | */ ) | |
1317 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1318 | eval $ac_var=\$ac_val;; | |
1319 | esac | |
1320 | # Be sure to have absolute directory names. | |
ad6254c5 | 1321 | case $ac_val in |
7a197a62 AK |
1322 | [\\/$]* | ?:[\\/]* ) continue;; |
1323 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1324 | esac |
f11781c5 | 1325 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
795ca3e5 AK |
1326 | done |
1327 | ||
ad6254c5 AK |
1328 | # There might be people who depend on the old broken behavior: `$host' |
1329 | # used to hold the argument of --host etc. | |
1330 | # FIXME: To remove some day. | |
1331 | build=$build_alias | |
1332 | host=$host_alias | |
1333 | target=$target_alias | |
1334 | ||
1335 | # FIXME: To remove some day. | |
1336 | if test "x$host_alias" != x; then | |
1337 | if test "x$build_alias" = x; then | |
1338 | cross_compiling=maybe | |
f11781c5 AK |
1339 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1340 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
ad6254c5 AK |
1341 | elif test "x$build_alias" != "x$host_alias"; then |
1342 | cross_compiling=yes | |
1343 | fi | |
1344 | fi | |
8106cdd5 | 1345 | |
ad6254c5 AK |
1346 | ac_tool_prefix= |
1347 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1348 | ||
1349 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1350 | |
795ca3e5 | 1351 | |
7a197a62 AK |
1352 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1353 | ac_ls_di=`ls -di .` && | |
1354 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f11781c5 | 1355 | as_fn_error $? "working directory cannot be determined" |
7a197a62 | 1356 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f11781c5 | 1357 | as_fn_error $? "pwd does not report name of working directory" |
7a197a62 AK |
1358 | |
1359 | ||
795ca3e5 AK |
1360 | # Find the source files, if location was not specified. |
1361 | if test -z "$srcdir"; then | |
1362 | ac_srcdir_defaulted=yes | |
7a197a62 | 1363 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1364 | ac_confdir=`$as_dirname -- "$as_myself" || |
1365 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1366 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1367 | X"$as_myself" : 'X\(//\)$' \| \ | |
1368 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1369 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1370 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1371 | s//\1/ | |
1372 | q | |
1373 | } | |
1374 | /^X\(\/\/\)[^/].*/{ | |
1375 | s//\1/ | |
1376 | q | |
1377 | } | |
1378 | /^X\(\/\/\)$/{ | |
1379 | s//\1/ | |
1380 | q | |
1381 | } | |
1382 | /^X\(\/\).*/{ | |
1383 | s//\1/ | |
1384 | q | |
1385 | } | |
1386 | s/.*/./; q'` | |
795ca3e5 | 1387 | srcdir=$ac_confdir |
7a197a62 | 1388 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1389 | srcdir=.. |
1390 | fi | |
1391 | else | |
1392 | ac_srcdir_defaulted=no | |
1393 | fi | |
7a197a62 AK |
1394 | if test ! -r "$srcdir/$ac_unique_file"; then |
1395 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f11781c5 | 1396 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
795ca3e5 | 1397 | fi |
7a197a62 AK |
1398 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1399 | ac_abs_confdir=`( | |
f11781c5 | 1400 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7a197a62 AK |
1401 | pwd)` |
1402 | # When building in place, set srcdir=. | |
1403 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1404 | srcdir=. | |
1405 | fi | |
1406 | # Remove unnecessary trailing slashes from srcdir. | |
1407 | # Double slashes in file names in object file debugging info | |
1408 | # mess up M-x gdb in Emacs. | |
1409 | case $srcdir in | |
1410 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1411 | esac | |
1412 | for ac_var in $ac_precious_vars; do | |
1413 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1414 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1415 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1416 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1417 | done | |
ad6254c5 AK |
1418 | |
1419 | # | |
1420 | # Report the --help message. | |
1421 | # | |
1422 | if test "$ac_init_help" = "long"; then | |
1423 | # Omit some internal or obsolete options to make the list less imposing. | |
1424 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1425 | cat <<_ACEOF | |
1426 | \`configure' configures this package to adapt to many kinds of systems. | |
1427 | ||
1428 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1429 | ||
1430 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1431 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1432 | ||
1433 | Defaults for the options are specified in brackets. | |
1434 | ||
1435 | Configuration: | |
1436 | -h, --help display this help and exit | |
1437 | --help=short display options specific to this package | |
1438 | --help=recursive display the short help of all the included packages | |
1439 | -V, --version display version information and exit | |
f11781c5 | 1440 | -q, --quiet, --silent do not print \`checking ...' messages |
ad6254c5 AK |
1441 | --cache-file=FILE cache test results in FILE [disabled] |
1442 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1443 | -n, --no-create do not create output files | |
1444 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1445 | ||
ad6254c5 AK |
1446 | Installation directories: |
1447 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1448 | [$ac_default_prefix] |
ad6254c5 | 1449 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1450 | [PREFIX] |
ad6254c5 AK |
1451 | |
1452 | By default, \`make install' will install all the files in | |
1453 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1454 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1455 | for instance \`--prefix=\$HOME'. | |
1456 | ||
1457 | For better control, use the options below. | |
1458 | ||
1459 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1460 | --bindir=DIR user executables [EPREFIX/bin] |
1461 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1462 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1463 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1464 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1465 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1466 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1467 | --includedir=DIR C header files [PREFIX/include] | |
1468 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1469 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1470 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1471 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1472 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1473 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1474 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1475 | --htmldir=DIR html documentation [DOCDIR] | |
1476 | --dvidir=DIR dvi documentation [DOCDIR] | |
1477 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1478 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1479 | _ACEOF |
1480 | ||
1481 | cat <<\_ACEOF | |
1482 | ||
1483 | System types: | |
1484 | --build=BUILD configure for building on BUILD [guessed] | |
1485 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1486 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1487 | _ACEOF | |
1488 | fi | |
1489 | ||
1490 | if test -n "$ac_init_help"; then | |
1491 | ||
1492 | cat <<\_ACEOF | |
1493 | ||
1494 | Optional Features: | |
ec6a6fbe | 1495 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1496 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1497 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1498 | --enable-static_link use this to link the tools to their libraries |
1499 | statically (default is dynamic linking | |
1500 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1501 | device-mapper is missing from the kernel |
71082be4 ZK |
1502 | --disable-readline disable readline support |
1503 | --enable-realtime enable realtime clock support | |
37ddf259 AK |
1504 | --enable-ocf enable Open Cluster Framework (OCF) compliant |
1505 | resource agents | |
71082be4 ZK |
1506 | --enable-cmirrord enable the cluster mirror log daemon |
1507 | --enable-debug enable debugging | |
1508 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1509 | --enable-testing enable testing targets in the makefile |
d1e8046f | 1510 | --enable-valgrind-pool enable valgrind awareness of pools |
71082be4 ZK |
1511 | --disable-devmapper disable LVM2 device-mapper interaction |
1512 | --enable-udev_sync enable synchronisation with udev processing | |
1513 | --enable-udev_rules install rule files needed for udev synchronisation | |
1514 | --enable-compat enable support for old device-mapper versions | |
1515 | --enable-units-compat enable output compatibility with old versions that | |
1516 | that do not use KiB-style unit suffixes | |
1517 | --disable-driver disable calls to device-mapper in the kernel | |
1518 | --disable-o_direct disable O_DIRECT | |
1519 | --enable-applib build application library | |
1520 | --enable-cmdlib build shared command library | |
1521 | --enable-pkgconfig install pkgconfig support | |
1522 | --enable-write_install install user writable files | |
1523 | --disable-fsadm disable fsadm | |
1524 | --enable-dmeventd enable the device-mapper event daemon | |
1525 | --disable-selinux disable selinux support | |
1526 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1527 | |
1528 | Optional Packages: | |
1529 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1530 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
f11781c5 AK |
1531 | --with-user=USER set the owner of installed files [[USER=]] |
1532 | --with-group=GROUP set the group owner of installed files [[GROUP=]] | |
1533 | --with-device-uid=UID set the owner used for new device nodes [[UID=0]] | |
1534 | --with-device-gid=GID set the group used for new device nodes [[GID=0]] | |
1535 | --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]] | |
d0df875d ZK |
1536 | --with-device-nodes-on=ON |
1537 | create nodes on resume or create [[ON=resume]] | |
ad6254c5 | 1538 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
f11781c5 | 1539 | [[TYPE=internal]] |
ad6254c5 | 1540 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
f11781c5 | 1541 | [[TYPE=internal]] |
71082be4 | 1542 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none |
f11781c5 | 1543 | [[TYPE=internal]] |
71082be4 | 1544 | --with-snapshots=TYPE snapshot support: internal/shared/none |
f11781c5 | 1545 | [[TYPE=internal]] |
71082be4 | 1546 | --with-mirrors=TYPE mirror support: internal/shared/none |
f11781c5 | 1547 | [[TYPE=internal]] |
cac52ca4 JEB |
1548 | --with-raid=TYPE mirror support: internal/shared/none |
1549 | [[TYPE=internal]] | |
71082be4 | 1550 | --with-replicators=TYPE replicator support: internal/shared/none |
f11781c5 | 1551 | [[TYPE=none]] |
606d0858 AK |
1552 | --with-ocfdir=DIR install OCF files in DIR |
1553 | [[PREFIX/lib/ocf/resource.d/lvm2]] | |
71082be4 | 1554 | --with-clvmd=TYPE build cluster LVM Daemon |
8c222979 | 1555 | The following cluster manager combinations are valid: |
a946372e AK |
1556 | * cman,gulm (RHEL4 or equivalent) |
1557 | * cman (RHEL5 or equivalent) | |
1558 | * cman,corosync,openais (or selection of them) | |
1091650a | 1559 | * singlenode (localhost only) |
a946372e AK |
1560 | * all (autodetect) |
1561 | * none (disable build) | |
71082be4 | 1562 | [TYPE=none] |
8c4e8a18 | 1563 | --with-clvmd-pidfile=PATH |
f11781c5 | 1564 | clvmd pidfile [[/var/run/clvmd.pid]] |
71082be4 | 1565 | --with-cmirrord-pidfile=PATH |
f11781c5 AK |
1566 | cmirrord pidfile [[/var/run/cmirrord.pid]] |
1567 | --with-optimisation=OPT C optimisation flag [[OPT=-O2]] | |
1568 | --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]] | |
1569 | --with-confdir=DIR configuration files in DIR [[/etc]] | |
1570 | --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]] | |
1571 | --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]] | |
1572 | --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]] | |
71082be4 | 1573 | --with-udev-prefix=UPREFIX |
f11781c5 AK |
1574 | install udev rule files in UPREFIX [[EPREFIX]] |
1575 | --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]] | |
71082be4 | 1576 | --with-dmeventd-pidfile=PATH |
f11781c5 | 1577 | dmeventd pidfile [[/var/run/dmeventd.pid]] |
71082be4 | 1578 | --with-dmeventd-path=PATH |
f11781c5 | 1579 | dmeventd path [[EPREFIX/sbin/dmeventd]] |
8bae0a1e | 1580 | --with-default-run-dir=DIR Default run directory [/var/run/lvm] |
71082be4 | 1581 | --with-default-system-dir=DIR |
f11781c5 | 1582 | default LVM system directory [[/etc/lvm]] |
71082be4 | 1583 | --with-default-archive-subdir=SUBDIR |
f11781c5 | 1584 | default metadata archive subdir [[archive]] |
71082be4 | 1585 | --with-default-backup-subdir=SUBDIR |
f11781c5 | 1586 | default metadata backup subdir [[backup]] |
71082be4 | 1587 | --with-default-cache-subdir=SUBDIR |
f11781c5 | 1588 | default metadata cache subdir [[cache]] |
71082be4 | 1589 | --with-default-locking-dir=DIR |
f11781c5 | 1590 | default locking directory [[/var/lock/lvm]] |
fea55602 | 1591 | --with-default-data-alignment=NUM |
f11781c5 AK |
1592 | set the default data alignment in MiB [[1]] |
1593 | --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]] | |
ad6254c5 AK |
1594 | |
1595 | Some influential environment variables: | |
1596 | CC C compiler command | |
1597 | CFLAGS C compiler flags | |
1598 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1599 | nonstandard directory <lib dir> | |
25fbec5b | 1600 | LIBS libraries to pass to the linker, e.g. -l<library> |
f11781c5 | 1601 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7a197a62 | 1602 | you have headers in a nonstandard directory <include dir> |
ad6254c5 | 1603 | CPP C preprocessor |
e2997b73 | 1604 | PKG_CONFIG path to pkg-config utility |
f11781c5 AK |
1605 | PKG_CONFIG_PATH |
1606 | directories to add to pkg-config's search path | |
1607 | PKG_CONFIG_LIBDIR | |
1608 | path overriding pkg-config's built-in search path | |
a946372e AK |
1609 | PKGCONFIGINIT_CFLAGS |
1610 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1611 | PKGCONFIGINIT_LIBS | |
1612 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
1613 | CCS_CFLAGS C compiler flags for CCS, overriding pkg-config | |
1614 | CCS_LIBS linker flags for CCS, overriding pkg-config | |
1615 | GULM_CFLAGS C compiler flags for GULM, overriding pkg-config | |
1616 | GULM_LIBS linker flags for GULM, overriding pkg-config | |
1617 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config | |
1618 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1619 | COROSYNC_CFLAGS | |
1620 | C compiler flags for COROSYNC, overriding pkg-config | |
1621 | COROSYNC_LIBS | |
1622 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1623 | QUORUM_CFLAGS |
1624 | C compiler flags for QUORUM, overriding pkg-config | |
1625 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1626 | SALCK_CFLAGS |
1627 | C compiler flags for SALCK, overriding pkg-config | |
1628 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1629 | CONFDB_CFLAGS |
1630 | C compiler flags for CONFDB, overriding pkg-config | |
1631 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
1632 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1633 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1634 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1635 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1636 | SACKPT_CFLAGS |
1637 | C compiler flags for SACKPT, overriding pkg-config | |
1638 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
d93275eb PR |
1639 | UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config |
1640 | UDEV_LIBS linker flags for UDEV, overriding pkg-config | |
ad6254c5 AK |
1641 | |
1642 | Use these variables to override the choices made by `configure' or to help | |
1643 | it to find libraries and programs with nonstandard names/locations. | |
1644 | ||
f11781c5 | 1645 | Report bugs to the package provider. |
ad6254c5 | 1646 | _ACEOF |
7a197a62 | 1647 | ac_status=$? |
ad6254c5 AK |
1648 | fi |
1649 | ||
1650 | if test "$ac_init_help" = "recursive"; then | |
1651 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1652 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1653 | test -d "$ac_dir" || |
1654 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1655 | continue | |
ad6254c5 AK |
1656 | ac_builddir=. |
1657 | ||
7a197a62 AK |
1658 | case "$ac_dir" in |
1659 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1660 | *) | |
ec6a6fbe | 1661 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1662 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1663 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1664 | case $ac_top_builddir_sub in |
1665 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1666 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1667 | esac ;; | |
1668 | esac | |
1669 | ac_abs_top_builddir=$ac_pwd | |
1670 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1671 | # for backward compatibility: | |
1672 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1673 | |
1674 | case $srcdir in | |
7a197a62 | 1675 | .) # We are building in place. |
ad6254c5 | 1676 | ac_srcdir=. |
7a197a62 AK |
1677 | ac_top_srcdir=$ac_top_builddir_sub |
1678 | ac_abs_top_srcdir=$ac_pwd ;; | |
1679 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1680 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1681 | ac_top_srcdir=$srcdir |
1682 | ac_abs_top_srcdir=$srcdir ;; | |
1683 | *) # Relative name. | |
1684 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1685 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1686 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1687 | esac |
7a197a62 AK |
1688 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1689 | ||
1690 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1691 | # Check for guested configure. | |
1692 | if test -f "$ac_srcdir/configure.gnu"; then | |
1693 | echo && | |
1694 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1695 | elif test -f "$ac_srcdir/configure"; then | |
1696 | echo && | |
1697 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1698 | else |
ec6a6fbe | 1699 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1700 | fi || ac_status=$? |
1701 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1702 | done |
1703 | fi | |
1704 | ||
7a197a62 | 1705 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1706 | if $ac_init_version; then |
1707 | cat <<\_ACEOF | |
7a197a62 | 1708 | configure |
f11781c5 | 1709 | generated by GNU Autoconf 2.66 |
ad6254c5 | 1710 | |
f11781c5 | 1711 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
1712 | This configure script is free software; the Free Software Foundation |
1713 | gives unlimited permission to copy, distribute and modify it. | |
1714 | _ACEOF | |
7a197a62 | 1715 | exit |
ad6254c5 | 1716 | fi |
ad6254c5 | 1717 | |
f11781c5 AK |
1718 | ## ------------------------ ## |
1719 | ## Autoconf initialization. ## | |
1720 | ## ------------------------ ## | |
ad6254c5 | 1721 | |
f11781c5 AK |
1722 | # ac_fn_c_try_compile LINENO |
1723 | # -------------------------- | |
1724 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1725 | ac_fn_c_try_compile () | |
ad6254c5 | 1726 | { |
f11781c5 AK |
1727 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1728 | rm -f conftest.$ac_objext | |
1729 | if { { ac_try="$ac_compile" | |
1730 | case "(($ac_try" in | |
1731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1732 | *) ac_try_echo=$ac_try;; | |
1733 | esac | |
1734 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1735 | $as_echo "$ac_try_echo"; } >&5 | |
1736 | (eval "$ac_compile") 2>conftest.err | |
1737 | ac_status=$? | |
1738 | if test -s conftest.err; then | |
1739 | grep -v '^ *+' conftest.err >conftest.er1 | |
1740 | cat conftest.er1 >&5 | |
1741 | mv -f conftest.er1 conftest.err | |
1742 | fi | |
1743 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1744 | test $ac_status = 0; } && { | |
1745 | test -z "$ac_c_werror_flag" || | |
1746 | test ! -s conftest.err | |
1747 | } && test -s conftest.$ac_objext; then : | |
1748 | ac_retval=0 | |
1749 | else | |
1750 | $as_echo "$as_me: failed program was:" >&5 | |
1751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1752 | |
f11781c5 AK |
1753 | ac_retval=1 |
1754 | fi | |
1755 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1756 | as_fn_set_status $ac_retval | |
ad6254c5 | 1757 | |
f11781c5 | 1758 | } # ac_fn_c_try_compile |
ad6254c5 | 1759 | |
f11781c5 AK |
1760 | # ac_fn_c_try_cpp LINENO |
1761 | # ---------------------- | |
1762 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1763 | ac_fn_c_try_cpp () | |
1764 | { | |
1765 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1766 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1767 | case "(($ac_try" in | |
1768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1769 | *) ac_try_echo=$ac_try;; | |
1770 | esac | |
1771 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1772 | $as_echo "$ac_try_echo"; } >&5 | |
1773 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1774 | ac_status=$? | |
1775 | if test -s conftest.err; then | |
1776 | grep -v '^ *+' conftest.err >conftest.er1 | |
1777 | cat conftest.er1 >&5 | |
1778 | mv -f conftest.er1 conftest.err | |
1779 | fi | |
1780 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1781 | test $ac_status = 0; } >/dev/null && { | |
1782 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1783 | test ! -s conftest.err | |
1784 | }; then : | |
1785 | ac_retval=0 | |
1786 | else | |
1787 | $as_echo "$as_me: failed program was:" >&5 | |
1788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1789 | |
f11781c5 AK |
1790 | ac_retval=1 |
1791 | fi | |
1792 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1793 | as_fn_set_status $ac_retval | |
ad6254c5 | 1794 | |
f11781c5 | 1795 | } # ac_fn_c_try_cpp |
d911ec67 | 1796 | |
f11781c5 AK |
1797 | # ac_fn_c_try_link LINENO |
1798 | # ----------------------- | |
1799 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1800 | ac_fn_c_try_link () | |
d911ec67 | 1801 | { |
f11781c5 AK |
1802 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1803 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1804 | if { { ac_try="$ac_link" | |
d911ec67 AK |
1805 | case "(($ac_try" in |
1806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1807 | *) ac_try_echo=$ac_try;; | |
1808 | esac | |
f11781c5 AK |
1809 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1810 | $as_echo "$ac_try_echo"; } >&5 | |
1811 | (eval "$ac_link") 2>conftest.err | |
d911ec67 | 1812 | ac_status=$? |
f11781c5 AK |
1813 | if test -s conftest.err; then |
1814 | grep -v '^ *+' conftest.err >conftest.er1 | |
1815 | cat conftest.er1 >&5 | |
1816 | mv -f conftest.er1 conftest.err | |
1817 | fi | |
1818 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1819 | test $ac_status = 0; } && { | |
1820 | test -z "$ac_c_werror_flag" || | |
1821 | test ! -s conftest.err | |
1822 | } && test -s conftest$ac_exeext && { | |
1823 | test "$cross_compiling" = yes || | |
1824 | $as_test_x conftest$ac_exeext | |
1825 | }; then : | |
1826 | ac_retval=0 | |
d911ec67 | 1827 | else |
f11781c5 | 1828 | $as_echo "$as_me: failed program was:" >&5 |
d911ec67 AK |
1829 | sed 's/^/| /' conftest.$ac_ext >&5 |
1830 | ||
f11781c5 | 1831 | ac_retval=1 |
d911ec67 | 1832 | fi |
f11781c5 AK |
1833 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1834 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1835 | # interfere with the next link command; also delete a directory that is | |
1836 | # left behind by Apple's compiler. We do this before executing the actions. | |
1837 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1838 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1839 | as_fn_set_status $ac_retval | |
d911ec67 | 1840 | |
f11781c5 | 1841 | } # ac_fn_c_try_link |
d911ec67 | 1842 | |
f11781c5 AK |
1843 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1844 | # ------------------------------------------------------- | |
1845 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1846 | # the include files in INCLUDES and setting the cache variable VAR | |
1847 | # accordingly. | |
1848 | ac_fn_c_check_header_mongrel () | |
1849 | { | |
1850 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1851 | if eval "test \"\${$3+set}\"" = set; then : | |
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1853 | $as_echo_n "checking for $2... " >&6; } | |
1854 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1855 | $as_echo_n "(cached) " >&6 |
1856 | fi | |
f11781c5 AK |
1857 | eval ac_res=\$$3 |
1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 AK |
1859 | $as_echo "$ac_res" >&6; } |
1860 | else | |
1861 | # Is the header compilable? | |
f11781c5 AK |
1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1863 | $as_echo_n "checking $2 usability... " >&6; } | |
1864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1865 | /* end confdefs.h. */ |
f11781c5 AK |
1866 | $4 |
1867 | #include <$2> | |
d911ec67 | 1868 | _ACEOF |
f11781c5 | 1869 | if ac_fn_c_try_compile "$LINENO"; then : |
d911ec67 AK |
1870 | ac_header_compiler=yes |
1871 | else | |
f11781c5 | 1872 | ac_header_compiler=no |
d911ec67 | 1873 | fi |
d911ec67 | 1874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f11781c5 | 1875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
d911ec67 AK |
1876 | $as_echo "$ac_header_compiler" >&6; } |
1877 | ||
1878 | # Is the header present? | |
f11781c5 AK |
1879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1880 | $as_echo_n "checking $2 presence... " >&6; } | |
1881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1882 | /* end confdefs.h. */ |
f11781c5 | 1883 | #include <$2> |
d911ec67 | 1884 | _ACEOF |
f11781c5 | 1885 | if ac_fn_c_try_cpp "$LINENO"; then : |
d911ec67 AK |
1886 | ac_header_preproc=yes |
1887 | else | |
d911ec67 AK |
1888 | ac_header_preproc=no |
1889 | fi | |
d911ec67 | 1890 | rm -f conftest.err conftest.$ac_ext |
f11781c5 | 1891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
d911ec67 AK |
1892 | $as_echo "$ac_header_preproc" >&6; } |
1893 | ||
1894 | # So? What about this header? | |
f11781c5 | 1895 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
d911ec67 | 1896 | yes:no: ) |
f11781c5 AK |
1897 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1898 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1900 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1901 | ;; |
1902 | no:yes:* ) | |
f11781c5 AK |
1903 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1904 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1906 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1907 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1908 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1909 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1910 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1911 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1912 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1913 | ;; |
1914 | esac | |
f11781c5 AK |
1915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1916 | $as_echo_n "checking for $2... " >&6; } | |
1917 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1918 | $as_echo_n "(cached) " >&6 |
1919 | else | |
f11781c5 | 1920 | eval "$3=\$ac_header_compiler" |
d911ec67 | 1921 | fi |
f11781c5 AK |
1922 | eval ac_res=\$$3 |
1923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 | 1924 | $as_echo "$ac_res" >&6; } |
ad6254c5 | 1925 | fi |
f11781c5 | 1926 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1927 | |
f11781c5 | 1928 | } # ac_fn_c_check_header_mongrel |
ad6254c5 | 1929 | |
f11781c5 AK |
1930 | # ac_fn_c_try_run LINENO |
1931 | # ---------------------- | |
1932 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1933 | # that executables *can* be run. | |
1934 | ac_fn_c_try_run () | |
ad6254c5 | 1935 | { |
f11781c5 AK |
1936 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1937 | if { { ac_try="$ac_link" | |
7a197a62 AK |
1938 | case "(($ac_try" in |
1939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1940 | *) ac_try_echo=$ac_try;; | |
1941 | esac | |
f11781c5 AK |
1942 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1943 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1944 | (eval "$ac_link") 2>&5 |
ad6254c5 | 1945 | ac_status=$? |
f11781c5 AK |
1946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1947 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1948 | { { case "(($ac_try" in | |
7a197a62 AK |
1949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1950 | *) ac_try_echo=$ac_try;; | |
1951 | esac | |
f11781c5 AK |
1952 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1953 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1954 | (eval "$ac_try") 2>&5 |
ad6254c5 | 1955 | ac_status=$? |
f11781c5 AK |
1956 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1957 | test $ac_status = 0; }; }; then : | |
1958 | ac_retval=0 | |
ad6254c5 | 1959 | else |
ec6a6fbe | 1960 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
f11781c5 | 1961 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
1962 | sed 's/^/| /' conftest.$ac_ext >&5 |
1963 | ||
f11781c5 | 1964 | ac_retval=$ac_status |
ad6254c5 | 1965 | fi |
f11781c5 AK |
1966 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1967 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1968 | as_fn_set_status $ac_retval | |
ad6254c5 | 1969 | |
f11781c5 | 1970 | } # ac_fn_c_try_run |
ad6254c5 | 1971 | |
f11781c5 AK |
1972 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1973 | # ------------------------------------------------------- | |
1974 | # Tests whether HEADER exists and can be compiled using the include files in | |
1975 | # INCLUDES, setting the cache variable VAR accordingly. | |
1976 | ac_fn_c_check_header_compile () | |
1977 | { | |
1978 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1980 | $as_echo_n "checking for $2... " >&6; } | |
1981 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 1982 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 1983 | else |
f11781c5 | 1984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 1985 | /* end confdefs.h. */ |
f11781c5 AK |
1986 | $4 |
1987 | #include <$2> | |
ad6254c5 | 1988 | _ACEOF |
f11781c5 AK |
1989 | if ac_fn_c_try_compile "$LINENO"; then : |
1990 | eval "$3=yes" | |
ad6254c5 | 1991 | else |
f11781c5 | 1992 | eval "$3=no" |
ad6254c5 | 1993 | fi |
7a197a62 | 1994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 1995 | fi |
f11781c5 AK |
1996 | eval ac_res=\$$3 |
1997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 1998 | $as_echo "$ac_res" >&6; } |
f11781c5 | 1999 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2000 | |
f11781c5 | 2001 | } # ac_fn_c_check_header_compile |
ad6254c5 | 2002 | |
f11781c5 AK |
2003 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2004 | # ---------------------------------------------------- | |
2005 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2006 | # INCLUDES, setting cache variable VAR accordingly. | |
2007 | ac_fn_c_check_member () | |
2008 | { | |
2009 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2011 | $as_echo_n "checking for $2.$3... " >&6; } | |
2012 | if eval "test \"\${$4+set}\"" = set; then : | |
ec6a6fbe | 2013 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2014 | else |
f11781c5 AK |
2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2016 | /* end confdefs.h. */ | |
2017 | $5 | |
2018 | int | |
2019 | main () | |
2020 | { | |
2021 | static $2 ac_aggr; | |
2022 | if (ac_aggr.$3) | |
2023 | return 0; | |
2024 | ; | |
2025 | return 0; | |
2026 | } | |
ad6254c5 | 2027 | _ACEOF |
f11781c5 AK |
2028 | if ac_fn_c_try_compile "$LINENO"; then : |
2029 | eval "$4=yes" | |
2030 | else | |
2031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2032 | /* end confdefs.h. */ |
f11781c5 AK |
2033 | $5 |
2034 | int | |
2035 | main () | |
2036 | { | |
2037 | static $2 ac_aggr; | |
2038 | if (sizeof ac_aggr.$3) | |
2039 | return 0; | |
2040 | ; | |
2041 | return 0; | |
2042 | } | |
2043 | _ACEOF | |
2044 | if ac_fn_c_try_compile "$LINENO"; then : | |
2045 | eval "$4=yes" | |
2046 | else | |
2047 | eval "$4=no" | |
2048 | fi | |
2049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2050 | fi | |
2051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2052 | fi | |
2053 | eval ac_res=\$$4 | |
2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2055 | $as_echo "$ac_res" >&6; } | |
2056 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2057 | ||
2058 | } # ac_fn_c_check_member | |
795ca3e5 | 2059 | |
f11781c5 AK |
2060 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2061 | # ------------------------------------------- | |
2062 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2063 | # variable VAR accordingly. | |
2064 | ac_fn_c_check_type () | |
2065 | { | |
2066 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2068 | $as_echo_n "checking for $2... " >&6; } | |
2069 | if eval "test \"\${$3+set}\"" = set; then : | |
2070 | $as_echo_n "(cached) " >&6 | |
2071 | else | |
2072 | eval "$3=no" | |
2073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2074 | /* end confdefs.h. */ | |
2075 | $4 | |
ad6254c5 AK |
2076 | int |
2077 | main () | |
2078 | { | |
f11781c5 AK |
2079 | if (sizeof ($2)) |
2080 | return 0; | |
ad6254c5 AK |
2081 | ; |
2082 | return 0; | |
2083 | } | |
2084 | _ACEOF | |
f11781c5 AK |
2085 | if ac_fn_c_try_compile "$LINENO"; then : |
2086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2087 | /* end confdefs.h. */ | |
2088 | $4 | |
2089 | int | |
2090 | main () | |
2091 | { | |
2092 | if (sizeof (($2))) | |
2093 | return 0; | |
2094 | ; | |
2095 | return 0; | |
2096 | } | |
2097 | _ACEOF | |
2098 | if ac_fn_c_try_compile "$LINENO"; then : | |
ad6254c5 | 2099 | |
f11781c5 AK |
2100 | else |
2101 | eval "$3=yes" | |
795ca3e5 | 2102 | fi |
f11781c5 AK |
2103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2104 | fi | |
2105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2106 | fi |
f11781c5 AK |
2107 | eval ac_res=\$$3 |
2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2109 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2110 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2111 | |
f11781c5 | 2112 | } # ac_fn_c_check_type |
ad6254c5 | 2113 | |
f11781c5 AK |
2114 | # ac_fn_c_find_intX_t LINENO BITS VAR |
2115 | # ----------------------------------- | |
2116 | # Finds a signed integer type with width BITS, setting cache variable VAR | |
2117 | # accordingly. | |
2118 | ac_fn_c_find_intX_t () | |
2119 | { | |
2120 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | |
2122 | $as_echo_n "checking for int$2_t... " >&6; } | |
2123 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2124 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2125 | else |
f11781c5 AK |
2126 | eval "$3=no" |
2127 | # Order is important - never check a type that is potentially smaller | |
2128 | # than half of the expected target width. | |
2129 | for ac_type in int$2_t 'int' 'long int' \ | |
2130 | 'long long int' 'short int' 'signed char'; do | |
2131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7a197a62 AK |
2132 | /* end confdefs.h. */ |
2133 | $ac_includes_default | |
f11781c5 | 2134 | enum { N = $2 / 2 - 1 }; |
7a197a62 AK |
2135 | int |
2136 | main () | |
2137 | { | |
f11781c5 AK |
2138 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
2139 | test_array [0] = 0 | |
7a197a62 | 2140 | |
f11781c5 AK |
2141 | ; |
2142 | return 0; | |
2143 | } | |
2144 | _ACEOF | |
2145 | if ac_fn_c_try_compile "$LINENO"; then : | |
2146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2147 | /* end confdefs.h. */ | |
2148 | $ac_includes_default | |
2149 | enum { N = $2 / 2 - 1 }; | |
2150 | int | |
2151 | main () | |
2152 | { | |
2153 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | |
2154 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | |
2155 | test_array [0] = 0 | |
7a197a62 AK |
2156 | |
2157 | ; | |
2158 | return 0; | |
2159 | } | |
ad6254c5 | 2160 | _ACEOF |
f11781c5 | 2161 | if ac_fn_c_try_compile "$LINENO"; then : |
ad6254c5 | 2162 | |
f11781c5 AK |
2163 | else |
2164 | case $ac_type in #( | |
2165 | int$2_t) : | |
2166 | eval "$3=yes" ;; #( | |
2167 | *) : | |
2168 | eval "$3=\$ac_type" ;; | |
2169 | esac | |
ad6254c5 | 2170 | fi |
f11781c5 | 2171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2172 | fi |
f11781c5 AK |
2173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2174 | if eval test \"x\$"$3"\" = x"no"; then : | |
ad6254c5 AK |
2175 | |
2176 | else | |
f11781c5 | 2177 | break |
ad6254c5 | 2178 | fi |
f11781c5 | 2179 | done |
ad6254c5 | 2180 | fi |
f11781c5 AK |
2181 | eval ac_res=\$$3 |
2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2183 | $as_echo "$ac_res" >&6; } | |
2184 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2185 | ||
2186 | } # ac_fn_c_find_intX_t | |
2187 | ||
2188 | # ac_fn_c_find_uintX_t LINENO BITS VAR | |
2189 | # ------------------------------------ | |
2190 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
2191 | # accordingly. | |
2192 | ac_fn_c_find_uintX_t () | |
2193 | { | |
2194 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
2196 | $as_echo_n "checking for uint$2_t... " >&6; } | |
2197 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2198 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2199 | else |
f11781c5 AK |
2200 | eval "$3=no" |
2201 | # Order is important - never check a type that is potentially smaller | |
2202 | # than half of the expected target width. | |
2203 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
2204 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
2205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2206 | /* end confdefs.h. */ |
7a197a62 | 2207 | $ac_includes_default |
ad6254c5 AK |
2208 | int |
2209 | main () | |
2210 | { | |
f11781c5 AK |
2211 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
2212 | test_array [0] = 0 | |
ad6254c5 | 2213 | |
f11781c5 AK |
2214 | ; |
2215 | return 0; | |
ad6254c5 AK |
2216 | } |
2217 | _ACEOF | |
f11781c5 AK |
2218 | if ac_fn_c_try_compile "$LINENO"; then : |
2219 | case $ac_type in #( | |
2220 | uint$2_t) : | |
2221 | eval "$3=yes" ;; #( | |
2222 | *) : | |
2223 | eval "$3=\$ac_type" ;; | |
7a197a62 | 2224 | esac |
ad6254c5 | 2225 | fi |
f11781c5 AK |
2226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2227 | if eval test \"x\$"$3"\" = x"no"; then : | |
7a197a62 | 2228 | |
f11781c5 AK |
2229 | else |
2230 | break | |
ad6254c5 | 2231 | fi |
f11781c5 | 2232 | done |
ad6254c5 | 2233 | fi |
f11781c5 AK |
2234 | eval ac_res=\$$3 |
2235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2236 | $as_echo "$ac_res" >&6; } | |
2237 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
ad6254c5 | 2238 | |
f11781c5 | 2239 | } # ac_fn_c_find_uintX_t |
ad6254c5 | 2240 | |
f11781c5 AK |
2241 | # ac_fn_c_check_func LINENO FUNC VAR |
2242 | # ---------------------------------- | |
2243 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2244 | ac_fn_c_check_func () | |
2245 | { | |
2246 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2248 | $as_echo_n "checking for $2... " >&6; } | |
2249 | if eval "test \"\${$3+set}\"" = set; then : | |
2250 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2251 | else |
f11781c5 AK |
2252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2253 | /* end confdefs.h. */ | |
2254 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2255 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2256 | #define $2 innocuous_$2 | |
ad6254c5 | 2257 | |
f11781c5 AK |
2258 | /* System header to define __stub macros and hopefully few prototypes, |
2259 | which can conflict with char $2 (); below. | |
2260 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2261 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 2262 | |
f11781c5 AK |
2263 | #ifdef __STDC__ |
2264 | # include <limits.h> | |
2265 | #else | |
2266 | # include <assert.h> | |
2267 | #endif | |
ad6254c5 | 2268 | |
f11781c5 AK |
2269 | #undef $2 |
2270 | ||
2271 | /* Override any GCC internal prototype to avoid an error. | |
2272 | Use char because int might match the return type of a GCC | |
2273 | builtin and then its argument prototype would still apply. */ | |
2274 | #ifdef __cplusplus | |
2275 | extern "C" | |
2276 | #endif | |
2277 | char $2 (); | |
2278 | /* The GNU C library defines this for functions which it implements | |
2279 | to always fail with ENOSYS. Some functions are actually named | |
2280 | something starting with __ and the normal name is an alias. */ | |
2281 | #if defined __stub_$2 || defined __stub___$2 | |
2282 | choke me | |
2283 | #endif | |
ad6254c5 | 2284 | |
ad6254c5 AK |
2285 | int |
2286 | main () | |
2287 | { | |
f11781c5 | 2288 | return $2 (); |
ad6254c5 AK |
2289 | ; |
2290 | return 0; | |
2291 | } | |
2292 | _ACEOF | |
f11781c5 AK |
2293 | if ac_fn_c_try_link "$LINENO"; then : |
2294 | eval "$3=yes" | |
ad6254c5 | 2295 | else |
f11781c5 | 2296 | eval "$3=no" |
ad6254c5 | 2297 | fi |
f11781c5 AK |
2298 | rm -f core conftest.err conftest.$ac_objext \ |
2299 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2300 | fi |
f11781c5 AK |
2301 | eval ac_res=\$$3 |
2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2303 | $as_echo "$ac_res" >&6; } | |
2304 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
7a197a62 | 2305 | |
f11781c5 AK |
2306 | } # ac_fn_c_check_func |
2307 | cat >config.log <<_ACEOF | |
2308 | This file contains any messages produced by compilers while | |
2309 | running configure, to aid debugging if configure makes a mistake. | |
7a197a62 | 2310 | |
f11781c5 AK |
2311 | It was created by $as_me, which was |
2312 | generated by GNU Autoconf 2.66. Invocation command line was | |
ad6254c5 | 2313 | |
f11781c5 | 2314 | $ $0 $@ |
ad6254c5 | 2315 | |
ad6254c5 | 2316 | _ACEOF |
f11781c5 AK |
2317 | exec 5>>config.log |
2318 | { | |
2319 | cat <<_ASUNAME | |
2320 | ## --------- ## | |
2321 | ## Platform. ## | |
2322 | ## --------- ## | |
ad6254c5 | 2323 | |
f11781c5 AK |
2324 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2325 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2326 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2327 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2328 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
ad6254c5 | 2329 | |
f11781c5 AK |
2330 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2331 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8a2fc586 | 2332 | |
f11781c5 AK |
2333 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2334 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2335 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2336 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2337 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2338 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2339 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2340 | ||
2341 | _ASUNAME | |
2342 | ||
2343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2344 | for as_dir in $PATH | |
2345 | do | |
2346 | IFS=$as_save_IFS | |
2347 | test -z "$as_dir" && as_dir=. | |
2348 | $as_echo "PATH: $as_dir" | |
2349 | done | |
2350 | IFS=$as_save_IFS | |
2351 | ||
2352 | } >&5 | |
2353 | ||
2354 | cat >&5 <<_ACEOF | |
2355 | ||
2356 | ||
2357 | ## ----------- ## | |
2358 | ## Core tests. ## | |
2359 | ## ----------- ## | |
ad6254c5 | 2360 | |
ad6254c5 | 2361 | _ACEOF |
ad6254c5 | 2362 | |
7a197a62 | 2363 | |
f11781c5 AK |
2364 | # Keep a trace of the command line. |
2365 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2366 | # Strip out --silent because we don't want to record it for future runs. | |
2367 | # Also quote any args containing shell meta-characters. | |
2368 | # Make two passes to allow for proper duplicate-argument suppression. | |
2369 | ac_configure_args= | |
2370 | ac_configure_args0= | |
2371 | ac_configure_args1= | |
2372 | ac_must_keep_next=false | |
2373 | for ac_pass in 1 2 | |
2374 | do | |
2375 | for ac_arg | |
2376 | do | |
2377 | case $ac_arg in | |
2378 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2379 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2380 | | -silent | --silent | --silen | --sile | --sil) | |
2381 | continue ;; | |
2382 | *\'*) | |
2383 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2384 | esac | |
2385 | case $ac_pass in | |
2386 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2387 | 2) | |
2388 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2389 | if test $ac_must_keep_next = true; then | |
2390 | ac_must_keep_next=false # Got value, back to normal. | |
2391 | else | |
2392 | case $ac_arg in | |
2393 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2394 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2395 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2396 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2397 | case "$ac_configure_args0 " in | |
2398 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2399 | esac | |
2400 | ;; | |
2401 | -* ) ac_must_keep_next=true ;; | |
2402 | esac | |
2403 | fi | |
2404 | as_fn_append ac_configure_args " '$ac_arg'" | |
2405 | ;; | |
2406 | esac | |
2407 | done | |
2408 | done | |
2409 | { ac_configure_args0=; unset ac_configure_args0;} | |
2410 | { ac_configure_args1=; unset ac_configure_args1;} | |
2411 | ||
2412 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2413 | # config.log. We remove comments because anyway the quotes in there | |
2414 | # would cause problems or look ugly. | |
2415 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2416 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2417 | trap 'exit_status=$? | |
2418 | # Save into config.log some information that might help in debugging. | |
2419 | { | |
2420 | echo | |
2421 | ||
2422 | $as_echo "## ---------------- ## | |
2423 | ## Cache variables. ## | |
2424 | ## ---------------- ##" | |
2425 | echo | |
2426 | # The following way of writing the cache mishandles newlines in values, | |
2427 | ( | |
2428 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2429 | eval ac_val=\$$ac_var | |
2430 | case $ac_val in #( | |
2431 | *${as_nl}*) | |
2432 | case $ac_var in #( | |
2433 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2434 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2435 | esac | |
2436 | case $ac_var in #( | |
2437 | _ | IFS | as_nl) ;; #( | |
2438 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2439 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2440 | esac ;; | |
2441 | esac | |
2442 | done | |
2443 | (set) 2>&1 | | |
2444 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2445 | *${as_nl}ac_space=\ *) | |
2446 | sed -n \ | |
2447 | "s/'\''/'\''\\\\'\'''\''/g; | |
2448 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2449 | ;; #( | |
2450 | *) | |
2451 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2452 | ;; | |
2453 | esac | | |
2454 | sort | |
2455 | ) | |
2456 | echo | |
2457 | ||
2458 | $as_echo "## ----------------- ## | |
2459 | ## Output variables. ## | |
2460 | ## ----------------- ##" | |
2461 | echo | |
2462 | for ac_var in $ac_subst_vars | |
2463 | do | |
2464 | eval ac_val=\$$ac_var | |
2465 | case $ac_val in | |
2466 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2467 | esac | |
2468 | $as_echo "$ac_var='\''$ac_val'\''" | |
2469 | done | sort | |
2470 | echo | |
2471 | ||
2472 | if test -n "$ac_subst_files"; then | |
2473 | $as_echo "## ------------------- ## | |
2474 | ## File substitutions. ## | |
2475 | ## ------------------- ##" | |
2476 | echo | |
2477 | for ac_var in $ac_subst_files | |
2478 | do | |
2479 | eval ac_val=\$$ac_var | |
2480 | case $ac_val in | |
2481 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2482 | esac | |
2483 | $as_echo "$ac_var='\''$ac_val'\''" | |
2484 | done | sort | |
2485 | echo | |
2486 | fi | |
2487 | ||
2488 | if test -s confdefs.h; then | |
2489 | $as_echo "## ----------- ## | |
2490 | ## confdefs.h. ## | |
2491 | ## ----------- ##" | |
2492 | echo | |
2493 | cat confdefs.h | |
2494 | echo | |
2495 | fi | |
2496 | test "$ac_signal" != 0 && | |
2497 | $as_echo "$as_me: caught signal $ac_signal" | |
2498 | $as_echo "$as_me: exit $exit_status" | |
2499 | } >&5 | |
2500 | rm -f core *.core core.conftest.* && | |
2501 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2502 | exit $exit_status | |
2503 | ' 0 | |
2504 | for ac_signal in 1 2 13 15; do | |
2505 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2506 | done | |
2507 | ac_signal=0 | |
2508 | ||
2509 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2510 | rm -f -r conftest* confdefs.h | |
7a197a62 | 2511 | |
f11781c5 | 2512 | $as_echo "/* confdefs.h */" > confdefs.h |
8a2fc586 | 2513 | |
f11781c5 | 2514 | # Predefined preprocessor variables. |
ad6254c5 AK |
2515 | |
2516 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 2517 | #define PACKAGE_NAME "$PACKAGE_NAME" |
ad6254c5 AK |
2518 | _ACEOF |
2519 | ||
f11781c5 AK |
2520 | cat >>confdefs.h <<_ACEOF |
2521 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
ad6254c5 | 2522 | _ACEOF |
ad6254c5 | 2523 | |
f11781c5 AK |
2524 | cat >>confdefs.h <<_ACEOF |
2525 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
ad6254c5 | 2526 | _ACEOF |
f11781c5 AK |
2527 | |
2528 | cat >>confdefs.h <<_ACEOF | |
2529 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
ad6254c5 | 2530 | _ACEOF |
ad6254c5 | 2531 | |
f11781c5 AK |
2532 | cat >>confdefs.h <<_ACEOF |
2533 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2534 | _ACEOF | |
7a197a62 | 2535 | |
f11781c5 AK |
2536 | cat >>confdefs.h <<_ACEOF |
2537 | #define PACKAGE_URL "$PACKAGE_URL" | |
2538 | _ACEOF | |
ad6254c5 | 2539 | |
7a197a62 | 2540 | |
f11781c5 AK |
2541 | # Let the site file select an alternate cache file if it wants to. |
2542 | # Prefer an explicitly selected file to automatically selected ones. | |
2543 | ac_site_file1=NONE | |
2544 | ac_site_file2=NONE | |
2545 | if test -n "$CONFIG_SITE"; then | |
2546 | # We do not want a PATH search for config.site. | |
2547 | case $CONFIG_SITE in #(( | |
2548 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2549 | */*) ac_site_file1=$CONFIG_SITE;; | |
2550 | *) ac_site_file1=./$CONFIG_SITE;; | |
2551 | esac | |
2552 | elif test "x$prefix" != xNONE; then | |
2553 | ac_site_file1=$prefix/share/config.site | |
2554 | ac_site_file2=$prefix/etc/config.site | |
ad6254c5 | 2555 | else |
f11781c5 AK |
2556 | ac_site_file1=$ac_default_prefix/share/config.site |
2557 | ac_site_file2=$ac_default_prefix/etc/config.site | |
ad6254c5 | 2558 | fi |
f11781c5 AK |
2559 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2560 | do | |
2561 | test "x$ac_site_file" = xNONE && continue | |
2562 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2564 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2565 | sed 's/^/| /' "$ac_site_file" >&5 | |
2566 | . "$ac_site_file" \ | |
2567 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2568 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2569 | as_fn_error $? "failed to load site script $ac_site_file | |
2570 | See \`config.log' for more details" "$LINENO" 5; } | |
2571 | fi | |
2572 | done | |
ad6254c5 | 2573 | |
f11781c5 AK |
2574 | if test -r "$cache_file"; then |
2575 | # Some versions of bash will fail to source /dev/null (special files | |
2576 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2577 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2579 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2580 | case $cache_file in | |
2581 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2582 | *) . "./$cache_file";; | |
2583 | esac | |
2584 | fi | |
2585 | else | |
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2587 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2588 | >$cache_file | |
ad6254c5 | 2589 | fi |
ad6254c5 | 2590 | |
f11781c5 AK |
2591 | as_fn_append ac_header_list " stdlib.h" |
2592 | as_fn_append ac_header_list " unistd.h" | |
2593 | as_fn_append ac_header_list " sys/param.h" | |
2594 | # Check that the precious variables saved in the cache have kept the same | |
2595 | # value. | |
2596 | ac_cache_corrupted=false | |
2597 | for ac_var in $ac_precious_vars; do | |
2598 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2599 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2600 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2601 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2602 | case $ac_old_set,$ac_new_set in | |
2603 | set,) | |
2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2605 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2606 | ac_cache_corrupted=: ;; | |
2607 | ,set) | |
2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2609 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2610 | ac_cache_corrupted=: ;; | |
2611 | ,);; | |
2612 | *) | |
2613 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2614 | # differences in whitespace do not lead to failure. | |
2615 | ac_old_val_w=`echo x $ac_old_val` | |
2616 | ac_new_val_w=`echo x $ac_new_val` | |
2617 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2619 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2620 | ac_cache_corrupted=: | |
2621 | else | |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2623 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2624 | eval $ac_var=\$ac_old_val | |
2625 | fi | |
2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2627 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2629 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2630 | fi;; | |
2631 | esac | |
2632 | # Pass precious variables to config.status. | |
2633 | if test "$ac_new_set" = set; then | |
2634 | case $ac_new_val in | |
2635 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2636 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2637 | esac | |
2638 | case " $ac_configure_args " in | |
2639 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2640 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2641 | esac | |
2642 | fi | |
2643 | done | |
2644 | if $ac_cache_corrupted; then | |
2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2646 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2648 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2649 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
ad6254c5 | 2650 | fi |
f11781c5 AK |
2651 | ## -------------------- ## |
2652 | ## Main body of script. ## | |
2653 | ## -------------------- ## | |
ad6254c5 | 2654 | |
f11781c5 AK |
2655 | ac_ext=c |
2656 | ac_cpp='$CPP $CPPFLAGS' | |
2657 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2658 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2659 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2660 | |
ad6254c5 | 2661 | |
ad6254c5 | 2662 | |
f11781c5 | 2663 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
7a197a62 AK |
2664 | |
2665 | ||
f11781c5 AK |
2666 | ################################################################################ |
2667 | ac_aux_dir= | |
2668 | for ac_dir in autoconf "$srcdir"/autoconf; do | |
2669 | if test -f "$ac_dir/install-sh"; then | |
2670 | ac_aux_dir=$ac_dir | |
2671 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2672 | break | |
2673 | elif test -f "$ac_dir/install.sh"; then | |
2674 | ac_aux_dir=$ac_dir | |
2675 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2676 | break | |
2677 | elif test -f "$ac_dir/shtool"; then | |
2678 | ac_aux_dir=$ac_dir | |
2679 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2680 | break | |
2681 | fi | |
2682 | done | |
2683 | if test -z "$ac_aux_dir"; then | |
2684 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 | |
ad6254c5 | 2685 | fi |
ad6254c5 | 2686 | |
f11781c5 AK |
2687 | # These three variables are undocumented and unsupported, |
2688 | # and are intended to be withdrawn in a future Autoconf release. | |
2689 | # They can cause serious problems if a builder's source tree is in a directory | |
2690 | # whose full name contains unusual characters. | |
2691 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2692 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2693 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
ad6254c5 | 2694 | |
ad6254c5 | 2695 | |
8a2fc586 | 2696 | |
f11781c5 AK |
2697 | ################################################################################ |
2698 | # Make sure we can run config.sub. | |
2699 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2700 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
ad6254c5 | 2701 | |
f11781c5 AK |
2702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2703 | $as_echo_n "checking build system type... " >&6; } | |
2704 | if test "${ac_cv_build+set}" = set; then : | |
2705 | $as_echo_n "(cached) " >&6 | |
2706 | else | |
2707 | ac_build_alias=$build_alias | |
2708 | test "x$ac_build_alias" = x && | |
2709 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2710 | test "x$ac_build_alias" = x && | |
2711 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2712 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2713 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
ad6254c5 AK |
2714 | |
2715 | fi | |
f11781c5 AK |
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2717 | $as_echo "$ac_cv_build" >&6; } | |
2718 | case $ac_cv_build in | |
2719 | *-*-*) ;; | |
2720 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2721 | esac | |
2722 | build=$ac_cv_build | |
2723 | ac_save_IFS=$IFS; IFS='-' | |
2724 | set x $ac_cv_build | |
2725 | shift | |
2726 | build_cpu=$1 | |
2727 | build_vendor=$2 | |
2728 | shift; shift | |
2729 | # Remember, the first character of IFS is used to create $*, | |
2730 | # except with old shells: | |
2731 | build_os=$* | |
2732 | IFS=$ac_save_IFS | |
2733 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2734 | |
2735 | ||
f11781c5 AK |
2736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2737 | $as_echo_n "checking host system type... " >&6; } | |
2738 | if test "${ac_cv_host+set}" = set; then : | |
ec6a6fbe | 2739 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2740 | else |
f11781c5 AK |
2741 | if test "x$host_alias" = x; then |
2742 | ac_cv_host=$ac_cv_build | |
ad6254c5 | 2743 | else |
f11781c5 AK |
2744 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2745 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2746 | fi | |
ad6254c5 | 2747 | |
f11781c5 AK |
2748 | fi |
2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2750 | $as_echo "$ac_cv_host" >&6; } | |
2751 | case $ac_cv_host in | |
2752 | *-*-*) ;; | |
2753 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2754 | esac | |
2755 | host=$ac_cv_host | |
2756 | ac_save_IFS=$IFS; IFS='-' | |
2757 | set x $ac_cv_host | |
2758 | shift | |
2759 | host_cpu=$1 | |
2760 | host_vendor=$2 | |
2761 | shift; shift | |
2762 | # Remember, the first character of IFS is used to create $*, | |
2763 | # except with old shells: | |
2764 | host_os=$* | |
2765 | IFS=$ac_save_IFS | |
2766 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 | 2767 | |
ad6254c5 | 2768 | |
f11781c5 AK |
2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2770 | $as_echo_n "checking target system type... " >&6; } | |
2771 | if test "${ac_cv_target+set}" = set; then : | |
2772 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2773 | else |
f11781c5 AK |
2774 | if test "x$target_alias" = x; then |
2775 | ac_cv_target=$ac_cv_host | |
2776 | else | |
2777 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2778 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
ad6254c5 | 2779 | fi |
7a197a62 | 2780 | |
ad6254c5 | 2781 | fi |
f11781c5 AK |
2782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2783 | $as_echo "$ac_cv_target" >&6; } | |
2784 | case $ac_cv_target in | |
2785 | *-*-*) ;; | |
2786 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
8a2fc586 | 2787 | esac |
f11781c5 AK |
2788 | target=$ac_cv_target |
2789 | ac_save_IFS=$IFS; IFS='-' | |
2790 | set x $ac_cv_target | |
2791 | shift | |
2792 | target_cpu=$1 | |
2793 | target_vendor=$2 | |
2794 | shift; shift | |
2795 | # Remember, the first character of IFS is used to create $*, | |
2796 | # except with old shells: | |
2797 | target_os=$* | |
2798 | IFS=$ac_save_IFS | |
2799 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8a2fc586 | 2800 | |
ad6254c5 | 2801 | |
f11781c5 AK |
2802 | # The aliases save the names the user supplied, while $host etc. |
2803 | # will get canonicalized. | |
2804 | test -n "$target_alias" && | |
2805 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2806 | NONENONEs,x,x, && | |
2807 | program_prefix=${target_alias}- | |
ad6254c5 | 2808 | |
f11781c5 AK |
2809 | case "$host_os" in |
2810 | linux*) | |
2811 | CFLAGS="$CFLAGS" | |
2812 | COPTIMISE_FLAG="-O2" | |
2813 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
2814 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
2815 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2816 | LDDEPS="$LDDEPS .export.sym" | |
2817 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" | |
2818 | LIB_SUFFIX=so | |
2819 | DEVMAPPER=yes | |
2820 | ODIRECT=yes | |
2821 | DM_IOCTLS=yes | |
2822 | SELINUX=yes | |
2823 | CLUSTER=internal | |
2824 | FSADM=yes | |
2825 | ;; | |
2826 | darwin*) | |
2827 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2828 | COPTIMISE_FLAG="-O2" | |
2829 | CLDFLAGS="$CLDFLAGS" | |
2830 | CLDWHOLEARCHIVE="-all_load" | |
2831 | CLDNOWHOLEARCHIVE= | |
2832 | LIB_SUFFIX=dylib | |
2833 | DEVMAPPER=yes | |
2834 | ODIRECT=no | |
2835 | DM_IOCTLS=no | |
2836 | SELINUX=no | |
2837 | CLUSTER=none | |
2838 | FSADM=no | |
2839 | ;; | |
2840 | esac | |
ad6254c5 | 2841 | |
f11781c5 AK |
2842 | ################################################################################ |
2843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
2844 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2845 | if test "${ac_cv_path_SED+set}" = set; then : | |
ec6a6fbe | 2846 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2847 | else |
f11781c5 AK |
2848 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
2849 | for ac_i in 1 2 3 4 5 6 7; do | |
2850 | ac_script="$ac_script$as_nl$ac_script" | |
2851 | done | |
2852 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2853 | { ac_script=; unset ac_script;} | |
2854 | if test -z "$SED"; then | |
2855 | ac_path_SED_found=false | |
2856 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2858 | for as_dir in $PATH | |
2859 | do | |
2860 | IFS=$as_save_IFS | |
2861 | test -z "$as_dir" && as_dir=. | |
2862 | for ac_prog in sed gsed; do | |
2863 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2864 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2865 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2866 | # Check for GNU ac_path_SED and select it if it is found. | |
2867 | # Check for GNU $ac_path_SED | |
2868 | case `"$ac_path_SED" --version 2>&1` in | |
2869 | *GNU*) | |
2870 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2871 | *) | |
2872 | ac_count=0 | |
2873 | $as_echo_n 0123456789 >"conftest.in" | |
2874 | while : | |
2875 | do | |
2876 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2877 | mv "conftest.tmp" "conftest.in" | |
2878 | cp "conftest.in" "conftest.nl" | |
2879 | $as_echo '' >> "conftest.nl" | |
2880 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2881 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2882 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2883 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2884 | # Best one so far, save it but keep looking for a better one | |
2885 | ac_cv_path_SED="$ac_path_SED" | |
2886 | ac_path_SED_max=$ac_count | |
2887 | fi | |
2888 | # 10*(2^10) chars as input seems more than enough | |
2889 | test $ac_count -gt 10 && break | |
2890 | done | |
2891 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7a197a62 | 2892 | esac |
ad6254c5 | 2893 | |
f11781c5 AK |
2894 | $ac_path_SED_found && break 3 |
2895 | done | |
2896 | done | |
2897 | done | |
2898 | IFS=$as_save_IFS | |
2899 | if test -z "$ac_cv_path_SED"; then | |
2900 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2901 | fi | |
2902 | else | |
2903 | ac_cv_path_SED=$SED | |
ad6254c5 | 2904 | fi |
7a197a62 | 2905 | |
f11781c5 AK |
2906 | fi |
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2908 | $as_echo "$ac_cv_path_SED" >&6; } | |
2909 | SED="$ac_cv_path_SED" | |
2910 | rm -f conftest.sed | |
ad6254c5 | 2911 | |
f11781c5 AK |
2912 | for ac_prog in gawk mawk nawk awk |
2913 | do | |
2914 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2915 | set dummy $ac_prog; ac_word=$2 | |
2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2917 | $as_echo_n "checking for $ac_word... " >&6; } | |
2918 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2919 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2920 | else |
f11781c5 AK |
2921 | if test -n "$AWK"; then |
2922 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2923 | else | |
2924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2925 | for as_dir in $PATH | |
2926 | do | |
2927 | IFS=$as_save_IFS | |
2928 | test -z "$as_dir" && as_dir=. | |
2929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2930 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2931 | ac_cv_prog_AWK="$ac_prog" | |
2932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2933 | break 2 | |
2934 | fi | |
2935 | done | |
2936 | done | |
2937 | IFS=$as_save_IFS | |
ad6254c5 | 2938 | |
ad6254c5 | 2939 | fi |
ad6254c5 | 2940 | fi |
f11781c5 AK |
2941 | AWK=$ac_cv_prog_AWK |
2942 | if test -n "$AWK"; then | |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2944 | $as_echo "$AWK" >&6; } | |
2945 | else | |
2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2947 | $as_echo "no" >&6; } | |
ad6254c5 | 2948 | fi |
ad6254c5 | 2949 | |
ad6254c5 | 2950 | |
f11781c5 | 2951 | test -n "$AWK" && break |
ad6254c5 AK |
2952 | done |
2953 | ||
f11781c5 AK |
2954 | ac_ext=c |
2955 | ac_cpp='$CPP $CPPFLAGS' | |
2956 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2957 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2958 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2959 | if test -n "$ac_tool_prefix"; then | |
2960 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2961 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2963 | $as_echo_n "checking for $ac_word... " >&6; } | |
2964 | if test "${ac_cv_prog_CC+set}" = set; then : | |
ec6a6fbe | 2965 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2966 | else |
f11781c5 AK |
2967 | if test -n "$CC"; then |
2968 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
ad6254c5 | 2969 | else |
f11781c5 AK |
2970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2971 | for as_dir in $PATH | |
2972 | do | |
2973 | IFS=$as_save_IFS | |
2974 | test -z "$as_dir" && as_dir=. | |
2975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2977 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2979 | break 2 | |
2980 | fi | |
2981 | done | |
2982 | done | |
2983 | IFS=$as_save_IFS | |
ad6254c5 | 2984 | |
ad6254c5 | 2985 | fi |
ad6254c5 | 2986 | fi |
f11781c5 AK |
2987 | CC=$ac_cv_prog_CC |
2988 | if test -n "$CC"; then | |
2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2990 | $as_echo "$CC" >&6; } | |
2991 | else | |
2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2993 | $as_echo "no" >&6; } | |
ad6254c5 | 2994 | fi |
ad6254c5 | 2995 | |
f11781c5 AK |
2996 | |
2997 | fi | |
2998 | if test -z "$ac_cv_prog_CC"; then | |
2999 | ac_ct_CC=$CC | |
3000 | # Extract the first word of "gcc", so it can be a program name with args. | |
3001 | set dummy gcc; ac_word=$2 | |
3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3003 | $as_echo_n "checking for $ac_word... " >&6; } | |
3004 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
ec6a6fbe | 3005 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3006 | else |
f11781c5 AK |
3007 | if test -n "$ac_ct_CC"; then |
3008 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d911ec67 | 3009 | else |
f11781c5 AK |
3010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3011 | for as_dir in $PATH | |
3012 | do | |
3013 | IFS=$as_save_IFS | |
3014 | test -z "$as_dir" && as_dir=. | |
3015 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3016 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3017 | ac_cv_prog_ac_ct_CC="gcc" | |
3018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3019 | break 2 | |
3020 | fi | |
3021 | done | |
3022 | done | |
3023 | IFS=$as_save_IFS | |
d911ec67 | 3024 | |
d911ec67 | 3025 | fi |
d911ec67 | 3026 | fi |
f11781c5 AK |
3027 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3028 | if test -n "$ac_ct_CC"; then | |
3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3030 | $as_echo "$ac_ct_CC" >&6; } | |
3031 | else | |
3032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3033 | $as_echo "no" >&6; } | |
d911ec67 | 3034 | fi |
d911ec67 | 3035 | |
f11781c5 AK |
3036 | if test "x$ac_ct_CC" = x; then |
3037 | CC="" | |
3038 | else | |
3039 | case $cross_compiling:$ac_tool_warned in | |
3040 | yes:) | |
3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3042 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3043 | ac_tool_warned=yes ;; | |
3044 | esac | |
3045 | CC=$ac_ct_CC | |
3046 | fi | |
3047 | else | |
3048 | CC="$ac_cv_prog_CC" | |
d911ec67 | 3049 | fi |
d911ec67 | 3050 | |
f11781c5 AK |
3051 | if test -z "$CC"; then |
3052 | if test -n "$ac_tool_prefix"; then | |
3053 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3054 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3056 | $as_echo_n "checking for $ac_word... " >&6; } | |
3057 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 | 3058 | $as_echo_n "(cached) " >&6 |
d911ec67 | 3059 | else |
f11781c5 AK |
3060 | if test -n "$CC"; then |
3061 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d911ec67 | 3062 | else |
f11781c5 AK |
3063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3064 | for as_dir in $PATH | |
3065 | do | |
3066 | IFS=$as_save_IFS | |
3067 | test -z "$as_dir" && as_dir=. | |
3068 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3069 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3070 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3071 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3072 | break 2 | |
3073 | fi | |
3074 | done | |
3075 | done | |
3076 | IFS=$as_save_IFS | |
d911ec67 | 3077 | |
f11781c5 AK |
3078 | fi |
3079 | fi | |
3080 | CC=$ac_cv_prog_CC | |
3081 | if test -n "$CC"; then | |
3082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3083 | $as_echo "$CC" >&6; } | |
3084 | else | |
3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3086 | $as_echo "no" >&6; } | |
d911ec67 AK |
3087 | fi |
3088 | ||
d911ec67 | 3089 | |
f11781c5 AK |
3090 | fi |
3091 | fi | |
3092 | if test -z "$CC"; then | |
3093 | # Extract the first word of "cc", so it can be a program name with args. | |
3094 | set dummy cc; ac_word=$2 | |
3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3096 | $as_echo_n "checking for $ac_word... " >&6; } | |
3097 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3098 | $as_echo_n "(cached) " >&6 | |
d911ec67 | 3099 | else |
f11781c5 AK |
3100 | if test -n "$CC"; then |
3101 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3102 | else | |
3103 | ac_prog_rejected=no | |
3104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3105 | for as_dir in $PATH | |
3106 | do | |
3107 | IFS=$as_save_IFS | |
3108 | test -z "$as_dir" && as_dir=. | |
3109 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3110 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3111 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3112 | ac_prog_rejected=yes | |
3113 | continue | |
3114 | fi | |
3115 | ac_cv_prog_CC="cc" | |
3116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3117 | break 2 | |
3118 | fi | |
3119 | done | |
3120 | done | |
3121 | IFS=$as_save_IFS | |
d911ec67 | 3122 | |
f11781c5 AK |
3123 | if test $ac_prog_rejected = yes; then |
3124 | # We found a bogon in the path, so make sure we never use it. | |
3125 | set dummy $ac_cv_prog_CC | |
3126 | shift | |
3127 | if test $# != 0; then | |
3128 | # We chose a different compiler from the bogus one. | |
3129 | # However, it has the same basename, so the bogon will be chosen | |
3130 | # first if we set CC to just the basename; use the full file name. | |
3131 | shift | |
3132 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3133 | fi | |
3134 | fi | |
3135 | fi | |
3136 | fi | |
3137 | CC=$ac_cv_prog_CC | |
3138 | if test -n "$CC"; then | |
3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3140 | $as_echo "$CC" >&6; } | |
3141 | else | |
3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3143 | $as_echo "no" >&6; } | |
d911ec67 AK |
3144 | fi |
3145 | ||
d911ec67 | 3146 | |
f11781c5 AK |
3147 | fi |
3148 | if test -z "$CC"; then | |
3149 | if test -n "$ac_tool_prefix"; then | |
3150 | for ac_prog in cl.exe | |
3151 | do | |
3152 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3153 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3155 | $as_echo_n "checking for $ac_word... " >&6; } | |
3156 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 AK |
3157 | $as_echo_n "(cached) " >&6 |
3158 | else | |
f11781c5 AK |
3159 | if test -n "$CC"; then |
3160 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3161 | else | |
3162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3163 | for as_dir in $PATH | |
3164 | do | |
3165 | IFS=$as_save_IFS | |
3166 | test -z "$as_dir" && as_dir=. | |
3167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3168 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3169 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3171 | break 2 | |
3172 | fi | |
3173 | done | |
3174 | done | |
3175 | IFS=$as_save_IFS | |
d911ec67 AK |
3176 | |
3177 | fi | |
f11781c5 AK |
3178 | fi |
3179 | CC=$ac_cv_prog_CC | |
3180 | if test -n "$CC"; then | |
3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3182 | $as_echo "$CC" >&6; } | |
3183 | else | |
3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3185 | $as_echo "no" >&6; } | |
d911ec67 AK |
3186 | fi |
3187 | ||
d911ec67 | 3188 | |
f11781c5 AK |
3189 | test -n "$CC" && break |
3190 | done | |
3191 | fi | |
3192 | if test -z "$CC"; then | |
3193 | ac_ct_CC=$CC | |
3194 | for ac_prog in cl.exe | |
3195 | do | |
3196 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3197 | set dummy $ac_prog; ac_word=$2 | |
3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3199 | $as_echo_n "checking for $ac_word... " >&6; } | |
3200 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
d911ec67 AK |
3201 | $as_echo_n "(cached) " >&6 |
3202 | else | |
f11781c5 AK |
3203 | if test -n "$ac_ct_CC"; then |
3204 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
ad6254c5 | 3205 | else |
f11781c5 AK |
3206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3207 | for as_dir in $PATH | |
3208 | do | |
3209 | IFS=$as_save_IFS | |
3210 | test -z "$as_dir" && as_dir=. | |
3211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3213 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3215 | break 2 | |
3216 | fi | |
3217 | done | |
3218 | done | |
3219 | IFS=$as_save_IFS | |
ad6254c5 | 3220 | |
ad6254c5 | 3221 | fi |
ad6254c5 | 3222 | fi |
f11781c5 AK |
3223 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3224 | if test -n "$ac_ct_CC"; then | |
3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3226 | $as_echo "$ac_ct_CC" >&6; } | |
3227 | else | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3229 | $as_echo "no" >&6; } | |
ad6254c5 | 3230 | fi |
ad6254c5 | 3231 | |
d911ec67 | 3232 | |
f11781c5 AK |
3233 | test -n "$ac_ct_CC" && break |
3234 | done | |
d911ec67 | 3235 | |
f11781c5 AK |
3236 | if test "x$ac_ct_CC" = x; then |
3237 | CC="" | |
3238 | else | |
3239 | case $cross_compiling:$ac_tool_warned in | |
3240 | yes:) | |
3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3242 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3243 | ac_tool_warned=yes ;; | |
d911ec67 | 3244 | esac |
f11781c5 AK |
3245 | CC=$ac_ct_CC |
3246 | fi | |
3247 | fi | |
ad6254c5 AK |
3248 | |
3249 | fi | |
d911ec67 AK |
3250 | |
3251 | ||
f11781c5 AK |
3252 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3253 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3254 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3255 | See \`config.log' for more details" "$LINENO" 5; } | |
3256 | ||
3257 | # Provide some information about the compiler. | |
3258 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3259 | set X $ac_compile | |
3260 | ac_compiler=$2 | |
3261 | for ac_option in --version -v -V -qversion; do | |
3262 | { { ac_try="$ac_compiler $ac_option >&5" | |
3263 | case "(($ac_try" in | |
3264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3265 | *) ac_try_echo=$ac_try;; | |
3266 | esac | |
3267 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3268 | $as_echo "$ac_try_echo"; } >&5 | |
3269 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3270 | ac_status=$? | |
3271 | if test -s conftest.err; then | |
3272 | sed '10a\ | |
3273 | ... rest of stderr output deleted ... | |
3274 | 10q' conftest.err >conftest.er1 | |
3275 | cat conftest.er1 >&5 | |
3276 | fi | |
3277 | rm -f conftest.er1 conftest.err | |
3278 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3279 | test $ac_status = 0; } | |
3280 | done | |
ad6254c5 | 3281 | |
f11781c5 | 3282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 3283 | /* end confdefs.h. */ |
f11781c5 | 3284 | |
ad6254c5 AK |
3285 | int |
3286 | main () | |
3287 | { | |
f11781c5 | 3288 | |
ad6254c5 AK |
3289 | ; |
3290 | return 0; | |
3291 | } | |
3292 | _ACEOF | |
f11781c5 AK |
3293 | ac_clean_files_save=$ac_clean_files |
3294 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3295 | # Try to create an executable without -o first, disregard a.out. | |
3296 | # It will help us diagnose broken compilers, and finding out an intuition | |
3297 | # of exeext. | |
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3299 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3300 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3301 | ||
3302 | # The possible output files: | |
3303 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3304 | ||
3305 | ac_rmfiles= | |
3306 | for ac_file in $ac_files | |
3307 | do | |
3308 | case $ac_file in | |
3309 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3310 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3311 | esac | |
3312 | done | |
3313 | rm -f $ac_rmfiles | |
3314 | ||
3315 | if { { ac_try="$ac_link_default" | |
7a197a62 AK |
3316 | case "(($ac_try" in |
3317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3318 | *) ac_try_echo=$ac_try;; | |
3319 | esac | |
f11781c5 AK |
3320 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3321 | $as_echo "$ac_try_echo"; } >&5 | |
3322 | (eval "$ac_link_default") 2>&5 | |
ad6254c5 | 3323 | ac_status=$? |
f11781c5 AK |
3324 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3325 | test $ac_status = 0; }; then : | |
3326 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3327 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3328 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3329 | # so that the user can short-circuit this test for compilers unknown to | |
3330 | # Autoconf. | |
3331 | for ac_file in $ac_files '' | |
3332 | do | |
3333 | test -f "$ac_file" || continue | |
3334 | case $ac_file in | |
3335 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3336 | ;; | |
3337 | [ab].out ) | |
3338 | # We found the default executable, but exeext='' is most | |
3339 | # certainly right. | |
3340 | break;; | |
3341 | *.* ) | |
3342 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3343 | then :; else | |
3344 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3345 | fi | |
3346 | # We set ac_cv_exeext here because the later test for it is not | |
3347 | # safe: cross compilers may not add the suffix if given an `-o' | |
3348 | # argument, so we may need to know it at that point already. | |
3349 | # Even if this section looks crufty: it has the advantage of | |
3350 | # actually working. | |
3351 | break;; | |
3352 | * ) | |
3353 | break;; | |
3354 | esac | |
3355 | done | |
3356 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3357 | ||
ad6254c5 | 3358 | else |
f11781c5 AK |
3359 | ac_file='' |
3360 | fi | |
3361 | if test -z "$ac_file"; then : | |
3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3363 | $as_echo "no" >&6; } | |
ec6a6fbe | 3364 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3365 | sed 's/^/| /' conftest.$ac_ext >&5 |
3366 | ||
f11781c5 AK |
3367 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3368 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3369 | as_fn_error 77 "C compiler cannot create executables | |
3370 | See \`config.log' for more details" "$LINENO" 5; } | |
3371 | else | |
3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3373 | $as_echo "yes" >&6; } | |
ad6254c5 | 3374 | fi |
f11781c5 AK |
3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3376 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3378 | $as_echo "$ac_file" >&6; } | |
3379 | ac_exeext=$ac_cv_exeext | |
7a197a62 | 3380 | |
f11781c5 AK |
3381 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3382 | ac_clean_files=$ac_clean_files_save | |
3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3384 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3385 | if { { ac_try="$ac_link" | |
3386 | case "(($ac_try" in | |
3387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3388 | *) ac_try_echo=$ac_try;; | |
8a2fc586 | 3389 | esac |
f11781c5 AK |
3390 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3391 | $as_echo "$ac_try_echo"; } >&5 | |
3392 | (eval "$ac_link") 2>&5 | |
3393 | ac_status=$? | |
3394 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3395 | test $ac_status = 0; }; then : | |
3396 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3397 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3398 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3399 | # `rm'. | |
3400 | for ac_file in conftest.exe conftest conftest.*; do | |
3401 | test -f "$ac_file" || continue | |
3402 | case $ac_file in | |
3403 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3404 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3405 | break;; | |
3406 | * ) break;; | |
3407 | esac | |
3408 | done | |
3409 | else | |
3410 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3411 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3412 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3413 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3414 | fi |
f11781c5 AK |
3415 | rm -f conftest conftest$ac_cv_exeext |
3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3417 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 | 3418 | |
f11781c5 AK |
3419 | rm -f conftest.$ac_ext |
3420 | EXEEXT=$ac_cv_exeext | |
3421 | ac_exeext=$EXEEXT | |
3422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 3423 | /* end confdefs.h. */ |
f11781c5 | 3424 | #include <stdio.h> |
ad6254c5 | 3425 | int |
f11781c5 | 3426 | main () |
ad6254c5 | 3427 | { |
f11781c5 AK |
3428 | FILE *f = fopen ("conftest.out", "w"); |
3429 | return ferror (f) || fclose (f) != 0; | |
ad6254c5 | 3430 | |
f11781c5 | 3431 | ; |
7a197a62 | 3432 | return 0; |
ad6254c5 | 3433 | } |
ad6254c5 | 3434 | _ACEOF |
f11781c5 AK |
3435 | ac_clean_files="$ac_clean_files conftest.out" |
3436 | # Check that the compiler produces executables we can run. If not, either | |
3437 | # the compiler is broken, or we cross compile. | |
3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3439 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3440 | if test "$cross_compiling" != yes; then | |
3441 | { { ac_try="$ac_link" | |
7a197a62 AK |
3442 | case "(($ac_try" in |
3443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3444 | *) ac_try_echo=$ac_try;; | |
3445 | esac | |
f11781c5 AK |
3446 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3447 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3448 | (eval "$ac_link") 2>&5 |
ad6254c5 | 3449 | ac_status=$? |
f11781c5 AK |
3450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3451 | test $ac_status = 0; } | |
3452 | if { ac_try='./conftest$ac_cv_exeext' | |
3453 | { { case "(($ac_try" in | |
7a197a62 AK |
3454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3455 | *) ac_try_echo=$ac_try;; | |
3456 | esac | |
f11781c5 AK |
3457 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3458 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3459 | (eval "$ac_try") 2>&5 |
ad6254c5 | 3460 | ac_status=$? |
f11781c5 AK |
3461 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3462 | test $ac_status = 0; }; }; then | |
3463 | cross_compiling=no | |
3464 | else | |
3465 | if test "$cross_compiling" = maybe; then | |
3466 | cross_compiling=yes | |
3467 | else | |
3468 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3469 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3470 | as_fn_error $? "cannot run C compiled programs. | |
3471 | If you meant to cross compile, use \`--host'. | |
3472 | See \`config.log' for more details" "$LINENO" 5; } | |
3473 | fi | |
3474 | fi | |
3475 | fi | |
3476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3477 | $as_echo "$cross_compiling" >&6; } | |
3478 | ||
3479 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3480 | ac_clean_files=$ac_clean_files_save | |
3481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3482 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3483 | if test "${ac_cv_objext+set}" = set; then : | |
3484 | $as_echo_n "(cached) " >&6 | |
3485 | else | |
3486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3487 | /* end confdefs.h. */ | |
ad6254c5 AK |
3488 | |
3489 | int | |
3490 | main () | |
3491 | { | |
f11781c5 | 3492 | |
ad6254c5 AK |
3493 | ; |
3494 | return 0; | |
3495 | } | |
3496 | _ACEOF | |
f11781c5 AK |
3497 | rm -f conftest.o conftest.obj |
3498 | if { { ac_try="$ac_compile" | |
7a197a62 AK |
3499 | case "(($ac_try" in |
3500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3501 | *) ac_try_echo=$ac_try;; | |
3502 | esac | |
f11781c5 AK |
3503 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3504 | $as_echo "$ac_try_echo"; } >&5 | |
3505 | (eval "$ac_compile") 2>&5 | |
ad6254c5 | 3506 | ac_status=$? |
f11781c5 AK |
3507 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3508 | test $ac_status = 0; }; then : | |
3509 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3510 | test -f "$ac_file" || continue; | |
3511 | case $ac_file in | |
3512 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3513 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3514 | break;; | |
3515 | esac | |
3516 | done | |
ad6254c5 | 3517 | else |
ec6a6fbe | 3518 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3519 | sed 's/^/| /' conftest.$ac_ext >&5 |
3520 | ||
f11781c5 AK |
3521 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3522 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3523 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3524 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3525 | fi |
f11781c5 | 3526 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ad6254c5 | 3527 | fi |
f11781c5 AK |
3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3529 | $as_echo "$ac_cv_objext" >&6; } | |
3530 | OBJEXT=$ac_cv_objext | |
3531 | ac_objext=$OBJEXT | |
3532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3533 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3534 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
ec6a6fbe | 3535 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3536 | else |
f11781c5 | 3537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 AK |
3538 | /* end confdefs.h. */ |
3539 | ||
ad6254c5 AK |
3540 | int |
3541 | main () | |
3542 | { | |
f11781c5 AK |
3543 | #ifndef __GNUC__ |
3544 | choke me | |
3545 | #endif | |
3546 | ||
ad6254c5 AK |
3547 | ; |
3548 | return 0; | |
3549 | } | |
3550 | _ACEOF | |
f11781c5 AK |
3551 | if ac_fn_c_try_compile "$LINENO"; then : |
3552 | ac_compiler_gnu=yes | |
ad6254c5 | 3553 | else |
f11781c5 | 3554 | ac_compiler_gnu=no |
ad6254c5 | 3555 | fi |
f11781c5 AK |
3556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3557 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
7a197a62 | 3558 | |
d0191583 | 3559 | fi |
f11781c5 AK |
3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3561 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3562 | if test $ac_compiler_gnu = yes; then | |
3563 | GCC=yes | |
d0191583 | 3564 | else |
f11781c5 | 3565 | GCC= |
d0191583 | 3566 | fi |
f11781c5 AK |
3567 | ac_test_CFLAGS=${CFLAGS+set} |
3568 | ac_save_CFLAGS=$CFLAGS | |
3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3570 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3571 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3572 | $as_echo_n "(cached) " >&6 | |
3573 | else | |
3574 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3575 | ac_c_werror_flag=yes | |
3576 | ac_cv_prog_cc_g=no | |
3577 | CFLAGS="-g" | |
3578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3579 | /* end confdefs.h. */ | |
72b2cb61 | 3580 | |
f11781c5 AK |
3581 | int |
3582 | main () | |
3583 | { | |
72b2cb61 | 3584 | |
f11781c5 AK |
3585 | ; |
3586 | return 0; | |
3587 | } | |
3588 | _ACEOF | |
3589 | if ac_fn_c_try_compile "$LINENO"; then : | |
3590 | ac_cv_prog_cc_g=yes | |
3591 | else | |
3592 | CFLAGS="" | |
3593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3594 | /* end confdefs.h. */ | |
ad6254c5 | 3595 | |
f11781c5 AK |
3596 | int |
3597 | main () | |
3598 | { | |
ad6254c5 | 3599 | |
f11781c5 AK |
3600 | ; |
3601 | return 0; | |
3602 | } | |
d0191583 | 3603 | _ACEOF |
f11781c5 AK |
3604 | if ac_fn_c_try_compile "$LINENO"; then : |
3605 | ||
3606 | else | |
3607 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3608 | CFLAGS="-g" | |
3609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3610 | /* end confdefs.h. */ |
7a197a62 | 3611 | |
f11781c5 AK |
3612 | int |
3613 | main () | |
3614 | { | |
ad6254c5 | 3615 | |
f11781c5 AK |
3616 | ; |
3617 | return 0; | |
3618 | } | |
3619 | _ACEOF | |
3620 | if ac_fn_c_try_compile "$LINENO"; then : | |
3621 | ac_cv_prog_cc_g=yes | |
3622 | fi | |
3623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3624 | fi | |
3625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3626 | fi | |
3627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3628 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3629 | fi | |
3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3631 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3632 | if test "$ac_test_CFLAGS" = set; then | |
3633 | CFLAGS=$ac_save_CFLAGS | |
3634 | elif test $ac_cv_prog_cc_g = yes; then | |
3635 | if test "$GCC" = yes; then | |
3636 | CFLAGS="-g -O2" | |
3637 | else | |
3638 | CFLAGS="-g" | |
3639 | fi | |
3640 | else | |
3641 | if test "$GCC" = yes; then | |
3642 | CFLAGS="-O2" | |
3643 | else | |
3644 | CFLAGS= | |
3645 | fi | |
3646 | fi | |
3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3648 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3649 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3650 | $as_echo_n "(cached) " >&6 | |
3651 | else | |
3652 | ac_cv_prog_cc_c89=no | |
3653 | ac_save_CC=$CC | |
3654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3655 | /* end confdefs.h. */ | |
3656 | #include <stdarg.h> | |
3657 | #include <stdio.h> | |
3658 | #include <sys/types.h> | |
3659 | #include <sys/stat.h> | |
3660 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3661 | struct buf { int x; }; | |
3662 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3663 | static char *e (p, i) | |
3664 | char **p; | |
3665 | int i; | |
3666 | { | |
3667 | return p[i]; | |
3668 | } | |
3669 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3670 | { | |
3671 | char *s; | |
3672 | va_list v; | |
3673 | va_start (v,p); | |
3674 | s = g (p, va_arg (v,int)); | |
3675 | va_end (v); | |
3676 | return s; | |
3677 | } | |
ad6254c5 | 3678 | |
f11781c5 AK |
3679 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3680 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3681 | These don't provoke an error unfortunately, instead are silently treated | |
3682 | as 'x'. The following induces an error, until -std is added to get | |
3683 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3684 | array size at least. It's necessary to write '\x00'==0 to get something | |
3685 | that's true only with -std. */ | |
3686 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
72b2cb61 | 3687 | |
f11781c5 AK |
3688 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3689 | inside strings and character constants. */ | |
3690 | #define FOO(x) 'x' | |
3691 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
d0191583 | 3692 | |
f11781c5 AK |
3693 | int test (int i, double x); |
3694 | struct s1 {int (*f) (int a);}; | |
3695 | struct s2 {int (*f) (double a);}; | |
3696 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3697 | int argc; | |
3698 | char **argv; | |
d0191583 JM |
3699 | int |
3700 | main () | |
3701 | { | |
f11781c5 | 3702 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
d0191583 JM |
3703 | ; |
3704 | return 0; | |
3705 | } | |
72b2cb61 | 3706 | _ACEOF |
f11781c5 AK |
3707 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3708 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3709 | do | |
3710 | CC="$ac_save_CC $ac_arg" | |
3711 | if ac_fn_c_try_compile "$LINENO"; then : | |
3712 | ac_cv_prog_cc_c89=$ac_arg | |
3713 | fi | |
3714 | rm -f core conftest.err conftest.$ac_objext | |
3715 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3716 | done | |
3717 | rm -f conftest.$ac_ext | |
3718 | CC=$ac_save_CC | |
3719 | ||
3720 | fi | |
3721 | # AC_CACHE_VAL | |
3722 | case "x$ac_cv_prog_cc_c89" in | |
3723 | x) | |
3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3725 | $as_echo "none needed" >&6; } ;; | |
3726 | xno) | |
3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3728 | $as_echo "unsupported" >&6; } ;; | |
3729 | *) | |
3730 | CC="$CC $ac_cv_prog_cc_c89" | |
3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3732 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d0191583 | 3733 | esac |
f11781c5 AK |
3734 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
3735 | ||
3736 | fi | |
3737 | ||
3738 | ac_ext=c | |
3739 | ac_cpp='$CPP $CPPFLAGS' | |
3740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
72b2cb61 | 3743 | |
ad6254c5 | 3744 | |
7a197a62 | 3745 | |
f11781c5 AK |
3746 | ac_ext=c |
3747 | ac_cpp='$CPP $CPPFLAGS' | |
3748 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3749 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3752 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3753 | # On Suns, sometimes $CPP names a directory. | |
3754 | if test -n "$CPP" && test -d "$CPP"; then | |
3755 | CPP= | |
3756 | fi | |
3757 | if test -z "$CPP"; then | |
3758 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
ec6a6fbe | 3759 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3760 | else |
f11781c5 AK |
3761 | # Double quotes because CPP needs to be expanded |
3762 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3763 | do | |
3764 | ac_preproc_ok=false | |
3765 | for ac_c_preproc_warn_flag in '' yes | |
3766 | do | |
3767 | # Use a header file that comes with gcc, so configuring glibc | |
3768 | # with a fresh cross-compiler works. | |
3769 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3770 | # <limits.h> exists even on freestanding compilers. | |
3771 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3772 | # not just through cpp. "Syntax error" is here to catch this case. | |
3773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3774 | /* end confdefs.h. */ |
d0191583 JM |
3775 | #ifdef __STDC__ |
3776 | # include <limits.h> | |
3777 | #else | |
3778 | # include <assert.h> | |
3779 | #endif | |
f11781c5 AK |
3780 | Syntax error |
3781 | _ACEOF | |
3782 | if ac_fn_c_try_cpp "$LINENO"; then : | |
72b2cb61 | 3783 | |
f11781c5 AK |
3784 | else |
3785 | # Broken: fails on valid input. | |
3786 | continue | |
3787 | fi | |
3788 | rm -f conftest.err conftest.$ac_ext | |
d0191583 | 3789 | |
f11781c5 AK |
3790 | # OK, works on sane cases. Now check whether nonexistent headers |
3791 | # can be detected and how. | |
3792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3793 | /* end confdefs.h. */ | |
3794 | #include <ac_nonexistent.h> | |
72b2cb61 | 3795 | _ACEOF |
f11781c5 AK |
3796 | if ac_fn_c_try_cpp "$LINENO"; then : |
3797 | # Broken: success on invalid input. | |
3798 | continue | |
d0191583 | 3799 | else |
f11781c5 AK |
3800 | # Passes both tests. |
3801 | ac_preproc_ok=: | |
3802 | break | |
ad6254c5 | 3803 | fi |
f11781c5 | 3804 | rm -f conftest.err conftest.$ac_ext |
ad6254c5 | 3805 | |
f11781c5 AK |
3806 | done |
3807 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3808 | rm -f conftest.err conftest.$ac_ext | |
3809 | if $ac_preproc_ok; then : | |
3810 | break | |
7a197a62 AK |
3811 | fi |
3812 | ||
f11781c5 AK |
3813 | done |
3814 | ac_cv_prog_CPP=$CPP | |
ad6254c5 | 3815 | |
7a197a62 | 3816 | fi |
f11781c5 AK |
3817 | CPP=$ac_cv_prog_CPP |
3818 | else | |
3819 | ac_cv_prog_CPP=$CPP | |
d0191583 | 3820 | fi |
f11781c5 AK |
3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3822 | $as_echo "$CPP" >&6; } | |
3823 | ac_preproc_ok=false | |
3824 | for ac_c_preproc_warn_flag in '' yes | |
3825 | do | |
3826 | # Use a header file that comes with gcc, so configuring glibc | |
3827 | # with a fresh cross-compiler works. | |
3828 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3829 | # <limits.h> exists even on freestanding compilers. | |
3830 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3831 | # not just through cpp. "Syntax error" is here to catch this case. | |
3832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3833 | /* end confdefs.h. */ | |
3834 | #ifdef __STDC__ | |
3835 | # include <limits.h> | |
3836 | #else | |
3837 | # include <assert.h> | |
3838 | #endif | |
3839 | Syntax error | |
3840 | _ACEOF | |
3841 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7a197a62 | 3842 | |
9c961554 | 3843 | else |
f11781c5 AK |
3844 | # Broken: fails on valid input. |
3845 | continue | |
9c961554 | 3846 | fi |
f11781c5 | 3847 | rm -f conftest.err conftest.$ac_ext |
9c961554 | 3848 | |
f11781c5 AK |
3849 | # OK, works on sane cases. Now check whether nonexistent headers |
3850 | # can be detected and how. | |
3851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3852 | /* end confdefs.h. */ | |
3853 | #include <ac_nonexistent.h> | |
3854 | _ACEOF | |
3855 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3856 | # Broken: success on invalid input. | |
3857 | continue | |
3858 | else | |
3859 | # Passes both tests. | |
3860 | ac_preproc_ok=: | |
3861 | break | |
3862 | fi | |
3863 | rm -f conftest.err conftest.$ac_ext | |
ad6254c5 | 3864 | |
f11781c5 AK |
3865 | done |
3866 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3867 | rm -f conftest.err conftest.$ac_ext | |
3868 | if $ac_preproc_ok; then : | |
d0191583 | 3869 | |
f11781c5 AK |
3870 | else |
3871 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3872 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3873 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3874 | See \`config.log' for more details" "$LINENO" 5; } | |
7a197a62 AK |
3875 | fi |
3876 | ||
f11781c5 AK |
3877 | ac_ext=c |
3878 | ac_cpp='$CPP $CPPFLAGS' | |
3879 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3880 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3881 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 3882 | |
ad6254c5 | 3883 | |
f11781c5 AK |
3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3885 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3886 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3887 | $as_echo_n "(cached) " >&6 | |
3888 | else | |
3889 | if test -z "$GREP"; then | |
3890 | ac_path_GREP_found=false | |
3891 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3893 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3894 | do | |
3895 | IFS=$as_save_IFS | |
3896 | test -z "$as_dir" && as_dir=. | |
3897 | for ac_prog in grep ggrep; do | |
3898 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3899 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3900 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3901 | # Check for GNU ac_path_GREP and select it if it is found. | |
3902 | # Check for GNU $ac_path_GREP | |
3903 | case `"$ac_path_GREP" --version 2>&1` in | |
3904 | *GNU*) | |
3905 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3906 | *) | |
3907 | ac_count=0 | |
3908 | $as_echo_n 0123456789 >"conftest.in" | |
3909 | while : | |
3910 | do | |
3911 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3912 | mv "conftest.tmp" "conftest.in" | |
3913 | cp "conftest.in" "conftest.nl" | |
3914 | $as_echo 'GREP' >> "conftest.nl" | |
3915 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3916 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3917 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3918 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3919 | # Best one so far, save it but keep looking for a better one | |
3920 | ac_cv_path_GREP="$ac_path_GREP" | |
3921 | ac_path_GREP_max=$ac_count | |
3922 | fi | |
3923 | # 10*(2^10) chars as input seems more than enough | |
3924 | test $ac_count -gt 10 && break | |
3925 | done | |
3926 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3927 | esac | |
ad6254c5 | 3928 | |
f11781c5 AK |
3929 | $ac_path_GREP_found && break 3 |
3930 | done | |
3931 | done | |
3932 | done | |
3933 | IFS=$as_save_IFS | |
3934 | if test -z "$ac_cv_path_GREP"; then | |
3935 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3936 | fi | |
3937 | else | |
3938 | ac_cv_path_GREP=$GREP | |
7a197a62 AK |
3939 | fi |
3940 | ||
d0191583 | 3941 | fi |
f11781c5 AK |
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3943 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3944 | GREP="$ac_cv_path_GREP" | |
ad6254c5 | 3945 | |
24bbc4d7 | 3946 | |
f11781c5 AK |
3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3948 | $as_echo_n "checking for egrep... " >&6; } | |
3949 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3950 | $as_echo_n "(cached) " >&6 | |
3951 | else | |
3952 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3953 | then ac_cv_path_EGREP="$GREP -E" | |
3954 | else | |
3955 | if test -z "$EGREP"; then | |
3956 | ac_path_EGREP_found=false | |
3957 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3959 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3960 | do | |
3961 | IFS=$as_save_IFS | |
3962 | test -z "$as_dir" && as_dir=. | |
3963 | for ac_prog in egrep; do | |
3964 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3965 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3966 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3967 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3968 | # Check for GNU $ac_path_EGREP | |
3969 | case `"$ac_path_EGREP" --version 2>&1` in | |
3970 | *GNU*) | |
3971 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3972 | *) | |
3973 | ac_count=0 | |
3974 | $as_echo_n 0123456789 >"conftest.in" | |
3975 | while : | |
3976 | do | |
3977 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3978 | mv "conftest.tmp" "conftest.in" | |
3979 | cp "conftest.in" "conftest.nl" | |
3980 | $as_echo 'EGREP' >> "conftest.nl" | |
3981 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3982 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3983 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3984 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3985 | # Best one so far, save it but keep looking for a better one | |
3986 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3987 | ac_path_EGREP_max=$ac_count | |
3988 | fi | |
3989 | # 10*(2^10) chars as input seems more than enough | |
3990 | test $ac_count -gt 10 && break | |
3991 | done | |
3992 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3993 | esac | |
24bbc4d7 | 3994 | |
f11781c5 AK |
3995 | $ac_path_EGREP_found && break 3 |
3996 | done | |
3997 | done | |
3998 | done | |
3999 | IFS=$as_save_IFS | |
4000 | if test -z "$ac_cv_path_EGREP"; then | |
4001 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4002 | fi | |
24bbc4d7 | 4003 | else |
f11781c5 | 4004 | ac_cv_path_EGREP=$EGREP |
24bbc4d7 AK |
4005 | fi |
4006 | ||
f11781c5 | 4007 | fi |
24bbc4d7 | 4008 | fi |
f11781c5 AK |
4009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4010 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4011 | EGREP="$ac_cv_path_EGREP" | |
93bd259b AK |
4012 | |
4013 | ||
f11781c5 AK |
4014 | if test $ac_cv_c_compiler_gnu = yes; then |
4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4016 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
4017 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : | |
4018 | $as_echo_n "(cached) " >&6 | |
93bd259b | 4019 | else |
f11781c5 AK |
4020 | ac_pattern="Autoconf.*'x'" |
4021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4022 | /* end confdefs.h. */ | |
4023 | #include <sgtty.h> | |
4024 | Autoconf TIOCGETP | |
4025 | _ACEOF | |
4026 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4027 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4028 | ac_cv_prog_gcc_traditional=yes | |
d0191583 | 4029 | else |
f11781c5 | 4030 | ac_cv_prog_gcc_traditional=no |
7a197a62 | 4031 | fi |
f11781c5 | 4032 | rm -f conftest* |
7a197a62 | 4033 | |
72b2cb61 | 4034 | |
f11781c5 AK |
4035 | if test $ac_cv_prog_gcc_traditional = no; then |
4036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4037 | /* end confdefs.h. */ | |
4038 | #include <termio.h> | |
4039 | Autoconf TCGETA | |
72b2cb61 | 4040 | _ACEOF |
f11781c5 AK |
4041 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4042 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4043 | ac_cv_prog_gcc_traditional=yes | |
ad6254c5 | 4044 | fi |
f11781c5 | 4045 | rm -f conftest* |
ad6254c5 | 4046 | |
f11781c5 | 4047 | fi |
7a197a62 | 4048 | fi |
f11781c5 AK |
4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
4050 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4051 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4052 | CC="$CC -traditional" | |
4053 | fi | |
ad6254c5 AK |
4054 | fi |
4055 | ||
f11781c5 AK |
4056 | # Find a good install program. We prefer a C program (faster), |
4057 | # so one script is as good as another. But avoid the broken or | |
4058 | # incompatible versions: | |
4059 | # SysV /etc/install, /usr/sbin/install | |
4060 | # SunOS /usr/etc/install | |
4061 | # IRIX /sbin/install | |
4062 | # AIX /bin/install | |
4063 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4064 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4065 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4066 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4067 | # OS/2's system install, which has a completely different semantic | |
4068 | # ./install, which can be erroneously created by make from ./install.sh. | |
4069 | # Reject install programs that cannot install multiple files. | |
4070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4071 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4072 | if test -z "$INSTALL"; then | |
4073 | if test "${ac_cv_path_install+set}" = set; then : | |
4074 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 4075 | else |
f11781c5 AK |
4076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4077 | for as_dir in $PATH | |
4078 | do | |
4079 | IFS=$as_save_IFS | |
4080 | test -z "$as_dir" && as_dir=. | |
4081 | # Account for people who put trailing slashes in PATH elements. | |
4082 | case $as_dir/ in #(( | |
4083 | ./ | .// | /[cC]/* | \ | |
4084 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4085 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4086 | /usr/ucb/* ) ;; | |
4087 | *) | |
4088 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4089 | # Don't use installbsd from OSF since it installs stuff as root | |
4090 | # by default. | |
4091 | for ac_prog in ginstall scoinst install; do | |
4092 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4093 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4094 | if test $ac_prog = install && | |
4095 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4096 | # AIX install. It has an incompatible calling convention. | |
4097 | : | |
4098 | elif test $ac_prog = install && | |
4099 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4100 | # program-specific install script used by HP pwplus--don't use. | |
4101 | : | |
4102 | else | |
4103 | rm -rf conftest.one conftest.two conftest.dir | |
4104 | echo one > conftest.one | |
4105 | echo two > conftest.two | |
4106 | mkdir conftest.dir | |
4107 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4108 | test -s conftest.one && test -s conftest.two && | |
4109 | test -s conftest.dir/conftest.one && | |
4110 | test -s conftest.dir/conftest.two | |
4111 | then | |
4112 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4113 | break 3 | |
4114 | fi | |
4115 | fi | |
4116 | fi | |
4117 | done | |
4118 | done | |
4119 | ;; | |
4120 | esac | |
7a197a62 | 4121 | |
f11781c5 AK |
4122 | done |
4123 | IFS=$as_save_IFS | |
d0191583 | 4124 | |
f11781c5 | 4125 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
4126 | |
4127 | fi | |
f11781c5 AK |
4128 | if test "${ac_cv_path_install+set}" = set; then |
4129 | INSTALL=$ac_cv_path_install | |
4130 | else | |
4131 | # As a last resort, use the slow shell script. Don't cache a | |
4132 | # value for INSTALL within a source directory, because that will | |
4133 | # break other packages using the cache if that directory is | |
4134 | # removed, or if the value is a relative name. | |
4135 | INSTALL=$ac_install_sh | |
4136 | fi | |
7a197a62 | 4137 | fi |
f11781c5 AK |
4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4139 | $as_echo "$INSTALL" >&6; } | |
7a197a62 | 4140 | |
f11781c5 AK |
4141 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4142 | # It thinks the first close brace ends the variable substitution. | |
4143 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
06f62ad1 | 4144 | |
f11781c5 | 4145 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
72b2cb61 | 4146 | |
f11781c5 | 4147 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
72b2cb61 | 4148 | |
f11781c5 AK |
4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4150 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4151 | LN_S=$as_ln_s | |
4152 | if test "$LN_S" = "ln -s"; then | |
4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4154 | $as_echo "yes" >&6; } | |
4155 | else | |
4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4157 | $as_echo "no, using $LN_S" >&6; } | |
15d91f5a | 4158 | fi |
ad6254c5 | 4159 | |
f11781c5 AK |
4160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4161 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4162 | set x ${MAKE-make} | |
4163 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4164 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | |
4165 | $as_echo_n "(cached) " >&6 | |
d0191583 | 4166 | else |
f11781c5 AK |
4167 | cat >conftest.make <<\_ACEOF |
4168 | SHELL = /bin/sh | |
4169 | all: | |
4170 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4171 | _ACEOF | |
4172 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4173 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4174 | *@@@%%%=?*=@@@%%%*) | |
4175 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4176 | *) | |
4177 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4178 | esac | |
4179 | rm -f conftest.make | |
4180 | fi | |
4181 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4183 | $as_echo "yes" >&6; } | |
4184 | SET_MAKE= | |
4185 | else | |
4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4187 | $as_echo "no" >&6; } | |
4188 | SET_MAKE="MAKE=${MAKE-make}" | |
ad6254c5 AK |
4189 | fi |
4190 | ||
f11781c5 AK |
4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4192 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4193 | if test -z "$MKDIR_P"; then | |
4194 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
4195 | $as_echo_n "(cached) " >&6 | |
4196 | else | |
4197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4198 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4199 | do | |
4200 | IFS=$as_save_IFS | |
4201 | test -z "$as_dir" && as_dir=. | |
4202 | for ac_prog in mkdir gmkdir; do | |
4203 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4204 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
4205 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4206 | 'mkdir (GNU coreutils) '* | \ | |
4207 | 'mkdir (coreutils) '* | \ | |
4208 | 'mkdir (fileutils) '4.1*) | |
4209 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4210 | break 3;; | |
4211 | esac | |
4212 | done | |
4213 | done | |
4214 | done | |
4215 | IFS=$as_save_IFS | |
d0191583 | 4216 | |
f11781c5 | 4217 | fi |
ad6254c5 | 4218 | |
f11781c5 AK |
4219 | test -d ./--version && rmdir ./--version |
4220 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4221 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4222 | else | |
4223 | # As a last resort, use the slow shell script. Don't cache a | |
4224 | # value for MKDIR_P within a source directory, because that will | |
4225 | # break other packages using the cache if that directory is | |
4226 | # removed, or if the value is a relative name. | |
4227 | MKDIR_P="$ac_install_sh -d" | |
4228 | fi | |
ad6254c5 | 4229 | fi |
f11781c5 AK |
4230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4231 | $as_echo "$MKDIR_P" >&6; } | |
7a197a62 | 4232 | |
f11781c5 AK |
4233 | if test -n "$ac_tool_prefix"; then |
4234 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4235 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4237 | $as_echo_n "checking for $ac_word... " >&6; } | |
4238 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4239 | $as_echo_n "(cached) " >&6 | |
4240 | else | |
4241 | if test -n "$RANLIB"; then | |
4242 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4243 | else | |
4244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4245 | for as_dir in $PATH | |
4246 | do | |
4247 | IFS=$as_save_IFS | |
4248 | test -z "$as_dir" && as_dir=. | |
4249 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4251 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4253 | break 2 | |
4254 | fi | |
4255 | done | |
4256 | done | |
4257 | IFS=$as_save_IFS | |
d0191583 | 4258 | |
f11781c5 AK |
4259 | fi |
4260 | fi | |
4261 | RANLIB=$ac_cv_prog_RANLIB | |
4262 | if test -n "$RANLIB"; then | |
4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4264 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 4265 | else |
f11781c5 AK |
4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4267 | $as_echo "no" >&6; } | |
ad6254c5 | 4268 | fi |
ad6254c5 | 4269 | |
8a2fc586 | 4270 | |
d0191583 | 4271 | fi |
f11781c5 AK |
4272 | if test -z "$ac_cv_prog_RANLIB"; then |
4273 | ac_ct_RANLIB=$RANLIB | |
4274 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4275 | set dummy ranlib; ac_word=$2 | |
4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4277 | $as_echo_n "checking for $ac_word... " >&6; } | |
4278 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4279 | $as_echo_n "(cached) " >&6 | |
4280 | else | |
4281 | if test -n "$ac_ct_RANLIB"; then | |
4282 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4283 | else | |
4284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4285 | for as_dir in $PATH | |
4286 | do | |
4287 | IFS=$as_save_IFS | |
4288 | test -z "$as_dir" && as_dir=. | |
4289 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4291 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4293 | break 2 | |
4294 | fi | |
4295 | done | |
4296 | done | |
4297 | IFS=$as_save_IFS | |
8a2fc586 | 4298 | |
f11781c5 AK |
4299 | fi |
4300 | fi | |
4301 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4302 | if test -n "$ac_ct_RANLIB"; then | |
4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4304 | $as_echo "$ac_ct_RANLIB" >&6; } | |
8fea97b7 | 4305 | else |
f11781c5 AK |
4306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4307 | $as_echo "no" >&6; } | |
8fea97b7 ZK |
4308 | fi |
4309 | ||
f11781c5 AK |
4310 | if test "x$ac_ct_RANLIB" = x; then |
4311 | RANLIB=":" | |
4312 | else | |
4313 | case $cross_compiling:$ac_tool_warned in | |
4314 | yes:) | |
4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4316 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4317 | ac_tool_warned=yes ;; | |
8fea97b7 | 4318 | esac |
f11781c5 AK |
4319 | RANLIB=$ac_ct_RANLIB |
4320 | fi | |
d0191583 | 4321 | else |
f11781c5 | 4322 | RANLIB="$ac_cv_prog_RANLIB" |
d0191583 | 4323 | fi |
8a2fc586 | 4324 | |
f11781c5 AK |
4325 | # Extract the first word of "cflow", so it can be a program name with args. |
4326 | set dummy cflow; ac_word=$2 | |
4327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4328 | $as_echo_n "checking for $ac_word... " >&6; } | |
4329 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then : | |
4330 | $as_echo_n "(cached) " >&6 | |
4331 | else | |
4332 | case $CFLOW_CMD in | |
4333 | [\\/]* | ?:[\\/]*) | |
4334 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4335 | ;; | |
4336 | *) | |
4337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4338 | for as_dir in $PATH | |
4339 | do | |
4340 | IFS=$as_save_IFS | |
4341 | test -z "$as_dir" && as_dir=. | |
4342 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4343 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4344 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
4345 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4346 | break 2 | |
4347 | fi | |
4348 | done | |
4349 | done | |
4350 | IFS=$as_save_IFS | |
8a2fc586 | 4351 | |
f11781c5 AK |
4352 | ;; |
4353 | esac | |
ad6254c5 | 4354 | fi |
f11781c5 AK |
4355 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD |
4356 | if test -n "$CFLOW_CMD"; then | |
4357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5 | |
4358 | $as_echo "$CFLOW_CMD" >&6; } | |
37ddf259 | 4359 | else |
f11781c5 AK |
4360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4361 | $as_echo "no" >&6; } | |
37ddf259 AK |
4362 | fi |
4363 | ||
e2997b73 | 4364 | |
f11781c5 AK |
4365 | # Extract the first word of "cscope", so it can be a program name with args. |
4366 | set dummy cscope; ac_word=$2 | |
4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
e2997b73 | 4368 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 4369 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then : |
e2997b73 AK |
4370 | $as_echo_n "(cached) " >&6 |
4371 | else | |
f11781c5 | 4372 | case $CSCOPE_CMD in |
e2997b73 | 4373 | [\\/]* | ?:[\\/]*) |
f11781c5 | 4374 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. |
e2997b73 AK |
4375 | ;; |
4376 | *) | |
4377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4378 | for as_dir in $PATH | |
4379 | do | |
4380 | IFS=$as_save_IFS | |
4381 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 4382 | for ac_exec_ext in '' $ac_executable_extensions; do |
e2997b73 | 4383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
4384 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" |
4385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
e2997b73 AK |
4386 | break 2 |
4387 | fi | |
4388 | done | |
f11781c5 | 4389 | done |
e2997b73 AK |
4390 | IFS=$as_save_IFS |
4391 | ||
4392 | ;; | |
4393 | esac | |
4394 | fi | |
f11781c5 AK |
4395 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4396 | if test -n "$CSCOPE_CMD"; then | |
4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5 | |
4398 | $as_echo "$CSCOPE_CMD" >&6; } | |
e2997b73 | 4399 | else |
f11781c5 | 4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
e2997b73 AK |
4401 | $as_echo "no" >&6; } |
4402 | fi | |
f11781c5 AK |
4403 | |
4404 | ||
4405 | ||
4406 | ################################################################################ | |
4407 | ac_header_dirent=no | |
4408 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
4409 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4411 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4412 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : | |
4413 | $as_echo_n "(cached) " >&6 | |
4414 | else | |
4415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4416 | /* end confdefs.h. */ | |
4417 | #include <sys/types.h> | |
4418 | #include <$ac_hdr> | |
4419 | ||
4420 | int | |
4421 | main () | |
4422 | { | |
4423 | if ((DIR *) 0) | |
4424 | return 0; | |
4425 | ; | |
4426 | return 0; | |
4427 | } | |
4428 | _ACEOF | |
4429 | if ac_fn_c_try_compile "$LINENO"; then : | |
4430 | eval "$as_ac_Header=yes" | |
4431 | else | |
4432 | eval "$as_ac_Header=no" | |
4433 | fi | |
4434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4435 | fi | |
4436 | eval ac_res=\$$as_ac_Header | |
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4438 | $as_echo "$ac_res" >&6; } | |
4439 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4440 | cat >>confdefs.h <<_ACEOF | |
4441 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
4442 | _ACEOF | |
4443 | ||
4444 | ac_header_dirent=$ac_hdr; break | |
4445 | fi | |
4446 | ||
4447 | done | |
4448 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4449 | if test $ac_header_dirent = dirent.h; then | |
4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4451 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4452 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4453 | $as_echo_n "(cached) " >&6 | |
4454 | else | |
4455 | ac_func_search_save_LIBS=$LIBS | |
4456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4457 | /* end confdefs.h. */ | |
4458 | ||
4459 | /* Override any GCC internal prototype to avoid an error. | |
4460 | Use char because int might match the return type of a GCC | |
4461 | builtin and then its argument prototype would still apply. */ | |
4462 | #ifdef __cplusplus | |
4463 | extern "C" | |
4464 | #endif | |
4465 | char opendir (); | |
4466 | int | |
4467 | main () | |
4468 | { | |
4469 | return opendir (); | |
4470 | ; | |
4471 | return 0; | |
4472 | } | |
4473 | _ACEOF | |
4474 | for ac_lib in '' dir; do | |
4475 | if test -z "$ac_lib"; then | |
4476 | ac_res="none required" | |
4477 | else | |
4478 | ac_res=-l$ac_lib | |
4479 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4480 | fi | |
4481 | if ac_fn_c_try_link "$LINENO"; then : | |
4482 | ac_cv_search_opendir=$ac_res | |
4483 | fi | |
4484 | rm -f core conftest.err conftest.$ac_objext \ | |
4485 | conftest$ac_exeext | |
4486 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4487 | break | |
4488 | fi | |
4489 | done | |
4490 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4491 | ||
4492 | else | |
4493 | ac_cv_search_opendir=no | |
4494 | fi | |
4495 | rm conftest.$ac_ext | |
4496 | LIBS=$ac_func_search_save_LIBS | |
4497 | fi | |
4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4499 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4500 | ac_res=$ac_cv_search_opendir | |
4501 | if test "$ac_res" != no; then : | |
4502 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4503 | |
4504 | fi | |
f11781c5 AK |
4505 | |
4506 | else | |
4507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4508 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4509 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 AK |
4510 | $as_echo_n "(cached) " >&6 |
4511 | else | |
f11781c5 AK |
4512 | ac_func_search_save_LIBS=$LIBS |
4513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4514 | /* end confdefs.h. */ | |
e2997b73 | 4515 | |
f11781c5 AK |
4516 | /* Override any GCC internal prototype to avoid an error. |
4517 | Use char because int might match the return type of a GCC | |
4518 | builtin and then its argument prototype would still apply. */ | |
4519 | #ifdef __cplusplus | |
4520 | extern "C" | |
4521 | #endif | |
4522 | char opendir (); | |
4523 | int | |
4524 | main () | |
4525 | { | |
4526 | return opendir (); | |
4527 | ; | |
4528 | return 0; | |
4529 | } | |
4530 | _ACEOF | |
4531 | for ac_lib in '' x; do | |
4532 | if test -z "$ac_lib"; then | |
4533 | ac_res="none required" | |
4534 | else | |
4535 | ac_res=-l$ac_lib | |
4536 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4537 | fi | |
4538 | if ac_fn_c_try_link "$LINENO"; then : | |
4539 | ac_cv_search_opendir=$ac_res | |
e2997b73 | 4540 | fi |
f11781c5 AK |
4541 | rm -f core conftest.err conftest.$ac_objext \ |
4542 | conftest$ac_exeext | |
4543 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4544 | break | |
e2997b73 | 4545 | fi |
f11781c5 AK |
4546 | done |
4547 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 | 4548 | |
e2997b73 | 4549 | else |
f11781c5 AK |
4550 | ac_cv_search_opendir=no |
4551 | fi | |
4552 | rm conftest.$ac_ext | |
4553 | LIBS=$ac_func_search_save_LIBS | |
e2997b73 | 4554 | fi |
f11781c5 AK |
4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4556 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4557 | ac_res=$ac_cv_search_opendir | |
4558 | if test "$ac_res" != no; then : | |
4559 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4560 | |
4561 | fi | |
8c4e8a18 | 4562 | |
e2997b73 AK |
4563 | fi |
4564 | ||
f11781c5 AK |
4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4566 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4567 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4568 | $as_echo_n "(cached) " >&6 | |
4569 | else | |
4570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4571 | /* end confdefs.h. */ | |
4572 | #include <stdlib.h> | |
4573 | #include <stdarg.h> | |
4574 | #include <string.h> | |
4575 | #include <float.h> | |
e2997b73 | 4576 | |
f11781c5 AK |
4577 | int |
4578 | main () | |
4579 | { | |
4580 | ||
4581 | ; | |
4582 | return 0; | |
4583 | } | |
4584 | _ACEOF | |
4585 | if ac_fn_c_try_compile "$LINENO"; then : | |
4586 | ac_cv_header_stdc=yes | |
e2997b73 | 4587 | else |
f11781c5 | 4588 | ac_cv_header_stdc=no |
e2997b73 | 4589 | fi |
f11781c5 AK |
4590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4591 | ||
4592 | if test $ac_cv_header_stdc = yes; then | |
4593 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4595 | /* end confdefs.h. */ | |
4596 | #include <string.h> | |
4597 | ||
4598 | _ACEOF | |
4599 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4600 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4601 | ||
e2997b73 | 4602 | else |
f11781c5 | 4603 | ac_cv_header_stdc=no |
e2997b73 | 4604 | fi |
f11781c5 | 4605 | rm -f conftest* |
e2997b73 | 4606 | |
f11781c5 | 4607 | fi |
e2997b73 | 4608 | |
f11781c5 AK |
4609 | if test $ac_cv_header_stdc = yes; then |
4610 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4612 | /* end confdefs.h. */ | |
4613 | #include <stdlib.h> | |
e2997b73 | 4614 | |
f11781c5 AK |
4615 | _ACEOF |
4616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4617 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4618 | |
e2997b73 | 4619 | else |
f11781c5 | 4620 | ac_cv_header_stdc=no |
e2997b73 | 4621 | fi |
f11781c5 | 4622 | rm -f conftest* |
e2997b73 | 4623 | |
e2997b73 | 4624 | fi |
90c80887 | 4625 | |
f11781c5 AK |
4626 | if test $ac_cv_header_stdc = yes; then |
4627 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4628 | if test "$cross_compiling" = yes; then : | |
4629 | : | |
4630 | else | |
4631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4632 | /* end confdefs.h. */ | |
4633 | #include <ctype.h> | |
4634 | #include <stdlib.h> | |
4635 | #if ((' ' & 0x0FF) == 0x020) | |
4636 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4637 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4638 | #else | |
4639 | # define ISLOWER(c) \ | |
4640 | (('a' <= (c) && (c) <= 'i') \ | |
4641 | || ('j' <= (c) && (c) <= 'r') \ | |
4642 | || ('s' <= (c) && (c) <= 'z')) | |
4643 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4644 | #endif | |
4645 | ||
4646 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4647 | int | |
4648 | main () | |
4649 | { | |
4650 | int i; | |
4651 | for (i = 0; i < 256; i++) | |
4652 | if (XOR (islower (i), ISLOWER (i)) | |
4653 | || toupper (i) != TOUPPER (i)) | |
4654 | return 2; | |
4655 | return 0; | |
4656 | } | |
4657 | _ACEOF | |
4658 | if ac_fn_c_try_run "$LINENO"; then : | |
90c80887 | 4659 | |
90c80887 | 4660 | else |
f11781c5 | 4661 | ac_cv_header_stdc=no |
90c80887 | 4662 | fi |
f11781c5 AK |
4663 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4664 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
90c80887 | 4665 | fi |
90c80887 | 4666 | |
90c80887 | 4667 | fi |
90c80887 | 4668 | fi |
f11781c5 AK |
4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4670 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4671 | if test $ac_cv_header_stdc = yes; then | |
90c80887 | 4672 | |
f11781c5 | 4673 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
90c80887 | 4674 | |
90c80887 | 4675 | fi |
f11781c5 AK |
4676 | |
4677 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4678 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4679 | inttypes.h stdint.h unistd.h | |
4680 | do : | |
4681 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4682 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4683 | " | |
4684 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4685 | cat >>confdefs.h <<_ACEOF | |
4686 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4687 | _ACEOF | |
4688 | ||
90c80887 | 4689 | fi |
f11781c5 AK |
4690 | |
4691 | done | |
4692 | ||
4693 | ||
4694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | |
4695 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4696 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : | |
4697 | $as_echo_n "(cached) " >&6 | |
4698 | else | |
4699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4700 | /* end confdefs.h. */ | |
4701 | #include <sys/types.h> | |
4702 | int | |
4703 | main () | |
4704 | { | |
4705 | return makedev(0, 0); | |
4706 | ; | |
4707 | return 0; | |
4708 | } | |
4709 | _ACEOF | |
4710 | if ac_fn_c_try_link "$LINENO"; then : | |
4711 | ac_cv_header_sys_types_h_makedev=yes | |
4712 | else | |
4713 | ac_cv_header_sys_types_h_makedev=no | |
90c80887 | 4714 | fi |
f11781c5 AK |
4715 | rm -f core conftest.err conftest.$ac_objext \ |
4716 | conftest$ac_exeext conftest.$ac_ext | |
4717 | ||
90c80887 | 4718 | fi |
f11781c5 AK |
4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4720 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
4721 | ||
4722 | if test $ac_cv_header_sys_types_h_makedev = no; then | |
4723 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | |
4724 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : | |
4725 | ||
4726 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | |
90c80887 | 4727 | |
a946372e | 4728 | fi |
e2997b73 | 4729 | |
e2997b73 | 4730 | |
a946372e | 4731 | |
f11781c5 AK |
4732 | if test $ac_cv_header_sys_mkdev_h = no; then |
4733 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
4734 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : | |
4735 | ||
4736 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | |
4737 | ||
e2997b73 | 4738 | fi |
a946372e | 4739 | |
a946372e | 4740 | |
f11781c5 AK |
4741 | fi |
4742 | fi | |
4743 | ||
4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4745 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4746 | if test "${ac_cv_header_stdc+set}" = set; then : | |
a946372e AK |
4747 | $as_echo_n "(cached) " >&6 |
4748 | else | |
f11781c5 | 4749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4750 | /* end confdefs.h. */ |
f11781c5 AK |
4751 | #include <stdlib.h> |
4752 | #include <stdarg.h> | |
4753 | #include <string.h> | |
4754 | #include <float.h> | |
a946372e | 4755 | |
a946372e AK |
4756 | int |
4757 | main () | |
4758 | { | |
f11781c5 | 4759 | |
a946372e AK |
4760 | ; |
4761 | return 0; | |
4762 | } | |
4763 | _ACEOF | |
f11781c5 AK |
4764 | if ac_fn_c_try_compile "$LINENO"; then : |
4765 | ac_cv_header_stdc=yes | |
e2997b73 | 4766 | else |
f11781c5 AK |
4767 | ac_cv_header_stdc=no |
4768 | fi | |
4769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4770 | ||
4771 | if test $ac_cv_header_stdc = yes; then | |
4772 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4774 | /* end confdefs.h. */ | |
4775 | #include <string.h> | |
4776 | ||
4777 | _ACEOF | |
4778 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4779 | $EGREP "memchr" >/dev/null 2>&1; then : | |
e2997b73 | 4780 | |
f11781c5 AK |
4781 | else |
4782 | ac_cv_header_stdc=no | |
a946372e | 4783 | fi |
f11781c5 | 4784 | rm -f conftest* |
e2997b73 | 4785 | |
a946372e | 4786 | fi |
e2997b73 | 4787 | |
f11781c5 AK |
4788 | if test $ac_cv_header_stdc = yes; then |
4789 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4791 | /* end confdefs.h. */ | |
4792 | #include <stdlib.h> | |
4793 | ||
4794 | _ACEOF | |
4795 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4796 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4797 | |
e2997b73 | 4798 | else |
f11781c5 | 4799 | ac_cv_header_stdc=no |
e2997b73 | 4800 | fi |
f11781c5 | 4801 | rm -f conftest* |
e2997b73 | 4802 | |
f11781c5 | 4803 | fi |
a946372e | 4804 | |
f11781c5 AK |
4805 | if test $ac_cv_header_stdc = yes; then |
4806 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4807 | if test "$cross_compiling" = yes; then : | |
4808 | : | |
4809 | else | |
4810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4811 | /* end confdefs.h. */ | |
4812 | #include <ctype.h> | |
4813 | #include <stdlib.h> | |
4814 | #if ((' ' & 0x0FF) == 0x020) | |
4815 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4816 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4817 | #else | |
4818 | # define ISLOWER(c) \ | |
4819 | (('a' <= (c) && (c) <= 'i') \ | |
4820 | || ('j' <= (c) && (c) <= 'r') \ | |
4821 | || ('s' <= (c) && (c) <= 'z')) | |
4822 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4823 | #endif | |
e2997b73 | 4824 | |
f11781c5 AK |
4825 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4826 | int | |
4827 | main () | |
4828 | { | |
4829 | int i; | |
4830 | for (i = 0; i < 256; i++) | |
4831 | if (XOR (islower (i), ISLOWER (i)) | |
4832 | || toupper (i) != TOUPPER (i)) | |
4833 | return 2; | |
4834 | return 0; | |
4835 | } | |
4836 | _ACEOF | |
4837 | if ac_fn_c_try_run "$LINENO"; then : | |
e2997b73 | 4838 | |
e2997b73 | 4839 | else |
f11781c5 | 4840 | ac_cv_header_stdc=no |
e2997b73 | 4841 | fi |
f11781c5 AK |
4842 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4843 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
e2997b73 | 4844 | fi |
f11781c5 | 4845 | |
e2997b73 | 4846 | fi |
e2997b73 | 4847 | fi |
f11781c5 AK |
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4849 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4850 | if test $ac_cv_header_stdc = yes; then | |
e2997b73 | 4851 | |
f11781c5 | 4852 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
e2997b73 | 4853 | |
f11781c5 | 4854 | fi |
e2997b73 | 4855 | |
f11781c5 AK |
4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4857 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
4858 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : | |
4859 | $as_echo_n "(cached) " >&6 | |
4860 | else | |
4861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4862 | /* end confdefs.h. */ | |
4863 | #include <sys/types.h> | |
4864 | #include <sys/wait.h> | |
4865 | #ifndef WEXITSTATUS | |
4866 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
4867 | #endif | |
4868 | #ifndef WIFEXITED | |
4869 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4870 | #endif | |
e2997b73 | 4871 | |
f11781c5 AK |
4872 | int |
4873 | main () | |
4874 | { | |
4875 | int s; | |
4876 | wait (&s); | |
4877 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4878 | ; | |
4879 | return 0; | |
4880 | } | |
4881 | _ACEOF | |
4882 | if ac_fn_c_try_compile "$LINENO"; then : | |
4883 | ac_cv_header_sys_wait_h=yes | |
e2997b73 | 4884 | else |
f11781c5 | 4885 | ac_cv_header_sys_wait_h=no |
e2997b73 | 4886 | fi |
f11781c5 AK |
4887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4888 | fi | |
4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | |
4890 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
4891 | if test $ac_cv_header_sys_wait_h = yes; then | |
e2997b73 | 4892 | |
f11781c5 | 4893 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
e2997b73 | 4894 | |
d0191583 | 4895 | fi |
f11781c5 AK |
4896 | |
4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
4898 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
4899 | if test "${ac_cv_header_time+set}" = set; then : | |
4900 | $as_echo_n "(cached) " >&6 | |
fc54be10 | 4901 | else |
f11781c5 | 4902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4903 | /* end confdefs.h. */ |
f11781c5 AK |
4904 | #include <sys/types.h> |
4905 | #include <sys/time.h> | |
4906 | #include <time.h> | |
4907 | ||
4908 | int | |
4909 | main () | |
4910 | { | |
4911 | if ((struct tm *) 0) | |
4912 | return 0; | |
4913 | ; | |
4914 | return 0; | |
4915 | } | |
a946372e | 4916 | _ACEOF |
f11781c5 AK |
4917 | if ac_fn_c_try_compile "$LINENO"; then : |
4918 | ac_cv_header_time=yes | |
a946372e | 4919 | else |
f11781c5 AK |
4920 | ac_cv_header_time=no |
4921 | fi | |
4922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4923 | fi | |
4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
4925 | $as_echo "$ac_cv_header_time" >&6; } | |
4926 | if test $ac_cv_header_time = yes; then | |
4927 | ||
4928 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
4929 | ||
4930 | fi | |
4931 | ||
4932 | ||
4933 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4934 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
4935 | sys/wait.h time.h | |
4936 | do : | |
4937 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4938 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4939 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4940 | cat >>confdefs.h <<_ACEOF | |
4941 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4942 | _ACEOF | |
d0191583 | 4943 | |
f11781c5 AK |
4944 | else |
4945 | as_fn_error $? "bailing out" "$LINENO" 5 | |
d0191583 JM |
4946 | fi |
4947 | ||
f11781c5 | 4948 | done |
fddafd51 | 4949 | |
f11781c5 AK |
4950 | |
4951 | case "$host_os" in | |
4952 | linux*) | |
4953 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4954 | do : | |
4955 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4956 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4957 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4958 | cat >>confdefs.h <<_ACEOF | |
4959 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a946372e | 4960 | _ACEOF |
a946372e | 4961 | |
f11781c5 AK |
4962 | else |
4963 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a946372e AK |
4964 | fi |
4965 | ||
f11781c5 AK |
4966 | done |
4967 | ;; | |
4968 | darwin*) | |
4969 | for ac_header in machine/endian.h sys/disk.h | |
4970 | do : | |
4971 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4972 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4973 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4974 | cat >>confdefs.h <<_ACEOF | |
4975 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4976 | _ACEOF | |
a946372e | 4977 | |
f11781c5 AK |
4978 | else |
4979 | as_fn_error $? "bailing out" "$LINENO" 5 | |
4980 | fi | |
a946372e | 4981 | |
f11781c5 AK |
4982 | done |
4983 | ;; | |
a946372e | 4984 | esac |
f11781c5 AK |
4985 | |
4986 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
4987 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
4988 | sys/types.h unistd.h | |
4989 | do : | |
4990 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4991 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4992 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4993 | cat >>confdefs.h <<_ACEOF | |
4994 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4995 | _ACEOF | |
4996 | ||
a946372e | 4997 | else |
f11781c5 | 4998 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 4999 | fi |
a946372e | 5000 | |
f11781c5 AK |
5001 | done |
5002 | ||
5003 | for ac_header in termios.h sys/statvfs.h | |
5004 | do : | |
5005 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5006 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5007 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
5008 | cat >>confdefs.h <<_ACEOF |
5009 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5010 | _ACEOF | |
5011 | ||
a946372e AK |
5012 | fi |
5013 | ||
5014 | done | |
5015 | ||
a946372e | 5016 | |
f11781c5 AK |
5017 | ################################################################################ |
5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
5019 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
5020 | if test "${ac_cv_c_const+set}" = set; then : | |
a946372e | 5021 | $as_echo_n "(cached) " >&6 |
a946372e | 5022 | else |
f11781c5 | 5023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5024 | /* end confdefs.h. */ |
a946372e | 5025 | |
f11781c5 AK |
5026 | int |
5027 | main () | |
5028 | { | |
5029 | /* FIXME: Include the comments suggested by Paul. */ | |
5030 | #ifndef __cplusplus | |
5031 | /* Ultrix mips cc rejects this. */ | |
5032 | typedef int charset[2]; | |
5033 | const charset cs; | |
5034 | /* SunOS 4.1.1 cc rejects this. */ | |
5035 | char const *const *pcpcc; | |
5036 | char **ppc; | |
5037 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5038 | struct point {int x, y;}; | |
5039 | static struct point const zero = {0,0}; | |
5040 | /* AIX XL C 1.02.0.0 rejects this. | |
5041 | It does not let you subtract one const X* pointer from another in | |
5042 | an arm of an if-expression whose if-part is not a constant | |
5043 | expression */ | |
5044 | const char *g = "string"; | |
5045 | pcpcc = &g + (g ? g-g : 0); | |
5046 | /* HPUX 7.0 cc rejects these. */ | |
5047 | ++pcpcc; | |
5048 | ppc = (char**) pcpcc; | |
5049 | pcpcc = (char const *const *) ppc; | |
5050 | { /* SCO 3.2v4 cc rejects this. */ | |
5051 | char *t; | |
5052 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
a946372e | 5053 | |
f11781c5 AK |
5054 | *t++ = 0; |
5055 | if (s) return 0; | |
5056 | } | |
5057 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5058 | int x[] = {25, 17}; | |
5059 | const int *foo = &x[0]; | |
5060 | ++foo; | |
5061 | } | |
5062 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5063 | typedef const int *iptr; | |
5064 | iptr p = 0; | |
5065 | ++p; | |
5066 | } | |
5067 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5068 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5069 | struct s { int j; const int *ap[3]; }; | |
5070 | struct s *b; b->j = 5; | |
5071 | } | |
5072 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5073 | const int foo = 10; | |
5074 | if (!foo) return 0; | |
5075 | } | |
5076 | return !cs[0] && !zero.x; | |
5077 | #endif | |
a946372e | 5078 | |
f11781c5 AK |
5079 | ; |
5080 | return 0; | |
5081 | } | |
a946372e | 5082 | _ACEOF |
f11781c5 AK |
5083 | if ac_fn_c_try_compile "$LINENO"; then : |
5084 | ac_cv_c_const=yes | |
a946372e | 5085 | else |
f11781c5 AK |
5086 | ac_cv_c_const=no |
5087 | fi | |
5088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a946372e | 5089 | fi |
f11781c5 AK |
5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5091 | $as_echo "$ac_cv_c_const" >&6; } | |
5092 | if test $ac_cv_c_const = no; then | |
a946372e | 5093 | |
f11781c5 | 5094 | $as_echo "#define const /**/" >>confdefs.h |
a946372e | 5095 | |
f11781c5 | 5096 | fi |
a946372e | 5097 | |
f11781c5 AK |
5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
5099 | $as_echo_n "checking for inline... " >&6; } | |
5100 | if test "${ac_cv_c_inline+set}" = set; then : | |
a946372e AK |
5101 | $as_echo_n "(cached) " >&6 |
5102 | else | |
f11781c5 AK |
5103 | ac_cv_c_inline=no |
5104 | for ac_kw in inline __inline__ __inline; do | |
5105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5106 | /* end confdefs.h. */ | |
5107 | #ifndef __cplusplus | |
5108 | typedef int foo_t; | |
5109 | static $ac_kw foo_t static_foo () {return 0; } | |
5110 | $ac_kw foo_t foo () {return 0; } | |
5111 | #endif | |
5112 | ||
5113 | _ACEOF | |
5114 | if ac_fn_c_try_compile "$LINENO"; then : | |
5115 | ac_cv_c_inline=$ac_kw | |
a946372e | 5116 | fi |
f11781c5 AK |
5117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5118 | test "$ac_cv_c_inline" != no && break | |
5119 | done | |
a946372e AK |
5120 | |
5121 | fi | |
f11781c5 AK |
5122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
5123 | $as_echo "$ac_cv_c_inline" >&6; } | |
5124 | ||
5125 | case $ac_cv_c_inline in | |
5126 | inline | yes) ;; | |
5127 | *) | |
5128 | case $ac_cv_c_inline in | |
5129 | no) ac_val=;; | |
5130 | *) ac_val=$ac_cv_c_inline;; | |
5131 | esac | |
5132 | cat >>confdefs.h <<_ACEOF | |
5133 | #ifndef __cplusplus | |
5134 | #define inline $ac_val | |
5135 | #endif | |
5136 | _ACEOF | |
5137 | ;; | |
5138 | esac | |
5139 | ||
5140 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5141 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5142 | ||
5143 | cat >>confdefs.h <<_ACEOF | |
5144 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
a946372e AK |
5145 | _ACEOF |
5146 | ||
f11781c5 | 5147 | |
a946372e AK |
5148 | fi |
5149 | ||
f11781c5 AK |
5150 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
5151 | if test "x$ac_cv_type_off_t" = x""yes; then : | |
a946372e | 5152 | |
a946372e | 5153 | else |
f11781c5 AK |
5154 | |
5155 | cat >>confdefs.h <<_ACEOF | |
5156 | #define off_t long int | |
5157 | _ACEOF | |
5158 | ||
a946372e AK |
5159 | fi |
5160 | ||
f11781c5 AK |
5161 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
5162 | if test "x$ac_cv_type_pid_t" = x""yes; then : | |
a946372e | 5163 | |
a946372e | 5164 | else |
f11781c5 AK |
5165 | |
5166 | cat >>confdefs.h <<_ACEOF | |
5167 | #define pid_t int | |
5168 | _ACEOF | |
5169 | ||
5170 | fi | |
5171 | ||
5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
5173 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5174 | if test "${ac_cv_type_signal+set}" = set; then : | |
5175 | $as_echo_n "(cached) " >&6 | |
a946372e | 5176 | else |
f11781c5 AK |
5177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5178 | /* end confdefs.h. */ | |
5179 | #include <sys/types.h> | |
5180 | #include <signal.h> | |
5181 | ||
5182 | int | |
5183 | main () | |
5184 | { | |
5185 | return *(signal (0, 0)) (0) == 1; | |
5186 | ; | |
5187 | return 0; | |
5188 | } | |
5189 | _ACEOF | |
5190 | if ac_fn_c_try_compile "$LINENO"; then : | |
5191 | ac_cv_type_signal=int | |
5192 | else | |
5193 | ac_cv_type_signal=void | |
a946372e | 5194 | fi |
f11781c5 | 5195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a946372e | 5196 | fi |
f11781c5 AK |
5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
5198 | $as_echo "$ac_cv_type_signal" >&6; } | |
a946372e | 5199 | |
f11781c5 AK |
5200 | cat >>confdefs.h <<_ACEOF |
5201 | #define RETSIGTYPE $ac_cv_type_signal | |
5202 | _ACEOF | |
a946372e AK |
5203 | |
5204 | ||
f11781c5 AK |
5205 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
5206 | if test "x$ac_cv_type_size_t" = x""yes; then : | |
a946372e | 5207 | |
a946372e | 5208 | else |
a946372e | 5209 | |
f11781c5 AK |
5210 | cat >>confdefs.h <<_ACEOF |
5211 | #define size_t unsigned int | |
5212 | _ACEOF | |
a946372e | 5213 | |
a946372e | 5214 | fi |
f11781c5 AK |
5215 | |
5216 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
5217 | if test "x$ac_cv_type_mode_t" = x""yes; then : | |
5218 | ||
a946372e | 5219 | else |
f11781c5 AK |
5220 | |
5221 | cat >>confdefs.h <<_ACEOF | |
5222 | #define mode_t int | |
a946372e | 5223 | _ACEOF |
a946372e | 5224 | |
a946372e AK |
5225 | fi |
5226 | ||
f11781c5 AK |
5227 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
5228 | case $ac_cv_c_int8_t in #( | |
5229 | no|yes) ;; #( | |
5230 | *) | |
a946372e | 5231 | |
f11781c5 AK |
5232 | cat >>confdefs.h <<_ACEOF |
5233 | #define int8_t $ac_cv_c_int8_t | |
a946372e | 5234 | _ACEOF |
f11781c5 | 5235 | ;; |
a946372e | 5236 | esac |
a946372e | 5237 | |
f11781c5 AK |
5238 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
5239 | case $ac_cv_c_int16_t in #( | |
5240 | no|yes) ;; #( | |
5241 | *) | |
a946372e | 5242 | |
f11781c5 AK |
5243 | cat >>confdefs.h <<_ACEOF |
5244 | #define int16_t $ac_cv_c_int16_t | |
5245 | _ACEOF | |
5246 | ;; | |
5247 | esac | |
a946372e | 5248 | |
f11781c5 AK |
5249 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
5250 | case $ac_cv_c_int32_t in #( | |
5251 | no|yes) ;; #( | |
5252 | *) | |
a946372e | 5253 | |
f11781c5 AK |
5254 | cat >>confdefs.h <<_ACEOF |
5255 | #define int32_t $ac_cv_c_int32_t | |
5256 | _ACEOF | |
5257 | ;; | |
a946372e | 5258 | esac |
a946372e | 5259 | |
f11781c5 AK |
5260 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
5261 | case $ac_cv_c_int64_t in #( | |
5262 | no|yes) ;; #( | |
5263 | *) | |
5264 | ||
5265 | cat >>confdefs.h <<_ACEOF | |
5266 | #define int64_t $ac_cv_c_int64_t | |
a946372e | 5267 | _ACEOF |
f11781c5 AK |
5268 | ;; |
5269 | esac | |
5270 | ||
5271 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | |
5272 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | |
a946372e AK |
5273 | |
5274 | else | |
a946372e | 5275 | |
f11781c5 AK |
5276 | cat >>confdefs.h <<_ACEOF |
5277 | #define ssize_t int | |
5278 | _ACEOF | |
a946372e | 5279 | |
f11781c5 | 5280 | fi |
a946372e | 5281 | |
f11781c5 AK |
5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
5283 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5284 | if test "${ac_cv_type_uid_t+set}" = set; then : | |
a946372e | 5285 | $as_echo_n "(cached) " >&6 |
a946372e | 5286 | else |
f11781c5 | 5287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5288 | /* end confdefs.h. */ |
f11781c5 AK |
5289 | #include <sys/types.h> |
5290 | ||
a946372e | 5291 | _ACEOF |
f11781c5 AK |
5292 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5293 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5294 | ac_cv_type_uid_t=yes | |
a946372e | 5295 | else |
f11781c5 AK |
5296 | ac_cv_type_uid_t=no |
5297 | fi | |
5298 | rm -f conftest* | |
a946372e | 5299 | |
a946372e | 5300 | fi |
f11781c5 AK |
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
5302 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5303 | if test $ac_cv_type_uid_t = no; then | |
a946372e | 5304 | |
f11781c5 | 5305 | $as_echo "#define uid_t int" >>confdefs.h |
a946372e | 5306 | |
f11781c5 AK |
5307 | |
5308 | $as_echo "#define gid_t int" >>confdefs.h | |
5309 | ||
5310 | fi | |
5311 | ||
5312 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | |
5313 | case $ac_cv_c_uint8_t in #( | |
5314 | no|yes) ;; #( | |
5315 | *) | |
5316 | ||
5317 | $as_echo "#define _UINT8_T 1" >>confdefs.h | |
5318 | ||
5319 | ||
5320 | cat >>confdefs.h <<_ACEOF | |
5321 | #define uint8_t $ac_cv_c_uint8_t | |
a946372e | 5322 | _ACEOF |
f11781c5 AK |
5323 | ;; |
5324 | esac | |
5325 | ||
5326 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | |
5327 | case $ac_cv_c_uint16_t in #( | |
5328 | no|yes) ;; #( | |
5329 | *) | |
5330 | ||
5331 | ||
5332 | cat >>confdefs.h <<_ACEOF | |
5333 | #define uint16_t $ac_cv_c_uint16_t | |
a946372e | 5334 | _ACEOF |
f11781c5 AK |
5335 | ;; |
5336 | esac | |
a946372e | 5337 | |
f11781c5 AK |
5338 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
5339 | case $ac_cv_c_uint32_t in #( | |
5340 | no|yes) ;; #( | |
5341 | *) | |
a946372e | 5342 | |
f11781c5 | 5343 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
a946372e | 5344 | |
a946372e | 5345 | |
f11781c5 AK |
5346 | cat >>confdefs.h <<_ACEOF |
5347 | #define uint32_t $ac_cv_c_uint32_t | |
5348 | _ACEOF | |
5349 | ;; | |
5350 | esac | |
5351 | ||
5352 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | |
5353 | case $ac_cv_c_uint64_t in #( | |
5354 | no|yes) ;; #( | |
5355 | *) | |
5356 | ||
5357 | $as_echo "#define _UINT64_T 1" >>confdefs.h | |
5358 | ||
5359 | ||
5360 | cat >>confdefs.h <<_ACEOF | |
5361 | #define uint64_t $ac_cv_c_uint64_t | |
5362 | _ACEOF | |
5363 | ;; | |
5364 | esac | |
5365 | ||
5366 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5367 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5368 | ||
5369 | cat >>confdefs.h <<_ACEOF | |
5370 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5371 | _ACEOF | |
5372 | ||
5373 | ||
5374 | fi | |
5375 | ||
5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
5377 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
5378 | if test "${ac_cv_struct_tm+set}" = set; then : | |
a946372e AK |
5379 | $as_echo_n "(cached) " >&6 |
5380 | else | |
f11781c5 AK |
5381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5382 | /* end confdefs.h. */ | |
5383 | #include <sys/types.h> | |
5384 | #include <time.h> | |
5385 | ||
5386 | int | |
5387 | main () | |
5388 | { | |
5389 | struct tm tm; | |
5390 | int *p = &tm.tm_sec; | |
5391 | return !p; | |
5392 | ; | |
5393 | return 0; | |
5394 | } | |
5395 | _ACEOF | |
5396 | if ac_fn_c_try_compile "$LINENO"; then : | |
5397 | ac_cv_struct_tm=time.h | |
5398 | else | |
5399 | ac_cv_struct_tm=sys/time.h | |
a946372e | 5400 | fi |
f11781c5 AK |
5401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5402 | fi | |
5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5404 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5405 | if test $ac_cv_struct_tm = sys/time.h; then | |
5406 | ||
5407 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
a946372e AK |
5408 | |
5409 | fi | |
f11781c5 AK |
5410 | |
5411 | ||
5412 | ################################################################################ | |
5413 | for ac_func in ftruncate gethostname getpagesize \ | |
5414 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
5415 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
5416 | strstr strtol strtoul uname | |
5417 | do : | |
5418 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5419 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5420 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5421 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 5422 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a946372e AK |
5423 | _ACEOF |
5424 | ||
5425 | else | |
f11781c5 | 5426 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5427 | fi |
a946372e AK |
5428 | done |
5429 | ||
f11781c5 AK |
5430 | for ac_func in siginterrupt |
5431 | do : | |
5432 | ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt" | |
5433 | if test "x$ac_cv_func_siginterrupt" = x""yes; then : | |
5434 | cat >>confdefs.h <<_ACEOF | |
5435 | #define HAVE_SIGINTERRUPT 1 | |
5436 | _ACEOF | |
a946372e | 5437 | |
f11781c5 AK |
5438 | fi |
5439 | done | |
a946372e | 5440 | |
f11781c5 AK |
5441 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5442 | # for constant arguments. Useless! | |
5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
5444 | $as_echo_n "checking for working alloca.h... " >&6; } | |
5445 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
5446 | $as_echo_n "(cached) " >&6 | |
a946372e | 5447 | else |
f11781c5 AK |
5448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5449 | /* end confdefs.h. */ | |
5450 | #include <alloca.h> | |
5451 | int | |
5452 | main () | |
5453 | { | |
5454 | char *p = (char *) alloca (2 * sizeof (int)); | |
5455 | if (p) return 0; | |
5456 | ; | |
5457 | return 0; | |
5458 | } | |
5459 | _ACEOF | |
5460 | if ac_fn_c_try_link "$LINENO"; then : | |
5461 | ac_cv_working_alloca_h=yes | |
a946372e | 5462 | else |
f11781c5 | 5463 | ac_cv_working_alloca_h=no |
a946372e | 5464 | fi |
f11781c5 AK |
5465 | rm -f core conftest.err conftest.$ac_objext \ |
5466 | conftest$ac_exeext conftest.$ac_ext | |
a946372e | 5467 | fi |
f11781c5 AK |
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
5469 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
5470 | if test $ac_cv_working_alloca_h = yes; then | |
a946372e | 5471 | |
f11781c5 | 5472 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
a946372e | 5473 | |
a946372e | 5474 | fi |
a946372e | 5475 | |
f11781c5 AK |
5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
5477 | $as_echo_n "checking for alloca... " >&6; } | |
5478 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
a946372e | 5479 | $as_echo_n "(cached) " >&6 |
a946372e | 5480 | else |
f11781c5 | 5481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5482 | /* end confdefs.h. */ |
f11781c5 AK |
5483 | #ifdef __GNUC__ |
5484 | # define alloca __builtin_alloca | |
5485 | #else | |
5486 | # ifdef _MSC_VER | |
5487 | # include <malloc.h> | |
5488 | # define alloca _alloca | |
5489 | # else | |
5490 | # ifdef HAVE_ALLOCA_H | |
5491 | # include <alloca.h> | |
5492 | # else | |
5493 | # ifdef _AIX | |
5494 | #pragma alloca | |
5495 | # else | |
5496 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5497 | char *alloca (); | |
5498 | # endif | |
5499 | # endif | |
5500 | # endif | |
5501 | # endif | |
5502 | #endif | |
a946372e | 5503 | |
f11781c5 AK |
5504 | int |
5505 | main () | |
5506 | { | |
5507 | char *p = (char *) alloca (1); | |
5508 | if (p) return 0; | |
5509 | ; | |
5510 | return 0; | |
5511 | } | |
a946372e | 5512 | _ACEOF |
f11781c5 AK |
5513 | if ac_fn_c_try_link "$LINENO"; then : |
5514 | ac_cv_func_alloca_works=yes | |
a946372e | 5515 | else |
f11781c5 | 5516 | ac_cv_func_alloca_works=no |
a946372e | 5517 | fi |
f11781c5 AK |
5518 | rm -f core conftest.err conftest.$ac_objext \ |
5519 | conftest$ac_exeext conftest.$ac_ext | |
5520 | fi | |
5521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
5522 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
a946372e | 5523 | |
f11781c5 | 5524 | if test $ac_cv_func_alloca_works = yes; then |
a946372e | 5525 | |
f11781c5 | 5526 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
a946372e | 5527 | |
a946372e | 5528 | else |
f11781c5 AK |
5529 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5530 | # that cause trouble. Some versions do not even contain alloca or | |
5531 | # contain a buggy version. If you still want to use their alloca, | |
5532 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
a946372e | 5533 | |
f11781c5 | 5534 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
a946372e | 5535 | |
f11781c5 | 5536 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
a946372e | 5537 | |
a946372e | 5538 | |
f11781c5 AK |
5539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
5540 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
5541 | if test "${ac_cv_os_cray+set}" = set; then : | |
a946372e | 5542 | $as_echo_n "(cached) " >&6 |
a946372e | 5543 | else |
f11781c5 | 5544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5545 | /* end confdefs.h. */ |
f11781c5 AK |
5546 | #if defined CRAY && ! defined CRAY2 |
5547 | webecray | |
5548 | #else | |
5549 | wenotbecray | |
5550 | #endif | |
5551 | ||
a946372e | 5552 | _ACEOF |
f11781c5 AK |
5553 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5554 | $EGREP "webecray" >/dev/null 2>&1; then : | |
5555 | ac_cv_os_cray=yes | |
a946372e | 5556 | else |
f11781c5 | 5557 | ac_cv_os_cray=no |
a946372e | 5558 | fi |
f11781c5 | 5559 | rm -f conftest* |
a946372e | 5560 | |
f11781c5 AK |
5561 | fi |
5562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
5563 | $as_echo "$ac_cv_os_cray" >&6; } | |
5564 | if test $ac_cv_os_cray = yes; then | |
5565 | for ac_func in _getb67 GETB67 getb67; do | |
5566 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5567 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5568 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5569 | |
f11781c5 AK |
5570 | cat >>confdefs.h <<_ACEOF |
5571 | #define CRAY_STACKSEG_END $ac_func | |
a946372e | 5572 | _ACEOF |
a946372e | 5573 | |
f11781c5 | 5574 | break |
a946372e AK |
5575 | fi |
5576 | ||
f11781c5 AK |
5577 | done |
5578 | fi | |
a946372e | 5579 | |
f11781c5 AK |
5580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
5581 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
5582 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
a946372e AK |
5583 | $as_echo_n "(cached) " >&6 |
5584 | else | |
f11781c5 AK |
5585 | if test "$cross_compiling" = yes; then : |
5586 | ac_cv_c_stack_direction=0 | |
5587 | else | |
5588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5589 | /* end confdefs.h. */ | |
5590 | $ac_includes_default | |
5591 | int | |
5592 | find_stack_direction () | |
5593 | { | |
5594 | static char *addr = 0; | |
5595 | auto char dummy; | |
5596 | if (addr == 0) | |
5597 | { | |
5598 | addr = &dummy; | |
5599 | return find_stack_direction (); | |
5600 | } | |
5601 | else | |
5602 | return (&dummy > addr) ? 1 : -1; | |
5603 | } | |
5604 | ||
5605 | int | |
5606 | main () | |
5607 | { | |
5608 | return find_stack_direction () < 0; | |
5609 | } | |
5610 | _ACEOF | |
5611 | if ac_fn_c_try_run "$LINENO"; then : | |
5612 | ac_cv_c_stack_direction=1 | |
5613 | else | |
5614 | ac_cv_c_stack_direction=-1 | |
5615 | fi | |
5616 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5617 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5618 | fi |
a946372e AK |
5619 | |
5620 | fi | |
f11781c5 AK |
5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
5622 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
5623 | cat >>confdefs.h <<_ACEOF | |
5624 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
a946372e AK |
5625 | _ACEOF |
5626 | ||
f11781c5 | 5627 | |
a946372e AK |
5628 | fi |
5629 | ||
f11781c5 AK |
5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
5631 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
5632 | if test "${ac_cv_func_closedir_void+set}" = set; then : | |
5633 | $as_echo_n "(cached) " >&6 | |
5634 | else | |
5635 | if test "$cross_compiling" = yes; then : | |
5636 | ac_cv_func_closedir_void=yes | |
5637 | else | |
5638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5639 | /* end confdefs.h. */ | |
5640 | $ac_includes_default | |
5641 | #include <$ac_header_dirent> | |
5642 | #ifndef __cplusplus | |
5643 | int closedir (); | |
5644 | #endif | |
a946372e | 5645 | |
f11781c5 AK |
5646 | int |
5647 | main () | |
5648 | { | |
5649 | return closedir (opendir (".")) != 0; | |
5650 | ; | |
5651 | return 0; | |
5652 | } | |
5653 | _ACEOF | |
5654 | if ac_fn_c_try_run "$LINENO"; then : | |
5655 | ac_cv_func_closedir_void=no | |
a946372e | 5656 | else |
f11781c5 | 5657 | ac_cv_func_closedir_void=yes |
a946372e | 5658 | fi |
f11781c5 AK |
5659 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5660 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5661 | fi |
5662 | ||
f11781c5 AK |
5663 | fi |
5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 | |
5665 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
5666 | if test $ac_cv_func_closedir_void = yes; then | |
a946372e | 5667 | |
f11781c5 | 5668 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
a946372e | 5669 | |
a946372e AK |
5670 | fi |
5671 | ||
f11781c5 AK |
5672 | for ac_header in unistd.h |
5673 | do : | |
5674 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
5675 | if test "x$ac_cv_header_unistd_h" = x""yes; then : | |
5676 | cat >>confdefs.h <<_ACEOF | |
5677 | #define HAVE_UNISTD_H 1 | |
5678 | _ACEOF | |
a946372e | 5679 | |
f11781c5 | 5680 | fi |
a946372e | 5681 | |
f11781c5 | 5682 | done |
a946372e | 5683 | |
f11781c5 AK |
5684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 |
5685 | $as_echo_n "checking for working chown... " >&6; } | |
5686 | if test "${ac_cv_func_chown_works+set}" = set; then : | |
5687 | $as_echo_n "(cached) " >&6 | |
a946372e | 5688 | else |
f11781c5 AK |
5689 | if test "$cross_compiling" = yes; then : |
5690 | ac_cv_func_chown_works=no | |
a946372e | 5691 | else |
f11781c5 AK |
5692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5693 | /* end confdefs.h. */ | |
5694 | $ac_includes_default | |
5695 | #include <fcntl.h> | |
a946372e | 5696 | |
f11781c5 AK |
5697 | int |
5698 | main () | |
5699 | { | |
5700 | char *f = "conftest.chown"; | |
5701 | struct stat before, after; | |
a946372e | 5702 | |
f11781c5 AK |
5703 | if (creat (f, 0600) < 0) |
5704 | return 1; | |
5705 | if (stat (f, &before) < 0) | |
5706 | return 1; | |
5707 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
5708 | return 1; | |
5709 | if (stat (f, &after) < 0) | |
5710 | return 1; | |
5711 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
a946372e | 5712 | |
f11781c5 AK |
5713 | ; |
5714 | return 0; | |
5715 | } | |
5716 | _ACEOF | |
5717 | if ac_fn_c_try_run "$LINENO"; then : | |
5718 | ac_cv_func_chown_works=yes | |
a946372e | 5719 | else |
f11781c5 | 5720 | ac_cv_func_chown_works=no |
a946372e | 5721 | fi |
f11781c5 AK |
5722 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5723 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5724 | fi |
5725 | ||
f11781c5 | 5726 | rm -f conftest.chown |
a946372e | 5727 | |
f11781c5 AK |
5728 | fi |
5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 | |
5730 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
5731 | if test $ac_cv_func_chown_works = yes; then | |
a946372e | 5732 | |
f11781c5 | 5733 | $as_echo "#define HAVE_CHOWN 1" >>confdefs.h |
a946372e | 5734 | |
a946372e | 5735 | fi |
a946372e | 5736 | |
f11781c5 AK |
5737 | for ac_header in vfork.h |
5738 | do : | |
5739 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
5740 | if test "x$ac_cv_header_vfork_h" = x""yes; then : | |
5741 | cat >>confdefs.h <<_ACEOF | |
5742 | #define HAVE_VFORK_H 1 | |
5743 | _ACEOF | |
a946372e | 5744 | |
f11781c5 | 5745 | fi |
a946372e | 5746 | |
f11781c5 | 5747 | done |
a946372e | 5748 | |
f11781c5 AK |
5749 | for ac_func in fork vfork |
5750 | do : | |
5751 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5752 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5753 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5754 | cat >>confdefs.h <<_ACEOF | |
5755 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5756 | _ACEOF | |
a946372e | 5757 | |
f11781c5 AK |
5758 | fi |
5759 | done | |
a946372e | 5760 | |
f11781c5 AK |
5761 | if test "x$ac_cv_func_fork" = xyes; then |
5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
5763 | $as_echo_n "checking for working fork... " >&6; } | |
5764 | if test "${ac_cv_func_fork_works+set}" = set; then : | |
5765 | $as_echo_n "(cached) " >&6 | |
5766 | else | |
5767 | if test "$cross_compiling" = yes; then : | |
5768 | ac_cv_func_fork_works=cross | |
5769 | else | |
5770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5771 | /* end confdefs.h. */ | |
5772 | $ac_includes_default | |
5773 | int | |
5774 | main () | |
5775 | { | |
a946372e | 5776 | |
f11781c5 AK |
5777 | /* By Ruediger Kuhlmann. */ |
5778 | return fork () < 0; | |
a946372e | 5779 | |
f11781c5 AK |
5780 | ; |
5781 | return 0; | |
5782 | } | |
5783 | _ACEOF | |
5784 | if ac_fn_c_try_run "$LINENO"; then : | |
5785 | ac_cv_func_fork_works=yes | |
a946372e | 5786 | else |
f11781c5 AK |
5787 | ac_cv_func_fork_works=no |
5788 | fi | |
5789 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5790 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5791 | fi |
a946372e | 5792 | |
f11781c5 AK |
5793 | fi |
5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
5795 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
5796 | ||
a946372e | 5797 | else |
f11781c5 | 5798 | ac_cv_func_fork_works=$ac_cv_func_fork |
a946372e | 5799 | fi |
f11781c5 AK |
5800 | if test "x$ac_cv_func_fork_works" = xcross; then |
5801 | case $host in | |
5802 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5803 | # Override, as these systems have only a dummy fork() stub | |
5804 | ac_cv_func_fork_works=no | |
5805 | ;; | |
5806 | *) | |
5807 | ac_cv_func_fork_works=yes | |
5808 | ;; | |
5809 | esac | |
5810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5811 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
a946372e | 5812 | fi |
f11781c5 AK |
5813 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
5814 | if test "x$ac_cv_func_vfork" = xyes; then | |
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
5816 | $as_echo_n "checking for working vfork... " >&6; } | |
5817 | if test "${ac_cv_func_vfork_works+set}" = set; then : | |
5818 | $as_echo_n "(cached) " >&6 | |
5819 | else | |
5820 | if test "$cross_compiling" = yes; then : | |
5821 | ac_cv_func_vfork_works=cross | |
5822 | else | |
5823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5824 | /* end confdefs.h. */ | |
5825 | /* Thanks to Paul Eggert for this test. */ | |
5826 | $ac_includes_default | |
5827 | #include <sys/wait.h> | |
5828 | #ifdef HAVE_VFORK_H | |
5829 | # include <vfork.h> | |
5830 | #endif | |
5831 | /* On some sparc systems, changes by the child to local and incoming | |
5832 | argument registers are propagated back to the parent. The compiler | |
5833 | is told about this with #include <vfork.h>, but some compilers | |
5834 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5835 | static variable whose address is put into a register that is | |
5836 | clobbered by the vfork. */ | |
5837 | static void | |
5838 | #ifdef __cplusplus | |
5839 | sparc_address_test (int arg) | |
5840 | # else | |
5841 | sparc_address_test (arg) int arg; | |
5842 | #endif | |
5843 | { | |
5844 | static pid_t child; | |
5845 | if (!child) { | |
5846 | child = vfork (); | |
5847 | if (child < 0) { | |
5848 | perror ("vfork"); | |
5849 | _exit(2); | |
5850 | } | |
5851 | if (!child) { | |
5852 | arg = getpid(); | |
5853 | write(-1, "", 0); | |
5854 | _exit (arg); | |
5855 | } | |
5856 | } | |
5857 | } | |
a946372e | 5858 | |
f11781c5 AK |
5859 | int |
5860 | main () | |
5861 | { | |
5862 | pid_t parent = getpid (); | |
5863 | pid_t child; | |
a946372e | 5864 | |
f11781c5 | 5865 | sparc_address_test (0); |
a946372e | 5866 | |
f11781c5 | 5867 | child = vfork (); |
a946372e | 5868 | |
f11781c5 AK |
5869 | if (child == 0) { |
5870 | /* Here is another test for sparc vfork register problems. This | |
5871 | test uses lots of local variables, at least as many local | |
5872 | variables as main has allocated so far including compiler | |
5873 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5874 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5875 | reuse the register of parent for one of the local variables, | |
5876 | since it will think that parent can't possibly be used any more | |
5877 | in this routine. Assigning to the local variable will thus | |
5878 | munge parent in the parent process. */ | |
5879 | pid_t | |
5880 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5881 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5882 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5883 | use the same hardware register for all 8 local variables. */ | |
5884 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5885 | || p != p5 || p != p6 || p != p7) | |
5886 | _exit(1); | |
a946372e | 5887 | |
f11781c5 AK |
5888 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
5889 | from child file descriptors. If the child closes a descriptor | |
5890 | before it execs or exits, this munges the parent's descriptor | |
5891 | as well. Test for this by closing stdout in the child. */ | |
5892 | _exit(close(fileno(stdout)) != 0); | |
5893 | } else { | |
5894 | int status; | |
5895 | struct stat st; | |
5896 | ||
5897 | while (wait(&status) != child) | |
5898 | ; | |
5899 | return ( | |
5900 | /* Was there some problem with vforking? */ | |
5901 | child < 0 | |
5902 | ||
5903 | /* Did the child fail? (This shouldn't happen.) */ | |
5904 | || status | |
5905 | ||
5906 | /* Did the vfork/compiler bug occur? */ | |
5907 | || parent != getpid() | |
5908 | ||
5909 | /* Did the file descriptor bug occur? */ | |
5910 | || fstat(fileno(stdout), &st) != 0 | |
5911 | ); | |
5912 | } | |
5913 | } | |
5914 | _ACEOF | |
5915 | if ac_fn_c_try_run "$LINENO"; then : | |
5916 | ac_cv_func_vfork_works=yes | |
a946372e | 5917 | else |
f11781c5 | 5918 | ac_cv_func_vfork_works=no |
a946372e | 5919 | fi |
f11781c5 AK |
5920 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5921 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5922 | fi |
f11781c5 | 5923 | |
a946372e | 5924 | fi |
f11781c5 AK |
5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
5926 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
a946372e | 5927 | |
f11781c5 AK |
5928 | fi; |
5929 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5930 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5931 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
5932 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5933 | fi | |
a946372e | 5934 | |
f11781c5 | 5935 | if test "x$ac_cv_func_vfork_works" = xyes; then |
a946372e | 5936 | |
f11781c5 | 5937 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
a946372e | 5938 | |
a946372e | 5939 | else |
a946372e | 5940 | |
f11781c5 AK |
5941 | $as_echo "#define vfork fork" >>confdefs.h |
5942 | ||
a946372e | 5943 | fi |
f11781c5 | 5944 | if test "x$ac_cv_func_fork_works" = xyes; then |
a946372e | 5945 | |
f11781c5 | 5946 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
a946372e | 5947 | |
a946372e | 5948 | fi |
f11781c5 AK |
5949 | |
5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 | |
5951 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } | |
5952 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : | |
5953 | $as_echo_n "(cached) " >&6 | |
a946372e | 5954 | else |
f11781c5 AK |
5955 | rm -f conftest.sym conftest.file |
5956 | echo >conftest.file | |
5957 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
5958 | if test "$cross_compiling" = yes; then : | |
5959 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 5960 | else |
f11781c5 | 5961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5962 | /* end confdefs.h. */ |
f11781c5 AK |
5963 | $ac_includes_default |
5964 | int | |
5965 | main () | |
5966 | { | |
5967 | struct stat sbuf; | |
5968 | /* Linux will dereference the symlink and fail, as required by POSIX. | |
5969 | That is better in the sense that it means we will not | |
5970 | have to compile and use the lstat wrapper. */ | |
5971 | return lstat ("conftest.sym/", &sbuf) == 0; | |
5972 | ; | |
5973 | return 0; | |
5974 | } | |
a946372e | 5975 | _ACEOF |
f11781c5 AK |
5976 | if ac_fn_c_try_run "$LINENO"; then : |
5977 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
a946372e | 5978 | else |
f11781c5 | 5979 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
a946372e | 5980 | fi |
f11781c5 AK |
5981 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5982 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5983 | fi |
a946372e | 5984 | |
a946372e | 5985 | else |
f11781c5 AK |
5986 | # If the `ln -s' command failed, then we probably don't even |
5987 | # have an lstat function. | |
5988 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 5989 | fi |
f11781c5 | 5990 | rm -f conftest.sym conftest.file |
a946372e | 5991 | |
f11781c5 AK |
5992 | fi |
5993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
5994 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
a946372e | 5995 | |
f11781c5 | 5996 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
a946372e | 5997 | |
f11781c5 AK |
5998 | cat >>confdefs.h <<_ACEOF |
5999 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6000 | _ACEOF | |
a946372e | 6001 | |
a946372e | 6002 | |
f11781c5 AK |
6003 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
6004 | case " $LIBOBJS " in | |
6005 | *" lstat.$ac_objext "* ) ;; | |
6006 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6007 | ;; | |
6008 | esac | |
a946372e | 6009 | |
f11781c5 | 6010 | fi |
a946372e | 6011 | |
f11781c5 AK |
6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 |
6013 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
6014 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then : | |
6015 | $as_echo_n "(cached) " >&6 | |
a946372e | 6016 | else |
f11781c5 AK |
6017 | if test "$cross_compiling" = yes; then : |
6018 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6019 | else |
f11781c5 AK |
6020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6021 | /* end confdefs.h. */ | |
6022 | $ac_includes_default | |
6023 | int | |
6024 | main () | |
6025 | { | |
6026 | struct stat sbuf; | |
6027 | return lstat ("", &sbuf) == 0; | |
6028 | ; | |
6029 | return 0; | |
6030 | } | |
6031 | _ACEOF | |
6032 | if ac_fn_c_try_run "$LINENO"; then : | |
6033 | ac_cv_func_lstat_empty_string_bug=no | |
6034 | else | |
6035 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6036 | fi |
f11781c5 AK |
6037 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6038 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6039 | fi |
6040 | ||
f11781c5 AK |
6041 | fi |
6042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6043 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
6044 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
6045 | case " $LIBOBJS " in | |
6046 | *" lstat.$ac_objext "* ) ;; | |
6047 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6048 | ;; | |
6049 | esac | |
a946372e AK |
6050 | |
6051 | ||
f11781c5 AK |
6052 | cat >>confdefs.h <<_ACEOF |
6053 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6054 | _ACEOF | |
a946372e | 6055 | |
a946372e | 6056 | fi |
a946372e | 6057 | |
f11781c5 AK |
6058 | for ac_header in stdlib.h |
6059 | do : | |
6060 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6061 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6062 | cat >>confdefs.h <<_ACEOF | |
6063 | #define HAVE_STDLIB_H 1 | |
6064 | _ACEOF | |
6065 | ||
a946372e AK |
6066 | fi |
6067 | ||
f11781c5 | 6068 | done |
a946372e | 6069 | |
f11781c5 AK |
6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
6071 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
6072 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : | |
6073 | $as_echo_n "(cached) " >&6 | |
6074 | else | |
6075 | if test "$cross_compiling" = yes; then : | |
6076 | ac_cv_func_malloc_0_nonnull=no | |
6077 | else | |
6078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6079 | /* end confdefs.h. */ | |
6080 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
6081 | # include <stdlib.h> | |
6082 | #else | |
6083 | char *malloc (); | |
6084 | #endif | |
a946372e | 6085 | |
f11781c5 AK |
6086 | int |
6087 | main () | |
6088 | { | |
6089 | return ! malloc (0); | |
6090 | ; | |
6091 | return 0; | |
6092 | } | |
6093 | _ACEOF | |
6094 | if ac_fn_c_try_run "$LINENO"; then : | |
6095 | ac_cv_func_malloc_0_nonnull=yes | |
a946372e | 6096 | else |
f11781c5 | 6097 | ac_cv_func_malloc_0_nonnull=no |
a946372e | 6098 | fi |
f11781c5 AK |
6099 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6100 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6101 | fi |
f11781c5 | 6102 | |
a946372e | 6103 | fi |
f11781c5 AK |
6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
6105 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
6106 | if test $ac_cv_func_malloc_0_nonnull = yes; then : | |
a946372e | 6107 | |
f11781c5 | 6108 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h |
a946372e | 6109 | |
f11781c5 AK |
6110 | else |
6111 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h | |
a946372e | 6112 | |
f11781c5 AK |
6113 | case " $LIBOBJS " in |
6114 | *" malloc.$ac_objext "* ) ;; | |
6115 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | |
6116 | ;; | |
6117 | esac | |
6118 | ||
6119 | ||
6120 | $as_echo "#define malloc rpl_malloc" >>confdefs.h | |
a946372e | 6121 | |
a946372e | 6122 | fi |
a946372e | 6123 | |
a946372e | 6124 | |
f11781c5 AK |
6125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
6126 | $as_echo_n "checking for working memcmp... " >&6; } | |
6127 | if test "${ac_cv_func_memcmp_working+set}" = set; then : | |
a946372e | 6128 | $as_echo_n "(cached) " >&6 |
a946372e | 6129 | else |
f11781c5 AK |
6130 | if test "$cross_compiling" = yes; then : |
6131 | ac_cv_func_memcmp_working=no | |
6132 | else | |
6133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6134 | /* end confdefs.h. */ |
6135 | $ac_includes_default | |
f11781c5 AK |
6136 | int |
6137 | main () | |
6138 | { | |
a946372e | 6139 | |
f11781c5 AK |
6140 | /* Some versions of memcmp are not 8-bit clean. */ |
6141 | char c0 = '\100', c1 = '\200', c2 = '\201'; | |
6142 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6143 | return 1; | |
a946372e | 6144 | |
f11781c5 AK |
6145 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
6146 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6147 | William Lewis provided this test program. */ | |
6148 | { | |
6149 | char foo[21]; | |
6150 | char bar[21]; | |
6151 | int i; | |
6152 | for (i = 0; i < 4; i++) | |
6153 | { | |
6154 | char *a = foo + i; | |
6155 | char *b = bar + i; | |
6156 | strcpy (a, "--------01111111"); | |
6157 | strcpy (b, "--------10000000"); | |
6158 | if (memcmp (a, b, 16) >= 0) | |
6159 | return 1; | |
6160 | } | |
6161 | return 0; | |
6162 | } | |
a946372e | 6163 | |
f11781c5 AK |
6164 | ; |
6165 | return 0; | |
6166 | } | |
a946372e | 6167 | _ACEOF |
f11781c5 AK |
6168 | if ac_fn_c_try_run "$LINENO"; then : |
6169 | ac_cv_func_memcmp_working=yes | |
a946372e | 6170 | else |
f11781c5 AK |
6171 | ac_cv_func_memcmp_working=no |
6172 | fi | |
6173 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6174 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6175 | fi | |
a946372e | 6176 | |
a946372e | 6177 | fi |
f11781c5 AK |
6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
6179 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
6180 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
6181 | *" memcmp.$ac_objext "* ) ;; | |
6182 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
6183 | ;; | |
6184 | esac | |
a946372e | 6185 | |
a946372e | 6186 | |
a946372e | 6187 | |
a946372e | 6188 | |
f11781c5 AK |
6189 | |
6190 | for ac_header in $ac_header_list | |
6191 | do : | |
6192 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6193 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6194 | " | |
6195 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
6196 | cat >>confdefs.h <<_ACEOF |
6197 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6198 | _ACEOF | |
6199 | ||
a946372e AK |
6200 | fi |
6201 | ||
6202 | done | |
6203 | ||
a946372e | 6204 | |
f11781c5 AK |
6205 | |
6206 | ||
6207 | ||
6208 | ||
6209 | ||
6210 | ||
6211 | for ac_func in getpagesize | |
6212 | do : | |
6213 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
6214 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | |
6215 | cat >>confdefs.h <<_ACEOF | |
6216 | #define HAVE_GETPAGESIZE 1 | |
6217 | _ACEOF | |
6218 | ||
a946372e | 6219 | fi |
f11781c5 AK |
6220 | done |
6221 | ||
6222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
6223 | $as_echo_n "checking for working mmap... " >&6; } | |
6224 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
6225 | $as_echo_n "(cached) " >&6 | |
a946372e | 6226 | else |
f11781c5 AK |
6227 | if test "$cross_compiling" = yes; then : |
6228 | ac_cv_func_mmap_fixed_mapped=no | |
6229 | else | |
6230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6231 | /* end confdefs.h. */ |
6232 | $ac_includes_default | |
f11781c5 AK |
6233 | /* malloc might have been renamed as rpl_malloc. */ |
6234 | #undef malloc | |
6235 | ||
6236 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6237 | Here is a matrix of mmap possibilities: | |
6238 | mmap private not fixed | |
6239 | mmap private fixed at somewhere currently unmapped | |
6240 | mmap private fixed at somewhere already mapped | |
6241 | mmap shared not fixed | |
6242 | mmap shared fixed at somewhere currently unmapped | |
6243 | mmap shared fixed at somewhere already mapped | |
6244 | For private mappings, we should verify that changes cannot be read() | |
6245 | back from the file, nor mmap's back from the file at a different | |
6246 | address. (There have been systems where private was not correctly | |
6247 | implemented like the infamous i386 svr4.0, and systems where the | |
6248 | VM page cache was not coherent with the file system buffer cache | |
6249 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6250 | For shared mappings, we should conversely verify that changes get | |
6251 | propagated back to all the places they're supposed to be. | |
6252 | ||
6253 | Grep wants private fixed already mapped. | |
6254 | The main things grep needs to know about mmap are: | |
6255 | * does it exist and is it safe to write into the mmap'd area | |
6256 | * how to use it (BSD variants) */ | |
6257 | ||
6258 | #include <fcntl.h> | |
6259 | #include <sys/mman.h> | |
6260 | ||
6261 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
6262 | char *malloc (); | |
6263 | #endif | |
6264 | ||
6265 | /* This mess was copied from the GNU getpagesize.h. */ | |
6266 | #ifndef HAVE_GETPAGESIZE | |
6267 | # ifdef _SC_PAGESIZE | |
6268 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6269 | # else /* no _SC_PAGESIZE */ | |
6270 | # ifdef HAVE_SYS_PARAM_H | |
6271 | # include <sys/param.h> | |
6272 | # ifdef EXEC_PAGESIZE | |
6273 | # define getpagesize() EXEC_PAGESIZE | |
6274 | # else /* no EXEC_PAGESIZE */ | |
6275 | # ifdef NBPG | |
6276 | # define getpagesize() NBPG * CLSIZE | |
6277 | # ifndef CLSIZE | |
6278 | # define CLSIZE 1 | |
6279 | # endif /* no CLSIZE */ | |
6280 | # else /* no NBPG */ | |
6281 | # ifdef NBPC | |
6282 | # define getpagesize() NBPC | |
6283 | # else /* no NBPC */ | |
6284 | # ifdef PAGESIZE | |
6285 | # define getpagesize() PAGESIZE | |
6286 | # endif /* PAGESIZE */ | |
6287 | # endif /* no NBPC */ | |
6288 | # endif /* no NBPG */ | |
6289 | # endif /* no EXEC_PAGESIZE */ | |
6290 | # else /* no HAVE_SYS_PARAM_H */ | |
6291 | # define getpagesize() 8192 /* punt totally */ | |
6292 | # endif /* no HAVE_SYS_PARAM_H */ | |
6293 | # endif /* no _SC_PAGESIZE */ | |
6294 | ||
6295 | #endif /* no HAVE_GETPAGESIZE */ | |
6296 | ||
6297 | int | |
6298 | main () | |
6299 | { | |
6300 | char *data, *data2, *data3; | |
6301 | const char *cdata2; | |
6302 | int i, pagesize; | |
6303 | int fd, fd2; | |
6304 | ||
6305 | pagesize = getpagesize (); | |
6306 | ||
6307 | /* First, make a file with some known garbage in it. */ | |
6308 | data = (char *) malloc (pagesize); | |
6309 | if (!data) | |
6310 | return 1; | |
6311 | for (i = 0; i < pagesize; ++i) | |
6312 | *(data + i) = rand (); | |
6313 | umask (0); | |
6314 | fd = creat ("conftest.mmap", 0600); | |
6315 | if (fd < 0) | |
6316 | return 2; | |
6317 | if (write (fd, data, pagesize) != pagesize) | |
6318 | return 3; | |
6319 | close (fd); | |
6320 | ||
6321 | /* Next, check that the tail of a page is zero-filled. File must have | |
6322 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
6323 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
6324 | if (fd2 < 0) | |
6325 | return 4; | |
6326 | cdata2 = ""; | |
6327 | if (write (fd2, cdata2, 1) != 1) | |
6328 | return 5; | |
6329 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
6330 | if (data2 == MAP_FAILED) | |
6331 | return 6; | |
6332 | for (i = 0; i < pagesize; ++i) | |
6333 | if (*(data2 + i)) | |
6334 | return 7; | |
6335 | close (fd2); | |
6336 | if (munmap (data2, pagesize)) | |
6337 | return 8; | |
6338 | ||
6339 | /* Next, try to mmap the file at a fixed address which already has | |
6340 | something else allocated at it. If we can, also make sure that | |
6341 | we see the same garbage. */ | |
6342 | fd = open ("conftest.mmap", O_RDWR); | |
6343 | if (fd < 0) | |
6344 | return 9; | |
6345 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6346 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6347 | return 10; | |
6348 | for (i = 0; i < pagesize; ++i) | |
6349 | if (*(data + i) != *(data2 + i)) | |
6350 | return 11; | |
6351 | ||
6352 | /* Finally, make sure that changes to the mapped area do not | |
6353 | percolate back to the file as seen by read(). (This is a bug on | |
6354 | some variants of i386 svr4.0.) */ | |
6355 | for (i = 0; i < pagesize; ++i) | |
6356 | *(data2 + i) = *(data2 + i) + 1; | |
6357 | data3 = (char *) malloc (pagesize); | |
6358 | if (!data3) | |
6359 | return 12; | |
6360 | if (read (fd, data3, pagesize) != pagesize) | |
6361 | return 13; | |
6362 | for (i = 0; i < pagesize; ++i) | |
6363 | if (*(data + i) != *(data3 + i)) | |
6364 | return 14; | |
6365 | close (fd); | |
6366 | return 0; | |
6367 | } | |
a946372e | 6368 | _ACEOF |
f11781c5 AK |
6369 | if ac_fn_c_try_run "$LINENO"; then : |
6370 | ac_cv_func_mmap_fixed_mapped=yes | |
a946372e | 6371 | else |
f11781c5 AK |
6372 | ac_cv_func_mmap_fixed_mapped=no |
6373 | fi | |
6374 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6375 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6376 | fi | |
a946372e | 6377 | |
a946372e | 6378 | fi |
f11781c5 AK |
6379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6380 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
6381 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
a946372e | 6382 | |
f11781c5 | 6383 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
a946372e | 6384 | |
f11781c5 AK |
6385 | fi |
6386 | rm -f conftest.mmap conftest.txt | |
6387 | ||
6388 | for ac_header in stdlib.h | |
6389 | do : | |
6390 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6391 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6392 | cat >>confdefs.h <<_ACEOF | |
6393 | #define HAVE_STDLIB_H 1 | |
a946372e | 6394 | _ACEOF |
f11781c5 AK |
6395 | |
6396 | fi | |
6397 | ||
6398 | done | |
6399 | ||
6400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 | |
6401 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
6402 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : | |
6403 | $as_echo_n "(cached) " >&6 | |
6404 | else | |
6405 | if test "$cross_compiling" = yes; then : | |
6406 | ac_cv_func_realloc_0_nonnull=no | |
6407 | else | |
6408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e | 6409 | /* end confdefs.h. */ |
f11781c5 AK |
6410 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
6411 | # include <stdlib.h> | |
6412 | #else | |
6413 | char *realloc (); | |
6414 | #endif | |
6415 | ||
6416 | int | |
6417 | main () | |
6418 | { | |
6419 | return ! realloc (0, 0); | |
6420 | ; | |
6421 | return 0; | |
6422 | } | |
a946372e | 6423 | _ACEOF |
f11781c5 AK |
6424 | if ac_fn_c_try_run "$LINENO"; then : |
6425 | ac_cv_func_realloc_0_nonnull=yes | |
a946372e | 6426 | else |
f11781c5 AK |
6427 | ac_cv_func_realloc_0_nonnull=no |
6428 | fi | |
6429 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6430 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6431 | fi |
6432 | ||
f11781c5 AK |
6433 | fi |
6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 | |
6435 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
6436 | if test $ac_cv_func_realloc_0_nonnull = yes; then : | |
a946372e | 6437 | |
f11781c5 | 6438 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h |
a946372e | 6439 | |
a946372e | 6440 | else |
f11781c5 AK |
6441 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h |
6442 | ||
6443 | case " $LIBOBJS " in | |
6444 | *" realloc.$ac_objext "* ) ;; | |
6445 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
6446 | ;; | |
6447 | esac | |
a946372e | 6448 | |
a946372e | 6449 | |
f11781c5 AK |
6450 | $as_echo "#define realloc rpl_realloc" >>confdefs.h |
6451 | ||
a946372e AK |
6452 | fi |
6453 | ||
a946372e | 6454 | |
f11781c5 AK |
6455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
6456 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
6457 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then : | |
6458 | $as_echo_n "(cached) " >&6 | |
a946372e | 6459 | else |
f11781c5 AK |
6460 | if test "$cross_compiling" = yes; then : |
6461 | ac_cv_func_stat_empty_string_bug=yes | |
6462 | else | |
6463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6464 | /* end confdefs.h. */ | |
6465 | $ac_includes_default | |
6466 | int | |
6467 | main () | |
6468 | { | |
6469 | struct stat sbuf; | |
6470 | return stat ("", &sbuf) == 0; | |
6471 | ; | |
6472 | return 0; | |
6473 | } | |
6474 | _ACEOF | |
6475 | if ac_fn_c_try_run "$LINENO"; then : | |
6476 | ac_cv_func_stat_empty_string_bug=no | |
6477 | else | |
6478 | ac_cv_func_stat_empty_string_bug=yes | |
a946372e | 6479 | fi |
f11781c5 AK |
6480 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6481 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6482 | fi |
6483 | ||
8c4e8a18 | 6484 | fi |
f11781c5 AK |
6485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
6486 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
6487 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
6488 | case " $LIBOBJS " in | |
6489 | *" stat.$ac_objext "* ) ;; | |
6490 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" | |
6491 | ;; | |
6492 | esac | |
8c4e8a18 FDN |
6493 | |
6494 | ||
6495 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 6496 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
8c4e8a18 FDN |
6497 | _ACEOF |
6498 | ||
6499 | fi | |
6500 | ||
f11781c5 AK |
6501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
6502 | $as_echo_n "checking for working strtod... " >&6; } | |
6503 | if test "${ac_cv_func_strtod+set}" = set; then : | |
6504 | $as_echo_n "(cached) " >&6 | |
66fd4529 | 6505 | else |
f11781c5 AK |
6506 | if test "$cross_compiling" = yes; then : |
6507 | ac_cv_func_strtod=no | |
6508 | else | |
6509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6510 | /* end confdefs.h. */ | |
66fd4529 | 6511 | |
f11781c5 AK |
6512 | $ac_includes_default |
6513 | #ifndef strtod | |
6514 | double strtod (); | |
6515 | #endif | |
6516 | int | |
6517 | main() | |
6518 | { | |
6519 | { | |
6520 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6521 | char *string = " +69"; | |
6522 | char *term; | |
6523 | double value; | |
6524 | value = strtod (string, &term); | |
6525 | if (value != 69 || term != (string + 4)) | |
6526 | return 1; | |
6527 | } | |
66fd4529 | 6528 | |
f11781c5 AK |
6529 | { |
6530 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6531 | terminating character under some conditions. */ | |
6532 | char *string = "NaN"; | |
6533 | char *term; | |
6534 | strtod (string, &term); | |
6535 | if (term != string && *(term - 1) == 0) | |
6536 | return 1; | |
6537 | } | |
6538 | return 0; | |
6539 | } | |
66fd4529 | 6540 | |
f11781c5 AK |
6541 | _ACEOF |
6542 | if ac_fn_c_try_run "$LINENO"; then : | |
6543 | ac_cv_func_strtod=yes | |
66fd4529 | 6544 | else |
f11781c5 AK |
6545 | ac_cv_func_strtod=no |
6546 | fi | |
6547 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6548 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6549 | fi |
6550 | ||
f11781c5 AK |
6551 | fi |
6552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | |
6553 | $as_echo "$ac_cv_func_strtod" >&6; } | |
6554 | if test $ac_cv_func_strtod = no; then | |
6555 | case " $LIBOBJS " in | |
6556 | *" strtod.$ac_objext "* ) ;; | |
6557 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
6558 | ;; | |
6559 | esac | |
71082be4 | 6560 | |
f11781c5 AK |
6561 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
6562 | if test "x$ac_cv_func_pow" = x""yes; then : | |
71082be4 | 6563 | |
66fd4529 | 6564 | fi |
a946372e | 6565 | |
f11781c5 AK |
6566 | if test $ac_cv_func_pow = no; then |
6567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
6568 | $as_echo_n "checking for pow in -lm... " >&6; } | |
6569 | if test "${ac_cv_lib_m_pow+set}" = set; then : | |
6570 | $as_echo_n "(cached) " >&6 | |
6571 | else | |
6572 | ac_check_lib_save_LIBS=$LIBS | |
6573 | LIBS="-lm $LIBS" | |
6574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6575 | /* end confdefs.h. */ | |
90c80887 | 6576 | |
f11781c5 AK |
6577 | /* Override any GCC internal prototype to avoid an error. |
6578 | Use char because int might match the return type of a GCC | |
6579 | builtin and then its argument prototype would still apply. */ | |
6580 | #ifdef __cplusplus | |
6581 | extern "C" | |
6582 | #endif | |
6583 | char pow (); | |
6584 | int | |
6585 | main () | |
6586 | { | |
6587 | return pow (); | |
6588 | ; | |
6589 | return 0; | |
6590 | } | |
6591 | _ACEOF | |
6592 | if ac_fn_c_try_link "$LINENO"; then : | |
6593 | ac_cv_lib_m_pow=yes | |
90c80887 | 6594 | else |
f11781c5 | 6595 | ac_cv_lib_m_pow=no |
90c80887 | 6596 | fi |
f11781c5 AK |
6597 | rm -f core conftest.err conftest.$ac_objext \ |
6598 | conftest$ac_exeext conftest.$ac_ext | |
6599 | LIBS=$ac_check_lib_save_LIBS | |
90c80887 | 6600 | fi |
f11781c5 AK |
6601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
6602 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
6603 | if test "x$ac_cv_lib_m_pow" = x""yes; then : | |
6604 | POW_LIB=-lm | |
90c80887 | 6605 | else |
f11781c5 AK |
6606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
6607 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
90c80887 | 6608 | fi |
f11781c5 | 6609 | |
90c80887 AK |
6610 | fi |
6611 | ||
f11781c5 AK |
6612 | fi |
6613 | ||
6614 | for ac_func in vprintf | |
6615 | do : | |
6616 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
6617 | if test "x$ac_cv_func_vprintf" = x""yes; then : | |
6618 | cat >>confdefs.h <<_ACEOF | |
6619 | #define HAVE_VPRINTF 1 | |
6620 | _ACEOF | |
90c80887 | 6621 | |
f11781c5 AK |
6622 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
6623 | if test "x$ac_cv_func__doprnt" = x""yes; then : | |
90c80887 | 6624 | |
f11781c5 | 6625 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
90c80887 | 6626 | |
90c80887 | 6627 | fi |
90c80887 | 6628 | |
f11781c5 AK |
6629 | fi |
6630 | done | |
90c80887 | 6631 | |
90c80887 | 6632 | |
90c80887 | 6633 | |
f11781c5 AK |
6634 | ################################################################################ |
6635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5 | |
6636 | $as_echo_n "checking whether to use static linking... " >&6; } | |
6637 | # Check whether --enable-static_link was given. | |
6638 | if test "${enable_static_link+set}" = set; then : | |
6639 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
6640 | else | |
6641 | STATIC_LINK=no | |
6642 | fi | |
90c80887 | 6643 | |
f11781c5 AK |
6644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5 |
6645 | $as_echo "$STATIC_LINK" >&6; } | |
90c80887 | 6646 | |
f11781c5 | 6647 | ################################################################################ |
90c80887 | 6648 | |
90c80887 | 6649 | |
f11781c5 AK |
6650 | ################################################################################ |
6651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5 | |
6652 | $as_echo_n "checking file owner... " >&6; } | |
90c80887 | 6653 | |
f11781c5 AK |
6654 | # Check whether --with-user was given. |
6655 | if test "${with_user+set}" = set; then : | |
6656 | withval=$with_user; OWNER=$withval | |
6657 | fi | |
90c80887 | 6658 | |
f11781c5 AK |
6659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5 |
6660 | $as_echo "$OWNER" >&6; } | |
90c80887 | 6661 | |
f11781c5 AK |
6662 | if test x$OWNER != x; then |
6663 | INSTALL="$INSTALL -o $OWNER" | |
90c80887 | 6664 | fi |
a946372e | 6665 | |
f11781c5 AK |
6666 | ################################################################################ |
6667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5 | |
6668 | $as_echo_n "checking group owner... " >&6; } | |
a946372e | 6669 | |
f11781c5 AK |
6670 | # Check whether --with-group was given. |
6671 | if test "${with_group+set}" = set; then : | |
6672 | withval=$with_group; GROUP=$withval | |
a946372e | 6673 | fi |
f11781c5 AK |
6674 | |
6675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5 | |
6676 | $as_echo "$GROUP" >&6; } | |
6677 | ||
6678 | if test x$GROUP != x; then | |
6679 | INSTALL="$INSTALL -g $GROUP" | |
a946372e | 6680 | fi |
f11781c5 AK |
6681 | |
6682 | ################################################################################ | |
6683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5 | |
6684 | $as_echo_n "checking device node uid... " >&6; } | |
6685 | ||
6686 | ||
6687 | # Check whether --with-device-uid was given. | |
6688 | if test "${with_device_uid+set}" = set; then : | |
6689 | withval=$with_device_uid; DM_DEVICE_UID=$withval | |
a946372e | 6690 | else |
f11781c5 | 6691 | DM_DEVICE_UID=0 |
a946372e AK |
6692 | fi |
6693 | ||
f11781c5 AK |
6694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5 |
6695 | $as_echo "$DM_DEVICE_UID" >&6; } | |
a946372e | 6696 | |
f11781c5 AK |
6697 | ################################################################################ |
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5 | |
6699 | $as_echo_n "checking device node gid... " >&6; } | |
a946372e | 6700 | |
a946372e | 6701 | |
f11781c5 AK |
6702 | # Check whether --with-device-gid was given. |
6703 | if test "${with_device_gid+set}" = set; then : | |
6704 | withval=$with_device_gid; DM_DEVICE_GID=$withval | |
a946372e | 6705 | else |
f11781c5 | 6706 | DM_DEVICE_GID=0 |
a946372e | 6707 | fi |
a946372e | 6708 | |
f11781c5 AK |
6709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5 |
6710 | $as_echo "$DM_DEVICE_GID" >&6; } | |
90c80887 | 6711 | |
f11781c5 AK |
6712 | ################################################################################ |
6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5 | |
6714 | $as_echo_n "checking device node mode... " >&6; } | |
90c80887 | 6715 | |
90c80887 | 6716 | |
f11781c5 AK |
6717 | # Check whether --with-device-mode was given. |
6718 | if test "${with_device_mode+set}" = set; then : | |
6719 | withval=$with_device_mode; DM_DEVICE_MODE=$withval | |
6720 | else | |
6721 | DM_DEVICE_MODE=0600 | |
6722 | fi | |
90c80887 | 6723 | |
f11781c5 AK |
6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5 |
6725 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
90c80887 | 6726 | |
d0df875d ZK |
6727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5 |
6728 | $as_echo_n "checking when to create device nodes... " >&6; } | |
6729 | ||
6730 | # Check whether --with-device-nodes-on was given. | |
6731 | if test "${with_device_nodes_on+set}" = set; then : | |
6732 | withval=$with_device_nodes_on; ADD_NODE=$withval | |
6733 | else | |
6734 | ADD_NODE=resume | |
6735 | fi | |
6736 | ||
6737 | case "$ADD_NODE" in | |
6738 | resume) add_on=DM_ADD_NODE_ON_RESUME;; | |
6739 | create) add_on=DM_ADD_NODE_ON_CREATE;; | |
6740 | *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;; | |
6741 | esac | |
6742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5 | |
6743 | $as_echo "on $ADD_NODE" >&6; } | |
6744 | ||
6745 | cat >>confdefs.h <<_ACEOF | |
6746 | #define DEFAULT_DM_ADD_NODE $add_on | |
6747 | _ACEOF | |
6748 | ||
6749 | ||
f11781c5 AK |
6750 | ################################################################################ |
6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5 | |
6752 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
6753 | # Check whether --enable-lvm1_fallback was given. | |
6754 | if test "${enable_lvm1_fallback+set}" = set; then : | |
6755 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
6756 | else | |
6757 | LVM1_FALLBACK=no | |
6758 | fi | |
90c80887 | 6759 | |
f11781c5 AK |
6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5 |
6761 | $as_echo "$LVM1_FALLBACK" >&6; } | |
90c80887 | 6762 | |
f11781c5 | 6763 | if test x$LVM1_FALLBACK = xyes; then |
90c80887 | 6764 | |
f11781c5 | 6765 | $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h |
90c80887 | 6766 | |
f11781c5 | 6767 | fi |
90c80887 | 6768 | |
f11781c5 AK |
6769 | ################################################################################ |
6770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5 | |
6771 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
6772 | ||
6773 | # Check whether --with-lvm1 was given. | |
6774 | if test "${with_lvm1+set}" = set; then : | |
6775 | withval=$with_lvm1; LVM1=$withval | |
a946372e | 6776 | else |
f11781c5 | 6777 | LVM1=internal |
a946372e | 6778 | fi |
f11781c5 AK |
6779 | |
6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5 | |
6781 | $as_echo "$LVM1" >&6; } | |
6782 | ||
6783 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
6784 | then as_fn_error $? "--with-lvm1 parameter invalid | |
6785 | " "$LINENO" 5 | |
6786 | fi; | |
6787 | ||
6788 | if test x$LVM1 = xinternal; then | |
6789 | ||
6790 | $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h | |
6791 | ||
a946372e AK |
6792 | fi |
6793 | ||
6794 | ################################################################################ | |
f11781c5 AK |
6795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5 |
6796 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
6797 | ||
6798 | # Check whether --with-pool was given. | |
6799 | if test "${with_pool+set}" = set; then : | |
6800 | withval=$with_pool; POOL=$withval | |
a946372e | 6801 | else |
f11781c5 | 6802 | POOL=internal |
a946372e AK |
6803 | fi |
6804 | ||
f11781c5 AK |
6805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5 |
6806 | $as_echo "$POOL" >&6; } | |
6807 | ||
6808 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
6809 | then as_fn_error $? "--with-pool parameter invalid | |
6810 | " "$LINENO" 5 | |
6811 | fi; | |
6812 | ||
6813 | if test x$POOL = xinternal; then | |
6814 | ||
6815 | $as_echo "#define POOL_INTERNAL 1" >>confdefs.h | |
a946372e | 6816 | |
a946372e AK |
6817 | fi |
6818 | ||
6819 | ################################################################################ | |
f11781c5 AK |
6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5 |
6821 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
a946372e | 6822 | |
f11781c5 AK |
6823 | # Check whether --with-cluster was given. |
6824 | if test "${with_cluster+set}" = set; then : | |
6825 | withval=$with_cluster; CLUSTER=$withval | |
a946372e AK |
6826 | fi |
6827 | ||
f11781c5 AK |
6828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5 |
6829 | $as_echo "$CLUSTER" >&6; } | |
a946372e | 6830 | |
f11781c5 AK |
6831 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
6832 | then as_fn_error $? "--with-cluster parameter invalid | |
6833 | " "$LINENO" 5 | |
6834 | fi; | |
fddafd51 | 6835 | |
f11781c5 | 6836 | if test x$CLUSTER = xinternal; then |
5556819a | 6837 | |
f11781c5 | 6838 | $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h |
fddafd51 | 6839 | |
fddafd51 | 6840 | fi |
f11781c5 AK |
6841 | |
6842 | ################################################################################ | |
6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5 | |
6844 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
6845 | ||
6846 | # Check whether --with-snapshots was given. | |
6847 | if test "${with_snapshots+set}" = set; then : | |
6848 | withval=$with_snapshots; SNAPSHOTS=$withval | |
fddafd51 | 6849 | else |
f11781c5 | 6850 | SNAPSHOTS=internal |
fddafd51 ZK |
6851 | fi |
6852 | ||
f11781c5 AK |
6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5 |
6854 | $as_echo "$SNAPSHOTS" >&6; } | |
fddafd51 | 6855 | |
f11781c5 AK |
6856 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
6857 | then as_fn_error $? "--with-snapshots parameter invalid | |
6858 | " "$LINENO" 5 | |
6859 | fi; | |
fddafd51 | 6860 | |
f11781c5 AK |
6861 | if test x$SNAPSHOTS = xinternal; then |
6862 | ||
6863 | $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h | |
6864 | ||
6865 | fi | |
6866 | ||
6867 | ################################################################################ | |
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5 | |
6869 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
6870 | ||
6871 | # Check whether --with-mirrors was given. | |
6872 | if test "${with_mirrors+set}" = set; then : | |
6873 | withval=$with_mirrors; MIRRORS=$withval | |
fddafd51 | 6874 | else |
f11781c5 | 6875 | MIRRORS=internal |
fddafd51 ZK |
6876 | fi |
6877 | ||
f11781c5 AK |
6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5 |
6879 | $as_echo "$MIRRORS" >&6; } | |
fddafd51 | 6880 | |
f11781c5 AK |
6881 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
6882 | then as_fn_error $? "--with-mirrors parameter invalid | |
6883 | " "$LINENO" 5 | |
6884 | fi; | |
6885 | ||
6886 | if test x$MIRRORS = xinternal; then | |
6887 | ||
6888 | $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h | |
6889 | ||
6890 | fi | |
6891 | ||
cac52ca4 JEB |
6892 | ################################################################################ |
6893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5 | |
6894 | $as_echo_n "checking whether to include raid... " >&6; } | |
6895 | ||
6896 | # Check whether --with-raid was given. | |
6897 | if test "${with_raid+set}" = set; then : | |
6898 | withval=$with_raid; RAID=$withval | |
6899 | else | |
6900 | RAID=internal | |
6901 | fi | |
6902 | ||
6903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5 | |
6904 | $as_echo "$RAID" >&6; } | |
6905 | ||
6906 | if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ]; | |
6907 | then as_fn_error $? "--with-raid parameter invalid | |
6908 | " "$LINENO" 5 | |
6909 | fi; | |
6910 | ||
6911 | if test x$RAID = xinternal; then | |
6912 | ||
6913 | $as_echo "#define RAID_INTERNAL 1" >>confdefs.h | |
6914 | ||
6915 | fi | |
6916 | ||
f11781c5 AK |
6917 | ################################################################################ |
6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5 | |
6919 | $as_echo_n "checking whether to include replicators... " >&6; } | |
6920 | ||
6921 | # Check whether --with-replicators was given. | |
6922 | if test "${with_replicators+set}" = set; then : | |
6923 | withval=$with_replicators; REPLICATORS=$withval | |
fd4728e1 | 6924 | else |
f11781c5 AK |
6925 | REPLICATORS=none |
6926 | fi | |
fd4728e1 | 6927 | |
f11781c5 AK |
6928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5 |
6929 | $as_echo "$REPLICATORS" >&6; } | |
6930 | ||
6931 | case "$REPLICATORS" in | |
6932 | none|shared) ;; | |
6933 | internal) | |
6934 | $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h | |
6935 | ;; | |
6936 | *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;; | |
fd4728e1 | 6937 | esac |
f11781c5 AK |
6938 | |
6939 | ################################################################################ | |
6940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5 | |
6941 | $as_echo_n "checking whether to enable readline... " >&6; } | |
6942 | # Check whether --enable-readline was given. | |
6943 | if test "${enable_readline+set}" = set; then : | |
6944 | enableval=$enable_readline; READLINE=$enableval | |
fd4728e1 | 6945 | else |
f11781c5 | 6946 | READLINE=maybe |
fd4728e1 ZK |
6947 | fi |
6948 | ||
f11781c5 AK |
6949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5 |
6950 | $as_echo "$READLINE" >&6; } | |
fd4728e1 | 6951 | |
f11781c5 AK |
6952 | ################################################################################ |
6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5 | |
6954 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
6955 | # Check whether --enable-realtime was given. | |
6956 | if test "${enable_realtime+set}" = set; then : | |
6957 | enableval=$enable_realtime; REALTIME=$enableval | |
5556819a | 6958 | fi |
d0191583 | 6959 | |
f11781c5 AK |
6960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5 |
6961 | $as_echo "$REALTIME" >&6; } | |
6962 | ||
54b362f9 | 6963 | ################################################################################ |
f11781c5 AK |
6964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5 |
6965 | $as_echo_n "checking whether to enable OCF resource agents... " >&6; } | |
6966 | # Check whether --enable-ocf was given. | |
6967 | if test "${enable_ocf+set}" = set; then : | |
6968 | enableval=$enable_ocf; OCF=$enableval | |
54b362f9 | 6969 | else |
f11781c5 | 6970 | OCF=no |
54b362f9 AK |
6971 | fi |
6972 | ||
f11781c5 AK |
6973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5 |
6974 | $as_echo "$OCF" >&6; } | |
54b362f9 | 6975 | |
606d0858 AK |
6976 | # Check whether --with-ocfdir was given. |
6977 | if test "${with_ocfdir+set}" = set; then : | |
6978 | withval=$with_ocfdir; OCFDIR=$withval | |
6979 | else | |
6980 | OCFDIR='${prefix}/lib/ocf/resource.d/lvm2' | |
6981 | fi | |
6982 | ||
6983 | ||
f11781c5 AK |
6984 | ################################################################################ |
6985 | pkg_config_init() { | |
6986 | ||
6987 | ||
6988 | ||
6989 | ||
6990 | ||
6991 | ||
6992 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
6993 | if test -n "$ac_tool_prefix"; then | |
6994 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
6995 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
6996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 6997 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 6998 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
6999 | $as_echo_n "(cached) " >&6 |
7000 | else | |
f11781c5 | 7001 | case $PKG_CONFIG in |
54b362f9 | 7002 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7003 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7004 | ;; |
7005 | *) | |
7006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7007 | for as_dir in $PATH | |
7008 | do | |
7009 | IFS=$as_save_IFS | |
7010 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7011 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7013 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7015 | break 2 |
7016 | fi | |
7017 | done | |
f11781c5 | 7018 | done |
54b362f9 AK |
7019 | IFS=$as_save_IFS |
7020 | ||
7021 | ;; | |
7022 | esac | |
7023 | fi | |
f11781c5 AK |
7024 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
7025 | if test -n "$PKG_CONFIG"; then | |
7026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
7027 | $as_echo "$PKG_CONFIG" >&6; } | |
54b362f9 | 7028 | else |
f11781c5 | 7029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7030 | $as_echo "no" >&6; } |
7031 | fi | |
7032 | ||
7033 | ||
f11781c5 AK |
7034 | fi |
7035 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
7036 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
7037 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
7038 | set dummy pkg-config; ac_word=$2 | |
7039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 7040 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 7041 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
7042 | $as_echo_n "(cached) " >&6 |
7043 | else | |
f11781c5 | 7044 | case $ac_pt_PKG_CONFIG in |
54b362f9 | 7045 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7046 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7047 | ;; |
7048 | *) | |
7049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7050 | for as_dir in $PATH | |
7051 | do | |
7052 | IFS=$as_save_IFS | |
7053 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7054 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7056 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7057 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7058 | break 2 |
7059 | fi | |
7060 | done | |
f11781c5 | 7061 | done |
54b362f9 AK |
7062 | IFS=$as_save_IFS |
7063 | ||
7064 | ;; | |
7065 | esac | |
7066 | fi | |
f11781c5 AK |
7067 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
7068 | if test -n "$ac_pt_PKG_CONFIG"; then | |
7069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
7070 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
54b362f9 | 7071 | else |
f11781c5 | 7072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7073 | $as_echo "no" >&6; } |
7074 | fi | |
7075 | ||
f11781c5 AK |
7076 | if test "x$ac_pt_PKG_CONFIG" = x; then |
7077 | PKG_CONFIG="" | |
7078 | else | |
7079 | case $cross_compiling:$ac_tool_warned in | |
7080 | yes:) | |
7081 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7082 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7083 | ac_tool_warned=yes ;; | |
7084 | esac | |
7085 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7086 | fi | |
d1e8046f | 7087 | else |
f11781c5 | 7088 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
d1e8046f AK |
7089 | fi |
7090 | ||
f11781c5 AK |
7091 | fi |
7092 | if test -n "$PKG_CONFIG"; then | |
7093 | _pkg_min_version=0.9.0 | |
7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
7095 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
7096 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7098 | $as_echo "yes" >&6; } | |
7099 | else | |
7100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7101 | $as_echo "no" >&6; } | |
7102 | PKG_CONFIG="" | |
7103 | fi | |
7104 | fi | |
d1e8046f | 7105 | |
f11781c5 AK |
7106 | pkg_failed=no |
7107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5 | |
7108 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
d1e8046f | 7109 | |
f11781c5 AK |
7110 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
7111 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
7112 | elif test -n "$PKG_CONFIG"; then | |
7113 | if test -n "$PKG_CONFIG" && \ | |
7114 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7115 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
7116 | ac_status=$? | |
7117 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7118 | test $ac_status = 0; }; then | |
7119 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7120 | else |
f11781c5 AK |
7121 | pkg_failed=yes |
7122 | fi | |
7123 | else | |
7124 | pkg_failed=untried | |
7125 | fi | |
7126 | if test -n "$PKGCONFIGINIT_LIBS"; then | |
7127 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
7128 | elif test -n "$PKG_CONFIG"; then | |
7129 | if test -n "$PKG_CONFIG" && \ | |
7130 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7131 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
d1e8046f | 7132 | ac_status=$? |
f11781c5 AK |
7133 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7134 | test $ac_status = 0; }; then | |
7135 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7136 | else |
f11781c5 AK |
7137 | pkg_failed=yes |
7138 | fi | |
7139 | else | |
7140 | pkg_failed=untried | |
d1e8046f AK |
7141 | fi |
7142 | ||
d1e8046f | 7143 | |
f11781c5 AK |
7144 | |
7145 | if test $pkg_failed = yes; then | |
7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7147 | $as_echo "no" >&6; } | |
7148 | ||
7149 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7150 | _pkg_short_errors_supported=yes | |
7151 | else | |
7152 | _pkg_short_errors_supported=no | |
7153 | fi | |
7154 | if test $_pkg_short_errors_supported = yes; then | |
7155 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` | |
7156 | else | |
7157 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` | |
7158 | fi | |
7159 | # Put the nasty error message in config.log where it belongs | |
7160 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 | |
7161 | ||
7162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7163 | $as_echo "pkg-config initialized" >&6; } | |
7164 | elif test $pkg_failed = untried; then | |
7165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7166 | $as_echo "no" >&6; } | |
7167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7168 | $as_echo "pkg-config initialized" >&6; } | |
d1e8046f | 7169 | else |
f11781c5 AK |
7170 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
7171 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7173 | $as_echo "yes" >&6; } | |
d1e8046f | 7174 | |
d1e8046f | 7175 | fi |
f11781c5 AK |
7176 | PKGCONFIG_INIT=1 |
7177 | } | |
d1e8046f | 7178 | |
f11781c5 AK |
7179 | ################################################################################ |
7180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5 | |
7181 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d1e8046f | 7182 | |
f11781c5 AK |
7183 | # Check whether --with-clvmd was given. |
7184 | if test "${with_clvmd+set}" = set; then : | |
7185 | withval=$with_clvmd; CLVMD=$withval | |
d1e8046f | 7186 | else |
f11781c5 | 7187 | CLVMD=none |
d1e8046f | 7188 | fi |
d1e8046f | 7189 | |
f11781c5 AK |
7190 | if test x$CLVMD = xyes; then |
7191 | CLVMD=all | |
d1e8046f | 7192 | fi |
f11781c5 AK |
7193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5 |
7194 | $as_echo "$CLVMD" >&6; } | |
d1e8046f | 7195 | |
f11781c5 AK |
7196 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
7197 | CLUSTER=internal | |
d1e8046f AK |
7198 | fi |
7199 | ||
f11781c5 AK |
7200 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then |
7201 | pkg_config_init | |
7202 | fi | |
d1e8046f | 7203 | |
f11781c5 AK |
7204 | CLVMD_CMANAGERS="" |
7205 | CLVMD_NEEDS_QDISKD=no | |
d1e8046f | 7206 | |
f11781c5 AK |
7207 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then |
7208 | BUILDGULM=yes | |
7209 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd" | |
7210 | CLVMD_NEEDS_QDISKD=yes | |
d1e8046f | 7211 | fi |
f11781c5 AK |
7212 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then |
7213 | BUILDCMAN=yes | |
7214 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
7215 | CLVMD_NEEDS_QDISKD=yes | |
7216 | fi | |
7217 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
7218 | BUILDCOROSYNC=yes | |
7219 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
7220 | fi | |
7221 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
7222 | BUILDOPENAIS=yes | |
7223 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
7224 | fi | |
7225 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
7226 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
fc54be10 AK |
7227 | fi |
7228 | ||
f11781c5 AK |
7229 | if test x$BUILDGULM = xyes; then |
7230 | if test x$BUILDCOROSYNC = xyes || \ | |
7231 | test x$BUILDOPENAIS = xyes; then | |
7232 | as_fn_error $? "requested clvmd configuration is not valid" "$LINENO" 5 | |
7233 | fi | |
7234 | fi | |
ad6254c5 | 7235 | |
f11781c5 AK |
7236 | soft_bailout() { |
7237 | NOTFOUND=1 | |
7238 | } | |
ad6254c5 | 7239 | |
f11781c5 AK |
7240 | hard_bailout() { |
7241 | as_fn_error $? "bailing out" "$LINENO" 5 | |
7242 | } | |
ad6254c5 | 7243 | |
f11781c5 AK |
7244 | if test x$CLVMD = xall; then |
7245 | bailout=soft_bailout | |
7246 | BUILDGULM=yes | |
7247 | BUILDCMAN=yes | |
7248 | BUILDCOROSYNC=yes | |
7249 | BUILDOPENAIS=yes | |
a5f46f6a | 7250 | else |
f11781c5 | 7251 | bailout=hard_bailout |
a5f46f6a AK |
7252 | fi |
7253 | ||
f11781c5 AK |
7254 | check_lib_no_libs() { |
7255 | lib_no_libs_arg1=$1 | |
7256 | shift | |
7257 | lib_no_libs_arg2=$1 | |
7258 | shift | |
7259 | lib_no_libs_args=$@ | |
7260 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
7261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
7262 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
7263 | if eval "test \"\${$as_ac_Lib+set}\"" = set; then : | |
90c80887 AK |
7264 | $as_echo_n "(cached) " >&6 |
7265 | else | |
7266 | ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
7267 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" |
7268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
90c80887 AK |
7269 | /* end confdefs.h. */ |
7270 | ||
7271 | /* Override any GCC internal prototype to avoid an error. | |
7272 | Use char because int might match the return type of a GCC | |
7273 | builtin and then its argument prototype would still apply. */ | |
7274 | #ifdef __cplusplus | |
7275 | extern "C" | |
7276 | #endif | |
f11781c5 | 7277 | char $lib_no_libs_arg2 (); |
90c80887 AK |
7278 | int |
7279 | main () | |
7280 | { | |
f11781c5 | 7281 | return $lib_no_libs_arg2 (); |
90c80887 AK |
7282 | ; |
7283 | return 0; | |
7284 | } | |
7285 | _ACEOF | |
f11781c5 AK |
7286 | if ac_fn_c_try_link "$LINENO"; then : |
7287 | eval "$as_ac_Lib=yes" | |
90c80887 | 7288 | else |
f11781c5 | 7289 | eval "$as_ac_Lib=no" |
90c80887 | 7290 | fi |
f11781c5 AK |
7291 | rm -f core conftest.err conftest.$ac_objext \ |
7292 | conftest$ac_exeext conftest.$ac_ext | |
90c80887 AK |
7293 | LIBS=$ac_check_lib_save_LIBS |
7294 | fi | |
f11781c5 AK |
7295 | eval ac_res=\$$as_ac_Lib |
7296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7297 | $as_echo "$ac_res" >&6; } | |
7298 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
7299 | cat >>confdefs.h <<_ACEOF | |
7300 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
7301 | _ACEOF | |
7302 | ||
7303 | LIBS="-l$lib_no_libs_arg1 $LIBS" | |
7304 | ||
90c80887 | 7305 | else |
f11781c5 | 7306 | $bailout |
90c80887 AK |
7307 | fi |
7308 | ||
f11781c5 AK |
7309 | LIBS=$ac_check_lib_save_LIBS |
7310 | } | |
90c80887 | 7311 | |
f11781c5 | 7312 | if test x$BUILDGULM = xyes; then |
90c80887 | 7313 | |
f11781c5 AK |
7314 | pkg_failed=no |
7315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5 | |
7316 | $as_echo_n "checking for CCS... " >&6; } | |
90c80887 | 7317 | |
f11781c5 AK |
7318 | if test -n "$CCS_CFLAGS"; then |
7319 | pkg_cv_CCS_CFLAGS="$CCS_CFLAGS" | |
7320 | elif test -n "$PKG_CONFIG"; then | |
7321 | if test -n "$PKG_CONFIG" && \ | |
7322 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5 | |
7323 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
7324 | ac_status=$? | |
7325 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7326 | test $ac_status = 0; }; then | |
7327 | pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null` | |
5161ecb9 | 7328 | else |
f11781c5 AK |
7329 | pkg_failed=yes |
7330 | fi | |
7331 | else | |
7332 | pkg_failed=untried | |
7333 | fi | |
7334 | if test -n "$CCS_LIBS"; then | |
7335 | pkg_cv_CCS_LIBS="$CCS_LIBS" | |
7336 | elif test -n "$PKG_CONFIG"; then | |
7337 | if test -n "$PKG_CONFIG" && \ | |
7338 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5 | |
7339 | ($PKG_CONFIG --exists --print-errors "libccs") 2>&5 | |
7340 | ac_status=$? | |
7341 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7342 | test $ac_status = 0; }; then | |
7343 | pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null` | |
7344 | else | |
7345 | pkg_failed=yes | |
7346 | fi | |
7347 | else | |
7348 | pkg_failed=untried | |
5161ecb9 PR |
7349 | fi |
7350 | ||
5161ecb9 | 7351 | |
f11781c5 AK |
7352 | |
7353 | if test $pkg_failed = yes; then | |
7354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7355 | $as_echo "no" >&6; } | |
7356 | ||
7357 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7358 | _pkg_short_errors_supported=yes | |
93bd259b | 7359 | else |
f11781c5 | 7360 | _pkg_short_errors_supported=no |
93bd259b | 7361 | fi |
f11781c5 AK |
7362 | if test $_pkg_short_errors_supported = yes; then |
7363 | CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1` | |
7364 | else | |
7365 | CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1` | |
7366 | fi | |
7367 | # Put the nasty error message in config.log where it belongs | |
7368 | echo "$CCS_PKG_ERRORS" >&5 | |
93bd259b | 7369 | |
f11781c5 AK |
7370 | NOTFOUND=0 |
7371 | for ac_header in ccs.h | |
7372 | do : | |
7373 | ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default" | |
7374 | if test "x$ac_cv_header_ccs_h" = x""yes; then : | |
7375 | cat >>confdefs.h <<_ACEOF | |
7376 | #define HAVE_CCS_H 1 | |
7377 | _ACEOF | |
93bd259b | 7378 | |
95eaa683 | 7379 | else |
f11781c5 | 7380 | $bailout |
95eaa683 AK |
7381 | fi |
7382 | ||
f11781c5 | 7383 | done |
95eaa683 | 7384 | |
f11781c5 AK |
7385 | check_lib_no_libs ccs ccs_connect |
7386 | if test $NOTFOUND = 0; then | |
7387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5 | |
7388 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
7389 | CCS_LIBS="-lccs" | |
7390 | HAVE_CCS=yes | |
7391 | fi | |
7392 | elif test $pkg_failed = untried; then | |
7393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7394 | $as_echo "no" >&6; } | |
7395 | NOTFOUND=0 | |
7396 | for ac_header in ccs.h | |
7397 | do : | |
7398 | ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default" | |
7399 | if test "x$ac_cv_header_ccs_h" = x""yes; then : | |
7400 | cat >>confdefs.h <<_ACEOF | |
7401 | #define HAVE_CCS_H 1 | |
95eaa683 AK |
7402 | _ACEOF |
7403 | ||
f11781c5 AK |
7404 | else |
7405 | $bailout | |
95eaa683 AK |
7406 | fi |
7407 | ||
f11781c5 AK |
7408 | done |
7409 | ||
7410 | check_lib_no_libs ccs ccs_connect | |
7411 | if test $NOTFOUND = 0; then | |
7412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5 | |
7413 | $as_echo "no pkg for libccs, using -lccs" >&6; } | |
7414 | CCS_LIBS="-lccs" | |
7415 | HAVE_CCS=yes | |
7416 | fi | |
7417 | else | |
7418 | CCS_CFLAGS=$pkg_cv_CCS_CFLAGS | |
7419 | CCS_LIBS=$pkg_cv_CCS_LIBS | |
7420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7421 | $as_echo "yes" >&6; } | |
7422 | HAVE_CCS=yes | |
7423 | fi | |
7424 | ||
7425 | pkg_failed=no | |
7426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GULM" >&5 | |
7427 | $as_echo_n "checking for GULM... " >&6; } | |
7428 | ||
7429 | if test -n "$GULM_CFLAGS"; then | |
7430 | pkg_cv_GULM_CFLAGS="$GULM_CFLAGS" | |
7431 | elif test -n "$PKG_CONFIG"; then | |
7432 | if test -n "$PKG_CONFIG" && \ | |
7433 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5 | |
7434 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
7435 | ac_status=$? | |
7436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7437 | test $ac_status = 0; }; then | |
7438 | pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null` | |
7439 | else | |
7440 | pkg_failed=yes | |
7441 | fi | |
7442 | else | |
7443 | pkg_failed=untried | |
7444 | fi | |
7445 | if test -n "$GULM_LIBS"; then | |
7446 | pkg_cv_GULM_LIBS="$GULM_LIBS" | |
7447 | elif test -n "$PKG_CONFIG"; then | |
7448 | if test -n "$PKG_CONFIG" && \ | |
7449 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5 | |
7450 | ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5 | |
7451 | ac_status=$? | |
7452 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7453 | test $ac_status = 0; }; then | |
7454 | pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null` | |
7455 | else | |
7456 | pkg_failed=yes | |
93bd259b | 7457 | fi |
f11781c5 AK |
7458 | else |
7459 | pkg_failed=untried | |
ad6254c5 | 7460 | fi |
ad6254c5 | 7461 | |
ad6254c5 AK |
7462 | |
7463 | ||
f11781c5 AK |
7464 | if test $pkg_failed = yes; then |
7465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7466 | $as_echo "no" >&6; } | |
ad6254c5 | 7467 | |
f11781c5 AK |
7468 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7469 | _pkg_short_errors_supported=yes | |
572fefeb | 7470 | else |
f11781c5 | 7471 | _pkg_short_errors_supported=no |
572fefeb | 7472 | fi |
f11781c5 AK |
7473 | if test $_pkg_short_errors_supported = yes; then |
7474 | GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1` | |
7475 | else | |
7476 | GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1` | |
7477 | fi | |
7478 | # Put the nasty error message in config.log where it belongs | |
7479 | echo "$GULM_PKG_ERRORS" >&5 | |
572fefeb | 7480 | |
f11781c5 AK |
7481 | NOTFOUND=0 |
7482 | for ac_header in libgulm.h | |
7483 | do : | |
7484 | ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default" | |
7485 | if test "x$ac_cv_header_libgulm_h" = x""yes; then : | |
7486 | cat >>confdefs.h <<_ACEOF | |
7487 | #define HAVE_LIBGULM_H 1 | |
7488 | _ACEOF | |
572fefeb | 7489 | |
ad6254c5 | 7490 | else |
f11781c5 | 7491 | $bailout |
d0191583 | 7492 | fi |
8a2fc586 | 7493 | |
f11781c5 | 7494 | done |
8a2fc586 | 7495 | |
f11781c5 AK |
7496 | check_lib_no_libs gulm lg_core_login |
7497 | if test $NOTFOUND = 0; then | |
7498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5 | |
7499 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
7500 | GULM_LIBS="-lgulm" | |
7501 | HAVE_GULM=yes | |
7502 | fi | |
7503 | elif test $pkg_failed = untried; then | |
7504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7505 | $as_echo "no" >&6; } | |
7506 | NOTFOUND=0 | |
7507 | for ac_header in libgulm.h | |
7508 | do : | |
7509 | ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default" | |
7510 | if test "x$ac_cv_header_libgulm_h" = x""yes; then : | |
7511 | cat >>confdefs.h <<_ACEOF | |
7512 | #define HAVE_LIBGULM_H 1 | |
7513 | _ACEOF | |
d179cc7a | 7514 | |
93bd259b | 7515 | else |
f11781c5 | 7516 | $bailout |
93bd259b AK |
7517 | fi |
7518 | ||
f11781c5 | 7519 | done |
2a9a80c9 | 7520 | |
f11781c5 AK |
7521 | check_lib_no_libs gulm lg_core_login |
7522 | if test $NOTFOUND = 0; then | |
7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5 | |
7524 | $as_echo "no pkg for libgulm, using -lgulm" >&6; } | |
7525 | GULM_LIBS="-lgulm" | |
7526 | HAVE_GULM=yes | |
7527 | fi | |
23b059e7 | 7528 | else |
f11781c5 AK |
7529 | GULM_CFLAGS=$pkg_cv_GULM_CFLAGS |
7530 | GULM_LIBS=$pkg_cv_GULM_LIBS | |
7531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7532 | $as_echo "yes" >&6; } | |
7533 | HAVE_GULM=yes | |
d0191583 | 7534 | fi |
d0191583 | 7535 | fi |
ad6254c5 | 7536 | |
f11781c5 | 7537 | if test x$BUILDCMAN = xyes; then |
ad6254c5 | 7538 | |
f11781c5 AK |
7539 | pkg_failed=no |
7540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5 | |
7541 | $as_echo_n "checking for CMAN... " >&6; } | |
93bd259b | 7542 | |
f11781c5 AK |
7543 | if test -n "$CMAN_CFLAGS"; then |
7544 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
7545 | elif test -n "$PKG_CONFIG"; then | |
7546 | if test -n "$PKG_CONFIG" && \ | |
7547 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7548 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
7549 | ac_status=$? | |
7550 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7551 | test $ac_status = 0; }; then | |
7552 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
7553 | else | |
7554 | pkg_failed=yes | |
ad6254c5 | 7555 | fi |
f11781c5 AK |
7556 | else |
7557 | pkg_failed=untried | |
ad6254c5 | 7558 | fi |
f11781c5 AK |
7559 | if test -n "$CMAN_LIBS"; then |
7560 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
7561 | elif test -n "$PKG_CONFIG"; then | |
7562 | if test -n "$PKG_CONFIG" && \ | |
7563 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7564 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
93bd259b | 7565 | ac_status=$? |
f11781c5 AK |
7566 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7567 | test $ac_status = 0; }; then | |
7568 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
93bd259b | 7569 | else |
f11781c5 AK |
7570 | pkg_failed=yes |
7571 | fi | |
7572 | else | |
7573 | pkg_failed=untried | |
93bd259b AK |
7574 | fi |
7575 | ||
f11781c5 AK |
7576 | |
7577 | ||
7578 | if test $pkg_failed = yes; then | |
7579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7580 | $as_echo "no" >&6; } | |
7581 | ||
7582 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7583 | _pkg_short_errors_supported=yes | |
7584 | else | |
7585 | _pkg_short_errors_supported=no | |
93bd259b | 7586 | fi |
f11781c5 AK |
7587 | if test $_pkg_short_errors_supported = yes; then |
7588 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
7589 | else | |
7590 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
7591 | fi | |
7592 | # Put the nasty error message in config.log where it belongs | |
7593 | echo "$CMAN_PKG_ERRORS" >&5 | |
93bd259b | 7594 | |
f11781c5 AK |
7595 | NOTFOUND=0 |
7596 | for ac_header in libcman.h | |
7597 | do : | |
7598 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7599 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7600 | cat >>confdefs.h <<_ACEOF | |
7601 | #define HAVE_LIBCMAN_H 1 | |
93bd259b AK |
7602 | _ACEOF |
7603 | ||
f11781c5 AK |
7604 | else |
7605 | $bailout | |
93bd259b AK |
7606 | fi |
7607 | ||
f11781c5 | 7608 | done |
93bd259b | 7609 | |
f11781c5 AK |
7610 | check_lib_no_libs cman cman_init |
7611 | if test $NOTFOUND = 0; then | |
7612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7613 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7614 | CMAN_LIBS="-lcman" | |
7615 | HAVE_CMAN=yes | |
7616 | fi | |
7617 | elif test $pkg_failed = untried; then | |
7618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7619 | $as_echo "no" >&6; } | |
7620 | NOTFOUND=0 | |
7621 | for ac_header in libcman.h | |
7622 | do : | |
7623 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7624 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7625 | cat >>confdefs.h <<_ACEOF | |
7626 | #define HAVE_LIBCMAN_H 1 | |
93bd259b | 7627 | _ACEOF |
93bd259b | 7628 | |
93bd259b | 7629 | else |
f11781c5 | 7630 | $bailout |
93bd259b AK |
7631 | fi |
7632 | ||
f11781c5 AK |
7633 | done |
7634 | ||
7635 | check_lib_no_libs cman cman_init | |
7636 | if test $NOTFOUND = 0; then | |
7637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7638 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7639 | CMAN_LIBS="-lcman" | |
7640 | HAVE_CMAN=yes | |
7641 | fi | |
7642 | else | |
7643 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
7644 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
7645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7646 | $as_echo "yes" >&6; } | |
7647 | HAVE_CMAN=yes | |
93bd259b | 7648 | fi |
f11781c5 AK |
7649 | CHECKCONFDB=yes |
7650 | CHECKDLM=yes | |
93bd259b AK |
7651 | fi |
7652 | ||
f11781c5 AK |
7653 | if test x$BUILDCOROSYNC = xyes || \ |
7654 | test x$BUILDOPENAIS = xyes; then | |
93bd259b | 7655 | |
f11781c5 AK |
7656 | pkg_failed=no |
7657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5 | |
7658 | $as_echo_n "checking for COROSYNC... " >&6; } | |
ad6254c5 | 7659 | |
f11781c5 AK |
7660 | if test -n "$COROSYNC_CFLAGS"; then |
7661 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
7662 | elif test -n "$PKG_CONFIG"; then | |
7663 | if test -n "$PKG_CONFIG" && \ | |
7664 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7665 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
7666 | ac_status=$? | |
7667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7668 | test $ac_status = 0; }; then | |
7669 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
ad6254c5 | 7670 | else |
f11781c5 AK |
7671 | pkg_failed=yes |
7672 | fi | |
7673 | else | |
7674 | pkg_failed=untried | |
7675 | fi | |
7676 | if test -n "$COROSYNC_LIBS"; then | |
7677 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
7678 | elif test -n "$PKG_CONFIG"; then | |
7679 | if test -n "$PKG_CONFIG" && \ | |
7680 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7681 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
ad6254c5 | 7682 | ac_status=$? |
f11781c5 AK |
7683 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7684 | test $ac_status = 0; }; then | |
7685 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
ad6254c5 | 7686 | else |
f11781c5 | 7687 | pkg_failed=yes |
ad6254c5 | 7688 | fi |
f11781c5 AK |
7689 | else |
7690 | pkg_failed=untried | |
ad6254c5 | 7691 | fi |
ad6254c5 | 7692 | |
72b2cb61 | 7693 | |
72b2cb61 | 7694 | |
f11781c5 AK |
7695 | if test $pkg_failed = yes; then |
7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7697 | $as_echo "no" >&6; } | |
19a2c6e0 | 7698 | |
f11781c5 AK |
7699 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7700 | _pkg_short_errors_supported=yes | |
7701 | else | |
7702 | _pkg_short_errors_supported=no | |
ad6254c5 | 7703 | fi |
f11781c5 AK |
7704 | if test $_pkg_short_errors_supported = yes; then |
7705 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
7706 | else | |
7707 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
7708 | fi | |
7709 | # Put the nasty error message in config.log where it belongs | |
7710 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
ad6254c5 | 7711 | |
f11781c5 AK |
7712 | $bailout |
7713 | elif test $pkg_failed = untried; then | |
7714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7715 | $as_echo "no" >&6; } | |
7716 | $bailout | |
7717 | else | |
7718 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
7719 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
7720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7721 | $as_echo "yes" >&6; } | |
7722 | HAVE_COROSYNC=yes | |
7723 | fi | |
7724 | CHECKCONFDB=yes | |
ad6254c5 AK |
7725 | fi |
7726 | ||
f11781c5 | 7727 | if test x$BUILDCOROSYNC = xyes; then |
f30875db | 7728 | |
f11781c5 AK |
7729 | pkg_failed=no |
7730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5 | |
7731 | $as_echo_n "checking for QUORUM... " >&6; } | |
7732 | ||
7733 | if test -n "$QUORUM_CFLAGS"; then | |
7734 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
7735 | elif test -n "$PKG_CONFIG"; then | |
7736 | if test -n "$PKG_CONFIG" && \ | |
7737 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7738 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
f30875db | 7739 | ac_status=$? |
f11781c5 AK |
7740 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7741 | test $ac_status = 0; }; then | |
7742 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
f30875db | 7743 | else |
f11781c5 | 7744 | pkg_failed=yes |
f30875db | 7745 | fi |
f11781c5 AK |
7746 | else |
7747 | pkg_failed=untried | |
f30875db | 7748 | fi |
f11781c5 AK |
7749 | if test -n "$QUORUM_LIBS"; then |
7750 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
7751 | elif test -n "$PKG_CONFIG"; then | |
7752 | if test -n "$PKG_CONFIG" && \ | |
7753 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7754 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
7755 | ac_status=$? | |
7756 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7757 | test $ac_status = 0; }; then | |
7758 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
f30875db | 7759 | else |
f11781c5 | 7760 | pkg_failed=yes |
f30875db | 7761 | fi |
f11781c5 AK |
7762 | else |
7763 | pkg_failed=untried | |
7764 | fi | |
7765 | ||
f30875db | 7766 | |
f11781c5 AK |
7767 | |
7768 | if test $pkg_failed = yes; then | |
7769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7770 | $as_echo "no" >&6; } | |
7771 | ||
7772 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7773 | _pkg_short_errors_supported=yes | |
7774 | else | |
7775 | _pkg_short_errors_supported=no | |
f30875db | 7776 | fi |
f11781c5 AK |
7777 | if test $_pkg_short_errors_supported = yes; then |
7778 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
7779 | else | |
7780 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
7781 | fi | |
7782 | # Put the nasty error message in config.log where it belongs | |
7783 | echo "$QUORUM_PKG_ERRORS" >&5 | |
f30875db | 7784 | |
f11781c5 AK |
7785 | $bailout |
7786 | elif test $pkg_failed = untried; then | |
7787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7788 | $as_echo "no" >&6; } | |
7789 | $bailout | |
7790 | else | |
7791 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
7792 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
7793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7794 | $as_echo "yes" >&6; } | |
7795 | HAVE_QUORUM=yes | |
7796 | fi | |
7797 | CHECKCPG=yes | |
7798 | CHECKDLM=yes | |
d0191583 JM |
7799 | fi |
7800 | ||
f11781c5 | 7801 | if test x$BUILDOPENAIS = xyes; then |
d0191583 | 7802 | |
f11781c5 AK |
7803 | pkg_failed=no |
7804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5 | |
7805 | $as_echo_n "checking for SALCK... " >&6; } | |
8a2fc586 | 7806 | |
f11781c5 AK |
7807 | if test -n "$SALCK_CFLAGS"; then |
7808 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
7809 | elif test -n "$PKG_CONFIG"; then | |
7810 | if test -n "$PKG_CONFIG" && \ | |
7811 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7812 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
7813 | ac_status=$? | |
7814 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7815 | test $ac_status = 0; }; then | |
7816 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
7817 | else | |
7818 | pkg_failed=yes | |
7819 | fi | |
7820 | else | |
7821 | pkg_failed=untried | |
7822 | fi | |
7823 | if test -n "$SALCK_LIBS"; then | |
7824 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
7825 | elif test -n "$PKG_CONFIG"; then | |
7826 | if test -n "$PKG_CONFIG" && \ | |
7827 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7828 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
8a2fc586 | 7829 | ac_status=$? |
f11781c5 AK |
7830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7831 | test $ac_status = 0; }; then | |
7832 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
8a2fc586 | 7833 | else |
f11781c5 | 7834 | pkg_failed=yes |
8a2fc586 | 7835 | fi |
f11781c5 AK |
7836 | else |
7837 | pkg_failed=untried | |
8a2fc586 | 7838 | fi |
d0191583 | 7839 | |
d0191583 | 7840 | |
f8f6ec92 | 7841 | |
f11781c5 AK |
7842 | if test $pkg_failed = yes; then |
7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7844 | $as_echo "no" >&6; } | |
8a2fc586 | 7845 | |
f11781c5 AK |
7846 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7847 | _pkg_short_errors_supported=yes | |
ad6254c5 | 7848 | else |
f11781c5 AK |
7849 | _pkg_short_errors_supported=no |
7850 | fi | |
7851 | if test $_pkg_short_errors_supported = yes; then | |
7852 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
7853 | else | |
7854 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
7855 | fi | |
7856 | # Put the nasty error message in config.log where it belongs | |
7857 | echo "$SALCK_PKG_ERRORS" >&5 | |
ad6254c5 | 7858 | |
f11781c5 AK |
7859 | $bailout |
7860 | elif test $pkg_failed = untried; then | |
7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7862 | $as_echo "no" >&6; } | |
7863 | $bailout | |
ad6254c5 | 7864 | else |
f11781c5 AK |
7865 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS |
7866 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
7867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7868 | $as_echo "yes" >&6; } | |
7869 | HAVE_SALCK=yes | |
ad6254c5 | 7870 | fi |
f11781c5 | 7871 | CHECKCPG=yes |
ad6254c5 | 7872 | fi |
ad6254c5 | 7873 | |
72b2cb61 | 7874 | |
f8f6ec92 | 7875 | |
f11781c5 | 7876 | if test x$CHECKCONFDB = xyes; then |
f8f6ec92 | 7877 | |
f11781c5 AK |
7878 | pkg_failed=no |
7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5 | |
7880 | $as_echo_n "checking for CONFDB... " >&6; } | |
f8f6ec92 | 7881 | |
f11781c5 AK |
7882 | if test -n "$CONFDB_CFLAGS"; then |
7883 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
7884 | elif test -n "$PKG_CONFIG"; then | |
7885 | if test -n "$PKG_CONFIG" && \ | |
7886 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7887 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
f8f6ec92 | 7888 | ac_status=$? |
f11781c5 AK |
7889 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7890 | test $ac_status = 0; }; then | |
7891 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
66e941e8 | 7892 | else |
f11781c5 AK |
7893 | pkg_failed=yes |
7894 | fi | |
7895 | else | |
7896 | pkg_failed=untried | |
7897 | fi | |
7898 | if test -n "$CONFDB_LIBS"; then | |
7899 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
7900 | elif test -n "$PKG_CONFIG"; then | |
7901 | if test -n "$PKG_CONFIG" && \ | |
7902 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7903 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
7904 | ac_status=$? | |
7905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7906 | test $ac_status = 0; }; then | |
7907 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
7908 | else | |
7909 | pkg_failed=yes | |
7910 | fi | |
7911 | else | |
7912 | pkg_failed=untried | |
f8f6ec92 ZK |
7913 | fi |
7914 | ||
f8f6ec92 | 7915 | |
66e941e8 | 7916 | |
f11781c5 AK |
7917 | if test $pkg_failed = yes; then |
7918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7919 | $as_echo "no" >&6; } | |
7920 | ||
7921 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7922 | _pkg_short_errors_supported=yes | |
f8f6ec92 | 7923 | else |
f11781c5 | 7924 | _pkg_short_errors_supported=no |
66e941e8 | 7925 | fi |
f11781c5 AK |
7926 | if test $_pkg_short_errors_supported = yes; then |
7927 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
7928 | else | |
7929 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
7930 | fi | |
7931 | # Put the nasty error message in config.log where it belongs | |
7932 | echo "$CONFDB_PKG_ERRORS" >&5 | |
66e941e8 | 7933 | |
f11781c5 AK |
7934 | HAVE_CONFDB=no |
7935 | elif test $pkg_failed = untried; then | |
7936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7937 | $as_echo "no" >&6; } | |
7938 | HAVE_CONFDB=no | |
7939 | else | |
7940 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
7941 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7943 | $as_echo "yes" >&6; } | |
7944 | HAVE_CONFDB=yes | |
66e941e8 | 7945 | fi |
f11781c5 AK |
7946 | |
7947 | for ac_header in corosync/confdb.h | |
7948 | do : | |
7949 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default" | |
7950 | if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then : | |
f8f6ec92 | 7951 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 7952 | #define HAVE_COROSYNC_CONFDB_H 1 |
f8f6ec92 | 7953 | _ACEOF |
f11781c5 | 7954 | HAVE_CONFDB_H=yes |
66e941e8 | 7955 | else |
f11781c5 | 7956 | HAVE_CONFDB_H=no |
66e941e8 | 7957 | fi |
dd1f2c09 MB |
7958 | |
7959 | done | |
7960 | ||
7961 | ||
f11781c5 AK |
7962 | if test x$HAVE_CONFDB != xyes && \ |
7963 | test x$HAVE_CONFDB_H = xyes; then | |
7964 | check_lib_no_libs confdb confdb_initialize | |
7965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5 | |
7966 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
7967 | CONFDB_LIBS="-lconfdb" | |
7968 | HAVE_CONFDB=yes | |
7969 | fi | |
7970 | ||
7971 | if test x$BUILDCOROSYNC = xyes && \ | |
7972 | test x$HAVE_CONFDB != xyes && | |
7973 | test x$CLVMD != xall; then | |
7974 | as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5 | |
7975 | fi | |
dd1f2c09 | 7976 | fi |
f11781c5 AK |
7977 | |
7978 | if test x$CHECKCPG = xyes; then | |
7979 | ||
7980 | pkg_failed=no | |
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
7982 | $as_echo_n "checking for CPG... " >&6; } | |
7983 | ||
7984 | if test -n "$CPG_CFLAGS"; then | |
7985 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
7986 | elif test -n "$PKG_CONFIG"; then | |
7987 | if test -n "$PKG_CONFIG" && \ | |
7988 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
7989 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
7990 | ac_status=$? | |
7991 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7992 | test $ac_status = 0; }; then | |
7993 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
dd1f2c09 | 7994 | else |
f11781c5 AK |
7995 | pkg_failed=yes |
7996 | fi | |
7997 | else | |
7998 | pkg_failed=untried | |
7999 | fi | |
8000 | if test -n "$CPG_LIBS"; then | |
8001 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8002 | elif test -n "$PKG_CONFIG"; then | |
8003 | if test -n "$PKG_CONFIG" && \ | |
8004 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8005 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
dd1f2c09 | 8006 | ac_status=$? |
f11781c5 AK |
8007 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8008 | test $ac_status = 0; }; then | |
8009 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
dd1f2c09 | 8010 | else |
f11781c5 AK |
8011 | pkg_failed=yes |
8012 | fi | |
8013 | else | |
8014 | pkg_failed=untried | |
8015 | fi | |
8016 | ||
8017 | ||
8018 | ||
8019 | if test $pkg_failed = yes; then | |
8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8021 | $as_echo "no" >&6; } | |
8022 | ||
8023 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8024 | _pkg_short_errors_supported=yes | |
8025 | else | |
8026 | _pkg_short_errors_supported=no | |
8027 | fi | |
8028 | if test $_pkg_short_errors_supported = yes; then | |
8029 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8030 | else | |
8031 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8032 | fi | |
8033 | # Put the nasty error message in config.log where it belongs | |
8034 | echo "$CPG_PKG_ERRORS" >&5 | |
dd1f2c09 | 8035 | |
f11781c5 AK |
8036 | $bailout |
8037 | elif test $pkg_failed = untried; then | |
8038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8039 | $as_echo "no" >&6; } | |
8040 | $bailout | |
8041 | else | |
8042 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
8043 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8045 | $as_echo "yes" >&6; } | |
8046 | HAVE_CPG=yes | |
8047 | fi | |
dd1f2c09 MB |
8048 | fi |
8049 | ||
f11781c5 | 8050 | if test x$CHECKDLM = xyes; then |
dd1f2c09 | 8051 | |
f11781c5 AK |
8052 | pkg_failed=no |
8053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5 | |
8054 | $as_echo_n "checking for DLM... " >&6; } | |
8055 | ||
8056 | if test -n "$DLM_CFLAGS"; then | |
8057 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
8058 | elif test -n "$PKG_CONFIG"; then | |
8059 | if test -n "$PKG_CONFIG" && \ | |
8060 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8061 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
dd1f2c09 | 8062 | ac_status=$? |
f11781c5 AK |
8063 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8064 | test $ac_status = 0; }; then | |
8065 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
dd1f2c09 | 8066 | else |
f11781c5 AK |
8067 | pkg_failed=yes |
8068 | fi | |
8069 | else | |
8070 | pkg_failed=untried | |
8071 | fi | |
8072 | if test -n "$DLM_LIBS"; then | |
8073 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
8074 | elif test -n "$PKG_CONFIG"; then | |
8075 | if test -n "$PKG_CONFIG" && \ | |
8076 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8077 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
8078 | ac_status=$? | |
8079 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8080 | test $ac_status = 0; }; then | |
8081 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
8082 | else | |
8083 | pkg_failed=yes | |
8084 | fi | |
8085 | else | |
8086 | pkg_failed=untried | |
dd1f2c09 MB |
8087 | fi |
8088 | ||
dd1f2c09 | 8089 | |
dd1f2c09 | 8090 | |
f11781c5 AK |
8091 | if test $pkg_failed = yes; then |
8092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8093 | $as_echo "no" >&6; } | |
8094 | ||
8095 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8096 | _pkg_short_errors_supported=yes | |
dd1f2c09 | 8097 | else |
f11781c5 | 8098 | _pkg_short_errors_supported=no |
dd1f2c09 | 8099 | fi |
f11781c5 AK |
8100 | if test $_pkg_short_errors_supported = yes; then |
8101 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
8102 | else | |
8103 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
8104 | fi | |
8105 | # Put the nasty error message in config.log where it belongs | |
8106 | echo "$DLM_PKG_ERRORS" >&5 | |
dd1f2c09 | 8107 | |
f11781c5 AK |
8108 | NOTFOUND=0 |
8109 | for ac_header in libdlm.h | |
8110 | do : | |
8111 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8112 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
dd1f2c09 | 8113 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 8114 | #define HAVE_LIBDLM_H 1 |
dd1f2c09 MB |
8115 | _ACEOF |
8116 | ||
f11781c5 AK |
8117 | else |
8118 | $bailout | |
dd1f2c09 | 8119 | fi |
f8f6ec92 ZK |
8120 | |
8121 | done | |
8122 | ||
f11781c5 AK |
8123 | check_lib_no_libs dlm dlm_lock -lpthread |
8124 | if test $NOTFOUND = 0; then | |
8125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8126 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8127 | DLM_LIBS="-ldlm -lpthread" | |
8128 | HAVE_DLM=yes | |
8129 | fi | |
8130 | elif test $pkg_failed = untried; then | |
8131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8132 | $as_echo "no" >&6; } | |
8133 | NOTFOUND=0 | |
8134 | for ac_header in libdlm.h | |
8135 | do : | |
8136 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8137 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
8138 | cat >>confdefs.h <<_ACEOF | |
8139 | #define HAVE_LIBDLM_H 1 | |
f8f6ec92 ZK |
8140 | _ACEOF |
8141 | ||
f8f6ec92 | 8142 | else |
f11781c5 | 8143 | $bailout |
ad6254c5 AK |
8144 | fi |
8145 | ||
f11781c5 | 8146 | done |
8b1a3214 | 8147 | |
f11781c5 AK |
8148 | check_lib_no_libs dlm dlm_lock -lpthread |
8149 | if test $NOTFOUND = 0; then | |
8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8151 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8152 | DLM_LIBS="-ldlm -lpthread" | |
8153 | HAVE_DLM=yes | |
8154 | fi | |
8b1a3214 | 8155 | else |
f11781c5 AK |
8156 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS |
8157 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
8158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8159 | $as_echo "yes" >&6; } | |
8160 | HAVE_DLM=yes | |
8b1a3214 | 8161 | fi |
8b1a3214 AK |
8162 | fi |
8163 | ||
f11781c5 AK |
8164 | if test x$CLVMD = xall; then |
8165 | CLVMD=none | |
8166 | CLVMD_CMANAGERS="" | |
8167 | CLVMD_NEEDS_QDISKD=no | |
8168 | if test x$HAVE_CCS = xyes && \ | |
8169 | test x$HAVE_GULM = xyes; then | |
8170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd gulm cluster manager" >&5 | |
8171 | $as_echo "Enabling clvmd gulm cluster manager" >&6; } | |
8172 | CLVMD="$CLVMD,gulm" | |
8173 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd" | |
8174 | CLVMD_NEEDS_QDISKD=yes | |
8175 | fi | |
8176 | if test x$HAVE_CMAN = xyes && \ | |
8177 | test x$HAVE_DLM = xyes; then | |
8178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5 | |
8179 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
8180 | CLVMD="$CLVMD,cman" | |
8181 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
8182 | CLVMD_NEEDS_QDISKD=yes | |
8183 | fi | |
8184 | if test x$HAVE_COROSYNC = xyes && \ | |
8185 | test x$HAVE_QUORUM = xyes && \ | |
8186 | test x$HAVE_CPG = xyes && \ | |
8187 | test x$HAVE_DLM = xyes && \ | |
8188 | test x$HAVE_CONFDB = xyes; then | |
8189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5 | |
8190 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
8191 | CLVMD="$CLVMD,corosync" | |
8192 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
8193 | fi | |
8194 | if test x$HAVE_COROSYNC = xyes && \ | |
8195 | test x$HAVE_CPG = xyes && \ | |
8196 | test x$HAVE_SALCK = xyes; then | |
8197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5 | |
8198 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
8199 | CLVMD="$CLVMD,openais" | |
8200 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
8201 | fi | |
8202 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
8203 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
8204 | fi | |
8205 | if test x$CLVMD = xnone; then | |
8206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5 | |
8207 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
8b1a3214 AK |
8208 | fi |
8209 | fi | |
8210 | ||
ad6254c5 | 8211 | ################################################################################ |
f11781c5 | 8212 | if test "x$CLVMD" != xnone; then |
ad6254c5 | 8213 | |
f11781c5 AK |
8214 | # Check whether --with-clvmd-pidfile was given. |
8215 | if test "${with_clvmd_pidfile+set}" = set; then : | |
8216 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
ad6254c5 | 8217 | else |
f11781c5 | 8218 | CLVMD_PIDFILE="/var/run/clvmd.pid" |
ad6254c5 | 8219 | fi |
7a197a62 | 8220 | |
ad6254c5 | 8221 | |
f11781c5 AK |
8222 | cat >>confdefs.h <<_ACEOF |
8223 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
ad6254c5 | 8224 | _ACEOF |
ad6254c5 | 8225 | |
ad6254c5 | 8226 | fi |
7a197a62 | 8227 | |
f11781c5 AK |
8228 | ################################################################################ |
8229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5 | |
8230 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
8231 | # Check whether --enable-cmirrord was given. | |
8232 | if test "${enable_cmirrord+set}" = set; then : | |
8233 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
8234 | else | |
8235 | CMIRRORD=no | |
8236 | fi | |
8237 | ||
8238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5 | |
8239 | $as_echo "$CMIRRORD" >&6; } | |
ad6254c5 | 8240 | |
f11781c5 | 8241 | BUILD_CMIRRORD=$CMIRRORD |
7a197a62 | 8242 | |
f11781c5 AK |
8243 | ################################################################################ |
8244 | if test "x$BUILD_CMIRRORD" = xyes; then | |
8245 | ||
8246 | # Check whether --with-cmirrord-pidfile was given. | |
8247 | if test "${with_cmirrord_pidfile+set}" = set; then : | |
8248 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval | |
ad6254c5 | 8249 | else |
f11781c5 | 8250 | CMIRRORD_PIDFILE="/var/run/cmirrord.pid" |
ad6254c5 | 8251 | fi |
ad6254c5 | 8252 | |
72b2cb61 | 8253 | |
f11781c5 AK |
8254 | cat >>confdefs.h <<_ACEOF |
8255 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
72b2cb61 AK |
8256 | _ACEOF |
8257 | ||
ad6254c5 AK |
8258 | fi |
8259 | ||
f11781c5 AK |
8260 | ################################################################################ |
8261 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
8262 | if test x$PKGCONFIG_INIT != x1; then | |
8263 | pkg_config_init | |
8264 | fi | |
ad6254c5 | 8265 | |
f11781c5 AK |
8266 | pkg_failed=no |
8267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5 | |
8268 | $as_echo_n "checking for SACKPT... " >&6; } | |
ad6254c5 | 8269 | |
f11781c5 AK |
8270 | if test -n "$SACKPT_CFLAGS"; then |
8271 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
8272 | elif test -n "$PKG_CONFIG"; then | |
8273 | if test -n "$PKG_CONFIG" && \ | |
8274 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8275 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
8276 | ac_status=$? | |
8277 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8278 | test $ac_status = 0; }; then | |
8279 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8280 | else |
f11781c5 AK |
8281 | pkg_failed=yes |
8282 | fi | |
8283 | else | |
8284 | pkg_failed=untried | |
8285 | fi | |
8286 | if test -n "$SACKPT_LIBS"; then | |
8287 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
8288 | elif test -n "$PKG_CONFIG"; then | |
8289 | if test -n "$PKG_CONFIG" && \ | |
8290 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8291 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
539f4a77 | 8292 | ac_status=$? |
f11781c5 AK |
8293 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8294 | test $ac_status = 0; }; then | |
8295 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8296 | else |
f11781c5 AK |
8297 | pkg_failed=yes |
8298 | fi | |
8299 | else | |
8300 | pkg_failed=untried | |
8301 | fi | |
539f4a77 ZK |
8302 | |
8303 | ||
539f4a77 | 8304 | |
f11781c5 AK |
8305 | if test $pkg_failed = yes; then |
8306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8307 | $as_echo "no" >&6; } | |
8308 | ||
8309 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8310 | _pkg_short_errors_supported=yes | |
539f4a77 | 8311 | else |
f11781c5 | 8312 | _pkg_short_errors_supported=no |
539f4a77 | 8313 | fi |
f11781c5 AK |
8314 | if test $_pkg_short_errors_supported = yes; then |
8315 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
8316 | else | |
8317 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
8318 | fi | |
8319 | # Put the nasty error message in config.log where it belongs | |
8320 | echo "$SACKPT_PKG_ERRORS" >&5 | |
8321 | ||
8322 | as_fn_error $? "Package requirements (libSaCkpt) were not met: | |
8323 | ||
8324 | $SACKPT_PKG_ERRORS | |
8325 | ||
8326 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8327 | installed software in a non-standard prefix. | |
8328 | ||
8329 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
8330 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8331 | See the pkg-config man page for more details." "$LINENO" 5 | |
8332 | ||
8333 | elif test $pkg_failed = untried; then | |
8334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8335 | $as_echo "no" >&6; } | |
8336 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8337 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8338 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8339 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8340 | path to pkg-config. | |
8341 | ||
8342 | Alternatively, you may set the environment variables SACKPT_CFLAGS | |
8343 | and SACKPT_LIBS to avoid the need to call pkg-config. | |
8344 | See the pkg-config man page for more details. | |
8345 | ||
8346 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8347 | See \`config.log' for more details" "$LINENO" 5; } | |
8348 | ||
539f4a77 | 8349 | else |
f11781c5 AK |
8350 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS |
8351 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
8352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8353 | $as_echo "yes" >&6; } | |
539f4a77 | 8354 | |
539f4a77 | 8355 | fi |
f11781c5 | 8356 | if test x$HAVE_CPG != xyes; then |
539f4a77 | 8357 | |
f11781c5 AK |
8358 | pkg_failed=no |
8359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
8360 | $as_echo_n "checking for CPG... " >&6; } | |
ad6254c5 | 8361 | |
f11781c5 AK |
8362 | if test -n "$CPG_CFLAGS"; then |
8363 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
8364 | elif test -n "$PKG_CONFIG"; then | |
8365 | if test -n "$PKG_CONFIG" && \ | |
8366 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8367 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
ad6254c5 | 8368 | ac_status=$? |
f11781c5 AK |
8369 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8370 | test $ac_status = 0; }; then | |
8371 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
ad6254c5 | 8372 | else |
f11781c5 AK |
8373 | pkg_failed=yes |
8374 | fi | |
8375 | else | |
8376 | pkg_failed=untried | |
8377 | fi | |
8378 | if test -n "$CPG_LIBS"; then | |
8379 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8380 | elif test -n "$PKG_CONFIG"; then | |
8381 | if test -n "$PKG_CONFIG" && \ | |
8382 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8383 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
8384 | ac_status=$? | |
8385 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8386 | test $ac_status = 0; }; then | |
8387 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
8388 | else | |
8389 | pkg_failed=yes | |
8390 | fi | |
8391 | else | |
8392 | pkg_failed=untried | |
8393 | fi | |
8394 | ||
8395 | ||
8396 | ||
8397 | if test $pkg_failed = yes; then | |
8398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8399 | $as_echo "no" >&6; } | |
ad6254c5 | 8400 | |
f11781c5 AK |
8401 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
8402 | _pkg_short_errors_supported=yes | |
8403 | else | |
8404 | _pkg_short_errors_supported=no | |
ad6254c5 | 8405 | fi |
f11781c5 AK |
8406 | if test $_pkg_short_errors_supported = yes; then |
8407 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8408 | else | |
8409 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8410 | fi | |
8411 | # Put the nasty error message in config.log where it belongs | |
8412 | echo "$CPG_PKG_ERRORS" >&5 | |
8413 | ||
8414 | as_fn_error $? "Package requirements (libcpg) were not met: | |
8415 | ||
8416 | $CPG_PKG_ERRORS | |
8417 | ||
8418 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8419 | installed software in a non-standard prefix. | |
8420 | ||
8421 | Alternatively, you may set the environment variables CPG_CFLAGS | |
8422 | and CPG_LIBS to avoid the need to call pkg-config. | |
8423 | See the pkg-config man page for more details." "$LINENO" 5 | |
7a197a62 | 8424 | |
f11781c5 AK |
8425 | elif test $pkg_failed = untried; then |
8426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8427 | $as_echo "no" >&6; } | |
8428 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8429 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8430 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8431 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8432 | path to pkg-config. | |
539f4a77 | 8433 | |
f11781c5 AK |
8434 | Alternatively, you may set the environment variables CPG_CFLAGS |
8435 | and CPG_LIBS to avoid the need to call pkg-config. | |
8436 | See the pkg-config man page for more details. | |
539f4a77 | 8437 | |
f11781c5 AK |
8438 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
8439 | See \`config.log' for more details" "$LINENO" 5; } | |
bc1024f8 | 8440 | |
539f4a77 | 8441 | else |
f11781c5 AK |
8442 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS |
8443 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8445 | $as_echo "yes" >&6; } | |
bc1024f8 | 8446 | |
f11781c5 AK |
8447 | fi |
8448 | fi | |
8449 | fi | |
8450 | ||
8451 | ################################################################################ | |
8452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 | |
8453 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
8454 | # Check whether --enable-debug was given. | |
8455 | if test "${enable_debug+set}" = set; then : | |
8456 | enableval=$enable_debug; DEBUG=$enableval | |
ad6254c5 | 8457 | else |
f11781c5 AK |
8458 | DEBUG=no |
8459 | fi | |
8460 | ||
8461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5 | |
8462 | $as_echo "$DEBUG" >&6; } | |
539f4a77 | 8463 | |
f11781c5 AK |
8464 | if test x$DEBUG = xyes; then |
8465 | COPTIMISE_FLAG= | |
8466 | else | |
8467 | CSCOPE_CMD= | |
06e459df JM |
8468 | fi |
8469 | ||
f11781c5 AK |
8470 | ################################################################################ |
8471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5 | |
8472 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
8473 | ||
8474 | # Check whether --with-optimisation was given. | |
8475 | if test "${with_optimisation+set}" = set; then : | |
8476 | withval=$with_optimisation; COPTIMISE_FLAG=$withval | |
539f4a77 | 8477 | fi |
539f4a77 | 8478 | |
f11781c5 AK |
8479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5 |
8480 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
539f4a77 | 8481 | |
f11781c5 AK |
8482 | ################################################################################ |
8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5 | |
8484 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
8485 | # Check whether --enable-profiling was given. | |
8486 | if test "${enable_profiling+set}" = set; then : | |
8487 | enableval=$enable_profiling; PROFILING=$enableval | |
8488 | else | |
8489 | PROFILING=no | |
539f4a77 ZK |
8490 | fi |
8491 | ||
f11781c5 AK |
8492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5 |
8493 | $as_echo "$PROFILING" >&6; } | |
8494 | ||
8495 | if test "x$PROFILING" = xyes; then | |
8496 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8497 | # Extract the first word of "lcov", so it can be a program name with args. | |
8498 | set dummy lcov; ac_word=$2 | |
8499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8500 | $as_echo_n "checking for $ac_word... " >&6; } | |
8501 | if test "${ac_cv_path_LCOV+set}" = set; then : | |
8502 | $as_echo_n "(cached) " >&6 | |
539f4a77 | 8503 | else |
f11781c5 AK |
8504 | case $LCOV in |
8505 | [\\/]* | ?:[\\/]*) | |
8506 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8507 | ;; | |
8508 | *) | |
8509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8510 | for as_dir in $PATH | |
8511 | do | |
8512 | IFS=$as_save_IFS | |
8513 | test -z "$as_dir" && as_dir=. | |
8514 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8515 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8516 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
8517 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8518 | break 2 | |
8519 | fi | |
8520 | done | |
8521 | done | |
8522 | IFS=$as_save_IFS | |
539f4a77 | 8523 | |
f11781c5 AK |
8524 | ;; |
8525 | esac | |
8526 | fi | |
8527 | LCOV=$ac_cv_path_LCOV | |
8528 | if test -n "$LCOV"; then | |
8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 | |
8530 | $as_echo "$LCOV" >&6; } | |
8531 | else | |
8532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8533 | $as_echo "no" >&6; } | |
539f4a77 ZK |
8534 | fi |
8535 | ||
bc1024f8 | 8536 | |
f11781c5 AK |
8537 | # Extract the first word of "genhtml", so it can be a program name with args. |
8538 | set dummy genhtml; ac_word=$2 | |
8539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8540 | $as_echo_n "checking for $ac_word... " >&6; } | |
8541 | if test "${ac_cv_path_GENHTML+set}" = set; then : | |
ec6a6fbe | 8542 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8543 | else |
f11781c5 AK |
8544 | case $GENHTML in |
8545 | [\\/]* | ?:[\\/]*) | |
8546 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8547 | ;; | |
8548 | *) | |
8549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8550 | for as_dir in $PATH | |
8551 | do | |
8552 | IFS=$as_save_IFS | |
8553 | test -z "$as_dir" && as_dir=. | |
8554 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8555 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8556 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
8557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8558 | break 2 | |
8559 | fi | |
8560 | done | |
8561 | done | |
8562 | IFS=$as_save_IFS | |
8a2fc586 | 8563 | |
f11781c5 AK |
8564 | ;; |
8565 | esac | |
8566 | fi | |
8567 | GENHTML=$ac_cv_path_GENHTML | |
8568 | if test -n "$GENHTML"; then | |
8569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 | |
8570 | $as_echo "$GENHTML" >&6; } | |
8571 | else | |
8572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8573 | $as_echo "no" >&6; } | |
8574 | fi | |
8a2fc586 | 8575 | |
8a2fc586 | 8576 | |
f11781c5 AK |
8577 | if test -z "$LCOV" -o -z "$GENHTML"; then |
8578 | as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5 | |
8579 | fi | |
8580 | # Extract the first word of "genpng", so it can be a program name with args. | |
8581 | set dummy genpng; ac_word=$2 | |
8582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8583 | $as_echo_n "checking for $ac_word... " >&6; } | |
8584 | if test "${ac_cv_path_GENPNG+set}" = set; then : | |
8585 | $as_echo_n "(cached) " >&6 | |
8586 | else | |
8587 | case $GENPNG in | |
8588 | [\\/]* | ?:[\\/]*) | |
8589 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
8590 | ;; | |
8591 | *) | |
8592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8593 | for as_dir in $PATH | |
8594 | do | |
8595 | IFS=$as_save_IFS | |
8596 | test -z "$as_dir" && as_dir=. | |
8597 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8598 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8599 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
8600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8601 | break 2 | |
8602 | fi | |
8603 | done | |
8604 | done | |
8605 | IFS=$as_save_IFS | |
ad6254c5 | 8606 | |
f11781c5 | 8607 | ;; |
7a197a62 | 8608 | esac |
f11781c5 AK |
8609 | fi |
8610 | GENPNG=$ac_cv_path_GENPNG | |
8611 | if test -n "$GENPNG"; then | |
8612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5 | |
8613 | $as_echo "$GENPNG" >&6; } | |
ad6254c5 | 8614 | else |
f11781c5 AK |
8615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8616 | $as_echo "no" >&6; } | |
8617 | fi | |
8618 | ||
8619 | ||
8620 | if test -n "$GENPNG"; then | |
8621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5 | |
8622 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
8623 | if $GENPNG --help > /dev/null 2>&1 ; then | |
8624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
8625 | $as_echo "ok" >&6; } | |
8626 | GENHTML="$GENHTML --frames" | |
8627 | else | |
8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 | |
8629 | $as_echo "not supported" >&6; } | |
8630 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5 | |
8631 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
8632 | GENPNG= | |
8633 | fi | |
8634 | fi | |
8635 | fi | |
ad6254c5 | 8636 | |
f11781c5 AK |
8637 | ################################################################################ |
8638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5 | |
8639 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
8640 | # Check whether --enable-testing was given. | |
8641 | if test "${enable_testing+set}" = set; then : | |
8642 | enableval=$enable_testing; TESTING=$enableval | |
8643 | else | |
8644 | TESTING=no | |
ad6254c5 | 8645 | fi |
7a197a62 | 8646 | |
f11781c5 AK |
8647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5 |
8648 | $as_echo "$TESTING" >&6; } | |
72b2cb61 | 8649 | |
f11781c5 AK |
8650 | if test "$TESTING" = yes; then |
8651 | # Extract the first word of "ruby1.9", so it can be a program name with args. | |
8652 | set dummy ruby1.9; ac_word=$2 | |
8653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8654 | $as_echo_n "checking for $ac_word... " >&6; } | |
8655 | if test "${ac_cv_path_RUBY19+set}" = set; then : | |
8656 | $as_echo_n "(cached) " >&6 | |
8657 | else | |
8658 | case $RUBY19 in | |
8659 | [\\/]* | ?:[\\/]*) | |
8660 | ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path. | |
8661 | ;; | |
8662 | *) | |
8663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8664 | for as_dir in $PATH | |
8665 | do | |
8666 | IFS=$as_save_IFS | |
8667 | test -z "$as_dir" && as_dir=. | |
8668 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8670 | ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext" | |
8671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8672 | break 2 | |
8673 | fi | |
bc1024f8 | 8674 | done |
f11781c5 AK |
8675 | done |
8676 | IFS=$as_save_IFS | |
ad6254c5 | 8677 | |
f11781c5 AK |
8678 | ;; |
8679 | esac | |
ad6254c5 | 8680 | fi |
f11781c5 AK |
8681 | RUBY19=$ac_cv_path_RUBY19 |
8682 | if test -n "$RUBY19"; then | |
8683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5 | |
8684 | $as_echo "$RUBY19" >&6; } | |
ad6254c5 | 8685 | else |
f11781c5 AK |
8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8687 | $as_echo "no" >&6; } | |
7a197a62 AK |
8688 | fi |
8689 | ||
ad6254c5 | 8690 | |
f11781c5 AK |
8691 | # Extract the first word of "valgrind", so it can be a program name with args. |
8692 | set dummy valgrind; ac_word=$2 | |
8693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
ec6a6fbe | 8694 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 8695 | if test "${ac_cv_path_VALGRIND+set}" = set; then : |
ec6a6fbe | 8696 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8697 | else |
f11781c5 | 8698 | case $VALGRIND in |
ad6254c5 | 8699 | [\\/]* | ?:[\\/]*) |
f11781c5 | 8700 | ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path. |
ad6254c5 AK |
8701 | ;; |
8702 | *) | |
8703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8704 | for as_dir in $PATH | |
8705 | do | |
8706 | IFS=$as_save_IFS | |
8707 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 8708 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 8709 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
8710 | ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext" |
8711 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
ad6254c5 AK |
8712 | break 2 |
8713 | fi | |
8714 | done | |
f11781c5 | 8715 | done |
7a197a62 | 8716 | IFS=$as_save_IFS |
ad6254c5 AK |
8717 | |
8718 | ;; | |
8719 | esac | |
8720 | fi | |
f11781c5 AK |
8721 | VALGRIND=$ac_cv_path_VALGRIND |
8722 | if test -n "$VALGRIND"; then | |
8723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 | |
8724 | $as_echo "$VALGRIND" >&6; } | |
ad6254c5 | 8725 | else |
f11781c5 | 8726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 8727 | $as_echo "no" >&6; } |
ad6254c5 AK |
8728 | fi |
8729 | ||
7a197a62 | 8730 | |
f11781c5 AK |
8731 | if test -z "$RUBY19" -o -z "$VALGRIND"; then |
8732 | as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5 | |
8733 | fi | |
8734 | fi | |
ad6254c5 | 8735 | |
f11781c5 AK |
8736 | ################################################################################ |
8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5 | |
8738 | $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; } | |
8739 | # Check whether --enable-valgrind_pool was given. | |
8740 | if test "${enable_valgrind_pool+set}" = set; then : | |
8741 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval | |
8742 | else | |
8743 | VALGRIND_POOL=no | |
8744 | fi | |
8745 | ||
8746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5 | |
8747 | $as_echo "$VALGRIND_POOL" >&6; } | |
8748 | ||
8749 | if test "$VALGRIND_POOL" = yes; then | |
8750 | for ac_header in valgrind/memcheck.h | |
8751 | do : | |
8752 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" | |
8753 | if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then : | |
8754 | cat >>confdefs.h <<_ACEOF | |
8755 | #define HAVE_VALGRIND_MEMCHECK_H 1 | |
8756 | _ACEOF | |
ad6254c5 | 8757 | |
ad6254c5 | 8758 | else |
f11781c5 | 8759 | as_fn_error $? "bailing out" "$LINENO" 5 |
7a197a62 AK |
8760 | fi |
8761 | ||
f11781c5 AK |
8762 | done |
8763 | ||
8764 | ||
8765 | $as_echo "#define VALGRIND_POOL 1" >>confdefs.h | |
8766 | ||
ad6254c5 AK |
8767 | fi |
8768 | ||
8769 | ################################################################################ | |
f11781c5 AK |
8770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5 |
8771 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
8772 | # Check whether --enable-devmapper was given. | |
8773 | if test "${enable_devmapper+set}" = set; then : | |
8774 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
7a197a62 AK |
8775 | fi |
8776 | ||
f11781c5 AK |
8777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5 |
8778 | $as_echo "$DEVMAPPER" >&6; } | |
ad6254c5 | 8779 | |
f11781c5 | 8780 | if test x$DEVMAPPER = xyes; then |
ad6254c5 | 8781 | |
f11781c5 AK |
8782 | $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h |
8783 | ||
8784 | fi | |
8785 | ||
8786 | ################################################################################ | |
8787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5 | |
8788 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
8789 | # Check whether --enable-udev_sync was given. | |
8790 | if test "${enable_udev_sync+set}" = set; then : | |
8791 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
ad6254c5 | 8792 | else |
f11781c5 | 8793 | UDEV_SYNC=no |
7a197a62 | 8794 | fi |
ad6254c5 | 8795 | |
f11781c5 AK |
8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5 |
8797 | $as_echo "$UDEV_SYNC" >&6; } | |
33f732c5 | 8798 | |
f11781c5 | 8799 | if test x$UDEV_SYNC = xyes; then |
86ba564a AK |
8800 | if test x$PKGCONFIG_INIT != x1; then |
8801 | pkg_config_init | |
8802 | fi | |
7a197a62 | 8803 | |
d93275eb PR |
8804 | pkg_failed=no |
8805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 | |
8806 | $as_echo_n "checking for UDEV... " >&6; } | |
8807 | ||
8808 | if test -n "$UDEV_CFLAGS"; then | |
8809 | pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" | |
8810 | elif test -n "$PKG_CONFIG"; then | |
8811 | if test -n "$PKG_CONFIG" && \ | |
8812 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8813 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8814 | ac_status=$? | |
8815 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8816 | test $ac_status = 0; }; then | |
8817 | pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null` | |
68f2de6d | 8818 | else |
d93275eb | 8819 | pkg_failed=yes |
f11781c5 | 8820 | fi |
d93275eb PR |
8821 | else |
8822 | pkg_failed=untried | |
f11781c5 | 8823 | fi |
d93275eb PR |
8824 | if test -n "$UDEV_LIBS"; then |
8825 | pkg_cv_UDEV_LIBS="$UDEV_LIBS" | |
8826 | elif test -n "$PKG_CONFIG"; then | |
8827 | if test -n "$PKG_CONFIG" && \ | |
8828 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8829 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8830 | ac_status=$? | |
8831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8832 | test $ac_status = 0; }; then | |
8833 | pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null` | |
f11781c5 | 8834 | else |
d93275eb | 8835 | pkg_failed=yes |
68f2de6d | 8836 | fi |
d93275eb PR |
8837 | else |
8838 | pkg_failed=untried | |
8839 | fi | |
8840 | ||
8841 | ||
8842 | ||
8843 | if test $pkg_failed = yes; then | |
8844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8845 | $as_echo "no" >&6; } | |
8846 | ||
8847 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8848 | _pkg_short_errors_supported=yes | |
8849 | else | |
8850 | _pkg_short_errors_supported=no | |
8851 | fi | |
8852 | if test $_pkg_short_errors_supported = yes; then | |
8853 | UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1` | |
8854 | else | |
8855 | UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1` | |
8856 | fi | |
8857 | # Put the nasty error message in config.log where it belongs | |
8858 | echo "$UDEV_PKG_ERRORS" >&5 | |
8859 | ||
8860 | as_fn_error $? "Package requirements (libudev >= 143) were not met: | |
8861 | ||
8862 | $UDEV_PKG_ERRORS | |
8863 | ||
8864 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8865 | installed software in a non-standard prefix. | |
8866 | ||
8867 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8868 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8869 | See the pkg-config man page for more details." "$LINENO" 5 | |
68f2de6d | 8870 | |
d93275eb PR |
8871 | elif test $pkg_failed = untried; then |
8872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8873 | $as_echo "no" >&6; } | |
8874 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8875 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8876 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8877 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8878 | path to pkg-config. | |
8879 | ||
8880 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8881 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8882 | See the pkg-config man page for more details. | |
8883 | ||
8884 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8885 | See \`config.log' for more details" "$LINENO" 5; } | |
8886 | ||
8887 | else | |
8888 | UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS | |
8889 | UDEV_LIBS=$pkg_cv_UDEV_LIBS | |
8890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8891 | $as_echo "yes" >&6; } | |
8892 | UDEV_PC="libudev" | |
8893 | fi | |
68f2de6d | 8894 | |
f11781c5 | 8895 | $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h |
68f2de6d | 8896 | |
f11781c5 AK |
8897 | fi |
8898 | ||
8899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
8900 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
8901 | # Check whether --enable-udev_rules was given. | |
8902 | if test "${enable_udev_rules+set}" = set; then : | |
8903 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
68f2de6d | 8904 | else |
f11781c5 | 8905 | UDEV_RULES=$UDEV_SYNC |
68f2de6d AK |
8906 | fi |
8907 | ||
f11781c5 AK |
8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5 |
8909 | $as_echo "$UDEV_RULES" >&6; } | |
68f2de6d | 8910 | |
a5f46f6a | 8911 | ################################################################################ |
f11781c5 AK |
8912 | # Check whether --enable-compat was given. |
8913 | if test "${enable_compat+set}" = set; then : | |
8914 | enableval=$enable_compat; DM_COMPAT=$enableval | |
8915 | else | |
8916 | DM_COMPAT=no | |
8917 | fi | |
a5f46f6a | 8918 | |
f11781c5 AK |
8919 | |
8920 | ################################################################################ | |
8921 | # Check whether --enable-units-compat was given. | |
8922 | if test "${enable_units_compat+set}" = set; then : | |
8923 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
a5f46f6a | 8924 | else |
f11781c5 | 8925 | UNITS_COMPAT=no |
a5f46f6a AK |
8926 | fi |
8927 | ||
8928 | ||
f11781c5 | 8929 | if test x$UNITS_COMPAT = xyes; then |
78ce7acc | 8930 | |
f11781c5 AK |
8931 | $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h |
8932 | ||
8933 | fi | |
8934 | ||
8935 | ################################################################################ | |
8936 | # Check whether --enable-ioctl was given. | |
8937 | if test "${enable_ioctl+set}" = set; then : | |
8938 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
78ce7acc AK |
8939 | fi |
8940 | ||
a5f46f6a | 8941 | |
ad6254c5 | 8942 | ################################################################################ |
f11781c5 AK |
8943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5 |
8944 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
8945 | # Check whether --enable-o_direct was given. | |
8946 | if test "${enable_o_direct+set}" = set; then : | |
8947 | enableval=$enable_o_direct; ODIRECT=$enableval | |
8948 | fi | |
ad6254c5 | 8949 | |
f11781c5 AK |
8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5 |
8951 | $as_echo "$ODIRECT" >&6; } | |
8952 | ||
8953 | if test x$ODIRECT = xyes; then | |
8954 | ||
8955 | $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h | |
ad6254c5 | 8956 | |
ad6254c5 | 8957 | fi |
ad6254c5 | 8958 | |
f11781c5 AK |
8959 | ################################################################################ |
8960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5 | |
8961 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
8962 | # Check whether --enable-applib was given. | |
8963 | if test "${enable_applib+set}" = set; then : | |
8964 | enableval=$enable_applib; APPLIB=$enableval | |
8965 | else | |
8966 | APPLIB=no | |
ad6254c5 | 8967 | fi |
7a197a62 | 8968 | |
f11781c5 AK |
8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5 |
8970 | $as_echo "$APPLIB" >&6; } | |
ad6254c5 | 8971 | |
f11781c5 AK |
8972 | test x$APPLIB = xyes \ |
8973 | && LVM2APP_LIB=-llvm2app \ | |
8974 | || LVM2APP_LIB= | |
ad6254c5 | 8975 | |
f11781c5 AK |
8976 | ################################################################################ |
8977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5 | |
8978 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
8979 | # Check whether --enable-cmdlib was given. | |
8980 | if test "${enable_cmdlib+set}" = set; then : | |
8981 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
8982 | else | |
8983 | CMDLIB=no | |
ad6254c5 | 8984 | fi |
7a197a62 | 8985 | |
f11781c5 AK |
8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5 |
8987 | $as_echo "$CMDLIB" >&6; } | |
7a197a62 | 8988 | |
f11781c5 AK |
8989 | test x$CMDLIB = xyes \ |
8990 | && LVM2CMD_LIB=-llvm2cmd \ | |
8991 | || LVM2CMD_LIB= | |
8992 | ||
8993 | ################################################################################ | |
8994 | # Check whether --enable-pkgconfig was given. | |
8995 | if test "${enable_pkgconfig+set}" = set; then : | |
8996 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
ad6254c5 | 8997 | else |
f11781c5 | 8998 | PKGCONFIG=no |
ad6254c5 | 8999 | fi |
ad6254c5 | 9000 | |
ad6254c5 | 9001 | |
f11781c5 AK |
9002 | ################################################################################ |
9003 | # Check whether --enable-write_install was given. | |
9004 | if test "${enable_write_install+set}" = set; then : | |
9005 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
ad6254c5 | 9006 | else |
f11781c5 | 9007 | WRITE_INSTALL=no |
ad6254c5 AK |
9008 | fi |
9009 | ||
ad6254c5 | 9010 | |
f11781c5 AK |
9011 | ################################################################################ |
9012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5 | |
9013 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
9014 | # Check whether --enable-fsadm was given. | |
9015 | if test "${enable_fsadm+set}" = set; then : | |
9016 | enableval=$enable_fsadm; FSADM=$enableval | |
ad6254c5 AK |
9017 | fi |
9018 | ||
f11781c5 AK |
9019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5 |
9020 | $as_echo "$FSADM" >&6; } | |
ad6254c5 | 9021 | |
f11781c5 AK |
9022 | ################################################################################ |
9023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5 | |
9024 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
9025 | # Check whether --enable-dmeventd was given. | |
9026 | if test "${enable_dmeventd+set}" = set; then : | |
9027 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
9028 | fi | |
ad6254c5 | 9029 | |
f11781c5 AK |
9030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5 |
9031 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 9032 | |
f11781c5 | 9033 | BUILD_DMEVENTD=$DMEVENTD |
ad6254c5 | 9034 | |
f11781c5 AK |
9035 | if test x$DMEVENTD = xyes; then |
9036 | if test x$MIRRORS != xinternal; then | |
9037 | as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal | |
9038 | " "$LINENO" 5 | |
9039 | fi | |
9040 | if test x$CMDLIB = xno; then | |
9041 | as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well | |
9042 | " "$LINENO" 5 | |
9043 | fi | |
9044 | fi | |
ad6254c5 | 9045 | |
f11781c5 | 9046 | if test x$DMEVENTD = xyes; then |
ad6254c5 | 9047 | |
f11781c5 | 9048 | $as_echo "#define DMEVENTD 1" >>confdefs.h |
ad6254c5 | 9049 | |
f11781c5 | 9050 | fi |
ad6254c5 | 9051 | |
f11781c5 | 9052 | ################################################################################ |
ad6254c5 | 9053 | |
f11781c5 AK |
9054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5 |
9055 | $as_echo_n "checking for getline in -lc... " >&6; } | |
9056 | if test "${ac_cv_lib_c_getline+set}" = set; then : | |
ec6a6fbe | 9057 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9058 | else |
f11781c5 AK |
9059 | ac_check_lib_save_LIBS=$LIBS |
9060 | LIBS="-lc $LIBS" | |
9061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9062 | /* end confdefs.h. */ |
f11781c5 AK |
9063 | |
9064 | /* Override any GCC internal prototype to avoid an error. | |
9065 | Use char because int might match the return type of a GCC | |
9066 | builtin and then its argument prototype would still apply. */ | |
9067 | #ifdef __cplusplus | |
9068 | extern "C" | |
9069 | #endif | |
9070 | char getline (); | |
9071 | int | |
9072 | main () | |
9073 | { | |
9074 | return getline (); | |
9075 | ; | |
9076 | return 0; | |
9077 | } | |
ad6254c5 | 9078 | _ACEOF |
f11781c5 AK |
9079 | if ac_fn_c_try_link "$LINENO"; then : |
9080 | ac_cv_lib_c_getline=yes | |
ad6254c5 | 9081 | else |
f11781c5 AK |
9082 | ac_cv_lib_c_getline=no |
9083 | fi | |
9084 | rm -f core conftest.err conftest.$ac_objext \ | |
9085 | conftest$ac_exeext conftest.$ac_ext | |
9086 | LIBS=$ac_check_lib_save_LIBS | |
9087 | fi | |
9088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5 | |
9089 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
9090 | if test "x$ac_cv_lib_c_getline" = x""yes; then : | |
9091 | ||
9092 | $as_echo "#define HAVE_GETLINE 1" >>confdefs.h | |
ad6254c5 | 9093 | |
ad6254c5 | 9094 | fi |
7a197a62 | 9095 | |
ad6254c5 | 9096 | |
f11781c5 AK |
9097 | ################################################################################ |
9098 | ||
9099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5 | |
9100 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
9101 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then : | |
9102 | $as_echo_n "(cached) " >&6 | |
9103 | else | |
9104 | ac_check_lib_save_LIBS=$LIBS | |
9105 | LIBS="-lc $LIBS" | |
9106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9107 | /* end confdefs.h. */ |
f11781c5 AK |
9108 | |
9109 | /* Override any GCC internal prototype to avoid an error. | |
9110 | Use char because int might match the return type of a GCC | |
9111 | builtin and then its argument prototype would still apply. */ | |
9112 | #ifdef __cplusplus | |
9113 | extern "C" | |
9114 | #endif | |
9115 | char canonicalize_file_name (); | |
9116 | int | |
9117 | main () | |
9118 | { | |
9119 | return canonicalize_file_name (); | |
9120 | ; | |
9121 | return 0; | |
9122 | } | |
ad6254c5 | 9123 | _ACEOF |
f11781c5 AK |
9124 | if ac_fn_c_try_link "$LINENO"; then : |
9125 | ac_cv_lib_c_canonicalize_file_name=yes | |
ad6254c5 | 9126 | else |
f11781c5 AK |
9127 | ac_cv_lib_c_canonicalize_file_name=no |
9128 | fi | |
9129 | rm -f core conftest.err conftest.$ac_objext \ | |
9130 | conftest$ac_exeext conftest.$ac_ext | |
9131 | LIBS=$ac_check_lib_save_LIBS | |
9132 | fi | |
9133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5 | |
9134 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9135 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then : | |
9136 | ||
9137 | $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h | |
ad6254c5 | 9138 | |
ad6254c5 | 9139 | fi |
7a197a62 | 9140 | |
ad6254c5 | 9141 | |
f11781c5 AK |
9142 | ################################################################################ |
9143 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9144 | then exec_prefix=""; | |
9145 | fi; | |
7a197a62 | 9146 | |
f11781c5 AK |
9147 | ################################################################################ |
9148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9149 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9150 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
ec6a6fbe | 9151 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9152 | else |
f11781c5 AK |
9153 | ac_check_lib_save_LIBS=$LIBS |
9154 | LIBS="-ldl $LIBS" | |
9155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9156 | /* end confdefs.h. */ | |
ad6254c5 | 9157 | |
f11781c5 AK |
9158 | /* Override any GCC internal prototype to avoid an error. |
9159 | Use char because int might match the return type of a GCC | |
9160 | builtin and then its argument prototype would still apply. */ | |
9161 | #ifdef __cplusplus | |
9162 | extern "C" | |
9163 | #endif | |
9164 | char dlopen (); | |
9165 | int | |
9166 | main () | |
9167 | { | |
9168 | return dlopen (); | |
9169 | ; | |
9170 | return 0; | |
9171 | } | |
ad6254c5 | 9172 | _ACEOF |
f11781c5 AK |
9173 | if ac_fn_c_try_link "$LINENO"; then : |
9174 | ac_cv_lib_dl_dlopen=yes | |
ad6254c5 | 9175 | else |
f11781c5 | 9176 | ac_cv_lib_dl_dlopen=no |
795ca3e5 | 9177 | fi |
f11781c5 AK |
9178 | rm -f core conftest.err conftest.$ac_objext \ |
9179 | conftest$ac_exeext conftest.$ac_ext | |
9180 | LIBS=$ac_check_lib_save_LIBS | |
9181 | fi | |
9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9183 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9184 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
795ca3e5 | 9185 | |
ad6254c5 | 9186 | |
f11781c5 | 9187 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
ad6254c5 | 9188 | |
f11781c5 AK |
9189 | DL_LIBS="-ldl" |
9190 | HAVE_LIBDL=yes | |
9191 | else | |
795ca3e5 | 9192 | |
f11781c5 AK |
9193 | DL_LIBS= |
9194 | HAVE_LIBDL=no | |
9195 | fi | |
8106cdd5 | 9196 | |
ad6254c5 | 9197 | |
f11781c5 AK |
9198 | ################################################################################ |
9199 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9200 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
cac52ca4 | 9201 | -o "x$RAID" = xshared \ |
f11781c5 AK |
9202 | \) -a "x$STATIC_LINK" = xyes ]; |
9203 | then as_fn_error $? "Features cannot be 'shared' when building statically | |
9204 | " "$LINENO" 5 | |
9205 | fi | |
ad6254c5 | 9206 | |
f11781c5 AK |
9207 | ################################################################################ |
9208 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
9209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 | |
9210 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
9211 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then : | |
ec6a6fbe | 9212 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9213 | else |
f11781c5 AK |
9214 | ac_check_lib_save_LIBS=$LIBS |
9215 | LIBS="-lpthread $LIBS" | |
9216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9217 | /* end confdefs.h. */ |
8a2fc586 | 9218 | |
f11781c5 AK |
9219 | /* Override any GCC internal prototype to avoid an error. |
9220 | Use char because int might match the return type of a GCC | |
9221 | builtin and then its argument prototype would still apply. */ | |
9222 | #ifdef __cplusplus | |
9223 | extern "C" | |
ad6254c5 | 9224 | #endif |
f11781c5 AK |
9225 | char pthread_mutex_lock (); |
9226 | int | |
9227 | main () | |
9228 | { | |
9229 | return pthread_mutex_lock (); | |
9230 | ; | |
9231 | return 0; | |
9232 | } | |
9233 | _ACEOF | |
9234 | if ac_fn_c_try_link "$LINENO"; then : | |
9235 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
9236 | else | |
9237 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
9238 | fi | |
9239 | rm -f core conftest.err conftest.$ac_objext \ | |
9240 | conftest$ac_exeext conftest.$ac_ext | |
9241 | LIBS=$ac_check_lib_save_LIBS | |
9242 | fi | |
9243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
9244 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
9245 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then : | |
9246 | PTHREAD_LIBS="-lpthread" | |
9247 | else | |
9248 | hard_bailout | |
9249 | fi | |
9250 | ||
9251 | fi | |
9252 | ||
9253 | ################################################################################ | |
9254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5 | |
9255 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
9256 | # Check whether --enable-selinux was given. | |
9257 | if test "${enable_selinux+set}" = set; then : | |
9258 | enableval=$enable_selinux; SELINUX=$enableval | |
9259 | fi | |
9260 | ||
9261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5 | |
9262 | $as_echo "$SELINUX" >&6; } | |
8a2fc586 | 9263 | |
f11781c5 AK |
9264 | ################################################################################ |
9265 | if test x$SELINUX = xyes; then | |
9266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5 | |
9267 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
9268 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then : | |
9269 | $as_echo_n "(cached) " >&6 | |
9270 | else | |
9271 | ac_check_lib_save_LIBS=$LIBS | |
9272 | LIBS="-lsepol $LIBS" | |
9273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9274 | /* end confdefs.h. */ | |
8a2fc586 | 9275 | |
7a197a62 AK |
9276 | /* Override any GCC internal prototype to avoid an error. |
9277 | Use char because int might match the return type of a GCC | |
9278 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9279 | #ifdef __cplusplus |
9280 | extern "C" | |
ad6254c5 | 9281 | #endif |
f11781c5 | 9282 | char sepol_check_context (); |
ad6254c5 AK |
9283 | int |
9284 | main () | |
9285 | { | |
f11781c5 | 9286 | return sepol_check_context (); |
ad6254c5 AK |
9287 | ; |
9288 | return 0; | |
9289 | } | |
9290 | _ACEOF | |
f11781c5 AK |
9291 | if ac_fn_c_try_link "$LINENO"; then : |
9292 | ac_cv_lib_sepol_sepol_check_context=yes | |
795ca3e5 | 9293 | else |
f11781c5 AK |
9294 | ac_cv_lib_sepol_sepol_check_context=no |
9295 | fi | |
9296 | rm -f core conftest.err conftest.$ac_objext \ | |
9297 | conftest$ac_exeext conftest.$ac_ext | |
9298 | LIBS=$ac_check_lib_save_LIBS | |
80992638 | 9299 | fi |
f11781c5 AK |
9300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9301 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
9302 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then : | |
7a197a62 | 9303 | |
80992638 | 9304 | |
f11781c5 AK |
9305 | $as_echo "#define HAVE_SEPOL 1" >>confdefs.h |
9306 | ||
9307 | SELINUX_LIBS="-lsepol" | |
8106cdd5 | 9308 | fi |
795ca3e5 | 9309 | |
f11781c5 AK |
9310 | |
9311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 | |
9312 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
9313 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then : | |
ec6a6fbe | 9314 | $as_echo_n "(cached) " >&6 |
25fbec5b | 9315 | else |
f11781c5 AK |
9316 | ac_check_lib_save_LIBS=$LIBS |
9317 | LIBS="-lselinux $LIBS" | |
9318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25fbec5b | 9319 | /* end confdefs.h. */ |
80992638 | 9320 | |
7a197a62 AK |
9321 | /* Override any GCC internal prototype to avoid an error. |
9322 | Use char because int might match the return type of a GCC | |
ad6254c5 | 9323 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
9324 | #ifdef __cplusplus |
9325 | extern "C" | |
9326 | #endif | |
f11781c5 | 9327 | char is_selinux_enabled (); |
ad6254c5 AK |
9328 | int |
9329 | main () | |
9330 | { | |
f11781c5 | 9331 | return is_selinux_enabled (); |
ad6254c5 AK |
9332 | ; |
9333 | return 0; | |
9334 | } | |
9335 | _ACEOF | |
f11781c5 AK |
9336 | if ac_fn_c_try_link "$LINENO"; then : |
9337 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
25fbec5b | 9338 | else |
f11781c5 | 9339 | ac_cv_lib_selinux_is_selinux_enabled=no |
25fbec5b | 9340 | fi |
f11781c5 AK |
9341 | rm -f core conftest.err conftest.$ac_objext \ |
9342 | conftest$ac_exeext conftest.$ac_ext | |
9343 | LIBS=$ac_check_lib_save_LIBS | |
25fbec5b | 9344 | fi |
f11781c5 AK |
9345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9346 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
9347 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then : | |
25fbec5b | 9348 | |
f11781c5 AK |
9349 | for ac_header in selinux/selinux.h |
9350 | do : | |
9351 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | |
9352 | if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then : | |
9353 | cat >>confdefs.h <<_ACEOF | |
9354 | #define HAVE_SELINUX_SELINUX_H 1 | |
ad6254c5 | 9355 | _ACEOF |
795ca3e5 | 9356 | |
25fbec5b | 9357 | else |
f11781c5 | 9358 | hard_bailout |
795ca3e5 | 9359 | fi |
795ca3e5 | 9360 | |
f11781c5 | 9361 | done |
795ca3e5 | 9362 | |
f11781c5 AK |
9363 | for ac_header in selinux/label.h |
9364 | do : | |
9365 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default" | |
9366 | if test "x$ac_cv_header_selinux_label_h" = x""yes; then : | |
9367 | cat >>confdefs.h <<_ACEOF | |
9368 | #define HAVE_SELINUX_LABEL_H 1 | |
ad6254c5 | 9369 | _ACEOF |
ad6254c5 | 9370 | |
ad6254c5 | 9371 | fi |
7a197a62 | 9372 | |
f11781c5 | 9373 | done |
7a197a62 | 9374 | |
ad6254c5 | 9375 | |
f11781c5 | 9376 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h |
7a197a62 | 9377 | |
f11781c5 AK |
9378 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
9379 | SELINUX_PC="libselinux" | |
9380 | HAVE_SELINUX=yes | |
ad6254c5 | 9381 | else |
8106cdd5 | 9382 | |
f11781c5 AK |
9383 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5 |
9384 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
9385 | SELINUX_LIBS= | |
9386 | SELINUX_PC= | |
9387 | HAVE_SELINUX=no | |
795ca3e5 | 9388 | fi |
ad6254c5 | 9389 | |
795ca3e5 AK |
9390 | fi |
9391 | ||
f11781c5 AK |
9392 | ################################################################################ |
9393 | if test x$REALTIME = xyes; then | |
9394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
9395 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
9396 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
ec6a6fbe | 9397 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 9398 | else |
f11781c5 AK |
9399 | ac_check_lib_save_LIBS=$LIBS |
9400 | LIBS="-lrt $LIBS" | |
9401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9402 | /* end confdefs.h. */ |
ad6254c5 | 9403 | |
f11781c5 AK |
9404 | /* Override any GCC internal prototype to avoid an error. |
9405 | Use char because int might match the return type of a GCC | |
9406 | builtin and then its argument prototype would still apply. */ | |
9407 | #ifdef __cplusplus | |
9408 | extern "C" | |
9409 | #endif | |
9410 | char clock_gettime (); | |
ad6254c5 AK |
9411 | int |
9412 | main () | |
9413 | { | |
f11781c5 | 9414 | return clock_gettime (); |
ad6254c5 AK |
9415 | ; |
9416 | return 0; | |
9417 | } | |
9418 | _ACEOF | |
f11781c5 AK |
9419 | if ac_fn_c_try_link "$LINENO"; then : |
9420 | ac_cv_lib_rt_clock_gettime=yes | |
ad6254c5 | 9421 | else |
f11781c5 | 9422 | ac_cv_lib_rt_clock_gettime=no |
ad6254c5 | 9423 | fi |
f11781c5 AK |
9424 | rm -f core conftest.err conftest.$ac_objext \ |
9425 | conftest$ac_exeext conftest.$ac_ext | |
9426 | LIBS=$ac_check_lib_save_LIBS | |
26e7f2e0 | 9427 | fi |
f11781c5 AK |
9428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9429 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
9430 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
9431 | HAVE_REALTIME=yes | |
9432 | else | |
9433 | HAVE_REALTIME=no | |
8106cdd5 | 9434 | fi |
ad6254c5 | 9435 | |
ad6254c5 | 9436 | |
f11781c5 | 9437 | if test x$HAVE_REALTIME = xyes; then |
7a197a62 | 9438 | |
f11781c5 | 9439 | $as_echo "#define HAVE_REALTIME 1" >>confdefs.h |
ad6254c5 | 9440 | |
f11781c5 AK |
9441 | LIBS="-lrt $LIBS" |
9442 | else | |
9443 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5 | |
9444 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
9445 | fi | |
9446 | fi | |
9447 | ||
9448 | ################################################################################ | |
9449 | for ac_header in getopt.h | |
9450 | do : | |
9451 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
9452 | if test "x$ac_cv_header_getopt_h" = x""yes; then : | |
9453 | cat >>confdefs.h <<_ACEOF | |
9454 | #define HAVE_GETOPT_H 1 | |
9455 | _ACEOF | |
9456 | ||
9457 | $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h | |
ad6254c5 | 9458 | |
ad6254c5 | 9459 | fi |
7a197a62 | 9460 | |
f11781c5 | 9461 | done |
ad6254c5 | 9462 | |
7a197a62 | 9463 | |
f11781c5 AK |
9464 | ################################################################################ |
9465 | if test x$READLINE != xno; then | |
9466 | lvm_saved_libs=$LIBS | |
9467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
9468 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
9469 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ec6a6fbe | 9470 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9471 | else |
f11781c5 AK |
9472 | ac_func_search_save_LIBS=$LIBS |
9473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9474 | /* end confdefs.h. */ | |
ad6254c5 | 9475 | |
f11781c5 AK |
9476 | /* Override any GCC internal prototype to avoid an error. |
9477 | Use char because int might match the return type of a GCC | |
9478 | builtin and then its argument prototype would still apply. */ | |
9479 | #ifdef __cplusplus | |
9480 | extern "C" | |
9481 | #endif | |
9482 | char tgetent (); | |
9483 | int | |
9484 | main () | |
9485 | { | |
9486 | return tgetent (); | |
9487 | ; | |
9488 | return 0; | |
9489 | } | |
ad6254c5 | 9490 | _ACEOF |
f11781c5 AK |
9491 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
9492 | if test -z "$ac_lib"; then | |
9493 | ac_res="none required" | |
9494 | else | |
9495 | ac_res=-l$ac_lib | |
9496 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9497 | fi | |
9498 | if ac_fn_c_try_link "$LINENO"; then : | |
9499 | ac_cv_search_tgetent=$ac_res | |
9500 | fi | |
9501 | rm -f core conftest.err conftest.$ac_objext \ | |
9502 | conftest$ac_exeext | |
9503 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
9504 | break | |
9505 | fi | |
9506 | done | |
9507 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ad6254c5 | 9508 | |
80992638 | 9509 | else |
f11781c5 | 9510 | ac_cv_search_tgetent=no |
b896caa1 | 9511 | fi |
f11781c5 AK |
9512 | rm conftest.$ac_ext |
9513 | LIBS=$ac_func_search_save_LIBS | |
9514 | fi | |
9515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
9516 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
9517 | ac_res=$ac_cv_search_tgetent | |
9518 | if test "$ac_res" != no; then : | |
9519 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9520 | READLINE_LIBS=$ac_cv_search_tgetent | |
9521 | else | |
ad6254c5 | 9522 | |
f11781c5 AK |
9523 | if test "$READLINE" = yes; then |
9524 | as_fn_error $? "termcap could not be found which is required for the | |
9525 | --enable-readline option (which is enabled by default). Either disable readline | |
9526 | support with --disable-readline or download and install termcap from: | |
9527 | ftp.gnu.org/gnu/termcap | |
9528 | Note: if you are using precompiled packages you will also need the development | |
9529 | package as well (which may be called termcap-devel or something similar). | |
9530 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9531 | not found either - but you could try installing that as well." "$LINENO" 5 | |
9532 | fi | |
9533 | fi | |
b896caa1 | 9534 | |
f11781c5 AK |
9535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 |
9536 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
9537 | if test "${ac_cv_lib_readline_readline+set}" = set; then : | |
ec6a6fbe | 9538 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9539 | else |
f11781c5 AK |
9540 | ac_check_lib_save_LIBS=$LIBS |
9541 | LIBS="-lreadline $LIBS" | |
9542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9543 | /* end confdefs.h. */ |
8a2fc586 | 9544 | |
f11781c5 AK |
9545 | /* Override any GCC internal prototype to avoid an error. |
9546 | Use char because int might match the return type of a GCC | |
9547 | builtin and then its argument prototype would still apply. */ | |
9548 | #ifdef __cplusplus | |
9549 | extern "C" | |
ad6254c5 | 9550 | #endif |
f11781c5 AK |
9551 | char readline (); |
9552 | int | |
9553 | main () | |
9554 | { | |
9555 | return readline (); | |
9556 | ; | |
9557 | return 0; | |
9558 | } | |
9559 | _ACEOF | |
9560 | if ac_fn_c_try_link "$LINENO"; then : | |
9561 | ac_cv_lib_readline_readline=yes | |
9562 | else | |
9563 | ac_cv_lib_readline_readline=no | |
9564 | fi | |
9565 | rm -f core conftest.err conftest.$ac_objext \ | |
9566 | conftest$ac_exeext conftest.$ac_ext | |
9567 | LIBS=$ac_check_lib_save_LIBS | |
9568 | fi | |
9569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
9570 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
9571 | if test "x$ac_cv_lib_readline_readline" = x""yes; then : | |
9572 | ||
8a2fc586 | 9573 | |
f11781c5 AK |
9574 | $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h |
9575 | ||
9576 | LIBS=$lvm_saved_libs | |
9577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5 | |
9578 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
9579 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then : | |
9580 | $as_echo_n "(cached) " >&6 | |
9581 | else | |
9582 | ac_check_lib_save_LIBS=$LIBS | |
9583 | LIBS="-lreadline $LIBS" | |
9584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9585 | /* end confdefs.h. */ | |
8a2fc586 | 9586 | |
7a197a62 AK |
9587 | /* Override any GCC internal prototype to avoid an error. |
9588 | Use char because int might match the return type of a GCC | |
9589 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9590 | #ifdef __cplusplus |
9591 | extern "C" | |
ad6254c5 | 9592 | #endif |
f11781c5 | 9593 | char rl_line_buffer (); |
ad6254c5 AK |
9594 | int |
9595 | main () | |
9596 | { | |
f11781c5 | 9597 | return rl_line_buffer (); |
ad6254c5 AK |
9598 | ; |
9599 | return 0; | |
9600 | } | |
9601 | _ACEOF | |
f11781c5 AK |
9602 | if ac_fn_c_try_link "$LINENO"; then : |
9603 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 9604 | else |
f11781c5 AK |
9605 | ac_cv_lib_readline_rl_line_buffer=no |
9606 | fi | |
9607 | rm -f core conftest.err conftest.$ac_objext \ | |
9608 | conftest$ac_exeext conftest.$ac_ext | |
9609 | LIBS=$ac_check_lib_save_LIBS | |
9610 | fi | |
9611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
9612 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
9613 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then : | |
9614 | READLINE_LIBS="-lreadline" | |
9615 | else | |
9616 | ||
9617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
9618 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
9619 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
ad6254c5 | 9620 | |
ad6254c5 | 9621 | fi |
7a197a62 | 9622 | |
f11781c5 AK |
9623 | else |
9624 | ||
9625 | READLINE_LIBS= | |
9626 | if test "$READLINE" = yes; then | |
9627 | as_fn_error $? "GNU Readline could not be found which is required for the | |
9628 | --enable-readline option (which is enabled by default). Either disable readline | |
9629 | support with --disable-readline or download and install readline from: | |
9630 | ftp.gnu.org/gnu/readline | |
9631 | Note: if you are using precompiled packages you will also need the development | |
9632 | package as well (which may be called readline-devel or something similar)." "$LINENO" 5 | |
9633 | fi | |
ad6254c5 | 9634 | fi |
f11781c5 AK |
9635 | |
9636 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
9637 | for ac_func in rl_completion_matches | |
9638 | do : | |
9639 | ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" | |
9640 | if test "x$ac_cv_func_rl_completion_matches" = x""yes; then : | |
ad6254c5 | 9641 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 9642 | #define HAVE_RL_COMPLETION_MATCHES 1 |
ad6254c5 AK |
9643 | _ACEOF |
9644 | ||
ad6254c5 AK |
9645 | fi |
9646 | done | |
9647 | ||
f11781c5 | 9648 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
9649 | fi |
9650 | ||
f11781c5 AK |
9651 | ################################################################################ |
9652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5 | |
9653 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
9654 | # Check whether --enable-nls was given. | |
9655 | if test "${enable_nls+set}" = set; then : | |
9656 | enableval=$enable_nls; INTL=$enableval | |
9657 | else | |
9658 | INTL=no | |
9659 | fi | |
d911ec67 | 9660 | |
f11781c5 AK |
9661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5 |
9662 | $as_echo "$INTL" >&6; } | |
9663 | ||
9664 | if test x$INTL = xyes; then | |
9665 | # FIXME - Move this - can be device-mapper too | |
9666 | INTL_PACKAGE="lvm2" | |
9667 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9668 | set dummy msgfmt; ac_word=$2 | |
9669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9670 | $as_echo_n "checking for $ac_word... " >&6; } | |
9671 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
d911ec67 | 9672 | $as_echo_n "(cached) " >&6 |
d911ec67 | 9673 | else |
f11781c5 AK |
9674 | case $MSGFMT in |
9675 | [\\/]* | ?:[\\/]*) | |
9676 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9677 | ;; | |
9678 | *) | |
9679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9680 | for as_dir in $PATH | |
9681 | do | |
9682 | IFS=$as_save_IFS | |
9683 | test -z "$as_dir" && as_dir=. | |
9684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9685 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9686 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
9687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9688 | break 2 | |
9689 | fi | |
9690 | done | |
9691 | done | |
9692 | IFS=$as_save_IFS | |
9693 | ||
9694 | ;; | |
d911ec67 | 9695 | esac |
f11781c5 AK |
9696 | fi |
9697 | MSGFMT=$ac_cv_path_MSGFMT | |
9698 | if test -n "$MSGFMT"; then | |
9699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
9700 | $as_echo "$MSGFMT" >&6; } | |
d911ec67 | 9701 | else |
f11781c5 AK |
9702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9703 | $as_echo "no" >&6; } | |
9704 | fi | |
d911ec67 | 9705 | |
f11781c5 AK |
9706 | |
9707 | if [ "x$MSGFMT" == x ]; | |
9708 | then as_fn_error $? "msgfmt not found in path $PATH | |
9709 | " "$LINENO" 5 | |
9710 | fi; | |
9711 | ||
9712 | ||
9713 | # Check whether --with-localedir was given. | |
9714 | if test "${with_localedir+set}" = set; then : | |
9715 | withval=$with_localedir; LOCALEDIR=$withval | |
9716 | else | |
9717 | LOCALEDIR='${prefix}/share/locale' | |
9718 | fi | |
9719 | ||
9720 | fi | |
9721 | ||
9722 | ################################################################################ | |
9723 | ||
9724 | # Check whether --with-confdir was given. | |
9725 | if test "${with_confdir+set}" = set; then : | |
9726 | withval=$with_confdir; CONFDIR=$withval | |
9727 | else | |
9728 | CONFDIR="/etc" | |
9729 | fi | |
9730 | ||
9731 | ||
9732 | ||
9733 | # Check whether --with-staticdir was given. | |
9734 | if test "${with_staticdir+set}" = set; then : | |
9735 | withval=$with_staticdir; STATICDIR=$withval | |
9736 | else | |
9737 | STATICDIR='${exec_prefix}/sbin' | |
9738 | fi | |
9739 | ||
9740 | ||
9741 | ||
9742 | # Check whether --with-usrlibdir was given. | |
9743 | if test "${with_usrlibdir+set}" = set; then : | |
9744 | withval=$with_usrlibdir; usrlibdir=$withval | |
9745 | else | |
9746 | usrlibdir='${prefix}/lib' | |
d911ec67 AK |
9747 | fi |
9748 | ||
d911ec67 | 9749 | |
d911ec67 | 9750 | |
f11781c5 AK |
9751 | # Check whether --with-usrsbindir was given. |
9752 | if test "${with_usrsbindir+set}" = set; then : | |
9753 | withval=$with_usrsbindir; usrsbindir=$withval | |
9754 | else | |
9755 | usrsbindir='${prefix}/sbin' | |
d911ec67 AK |
9756 | fi |
9757 | ||
d911ec67 | 9758 | |
f11781c5 | 9759 | ################################################################################ |
d911ec67 | 9760 | |
f11781c5 AK |
9761 | # Check whether --with-udev_prefix was given. |
9762 | if test "${with_udev_prefix+set}" = set; then : | |
9763 | withval=$with_udev_prefix; udev_prefix=$withval | |
d911ec67 | 9764 | else |
f11781c5 | 9765 | udev_prefix='${exec_prefix}' |
d911ec67 | 9766 | fi |
d911ec67 | 9767 | |
f11781c5 AK |
9768 | |
9769 | ||
9770 | # Check whether --with-udevdir was given. | |
9771 | if test "${with_udevdir+set}" = set; then : | |
9772 | withval=$with_udevdir; udevdir=$withval | |
9773 | else | |
9774 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
d911ec67 | 9775 | fi |
f11781c5 AK |
9776 | |
9777 | ||
9778 | ################################################################################ | |
9779 | if test x$READLINE = xyes; then | |
9780 | for ac_header in readline/readline.h readline/history.h | |
9781 | do : | |
9782 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9783 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9784 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
d911ec67 AK |
9785 | cat >>confdefs.h <<_ACEOF |
9786 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9787 | _ACEOF | |
9788 | ||
9789 | else | |
f11781c5 | 9790 | as_fn_error $? "bailing out" "$LINENO" 5 |
d911ec67 AK |
9791 | fi |
9792 | ||
9793 | done | |
9794 | ||
9795 | fi | |
9796 | ||
f11781c5 AK |
9797 | if test x$CLVMD != xnone; then |
9798 | 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 | |
9799 | do : | |
9800 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9801 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9802 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9803 | cat >>confdefs.h <<_ACEOF | |
9804 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 9805 | _ACEOF |
ad6254c5 | 9806 | |
f11781c5 AK |
9807 | else |
9808 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9809 | fi |
7a197a62 | 9810 | |
f11781c5 | 9811 | done |
ad6254c5 | 9812 | |
f11781c5 AK |
9813 | for ac_func in dup2 getmntent memmove select socket |
9814 | do : | |
9815 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9816 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9817 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9818 | cat >>confdefs.h <<_ACEOF | |
9819 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ad6254c5 | 9820 | _ACEOF |
ad6254c5 | 9821 | |
f11781c5 AK |
9822 | else |
9823 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9824 | fi |
f11781c5 | 9825 | done |
7a197a62 | 9826 | |
f11781c5 AK |
9827 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
9828 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
9829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 | |
9830 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
9831 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9832 | $as_echo_n "(cached) " >&6 | |
9833 | else | |
9834 | ac_func_search_save_LIBS=$LIBS | |
9835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9836 | /* end confdefs.h. */ | |
ad6254c5 | 9837 | |
f11781c5 AK |
9838 | /* Override any GCC internal prototype to avoid an error. |
9839 | Use char because int might match the return type of a GCC | |
9840 | builtin and then its argument prototype would still apply. */ | |
9841 | #ifdef __cplusplus | |
9842 | extern "C" | |
9843 | #endif | |
9844 | char getmntent (); | |
9845 | int | |
9846 | main () | |
9847 | { | |
9848 | return getmntent (); | |
9849 | ; | |
9850 | return 0; | |
9851 | } | |
9852 | _ACEOF | |
9853 | for ac_lib in '' sun seq gen; do | |
9854 | if test -z "$ac_lib"; then | |
9855 | ac_res="none required" | |
9856 | else | |
9857 | ac_res=-l$ac_lib | |
9858 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9859 | fi | |
9860 | if ac_fn_c_try_link "$LINENO"; then : | |
9861 | ac_cv_search_getmntent=$ac_res | |
9862 | fi | |
9863 | rm -f core conftest.err conftest.$ac_objext \ | |
9864 | conftest$ac_exeext | |
9865 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9866 | break | |
9867 | fi | |
9868 | done | |
9869 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
7a197a62 | 9870 | |
ad6254c5 | 9871 | else |
f11781c5 | 9872 | ac_cv_search_getmntent=no |
795ca3e5 | 9873 | fi |
f11781c5 AK |
9874 | rm conftest.$ac_ext |
9875 | LIBS=$ac_func_search_save_LIBS | |
9876 | fi | |
9877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 | |
9878 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
9879 | ac_res=$ac_cv_search_getmntent | |
9880 | if test "$ac_res" != no; then : | |
9881 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9882 | ac_cv_func_getmntent=yes | |
9883 | ||
9884 | $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h | |
80992638 | 9885 | |
f11781c5 AK |
9886 | else |
9887 | ac_cv_func_getmntent=no | |
8106cdd5 | 9888 | fi |
f11781c5 AK |
9889 | |
9890 | ||
9891 | for ac_header in sys/select.h sys/socket.h | |
9892 | do : | |
9893 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9894 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9895 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
ad6254c5 | 9896 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 9897 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 9898 | _ACEOF |
795ca3e5 | 9899 | |
795ca3e5 AK |
9900 | fi |
9901 | ||
ad6254c5 | 9902 | done |
80992638 | 9903 | |
f11781c5 AK |
9904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
9905 | $as_echo_n "checking types of arguments for select... " >&6; } | |
9906 | if test "${ac_cv_func_select_args+set}" = set; then : | |
ec6a6fbe | 9907 | $as_echo_n "(cached) " >&6 |
83912faa | 9908 | else |
f11781c5 AK |
9909 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
9910 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | |
9911 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
9912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 AK |
9913 | /* end confdefs.h. */ |
9914 | $ac_includes_default | |
f11781c5 AK |
9915 | #ifdef HAVE_SYS_SELECT_H |
9916 | # include <sys/select.h> | |
9917 | #endif | |
9918 | #ifdef HAVE_SYS_SOCKET_H | |
9919 | # include <sys/socket.h> | |
9920 | #endif | |
9921 | ||
9922 | int | |
9923 | main () | |
9924 | { | |
9925 | extern int select ($ac_arg1, | |
9926 | $ac_arg234, $ac_arg234, $ac_arg234, | |
9927 | $ac_arg5); | |
9928 | ; | |
9929 | return 0; | |
9930 | } | |
ad6254c5 | 9931 | _ACEOF |
f11781c5 AK |
9932 | if ac_fn_c_try_compile "$LINENO"; then : |
9933 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
9934 | fi | |
9935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9936 | done | |
9937 | done | |
9938 | done | |
9939 | # Provide a safe default value. | |
9940 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
ad6254c5 | 9941 | |
ad6254c5 | 9942 | fi |
f11781c5 AK |
9943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
9944 | $as_echo "$ac_cv_func_select_args" >&6; } | |
9945 | ac_save_IFS=$IFS; IFS=',' | |
9946 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
9947 | IFS=$ac_save_IFS | |
9948 | shift | |
7a197a62 | 9949 | |
f11781c5 AK |
9950 | cat >>confdefs.h <<_ACEOF |
9951 | #define SELECT_TYPE_ARG1 $1 | |
9952 | _ACEOF | |
ad6254c5 | 9953 | |
f11781c5 AK |
9954 | |
9955 | cat >>confdefs.h <<_ACEOF | |
9956 | #define SELECT_TYPE_ARG234 ($2) | |
ad6254c5 | 9957 | _ACEOF |
f11781c5 AK |
9958 | |
9959 | ||
9960 | cat >>confdefs.h <<_ACEOF | |
9961 | #define SELECT_TYPE_ARG5 ($3) | |
ad6254c5 | 9962 | _ACEOF |
ad6254c5 | 9963 | |
f11781c5 AK |
9964 | rm -f conftest* |
9965 | ||
ad6254c5 | 9966 | fi |
7a197a62 | 9967 | |
f11781c5 AK |
9968 | if test x$CLUSTER != xnone; then |
9969 | for ac_header in sys/socket.h sys/un.h | |
9970 | do : | |
9971 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9972 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9973 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9974 | cat >>confdefs.h <<_ACEOF | |
9975 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9976 | _ACEOF | |
ad6254c5 | 9977 | |
f11781c5 AK |
9978 | else |
9979 | as_fn_error $? "bailing out" "$LINENO" 5 | |
9980 | fi | |
9981 | ||
9982 | done | |
9983 | ||
9984 | for ac_func in socket | |
9985 | do : | |
9986 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" | |
9987 | if test "x$ac_cv_func_socket" = x""yes; then : | |
9988 | cat >>confdefs.h <<_ACEOF | |
9989 | #define HAVE_SOCKET 1 | |
9990 | _ACEOF | |
7a197a62 | 9991 | |
80992638 | 9992 | else |
f11781c5 | 9993 | as_fn_error $? "bailing out" "$LINENO" 5 |
83912faa | 9994 | fi |
f11781c5 | 9995 | done |
83912faa | 9996 | |
69792976 | 9997 | fi |
f11781c5 AK |
9998 | |
9999 | if test x$DMEVENTD = xyes; then | |
10000 | for ac_header in arpa/inet.h | |
10001 | do : | |
10002 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" | |
10003 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : | |
ad6254c5 | 10004 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 10005 | #define HAVE_ARPA_INET_H 1 |
ad6254c5 | 10006 | _ACEOF |
69792976 | 10007 | |
69792976 | 10008 | else |
f11781c5 | 10009 | as_fn_error $? "bailing out" "$LINENO" 5 |
80992638 AK |
10010 | fi |
10011 | ||
ad6254c5 | 10012 | done |
69792976 | 10013 | |
ad6254c5 AK |
10014 | fi |
10015 | ||
f11781c5 AK |
10016 | if test x$HAVE_LIBDL = xyes; then |
10017 | for ac_header in dlfcn.h | |
10018 | do : | |
10019 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
10020 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
10021 | cat >>confdefs.h <<_ACEOF | |
10022 | #define HAVE_DLFCN_H 1 | |
a5f46f6a | 10023 | _ACEOF |
a5f46f6a | 10024 | |
f11781c5 AK |
10025 | else |
10026 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a5f46f6a AK |
10027 | fi |
10028 | ||
f11781c5 | 10029 | done |
a5f46f6a | 10030 | |
a5f46f6a AK |
10031 | fi |
10032 | ||
f11781c5 AK |
10033 | if test x$INTL = xyes; then |
10034 | for ac_header in libintl.h | |
10035 | do : | |
10036 | ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" | |
10037 | if test "x$ac_cv_header_libintl_h" = x""yes; then : | |
10038 | cat >>confdefs.h <<_ACEOF | |
10039 | #define HAVE_LIBINTL_H 1 | |
10040 | _ACEOF | |
a5f46f6a | 10041 | |
a5f46f6a | 10042 | else |
f11781c5 | 10043 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a | 10044 | fi |
f11781c5 AK |
10045 | |
10046 | done | |
a5f46f6a AK |
10047 | |
10048 | fi | |
f11781c5 AK |
10049 | |
10050 | if test x$UDEV_SYNC = xyes; then | |
10051 | for ac_header in sys/ipc.h sys/sem.h | |
10052 | do : | |
10053 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10054 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10055 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a5f46f6a AK |
10056 | cat >>confdefs.h <<_ACEOF |
10057 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10058 | _ACEOF | |
10059 | ||
10060 | else | |
f11781c5 | 10061 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a AK |
10062 | fi |
10063 | ||
10064 | done | |
10065 | ||
10066 | fi | |
10067 | ||
a653923f AK |
10068 | ################################################################################ |
10069 | # Extract the first word of "modprobe", so it can be a program name with args. | |
10070 | set dummy modprobe; ac_word=$2 | |
f11781c5 | 10071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
ec6a6fbe | 10072 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 10073 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then : |
ec6a6fbe | 10074 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
10075 | else |
10076 | case $MODPROBE_CMD in | |
10077 | [\\/]* | ?:[\\/]*) | |
10078 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
10079 | ;; | |
10080 | *) | |
10081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10082 | for as_dir in $PATH | |
10083 | do | |
10084 | IFS=$as_save_IFS | |
10085 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 10086 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 10087 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 10088 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
f11781c5 | 10089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
10090 | break 2 |
10091 | fi | |
10092 | done | |
f11781c5 | 10093 | done |
7a197a62 | 10094 | IFS=$as_save_IFS |
72b2cb61 AK |
10095 | |
10096 | ;; | |
10097 | esac | |
10098 | fi | |
10099 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 10100 | if test -n "$MODPROBE_CMD"; then |
f11781c5 | 10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5 |
ec6a6fbe | 10102 | $as_echo "$MODPROBE_CMD" >&6; } |
72b2cb61 | 10103 | else |
f11781c5 | 10104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 10105 | $as_echo "no" >&6; } |
72b2cb61 AK |
10106 | fi |
10107 | ||
a653923f | 10108 | |
7a197a62 | 10109 | |
a653923f | 10110 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
10111 | |
10112 | cat >>confdefs.h <<_ACEOF | |
10113 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
10114 | _ACEOF | |
10115 | ||
a653923f AK |
10116 | fi |
10117 | ||
b5c2529b | 10118 | |
a9b601e2 ZK |
10119 | lvm_exec_prefix=$exec_prefix |
10120 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
10121 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
10122 | ||
b5c2529b | 10123 | cat >>confdefs.h <<_ACEOF |
a9b601e2 | 10124 | #define LVM_PATH "$lvm_exec_prefix/sbin/lvm" |
b5c2529b ZK |
10125 | _ACEOF |
10126 | ||
10127 | ||
10128 | if test "$CLVMD" != none; then | |
10129 | clvmd_prefix=$ac_default_prefix | |
10130 | test "$prefix" != NONE && clvmd_prefix=$prefix | |
10131 | ||
10132 | cat >>confdefs.h <<_ACEOF | |
10133 | #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd" | |
10134 | _ACEOF | |
10135 | ||
10136 | fi | |
10137 | ||
80992638 | 10138 | ################################################################################ |
93bd259b AK |
10139 | if test "$BUILD_DMEVENTD" = yes; then |
10140 | ||
10141 | # Check whether --with-dmeventd-pidfile was given. | |
f11781c5 | 10142 | if test "${with_dmeventd_pidfile+set}" = set; then : |
71082be4 | 10143 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 10144 | else |
71082be4 | 10145 | DMEVENTD_PIDFILE="/var/run/dmeventd.pid" |
93bd259b AK |
10146 | fi |
10147 | ||
93bd259b | 10148 | |
71082be4 ZK |
10149 | cat >>confdefs.h <<_ACEOF |
10150 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
10151 | _ACEOF | |
93bd259b | 10152 | |
71082be4 | 10153 | fi |
93bd259b AK |
10154 | |
10155 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
10156 | |
10157 | # Check whether --with-dmeventd-path was given. | |
f11781c5 | 10158 | if test "${with_dmeventd_path+set}" = set; then : |
71082be4 | 10159 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 10160 | else |
71082be4 | 10161 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
10162 | fi |
10163 | ||
93bd259b | 10164 | |
71082be4 ZK |
10165 | cat >>confdefs.h <<_ACEOF |
10166 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
10167 | _ACEOF | |
3399ae32 | 10168 | |
71082be4 | 10169 | fi |
3399ae32 | 10170 | |
8bae0a1e AK |
10171 | |
10172 | ||
8bae0a1e | 10173 | # Check whether --with-default-run-dir was given. |
f11781c5 | 10174 | if test "${with_default_run_dir+set}" = set; then : |
8bae0a1e AK |
10175 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" |
10176 | else | |
10177 | DEFAULT_RUN_DIR="/var/run/lvm" | |
10178 | fi | |
10179 | ||
10180 | cat >>confdefs.h <<_ACEOF | |
10181 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
10182 | _ACEOF | |
10183 | ||
10184 | ||
71082be4 | 10185 | ################################################################################ |
3399ae32 AK |
10186 | |
10187 | # Check whether --with-default-system-dir was given. | |
f11781c5 | 10188 | if test "${with_default_system_dir+set}" = set; then : |
71082be4 | 10189 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 10190 | else |
71082be4 | 10191 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
10192 | fi |
10193 | ||
71082be4 | 10194 | |
3399ae32 AK |
10195 | cat >>confdefs.h <<_ACEOF |
10196 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
10197 | _ACEOF | |
10198 | ||
10199 | ||
10200 | ||
3399ae32 | 10201 | # Check whether --with-default-archive-subdir was given. |
f11781c5 | 10202 | if test "${with_default_archive_subdir+set}" = set; then : |
71082be4 | 10203 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 10204 | else |
71082be4 | 10205 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
10206 | fi |
10207 | ||
71082be4 | 10208 | |
3399ae32 AK |
10209 | cat >>confdefs.h <<_ACEOF |
10210 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
10211 | _ACEOF | |
10212 | ||
10213 | ||
10214 | ||
3399ae32 | 10215 | # Check whether --with-default-backup-subdir was given. |
f11781c5 | 10216 | if test "${with_default_backup_subdir+set}" = set; then : |
71082be4 | 10217 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 10218 | else |
71082be4 | 10219 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
10220 | fi |
10221 | ||
71082be4 | 10222 | |
3399ae32 AK |
10223 | cat >>confdefs.h <<_ACEOF |
10224 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
10225 | _ACEOF | |
10226 | ||
10227 | ||
10228 | ||
3399ae32 | 10229 | # Check whether --with-default-cache-subdir was given. |
f11781c5 | 10230 | if test "${with_default_cache_subdir+set}" = set; then : |
71082be4 | 10231 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 10232 | else |
71082be4 | 10233 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
10234 | fi |
10235 | ||
71082be4 | 10236 | |
3399ae32 AK |
10237 | cat >>confdefs.h <<_ACEOF |
10238 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
10239 | _ACEOF | |
10240 | ||
10241 | ||
10242 | ||
3399ae32 | 10243 | # Check whether --with-default-locking-dir was given. |
f11781c5 | 10244 | if test "${with_default_locking_dir+set}" = set; then : |
71082be4 | 10245 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 10246 | else |
71082be4 | 10247 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
10248 | fi |
10249 | ||
71082be4 | 10250 | |
3399ae32 AK |
10251 | cat >>confdefs.h <<_ACEOF |
10252 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
10253 | _ACEOF | |
10254 | ||
10255 | ||
fea55602 DW |
10256 | ################################################################################ |
10257 | ||
10258 | # Check whether --with-default-data-alignment was given. | |
f11781c5 | 10259 | if test "${with_default_data_alignment+set}" = set; then : |
fea55602 DW |
10260 | withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval |
10261 | else | |
10262 | DEFAULT_DATA_ALIGNMENT=1 | |
10263 | fi | |
10264 | ||
10265 | ||
10266 | cat >>confdefs.h <<_ACEOF | |
10267 | #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT | |
10268 | _ACEOF | |
10269 | ||
10270 | ||
93bd259b | 10271 | ################################################################################ |
f11781c5 | 10272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5 |
ec6a6fbe | 10273 | $as_echo_n "checking for kernel interface choice... " >&6; } |
93bd259b AK |
10274 | |
10275 | # Check whether --with-interface was given. | |
f11781c5 | 10276 | if test "${with_interface+set}" = set; then : |
71082be4 | 10277 | withval=$with_interface; interface=$withval |
93bd259b | 10278 | else |
71082be4 | 10279 | interface=ioctl |
93bd259b AK |
10280 | fi |
10281 | ||
10282 | if [ "x$interface" != xioctl ]; | |
10283 | then | |
f11781c5 | 10284 | as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5 |
93bd259b | 10285 | fi |
f11781c5 | 10286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5 |
ec6a6fbe | 10287 | $as_echo "$interface" >&6; } |
93bd259b AK |
10288 | |
10289 | ################################################################################ | |
db8b5af9 | 10290 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
10291 | |
10292 | cat >>confdefs.h <<_ACEOF | |
10293 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
10294 | _ACEOF | |
10295 | ||
10296 | ||
db8b5af9 | 10297 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 10298 | |
db8b5af9 | 10299 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 10300 | |
db8b5af9 | 10301 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 10302 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
10303 | VER=`echo "$VER" | $AWK '{print $1}'` |
10304 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
10305 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
10306 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
10307 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
10308 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
10309 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 10310 | |
80992638 | 10311 | ################################################################################ |
fae0c576 | 10312 | |
83912faa | 10313 | |
795ca3e5 AK |
10314 | |
10315 | ||
10316 | ||
10317 | ||
10318 | ||
10319 | ||
5a52dca9 | 10320 | |
8ef2b021 | 10321 | |
199e490e | 10322 | |
69792976 AK |
10323 | |
10324 | ||
10325 | ||
d0191583 | 10326 | |
69792976 | 10327 | |
8106cdd5 AK |
10328 | |
10329 | ||
10330 | ||
10331 | ||
10332 | ||
d68a82ec | 10333 | |
036f273a | 10334 | |
7d1552c9 | 10335 | |
8106cdd5 | 10336 | |
0a62c911 | 10337 | |
8106cdd5 | 10338 | |
4a7f3eb2 | 10339 | |
4922197a AK |
10340 | |
10341 | ||
d8ac0fbc | 10342 | |
1a9ea74d | 10343 | |
8a2fc586 AK |
10344 | |
10345 | ||
d0191583 | 10346 | |
93bd259b AK |
10347 | |
10348 | ||
10349 | ||
10350 | ||
10351 | ||
d0191583 JM |
10352 | |
10353 | ||
10354 | ||
10355 | ||
10356 | ||
8a2fc586 | 10357 | |
19a2c6e0 | 10358 | |
f7f0854e ZK |
10359 | |
10360 | ||
3ceb7608 | 10361 | |
8ce0cbda | 10362 | |
8b1a3214 | 10363 | |
ec6a6fbe AK |
10364 | |
10365 | ||
10366 | ||
10367 | ||
e2997b73 AK |
10368 | |
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | ||
a946372e AK |
10374 | |
10375 | ||
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | ||
10381 | ||
10382 | ||
10383 | ||
10384 | ||
ec6a6fbe | 10385 | |
33f732c5 | 10386 | |
66e941e8 | 10387 | |
cac52ca4 | 10388 | |
d3c8211f | 10389 | |
7e3fe830 | 10390 | |
a5f46f6a AK |
10391 | |
10392 | ||
10393 | ||
572fefeb | 10394 | |
90c80887 | 10395 | |
3399ae32 AK |
10396 | |
10397 | ||
10398 | ||
10399 | ||
10400 | ||
90c80887 | 10401 | |
bf456146 | 10402 | |
e1b8a236 | 10403 | |
0878503f | 10404 | |
8fea97b7 | 10405 | |
54b362f9 | 10406 | |
b1f08e51 | 10407 | |
d1e8046f | 10408 | |
fea55602 | 10409 | |
c89bc357 | 10410 | |
37ddf259 | 10411 | |
606d0858 | 10412 | |
6e5c1f75 | 10413 | |
68f2de6d AK |
10414 | |
10415 | ||
80992638 | 10416 | ################################################################################ |
6e5c1f75 | 10417 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile" |
7a197a62 | 10418 | |
ad6254c5 | 10419 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
10420 | # This file is a shell script that caches the results of configure |
10421 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
10422 | # scripts and configure runs, see configure's option --config-cache. |
10423 | # It is not useful on other systems. If it contains results you don't | |
10424 | # want to keep, you may remove or edit it. | |
795ca3e5 | 10425 | # |
ad6254c5 AK |
10426 | # config.status only pays attention to the cache file if you give it |
10427 | # the --recheck option to rerun configure. | |
795ca3e5 | 10428 | # |
ad6254c5 AK |
10429 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10430 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10431 | # following values. | |
10432 | ||
10433 | _ACEOF | |
10434 | ||
795ca3e5 AK |
10435 | # The following way of writing the cache mishandles newlines in values, |
10436 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 10437 | # So, we kill variables containing newlines. |
795ca3e5 AK |
10438 | # Ultrix sh set writes to stderr and can't be redirected directly, |
10439 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
10440 | ( |
10441 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10442 | eval ac_val=\$$ac_var | |
10443 | case $ac_val in #( | |
10444 | *${as_nl}*) | |
10445 | case $ac_var in #( | |
f11781c5 | 10446 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
ec6a6fbe | 10447 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7a197a62 AK |
10448 | esac |
10449 | case $ac_var in #( | |
10450 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 10451 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
f11781c5 | 10452 | *) { eval $ac_var=; unset $ac_var;} ;; |
7a197a62 AK |
10453 | esac ;; |
10454 | esac | |
10455 | done | |
10456 | ||
ad6254c5 | 10457 | (set) 2>&1 | |
7a197a62 AK |
10458 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
10459 | *${as_nl}ac_space=\ *) | |
f11781c5 AK |
10460 | # `set' does not quote correctly, so add quotes: double-quote |
10461 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
ad6254c5 | 10462 | sed -n \ |
8a2fc586 AK |
10463 | "s/'/'\\\\''/g; |
10464 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 10465 | ;; #( |
ad6254c5 AK |
10466 | *) |
10467 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 10468 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 10469 | ;; |
7a197a62 AK |
10470 | esac | |
10471 | sort | |
10472 | ) | | |
ad6254c5 | 10473 | sed ' |
7a197a62 | 10474 | /^ac_cv_env_/b end |
ad6254c5 | 10475 | t clear |
7a197a62 | 10476 | :clear |
ad6254c5 AK |
10477 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
10478 | t end | |
7a197a62 AK |
10479 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
10480 | :end' >>confcache | |
10481 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10482 | if test -w "$cache_file"; then | |
10483 | test "x$cache_file" != "x/dev/null" && | |
f11781c5 | 10484 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
ec6a6fbe | 10485 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
ad6254c5 | 10486 | cat confcache >$cache_file |
795ca3e5 | 10487 | else |
f11781c5 | 10488 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
ec6a6fbe | 10489 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
795ca3e5 AK |
10490 | fi |
10491 | fi | |
10492 | rm -f confcache | |
10493 | ||
795ca3e5 AK |
10494 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
10495 | # Let make expand exec_prefix. | |
10496 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10497 | ||
72b2cb61 | 10498 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
10499 | |
10500 | ac_libobjs= | |
10501 | ac_ltlibobjs= | |
f11781c5 | 10502 | U= |
ad6254c5 AK |
10503 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
10504 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 10505 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 10506 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
10507 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
10508 | # will be set to the directory where LIBOBJS objects are built. | |
f11781c5 AK |
10509 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
10510 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
10511 | done |
10512 | LIBOBJS=$ac_libobjs | |
80992638 | 10513 | |
ad6254c5 AK |
10514 | LTLIBOBJS=$ac_ltlibobjs |
10515 | ||
10516 | ||
10517 | ||
10518 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 10519 | ac_write_fail=0 |
ad6254c5 AK |
10520 | ac_clean_files_save=$ac_clean_files |
10521 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
f11781c5 | 10522 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
ec6a6fbe | 10523 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
f11781c5 AK |
10524 | as_write_fail=0 |
10525 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
ad6254c5 AK |
10526 | #! $SHELL |
10527 | # Generated by $as_me. | |
795ca3e5 | 10528 | # Run this file to recreate the current configuration. |
795ca3e5 | 10529 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
10530 | # configure, is in config.log if it exists. |
10531 | ||
10532 | debug=false | |
10533 | ac_cs_recheck=false | |
10534 | ac_cs_silent=false | |
ad6254c5 | 10535 | |
f11781c5 AK |
10536 | SHELL=\${CONFIG_SHELL-$SHELL} |
10537 | export SHELL | |
10538 | _ASEOF | |
10539 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10540 | ## -------------------- ## | |
10541 | ## M4sh Initialization. ## | |
10542 | ## -------------------- ## | |
ad6254c5 | 10543 | |
25fbec5b AK |
10544 | # Be more Bourne compatible |
10545 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 10546 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
10547 | emulate sh |
10548 | NULLCMD=: | |
ec6a6fbe | 10549 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
10550 | # is contrary to our usage. Disable this feature. |
10551 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
10552 | setopt NO_GLOB_SUBST |
10553 | else | |
f11781c5 AK |
10554 | case `(set -o) 2>/dev/null` in #( |
10555 | *posix*) : | |
10556 | set -o posix ;; #( | |
10557 | *) : | |
10558 | ;; | |
25fbec5b | 10559 | esac |
7a197a62 | 10560 | fi |
25fbec5b AK |
10561 | |
10562 | ||
ec6a6fbe AK |
10563 | as_nl=' |
10564 | ' | |
10565 | export as_nl | |
10566 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10567 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10568 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10569 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
10570 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
10571 | # but without wasting forks for bash or zsh. | |
10572 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10573 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10574 | as_echo='print -r --' | |
10575 | as_echo_n='print -rn --' | |
10576 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
10577 | as_echo='printf %s\n' |
10578 | as_echo_n='printf %s' | |
10579 | else | |
10580 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10581 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10582 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 10583 | else |
ec6a6fbe AK |
10584 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
10585 | as_echo_n_body='eval | |
10586 | arg=$1; | |
f11781c5 | 10587 | case $arg in #( |
ec6a6fbe AK |
10588 | *"$as_nl"*) |
10589 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10590 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10591 | esac; | |
10592 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10593 | ' | |
10594 | export as_echo_n_body | |
10595 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 10596 | fi |
ec6a6fbe AK |
10597 | export as_echo_body |
10598 | as_echo='sh -c $as_echo_body as_echo' | |
10599 | fi | |
10600 | ||
10601 | # The user is always right. | |
10602 | if test "${PATH_SEPARATOR+set}" != set; then | |
10603 | PATH_SEPARATOR=: | |
10604 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10605 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10606 | PATH_SEPARATOR=';' | |
10607 | } | |
ad6254c5 AK |
10608 | fi |
10609 | ||
ad6254c5 | 10610 | |
7a197a62 AK |
10611 | # IFS |
10612 | # We need space, tab and new line, in precisely that order. Quoting is | |
10613 | # there to prevent editors from complaining about space-tab. | |
10614 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10615 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
10616 | IFS=" "" $as_nl" |
10617 | ||
10618 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 10619 | case $0 in #(( |
7a197a62 AK |
10620 | *[\\/]* ) as_myself=$0 ;; |
10621 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10622 | for as_dir in $PATH | |
10623 | do | |
10624 | IFS=$as_save_IFS | |
10625 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
10626 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
10627 | done | |
7a197a62 AK |
10628 | IFS=$as_save_IFS |
10629 | ||
10630 | ;; | |
10631 | esac | |
10632 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10633 | # in which case we are not to be found in the path. | |
10634 | if test "x$as_myself" = x; then | |
10635 | as_myself=$0 | |
10636 | fi | |
10637 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 10638 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 10639 | exit 1 |
7a197a62 AK |
10640 | fi |
10641 | ||
f11781c5 AK |
10642 | # Unset variables that we do not need and which cause bugs (e.g. in |
10643 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10644 | # suppresses any "Segmentation fault" message there. '((' could | |
10645 | # trigger a bug in pdksh 5.2.14. | |
10646 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10647 | do eval test x\${$as_var+set} = xset \ | |
10648 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 10649 | done |
ad6254c5 AK |
10650 | PS1='$ ' |
10651 | PS2='> ' | |
10652 | PS4='+ ' | |
10653 | ||
10654 | # NLS nuisances. | |
ec6a6fbe AK |
10655 | LC_ALL=C |
10656 | export LC_ALL | |
10657 | LANGUAGE=C | |
10658 | export LANGUAGE | |
8106cdd5 | 10659 | |
f11781c5 AK |
10660 | # CDPATH. |
10661 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10662 | ||
10663 | ||
10664 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
10665 | # ---------------------------------------- | |
10666 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
10667 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
10668 | # script with STATUS, using 1 if that was 0. | |
10669 | as_fn_error () | |
10670 | { | |
10671 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
10672 | if test "$4"; then | |
10673 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10674 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
10675 | fi | |
10676 | $as_echo "$as_me: error: $2" >&2 | |
10677 | as_fn_exit $as_status | |
10678 | } # as_fn_error | |
10679 | ||
10680 | ||
10681 | # as_fn_set_status STATUS | |
10682 | # ----------------------- | |
10683 | # Set $? to STATUS, without forking. | |
10684 | as_fn_set_status () | |
10685 | { | |
10686 | return $1 | |
10687 | } # as_fn_set_status | |
10688 | ||
10689 | # as_fn_exit STATUS | |
10690 | # ----------------- | |
10691 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10692 | as_fn_exit () | |
10693 | { | |
10694 | set +e | |
10695 | as_fn_set_status $1 | |
10696 | exit $1 | |
10697 | } # as_fn_exit | |
10698 | ||
10699 | # as_fn_unset VAR | |
10700 | # --------------- | |
10701 | # Portably unset VAR. | |
10702 | as_fn_unset () | |
10703 | { | |
10704 | { eval $1=; unset $1;} | |
10705 | } | |
10706 | as_unset=as_fn_unset | |
10707 | # as_fn_append VAR VALUE | |
10708 | # ---------------------- | |
10709 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10710 | # advantage of any shell optimizations that allow amortized linear growth over | |
10711 | # repeated appends, instead of the typical quadratic growth present in naive | |
10712 | # implementations. | |
10713 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10714 | eval 'as_fn_append () | |
10715 | { | |
10716 | eval $1+=\$2 | |
10717 | }' | |
10718 | else | |
10719 | as_fn_append () | |
10720 | { | |
10721 | eval $1=\$$1\$2 | |
10722 | } | |
10723 | fi # as_fn_append | |
10724 | ||
10725 | # as_fn_arith ARG... | |
10726 | # ------------------ | |
10727 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10728 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10729 | # must be portable across $(()) and expr. | |
10730 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10731 | eval 'as_fn_arith () | |
10732 | { | |
10733 | as_val=$(( $* )) | |
10734 | }' | |
10735 | else | |
10736 | as_fn_arith () | |
10737 | { | |
10738 | as_val=`expr "$@" || test $? -eq 1` | |
10739 | } | |
10740 | fi # as_fn_arith | |
10741 | ||
10742 | ||
7a197a62 AK |
10743 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10744 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
10745 | as_expr=expr |
10746 | else | |
10747 | as_expr=false | |
10748 | fi | |
8106cdd5 | 10749 | |
7a197a62 | 10750 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
10751 | as_basename=basename |
10752 | else | |
10753 | as_basename=false | |
10754 | fi | |
10755 | ||
f11781c5 AK |
10756 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10757 | as_dirname=dirname | |
10758 | else | |
10759 | as_dirname=false | |
10760 | fi | |
ad6254c5 | 10761 | |
7a197a62 | 10762 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
10763 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10764 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 10765 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 10766 | $as_echo X/"$0" | |
7a197a62 AK |
10767 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10768 | s//\1/ | |
10769 | q | |
10770 | } | |
10771 | /^X\/\(\/\/\)$/{ | |
10772 | s//\1/ | |
10773 | q | |
10774 | } | |
10775 | /^X\/\(\/\).*/{ | |
10776 | s//\1/ | |
10777 | q | |
10778 | } | |
10779 | s/.*/./; q'` | |
ad6254c5 | 10780 | |
f11781c5 AK |
10781 | # Avoid depending upon Character Ranges. |
10782 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10783 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10784 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10785 | as_cr_digits='0123456789' | |
10786 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7a197a62 AK |
10787 | |
10788 | ECHO_C= ECHO_N= ECHO_T= | |
f11781c5 | 10789 | case `echo -n x` in #((((( |
7a197a62 | 10790 | -n*) |
f11781c5 | 10791 | case `echo 'xy\c'` in |
7a197a62 | 10792 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
f11781c5 AK |
10793 | xy) ECHO_C='\c';; |
10794 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10795 | ECHO_T=' ';; | |
7a197a62 AK |
10796 | esac;; |
10797 | *) | |
10798 | ECHO_N='-n';; | |
ad6254c5 | 10799 | esac |
80992638 | 10800 | |
ad6254c5 | 10801 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
10802 | if test -d conf$$.dir; then |
10803 | rm -f conf$$.dir/conf$$.file | |
10804 | else | |
10805 | rm -f conf$$.dir | |
ec6a6fbe AK |
10806 | mkdir conf$$.dir 2>/dev/null |
10807 | fi | |
10808 | if (echo >conf$$.file) 2>/dev/null; then | |
10809 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10810 | as_ln_s='ln -s' | |
10811 | # ... but there are two gotchas: | |
10812 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10813 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10814 | # In both cases, we have to default to `cp -p'. | |
10815 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
10816 | as_ln_s='cp -p' | |
10817 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
10818 | as_ln_s=ln | |
10819 | else | |
ad6254c5 | 10820 | as_ln_s='cp -p' |
ec6a6fbe | 10821 | fi |
ad6254c5 AK |
10822 | else |
10823 | as_ln_s='cp -p' | |
10824 | fi | |
7a197a62 AK |
10825 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10826 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 10827 | |
f11781c5 AK |
10828 | |
10829 | # as_fn_mkdir_p | |
10830 | # ------------- | |
10831 | # Create "$as_dir" as a directory, including parents if necessary. | |
10832 | as_fn_mkdir_p () | |
10833 | { | |
10834 | ||
10835 | case $as_dir in #( | |
10836 | -*) as_dir=./$as_dir;; | |
10837 | esac | |
10838 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10839 | as_dirs= | |
10840 | while :; do | |
10841 | case $as_dir in #( | |
10842 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10843 | *) as_qdir=$as_dir;; | |
10844 | esac | |
10845 | as_dirs="'$as_qdir' $as_dirs" | |
10846 | as_dir=`$as_dirname -- "$as_dir" || | |
10847 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10848 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10849 | X"$as_dir" : 'X\(//\)$' \| \ | |
10850 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10851 | $as_echo X"$as_dir" | | |
10852 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10853 | s//\1/ | |
10854 | q | |
10855 | } | |
10856 | /^X\(\/\/\)[^/].*/{ | |
10857 | s//\1/ | |
10858 | q | |
10859 | } | |
10860 | /^X\(\/\/\)$/{ | |
10861 | s//\1/ | |
10862 | q | |
10863 | } | |
10864 | /^X\(\/\).*/{ | |
10865 | s//\1/ | |
10866 | q | |
10867 | } | |
10868 | s/.*/./; q'` | |
10869 | test -d "$as_dir" && break | |
10870 | done | |
10871 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10872 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
10873 | ||
10874 | ||
10875 | } # as_fn_mkdir_p | |
ad6254c5 | 10876 | if mkdir -p . 2>/dev/null; then |
f11781c5 | 10877 | as_mkdir_p='mkdir -p "$as_dir"' |
ad6254c5 | 10878 | else |
8a2fc586 | 10879 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
10880 | as_mkdir_p=false |
10881 | fi | |
10882 | ||
25fbec5b AK |
10883 | if test -x / >/dev/null 2>&1; then |
10884 | as_test_x='test -x' | |
7a197a62 | 10885 | else |
25fbec5b AK |
10886 | if ls -dL / >/dev/null 2>&1; then |
10887 | as_ls_L_option=L | |
10888 | else | |
10889 | as_ls_L_option= | |
10890 | fi | |
10891 | as_test_x=' | |
10892 | eval sh -c '\'' | |
10893 | if test -d "$1"; then | |
ec6a6fbe | 10894 | test -d "$1/."; |
25fbec5b | 10895 | else |
f11781c5 | 10896 | case $1 in #( |
ec6a6fbe | 10897 | -*)set "./$1";; |
25fbec5b | 10898 | esac; |
f11781c5 | 10899 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
25fbec5b AK |
10900 | ???[sx]*):;;*)false;;esac;fi |
10901 | '\'' sh | |
10902 | ' | |
7a197a62 | 10903 | fi |
25fbec5b | 10904 | as_executable_p=$as_test_x |
ad6254c5 AK |
10905 | |
10906 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 10907 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10908 | |
10909 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 10910 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
10911 | |
10912 | ||
ad6254c5 | 10913 | exec 6>&1 |
f11781c5 AK |
10914 | ## ----------------------------------- ## |
10915 | ## Main body of $CONFIG_STATUS script. ## | |
10916 | ## ----------------------------------- ## | |
10917 | _ASEOF | |
10918 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
ad6254c5 | 10919 | |
f11781c5 AK |
10920 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
10921 | # Save the log message, to keep $0 and so on meaningful, and to | |
ad6254c5 | 10922 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
10923 | # values after options handling. |
10924 | ac_log=" | |
ad6254c5 | 10925 | This file was extended by $as_me, which was |
f11781c5 | 10926 | generated by GNU Autoconf 2.66. Invocation command line was |
ad6254c5 AK |
10927 | |
10928 | CONFIG_FILES = $CONFIG_FILES | |
10929 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10930 | CONFIG_LINKS = $CONFIG_LINKS | |
10931 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10932 | $ $0 $@ | |
10933 | ||
7a197a62 AK |
10934 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
10935 | " | |
10936 | ||
ad6254c5 AK |
10937 | _ACEOF |
10938 | ||
ec6a6fbe AK |
10939 | case $ac_config_files in *" |
10940 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10941 | esac | |
10942 | ||
10943 | case $ac_config_headers in *" | |
10944 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10945 | esac | |
10946 | ||
10947 | ||
10948 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 10949 | # Files that config.status was made for. |
68f2de6d AK |
10950 | config_files="$ac_config_files" |
10951 | config_headers="$ac_config_headers" | |
ad6254c5 | 10952 | |
7a197a62 | 10953 | _ACEOF |
ad6254c5 | 10954 | |
ec6a6fbe | 10955 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 | 10956 | ac_cs_usage="\ |
f11781c5 AK |
10957 | \`$as_me' instantiates files and other configuration actions |
10958 | from templates according to the current configuration. Unless the files | |
10959 | and actions are specified as TAGs, all are instantiated by default. | |
ad6254c5 | 10960 | |
f11781c5 | 10961 | Usage: $0 [OPTION]... [TAG]... |
ad6254c5 AK |
10962 | |
10963 | -h, --help print this help, then exit | |
25fbec5b | 10964 | -V, --version print version number and configuration settings, then exit |
f11781c5 | 10965 | --config print configuration, then exit |
ec6a6fbe AK |
10966 | -q, --quiet, --silent |
10967 | do not print progress messages | |
ad6254c5 AK |
10968 | -d, --debug don't remove temporary files |
10969 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
10970 | --file=FILE[:TEMPLATE] |
10971 | instantiate the configuration file FILE | |
10972 | --header=FILE[:TEMPLATE] | |
10973 | instantiate the configuration header FILE | |
ad6254c5 AK |
10974 | |
10975 | Configuration files: | |
10976 | $config_files | |
10977 | ||
72b2cb61 AK |
10978 | Configuration headers: |
10979 | $config_headers | |
10980 | ||
f11781c5 | 10981 | Report bugs to the package provider." |
ad6254c5 | 10982 | |
7a197a62 | 10983 | _ACEOF |
ec6a6fbe | 10984 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
f11781c5 | 10985 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
ad6254c5 AK |
10986 | ac_cs_version="\\ |
10987 | config.status | |
f11781c5 AK |
10988 | configured by $0, generated by GNU Autoconf 2.66, |
10989 | with options \\"\$ac_cs_config\\" | |
ad6254c5 | 10990 | |
f11781c5 | 10991 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
10992 | This config.status script is free software; the Free Software Foundation |
10993 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
10994 | |
10995 | ac_pwd='$ac_pwd' | |
10996 | srcdir='$srcdir' | |
10997 | INSTALL='$INSTALL' | |
fddafd51 | 10998 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
10999 | AWK='$AWK' |
11000 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
11001 | _ACEOF |
11002 | ||
ec6a6fbe AK |
11003 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11004 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
11005 | ac_need_defaults=: |
11006 | while test $# != 0 | |
11007 | do | |
11008 | case $1 in | |
11009 | --*=*) | |
7a197a62 AK |
11010 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
11011 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
11012 | ac_shift=: |
11013 | ;; | |
7a197a62 | 11014 | *) |
ad6254c5 AK |
11015 | ac_option=$1 |
11016 | ac_optarg=$2 | |
11017 | ac_shift=shift | |
11018 | ;; | |
ad6254c5 AK |
11019 | esac |
11020 | ||
11021 | case $ac_option in | |
11022 | # Handling of the options. | |
ad6254c5 AK |
11023 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11024 | ac_cs_recheck=: ;; | |
7a197a62 | 11025 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 11026 | $as_echo "$ac_cs_version"; exit ;; |
f11781c5 AK |
11027 | --config | --confi | --conf | --con | --co | --c ) |
11028 | $as_echo "$ac_cs_config"; exit ;; | |
7a197a62 | 11029 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
11030 | debug=: ;; |
11031 | --file | --fil | --fi | --f ) | |
11032 | $ac_shift | |
ec6a6fbe AK |
11033 | case $ac_optarg in |
11034 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11035 | esac | |
f11781c5 | 11036 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
ad6254c5 AK |
11037 | ac_need_defaults=false;; |
11038 | --header | --heade | --head | --hea ) | |
11039 | $ac_shift | |
ec6a6fbe AK |
11040 | case $ac_optarg in |
11041 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11042 | esac | |
f11781c5 | 11043 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
ad6254c5 | 11044 | ac_need_defaults=false;; |
7a197a62 AK |
11045 | --he | --h) |
11046 | # Conflict between --help and --header | |
f11781c5 AK |
11047 | as_fn_error $? "ambiguous option: \`$1' |
11048 | Try \`$0 --help' for more information.";; | |
7a197a62 | 11049 | --help | --hel | -h ) |
ec6a6fbe | 11050 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
11051 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11052 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11053 | ac_cs_silent=: ;; | |
11054 | ||
11055 | # This is an error. | |
f11781c5 AK |
11056 | -*) as_fn_error $? "unrecognized option: \`$1' |
11057 | Try \`$0 --help' for more information." ;; | |
ad6254c5 | 11058 | |
f11781c5 | 11059 | *) as_fn_append ac_config_targets " $1" |
7a197a62 | 11060 | ac_need_defaults=false ;; |
ad6254c5 AK |
11061 | |
11062 | esac | |
11063 | shift | |
11064 | done | |
11065 | ||
11066 | ac_configure_extra_args= | |
11067 | ||
11068 | if $ac_cs_silent; then | |
11069 | exec 6>/dev/null | |
11070 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11071 | fi | |
11072 | ||
11073 | _ACEOF | |
ec6a6fbe | 11074 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 11075 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
11076 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
11077 | shift | |
11078 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
11079 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 11080 | export CONFIG_SHELL |
ec6a6fbe | 11081 | exec "\$@" |
ad6254c5 AK |
11082 | fi |
11083 | ||
11084 | _ACEOF | |
ec6a6fbe | 11085 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11086 | exec 5>>config.log |
11087 | { | |
11088 | echo | |
11089 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11090 | ## Running $as_me. ## | |
11091 | _ASBOX | |
ec6a6fbe | 11092 | $as_echo "$ac_log" |
7a197a62 | 11093 | } >&5 |
ad6254c5 | 11094 | |
7a197a62 | 11095 | _ACEOF |
ec6a6fbe | 11096 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 11097 | _ACEOF |
ad6254c5 | 11098 | |
ec6a6fbe | 11099 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11100 | |
11101 | # Handling of arguments. | |
ad6254c5 AK |
11102 | for ac_config_target in $ac_config_targets |
11103 | do | |
7a197a62 AK |
11104 | case $ac_config_target in |
11105 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
11106 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11107 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
11108 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
11109 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 11110 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
11111 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
11112 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 11113 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 11114 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
93bd259b AK |
11115 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
11116 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
7a197a62 | 11117 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 11118 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 11119 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
11120 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
11121 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
11122 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
11123 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11124 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11125 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 11126 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 11127 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
7a197a62 | 11128 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
93bd259b AK |
11129 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
11130 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 11131 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 11132 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
11133 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
11134 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 11135 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 11136 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
595eaf92 | 11137 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
6e5c1f75 PR |
11138 | "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;; |
11139 | "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;; | |
7a197a62 | 11140 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 11141 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 11142 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
7a197a62 | 11143 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 11144 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
11145 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
11146 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
d1e8046f | 11147 | "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;; |
7a197a62 | 11148 | |
f11781c5 | 11149 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
80992638 | 11150 | esac |
ad6254c5 AK |
11151 | done |
11152 | ||
7a197a62 | 11153 | |
ad6254c5 AK |
11154 | # If the user did not use the arguments to specify the items to instantiate, |
11155 | # then the envvar interface is used. Set only those that are not. | |
11156 | # We use the long form for the default assignment because of an extremely | |
11157 | # bizarre bug on SunOS 4.1.3. | |
11158 | if $ac_need_defaults; then | |
11159 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 11160 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
11161 | fi |
11162 | ||
11163 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 11164 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 11165 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
11166 | # Hook for its removal unless debugging. |
11167 | # Note that there is a small window in which the directory will not be cleaned: | |
11168 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
11169 | $debug || |
11170 | { | |
7a197a62 AK |
11171 | tmp= |
11172 | trap 'exit_status=$? | |
11173 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
11174 | ' 0 | |
f11781c5 | 11175 | trap 'as_fn_exit 1' 1 2 13 15 |
ad6254c5 | 11176 | } |
ad6254c5 AK |
11177 | # Create a (secure) tmp directory for tmp files. |
11178 | ||
11179 | { | |
7a197a62 | 11180 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
11181 | test -n "$tmp" && test -d "$tmp" |
11182 | } || | |
11183 | { | |
7a197a62 AK |
11184 | tmp=./conf$$-$RANDOM |
11185 | (umask 077 && mkdir "$tmp") | |
f11781c5 | 11186 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ad6254c5 | 11187 | |
ec6a6fbe AK |
11188 | # Set up the scripts for CONFIG_FILES section. |
11189 | # No need to generate them if there are no CONFIG_FILES. | |
11190 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 11191 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 11192 | |
68f2de6d | 11193 | |
f11781c5 AK |
11194 | ac_cr=`echo X | tr X '\015'` |
11195 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
11196 | # But we know of no other shell where ac_cr would be empty at this | |
11197 | # point, so we can use a bashism as a fallback. | |
11198 | if test "x$ac_cr" = x; then | |
11199 | eval ac_cr=\$\'\\r\' | |
11200 | fi | |
ec6a6fbe AK |
11201 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
11202 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
11203 | ac_cs_awk_cr='\\r' | |
11204 | else | |
11205 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 11206 | fi |
7a197a62 | 11207 | |
ec6a6fbe | 11208 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 11209 | _ACEOF |
7a197a62 | 11210 | |
8106cdd5 | 11211 | |
ec6a6fbe AK |
11212 | { |
11213 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
11214 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
11215 | echo "_ACEOF" | |
11216 | } >conf$$subs.sh || | |
f11781c5 AK |
11217 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
11218 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
1995c9ff AK |
11219 | ac_delim='%!_!# ' |
11220 | for ac_last_try in false false false false false :; do | |
ec6a6fbe | 11221 | . ./conf$$subs.sh || |
f11781c5 | 11222 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe AK |
11223 | |
11224 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
11225 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
11226 | break |
11227 | elif $ac_last_try; then | |
f11781c5 | 11228 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
1995c9ff AK |
11229 | else |
11230 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11231 | fi | |
11232 | done | |
ec6a6fbe AK |
11233 | rm -f conf$$subs.sh |
11234 | ||
11235 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11236 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
11237 | _ACEOF | |
11238 | sed -n ' | |
11239 | h | |
11240 | s/^/S["/; s/!.*/"]=/ | |
11241 | p | |
11242 | g | |
11243 | s/^[^!]*!// | |
11244 | :repl | |
11245 | t repl | |
11246 | s/'"$ac_delim"'$// | |
11247 | t delim | |
11248 | :nl | |
11249 | h | |
f11781c5 | 11250 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11251 | t more1 |
11252 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
11253 | p | |
11254 | n | |
11255 | b repl | |
11256 | :more1 | |
11257 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11258 | p | |
11259 | g | |
11260 | s/.\{148\}// | |
11261 | t nl | |
11262 | :delim | |
11263 | h | |
f11781c5 | 11264 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11265 | t more2 |
11266 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
11267 | p | |
11268 | b | |
11269 | :more2 | |
11270 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11271 | p | |
11272 | g | |
11273 | s/.\{148\}// | |
11274 | t delim | |
11275 | ' <conf$$subs.awk | sed ' | |
11276 | /^[^""]/{ | |
11277 | N | |
11278 | s/\n// | |
11279 | } | |
11280 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
11281 | rm -f conf$$subs.awk | |
11282 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11283 | _ACAWK | |
11284 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
11285 | for (key in S) S_is_set[key] = 1 | |
11286 | FS = "\a" | |
7a197a62 | 11287 | |
ec6a6fbe AK |
11288 | } |
11289 | { | |
11290 | line = $ 0 | |
11291 | nfields = split(line, field, "@") | |
11292 | substed = 0 | |
11293 | len = length(field[1]) | |
11294 | for (i = 2; i < nfields; i++) { | |
11295 | key = field[i] | |
11296 | keylen = length(key) | |
11297 | if (S_is_set[key]) { | |
11298 | value = S[key] | |
11299 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
11300 | len += length(value) + length(field[++i]) | |
11301 | substed = 1 | |
11302 | } else | |
11303 | len += 1 + keylen | |
11304 | } | |
11305 | ||
11306 | print line | |
11307 | } | |
fddafd51 | 11308 | |
ec6a6fbe | 11309 | _ACAWK |
1995c9ff | 11310 | _ACEOF |
ec6a6fbe AK |
11311 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11312 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
11313 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
11314 | else | |
11315 | cat | |
11316 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
f11781c5 | 11317 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7a197a62 AK |
11318 | _ACEOF |
11319 | ||
f11781c5 AK |
11320 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
11321 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7a197a62 AK |
11322 | # trailing colons and then remove the whole line if VPATH becomes empty |
11323 | # (actually we leave an empty line to preserve line numbers). | |
11324 | if test "x$srcdir" = x.; then | |
f11781c5 AK |
11325 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
11326 | h | |
11327 | s/// | |
11328 | s/^/:/ | |
11329 | s/[ ]*$/:/ | |
11330 | s/:\$(srcdir):/:/g | |
11331 | s/:\${srcdir}:/:/g | |
11332 | s/:@srcdir@:/:/g | |
11333 | s/^:*// | |
7a197a62 | 11334 | s/:*$// |
f11781c5 AK |
11335 | x |
11336 | s/\(=[ ]*\).*/\1/ | |
11337 | G | |
11338 | s/\n// | |
7a197a62 AK |
11339 | s/^[^=]*=[ ]*$// |
11340 | }' | |
11341 | fi | |
11342 | ||
ec6a6fbe | 11343 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11344 | fi # test -n "$CONFIG_FILES" |
11345 | ||
ec6a6fbe AK |
11346 | # Set up the scripts for CONFIG_HEADERS section. |
11347 | # No need to generate them if there are no CONFIG_HEADERS. | |
11348 | # This happens for instance with `./config.status Makefile'. | |
11349 | if test -n "$CONFIG_HEADERS"; then | |
11350 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
11351 | BEGIN { | |
11352 | _ACEOF | |
11353 | ||
11354 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11355 | # here-document in config.status, that substitutes the proper values into | |
11356 | # config.h.in to produce config.h. | |
11357 | ||
11358 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11359 | # handling of long lines. | |
11360 | ac_delim='%!_!# ' | |
11361 | for ac_last_try in false false :; do | |
11362 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
11363 | if test -z "$ac_t"; then | |
11364 | break | |
11365 | elif $ac_last_try; then | |
f11781c5 | 11366 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
ec6a6fbe AK |
11367 | else |
11368 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11369 | fi | |
11370 | done | |
11371 | ||
11372 | # For the awk script, D is an array of macro values keyed by name, | |
11373 | # likewise P contains macro parameters if any. Preserve backslash | |
11374 | # newline sequences. | |
11375 | ||
11376 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11377 | sed -n ' | |
11378 | s/.\{148\}/&'"$ac_delim"'/g | |
11379 | t rset | |
11380 | :rset | |
11381 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11382 | t def | |
11383 | d | |
11384 | :def | |
11385 | s/\\$// | |
11386 | t bsnl | |
11387 | s/["\\]/\\&/g | |
11388 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11389 | D["\1"]=" \3"/p | |
11390 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11391 | d | |
11392 | :bsnl | |
11393 | s/["\\]/\\&/g | |
11394 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11395 | D["\1"]=" \3\\\\\\n"\\/p | |
11396 | t cont | |
11397 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11398 | t cont | |
11399 | d | |
11400 | :cont | |
11401 | n | |
11402 | s/.\{148\}/&'"$ac_delim"'/g | |
11403 | t clear | |
11404 | :clear | |
11405 | s/\\$// | |
11406 | t bsnlc | |
11407 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11408 | d | |
11409 | :bsnlc | |
11410 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11411 | b cont | |
11412 | ' <confdefs.h | sed ' | |
11413 | s/'"$ac_delim"'/"\\\ | |
11414 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11415 | ||
11416 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11417 | for (key in D) D_is_set[key] = 1 | |
11418 | FS = "\a" | |
11419 | } | |
11420 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11421 | line = \$ 0 | |
11422 | split(line, arg, " ") | |
11423 | if (arg[1] == "#") { | |
11424 | defundef = arg[2] | |
11425 | mac1 = arg[3] | |
11426 | } else { | |
11427 | defundef = substr(arg[1], 2) | |
11428 | mac1 = arg[2] | |
11429 | } | |
11430 | split(mac1, mac2, "(") #) | |
11431 | macro = mac2[1] | |
11432 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11433 | if (D_is_set[macro]) { | |
11434 | # Preserve the white space surrounding the "#". | |
11435 | print prefix "define", macro P[macro] D[macro] | |
11436 | next | |
11437 | } else { | |
11438 | # Replace #undef with comments. This is necessary, for example, | |
11439 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11440 | # on some systems where configure will not decide to define it. | |
11441 | if (defundef == "undef") { | |
11442 | print "/*", prefix defundef, macro, "*/" | |
11443 | next | |
11444 | } | |
11445 | } | |
11446 | } | |
11447 | { print } | |
11448 | _ACAWK | |
11449 | _ACEOF | |
11450 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
f11781c5 | 11451 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
ec6a6fbe AK |
11452 | fi # test -n "$CONFIG_HEADERS" |
11453 | ||
7a197a62 | 11454 | |
ec6a6fbe AK |
11455 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
11456 | shift | |
11457 | for ac_tag | |
7a197a62 AK |
11458 | do |
11459 | case $ac_tag in | |
11460 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11461 | esac | |
11462 | case $ac_mode$ac_tag in | |
11463 | :[FHL]*:*);; | |
f11781c5 | 11464 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7a197a62 AK |
11465 | :[FH]-) ac_tag=-:-;; |
11466 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11467 | esac | |
11468 | ac_save_IFS=$IFS | |
11469 | IFS=: | |
11470 | set x $ac_tag | |
11471 | IFS=$ac_save_IFS | |
11472 | shift | |
11473 | ac_file=$1 | |
11474 | shift | |
11475 | ||
11476 | case $ac_mode in | |
11477 | :L) ac_source=$1;; | |
11478 | :[FH]) | |
11479 | ac_file_inputs= | |
11480 | for ac_f | |
11481 | do | |
11482 | case $ac_f in | |
11483 | -) ac_f="$tmp/stdin";; | |
11484 | *) # Look for the file first in the build tree, then in the source tree | |
11485 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11486 | # because $ac_f cannot contain `:'. | |
11487 | test -f "$ac_f" || | |
11488 | case $ac_f in | |
11489 | [\\/$]*) false;; | |
11490 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11491 | esac || | |
f11781c5 | 11492 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7a197a62 | 11493 | esac |
ec6a6fbe | 11494 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
f11781c5 | 11495 | as_fn_append ac_file_inputs " '$ac_f'" |
7a197a62 AK |
11496 | done |
11497 | ||
11498 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11499 | # use $as_me), people would be surprised to read: | |
11500 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
11501 | configure_input='Generated from '` |
11502 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
11503 | `' by configure.' | |
7a197a62 AK |
11504 | if test x"$ac_file" != x-; then |
11505 | configure_input="$ac_file. $configure_input" | |
f11781c5 | 11506 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
ec6a6fbe | 11507 | $as_echo "$as_me: creating $ac_file" >&6;} |
7a197a62 | 11508 | fi |
ec6a6fbe AK |
11509 | # Neutralize special characters interpreted by sed in replacement strings. |
11510 | case $configure_input in #( | |
11511 | *\&* | *\|* | *\\* ) | |
11512 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
11513 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
11514 | *) ac_sed_conf_input=$configure_input;; | |
11515 | esac | |
7a197a62 AK |
11516 | |
11517 | case $ac_tag in | |
ec6a6fbe | 11518 | *:-:* | *:-) cat >"$tmp/stdin" \ |
f11781c5 | 11519 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7a197a62 AK |
11520 | esac |
11521 | ;; | |
80992638 | 11522 | esac |
8106cdd5 | 11523 | |
7a197a62 | 11524 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 11525 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
11526 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11527 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 11528 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 11529 | $as_echo X"$ac_file" | |
7a197a62 AK |
11530 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11531 | s//\1/ | |
11532 | q | |
11533 | } | |
11534 | /^X\(\/\/\)[^/].*/{ | |
11535 | s//\1/ | |
11536 | q | |
11537 | } | |
11538 | /^X\(\/\/\)$/{ | |
11539 | s//\1/ | |
11540 | q | |
11541 | } | |
11542 | /^X\(\/\).*/{ | |
11543 | s//\1/ | |
11544 | q | |
11545 | } | |
11546 | s/.*/./; q'` | |
f11781c5 | 11547 | as_dir="$ac_dir"; as_fn_mkdir_p |
ad6254c5 AK |
11548 | ac_builddir=. |
11549 | ||
7a197a62 AK |
11550 | case "$ac_dir" in |
11551 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11552 | *) | |
ec6a6fbe | 11553 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 11554 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 11555 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
11556 | case $ac_top_builddir_sub in |
11557 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11558 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11559 | esac ;; | |
11560 | esac | |
11561 | ac_abs_top_builddir=$ac_pwd | |
11562 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11563 | # for backward compatibility: | |
11564 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
11565 | |
11566 | case $srcdir in | |
7a197a62 | 11567 | .) # We are building in place. |
ad6254c5 | 11568 | ac_srcdir=. |
7a197a62 AK |
11569 | ac_top_srcdir=$ac_top_builddir_sub |
11570 | ac_abs_top_srcdir=$ac_pwd ;; | |
11571 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 11572 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
11573 | ac_top_srcdir=$srcdir |
11574 | ac_abs_top_srcdir=$srcdir ;; | |
11575 | *) # Relative name. | |
11576 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11577 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11578 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 11579 | esac |
7a197a62 | 11580 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 11581 | |
ad6254c5 | 11582 | |
7a197a62 AK |
11583 | case $ac_mode in |
11584 | :F) | |
11585 | # | |
11586 | # CONFIG_FILE | |
11587 | # | |
ad6254c5 AK |
11588 | |
11589 | case $INSTALL in | |
11590 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 11591 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 11592 | esac |
fddafd51 ZK |
11593 | ac_MKDIR_P=$MKDIR_P |
11594 | case $MKDIR_P in | |
11595 | [\\/$]* | ?:[\\/]* ) ;; | |
11596 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
11597 | esac | |
7a197a62 | 11598 | _ACEOF |
795ca3e5 | 11599 | |
ec6a6fbe | 11600 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11601 | # If the template does not know about datarootdir, expand it. |
11602 | # FIXME: This hack should be removed a few years after 2.60. | |
11603 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
ec6a6fbe AK |
11604 | ac_sed_dataroot=' |
11605 | /datarootdir/ { | |
7a197a62 AK |
11606 | p |
11607 | q | |
11608 | } | |
11609 | /@datadir@/p | |
11610 | /@docdir@/p | |
11611 | /@infodir@/p | |
11612 | /@localedir@/p | |
f11781c5 | 11613 | /@mandir@/p' |
ec6a6fbe | 11614 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7a197a62 AK |
11615 | *datarootdir*) ac_datarootdir_seen=yes;; |
11616 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
f11781c5 | 11617 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
ec6a6fbe | 11618 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
ad6254c5 | 11619 | _ACEOF |
ec6a6fbe | 11620 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11621 | ac_datarootdir_hack=' |
11622 | s&@datadir@&$datadir&g | |
11623 | s&@docdir@&$docdir&g | |
11624 | s&@infodir@&$infodir&g | |
11625 | s&@localedir@&$localedir&g | |
11626 | s&@mandir@&$mandir&g | |
f11781c5 | 11627 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7a197a62 AK |
11628 | esac |
11629 | _ACEOF | |
11630 | ||
11631 | # Neutralize VPATH when `$srcdir' = `.'. | |
11632 | # Shell code in configure.ac might set extrasub. | |
11633 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
11634 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11635 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
11636 | $extrasub |
11637 | _ACEOF | |
ec6a6fbe | 11638 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
11639 | :t |
11640 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 11641 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 11642 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 11643 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
11644 | s&@srcdir@&$ac_srcdir&;t t |
11645 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11646 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11647 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11648 | s&@builddir@&$ac_builddir&;t t | |
11649 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11650 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11651 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 11652 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 11653 | $ac_datarootdir_hack |
ec6a6fbe AK |
11654 | " |
11655 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
f11781c5 | 11656 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11657 | |
11658 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11659 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
11660 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
f11781c5 AK |
11661 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
11662 | which seems to be undefined. Please make sure it is defined" >&5 | |
ec6a6fbe | 11663 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f11781c5 | 11664 | which seems to be undefined. Please make sure it is defined" >&2;} |
7a197a62 AK |
11665 | |
11666 | rm -f "$tmp/stdin" | |
72b2cb61 | 11667 | case $ac_file in |
ec6a6fbe AK |
11668 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
11669 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
11670 | esac \ | |
f11781c5 | 11671 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11672 | ;; |
11673 | :H) | |
11674 | # | |
11675 | # CONFIG_HEADER | |
11676 | # | |
72b2cb61 | 11677 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
11678 | { |
11679 | $as_echo "/* $configure_input */" \ | |
11680 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
11681 | } >"$tmp/config.h" \ | |
f11781c5 | 11682 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
ec6a6fbe | 11683 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
f11781c5 | 11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
ec6a6fbe | 11685 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
72b2cb61 | 11686 | else |
ec6a6fbe AK |
11687 | rm -f "$ac_file" |
11688 | mv "$tmp/config.h" "$ac_file" \ | |
f11781c5 | 11689 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
72b2cb61 AK |
11690 | fi |
11691 | else | |
ec6a6fbe AK |
11692 | $as_echo "/* $configure_input */" \ |
11693 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
f11781c5 | 11694 | || as_fn_error $? "could not create -" "$LINENO" 5 |
72b2cb61 | 11695 | fi |
7a197a62 AK |
11696 | ;; |
11697 | ||
11698 | ||
11699 | esac | |
11700 | ||
11701 | done # for ac_tag | |
795ca3e5 | 11702 | |
795ca3e5 | 11703 | |
f11781c5 | 11704 | as_fn_exit 0 |
ad6254c5 | 11705 | _ACEOF |
ad6254c5 AK |
11706 | ac_clean_files=$ac_clean_files_save |
11707 | ||
ec6a6fbe | 11708 | test $ac_write_fail = 0 || |
f11781c5 | 11709 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe | 11710 | |
ad6254c5 AK |
11711 | |
11712 | # configure is writing to config.log, and then calls config.status. | |
11713 | # config.status does its own redirection, appending to config.log. | |
11714 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11715 | # by configure, so config.status won't be able to write to it; its | |
11716 | # output is simply discarded. So we exec the FD to /dev/null, | |
11717 | # effectively closing config.log, so it can be properly (re)opened and | |
11718 | # appended to by config.status. When coming back to configure, we | |
11719 | # need to make the FD available again. | |
11720 | if test "$no_create" != yes; then | |
11721 | ac_cs_success=: | |
11722 | ac_config_status_args= | |
11723 | test "$silent" = yes && | |
11724 | ac_config_status_args="$ac_config_status_args --quiet" | |
11725 | exec 5>/dev/null | |
11726 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11727 | exec 5>>config.log | |
11728 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11729 | # would make configure fail if this is the last instruction. | |
f11781c5 | 11730 | $ac_cs_success || as_fn_exit 1 |
ad6254c5 | 11731 | fi |
ec6a6fbe | 11732 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
f11781c5 | 11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
ec6a6fbe AK |
11734 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
11735 | fi | |
795ca3e5 | 11736 | |
2dc95e1c AK |
11737 | |
11738 | if test x$ODIRECT != xyes; then | |
f11781c5 | 11739 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
ec6a6fbe | 11740 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} |
2dc95e1c | 11741 | fi |