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