Sun, 24 Feb 2019 17:23:52 +0100
Version 0.1.0. Removed localization because it was messy, parts were localized and others not. In production and recipes ingredients not in stock are marked in red.
0 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.69. | |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
7 | # | |
8 | # | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
31 | fi | |
32 | ||
33 | ||
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
79 | fi | |
80 | ||
81 | ||
82 | # IFS | |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | as_myself= | |
91 | case $0 in #(( | |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
122 | PS1='$ ' | |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
127 | LC_ALL=C | |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
135 | # Use a proper internal environment variable to ensure we don't fall | |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
160 | if test "x$CONFIG_SHELL" = x; then | |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
193 | test x\$exitcode = x0 || exit 1 | |
194 | test -x / || exit 1" | |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
200 | if (eval "$as_required") 2>/dev/null; then : | |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
211 | do | |
212 | IFS=$as_save_IFS | |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
239 | export CONFIG_SHELL | |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
258 | fi | |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
266 | else | |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
271 | fi | |
272 | exit 1 | |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
301 | ||
302 | # as_fn_exit STATUS | |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
356 | ||
357 | ||
358 | } # as_fn_mkdir_p | |
359 | ||
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
367 | # as_fn_append VAR VALUE | |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
404 | # ---------------------------------------- | |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
407 | # script with STATUS, using 1 if that was 0. | |
408 | as_fn_error () | |
409 | { | |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
414 | fi | |
415 | $as_echo "$as_me: error: $2" >&2 | |
416 | as_fn_exit $as_status | |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
421 | as_expr=expr | |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
427 | as_basename=basename | |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
437 | ||
438 | as_me=`$as_basename -- "$0" || | |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
440 | X"$0" : 'X\(//\)$' \| \ | |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
456 | ||
457 | # Avoid depending upon Character Ranges. | |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
463 | ||
464 | ||
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
474 | sed ' | |
475 | s/[$]LINENO.*/&-/ | |
476 | t lineno | |
477 | b | |
478 | :lineno | |
479 | N | |
480 | :loop | |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
482 | t loop | |
483 | s/-\n.*// | |
484 | ' >$as_me.lineno && | |
485 | chmod +x "$as_me.lineno" || | |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
487 | ||
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
492 | # Don't try to exec as it changes $[0], causing all sort of problems | |
493 | # (the dirname of $[0] is not the place where we might find the | |
494 | # original and so on. Autoconf is especially sensitive to this). | |
495 | . "./$as_me.lineno" | |
496 | # Exit status is that of the last command. | |
497 | exit | |
498 | } | |
499 | ||
500 | ECHO_C= ECHO_N= ECHO_T= | |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
511 | esac | |
512 | ||
513 | rm -f conf$$ conf$$.exe conf$$.file | |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
516 | else | |
517 | rm -f conf$$.dir | |
518 | mkdir conf$$.dir 2>/dev/null | |
519 | fi | |
520 | if (echo >conf$$.file) 2>/dev/null; then | |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
522 | as_ln_s='ln -s' | |
523 | # ... but there are two gotchas: | |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
526 | # In both cases, we have to default to `cp -pR'. | |
527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
528 | as_ln_s='cp -pR' | |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
530 | as_ln_s=ln | |
531 | else | |
532 | as_ln_s='cp -pR' | |
533 | fi | |
534 | else | |
535 | as_ln_s='cp -pR' | |
536 | fi | |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
538 | rmdir conf$$.dir 2>/dev/null | |
539 | ||
540 | if mkdir -p . 2>/dev/null; then | |
541 | as_mkdir_p='mkdir -p "$as_dir"' | |
542 | else | |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
547 | as_test_x='test -x' | |
548 | as_executable_p=as_fn_executable_p | |
549 | ||
550 | # Sed expression to map a string onto a valid CPP name. | |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
552 | ||
553 | # Sed expression to map a string onto a valid variable name. | |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | ||
557 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
558 | exec 6>&1 | |
559 | ||
560 | # Name of the host. | |
561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
562 | # so uname gets run too. | |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
565 | # | |
566 | # Initializations. | |
567 | # | |
568 | ac_default_prefix=/usr/local | |
569 | ac_clean_files= | |
570 | ac_config_libobj_dir=. | |
571 | LIBOBJS= | |
572 | cross_compiling=no | |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
576 | ||
577 | # Identity of this package. | |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
583 | PACKAGE_URL= | |
584 | ||
585 | ac_unique_file="bmsd/bms.c" | |
5
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
2
diff
changeset
|
586 | ac_default_prefix=/var/lib/bms |
0 | 587 | # Factoring default headers for most tests. |
588 | ac_includes_default="\ | |
589 | #include <stdio.h> | |
590 | #ifdef HAVE_SYS_TYPES_H | |
591 | # include <sys/types.h> | |
592 | #endif | |
593 | #ifdef HAVE_SYS_STAT_H | |
594 | # include <sys/stat.h> | |
595 | #endif | |
596 | #ifdef STDC_HEADERS | |
597 | # include <stdlib.h> | |
598 | # include <stddef.h> | |
599 | #else | |
600 | # ifdef HAVE_STDLIB_H | |
601 | # include <stdlib.h> | |
602 | # endif | |
603 | #endif | |
604 | #ifdef HAVE_STRING_H | |
605 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
606 | # include <memory.h> | |
607 | # endif | |
608 | # include <string.h> | |
609 | #endif | |
610 | #ifdef HAVE_STRINGS_H | |
611 | # include <strings.h> | |
612 | #endif | |
613 | #ifdef HAVE_INTTYPES_H | |
614 | # include <inttypes.h> | |
615 | #endif | |
616 | #ifdef HAVE_STDINT_H | |
617 | # include <stdint.h> | |
618 | #endif | |
619 | #ifdef HAVE_UNISTD_H | |
620 | # include <unistd.h> | |
621 | #endif" | |
622 | ||
623 | ac_subst_vars='LTLIBOBJS | |
624 | LIBOBJS | |
625 | SDL_LIBS | |
626 | SDL_CFLAGS | |
627 | EGREP | |
628 | GREP | |
629 | CPP | |
630 | TAR | |
631 | INSTALL | |
632 | RANLIB | |
633 | OBJEXT | |
634 | EXEEXT | |
635 | ac_ct_CC | |
636 | CPPFLAGS | |
637 | LDFLAGS | |
638 | CFLAGS | |
639 | CC | |
640 | CYEARS | |
641 | COPYRIGHT | |
642 | VERSION | |
643 | PACKAGE | |
644 | SUBDIRS | |
645 | target_alias | |
646 | host_alias | |
647 | build_alias | |
648 | LIBS | |
649 | ECHO_T | |
650 | ECHO_N | |
651 | ECHO_C | |
652 | DEFS | |
653 | mandir | |
654 | localedir | |
655 | libdir | |
656 | psdir | |
657 | pdfdir | |
658 | dvidir | |
659 | htmldir | |
660 | infodir | |
661 | docdir | |
662 | oldincludedir | |
663 | includedir | |
664 | localstatedir | |
665 | sharedstatedir | |
666 | sysconfdir | |
667 | datadir | |
668 | datarootdir | |
669 | libexecdir | |
670 | sbindir | |
671 | bindir | |
672 | program_transform_name | |
673 | prefix | |
674 | exec_prefix | |
675 | PACKAGE_URL | |
676 | PACKAGE_BUGREPORT | |
677 | PACKAGE_STRING | |
678 | PACKAGE_VERSION | |
679 | PACKAGE_TARNAME | |
680 | PACKAGE_NAME | |
681 | PATH_SEPARATOR | |
682 | SHELL' | |
683 | ac_subst_files='' | |
684 | ac_user_opts=' | |
685 | enable_option_checking | |
686 | enable_debugging | |
687 | ' | |
688 | ac_precious_vars='build_alias | |
689 | host_alias | |
690 | target_alias | |
691 | CC | |
692 | CFLAGS | |
693 | LDFLAGS | |
694 | LIBS | |
695 | CPPFLAGS | |
696 | CPP' | |
697 | ||
698 | ||
699 | # Initialize some variables set by options. | |
700 | ac_init_help= | |
701 | ac_init_version=false | |
702 | ac_unrecognized_opts= | |
703 | ac_unrecognized_sep= | |
704 | # The variables have the same names as the options, with | |
705 | # dashes changed to underlines. | |
706 | cache_file=/dev/null | |
707 | exec_prefix=NONE | |
708 | no_create= | |
709 | no_recursion= | |
710 | prefix=NONE | |
711 | program_prefix=NONE | |
712 | program_suffix=NONE | |
713 | program_transform_name=s,x,x, | |
714 | silent= | |
715 | site= | |
716 | srcdir= | |
717 | verbose= | |
718 | x_includes=NONE | |
719 | x_libraries=NONE | |
720 | ||
721 | # Installation directory options. | |
722 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
723 | # and all the variables that are supposed to be based on exec_prefix | |
724 | # by default will actually change. | |
725 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
726 | # (The list follows the same order as the GNU Coding Standards.) | |
727 | bindir='${exec_prefix}/bin' | |
728 | sbindir='${exec_prefix}/sbin' | |
729 | libexecdir='${exec_prefix}/libexec' | |
730 | datarootdir='${prefix}/share' | |
731 | datadir='${datarootdir}' | |
732 | sysconfdir='${prefix}/etc' | |
733 | sharedstatedir='${prefix}/com' | |
734 | localstatedir='${prefix}/var' | |
735 | includedir='${prefix}/include' | |
736 | oldincludedir='/usr/include' | |
737 | docdir='${datarootdir}/doc/${PACKAGE}' | |
738 | infodir='${datarootdir}/info' | |
739 | htmldir='${docdir}' | |
740 | dvidir='${docdir}' | |
741 | pdfdir='${docdir}' | |
742 | psdir='${docdir}' | |
743 | libdir='${exec_prefix}/lib' | |
744 | localedir='${datarootdir}/locale' | |
745 | mandir='${datarootdir}/man' | |
746 | ||
747 | ac_prev= | |
748 | ac_dashdash= | |
749 | for ac_option | |
750 | do | |
751 | # If the previous option needs an argument, assign it. | |
752 | if test -n "$ac_prev"; then | |
753 | eval $ac_prev=\$ac_option | |
754 | ac_prev= | |
755 | continue | |
756 | fi | |
757 | ||
758 | case $ac_option in | |
759 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
760 | *=) ac_optarg= ;; | |
761 | *) ac_optarg=yes ;; | |
762 | esac | |
763 | ||
764 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
765 | ||
766 | case $ac_dashdash$ac_option in | |
767 | --) | |
768 | ac_dashdash=yes ;; | |
769 | ||
770 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
771 | ac_prev=bindir ;; | |
772 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
773 | bindir=$ac_optarg ;; | |
774 | ||
775 | -build | --build | --buil | --bui | --bu) | |
776 | ac_prev=build_alias ;; | |
777 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
778 | build_alias=$ac_optarg ;; | |
779 | ||
780 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
781 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
782 | ac_prev=cache_file ;; | |
783 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
784 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
785 | cache_file=$ac_optarg ;; | |
786 | ||
787 | --config-cache | -C) | |
788 | cache_file=config.cache ;; | |
789 | ||
790 | -datadir | --datadir | --datadi | --datad) | |
791 | ac_prev=datadir ;; | |
792 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
793 | datadir=$ac_optarg ;; | |
794 | ||
795 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
796 | | --dataroo | --dataro | --datar) | |
797 | ac_prev=datarootdir ;; | |
798 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
799 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
800 | datarootdir=$ac_optarg ;; | |
801 | ||
802 | -disable-* | --disable-*) | |
803 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
804 | # Reject names that are not valid shell variable names. | |
805 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
806 | as_fn_error $? "invalid feature name: $ac_useropt" | |
807 | ac_useropt_orig=$ac_useropt | |
808 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
809 | case $ac_user_opts in | |
810 | *" | |
811 | "enable_$ac_useropt" | |
812 | "*) ;; | |
813 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
814 | ac_unrecognized_sep=', ';; | |
815 | esac | |
816 | eval enable_$ac_useropt=no ;; | |
817 | ||
818 | -docdir | --docdir | --docdi | --doc | --do) | |
819 | ac_prev=docdir ;; | |
820 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
821 | docdir=$ac_optarg ;; | |
822 | ||
823 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
824 | ac_prev=dvidir ;; | |
825 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
826 | dvidir=$ac_optarg ;; | |
827 | ||
828 | -enable-* | --enable-*) | |
829 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
830 | # Reject names that are not valid shell variable names. | |
831 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
832 | as_fn_error $? "invalid feature name: $ac_useropt" | |
833 | ac_useropt_orig=$ac_useropt | |
834 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
835 | case $ac_user_opts in | |
836 | *" | |
837 | "enable_$ac_useropt" | |
838 | "*) ;; | |
839 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
840 | ac_unrecognized_sep=', ';; | |
841 | esac | |
842 | eval enable_$ac_useropt=\$ac_optarg ;; | |
843 | ||
844 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
845 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
846 | | --exec | --exe | --ex) | |
847 | ac_prev=exec_prefix ;; | |
848 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
849 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
850 | | --exec=* | --exe=* | --ex=*) | |
851 | exec_prefix=$ac_optarg ;; | |
852 | ||
853 | -gas | --gas | --ga | --g) | |
854 | # Obsolete; use --with-gas. | |
855 | with_gas=yes ;; | |
856 | ||
857 | -help | --help | --hel | --he | -h) | |
858 | ac_init_help=long ;; | |
859 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
860 | ac_init_help=recursive ;; | |
861 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
862 | ac_init_help=short ;; | |
863 | ||
864 | -host | --host | --hos | --ho) | |
865 | ac_prev=host_alias ;; | |
866 | -host=* | --host=* | --hos=* | --ho=*) | |
867 | host_alias=$ac_optarg ;; | |
868 | ||
869 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
870 | ac_prev=htmldir ;; | |
871 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
872 | | --ht=*) | |
873 | htmldir=$ac_optarg ;; | |
874 | ||
875 | -includedir | --includedir | --includedi | --included | --include \ | |
876 | | --includ | --inclu | --incl | --inc) | |
877 | ac_prev=includedir ;; | |
878 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
879 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
880 | includedir=$ac_optarg ;; | |
881 | ||
882 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
883 | ac_prev=infodir ;; | |
884 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
885 | infodir=$ac_optarg ;; | |
886 | ||
887 | -libdir | --libdir | --libdi | --libd) | |
888 | ac_prev=libdir ;; | |
889 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
890 | libdir=$ac_optarg ;; | |
891 | ||
892 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
893 | | --libexe | --libex | --libe) | |
894 | ac_prev=libexecdir ;; | |
895 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
896 | | --libexe=* | --libex=* | --libe=*) | |
897 | libexecdir=$ac_optarg ;; | |
898 | ||
899 | -localedir | --localedir | --localedi | --localed | --locale) | |
900 | ac_prev=localedir ;; | |
901 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
902 | localedir=$ac_optarg ;; | |
903 | ||
904 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
905 | | --localstate | --localstat | --localsta | --localst | --locals) | |
906 | ac_prev=localstatedir ;; | |
907 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
908 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
909 | localstatedir=$ac_optarg ;; | |
910 | ||
911 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
912 | ac_prev=mandir ;; | |
913 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
914 | mandir=$ac_optarg ;; | |
915 | ||
916 | -nfp | --nfp | --nf) | |
917 | # Obsolete; use --without-fp. | |
918 | with_fp=no ;; | |
919 | ||
920 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
921 | | --no-cr | --no-c | -n) | |
922 | no_create=yes ;; | |
923 | ||
924 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
925 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
926 | no_recursion=yes ;; | |
927 | ||
928 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
929 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
930 | | --oldin | --oldi | --old | --ol | --o) | |
931 | ac_prev=oldincludedir ;; | |
932 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
933 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
934 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
935 | oldincludedir=$ac_optarg ;; | |
936 | ||
937 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
938 | ac_prev=prefix ;; | |
939 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
940 | prefix=$ac_optarg ;; | |
941 | ||
942 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
943 | | --program-pre | --program-pr | --program-p) | |
944 | ac_prev=program_prefix ;; | |
945 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
946 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
947 | program_prefix=$ac_optarg ;; | |
948 | ||
949 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
950 | | --program-suf | --program-su | --program-s) | |
951 | ac_prev=program_suffix ;; | |
952 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
953 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
954 | program_suffix=$ac_optarg ;; | |
955 | ||
956 | -program-transform-name | --program-transform-name \ | |
957 | | --program-transform-nam | --program-transform-na \ | |
958 | | --program-transform-n | --program-transform- \ | |
959 | | --program-transform | --program-transfor \ | |
960 | | --program-transfo | --program-transf \ | |
961 | | --program-trans | --program-tran \ | |
962 | | --progr-tra | --program-tr | --program-t) | |
963 | ac_prev=program_transform_name ;; | |
964 | -program-transform-name=* | --program-transform-name=* \ | |
965 | | --program-transform-nam=* | --program-transform-na=* \ | |
966 | | --program-transform-n=* | --program-transform-=* \ | |
967 | | --program-transform=* | --program-transfor=* \ | |
968 | | --program-transfo=* | --program-transf=* \ | |
969 | | --program-trans=* | --program-tran=* \ | |
970 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
971 | program_transform_name=$ac_optarg ;; | |
972 | ||
973 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
974 | ac_prev=pdfdir ;; | |
975 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
976 | pdfdir=$ac_optarg ;; | |
977 | ||
978 | -psdir | --psdir | --psdi | --psd | --ps) | |
979 | ac_prev=psdir ;; | |
980 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
981 | psdir=$ac_optarg ;; | |
982 | ||
983 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
984 | | -silent | --silent | --silen | --sile | --sil) | |
985 | silent=yes ;; | |
986 | ||
987 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
988 | ac_prev=sbindir ;; | |
989 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
990 | | --sbi=* | --sb=*) | |
991 | sbindir=$ac_optarg ;; | |
992 | ||
993 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
994 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
995 | | --sharedst | --shareds | --shared | --share | --shar \ | |
996 | | --sha | --sh) | |
997 | ac_prev=sharedstatedir ;; | |
998 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
999 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1000 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1001 | | --sha=* | --sh=*) | |
1002 | sharedstatedir=$ac_optarg ;; | |
1003 | ||
1004 | -site | --site | --sit) | |
1005 | ac_prev=site ;; | |
1006 | -site=* | --site=* | --sit=*) | |
1007 | site=$ac_optarg ;; | |
1008 | ||
1009 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1010 | ac_prev=srcdir ;; | |
1011 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1012 | srcdir=$ac_optarg ;; | |
1013 | ||
1014 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1015 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1016 | ac_prev=sysconfdir ;; | |
1017 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1018 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1019 | sysconfdir=$ac_optarg ;; | |
1020 | ||
1021 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1022 | ac_prev=target_alias ;; | |
1023 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1024 | target_alias=$ac_optarg ;; | |
1025 | ||
1026 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1027 | verbose=yes ;; | |
1028 | ||
1029 | -version | --version | --versio | --versi | --vers | -V) | |
1030 | ac_init_version=: ;; | |
1031 | ||
1032 | -with-* | --with-*) | |
1033 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1034 | # Reject names that are not valid shell variable names. | |
1035 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1036 | as_fn_error $? "invalid package name: $ac_useropt" | |
1037 | ac_useropt_orig=$ac_useropt | |
1038 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1039 | case $ac_user_opts in | |
1040 | *" | |
1041 | "with_$ac_useropt" | |
1042 | "*) ;; | |
1043 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1044 | ac_unrecognized_sep=', ';; | |
1045 | esac | |
1046 | eval with_$ac_useropt=\$ac_optarg ;; | |
1047 | ||
1048 | -without-* | --without-*) | |
1049 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1050 | # Reject names that are not valid shell variable names. | |
1051 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1052 | as_fn_error $? "invalid package name: $ac_useropt" | |
1053 | ac_useropt_orig=$ac_useropt | |
1054 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1055 | case $ac_user_opts in | |
1056 | *" | |
1057 | "with_$ac_useropt" | |
1058 | "*) ;; | |
1059 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1060 | ac_unrecognized_sep=', ';; | |
1061 | esac | |
1062 | eval with_$ac_useropt=no ;; | |
1063 | ||
1064 | --x) | |
1065 | # Obsolete; use --with-x. | |
1066 | with_x=yes ;; | |
1067 | ||
1068 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1069 | | --x-incl | --x-inc | --x-in | --x-i) | |
1070 | ac_prev=x_includes ;; | |
1071 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1072 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1073 | x_includes=$ac_optarg ;; | |
1074 | ||
1075 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1076 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1077 | ac_prev=x_libraries ;; | |
1078 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1079 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1080 | x_libraries=$ac_optarg ;; | |
1081 | ||
1082 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1083 | Try \`$0 --help' for more information" | |
1084 | ;; | |
1085 | ||
1086 | *=*) | |
1087 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1088 | # Reject names that are not valid shell variable names. | |
1089 | case $ac_envvar in #( | |
1090 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1091 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1092 | esac | |
1093 | eval $ac_envvar=\$ac_optarg | |
1094 | export $ac_envvar ;; | |
1095 | ||
1096 | *) | |
1097 | # FIXME: should be removed in autoconf 3.0. | |
1098 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1099 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1100 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1101 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1102 | ;; | |
1103 | ||
1104 | esac | |
1105 | done | |
1106 | ||
1107 | if test -n "$ac_prev"; then | |
1108 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1109 | as_fn_error $? "missing argument to $ac_option" | |
1110 | fi | |
1111 | ||
1112 | if test -n "$ac_unrecognized_opts"; then | |
1113 | case $enable_option_checking in | |
1114 | no) ;; | |
1115 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1116 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1117 | esac | |
1118 | fi | |
1119 | ||
1120 | # Check all directory arguments for consistency. | |
1121 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1122 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1123 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1124 | libdir localedir mandir | |
1125 | do | |
1126 | eval ac_val=\$$ac_var | |
1127 | # Remove trailing slashes. | |
1128 | case $ac_val in | |
1129 | */ ) | |
1130 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1131 | eval $ac_var=\$ac_val;; | |
1132 | esac | |
1133 | # Be sure to have absolute directory names. | |
1134 | case $ac_val in | |
1135 | [\\/$]* | ?:[\\/]* ) continue;; | |
1136 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1137 | esac | |
1138 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1139 | done | |
1140 | ||
1141 | # There might be people who depend on the old broken behavior: `$host' | |
1142 | # used to hold the argument of --host etc. | |
1143 | # FIXME: To remove some day. | |
1144 | build=$build_alias | |
1145 | host=$host_alias | |
1146 | target=$target_alias | |
1147 | ||
1148 | # FIXME: To remove some day. | |
1149 | if test "x$host_alias" != x; then | |
1150 | if test "x$build_alias" = x; then | |
1151 | cross_compiling=maybe | |
1152 | elif test "x$build_alias" != "x$host_alias"; then | |
1153 | cross_compiling=yes | |
1154 | fi | |
1155 | fi | |
1156 | ||
1157 | ac_tool_prefix= | |
1158 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1159 | ||
1160 | test "$silent" = yes && exec 6>/dev/null | |
1161 | ||
1162 | ||
1163 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1164 | ac_ls_di=`ls -di .` && | |
1165 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1166 | as_fn_error $? "working directory cannot be determined" | |
1167 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1168 | as_fn_error $? "pwd does not report name of working directory" | |
1169 | ||
1170 | ||
1171 | # Find the source files, if location was not specified. | |
1172 | if test -z "$srcdir"; then | |
1173 | ac_srcdir_defaulted=yes | |
1174 | # Try the directory containing this script, then the parent directory. | |
1175 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1176 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1177 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1178 | X"$as_myself" : 'X\(//\)$' \| \ | |
1179 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1180 | $as_echo X"$as_myself" | | |
1181 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1182 | s//\1/ | |
1183 | q | |
1184 | } | |
1185 | /^X\(\/\/\)[^/].*/{ | |
1186 | s//\1/ | |
1187 | q | |
1188 | } | |
1189 | /^X\(\/\/\)$/{ | |
1190 | s//\1/ | |
1191 | q | |
1192 | } | |
1193 | /^X\(\/\).*/{ | |
1194 | s//\1/ | |
1195 | q | |
1196 | } | |
1197 | s/.*/./; q'` | |
1198 | srcdir=$ac_confdir | |
1199 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1200 | srcdir=.. | |
1201 | fi | |
1202 | else | |
1203 | ac_srcdir_defaulted=no | |
1204 | fi | |
1205 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1206 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1207 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1208 | fi | |
1209 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1210 | ac_abs_confdir=`( | |
1211 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1212 | pwd)` | |
1213 | # When building in place, set srcdir=. | |
1214 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1215 | srcdir=. | |
1216 | fi | |
1217 | # Remove unnecessary trailing slashes from srcdir. | |
1218 | # Double slashes in file names in object file debugging info | |
1219 | # mess up M-x gdb in Emacs. | |
1220 | case $srcdir in | |
1221 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1222 | esac | |
1223 | for ac_var in $ac_precious_vars; do | |
1224 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1225 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1226 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1227 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1228 | done | |
1229 | ||
1230 | # | |
1231 | # Report the --help message. | |
1232 | # | |
1233 | if test "$ac_init_help" = "long"; then | |
1234 | # Omit some internal or obsolete options to make the list less imposing. | |
1235 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1236 | cat <<_ACEOF | |
1237 | \`configure' configures this package to adapt to many kinds of systems. | |
1238 | ||
1239 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1240 | ||
1241 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1242 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1243 | ||
1244 | Defaults for the options are specified in brackets. | |
1245 | ||
1246 | Configuration: | |
1247 | -h, --help display this help and exit | |
1248 | --help=short display options specific to this package | |
1249 | --help=recursive display the short help of all the included packages | |
1250 | -V, --version display version information and exit | |
1251 | -q, --quiet, --silent do not print \`checking ...' messages | |
1252 | --cache-file=FILE cache test results in FILE [disabled] | |
1253 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1254 | -n, --no-create do not create output files | |
1255 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1256 | ||
1257 | Installation directories: | |
1258 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1259 | [$ac_default_prefix] | |
1260 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1261 | [PREFIX] | |
1262 | ||
1263 | By default, \`make install' will install all the files in | |
1264 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1265 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1266 | for instance \`--prefix=\$HOME'. | |
1267 | ||
1268 | For better control, use the options below. | |
1269 | ||
1270 | Fine tuning of the installation directories: | |
1271 | --bindir=DIR user executables [EPREFIX/bin] | |
1272 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1273 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1274 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1275 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1276 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1277 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1278 | --includedir=DIR C header files [PREFIX/include] | |
1279 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1280 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1281 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1282 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1283 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1284 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1285 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1286 | --htmldir=DIR html documentation [DOCDIR] | |
1287 | --dvidir=DIR dvi documentation [DOCDIR] | |
1288 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1289 | --psdir=DIR ps documentation [DOCDIR] | |
1290 | _ACEOF | |
1291 | ||
1292 | cat <<\_ACEOF | |
1293 | _ACEOF | |
1294 | fi | |
1295 | ||
1296 | if test -n "$ac_init_help"; then | |
1297 | ||
1298 | cat <<\_ACEOF | |
1299 | ||
1300 | Optional Features: | |
1301 | --disable-option-checking ignore unrecognized --enable/--with options | |
1302 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1303 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1304 | --enable-debugging Compile for debugging | |
1305 | ||
1306 | Some influential environment variables: | |
1307 | CC C compiler command | |
1308 | CFLAGS C compiler flags | |
1309 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1310 | nonstandard directory <lib dir> | |
1311 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1312 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1313 | you have headers in a nonstandard directory <include dir> | |
1314 | CPP C preprocessor | |
1315 | ||
1316 | Use these variables to override the choices made by `configure' or to help | |
1317 | it to find libraries and programs with nonstandard names/locations. | |
1318 | ||
1319 | Report bugs to the package provider. | |
1320 | _ACEOF | |
1321 | ac_status=$? | |
1322 | fi | |
1323 | ||
1324 | if test "$ac_init_help" = "recursive"; then | |
1325 | # If there are subdirs, report their specific --help. | |
1326 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1327 | test -d "$ac_dir" || | |
1328 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1329 | continue | |
1330 | ac_builddir=. | |
1331 | ||
1332 | case "$ac_dir" in | |
1333 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1334 | *) | |
1335 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1336 | # A ".." for each directory in $ac_dir_suffix. | |
1337 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1338 | case $ac_top_builddir_sub in | |
1339 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1340 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1341 | esac ;; | |
1342 | esac | |
1343 | ac_abs_top_builddir=$ac_pwd | |
1344 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1345 | # for backward compatibility: | |
1346 | ac_top_builddir=$ac_top_build_prefix | |
1347 | ||
1348 | case $srcdir in | |
1349 | .) # We are building in place. | |
1350 | ac_srcdir=. | |
1351 | ac_top_srcdir=$ac_top_builddir_sub | |
1352 | ac_abs_top_srcdir=$ac_pwd ;; | |
1353 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1354 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1355 | ac_top_srcdir=$srcdir | |
1356 | ac_abs_top_srcdir=$srcdir ;; | |
1357 | *) # Relative name. | |
1358 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1359 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1360 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1361 | esac | |
1362 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1363 | ||
1364 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1365 | # Check for guested configure. | |
1366 | if test -f "$ac_srcdir/configure.gnu"; then | |
1367 | echo && | |
1368 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1369 | elif test -f "$ac_srcdir/configure"; then | |
1370 | echo && | |
1371 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1372 | else | |
1373 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1374 | fi || ac_status=$? | |
1375 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1376 | done | |
1377 | fi | |
1378 | ||
1379 | test -n "$ac_init_help" && exit $ac_status | |
1380 | if $ac_init_version; then | |
1381 | cat <<\_ACEOF | |
1382 | configure | |
1383 | generated by GNU Autoconf 2.69 | |
1384 | ||
1385 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1386 | This configure script is free software; the Free Software Foundation | |
1387 | gives unlimited permission to copy, distribute and modify it. | |
1388 | _ACEOF | |
1389 | exit | |
1390 | fi | |
1391 | ||
1392 | ## ------------------------ ## | |
1393 | ## Autoconf initialization. ## | |
1394 | ## ------------------------ ## | |
1395 | ||
1396 | # ac_fn_c_try_compile LINENO | |
1397 | # -------------------------- | |
1398 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1399 | ac_fn_c_try_compile () | |
1400 | { | |
1401 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1402 | rm -f conftest.$ac_objext | |
1403 | if { { ac_try="$ac_compile" | |
1404 | case "(($ac_try" in | |
1405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1406 | *) ac_try_echo=$ac_try;; | |
1407 | esac | |
1408 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1409 | $as_echo "$ac_try_echo"; } >&5 | |
1410 | (eval "$ac_compile") 2>conftest.err | |
1411 | ac_status=$? | |
1412 | if test -s conftest.err; then | |
1413 | grep -v '^ *+' conftest.err >conftest.er1 | |
1414 | cat conftest.er1 >&5 | |
1415 | mv -f conftest.er1 conftest.err | |
1416 | fi | |
1417 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1418 | test $ac_status = 0; } && { | |
1419 | test -z "$ac_c_werror_flag" || | |
1420 | test ! -s conftest.err | |
1421 | } && test -s conftest.$ac_objext; then : | |
1422 | ac_retval=0 | |
1423 | else | |
1424 | $as_echo "$as_me: failed program was:" >&5 | |
1425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1426 | ||
1427 | ac_retval=1 | |
1428 | fi | |
1429 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1430 | as_fn_set_status $ac_retval | |
1431 | ||
1432 | } # ac_fn_c_try_compile | |
1433 | ||
1434 | # ac_fn_c_try_link LINENO | |
1435 | # ----------------------- | |
1436 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1437 | ac_fn_c_try_link () | |
1438 | { | |
1439 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1440 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1441 | if { { ac_try="$ac_link" | |
1442 | case "(($ac_try" in | |
1443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1444 | *) ac_try_echo=$ac_try;; | |
1445 | esac | |
1446 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1447 | $as_echo "$ac_try_echo"; } >&5 | |
1448 | (eval "$ac_link") 2>conftest.err | |
1449 | ac_status=$? | |
1450 | if test -s conftest.err; then | |
1451 | grep -v '^ *+' conftest.err >conftest.er1 | |
1452 | cat conftest.er1 >&5 | |
1453 | mv -f conftest.er1 conftest.err | |
1454 | fi | |
1455 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1456 | test $ac_status = 0; } && { | |
1457 | test -z "$ac_c_werror_flag" || | |
1458 | test ! -s conftest.err | |
1459 | } && test -s conftest$ac_exeext && { | |
1460 | test "$cross_compiling" = yes || | |
1461 | test -x conftest$ac_exeext | |
1462 | }; then : | |
1463 | ac_retval=0 | |
1464 | else | |
1465 | $as_echo "$as_me: failed program was:" >&5 | |
1466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1467 | ||
1468 | ac_retval=1 | |
1469 | fi | |
1470 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1471 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1472 | # interfere with the next link command; also delete a directory that is | |
1473 | # left behind by Apple's compiler. We do this before executing the actions. | |
1474 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1475 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1476 | as_fn_set_status $ac_retval | |
1477 | ||
1478 | } # ac_fn_c_try_link | |
1479 | ||
1480 | # ac_fn_c_try_cpp LINENO | |
1481 | # ---------------------- | |
1482 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1483 | ac_fn_c_try_cpp () | |
1484 | { | |
1485 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1486 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1487 | case "(($ac_try" in | |
1488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1489 | *) ac_try_echo=$ac_try;; | |
1490 | esac | |
1491 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1492 | $as_echo "$ac_try_echo"; } >&5 | |
1493 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1494 | ac_status=$? | |
1495 | if test -s conftest.err; then | |
1496 | grep -v '^ *+' conftest.err >conftest.er1 | |
1497 | cat conftest.er1 >&5 | |
1498 | mv -f conftest.er1 conftest.err | |
1499 | fi | |
1500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1501 | test $ac_status = 0; } > conftest.i && { | |
1502 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1503 | test ! -s conftest.err | |
1504 | }; then : | |
1505 | ac_retval=0 | |
1506 | else | |
1507 | $as_echo "$as_me: failed program was:" >&5 | |
1508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1509 | ||
1510 | ac_retval=1 | |
1511 | fi | |
1512 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1513 | as_fn_set_status $ac_retval | |
1514 | ||
1515 | } # ac_fn_c_try_cpp | |
1516 | ||
1517 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1518 | # ------------------------------------------------------- | |
1519 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1520 | # the include files in INCLUDES and setting the cache variable VAR | |
1521 | # accordingly. | |
1522 | ac_fn_c_check_header_mongrel () | |
1523 | { | |
1524 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1525 | if eval \${$3+:} false; then : | |
1526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1527 | $as_echo_n "checking for $2... " >&6; } | |
1528 | if eval \${$3+:} false; then : | |
1529 | $as_echo_n "(cached) " >&6 | |
1530 | fi | |
1531 | eval ac_res=\$$3 | |
1532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1533 | $as_echo "$ac_res" >&6; } | |
1534 | else | |
1535 | # Is the header compilable? | |
1536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1537 | $as_echo_n "checking $2 usability... " >&6; } | |
1538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1539 | /* end confdefs.h. */ | |
1540 | $4 | |
1541 | #include <$2> | |
1542 | _ACEOF | |
1543 | if ac_fn_c_try_compile "$LINENO"; then : | |
1544 | ac_header_compiler=yes | |
1545 | else | |
1546 | ac_header_compiler=no | |
1547 | fi | |
1548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1550 | $as_echo "$ac_header_compiler" >&6; } | |
1551 | ||
1552 | # Is the header present? | |
1553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1554 | $as_echo_n "checking $2 presence... " >&6; } | |
1555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1556 | /* end confdefs.h. */ | |
1557 | #include <$2> | |
1558 | _ACEOF | |
1559 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1560 | ac_header_preproc=yes | |
1561 | else | |
1562 | ac_header_preproc=no | |
1563 | fi | |
1564 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1566 | $as_echo "$ac_header_preproc" >&6; } | |
1567 | ||
1568 | # So? What about this header? | |
1569 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1570 | yes:no: ) | |
1571 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1572 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1573 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1574 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1575 | ;; | |
1576 | no:yes:* ) | |
1577 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1578 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1579 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1580 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1581 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1582 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1583 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1584 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1585 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1586 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1587 | ;; | |
1588 | esac | |
1589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1590 | $as_echo_n "checking for $2... " >&6; } | |
1591 | if eval \${$3+:} false; then : | |
1592 | $as_echo_n "(cached) " >&6 | |
1593 | else | |
1594 | eval "$3=\$ac_header_compiler" | |
1595 | fi | |
1596 | eval ac_res=\$$3 | |
1597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1598 | $as_echo "$ac_res" >&6; } | |
1599 | fi | |
1600 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1601 | ||
1602 | } # ac_fn_c_check_header_mongrel | |
1603 | ||
1604 | # ac_fn_c_try_run LINENO | |
1605 | # ---------------------- | |
1606 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1607 | # that executables *can* be run. | |
1608 | ac_fn_c_try_run () | |
1609 | { | |
1610 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1611 | if { { ac_try="$ac_link" | |
1612 | case "(($ac_try" in | |
1613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1614 | *) ac_try_echo=$ac_try;; | |
1615 | esac | |
1616 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1617 | $as_echo "$ac_try_echo"; } >&5 | |
1618 | (eval "$ac_link") 2>&5 | |
1619 | ac_status=$? | |
1620 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1621 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1622 | { { case "(($ac_try" in | |
1623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1624 | *) ac_try_echo=$ac_try;; | |
1625 | esac | |
1626 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1627 | $as_echo "$ac_try_echo"; } >&5 | |
1628 | (eval "$ac_try") 2>&5 | |
1629 | ac_status=$? | |
1630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1631 | test $ac_status = 0; }; }; then : | |
1632 | ac_retval=0 | |
1633 | else | |
1634 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1635 | $as_echo "$as_me: failed program was:" >&5 | |
1636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1637 | ||
1638 | ac_retval=$ac_status | |
1639 | fi | |
1640 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1641 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1642 | as_fn_set_status $ac_retval | |
1643 | ||
1644 | } # ac_fn_c_try_run | |
1645 | ||
1646 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1647 | # ------------------------------------------------------- | |
1648 | # Tests whether HEADER exists and can be compiled using the include files in | |
1649 | # INCLUDES, setting the cache variable VAR accordingly. | |
1650 | ac_fn_c_check_header_compile () | |
1651 | { | |
1652 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1654 | $as_echo_n "checking for $2... " >&6; } | |
1655 | if eval \${$3+:} false; then : | |
1656 | $as_echo_n "(cached) " >&6 | |
1657 | else | |
1658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1659 | /* end confdefs.h. */ | |
1660 | $4 | |
1661 | #include <$2> | |
1662 | _ACEOF | |
1663 | if ac_fn_c_try_compile "$LINENO"; then : | |
1664 | eval "$3=yes" | |
1665 | else | |
1666 | eval "$3=no" | |
1667 | fi | |
1668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1669 | fi | |
1670 | eval ac_res=\$$3 | |
1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1672 | $as_echo "$ac_res" >&6; } | |
1673 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1674 | ||
1675 | } # ac_fn_c_check_header_compile | |
1676 | cat >config.log <<_ACEOF | |
1677 | This file contains any messages produced by compilers while | |
1678 | running configure, to aid debugging if configure makes a mistake. | |
1679 | ||
1680 | It was created by $as_me, which was | |
1681 | generated by GNU Autoconf 2.69. Invocation command line was | |
1682 | ||
1683 | $ $0 $@ | |
1684 | ||
1685 | _ACEOF | |
1686 | exec 5>>config.log | |
1687 | { | |
1688 | cat <<_ASUNAME | |
1689 | ## --------- ## | |
1690 | ## Platform. ## | |
1691 | ## --------- ## | |
1692 | ||
1693 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1694 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1695 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1696 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1697 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1698 | ||
1699 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1700 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1701 | ||
1702 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1703 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1704 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1705 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1706 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1707 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1708 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1709 | ||
1710 | _ASUNAME | |
1711 | ||
1712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1713 | for as_dir in $PATH | |
1714 | do | |
1715 | IFS=$as_save_IFS | |
1716 | test -z "$as_dir" && as_dir=. | |
1717 | $as_echo "PATH: $as_dir" | |
1718 | done | |
1719 | IFS=$as_save_IFS | |
1720 | ||
1721 | } >&5 | |
1722 | ||
1723 | cat >&5 <<_ACEOF | |
1724 | ||
1725 | ||
1726 | ## ----------- ## | |
1727 | ## Core tests. ## | |
1728 | ## ----------- ## | |
1729 | ||
1730 | _ACEOF | |
1731 | ||
1732 | ||
1733 | # Keep a trace of the command line. | |
1734 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1735 | # Strip out --silent because we don't want to record it for future runs. | |
1736 | # Also quote any args containing shell meta-characters. | |
1737 | # Make two passes to allow for proper duplicate-argument suppression. | |
1738 | ac_configure_args= | |
1739 | ac_configure_args0= | |
1740 | ac_configure_args1= | |
1741 | ac_must_keep_next=false | |
1742 | for ac_pass in 1 2 | |
1743 | do | |
1744 | for ac_arg | |
1745 | do | |
1746 | case $ac_arg in | |
1747 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1748 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1749 | | -silent | --silent | --silen | --sile | --sil) | |
1750 | continue ;; | |
1751 | *\'*) | |
1752 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1753 | esac | |
1754 | case $ac_pass in | |
1755 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1756 | 2) | |
1757 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
1758 | if test $ac_must_keep_next = true; then | |
1759 | ac_must_keep_next=false # Got value, back to normal. | |
1760 | else | |
1761 | case $ac_arg in | |
1762 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1763 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1764 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1765 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1766 | case "$ac_configure_args0 " in | |
1767 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1768 | esac | |
1769 | ;; | |
1770 | -* ) ac_must_keep_next=true ;; | |
1771 | esac | |
1772 | fi | |
1773 | as_fn_append ac_configure_args " '$ac_arg'" | |
1774 | ;; | |
1775 | esac | |
1776 | done | |
1777 | done | |
1778 | { ac_configure_args0=; unset ac_configure_args0;} | |
1779 | { ac_configure_args1=; unset ac_configure_args1;} | |
1780 | ||
1781 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1782 | # config.log. We remove comments because anyway the quotes in there | |
1783 | # would cause problems or look ugly. | |
1784 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1785 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1786 | trap 'exit_status=$? | |
1787 | # Save into config.log some information that might help in debugging. | |
1788 | { | |
1789 | echo | |
1790 | ||
1791 | $as_echo "## ---------------- ## | |
1792 | ## Cache variables. ## | |
1793 | ## ---------------- ##" | |
1794 | echo | |
1795 | # The following way of writing the cache mishandles newlines in values, | |
1796 | ( | |
1797 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1798 | eval ac_val=\$$ac_var | |
1799 | case $ac_val in #( | |
1800 | *${as_nl}*) | |
1801 | case $ac_var in #( | |
1802 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1803 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1804 | esac | |
1805 | case $ac_var in #( | |
1806 | _ | IFS | as_nl) ;; #( | |
1807 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1808 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1809 | esac ;; | |
1810 | esac | |
1811 | done | |
1812 | (set) 2>&1 | | |
1813 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1814 | *${as_nl}ac_space=\ *) | |
1815 | sed -n \ | |
1816 | "s/'\''/'\''\\\\'\'''\''/g; | |
1817 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1818 | ;; #( | |
1819 | *) | |
1820 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1821 | ;; | |
1822 | esac | | |
1823 | sort | |
1824 | ) | |
1825 | echo | |
1826 | ||
1827 | $as_echo "## ----------------- ## | |
1828 | ## Output variables. ## | |
1829 | ## ----------------- ##" | |
1830 | echo | |
1831 | for ac_var in $ac_subst_vars | |
1832 | do | |
1833 | eval ac_val=\$$ac_var | |
1834 | case $ac_val in | |
1835 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1836 | esac | |
1837 | $as_echo "$ac_var='\''$ac_val'\''" | |
1838 | done | sort | |
1839 | echo | |
1840 | ||
1841 | if test -n "$ac_subst_files"; then | |
1842 | $as_echo "## ------------------- ## | |
1843 | ## File substitutions. ## | |
1844 | ## ------------------- ##" | |
1845 | echo | |
1846 | for ac_var in $ac_subst_files | |
1847 | do | |
1848 | eval ac_val=\$$ac_var | |
1849 | case $ac_val in | |
1850 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1851 | esac | |
1852 | $as_echo "$ac_var='\''$ac_val'\''" | |
1853 | done | sort | |
1854 | echo | |
1855 | fi | |
1856 | ||
1857 | if test -s confdefs.h; then | |
1858 | $as_echo "## ----------- ## | |
1859 | ## confdefs.h. ## | |
1860 | ## ----------- ##" | |
1861 | echo | |
1862 | cat confdefs.h | |
1863 | echo | |
1864 | fi | |
1865 | test "$ac_signal" != 0 && | |
1866 | $as_echo "$as_me: caught signal $ac_signal" | |
1867 | $as_echo "$as_me: exit $exit_status" | |
1868 | } >&5 | |
1869 | rm -f core *.core core.conftest.* && | |
1870 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1871 | exit $exit_status | |
1872 | ' 0 | |
1873 | for ac_signal in 1 2 13 15; do | |
1874 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
1875 | done | |
1876 | ac_signal=0 | |
1877 | ||
1878 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1879 | rm -f -r conftest* confdefs.h | |
1880 | ||
1881 | $as_echo "/* confdefs.h */" > confdefs.h | |
1882 | ||
1883 | # Predefined preprocessor variables. | |
1884 | ||
1885 | cat >>confdefs.h <<_ACEOF | |
1886 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1887 | _ACEOF | |
1888 | ||
1889 | cat >>confdefs.h <<_ACEOF | |
1890 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1891 | _ACEOF | |
1892 | ||
1893 | cat >>confdefs.h <<_ACEOF | |
1894 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1895 | _ACEOF | |
1896 | ||
1897 | cat >>confdefs.h <<_ACEOF | |
1898 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1899 | _ACEOF | |
1900 | ||
1901 | cat >>confdefs.h <<_ACEOF | |
1902 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1903 | _ACEOF | |
1904 | ||
1905 | cat >>confdefs.h <<_ACEOF | |
1906 | #define PACKAGE_URL "$PACKAGE_URL" | |
1907 | _ACEOF | |
1908 | ||
1909 | ||
1910 | # Let the site file select an alternate cache file if it wants to. | |
1911 | # Prefer an explicitly selected file to automatically selected ones. | |
1912 | ac_site_file1=NONE | |
1913 | ac_site_file2=NONE | |
1914 | if test -n "$CONFIG_SITE"; then | |
1915 | # We do not want a PATH search for config.site. | |
1916 | case $CONFIG_SITE in #(( | |
1917 | -*) ac_site_file1=./$CONFIG_SITE;; | |
1918 | */*) ac_site_file1=$CONFIG_SITE;; | |
1919 | *) ac_site_file1=./$CONFIG_SITE;; | |
1920 | esac | |
1921 | elif test "x$prefix" != xNONE; then | |
1922 | ac_site_file1=$prefix/share/config.site | |
1923 | ac_site_file2=$prefix/etc/config.site | |
1924 | else | |
1925 | ac_site_file1=$ac_default_prefix/share/config.site | |
1926 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1927 | fi | |
1928 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1929 | do | |
1930 | test "x$ac_site_file" = xNONE && continue | |
1931 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
1932 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
1933 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1934 | sed 's/^/| /' "$ac_site_file" >&5 | |
1935 | . "$ac_site_file" \ | |
1936 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1937 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1938 | as_fn_error $? "failed to load site script $ac_site_file | |
1939 | See \`config.log' for more details" "$LINENO" 5; } | |
1940 | fi | |
1941 | done | |
1942 | ||
1943 | if test -r "$cache_file"; then | |
1944 | # Some versions of bash will fail to source /dev/null (special files | |
1945 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
1946 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
1947 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
1948 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1949 | case $cache_file in | |
1950 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1951 | *) . "./$cache_file";; | |
1952 | esac | |
1953 | fi | |
1954 | else | |
1955 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
1956 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1957 | >$cache_file | |
1958 | fi | |
1959 | ||
1960 | # Check that the precious variables saved in the cache have kept the same | |
1961 | # value. | |
1962 | ac_cache_corrupted=false | |
1963 | for ac_var in $ac_precious_vars; do | |
1964 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1965 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1966 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1967 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1968 | case $ac_old_set,$ac_new_set in | |
1969 | set,) | |
1970 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1971 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1972 | ac_cache_corrupted=: ;; | |
1973 | ,set) | |
1974 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
1975 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1976 | ac_cache_corrupted=: ;; | |
1977 | ,);; | |
1978 | *) | |
1979 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1980 | # differences in whitespace do not lead to failure. | |
1981 | ac_old_val_w=`echo x $ac_old_val` | |
1982 | ac_new_val_w=`echo x $ac_new_val` | |
1983 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1984 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1985 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1986 | ac_cache_corrupted=: | |
1987 | else | |
1988 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1989 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1990 | eval $ac_var=\$ac_old_val | |
1991 | fi | |
1992 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
1993 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1994 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
1995 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1996 | fi;; | |
1997 | esac | |
1998 | # Pass precious variables to config.status. | |
1999 | if test "$ac_new_set" = set; then | |
2000 | case $ac_new_val in | |
2001 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2002 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2003 | esac | |
2004 | case " $ac_configure_args " in | |
2005 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2006 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2007 | esac | |
2008 | fi | |
2009 | done | |
2010 | if $ac_cache_corrupted; then | |
2011 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2012 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2013 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2014 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2015 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2016 | fi | |
2017 | ## -------------------- ## | |
2018 | ## Main body of script. ## | |
2019 | ## -------------------- ## | |
2020 | ||
2021 | ac_ext=c | |
2022 | ac_cpp='$CPP $CPPFLAGS' | |
2023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2026 | ||
2027 | ||
2028 | ac_config_headers="$ac_config_headers config.h" | |
2029 | ||
257
62e294ab94f5
Version 0.0.6. Added a crontask that adjusts the stage of packaged beer depending on the days passed packaging
Michiel Broek <mbroek@mbse.eu>
parents:
248
diff
changeset
|
2030 | SUBDIRS="bmsd doc script tools www" |
0 | 2031 | |
2032 | ||
2033 | PACKAGE="bms" | |
286
124af734af68
Version 0.1.0. Removed localization because it was messy, parts were localized and others not. In production and recipes ingredients not in stock are marked in red.
Michiel Broek <mbroek@mbse.eu>
parents:
257
diff
changeset
|
2034 | VERSION="0.1.0" |
191
fd1d7225ca6e
Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents:
5
diff
changeset
|
2035 | COPYRIGHT="Copyright (C) 2016-2019 Michiel Broek, All Rights Reserved" |
fd1d7225ca6e
Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents:
5
diff
changeset
|
2036 | CYEARS="2016-2019" |
0 | 2037 | |
2038 | ||
2039 | ||
2040 | ||
2041 | ||
2042 | cat >>confdefs.h <<_ACEOF | |
2043 | #define VERSION "$VERSION" | |
2044 | _ACEOF | |
2045 | ||
2046 | cat >>confdefs.h <<_ACEOF | |
2047 | #define COPYRIGHT "$COPYRIGHT" | |
2048 | _ACEOF | |
2049 | ||
2050 | TARGET="$target" | |
2051 | ||
2052 | ||
2053 | ac_ext=c | |
2054 | ac_cpp='$CPP $CPPFLAGS' | |
2055 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2056 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2057 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2058 | if test -n "$ac_tool_prefix"; then | |
2059 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2060 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2062 | $as_echo_n "checking for $ac_word... " >&6; } | |
2063 | if ${ac_cv_prog_CC+:} false; then : | |
2064 | $as_echo_n "(cached) " >&6 | |
2065 | else | |
2066 | if test -n "$CC"; then | |
2067 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2068 | else | |
2069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2070 | for as_dir in $PATH | |
2071 | do | |
2072 | IFS=$as_save_IFS | |
2073 | test -z "$as_dir" && as_dir=. | |
2074 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2075 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2076 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2078 | break 2 | |
2079 | fi | |
2080 | done | |
2081 | done | |
2082 | IFS=$as_save_IFS | |
2083 | ||
2084 | fi | |
2085 | fi | |
2086 | CC=$ac_cv_prog_CC | |
2087 | if test -n "$CC"; then | |
2088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2089 | $as_echo "$CC" >&6; } | |
2090 | else | |
2091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2092 | $as_echo "no" >&6; } | |
2093 | fi | |
2094 | ||
2095 | ||
2096 | fi | |
2097 | if test -z "$ac_cv_prog_CC"; then | |
2098 | ac_ct_CC=$CC | |
2099 | # Extract the first word of "gcc", so it can be a program name with args. | |
2100 | set dummy gcc; ac_word=$2 | |
2101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2102 | $as_echo_n "checking for $ac_word... " >&6; } | |
2103 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2104 | $as_echo_n "(cached) " >&6 | |
2105 | else | |
2106 | if test -n "$ac_ct_CC"; then | |
2107 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2108 | else | |
2109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2110 | for as_dir in $PATH | |
2111 | do | |
2112 | IFS=$as_save_IFS | |
2113 | test -z "$as_dir" && as_dir=. | |
2114 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2115 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2116 | ac_cv_prog_ac_ct_CC="gcc" | |
2117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2118 | break 2 | |
2119 | fi | |
2120 | done | |
2121 | done | |
2122 | IFS=$as_save_IFS | |
2123 | ||
2124 | fi | |
2125 | fi | |
2126 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2127 | if test -n "$ac_ct_CC"; then | |
2128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2129 | $as_echo "$ac_ct_CC" >&6; } | |
2130 | else | |
2131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2132 | $as_echo "no" >&6; } | |
2133 | fi | |
2134 | ||
2135 | if test "x$ac_ct_CC" = x; then | |
2136 | CC="" | |
2137 | else | |
2138 | case $cross_compiling:$ac_tool_warned in | |
2139 | yes:) | |
2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2141 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2142 | ac_tool_warned=yes ;; | |
2143 | esac | |
2144 | CC=$ac_ct_CC | |
2145 | fi | |
2146 | else | |
2147 | CC="$ac_cv_prog_CC" | |
2148 | fi | |
2149 | ||
2150 | if test -z "$CC"; then | |
2151 | if test -n "$ac_tool_prefix"; then | |
2152 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2153 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2155 | $as_echo_n "checking for $ac_word... " >&6; } | |
2156 | if ${ac_cv_prog_CC+:} false; then : | |
2157 | $as_echo_n "(cached) " >&6 | |
2158 | else | |
2159 | if test -n "$CC"; then | |
2160 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2161 | else | |
2162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2163 | for as_dir in $PATH | |
2164 | do | |
2165 | IFS=$as_save_IFS | |
2166 | test -z "$as_dir" && as_dir=. | |
2167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2168 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2169 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2171 | break 2 | |
2172 | fi | |
2173 | done | |
2174 | done | |
2175 | IFS=$as_save_IFS | |
2176 | ||
2177 | fi | |
2178 | fi | |
2179 | CC=$ac_cv_prog_CC | |
2180 | if test -n "$CC"; then | |
2181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2182 | $as_echo "$CC" >&6; } | |
2183 | else | |
2184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2185 | $as_echo "no" >&6; } | |
2186 | fi | |
2187 | ||
2188 | ||
2189 | fi | |
2190 | fi | |
2191 | if test -z "$CC"; then | |
2192 | # Extract the first word of "cc", so it can be a program name with args. | |
2193 | set dummy cc; ac_word=$2 | |
2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2195 | $as_echo_n "checking for $ac_word... " >&6; } | |
2196 | if ${ac_cv_prog_CC+:} false; then : | |
2197 | $as_echo_n "(cached) " >&6 | |
2198 | else | |
2199 | if test -n "$CC"; then | |
2200 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2201 | else | |
2202 | ac_prog_rejected=no | |
2203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2204 | for as_dir in $PATH | |
2205 | do | |
2206 | IFS=$as_save_IFS | |
2207 | test -z "$as_dir" && as_dir=. | |
2208 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2209 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2210 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2211 | ac_prog_rejected=yes | |
2212 | continue | |
2213 | fi | |
2214 | ac_cv_prog_CC="cc" | |
2215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2216 | break 2 | |
2217 | fi | |
2218 | done | |
2219 | done | |
2220 | IFS=$as_save_IFS | |
2221 | ||
2222 | if test $ac_prog_rejected = yes; then | |
2223 | # We found a bogon in the path, so make sure we never use it. | |
2224 | set dummy $ac_cv_prog_CC | |
2225 | shift | |
2226 | if test $# != 0; then | |
2227 | # We chose a different compiler from the bogus one. | |
2228 | # However, it has the same basename, so the bogon will be chosen | |
2229 | # first if we set CC to just the basename; use the full file name. | |
2230 | shift | |
2231 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2232 | fi | |
2233 | fi | |
2234 | fi | |
2235 | fi | |
2236 | CC=$ac_cv_prog_CC | |
2237 | if test -n "$CC"; then | |
2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2239 | $as_echo "$CC" >&6; } | |
2240 | else | |
2241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2242 | $as_echo "no" >&6; } | |
2243 | fi | |
2244 | ||
2245 | ||
2246 | fi | |
2247 | if test -z "$CC"; then | |
2248 | if test -n "$ac_tool_prefix"; then | |
2249 | for ac_prog in cl.exe | |
2250 | do | |
2251 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2252 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2254 | $as_echo_n "checking for $ac_word... " >&6; } | |
2255 | if ${ac_cv_prog_CC+:} false; then : | |
2256 | $as_echo_n "(cached) " >&6 | |
2257 | else | |
2258 | if test -n "$CC"; then | |
2259 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2260 | else | |
2261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2262 | for as_dir in $PATH | |
2263 | do | |
2264 | IFS=$as_save_IFS | |
2265 | test -z "$as_dir" && as_dir=. | |
2266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2267 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2268 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2269 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2270 | break 2 | |
2271 | fi | |
2272 | done | |
2273 | done | |
2274 | IFS=$as_save_IFS | |
2275 | ||
2276 | fi | |
2277 | fi | |
2278 | CC=$ac_cv_prog_CC | |
2279 | if test -n "$CC"; then | |
2280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2281 | $as_echo "$CC" >&6; } | |
2282 | else | |
2283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2284 | $as_echo "no" >&6; } | |
2285 | fi | |
2286 | ||
2287 | ||
2288 | test -n "$CC" && break | |
2289 | done | |
2290 | fi | |
2291 | if test -z "$CC"; then | |
2292 | ac_ct_CC=$CC | |
2293 | for ac_prog in cl.exe | |
2294 | do | |
2295 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2296 | set dummy $ac_prog; ac_word=$2 | |
2297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2298 | $as_echo_n "checking for $ac_word... " >&6; } | |
2299 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2300 | $as_echo_n "(cached) " >&6 | |
2301 | else | |
2302 | if test -n "$ac_ct_CC"; then | |
2303 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2304 | else | |
2305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2306 | for as_dir in $PATH | |
2307 | do | |
2308 | IFS=$as_save_IFS | |
2309 | test -z "$as_dir" && as_dir=. | |
2310 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2311 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2312 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2314 | break 2 | |
2315 | fi | |
2316 | done | |
2317 | done | |
2318 | IFS=$as_save_IFS | |
2319 | ||
2320 | fi | |
2321 | fi | |
2322 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2323 | if test -n "$ac_ct_CC"; then | |
2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2325 | $as_echo "$ac_ct_CC" >&6; } | |
2326 | else | |
2327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2328 | $as_echo "no" >&6; } | |
2329 | fi | |
2330 | ||
2331 | ||
2332 | test -n "$ac_ct_CC" && break | |
2333 | done | |
2334 | ||
2335 | if test "x$ac_ct_CC" = x; then | |
2336 | CC="" | |
2337 | else | |
2338 | case $cross_compiling:$ac_tool_warned in | |
2339 | yes:) | |
2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2341 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2342 | ac_tool_warned=yes ;; | |
2343 | esac | |
2344 | CC=$ac_ct_CC | |
2345 | fi | |
2346 | fi | |
2347 | ||
2348 | fi | |
2349 | ||
2350 | ||
2351 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2352 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2353 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2354 | See \`config.log' for more details" "$LINENO" 5; } | |
2355 | ||
2356 | # Provide some information about the compiler. | |
2357 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2358 | set X $ac_compile | |
2359 | ac_compiler=$2 | |
2360 | for ac_option in --version -v -V -qversion; do | |
2361 | { { ac_try="$ac_compiler $ac_option >&5" | |
2362 | case "(($ac_try" in | |
2363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2364 | *) ac_try_echo=$ac_try;; | |
2365 | esac | |
2366 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2367 | $as_echo "$ac_try_echo"; } >&5 | |
2368 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2369 | ac_status=$? | |
2370 | if test -s conftest.err; then | |
2371 | sed '10a\ | |
2372 | ... rest of stderr output deleted ... | |
2373 | 10q' conftest.err >conftest.er1 | |
2374 | cat conftest.er1 >&5 | |
2375 | fi | |
2376 | rm -f conftest.er1 conftest.err | |
2377 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2378 | test $ac_status = 0; } | |
2379 | done | |
2380 | ||
2381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2382 | /* end confdefs.h. */ | |
2383 | ||
2384 | int | |
2385 | main () | |
2386 | { | |
2387 | ||
2388 | ; | |
2389 | return 0; | |
2390 | } | |
2391 | _ACEOF | |
2392 | ac_clean_files_save=$ac_clean_files | |
2393 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2394 | # Try to create an executable without -o first, disregard a.out. | |
2395 | # It will help us diagnose broken compilers, and finding out an intuition | |
2396 | # of exeext. | |
2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2398 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2399 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2400 | ||
2401 | # The possible output files: | |
2402 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2403 | ||
2404 | ac_rmfiles= | |
2405 | for ac_file in $ac_files | |
2406 | do | |
2407 | case $ac_file in | |
2408 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2409 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2410 | esac | |
2411 | done | |
2412 | rm -f $ac_rmfiles | |
2413 | ||
2414 | if { { ac_try="$ac_link_default" | |
2415 | case "(($ac_try" in | |
2416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2417 | *) ac_try_echo=$ac_try;; | |
2418 | esac | |
2419 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2420 | $as_echo "$ac_try_echo"; } >&5 | |
2421 | (eval "$ac_link_default") 2>&5 | |
2422 | ac_status=$? | |
2423 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2424 | test $ac_status = 0; }; then : | |
2425 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2426 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2427 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2428 | # so that the user can short-circuit this test for compilers unknown to | |
2429 | # Autoconf. | |
2430 | for ac_file in $ac_files '' | |
2431 | do | |
2432 | test -f "$ac_file" || continue | |
2433 | case $ac_file in | |
2434 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2435 | ;; | |
2436 | [ab].out ) | |
2437 | # We found the default executable, but exeext='' is most | |
2438 | # certainly right. | |
2439 | break;; | |
2440 | *.* ) | |
2441 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2442 | then :; else | |
2443 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2444 | fi | |
2445 | # We set ac_cv_exeext here because the later test for it is not | |
2446 | # safe: cross compilers may not add the suffix if given an `-o' | |
2447 | # argument, so we may need to know it at that point already. | |
2448 | # Even if this section looks crufty: it has the advantage of | |
2449 | # actually working. | |
2450 | break;; | |
2451 | * ) | |
2452 | break;; | |
2453 | esac | |
2454 | done | |
2455 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2456 | ||
2457 | else | |
2458 | ac_file='' | |
2459 | fi | |
2460 | if test -z "$ac_file"; then : | |
2461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2462 | $as_echo "no" >&6; } | |
2463 | $as_echo "$as_me: failed program was:" >&5 | |
2464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2465 | ||
2466 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2467 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2468 | as_fn_error 77 "C compiler cannot create executables | |
2469 | See \`config.log' for more details" "$LINENO" 5; } | |
2470 | else | |
2471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2472 | $as_echo "yes" >&6; } | |
2473 | fi | |
2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2475 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2477 | $as_echo "$ac_file" >&6; } | |
2478 | ac_exeext=$ac_cv_exeext | |
2479 | ||
2480 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2481 | ac_clean_files=$ac_clean_files_save | |
2482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2483 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2484 | if { { ac_try="$ac_link" | |
2485 | case "(($ac_try" in | |
2486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2487 | *) ac_try_echo=$ac_try;; | |
2488 | esac | |
2489 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2490 | $as_echo "$ac_try_echo"; } >&5 | |
2491 | (eval "$ac_link") 2>&5 | |
2492 | ac_status=$? | |
2493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2494 | test $ac_status = 0; }; then : | |
2495 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2496 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2497 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2498 | # `rm'. | |
2499 | for ac_file in conftest.exe conftest conftest.*; do | |
2500 | test -f "$ac_file" || continue | |
2501 | case $ac_file in | |
2502 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2503 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2504 | break;; | |
2505 | * ) break;; | |
2506 | esac | |
2507 | done | |
2508 | else | |
2509 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2510 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2511 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
2512 | See \`config.log' for more details" "$LINENO" 5; } | |
2513 | fi | |
2514 | rm -f conftest conftest$ac_cv_exeext | |
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2516 | $as_echo "$ac_cv_exeext" >&6; } | |
2517 | ||
2518 | rm -f conftest.$ac_ext | |
2519 | EXEEXT=$ac_cv_exeext | |
2520 | ac_exeext=$EXEEXT | |
2521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2522 | /* end confdefs.h. */ | |
2523 | #include <stdio.h> | |
2524 | int | |
2525 | main () | |
2526 | { | |
2527 | FILE *f = fopen ("conftest.out", "w"); | |
2528 | return ferror (f) || fclose (f) != 0; | |
2529 | ||
2530 | ; | |
2531 | return 0; | |
2532 | } | |
2533 | _ACEOF | |
2534 | ac_clean_files="$ac_clean_files conftest.out" | |
2535 | # Check that the compiler produces executables we can run. If not, either | |
2536 | # the compiler is broken, or we cross compile. | |
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2538 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2539 | if test "$cross_compiling" != yes; then | |
2540 | { { ac_try="$ac_link" | |
2541 | case "(($ac_try" in | |
2542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2543 | *) ac_try_echo=$ac_try;; | |
2544 | esac | |
2545 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2546 | $as_echo "$ac_try_echo"; } >&5 | |
2547 | (eval "$ac_link") 2>&5 | |
2548 | ac_status=$? | |
2549 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2550 | test $ac_status = 0; } | |
2551 | if { ac_try='./conftest$ac_cv_exeext' | |
2552 | { { case "(($ac_try" in | |
2553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2554 | *) ac_try_echo=$ac_try;; | |
2555 | esac | |
2556 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2557 | $as_echo "$ac_try_echo"; } >&5 | |
2558 | (eval "$ac_try") 2>&5 | |
2559 | ac_status=$? | |
2560 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2561 | test $ac_status = 0; }; }; then | |
2562 | cross_compiling=no | |
2563 | else | |
2564 | if test "$cross_compiling" = maybe; then | |
2565 | cross_compiling=yes | |
2566 | else | |
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 $? "cannot run C compiled programs. | |
2570 | If you meant to cross compile, use \`--host'. | |
2571 | See \`config.log' for more details" "$LINENO" 5; } | |
2572 | fi | |
2573 | fi | |
2574 | fi | |
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2576 | $as_echo "$cross_compiling" >&6; } | |
2577 | ||
2578 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2579 | ac_clean_files=$ac_clean_files_save | |
2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
2581 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2582 | if ${ac_cv_objext+:} false; then : | |
2583 | $as_echo_n "(cached) " >&6 | |
2584 | else | |
2585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2586 | /* end confdefs.h. */ | |
2587 | ||
2588 | int | |
2589 | main () | |
2590 | { | |
2591 | ||
2592 | ; | |
2593 | return 0; | |
2594 | } | |
2595 | _ACEOF | |
2596 | rm -f conftest.o conftest.obj | |
2597 | if { { ac_try="$ac_compile" | |
2598 | case "(($ac_try" in | |
2599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2600 | *) ac_try_echo=$ac_try;; | |
2601 | esac | |
2602 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2603 | $as_echo "$ac_try_echo"; } >&5 | |
2604 | (eval "$ac_compile") 2>&5 | |
2605 | ac_status=$? | |
2606 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2607 | test $ac_status = 0; }; then : | |
2608 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2609 | test -f "$ac_file" || continue; | |
2610 | case $ac_file in | |
2611 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2612 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2613 | break;; | |
2614 | esac | |
2615 | done | |
2616 | else | |
2617 | $as_echo "$as_me: failed program was:" >&5 | |
2618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2619 | ||
2620 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2621 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2622 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
2623 | See \`config.log' for more details" "$LINENO" 5; } | |
2624 | fi | |
2625 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2626 | fi | |
2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2628 | $as_echo "$ac_cv_objext" >&6; } | |
2629 | OBJEXT=$ac_cv_objext | |
2630 | ac_objext=$OBJEXT | |
2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2632 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2633 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
2634 | $as_echo_n "(cached) " >&6 | |
2635 | else | |
2636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2637 | /* end confdefs.h. */ | |
2638 | ||
2639 | int | |
2640 | main () | |
2641 | { | |
2642 | #ifndef __GNUC__ | |
2643 | choke me | |
2644 | #endif | |
2645 | ||
2646 | ; | |
2647 | return 0; | |
2648 | } | |
2649 | _ACEOF | |
2650 | if ac_fn_c_try_compile "$LINENO"; then : | |
2651 | ac_compiler_gnu=yes | |
2652 | else | |
2653 | ac_compiler_gnu=no | |
2654 | fi | |
2655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2656 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2657 | ||
2658 | fi | |
2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
2660 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2661 | if test $ac_compiler_gnu = yes; then | |
2662 | GCC=yes | |
2663 | else | |
2664 | GCC= | |
2665 | fi | |
2666 | ac_test_CFLAGS=${CFLAGS+set} | |
2667 | ac_save_CFLAGS=$CFLAGS | |
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
2669 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2670 | if ${ac_cv_prog_cc_g+:} false; then : | |
2671 | $as_echo_n "(cached) " >&6 | |
2672 | else | |
2673 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2674 | ac_c_werror_flag=yes | |
2675 | ac_cv_prog_cc_g=no | |
2676 | CFLAGS="-g" | |
2677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2678 | /* end confdefs.h. */ | |
2679 | ||
2680 | int | |
2681 | main () | |
2682 | { | |
2683 | ||
2684 | ; | |
2685 | return 0; | |
2686 | } | |
2687 | _ACEOF | |
2688 | if ac_fn_c_try_compile "$LINENO"; then : | |
2689 | ac_cv_prog_cc_g=yes | |
2690 | else | |
2691 | CFLAGS="" | |
2692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2693 | /* end confdefs.h. */ | |
2694 | ||
2695 | int | |
2696 | main () | |
2697 | { | |
2698 | ||
2699 | ; | |
2700 | return 0; | |
2701 | } | |
2702 | _ACEOF | |
2703 | if ac_fn_c_try_compile "$LINENO"; then : | |
2704 | ||
2705 | else | |
2706 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2707 | CFLAGS="-g" | |
2708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2709 | /* end confdefs.h. */ | |
2710 | ||
2711 | int | |
2712 | main () | |
2713 | { | |
2714 | ||
2715 | ; | |
2716 | return 0; | |
2717 | } | |
2718 | _ACEOF | |
2719 | if ac_fn_c_try_compile "$LINENO"; then : | |
2720 | ac_cv_prog_cc_g=yes | |
2721 | fi | |
2722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2723 | fi | |
2724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2725 | fi | |
2726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2727 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2728 | fi | |
2729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2730 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
2731 | if test "$ac_test_CFLAGS" = set; then | |
2732 | CFLAGS=$ac_save_CFLAGS | |
2733 | elif test $ac_cv_prog_cc_g = yes; then | |
2734 | if test "$GCC" = yes; then | |
2735 | CFLAGS="-g -O2" | |
2736 | else | |
2737 | CFLAGS="-g" | |
2738 | fi | |
2739 | else | |
2740 | if test "$GCC" = yes; then | |
2741 | CFLAGS="-O2" | |
2742 | else | |
2743 | CFLAGS= | |
2744 | fi | |
2745 | fi | |
2746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
2747 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
2748 | if ${ac_cv_prog_cc_c89+:} false; then : | |
2749 | $as_echo_n "(cached) " >&6 | |
2750 | else | |
2751 | ac_cv_prog_cc_c89=no | |
2752 | ac_save_CC=$CC | |
2753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2754 | /* end confdefs.h. */ | |
2755 | #include <stdarg.h> | |
2756 | #include <stdio.h> | |
2757 | struct stat; | |
2758 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2759 | struct buf { int x; }; | |
2760 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2761 | static char *e (p, i) | |
2762 | char **p; | |
2763 | int i; | |
2764 | { | |
2765 | return p[i]; | |
2766 | } | |
2767 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2768 | { | |
2769 | char *s; | |
2770 | va_list v; | |
2771 | va_start (v,p); | |
2772 | s = g (p, va_arg (v,int)); | |
2773 | va_end (v); | |
2774 | return s; | |
2775 | } | |
2776 | ||
2777 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2778 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2779 | These don't provoke an error unfortunately, instead are silently treated | |
2780 | as 'x'. The following induces an error, until -std is added to get | |
2781 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2782 | array size at least. It's necessary to write '\x00'==0 to get something | |
2783 | that's true only with -std. */ | |
2784 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2785 | ||
2786 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2787 | inside strings and character constants. */ | |
2788 | #define FOO(x) 'x' | |
2789 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2790 | ||
2791 | int test (int i, double x); | |
2792 | struct s1 {int (*f) (int a);}; | |
2793 | struct s2 {int (*f) (double a);}; | |
2794 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2795 | int argc; | |
2796 | char **argv; | |
2797 | int | |
2798 | main () | |
2799 | { | |
2800 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2801 | ; | |
2802 | return 0; | |
2803 | } | |
2804 | _ACEOF | |
2805 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
2806 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2807 | do | |
2808 | CC="$ac_save_CC $ac_arg" | |
2809 | if ac_fn_c_try_compile "$LINENO"; then : | |
2810 | ac_cv_prog_cc_c89=$ac_arg | |
2811 | fi | |
2812 | rm -f core conftest.err conftest.$ac_objext | |
2813 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2814 | done | |
2815 | rm -f conftest.$ac_ext | |
2816 | CC=$ac_save_CC | |
2817 | ||
2818 | fi | |
2819 | # AC_CACHE_VAL | |
2820 | case "x$ac_cv_prog_cc_c89" in | |
2821 | x) | |
2822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
2823 | $as_echo "none needed" >&6; } ;; | |
2824 | xno) | |
2825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
2826 | $as_echo "unsupported" >&6; } ;; | |
2827 | *) | |
2828 | CC="$CC $ac_cv_prog_cc_c89" | |
2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
2830 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
2831 | esac | |
2832 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
2833 | ||
2834 | fi | |
2835 | ||
2836 | ac_ext=c | |
2837 | ac_cpp='$CPP $CPPFLAGS' | |
2838 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2839 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2840 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2841 | ||
2842 | if test -n "$ac_tool_prefix"; then | |
2843 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2844 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2846 | $as_echo_n "checking for $ac_word... " >&6; } | |
2847 | if ${ac_cv_prog_RANLIB+:} false; then : | |
2848 | $as_echo_n "(cached) " >&6 | |
2849 | else | |
2850 | if test -n "$RANLIB"; then | |
2851 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2852 | else | |
2853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2854 | for as_dir in $PATH | |
2855 | do | |
2856 | IFS=$as_save_IFS | |
2857 | test -z "$as_dir" && as_dir=. | |
2858 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2859 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2860 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2862 | break 2 | |
2863 | fi | |
2864 | done | |
2865 | done | |
2866 | IFS=$as_save_IFS | |
2867 | ||
2868 | fi | |
2869 | fi | |
2870 | RANLIB=$ac_cv_prog_RANLIB | |
2871 | if test -n "$RANLIB"; then | |
2872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
2873 | $as_echo "$RANLIB" >&6; } | |
2874 | else | |
2875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2876 | $as_echo "no" >&6; } | |
2877 | fi | |
2878 | ||
2879 | ||
2880 | fi | |
2881 | if test -z "$ac_cv_prog_RANLIB"; then | |
2882 | ac_ct_RANLIB=$RANLIB | |
2883 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2884 | set dummy ranlib; ac_word=$2 | |
2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2886 | $as_echo_n "checking for $ac_word... " >&6; } | |
2887 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
2888 | $as_echo_n "(cached) " >&6 | |
2889 | else | |
2890 | if test -n "$ac_ct_RANLIB"; then | |
2891 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2892 | else | |
2893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2894 | for as_dir in $PATH | |
2895 | do | |
2896 | IFS=$as_save_IFS | |
2897 | test -z "$as_dir" && as_dir=. | |
2898 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2899 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2900 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2902 | break 2 | |
2903 | fi | |
2904 | done | |
2905 | done | |
2906 | IFS=$as_save_IFS | |
2907 | ||
2908 | fi | |
2909 | fi | |
2910 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2911 | if test -n "$ac_ct_RANLIB"; then | |
2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
2913 | $as_echo "$ac_ct_RANLIB" >&6; } | |
2914 | else | |
2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2916 | $as_echo "no" >&6; } | |
2917 | fi | |
2918 | ||
2919 | if test "x$ac_ct_RANLIB" = x; then | |
2920 | RANLIB=":" | |
2921 | else | |
2922 | case $cross_compiling:$ac_tool_warned in | |
2923 | yes:) | |
2924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2925 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2926 | ac_tool_warned=yes ;; | |
2927 | esac | |
2928 | RANLIB=$ac_ct_RANLIB | |
2929 | fi | |
2930 | else | |
2931 | RANLIB="$ac_cv_prog_RANLIB" | |
2932 | fi | |
2933 | ||
2934 | # Extract the first word of "ginstall", so it can be a program name with args. | |
2935 | set dummy ginstall; ac_word=$2 | |
2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2937 | $as_echo_n "checking for $ac_word... " >&6; } | |
2938 | if ${ac_cv_prog_INSTALL+:} false; then : | |
2939 | $as_echo_n "(cached) " >&6 | |
2940 | else | |
2941 | if test -n "$INSTALL"; then | |
2942 | ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. | |
2943 | else | |
2944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2945 | for as_dir in $PATH | |
2946 | do | |
2947 | IFS=$as_save_IFS | |
2948 | test -z "$as_dir" && as_dir=. | |
2949 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2950 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2951 | ac_cv_prog_INSTALL="ginstall" | |
2952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2953 | break 2 | |
2954 | fi | |
2955 | done | |
2956 | done | |
2957 | IFS=$as_save_IFS | |
2958 | ||
2959 | fi | |
2960 | fi | |
2961 | INSTALL=$ac_cv_prog_INSTALL | |
2962 | if test -n "$INSTALL"; then | |
2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2964 | $as_echo "$INSTALL" >&6; } | |
2965 | else | |
2966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2967 | $as_echo "no" >&6; } | |
2968 | fi | |
2969 | ||
2970 | ||
2971 | # Extract the first word of "install", so it can be a program name with args. | |
2972 | set dummy install; ac_word=$2 | |
2973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2974 | $as_echo_n "checking for $ac_word... " >&6; } | |
2975 | if ${ac_cv_prog_INSTALL+:} false; then : | |
2976 | $as_echo_n "(cached) " >&6 | |
2977 | else | |
2978 | if test -n "$INSTALL"; then | |
2979 | ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. | |
2980 | else | |
2981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2982 | for as_dir in $PATH | |
2983 | do | |
2984 | IFS=$as_save_IFS | |
2985 | test -z "$as_dir" && as_dir=. | |
2986 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2987 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2988 | ac_cv_prog_INSTALL="install" | |
2989 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2990 | break 2 | |
2991 | fi | |
2992 | done | |
2993 | done | |
2994 | IFS=$as_save_IFS | |
2995 | ||
2996 | fi | |
2997 | fi | |
2998 | INSTALL=$ac_cv_prog_INSTALL | |
2999 | if test -n "$INSTALL"; then | |
3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3001 | $as_echo "$INSTALL" >&6; } | |
3002 | else | |
3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3004 | $as_echo "no" >&6; } | |
3005 | fi | |
3006 | ||
3007 | ||
3008 | # Extract the first word of "tar", so it can be a program name with args. | |
3009 | set dummy tar; ac_word=$2 | |
3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3011 | $as_echo_n "checking for $ac_word... " >&6; } | |
3012 | if ${ac_cv_prog_TAR+:} false; then : | |
3013 | $as_echo_n "(cached) " >&6 | |
3014 | else | |
3015 | if test -n "$TAR"; then | |
3016 | ac_cv_prog_TAR="$TAR" # Let the user override the test. | |
3017 | else | |
3018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3019 | for as_dir in $PATH | |
3020 | do | |
3021 | IFS=$as_save_IFS | |
3022 | test -z "$as_dir" && as_dir=. | |
3023 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3024 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3025 | ac_cv_prog_TAR="tar" | |
3026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3027 | break 2 | |
3028 | fi | |
3029 | done | |
3030 | done | |
3031 | IFS=$as_save_IFS | |
3032 | ||
3033 | fi | |
3034 | fi | |
3035 | TAR=$ac_cv_prog_TAR | |
3036 | if test -n "$TAR"; then | |
3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 | |
3038 | $as_echo "$TAR" >&6; } | |
3039 | else | |
3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3041 | $as_echo "no" >&6; } | |
3042 | fi | |
3043 | ||
3044 | ||
3045 | ||
3046 | ||
3047 | # | |
3048 | # Additional commandline switches | |
3049 | # | |
3050 | ||
3051 | # Check whether --enable-debugging was given. | |
3052 | if test "${enable_debugging+set}" = set; then : | |
3053 | enableval=$enable_debugging; debugging=$enableval | |
3054 | else | |
3055 | debugging=no | |
3056 | fi | |
3057 | ||
3058 | if test "$debugging" = "yes"; then | |
3059 | CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" | |
3060 | else | |
3061 | CFLAGS="-g -O2 -fomit-frame-pointer -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" | |
3062 | fi | |
3063 | LIBS="$LIBS -lm" | |
3064 | ||
3065 | ||
3066 | # | |
3067 | # Libraries for bms | |
3068 | # | |
3069 | ||
3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mosquitto_lib_init in -lmosquitto" >&5 | |
3071 | $as_echo_n "checking for mosquitto_lib_init in -lmosquitto... " >&6; } | |
3072 | if ${ac_cv_lib_mosquitto_mosquitto_lib_init+:} false; then : | |
3073 | $as_echo_n "(cached) " >&6 | |
3074 | else | |
3075 | ac_check_lib_save_LIBS=$LIBS | |
3076 | LIBS="-lmosquitto $LIBS" | |
3077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3078 | /* end confdefs.h. */ | |
3079 | ||
3080 | /* Override any GCC internal prototype to avoid an error. | |
3081 | Use char because int might match the return type of a GCC | |
3082 | builtin and then its argument prototype would still apply. */ | |
3083 | #ifdef __cplusplus | |
3084 | extern "C" | |
3085 | #endif | |
3086 | char mosquitto_lib_init (); | |
3087 | int | |
3088 | main () | |
3089 | { | |
3090 | return mosquitto_lib_init (); | |
3091 | ; | |
3092 | return 0; | |
3093 | } | |
3094 | _ACEOF | |
3095 | if ac_fn_c_try_link "$LINENO"; then : | |
3096 | ac_cv_lib_mosquitto_mosquitto_lib_init=yes | |
3097 | else | |
3098 | ac_cv_lib_mosquitto_mosquitto_lib_init=no | |
3099 | fi | |
3100 | rm -f core conftest.err conftest.$ac_objext \ | |
3101 | conftest$ac_exeext conftest.$ac_ext | |
3102 | LIBS=$ac_check_lib_save_LIBS | |
3103 | fi | |
3104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mosquitto_mosquitto_lib_init" >&5 | |
3105 | $as_echo "$ac_cv_lib_mosquitto_mosquitto_lib_init" >&6; } | |
3106 | if test "x$ac_cv_lib_mosquitto_mosquitto_lib_init" = xyes; then : | |
3107 | result=yes | |
3108 | else | |
3109 | result=no | |
3110 | fi | |
3111 | ||
3112 | if test "$result" = "yes"; then | |
3113 | LIBS="$LIBS -lmosquitto" | |
3114 | ac_ext=c | |
3115 | ac_cpp='$CPP $CPPFLAGS' | |
3116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3120 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3121 | # On Suns, sometimes $CPP names a directory. | |
3122 | if test -n "$CPP" && test -d "$CPP"; then | |
3123 | CPP= | |
3124 | fi | |
3125 | if test -z "$CPP"; then | |
3126 | if ${ac_cv_prog_CPP+:} false; then : | |
3127 | $as_echo_n "(cached) " >&6 | |
3128 | else | |
3129 | # Double quotes because CPP needs to be expanded | |
3130 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3131 | do | |
3132 | ac_preproc_ok=false | |
3133 | for ac_c_preproc_warn_flag in '' yes | |
3134 | do | |
3135 | # Use a header file that comes with gcc, so configuring glibc | |
3136 | # with a fresh cross-compiler works. | |
3137 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3138 | # <limits.h> exists even on freestanding compilers. | |
3139 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3140 | # not just through cpp. "Syntax error" is here to catch this case. | |
3141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3142 | /* end confdefs.h. */ | |
3143 | #ifdef __STDC__ | |
3144 | # include <limits.h> | |
3145 | #else | |
3146 | # include <assert.h> | |
3147 | #endif | |
3148 | Syntax error | |
3149 | _ACEOF | |
3150 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3151 | ||
3152 | else | |
3153 | # Broken: fails on valid input. | |
3154 | continue | |
3155 | fi | |
3156 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3157 | ||
3158 | # OK, works on sane cases. Now check whether nonexistent headers | |
3159 | # can be detected and how. | |
3160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3161 | /* end confdefs.h. */ | |
3162 | #include <ac_nonexistent.h> | |
3163 | _ACEOF | |
3164 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3165 | # Broken: success on invalid input. | |
3166 | continue | |
3167 | else | |
3168 | # Passes both tests. | |
3169 | ac_preproc_ok=: | |
3170 | break | |
3171 | fi | |
3172 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3173 | ||
3174 | done | |
3175 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3176 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3177 | if $ac_preproc_ok; then : | |
3178 | break | |
3179 | fi | |
3180 | ||
3181 | done | |
3182 | ac_cv_prog_CPP=$CPP | |
3183 | ||
3184 | fi | |
3185 | CPP=$ac_cv_prog_CPP | |
3186 | else | |
3187 | ac_cv_prog_CPP=$CPP | |
3188 | fi | |
3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3190 | $as_echo "$CPP" >&6; } | |
3191 | ac_preproc_ok=false | |
3192 | for ac_c_preproc_warn_flag in '' yes | |
3193 | do | |
3194 | # Use a header file that comes with gcc, so configuring glibc | |
3195 | # with a fresh cross-compiler works. | |
3196 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3197 | # <limits.h> exists even on freestanding compilers. | |
3198 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3199 | # not just through cpp. "Syntax error" is here to catch this case. | |
3200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3201 | /* end confdefs.h. */ | |
3202 | #ifdef __STDC__ | |
3203 | # include <limits.h> | |
3204 | #else | |
3205 | # include <assert.h> | |
3206 | #endif | |
3207 | Syntax error | |
3208 | _ACEOF | |
3209 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3210 | ||
3211 | else | |
3212 | # Broken: fails on valid input. | |
3213 | continue | |
3214 | fi | |
3215 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3216 | ||
3217 | # OK, works on sane cases. Now check whether nonexistent headers | |
3218 | # can be detected and how. | |
3219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3220 | /* end confdefs.h. */ | |
3221 | #include <ac_nonexistent.h> | |
3222 | _ACEOF | |
3223 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3224 | # Broken: success on invalid input. | |
3225 | continue | |
3226 | else | |
3227 | # Passes both tests. | |
3228 | ac_preproc_ok=: | |
3229 | break | |
3230 | fi | |
3231 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3232 | ||
3233 | done | |
3234 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3235 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3236 | if $ac_preproc_ok; then : | |
3237 | ||
3238 | else | |
3239 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3240 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3241 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3242 | See \`config.log' for more details" "$LINENO" 5; } | |
3243 | fi | |
3244 | ||
3245 | ac_ext=c | |
3246 | ac_cpp='$CPP $CPPFLAGS' | |
3247 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3248 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3249 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3250 | ||
3251 | ||
3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3253 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3254 | if ${ac_cv_path_GREP+:} false; then : | |
3255 | $as_echo_n "(cached) " >&6 | |
3256 | else | |
3257 | if test -z "$GREP"; then | |
3258 | ac_path_GREP_found=false | |
3259 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3261 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3262 | do | |
3263 | IFS=$as_save_IFS | |
3264 | test -z "$as_dir" && as_dir=. | |
3265 | for ac_prog in grep ggrep; do | |
3266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3267 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3268 | as_fn_executable_p "$ac_path_GREP" || continue | |
3269 | # Check for GNU ac_path_GREP and select it if it is found. | |
3270 | # Check for GNU $ac_path_GREP | |
3271 | case `"$ac_path_GREP" --version 2>&1` in | |
3272 | *GNU*) | |
3273 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3274 | *) | |
3275 | ac_count=0 | |
3276 | $as_echo_n 0123456789 >"conftest.in" | |
3277 | while : | |
3278 | do | |
3279 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3280 | mv "conftest.tmp" "conftest.in" | |
3281 | cp "conftest.in" "conftest.nl" | |
3282 | $as_echo 'GREP' >> "conftest.nl" | |
3283 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3284 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3285 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3286 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3287 | # Best one so far, save it but keep looking for a better one | |
3288 | ac_cv_path_GREP="$ac_path_GREP" | |
3289 | ac_path_GREP_max=$ac_count | |
3290 | fi | |
3291 | # 10*(2^10) chars as input seems more than enough | |
3292 | test $ac_count -gt 10 && break | |
3293 | done | |
3294 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3295 | esac | |
3296 | ||
3297 | $ac_path_GREP_found && break 3 | |
3298 | done | |
3299 | done | |
3300 | done | |
3301 | IFS=$as_save_IFS | |
3302 | if test -z "$ac_cv_path_GREP"; then | |
3303 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3304 | fi | |
3305 | else | |
3306 | ac_cv_path_GREP=$GREP | |
3307 | fi | |
3308 | ||
3309 | fi | |
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3311 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3312 | GREP="$ac_cv_path_GREP" | |
3313 | ||
3314 | ||
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3316 | $as_echo_n "checking for egrep... " >&6; } | |
3317 | if ${ac_cv_path_EGREP+:} false; then : | |
3318 | $as_echo_n "(cached) " >&6 | |
3319 | else | |
3320 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3321 | then ac_cv_path_EGREP="$GREP -E" | |
3322 | else | |
3323 | if test -z "$EGREP"; then | |
3324 | ac_path_EGREP_found=false | |
3325 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3327 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3328 | do | |
3329 | IFS=$as_save_IFS | |
3330 | test -z "$as_dir" && as_dir=. | |
3331 | for ac_prog in egrep; do | |
3332 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3333 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3334 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3335 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3336 | # Check for GNU $ac_path_EGREP | |
3337 | case `"$ac_path_EGREP" --version 2>&1` in | |
3338 | *GNU*) | |
3339 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3340 | *) | |
3341 | ac_count=0 | |
3342 | $as_echo_n 0123456789 >"conftest.in" | |
3343 | while : | |
3344 | do | |
3345 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3346 | mv "conftest.tmp" "conftest.in" | |
3347 | cp "conftest.in" "conftest.nl" | |
3348 | $as_echo 'EGREP' >> "conftest.nl" | |
3349 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3350 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3351 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3352 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3353 | # Best one so far, save it but keep looking for a better one | |
3354 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3355 | ac_path_EGREP_max=$ac_count | |
3356 | fi | |
3357 | # 10*(2^10) chars as input seems more than enough | |
3358 | test $ac_count -gt 10 && break | |
3359 | done | |
3360 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3361 | esac | |
3362 | ||
3363 | $ac_path_EGREP_found && break 3 | |
3364 | done | |
3365 | done | |
3366 | done | |
3367 | IFS=$as_save_IFS | |
3368 | if test -z "$ac_cv_path_EGREP"; then | |
3369 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3370 | fi | |
3371 | else | |
3372 | ac_cv_path_EGREP=$EGREP | |
3373 | fi | |
3374 | ||
3375 | fi | |
3376 | fi | |
3377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3378 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3379 | EGREP="$ac_cv_path_EGREP" | |
3380 | ||
3381 | ||
3382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3383 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3384 | if ${ac_cv_header_stdc+:} false; then : | |
3385 | $as_echo_n "(cached) " >&6 | |
3386 | else | |
3387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3388 | /* end confdefs.h. */ | |
3389 | #include <stdlib.h> | |
3390 | #include <stdarg.h> | |
3391 | #include <string.h> | |
3392 | #include <float.h> | |
3393 | ||
3394 | int | |
3395 | main () | |
3396 | { | |
3397 | ||
3398 | ; | |
3399 | return 0; | |
3400 | } | |
3401 | _ACEOF | |
3402 | if ac_fn_c_try_compile "$LINENO"; then : | |
3403 | ac_cv_header_stdc=yes | |
3404 | else | |
3405 | ac_cv_header_stdc=no | |
3406 | fi | |
3407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3408 | ||
3409 | if test $ac_cv_header_stdc = yes; then | |
3410 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3412 | /* end confdefs.h. */ | |
3413 | #include <string.h> | |
3414 | ||
3415 | _ACEOF | |
3416 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3417 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3418 | ||
3419 | else | |
3420 | ac_cv_header_stdc=no | |
3421 | fi | |
3422 | rm -f conftest* | |
3423 | ||
3424 | fi | |
3425 | ||
3426 | if test $ac_cv_header_stdc = yes; then | |
3427 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3429 | /* end confdefs.h. */ | |
3430 | #include <stdlib.h> | |
3431 | ||
3432 | _ACEOF | |
3433 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3434 | $EGREP "free" >/dev/null 2>&1; then : | |
3435 | ||
3436 | else | |
3437 | ac_cv_header_stdc=no | |
3438 | fi | |
3439 | rm -f conftest* | |
3440 | ||
3441 | fi | |
3442 | ||
3443 | if test $ac_cv_header_stdc = yes; then | |
3444 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3445 | if test "$cross_compiling" = yes; then : | |
3446 | : | |
3447 | else | |
3448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3449 | /* end confdefs.h. */ | |
3450 | #include <ctype.h> | |
3451 | #include <stdlib.h> | |
3452 | #if ((' ' & 0x0FF) == 0x020) | |
3453 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3454 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3455 | #else | |
3456 | # define ISLOWER(c) \ | |
3457 | (('a' <= (c) && (c) <= 'i') \ | |
3458 | || ('j' <= (c) && (c) <= 'r') \ | |
3459 | || ('s' <= (c) && (c) <= 'z')) | |
3460 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3461 | #endif | |
3462 | ||
3463 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3464 | int | |
3465 | main () | |
3466 | { | |
3467 | int i; | |
3468 | for (i = 0; i < 256; i++) | |
3469 | if (XOR (islower (i), ISLOWER (i)) | |
3470 | || toupper (i) != TOUPPER (i)) | |
3471 | return 2; | |
3472 | return 0; | |
3473 | } | |
3474 | _ACEOF | |
3475 | if ac_fn_c_try_run "$LINENO"; then : | |
3476 | ||
3477 | else | |
3478 | ac_cv_header_stdc=no | |
3479 | fi | |
3480 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3481 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3482 | fi | |
3483 | ||
3484 | fi | |
3485 | fi | |
3486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3487 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3488 | if test $ac_cv_header_stdc = yes; then | |
3489 | ||
3490 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3491 | ||
3492 | fi | |
3493 | ||
3494 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3495 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3496 | inttypes.h stdint.h unistd.h | |
3497 | do : | |
3498 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3499 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3500 | " | |
3501 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3502 | cat >>confdefs.h <<_ACEOF | |
3503 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3504 | _ACEOF | |
3505 | ||
3506 | fi | |
3507 | ||
3508 | done | |
3509 | ||
3510 | ||
3511 | for ac_header in mosquitto.h | |
3512 | do : | |
3513 | ac_fn_c_check_header_mongrel "$LINENO" "mosquitto.h" "ac_cv_header_mosquitto_h" "$ac_includes_default" | |
3514 | if test "x$ac_cv_header_mosquitto_h" = xyes; then : | |
3515 | cat >>confdefs.h <<_ACEOF | |
3516 | #define HAVE_MOSQUITTO_H 1 | |
3517 | _ACEOF | |
3518 | ||
3519 | fi | |
3520 | ||
3521 | done | |
3522 | ||
3523 | else | |
3524 | as_fn_error $? "mosquitto not found" "$LINENO" 5 | |
3525 | fi | |
3526 | ||
3527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json_object_iter_init_default in -ljson-c" >&5 | |
3528 | $as_echo_n "checking for json_object_iter_init_default in -ljson-c... " >&6; } | |
3529 | if ${ac_cv_lib_json_c_json_object_iter_init_default+:} false; then : | |
3530 | $as_echo_n "(cached) " >&6 | |
3531 | else | |
3532 | ac_check_lib_save_LIBS=$LIBS | |
3533 | LIBS="-ljson-c $LIBS" | |
3534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3535 | /* end confdefs.h. */ | |
3536 | ||
3537 | /* Override any GCC internal prototype to avoid an error. | |
3538 | Use char because int might match the return type of a GCC | |
3539 | builtin and then its argument prototype would still apply. */ | |
3540 | #ifdef __cplusplus | |
3541 | extern "C" | |
3542 | #endif | |
3543 | char json_object_iter_init_default (); | |
3544 | int | |
3545 | main () | |
3546 | { | |
3547 | return json_object_iter_init_default (); | |
3548 | ; | |
3549 | return 0; | |
3550 | } | |
3551 | _ACEOF | |
3552 | if ac_fn_c_try_link "$LINENO"; then : | |
3553 | ac_cv_lib_json_c_json_object_iter_init_default=yes | |
3554 | else | |
3555 | ac_cv_lib_json_c_json_object_iter_init_default=no | |
3556 | fi | |
3557 | rm -f core conftest.err conftest.$ac_objext \ | |
3558 | conftest$ac_exeext conftest.$ac_ext | |
3559 | LIBS=$ac_check_lib_save_LIBS | |
3560 | fi | |
3561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_json_c_json_object_iter_init_default" >&5 | |
3562 | $as_echo "$ac_cv_lib_json_c_json_object_iter_init_default" >&6; } | |
3563 | if test "x$ac_cv_lib_json_c_json_object_iter_init_default" = xyes; then : | |
3564 | result=yes | |
3565 | else | |
3566 | result=no | |
3567 | fi | |
3568 | ||
3569 | if test "$result" = "yes"; then | |
3570 | LIBS="$LIBS -ljson-c" | |
3571 | for ac_header in json-c/json.h | |
3572 | do : | |
3573 | ac_fn_c_check_header_mongrel "$LINENO" "json-c/json.h" "ac_cv_header_json_c_json_h" "$ac_includes_default" | |
3574 | if test "x$ac_cv_header_json_c_json_h" = xyes; then : | |
3575 | cat >>confdefs.h <<_ACEOF | |
3576 | #define HAVE_JSON_C_JSON_H 1 | |
3577 | _ACEOF | |
3578 | ||
3579 | fi | |
3580 | ||
3581 | done | |
3582 | ||
3583 | else | |
3584 | as_fn_error $? "json-c not found" "$LINENO" 5 | |
3585 | fi | |
3586 | ||
3587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_server_init in -lmysqlclient" >&5 | |
3588 | $as_echo_n "checking for mysql_server_init in -lmysqlclient... " >&6; } | |
3589 | if ${ac_cv_lib_mysqlclient_mysql_server_init+:} false; then : | |
3590 | $as_echo_n "(cached) " >&6 | |
3591 | else | |
3592 | ac_check_lib_save_LIBS=$LIBS | |
3593 | LIBS="-lmysqlclient $LIBS" | |
3594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3595 | /* end confdefs.h. */ | |
3596 | ||
3597 | /* Override any GCC internal prototype to avoid an error. | |
3598 | Use char because int might match the return type of a GCC | |
3599 | builtin and then its argument prototype would still apply. */ | |
3600 | #ifdef __cplusplus | |
3601 | extern "C" | |
3602 | #endif | |
3603 | char mysql_server_init (); | |
3604 | int | |
3605 | main () | |
3606 | { | |
3607 | return mysql_server_init (); | |
3608 | ; | |
3609 | return 0; | |
3610 | } | |
3611 | _ACEOF | |
3612 | if ac_fn_c_try_link "$LINENO"; then : | |
3613 | ac_cv_lib_mysqlclient_mysql_server_init=yes | |
3614 | else | |
3615 | ac_cv_lib_mysqlclient_mysql_server_init=no | |
3616 | fi | |
3617 | rm -f core conftest.err conftest.$ac_objext \ | |
3618 | conftest$ac_exeext conftest.$ac_ext | |
3619 | LIBS=$ac_check_lib_save_LIBS | |
3620 | fi | |
3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_server_init" >&5 | |
3622 | $as_echo "$ac_cv_lib_mysqlclient_mysql_server_init" >&6; } | |
3623 | if test "x$ac_cv_lib_mysqlclient_mysql_server_init" = xyes; then : | |
3624 | result=yes | |
3625 | else | |
3626 | result=no | |
3627 | fi | |
3628 | ||
3629 | if test "$result" = "yes"; then | |
3630 | LIBS="$LIBS -lmysqlclient" | |
3631 | for ac_header in mysql/mysql.h | |
3632 | do : | |
3633 | ac_fn_c_check_header_mongrel "$LINENO" "mysql/mysql.h" "ac_cv_header_mysql_mysql_h" "$ac_includes_default" | |
3634 | if test "x$ac_cv_header_mysql_mysql_h" = xyes; then : | |
3635 | cat >>confdefs.h <<_ACEOF | |
3636 | #define HAVE_MYSQL_MYSQL_H 1 | |
3637 | _ACEOF | |
3638 | ||
3639 | fi | |
3640 | ||
3641 | done | |
3642 | ||
3643 | else | |
3644 | as_fn_error $? "mysqlclient not found" "$LINENO" 5 | |
3645 | fi | |
3646 | ||
3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5 | |
3648 | $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; } | |
3649 | if ${ac_cv_lib_xml2_xmlParseFile+:} false; then : | |
3650 | $as_echo_n "(cached) " >&6 | |
3651 | else | |
3652 | ac_check_lib_save_LIBS=$LIBS | |
3653 | LIBS="-lxml2 $LIBS" | |
3654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3655 | /* end confdefs.h. */ | |
3656 | ||
3657 | /* Override any GCC internal prototype to avoid an error. | |
3658 | Use char because int might match the return type of a GCC | |
3659 | builtin and then its argument prototype would still apply. */ | |
3660 | #ifdef __cplusplus | |
3661 | extern "C" | |
3662 | #endif | |
3663 | char xmlParseFile (); | |
3664 | int | |
3665 | main () | |
3666 | { | |
3667 | return xmlParseFile (); | |
3668 | ; | |
3669 | return 0; | |
3670 | } | |
3671 | _ACEOF | |
3672 | if ac_fn_c_try_link "$LINENO"; then : | |
3673 | ac_cv_lib_xml2_xmlParseFile=yes | |
3674 | else | |
3675 | ac_cv_lib_xml2_xmlParseFile=no | |
3676 | fi | |
3677 | rm -f core conftest.err conftest.$ac_objext \ | |
3678 | conftest$ac_exeext conftest.$ac_ext | |
3679 | LIBS=$ac_check_lib_save_LIBS | |
3680 | fi | |
3681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5 | |
3682 | $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; } | |
3683 | if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then : | |
3684 | result=yes | |
3685 | else | |
3686 | result=no | |
3687 | fi | |
3688 | ||
3689 | if test "$result" = "yes"; then | |
3690 | LIBS="$LIBS -lxml2" | |
3691 | CFLAGS="$CFLAGS $(xml2-config --cflags)" | |
3692 | for ac_header in libxml/xmlmemory.h | |
3693 | do : | |
3694 | ac_fn_c_check_header_mongrel "$LINENO" "libxml/xmlmemory.h" "ac_cv_header_libxml_xmlmemory_h" "$ac_includes_default" | |
3695 | if test "x$ac_cv_header_libxml_xmlmemory_h" = xyes; then : | |
3696 | cat >>confdefs.h <<_ACEOF | |
3697 | #define HAVE_LIBXML_XMLMEMORY_H 1 | |
3698 | _ACEOF | |
3699 | ||
3700 | fi | |
3701 | ||
3702 | done | |
3703 | ||
3704 | else | |
3705 | as_fn_error $? "libxml2 not found" "$LINENO" 5 | |
3706 | fi | |
3707 | ||
3708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 | |
3709 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
3710 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : | |
3711 | $as_echo_n "(cached) " >&6 | |
3712 | else | |
3713 | ac_check_lib_save_LIBS=$LIBS | |
3714 | LIBS="-luuid $LIBS" | |
3715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3716 | /* end confdefs.h. */ | |
3717 | ||
3718 | /* Override any GCC internal prototype to avoid an error. | |
3719 | Use char because int might match the return type of a GCC | |
3720 | builtin and then its argument prototype would still apply. */ | |
3721 | #ifdef __cplusplus | |
3722 | extern "C" | |
3723 | #endif | |
3724 | char uuid_generate (); | |
3725 | int | |
3726 | main () | |
3727 | { | |
3728 | return uuid_generate (); | |
3729 | ; | |
3730 | return 0; | |
3731 | } | |
3732 | _ACEOF | |
3733 | if ac_fn_c_try_link "$LINENO"; then : | |
3734 | ac_cv_lib_uuid_uuid_generate=yes | |
3735 | else | |
3736 | ac_cv_lib_uuid_uuid_generate=no | |
3737 | fi | |
3738 | rm -f core conftest.err conftest.$ac_objext \ | |
3739 | conftest$ac_exeext conftest.$ac_ext | |
3740 | LIBS=$ac_check_lib_save_LIBS | |
3741 | fi | |
3742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
3743 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
3744 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : | |
3745 | result=yes | |
3746 | else | |
3747 | result=no | |
3748 | fi | |
3749 | ||
3750 | if test "$result" = "yes"; then | |
3751 | LIBS="$LIBS $(pkg-config --libs uuid)" | |
3752 | CFLAGS="$CFLAGS $(pkg-config --cflags uuid)" | |
3753 | for ac_header in uuid/uuid.h | |
3754 | do : | |
3755 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" | |
3756 | if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : | |
3757 | cat >>confdefs.h <<_ACEOF | |
3758 | #define HAVE_UUID_UUID_H 1 | |
3759 | _ACEOF | |
3760 | ||
3761 | fi | |
3762 | ||
3763 | done | |
3764 | ||
3765 | else | |
3766 | as_fn_error $? "libuuid not found" "$LINENO" 5 | |
3767 | fi | |
3768 | ||
3769 | ||
3770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3771 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3772 | if ${ac_cv_header_stdc+:} false; then : | |
3773 | $as_echo_n "(cached) " >&6 | |
3774 | else | |
3775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3776 | /* end confdefs.h. */ | |
3777 | #include <stdlib.h> | |
3778 | #include <stdarg.h> | |
3779 | #include <string.h> | |
3780 | #include <float.h> | |
3781 | ||
3782 | int | |
3783 | main () | |
3784 | { | |
3785 | ||
3786 | ; | |
3787 | return 0; | |
3788 | } | |
3789 | _ACEOF | |
3790 | if ac_fn_c_try_compile "$LINENO"; then : | |
3791 | ac_cv_header_stdc=yes | |
3792 | else | |
3793 | ac_cv_header_stdc=no | |
3794 | fi | |
3795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3796 | ||
3797 | if test $ac_cv_header_stdc = yes; then | |
3798 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3800 | /* end confdefs.h. */ | |
3801 | #include <string.h> | |
3802 | ||
3803 | _ACEOF | |
3804 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3805 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3806 | ||
3807 | else | |
3808 | ac_cv_header_stdc=no | |
3809 | fi | |
3810 | rm -f conftest* | |
3811 | ||
3812 | fi | |
3813 | ||
3814 | if test $ac_cv_header_stdc = yes; then | |
3815 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3817 | /* end confdefs.h. */ | |
3818 | #include <stdlib.h> | |
3819 | ||
3820 | _ACEOF | |
3821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3822 | $EGREP "free" >/dev/null 2>&1; then : | |
3823 | ||
3824 | else | |
3825 | ac_cv_header_stdc=no | |
3826 | fi | |
3827 | rm -f conftest* | |
3828 | ||
3829 | fi | |
3830 | ||
3831 | if test $ac_cv_header_stdc = yes; then | |
3832 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3833 | if test "$cross_compiling" = yes; then : | |
3834 | : | |
3835 | else | |
3836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3837 | /* end confdefs.h. */ | |
3838 | #include <ctype.h> | |
3839 | #include <stdlib.h> | |
3840 | #if ((' ' & 0x0FF) == 0x020) | |
3841 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3842 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3843 | #else | |
3844 | # define ISLOWER(c) \ | |
3845 | (('a' <= (c) && (c) <= 'i') \ | |
3846 | || ('j' <= (c) && (c) <= 'r') \ | |
3847 | || ('s' <= (c) && (c) <= 'z')) | |
3848 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3849 | #endif | |
3850 | ||
3851 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3852 | int | |
3853 | main () | |
3854 | { | |
3855 | int i; | |
3856 | for (i = 0; i < 256; i++) | |
3857 | if (XOR (islower (i), ISLOWER (i)) | |
3858 | || toupper (i) != TOUPPER (i)) | |
3859 | return 2; | |
3860 | return 0; | |
3861 | } | |
3862 | _ACEOF | |
3863 | if ac_fn_c_try_run "$LINENO"; then : | |
3864 | ||
3865 | else | |
3866 | ac_cv_header_stdc=no | |
3867 | fi | |
3868 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3869 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3870 | fi | |
3871 | ||
3872 | fi | |
3873 | fi | |
3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3875 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3876 | if test $ac_cv_header_stdc = yes; then | |
3877 | ||
3878 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3879 | ||
3880 | fi | |
3881 | ||
3882 | ||
3883 | ||
3884 | ||
3885 | ||
3886 | ||
2 | 3887 | ac_config_files="$ac_config_files Makefile.global www/version.php" |
0 | 3888 | |
3889 | cat >confcache <<\_ACEOF | |
3890 | # This file is a shell script that caches the results of configure | |
3891 | # tests run on this system so they can be shared between configure | |
3892 | # scripts and configure runs, see configure's option --config-cache. | |
3893 | # It is not useful on other systems. If it contains results you don't | |
3894 | # want to keep, you may remove or edit it. | |
3895 | # | |
3896 | # config.status only pays attention to the cache file if you give it | |
3897 | # the --recheck option to rerun configure. | |
3898 | # | |
3899 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
3900 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3901 | # following values. | |
3902 | ||
3903 | _ACEOF | |
3904 | ||
3905 | # The following way of writing the cache mishandles newlines in values, | |
3906 | # but we know of no workaround that is simple, portable, and efficient. | |
3907 | # So, we kill variables containing newlines. | |
3908 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3909 | # and sets the high bit in the cache file unless we assign to the vars. | |
3910 | ( | |
3911 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
3912 | eval ac_val=\$$ac_var | |
3913 | case $ac_val in #( | |
3914 | *${as_nl}*) | |
3915 | case $ac_var in #( | |
3916 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
3917 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
3918 | esac | |
3919 | case $ac_var in #( | |
3920 | _ | IFS | as_nl) ;; #( | |
3921 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
3922 | *) { eval $ac_var=; unset $ac_var;} ;; | |
3923 | esac ;; | |
3924 | esac | |
3925 | done | |
3926 | ||
3927 | (set) 2>&1 | | |
3928 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
3929 | *${as_nl}ac_space=\ *) | |
3930 | # `set' does not quote correctly, so add quotes: double-quote | |
3931 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
3932 | sed -n \ | |
3933 | "s/'/'\\\\''/g; | |
3934 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3935 | ;; #( | |
3936 | *) | |
3937 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3938 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
3939 | ;; | |
3940 | esac | | |
3941 | sort | |
3942 | ) | | |
3943 | sed ' | |
3944 | /^ac_cv_env_/b end | |
3945 | t clear | |
3946 | :clear | |
3947 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3948 | t end | |
3949 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3950 | :end' >>confcache | |
3951 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
3952 | if test -w "$cache_file"; then | |
3953 | if test "x$cache_file" != "x/dev/null"; then | |
3954 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
3955 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
3956 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
3957 | cat confcache >"$cache_file" | |
3958 | else | |
3959 | case $cache_file in #( | |
3960 | */* | ?:*) | |
3961 | mv -f confcache "$cache_file"$$ && | |
3962 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
3963 | *) | |
3964 | mv -f confcache "$cache_file" ;; | |
3965 | esac | |
3966 | fi | |
3967 | fi | |
3968 | else | |
3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
3970 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
3971 | fi | |
3972 | fi | |
3973 | rm -f confcache | |
3974 | ||
3975 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3976 | # Let make expand exec_prefix. | |
3977 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3978 | ||
3979 | DEFS=-DHAVE_CONFIG_H | |
3980 | ||
3981 | ac_libobjs= | |
3982 | ac_ltlibobjs= | |
3983 | U= | |
3984 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
3985 | # 1. Remove the extension, and $U if already installed. | |
3986 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
3987 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
3988 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
3989 | # will be set to the directory where LIBOBJS objects are built. | |
3990 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
3991 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
3992 | done | |
3993 | LIBOBJS=$ac_libobjs | |
3994 | ||
3995 | LTLIBOBJS=$ac_ltlibobjs | |
3996 | ||
3997 | ||
3998 | ||
3999 | : "${CONFIG_STATUS=./config.status}" | |
4000 | ac_write_fail=0 | |
4001 | ac_clean_files_save=$ac_clean_files | |
4002 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
4003 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
4004 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
4005 | as_write_fail=0 | |
4006 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
4007 | #! $SHELL | |
4008 | # Generated by $as_me. | |
4009 | # Run this file to recreate the current configuration. | |
4010 | # Compiler output produced by configure, useful for debugging | |
4011 | # configure, is in config.log if it exists. | |
4012 | ||
4013 | debug=false | |
4014 | ac_cs_recheck=false | |
4015 | ac_cs_silent=false | |
4016 | ||
4017 | SHELL=\${CONFIG_SHELL-$SHELL} | |
4018 | export SHELL | |
4019 | _ASEOF | |
4020 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
4021 | ## -------------------- ## | |
4022 | ## M4sh Initialization. ## | |
4023 | ## -------------------- ## | |
4024 | ||
4025 | # Be more Bourne compatible | |
4026 | DUALCASE=1; export DUALCASE # for MKS sh | |
4027 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
4028 | emulate sh | |
4029 | NULLCMD=: | |
4030 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
4031 | # is contrary to our usage. Disable this feature. | |
4032 | alias -g '${1+"$@"}'='"$@"' | |
4033 | setopt NO_GLOB_SUBST | |
4034 | else | |
4035 | case `(set -o) 2>/dev/null` in #( | |
4036 | *posix*) : | |
4037 | set -o posix ;; #( | |
4038 | *) : | |
4039 | ;; | |
4040 | esac | |
4041 | fi | |
4042 | ||
4043 | ||
4044 | as_nl=' | |
4045 | ' | |
4046 | export as_nl | |
4047 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
4048 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4049 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
4050 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
4051 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
4052 | # but without wasting forks for bash or zsh. | |
4053 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
4054 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4055 | as_echo='print -r --' | |
4056 | as_echo_n='print -rn --' | |
4057 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4058 | as_echo='printf %s\n' | |
4059 | as_echo_n='printf %s' | |
4060 | else | |
4061 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
4062 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
4063 | as_echo_n='/usr/ucb/echo -n' | |
4064 | else | |
4065 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
4066 | as_echo_n_body='eval | |
4067 | arg=$1; | |
4068 | case $arg in #( | |
4069 | *"$as_nl"*) | |
4070 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
4071 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
4072 | esac; | |
4073 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
4074 | ' | |
4075 | export as_echo_n_body | |
4076 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
4077 | fi | |
4078 | export as_echo_body | |
4079 | as_echo='sh -c $as_echo_body as_echo' | |
4080 | fi | |
4081 | ||
4082 | # The user is always right. | |
4083 | if test "${PATH_SEPARATOR+set}" != set; then | |
4084 | PATH_SEPARATOR=: | |
4085 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
4086 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
4087 | PATH_SEPARATOR=';' | |
4088 | } | |
4089 | fi | |
4090 | ||
4091 | ||
4092 | # IFS | |
4093 | # We need space, tab and new line, in precisely that order. Quoting is | |
4094 | # there to prevent editors from complaining about space-tab. | |
4095 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
4096 | # splitting by setting IFS to empty value.) | |
4097 | IFS=" "" $as_nl" | |
4098 | ||
4099 | # Find who we are. Look in the path if we contain no directory separator. | |
4100 | as_myself= | |
4101 | case $0 in #(( | |
4102 | *[\\/]* ) as_myself=$0 ;; | |
4103 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4104 | for as_dir in $PATH | |
4105 | do | |
4106 | IFS=$as_save_IFS | |
4107 | test -z "$as_dir" && as_dir=. | |
4108 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
4109 | done | |
4110 | IFS=$as_save_IFS | |
4111 | ||
4112 | ;; | |
4113 | esac | |
4114 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
4115 | # in which case we are not to be found in the path. | |
4116 | if test "x$as_myself" = x; then | |
4117 | as_myself=$0 | |
4118 | fi | |
4119 | if test ! -f "$as_myself"; then | |
4120 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
4121 | exit 1 | |
4122 | fi | |
4123 | ||
4124 | # Unset variables that we do not need and which cause bugs (e.g. in | |
4125 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
4126 | # suppresses any "Segmentation fault" message there. '((' could | |
4127 | # trigger a bug in pdksh 5.2.14. | |
4128 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
4129 | do eval test x\${$as_var+set} = xset \ | |
4130 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
4131 | done | |
4132 | PS1='$ ' | |
4133 | PS2='> ' | |
4134 | PS4='+ ' | |
4135 | ||
4136 | # NLS nuisances. | |
4137 | LC_ALL=C | |
4138 | export LC_ALL | |
4139 | LANGUAGE=C | |
4140 | export LANGUAGE | |
4141 | ||
4142 | # CDPATH. | |
4143 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
4144 | ||
4145 | ||
4146 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
4147 | # ---------------------------------------- | |
4148 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
4149 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
4150 | # script with STATUS, using 1 if that was 0. | |
4151 | as_fn_error () | |
4152 | { | |
4153 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
4154 | if test "$4"; then | |
4155 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
4156 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
4157 | fi | |
4158 | $as_echo "$as_me: error: $2" >&2 | |
4159 | as_fn_exit $as_status | |
4160 | } # as_fn_error | |
4161 | ||
4162 | ||
4163 | # as_fn_set_status STATUS | |
4164 | # ----------------------- | |
4165 | # Set $? to STATUS, without forking. | |
4166 | as_fn_set_status () | |
4167 | { | |
4168 | return $1 | |
4169 | } # as_fn_set_status | |
4170 | ||
4171 | # as_fn_exit STATUS | |
4172 | # ----------------- | |
4173 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
4174 | as_fn_exit () | |
4175 | { | |
4176 | set +e | |
4177 | as_fn_set_status $1 | |
4178 | exit $1 | |
4179 | } # as_fn_exit | |
4180 | ||
4181 | # as_fn_unset VAR | |
4182 | # --------------- | |
4183 | # Portably unset VAR. | |
4184 | as_fn_unset () | |
4185 | { | |
4186 | { eval $1=; unset $1;} | |
4187 | } | |
4188 | as_unset=as_fn_unset | |
4189 | # as_fn_append VAR VALUE | |
4190 | # ---------------------- | |
4191 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
4192 | # advantage of any shell optimizations that allow amortized linear growth over | |
4193 | # repeated appends, instead of the typical quadratic growth present in naive | |
4194 | # implementations. | |
4195 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
4196 | eval 'as_fn_append () | |
4197 | { | |
4198 | eval $1+=\$2 | |
4199 | }' | |
4200 | else | |
4201 | as_fn_append () | |
4202 | { | |
4203 | eval $1=\$$1\$2 | |
4204 | } | |
4205 | fi # as_fn_append | |
4206 | ||
4207 | # as_fn_arith ARG... | |
4208 | # ------------------ | |
4209 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
4210 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
4211 | # must be portable across $(()) and expr. | |
4212 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
4213 | eval 'as_fn_arith () | |
4214 | { | |
4215 | as_val=$(( $* )) | |
4216 | }' | |
4217 | else | |
4218 | as_fn_arith () | |
4219 | { | |
4220 | as_val=`expr "$@" || test $? -eq 1` | |
4221 | } | |
4222 | fi # as_fn_arith | |
4223 | ||
4224 | ||
4225 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
4226 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4227 | as_expr=expr | |
4228 | else | |
4229 | as_expr=false | |
4230 | fi | |
4231 | ||
4232 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
4233 | as_basename=basename | |
4234 | else | |
4235 | as_basename=false | |
4236 | fi | |
4237 | ||
4238 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
4239 | as_dirname=dirname | |
4240 | else | |
4241 | as_dirname=false | |
4242 | fi | |
4243 | ||
4244 | as_me=`$as_basename -- "$0" || | |
4245 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
4246 | X"$0" : 'X\(//\)$' \| \ | |
4247 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
4248 | $as_echo X/"$0" | | |
4249 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
4250 | s//\1/ | |
4251 | q | |
4252 | } | |
4253 | /^X\/\(\/\/\)$/{ | |
4254 | s//\1/ | |
4255 | q | |
4256 | } | |
4257 | /^X\/\(\/\).*/{ | |
4258 | s//\1/ | |
4259 | q | |
4260 | } | |
4261 | s/.*/./; q'` | |
4262 | ||
4263 | # Avoid depending upon Character Ranges. | |
4264 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
4265 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
4266 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
4267 | as_cr_digits='0123456789' | |
4268 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
4269 | ||
4270 | ECHO_C= ECHO_N= ECHO_T= | |
4271 | case `echo -n x` in #((((( | |
4272 | -n*) | |
4273 | case `echo 'xy\c'` in | |
4274 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
4275 | xy) ECHO_C='\c';; | |
4276 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
4277 | ECHO_T=' ';; | |
4278 | esac;; | |
4279 | *) | |
4280 | ECHO_N='-n';; | |
4281 | esac | |
4282 | ||
4283 | rm -f conf$$ conf$$.exe conf$$.file | |
4284 | if test -d conf$$.dir; then | |
4285 | rm -f conf$$.dir/conf$$.file | |
4286 | else | |
4287 | rm -f conf$$.dir | |
4288 | mkdir conf$$.dir 2>/dev/null | |
4289 | fi | |
4290 | if (echo >conf$$.file) 2>/dev/null; then | |
4291 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
4292 | as_ln_s='ln -s' | |
4293 | # ... but there are two gotchas: | |
4294 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
4295 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
4296 | # In both cases, we have to default to `cp -pR'. | |
4297 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
4298 | as_ln_s='cp -pR' | |
4299 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
4300 | as_ln_s=ln | |
4301 | else | |
4302 | as_ln_s='cp -pR' | |
4303 | fi | |
4304 | else | |
4305 | as_ln_s='cp -pR' | |
4306 | fi | |
4307 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
4308 | rmdir conf$$.dir 2>/dev/null | |
4309 | ||
4310 | ||
4311 | # as_fn_mkdir_p | |
4312 | # ------------- | |
4313 | # Create "$as_dir" as a directory, including parents if necessary. | |
4314 | as_fn_mkdir_p () | |
4315 | { | |
4316 | ||
4317 | case $as_dir in #( | |
4318 | -*) as_dir=./$as_dir;; | |
4319 | esac | |
4320 | test -d "$as_dir" || eval $as_mkdir_p || { | |
4321 | as_dirs= | |
4322 | while :; do | |
4323 | case $as_dir in #( | |
4324 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
4325 | *) as_qdir=$as_dir;; | |
4326 | esac | |
4327 | as_dirs="'$as_qdir' $as_dirs" | |
4328 | as_dir=`$as_dirname -- "$as_dir" || | |
4329 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4330 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4331 | X"$as_dir" : 'X\(//\)$' \| \ | |
4332 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
4333 | $as_echo X"$as_dir" | | |
4334 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4335 | s//\1/ | |
4336 | q | |
4337 | } | |
4338 | /^X\(\/\/\)[^/].*/{ | |
4339 | s//\1/ | |
4340 | q | |
4341 | } | |
4342 | /^X\(\/\/\)$/{ | |
4343 | s//\1/ | |
4344 | q | |
4345 | } | |
4346 | /^X\(\/\).*/{ | |
4347 | s//\1/ | |
4348 | q | |
4349 | } | |
4350 | s/.*/./; q'` | |
4351 | test -d "$as_dir" && break | |
4352 | done | |
4353 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4354 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
4355 | ||
4356 | ||
4357 | } # as_fn_mkdir_p | |
4358 | if mkdir -p . 2>/dev/null; then | |
4359 | as_mkdir_p='mkdir -p "$as_dir"' | |
4360 | else | |
4361 | test -d ./-p && rmdir ./-p | |
4362 | as_mkdir_p=false | |
4363 | fi | |
4364 | ||
4365 | ||
4366 | # as_fn_executable_p FILE | |
4367 | # ----------------------- | |
4368 | # Test if FILE is an executable regular file. | |
4369 | as_fn_executable_p () | |
4370 | { | |
4371 | test -f "$1" && test -x "$1" | |
4372 | } # as_fn_executable_p | |
4373 | as_test_x='test -x' | |
4374 | as_executable_p=as_fn_executable_p | |
4375 | ||
4376 | # Sed expression to map a string onto a valid CPP name. | |
4377 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
4378 | ||
4379 | # Sed expression to map a string onto a valid variable name. | |
4380 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
4381 | ||
4382 | ||
4383 | exec 6>&1 | |
4384 | ## ----------------------------------- ## | |
4385 | ## Main body of $CONFIG_STATUS script. ## | |
4386 | ## ----------------------------------- ## | |
4387 | _ASEOF | |
4388 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
4389 | ||
4390 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4391 | # Save the log message, to keep $0 and so on meaningful, and to | |
4392 | # report actual input values of CONFIG_FILES etc. instead of their | |
4393 | # values after options handling. | |
4394 | ac_log=" | |
4395 | This file was extended by $as_me, which was | |
4396 | generated by GNU Autoconf 2.69. Invocation command line was | |
4397 | ||
4398 | CONFIG_FILES = $CONFIG_FILES | |
4399 | CONFIG_HEADERS = $CONFIG_HEADERS | |
4400 | CONFIG_LINKS = $CONFIG_LINKS | |
4401 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
4402 | $ $0 $@ | |
4403 | ||
4404 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
4405 | " | |
4406 | ||
4407 | _ACEOF | |
4408 | ||
4409 | case $ac_config_files in *" | |
4410 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
4411 | esac | |
4412 | ||
4413 | case $ac_config_headers in *" | |
4414 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
4415 | esac | |
4416 | ||
4417 | ||
4418 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4419 | # Files that config.status was made for. | |
4420 | config_files="$ac_config_files" | |
4421 | config_headers="$ac_config_headers" | |
4422 | ||
4423 | _ACEOF | |
4424 | ||
4425 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4426 | ac_cs_usage="\ | |
4427 | \`$as_me' instantiates files and other configuration actions | |
4428 | from templates according to the current configuration. Unless the files | |
4429 | and actions are specified as TAGs, all are instantiated by default. | |
4430 | ||
4431 | Usage: $0 [OPTION]... [TAG]... | |
4432 | ||
4433 | -h, --help print this help, then exit | |
4434 | -V, --version print version number and configuration settings, then exit | |
4435 | --config print configuration, then exit | |
4436 | -q, --quiet, --silent | |
4437 | do not print progress messages | |
4438 | -d, --debug don't remove temporary files | |
4439 | --recheck update $as_me by reconfiguring in the same conditions | |
4440 | --file=FILE[:TEMPLATE] | |
4441 | instantiate the configuration file FILE | |
4442 | --header=FILE[:TEMPLATE] | |
4443 | instantiate the configuration header FILE | |
4444 | ||
4445 | Configuration files: | |
4446 | $config_files | |
4447 | ||
4448 | Configuration headers: | |
4449 | $config_headers | |
4450 | ||
4451 | Report bugs to the package provider." | |
4452 | ||
4453 | _ACEOF | |
4454 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4455 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
4456 | ac_cs_version="\\ | |
4457 | config.status | |
4458 | configured by $0, generated by GNU Autoconf 2.69, | |
4459 | with options \\"\$ac_cs_config\\" | |
4460 | ||
4461 | Copyright (C) 2012 Free Software Foundation, Inc. | |
4462 | This config.status script is free software; the Free Software Foundation | |
4463 | gives unlimited permission to copy, distribute and modify it." | |
4464 | ||
4465 | ac_pwd='$ac_pwd' | |
4466 | srcdir='$srcdir' | |
4467 | test -n "\$AWK" || AWK=awk | |
4468 | _ACEOF | |
4469 | ||
4470 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4471 | # The default lists apply if the user does not specify any file. | |
4472 | ac_need_defaults=: | |
4473 | while test $# != 0 | |
4474 | do | |
4475 | case $1 in | |
4476 | --*=?*) | |
4477 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
4478 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
4479 | ac_shift=: | |
4480 | ;; | |
4481 | --*=) | |
4482 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
4483 | ac_optarg= | |
4484 | ac_shift=: | |
4485 | ;; | |
4486 | *) | |
4487 | ac_option=$1 | |
4488 | ac_optarg=$2 | |
4489 | ac_shift=shift | |
4490 | ;; | |
4491 | esac | |
4492 | ||
4493 | case $ac_option in | |
4494 | # Handling of the options. | |
4495 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4496 | ac_cs_recheck=: ;; | |
4497 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
4498 | $as_echo "$ac_cs_version"; exit ;; | |
4499 | --config | --confi | --conf | --con | --co | --c ) | |
4500 | $as_echo "$ac_cs_config"; exit ;; | |
4501 | --debug | --debu | --deb | --de | --d | -d ) | |
4502 | debug=: ;; | |
4503 | --file | --fil | --fi | --f ) | |
4504 | $ac_shift | |
4505 | case $ac_optarg in | |
4506 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4507 | '') as_fn_error $? "missing file argument" ;; | |
4508 | esac | |
4509 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
4510 | ac_need_defaults=false;; | |
4511 | --header | --heade | --head | --hea ) | |
4512 | $ac_shift | |
4513 | case $ac_optarg in | |
4514 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4515 | esac | |
4516 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
4517 | ac_need_defaults=false;; | |
4518 | --he | --h) | |
4519 | # Conflict between --help and --header | |
4520 | as_fn_error $? "ambiguous option: \`$1' | |
4521 | Try \`$0 --help' for more information.";; | |
4522 | --help | --hel | -h ) | |
4523 | $as_echo "$ac_cs_usage"; exit ;; | |
4524 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
4525 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
4526 | ac_cs_silent=: ;; | |
4527 | ||
4528 | # This is an error. | |
4529 | -*) as_fn_error $? "unrecognized option: \`$1' | |
4530 | Try \`$0 --help' for more information." ;; | |
4531 | ||
4532 | *) as_fn_append ac_config_targets " $1" | |
4533 | ac_need_defaults=false ;; | |
4534 | ||
4535 | esac | |
4536 | shift | |
4537 | done | |
4538 | ||
4539 | ac_configure_extra_args= | |
4540 | ||
4541 | if $ac_cs_silent; then | |
4542 | exec 6>/dev/null | |
4543 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
4544 | fi | |
4545 | ||
4546 | _ACEOF | |
4547 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4548 | if \$ac_cs_recheck; then | |
4549 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
4550 | shift | |
4551 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
4552 | CONFIG_SHELL='$SHELL' | |
4553 | export CONFIG_SHELL | |
4554 | exec "\$@" | |
4555 | fi | |
4556 | ||
4557 | _ACEOF | |
4558 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4559 | exec 5>>config.log | |
4560 | { | |
4561 | echo | |
4562 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
4563 | ## Running $as_me. ## | |
4564 | _ASBOX | |
4565 | $as_echo "$ac_log" | |
4566 | } >&5 | |
4567 | ||
4568 | _ACEOF | |
4569 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4570 | _ACEOF | |
4571 | ||
4572 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4573 | ||
4574 | # Handling of arguments. | |
4575 | for ac_config_target in $ac_config_targets | |
4576 | do | |
4577 | case $ac_config_target in | |
4578 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
4579 | "Makefile.global") CONFIG_FILES="$CONFIG_FILES Makefile.global" ;; | |
2 | 4580 | "www/version.php") CONFIG_FILES="$CONFIG_FILES www/version.php" ;; |
0 | 4581 | |
4582 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
4583 | esac | |
4584 | done | |
4585 | ||
4586 | ||
4587 | # If the user did not use the arguments to specify the items to instantiate, | |
4588 | # then the envvar interface is used. Set only those that are not. | |
4589 | # We use the long form for the default assignment because of an extremely | |
4590 | # bizarre bug on SunOS 4.1.3. | |
4591 | if $ac_need_defaults; then | |
4592 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
4593 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
4594 | fi | |
4595 | ||
4596 | # Have a temporary directory for convenience. Make it in the build tree | |
4597 | # simply because there is no reason against having it here, and in addition, | |
4598 | # creating and moving files from /tmp can sometimes cause problems. | |
4599 | # Hook for its removal unless debugging. | |
4600 | # Note that there is a small window in which the directory will not be cleaned: | |
4601 | # after its creation but before its name has been assigned to `$tmp'. | |
4602 | $debug || | |
4603 | { | |
4604 | tmp= ac_tmp= | |
4605 | trap 'exit_status=$? | |
4606 | : "${ac_tmp:=$tmp}" | |
4607 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
4608 | ' 0 | |
4609 | trap 'as_fn_exit 1' 1 2 13 15 | |
4610 | } | |
4611 | # Create a (secure) tmp directory for tmp files. | |
4612 | ||
4613 | { | |
4614 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
4615 | test -d "$tmp" | |
4616 | } || | |
4617 | { | |
4618 | tmp=./conf$$-$RANDOM | |
4619 | (umask 077 && mkdir "$tmp") | |
4620 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
4621 | ac_tmp=$tmp | |
4622 | ||
4623 | # Set up the scripts for CONFIG_FILES section. | |
4624 | # No need to generate them if there are no CONFIG_FILES. | |
4625 | # This happens for instance with `./config.status config.h'. | |
4626 | if test -n "$CONFIG_FILES"; then | |
4627 | ||
4628 | ||
4629 | ac_cr=`echo X | tr X '\015'` | |
4630 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
4631 | # But we know of no other shell where ac_cr would be empty at this | |
4632 | # point, so we can use a bashism as a fallback. | |
4633 | if test "x$ac_cr" = x; then | |
4634 | eval ac_cr=\$\'\\r\' | |
4635 | fi | |
4636 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
4637 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
4638 | ac_cs_awk_cr='\\r' | |
4639 | else | |
4640 | ac_cs_awk_cr=$ac_cr | |
4641 | fi | |
4642 | ||
4643 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
4644 | _ACEOF | |
4645 | ||
4646 | ||
4647 | { | |
4648 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
4649 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
4650 | echo "_ACEOF" | |
4651 | } >conf$$subs.sh || | |
4652 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4653 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
4654 | ac_delim='%!_!# ' | |
4655 | for ac_last_try in false false false false false :; do | |
4656 | . ./conf$$subs.sh || | |
4657 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4658 | ||
4659 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
4660 | if test $ac_delim_n = $ac_delim_num; then | |
4661 | break | |
4662 | elif $ac_last_try; then | |
4663 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4664 | else | |
4665 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4666 | fi | |
4667 | done | |
4668 | rm -f conf$$subs.sh | |
4669 | ||
4670 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4671 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
4672 | _ACEOF | |
4673 | sed -n ' | |
4674 | h | |
4675 | s/^/S["/; s/!.*/"]=/ | |
4676 | p | |
4677 | g | |
4678 | s/^[^!]*!// | |
4679 | :repl | |
4680 | t repl | |
4681 | s/'"$ac_delim"'$// | |
4682 | t delim | |
4683 | :nl | |
4684 | h | |
4685 | s/\(.\{148\}\)..*/\1/ | |
4686 | t more1 | |
4687 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
4688 | p | |
4689 | n | |
4690 | b repl | |
4691 | :more1 | |
4692 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4693 | p | |
4694 | g | |
4695 | s/.\{148\}// | |
4696 | t nl | |
4697 | :delim | |
4698 | h | |
4699 | s/\(.\{148\}\)..*/\1/ | |
4700 | t more2 | |
4701 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
4702 | p | |
4703 | b | |
4704 | :more2 | |
4705 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4706 | p | |
4707 | g | |
4708 | s/.\{148\}// | |
4709 | t delim | |
4710 | ' <conf$$subs.awk | sed ' | |
4711 | /^[^""]/{ | |
4712 | N | |
4713 | s/\n// | |
4714 | } | |
4715 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
4716 | rm -f conf$$subs.awk | |
4717 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4718 | _ACAWK | |
4719 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
4720 | for (key in S) S_is_set[key] = 1 | |
4721 | FS = "" | |
4722 | ||
4723 | } | |
4724 | { | |
4725 | line = $ 0 | |
4726 | nfields = split(line, field, "@") | |
4727 | substed = 0 | |
4728 | len = length(field[1]) | |
4729 | for (i = 2; i < nfields; i++) { | |
4730 | key = field[i] | |
4731 | keylen = length(key) | |
4732 | if (S_is_set[key]) { | |
4733 | value = S[key] | |
4734 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
4735 | len += length(value) + length(field[++i]) | |
4736 | substed = 1 | |
4737 | } else | |
4738 | len += 1 + keylen | |
4739 | } | |
4740 | ||
4741 | print line | |
4742 | } | |
4743 | ||
4744 | _ACAWK | |
4745 | _ACEOF | |
4746 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4747 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
4748 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
4749 | else | |
4750 | cat | |
4751 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
4752 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
4753 | _ACEOF | |
4754 | ||
4755 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
4756 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
4757 | # trailing colons and then remove the whole line if VPATH becomes empty | |
4758 | # (actually we leave an empty line to preserve line numbers). | |
4759 | if test "x$srcdir" = x.; then | |
4760 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
4761 | h | |
4762 | s/// | |
4763 | s/^/:/ | |
4764 | s/[ ]*$/:/ | |
4765 | s/:\$(srcdir):/:/g | |
4766 | s/:\${srcdir}:/:/g | |
4767 | s/:@srcdir@:/:/g | |
4768 | s/^:*// | |
4769 | s/:*$// | |
4770 | x | |
4771 | s/\(=[ ]*\).*/\1/ | |
4772 | G | |
4773 | s/\n// | |
4774 | s/^[^=]*=[ ]*$// | |
4775 | }' | |
4776 | fi | |
4777 | ||
4778 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4779 | fi # test -n "$CONFIG_FILES" | |
4780 | ||
4781 | # Set up the scripts for CONFIG_HEADERS section. | |
4782 | # No need to generate them if there are no CONFIG_HEADERS. | |
4783 | # This happens for instance with `./config.status Makefile'. | |
4784 | if test -n "$CONFIG_HEADERS"; then | |
4785 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
4786 | BEGIN { | |
4787 | _ACEOF | |
4788 | ||
4789 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
4790 | # here-document in config.status, that substitutes the proper values into | |
4791 | # config.h.in to produce config.h. | |
4792 | ||
4793 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
4794 | # handling of long lines. | |
4795 | ac_delim='%!_!# ' | |
4796 | for ac_last_try in false false :; do | |
4797 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
4798 | if test -z "$ac_tt"; then | |
4799 | break | |
4800 | elif $ac_last_try; then | |
4801 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
4802 | else | |
4803 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4804 | fi | |
4805 | done | |
4806 | ||
4807 | # For the awk script, D is an array of macro values keyed by name, | |
4808 | # likewise P contains macro parameters if any. Preserve backslash | |
4809 | # newline sequences. | |
4810 | ||
4811 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
4812 | sed -n ' | |
4813 | s/.\{148\}/&'"$ac_delim"'/g | |
4814 | t rset | |
4815 | :rset | |
4816 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
4817 | t def | |
4818 | d | |
4819 | :def | |
4820 | s/\\$// | |
4821 | t bsnl | |
4822 | s/["\\]/\\&/g | |
4823 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
4824 | D["\1"]=" \3"/p | |
4825 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
4826 | d | |
4827 | :bsnl | |
4828 | s/["\\]/\\&/g | |
4829 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
4830 | D["\1"]=" \3\\\\\\n"\\/p | |
4831 | t cont | |
4832 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
4833 | t cont | |
4834 | d | |
4835 | :cont | |
4836 | n | |
4837 | s/.\{148\}/&'"$ac_delim"'/g | |
4838 | t clear | |
4839 | :clear | |
4840 | s/\\$// | |
4841 | t bsnlc | |
4842 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
4843 | d | |
4844 | :bsnlc | |
4845 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
4846 | b cont | |
4847 | ' <confdefs.h | sed ' | |
4848 | s/'"$ac_delim"'/"\\\ | |
4849 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
4850 | ||
4851 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4852 | for (key in D) D_is_set[key] = 1 | |
4853 | FS = "" | |
4854 | } | |
4855 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
4856 | line = \$ 0 | |
4857 | split(line, arg, " ") | |
4858 | if (arg[1] == "#") { | |
4859 | defundef = arg[2] | |
4860 | mac1 = arg[3] | |
4861 | } else { | |
4862 | defundef = substr(arg[1], 2) | |
4863 | mac1 = arg[2] | |
4864 | } | |
4865 | split(mac1, mac2, "(") #) | |
4866 | macro = mac2[1] | |
4867 | prefix = substr(line, 1, index(line, defundef) - 1) | |
4868 | if (D_is_set[macro]) { | |
4869 | # Preserve the white space surrounding the "#". | |
4870 | print prefix "define", macro P[macro] D[macro] | |
4871 | next | |
4872 | } else { | |
4873 | # Replace #undef with comments. This is necessary, for example, | |
4874 | # in the case of _POSIX_SOURCE, which is predefined and required | |
4875 | # on some systems where configure will not decide to define it. | |
4876 | if (defundef == "undef") { | |
4877 | print "/*", prefix defundef, macro, "*/" | |
4878 | next | |
4879 | } | |
4880 | } | |
4881 | } | |
4882 | { print } | |
4883 | _ACAWK | |
4884 | _ACEOF | |
4885 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4886 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
4887 | fi # test -n "$CONFIG_HEADERS" | |
4888 | ||
4889 | ||
4890 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | |
4891 | shift | |
4892 | for ac_tag | |
4893 | do | |
4894 | case $ac_tag in | |
4895 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
4896 | esac | |
4897 | case $ac_mode$ac_tag in | |
4898 | :[FHL]*:*);; | |
4899 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
4900 | :[FH]-) ac_tag=-:-;; | |
4901 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
4902 | esac | |
4903 | ac_save_IFS=$IFS | |
4904 | IFS=: | |
4905 | set x $ac_tag | |
4906 | IFS=$ac_save_IFS | |
4907 | shift | |
4908 | ac_file=$1 | |
4909 | shift | |
4910 | ||
4911 | case $ac_mode in | |
4912 | :L) ac_source=$1;; | |
4913 | :[FH]) | |
4914 | ac_file_inputs= | |
4915 | for ac_f | |
4916 | do | |
4917 | case $ac_f in | |
4918 | -) ac_f="$ac_tmp/stdin";; | |
4919 | *) # Look for the file first in the build tree, then in the source tree | |
4920 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
4921 | # because $ac_f cannot contain `:'. | |
4922 | test -f "$ac_f" || | |
4923 | case $ac_f in | |
4924 | [\\/$]*) false;; | |
4925 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
4926 | esac || | |
4927 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
4928 | esac | |
4929 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
4930 | as_fn_append ac_file_inputs " '$ac_f'" | |
4931 | done | |
4932 | ||
4933 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
4934 | # use $as_me), people would be surprised to read: | |
4935 | # /* config.h. Generated by config.status. */ | |
4936 | configure_input='Generated from '` | |
4937 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
4938 | `' by configure.' | |
4939 | if test x"$ac_file" != x-; then | |
4940 | configure_input="$ac_file. $configure_input" | |
4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
4942 | $as_echo "$as_me: creating $ac_file" >&6;} | |
4943 | fi | |
4944 | # Neutralize special characters interpreted by sed in replacement strings. | |
4945 | case $configure_input in #( | |
4946 | *\&* | *\|* | *\\* ) | |
4947 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
4948 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
4949 | *) ac_sed_conf_input=$configure_input;; | |
4950 | esac | |
4951 | ||
4952 | case $ac_tag in | |
4953 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
4954 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
4955 | esac | |
4956 | ;; | |
4957 | esac | |
4958 | ||
4959 | ac_dir=`$as_dirname -- "$ac_file" || | |
4960 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4961 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
4962 | X"$ac_file" : 'X\(//\)$' \| \ | |
4963 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
4964 | $as_echo X"$ac_file" | | |
4965 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4966 | s//\1/ | |
4967 | q | |
4968 | } | |
4969 | /^X\(\/\/\)[^/].*/{ | |
4970 | s//\1/ | |
4971 | q | |
4972 | } | |
4973 | /^X\(\/\/\)$/{ | |
4974 | s//\1/ | |
4975 | q | |
4976 | } | |
4977 | /^X\(\/\).*/{ | |
4978 | s//\1/ | |
4979 | q | |
4980 | } | |
4981 | s/.*/./; q'` | |
4982 | as_dir="$ac_dir"; as_fn_mkdir_p | |
4983 | ac_builddir=. | |
4984 | ||
4985 | case "$ac_dir" in | |
4986 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4987 | *) | |
4988 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
4989 | # A ".." for each directory in $ac_dir_suffix. | |
4990 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
4991 | case $ac_top_builddir_sub in | |
4992 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4993 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
4994 | esac ;; | |
4995 | esac | |
4996 | ac_abs_top_builddir=$ac_pwd | |
4997 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
4998 | # for backward compatibility: | |
4999 | ac_top_builddir=$ac_top_build_prefix | |
5000 | ||
5001 | case $srcdir in | |
5002 | .) # We are building in place. | |
5003 | ac_srcdir=. | |
5004 | ac_top_srcdir=$ac_top_builddir_sub | |
5005 | ac_abs_top_srcdir=$ac_pwd ;; | |
5006 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
5007 | ac_srcdir=$srcdir$ac_dir_suffix; | |
5008 | ac_top_srcdir=$srcdir | |
5009 | ac_abs_top_srcdir=$srcdir ;; | |
5010 | *) # Relative name. | |
5011 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
5012 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
5013 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5014 | esac | |
5015 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
5016 | ||
5017 | ||
5018 | case $ac_mode in | |
5019 | :F) | |
5020 | # | |
5021 | # CONFIG_FILE | |
5022 | # | |
5023 | ||
5024 | _ACEOF | |
5025 | ||
5026 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5027 | # If the template does not know about datarootdir, expand it. | |
5028 | # FIXME: This hack should be removed a few years after 2.60. | |
5029 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
5030 | ac_sed_dataroot=' | |
5031 | /datarootdir/ { | |
5032 | p | |
5033 | q | |
5034 | } | |
5035 | /@datadir@/p | |
5036 | /@docdir@/p | |
5037 | /@infodir@/p | |
5038 | /@localedir@/p | |
5039 | /@mandir@/p' | |
5040 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
5041 | *datarootdir*) ac_datarootdir_seen=yes;; | |
5042 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
5043 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
5044 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
5045 | _ACEOF | |
5046 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5047 | ac_datarootdir_hack=' | |
5048 | s&@datadir@&$datadir&g | |
5049 | s&@docdir@&$docdir&g | |
5050 | s&@infodir@&$infodir&g | |
5051 | s&@localedir@&$localedir&g | |
5052 | s&@mandir@&$mandir&g | |
5053 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
5054 | esac | |
5055 | _ACEOF | |
5056 | ||
5057 | # Neutralize VPATH when `$srcdir' = `.'. | |
5058 | # Shell code in configure.ac might set extrasub. | |
5059 | # FIXME: do we really want to maintain this feature? | |
5060 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5061 | ac_sed_extra="$ac_vpsub | |
5062 | $extrasub | |
5063 | _ACEOF | |
5064 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5065 | :t | |
5066 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5067 | s|@configure_input@|$ac_sed_conf_input|;t t | |
5068 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
5069 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
5070 | s&@srcdir@&$ac_srcdir&;t t | |
5071 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
5072 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
5073 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
5074 | s&@builddir@&$ac_builddir&;t t | |
5075 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
5076 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
5077 | $ac_datarootdir_hack | |
5078 | " | |
5079 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
5080 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5081 | ||
5082 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
5083 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
5084 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
5085 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
5087 | which seems to be undefined. Please make sure it is defined" >&5 | |
5088 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
5089 | which seems to be undefined. Please make sure it is defined" >&2;} | |
5090 | ||
5091 | rm -f "$ac_tmp/stdin" | |
5092 | case $ac_file in | |
5093 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
5094 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5095 | esac \ | |
5096 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5097 | ;; | |
5098 | :H) | |
5099 | # | |
5100 | # CONFIG_HEADER | |
5101 | # | |
5102 | if test x"$ac_file" != x-; then | |
5103 | { | |
5104 | $as_echo "/* $configure_input */" \ | |
5105 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
5106 | } >"$ac_tmp/config.h" \ | |
5107 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5108 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
5109 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
5110 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
5111 | else | |
5112 | rm -f "$ac_file" | |
5113 | mv "$ac_tmp/config.h" "$ac_file" \ | |
5114 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5115 | fi | |
5116 | else | |
5117 | $as_echo "/* $configure_input */" \ | |
5118 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
5119 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
5120 | fi | |
5121 | ;; | |
5122 | ||
5123 | ||
5124 | esac | |
5125 | ||
5126 | done # for ac_tag | |
5127 | ||
5128 | ||
5129 | as_fn_exit 0 | |
5130 | _ACEOF | |
5131 | ac_clean_files=$ac_clean_files_save | |
5132 | ||
5133 | test $ac_write_fail = 0 || | |
5134 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
5135 | ||
5136 | ||
5137 | # configure is writing to config.log, and then calls config.status. | |
5138 | # config.status does its own redirection, appending to config.log. | |
5139 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
5140 | # by configure, so config.status won't be able to write to it; its | |
5141 | # output is simply discarded. So we exec the FD to /dev/null, | |
5142 | # effectively closing config.log, so it can be properly (re)opened and | |
5143 | # appended to by config.status. When coming back to configure, we | |
5144 | # need to make the FD available again. | |
5145 | if test "$no_create" != yes; then | |
5146 | ac_cs_success=: | |
5147 | ac_config_status_args= | |
5148 | test "$silent" = yes && | |
5149 | ac_config_status_args="$ac_config_status_args --quiet" | |
5150 | exec 5>/dev/null | |
5151 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
5152 | exec 5>>config.log | |
5153 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
5154 | # would make configure fail if this is the last instruction. | |
5155 | $ac_cs_success || as_fn_exit 1 | |
5156 | fi | |
5157 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
5159 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
5160 | fi | |
5161 | ||
5162 | ||
5163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: | |
5164 | -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=- | |
5165 | ||
5166 | Configuration summary : | |
5167 | ||
5168 | Version : ............ ${VERSION} | |
5169 | Main directory : ..... ${prefix} | |
5170 | ||
5171 | ||
5172 | Now type 'make' and 'sudo make install' | |
5173 | " >&5 | |
5174 | $as_echo " | |
5175 | -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=- | |
5176 | ||
5177 | Configuration summary : | |
5178 | ||
5179 | Version : ............ ${VERSION} | |
5180 | Main directory : ..... ${prefix} | |
5181 | ||
5182 | ||
5183 | Now type 'make' and 'sudo make install' | |
5184 | " >&6; } | |
5185 |