Tue, 07 May 2024 14:11:31 +0200
Save one devices loop when handling a 2413 device.
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 |
726 | 1682 | |
727 | 1683 | # ac_fn_c_check_func LINENO FUNC VAR |
1684 | # ---------------------------------- | |
1685 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1686 | ac_fn_c_check_func () | |
726 | 1687 | { |
1688 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
727 | 1689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1690 | $as_echo_n "checking for $2... " >&6; } | |
726 | 1691 | if eval \${$3+:} false; then : |
1692 | $as_echo_n "(cached) " >&6 | |
1693 | else | |
1694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1695 | /* end confdefs.h. */ | |
727 | 1696 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1697 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1698 | #define $2 innocuous_$2 | |
1699 | ||
1700 | /* System header to define __stub macros and hopefully few prototypes, | |
1701 | which can conflict with char $2 (); below. | |
1702 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1703 | <limits.h> exists even on freestanding compilers. */ | |
1704 | ||
1705 | #ifdef __STDC__ | |
1706 | # include <limits.h> | |
1707 | #else | |
1708 | # include <assert.h> | |
1709 | #endif | |
1710 | ||
1711 | #undef $2 | |
1712 | ||
1713 | /* Override any GCC internal prototype to avoid an error. | |
1714 | Use char because int might match the return type of a GCC | |
1715 | builtin and then its argument prototype would still apply. */ | |
1716 | #ifdef __cplusplus | |
1717 | extern "C" | |
1718 | #endif | |
1719 | char $2 (); | |
1720 | /* The GNU C library defines this for functions which it implements | |
1721 | to always fail with ENOSYS. Some functions are actually named | |
1722 | something starting with __ and the normal name is an alias. */ | |
1723 | #if defined __stub_$2 || defined __stub___$2 | |
1724 | choke me | |
1725 | #endif | |
1726 | ||
726 | 1727 | int |
1728 | main () | |
1729 | { | |
727 | 1730 | return $2 (); |
726 | 1731 | ; |
1732 | return 0; | |
1733 | } | |
1734 | _ACEOF | |
727 | 1735 | if ac_fn_c_try_link "$LINENO"; then : |
726 | 1736 | eval "$3=yes" |
1737 | else | |
1738 | eval "$3=no" | |
1739 | fi | |
727 | 1740 | rm -f core conftest.err conftest.$ac_objext \ |
1741 | conftest$ac_exeext conftest.$ac_ext | |
726 | 1742 | fi |
1743 | eval ac_res=\$$3 | |
1744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1745 | $as_echo "$ac_res" >&6; } | |
1746 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1747 | ||
727 | 1748 | } # ac_fn_c_check_func |
0 | 1749 | cat >config.log <<_ACEOF |
1750 | This file contains any messages produced by compilers while | |
1751 | running configure, to aid debugging if configure makes a mistake. | |
1752 | ||
1753 | It was created by $as_me, which was | |
1754 | generated by GNU Autoconf 2.69. Invocation command line was | |
1755 | ||
1756 | $ $0 $@ | |
1757 | ||
1758 | _ACEOF | |
1759 | exec 5>>config.log | |
1760 | { | |
1761 | cat <<_ASUNAME | |
1762 | ## --------- ## | |
1763 | ## Platform. ## | |
1764 | ## --------- ## | |
1765 | ||
1766 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1767 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1768 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1769 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1770 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1771 | ||
1772 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1773 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1774 | ||
1775 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1776 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1777 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1778 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1779 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1780 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1781 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1782 | ||
1783 | _ASUNAME | |
1784 | ||
1785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1786 | for as_dir in $PATH | |
1787 | do | |
1788 | IFS=$as_save_IFS | |
1789 | test -z "$as_dir" && as_dir=. | |
1790 | $as_echo "PATH: $as_dir" | |
1791 | done | |
1792 | IFS=$as_save_IFS | |
1793 | ||
1794 | } >&5 | |
1795 | ||
1796 | cat >&5 <<_ACEOF | |
1797 | ||
1798 | ||
1799 | ## ----------- ## | |
1800 | ## Core tests. ## | |
1801 | ## ----------- ## | |
1802 | ||
1803 | _ACEOF | |
1804 | ||
1805 | ||
1806 | # Keep a trace of the command line. | |
1807 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1808 | # Strip out --silent because we don't want to record it for future runs. | |
1809 | # Also quote any args containing shell meta-characters. | |
1810 | # Make two passes to allow for proper duplicate-argument suppression. | |
1811 | ac_configure_args= | |
1812 | ac_configure_args0= | |
1813 | ac_configure_args1= | |
1814 | ac_must_keep_next=false | |
1815 | for ac_pass in 1 2 | |
1816 | do | |
1817 | for ac_arg | |
1818 | do | |
1819 | case $ac_arg in | |
1820 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1821 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1822 | | -silent | --silent | --silen | --sile | --sil) | |
1823 | continue ;; | |
1824 | *\'*) | |
1825 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1826 | esac | |
1827 | case $ac_pass in | |
1828 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1829 | 2) | |
1830 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
1831 | if test $ac_must_keep_next = true; then | |
1832 | ac_must_keep_next=false # Got value, back to normal. | |
1833 | else | |
1834 | case $ac_arg in | |
1835 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1836 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1837 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1838 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1839 | case "$ac_configure_args0 " in | |
1840 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1841 | esac | |
1842 | ;; | |
1843 | -* ) ac_must_keep_next=true ;; | |
1844 | esac | |
1845 | fi | |
1846 | as_fn_append ac_configure_args " '$ac_arg'" | |
1847 | ;; | |
1848 | esac | |
1849 | done | |
1850 | done | |
1851 | { ac_configure_args0=; unset ac_configure_args0;} | |
1852 | { ac_configure_args1=; unset ac_configure_args1;} | |
1853 | ||
1854 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1855 | # config.log. We remove comments because anyway the quotes in there | |
1856 | # would cause problems or look ugly. | |
1857 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1858 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1859 | trap 'exit_status=$? | |
1860 | # Save into config.log some information that might help in debugging. | |
1861 | { | |
1862 | echo | |
1863 | ||
1864 | $as_echo "## ---------------- ## | |
1865 | ## Cache variables. ## | |
1866 | ## ---------------- ##" | |
1867 | echo | |
1868 | # The following way of writing the cache mishandles newlines in values, | |
1869 | ( | |
1870 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1871 | eval ac_val=\$$ac_var | |
1872 | case $ac_val in #( | |
1873 | *${as_nl}*) | |
1874 | case $ac_var in #( | |
1875 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1876 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1877 | esac | |
1878 | case $ac_var in #( | |
1879 | _ | IFS | as_nl) ;; #( | |
1880 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1881 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1882 | esac ;; | |
1883 | esac | |
1884 | done | |
1885 | (set) 2>&1 | | |
1886 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1887 | *${as_nl}ac_space=\ *) | |
1888 | sed -n \ | |
1889 | "s/'\''/'\''\\\\'\'''\''/g; | |
1890 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1891 | ;; #( | |
1892 | *) | |
1893 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1894 | ;; | |
1895 | esac | | |
1896 | sort | |
1897 | ) | |
1898 | echo | |
1899 | ||
1900 | $as_echo "## ----------------- ## | |
1901 | ## Output variables. ## | |
1902 | ## ----------------- ##" | |
1903 | echo | |
1904 | for ac_var in $ac_subst_vars | |
1905 | do | |
1906 | eval ac_val=\$$ac_var | |
1907 | case $ac_val in | |
1908 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1909 | esac | |
1910 | $as_echo "$ac_var='\''$ac_val'\''" | |
1911 | done | sort | |
1912 | echo | |
1913 | ||
1914 | if test -n "$ac_subst_files"; then | |
1915 | $as_echo "## ------------------- ## | |
1916 | ## File substitutions. ## | |
1917 | ## ------------------- ##" | |
1918 | echo | |
1919 | for ac_var in $ac_subst_files | |
1920 | do | |
1921 | eval ac_val=\$$ac_var | |
1922 | case $ac_val in | |
1923 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1924 | esac | |
1925 | $as_echo "$ac_var='\''$ac_val'\''" | |
1926 | done | sort | |
1927 | echo | |
1928 | fi | |
1929 | ||
1930 | if test -s confdefs.h; then | |
1931 | $as_echo "## ----------- ## | |
1932 | ## confdefs.h. ## | |
1933 | ## ----------- ##" | |
1934 | echo | |
1935 | cat confdefs.h | |
1936 | echo | |
1937 | fi | |
1938 | test "$ac_signal" != 0 && | |
1939 | $as_echo "$as_me: caught signal $ac_signal" | |
1940 | $as_echo "$as_me: exit $exit_status" | |
1941 | } >&5 | |
1942 | rm -f core *.core core.conftest.* && | |
1943 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1944 | exit $exit_status | |
1945 | ' 0 | |
1946 | for ac_signal in 1 2 13 15; do | |
1947 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
1948 | done | |
1949 | ac_signal=0 | |
1950 | ||
1951 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1952 | rm -f -r conftest* confdefs.h | |
1953 | ||
1954 | $as_echo "/* confdefs.h */" > confdefs.h | |
1955 | ||
1956 | # Predefined preprocessor variables. | |
1957 | ||
1958 | cat >>confdefs.h <<_ACEOF | |
1959 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1960 | _ACEOF | |
1961 | ||
1962 | cat >>confdefs.h <<_ACEOF | |
1963 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1964 | _ACEOF | |
1965 | ||
1966 | cat >>confdefs.h <<_ACEOF | |
1967 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1968 | _ACEOF | |
1969 | ||
1970 | cat >>confdefs.h <<_ACEOF | |
1971 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1972 | _ACEOF | |
1973 | ||
1974 | cat >>confdefs.h <<_ACEOF | |
1975 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1976 | _ACEOF | |
1977 | ||
1978 | cat >>confdefs.h <<_ACEOF | |
1979 | #define PACKAGE_URL "$PACKAGE_URL" | |
1980 | _ACEOF | |
1981 | ||
1982 | ||
1983 | # Let the site file select an alternate cache file if it wants to. | |
1984 | # Prefer an explicitly selected file to automatically selected ones. | |
1985 | ac_site_file1=NONE | |
1986 | ac_site_file2=NONE | |
1987 | if test -n "$CONFIG_SITE"; then | |
1988 | # We do not want a PATH search for config.site. | |
1989 | case $CONFIG_SITE in #(( | |
1990 | -*) ac_site_file1=./$CONFIG_SITE;; | |
1991 | */*) ac_site_file1=$CONFIG_SITE;; | |
1992 | *) ac_site_file1=./$CONFIG_SITE;; | |
1993 | esac | |
1994 | elif test "x$prefix" != xNONE; then | |
1995 | ac_site_file1=$prefix/share/config.site | |
1996 | ac_site_file2=$prefix/etc/config.site | |
1997 | else | |
1998 | ac_site_file1=$ac_default_prefix/share/config.site | |
1999 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2000 | fi | |
2001 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2002 | do | |
2003 | test "x$ac_site_file" = xNONE && continue | |
2004 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2005 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2006 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2007 | sed 's/^/| /' "$ac_site_file" >&5 | |
2008 | . "$ac_site_file" \ | |
2009 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2010 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2011 | as_fn_error $? "failed to load site script $ac_site_file | |
2012 | See \`config.log' for more details" "$LINENO" 5; } | |
2013 | fi | |
2014 | done | |
2015 | ||
2016 | if test -r "$cache_file"; then | |
2017 | # Some versions of bash will fail to source /dev/null (special files | |
2018 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2019 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2020 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2021 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2022 | case $cache_file in | |
2023 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2024 | *) . "./$cache_file";; | |
2025 | esac | |
2026 | fi | |
2027 | else | |
2028 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2029 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2030 | >$cache_file | |
2031 | fi | |
2032 | ||
2033 | # Check that the precious variables saved in the cache have kept the same | |
2034 | # value. | |
2035 | ac_cache_corrupted=false | |
2036 | for ac_var in $ac_precious_vars; do | |
2037 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2038 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2039 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2040 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2041 | case $ac_old_set,$ac_new_set in | |
2042 | set,) | |
2043 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2044 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2045 | ac_cache_corrupted=: ;; | |
2046 | ,set) | |
2047 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2048 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2049 | ac_cache_corrupted=: ;; | |
2050 | ,);; | |
2051 | *) | |
2052 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2053 | # differences in whitespace do not lead to failure. | |
2054 | ac_old_val_w=`echo x $ac_old_val` | |
2055 | ac_new_val_w=`echo x $ac_new_val` | |
2056 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2057 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2058 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2059 | ac_cache_corrupted=: | |
2060 | else | |
2061 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2062 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2063 | eval $ac_var=\$ac_old_val | |
2064 | fi | |
2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2066 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2067 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2068 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2069 | fi;; | |
2070 | esac | |
2071 | # Pass precious variables to config.status. | |
2072 | if test "$ac_new_set" = set; then | |
2073 | case $ac_new_val in | |
2074 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2075 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2076 | esac | |
2077 | case " $ac_configure_args " in | |
2078 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2079 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2080 | esac | |
2081 | fi | |
2082 | done | |
2083 | if $ac_cache_corrupted; then | |
2084 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2085 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2086 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2087 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2088 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2089 | fi | |
2090 | ## -------------------- ## | |
2091 | ## Main body of script. ## | |
2092 | ## -------------------- ## | |
2093 | ||
2094 | ac_ext=c | |
2095 | ac_cpp='$CPP $CPPFLAGS' | |
2096 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2097 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2098 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2099 | ||
2100 | ||
2 | 2101 | ac_config_headers="$ac_config_headers config.h" |
2102 | ||
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
|
2103 | SUBDIRS="thermferm brewpanel tools www" |
0 | 2104 | |
2105 | ||
2106 | PACKAGE="mbsePi-apps" | |
731
8b7c63bddf75
Version 0.9.20a2. Renamed one-wire struct resolution to rd_cache and added wr_cache. The rd_cache and wr_cache values are used by the DS2413. Added these values to the grid so we can see them live.
Michiel Broek <mbroek@mbse.eu>
parents:
728
diff
changeset
|
2107 | VERSION="0.9.20a2" |
634 | 2108 | COPYRIGHT="Copyright (C) 2014-2024 Michiel Broek, All Rights Reserved" |
2109 | CYEARS="2014-2024" | |
0 | 2110 | |
2111 | ||
2112 | ||
2113 | ||
2114 | ||
2115 | cat >>confdefs.h <<_ACEOF | |
2116 | #define VERSION "$VERSION" | |
2117 | _ACEOF | |
2118 | ||
2119 | cat >>confdefs.h <<_ACEOF | |
2120 | #define COPYRIGHT "$COPYRIGHT" | |
2121 | _ACEOF | |
2122 | ||
2123 | TARGET="$target" | |
2124 | ||
2125 | ||
2126 | ac_ext=c | |
2127 | ac_cpp='$CPP $CPPFLAGS' | |
2128 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2129 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2130 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2131 | if test -n "$ac_tool_prefix"; then | |
2132 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2133 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2135 | $as_echo_n "checking for $ac_word... " >&6; } | |
2136 | if ${ac_cv_prog_CC+:} false; then : | |
2137 | $as_echo_n "(cached) " >&6 | |
2138 | else | |
2139 | if test -n "$CC"; then | |
2140 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2141 | else | |
2142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2143 | for as_dir in $PATH | |
2144 | do | |
2145 | IFS=$as_save_IFS | |
2146 | test -z "$as_dir" && as_dir=. | |
2147 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2148 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2149 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2150 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2151 | break 2 | |
2152 | fi | |
2153 | done | |
2154 | done | |
2155 | IFS=$as_save_IFS | |
2156 | ||
2157 | fi | |
2158 | fi | |
2159 | CC=$ac_cv_prog_CC | |
2160 | if test -n "$CC"; then | |
2161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2162 | $as_echo "$CC" >&6; } | |
2163 | else | |
2164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2165 | $as_echo "no" >&6; } | |
2166 | fi | |
2167 | ||
2168 | ||
2169 | fi | |
2170 | if test -z "$ac_cv_prog_CC"; then | |
2171 | ac_ct_CC=$CC | |
2172 | # Extract the first word of "gcc", so it can be a program name with args. | |
2173 | set dummy gcc; ac_word=$2 | |
2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2175 | $as_echo_n "checking for $ac_word... " >&6; } | |
2176 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2177 | $as_echo_n "(cached) " >&6 | |
2178 | else | |
2179 | if test -n "$ac_ct_CC"; then | |
2180 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2181 | else | |
2182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2183 | for as_dir in $PATH | |
2184 | do | |
2185 | IFS=$as_save_IFS | |
2186 | test -z "$as_dir" && as_dir=. | |
2187 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2188 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2189 | ac_cv_prog_ac_ct_CC="gcc" | |
2190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2191 | break 2 | |
2192 | fi | |
2193 | done | |
2194 | done | |
2195 | IFS=$as_save_IFS | |
2196 | ||
2197 | fi | |
2198 | fi | |
2199 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2200 | if test -n "$ac_ct_CC"; then | |
2201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2202 | $as_echo "$ac_ct_CC" >&6; } | |
2203 | else | |
2204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2205 | $as_echo "no" >&6; } | |
2206 | fi | |
2207 | ||
2208 | if test "x$ac_ct_CC" = x; then | |
2209 | CC="" | |
2210 | else | |
2211 | case $cross_compiling:$ac_tool_warned in | |
2212 | yes:) | |
2213 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2214 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2215 | ac_tool_warned=yes ;; | |
2216 | esac | |
2217 | CC=$ac_ct_CC | |
2218 | fi | |
2219 | else | |
2220 | CC="$ac_cv_prog_CC" | |
2221 | fi | |
2222 | ||
2223 | if test -z "$CC"; then | |
2224 | if test -n "$ac_tool_prefix"; then | |
2225 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2226 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2228 | $as_echo_n "checking for $ac_word... " >&6; } | |
2229 | if ${ac_cv_prog_CC+:} false; then : | |
2230 | $as_echo_n "(cached) " >&6 | |
2231 | else | |
2232 | if test -n "$CC"; then | |
2233 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2234 | else | |
2235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2236 | for as_dir in $PATH | |
2237 | do | |
2238 | IFS=$as_save_IFS | |
2239 | test -z "$as_dir" && as_dir=. | |
2240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2241 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2242 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2244 | break 2 | |
2245 | fi | |
2246 | done | |
2247 | done | |
2248 | IFS=$as_save_IFS | |
2249 | ||
2250 | fi | |
2251 | fi | |
2252 | CC=$ac_cv_prog_CC | |
2253 | if test -n "$CC"; then | |
2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2255 | $as_echo "$CC" >&6; } | |
2256 | else | |
2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2258 | $as_echo "no" >&6; } | |
2259 | fi | |
2260 | ||
2261 | ||
2262 | fi | |
2263 | fi | |
2264 | if test -z "$CC"; then | |
2265 | # Extract the first word of "cc", so it can be a program name with args. | |
2266 | set dummy cc; ac_word=$2 | |
2267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2268 | $as_echo_n "checking for $ac_word... " >&6; } | |
2269 | if ${ac_cv_prog_CC+:} false; then : | |
2270 | $as_echo_n "(cached) " >&6 | |
2271 | else | |
2272 | if test -n "$CC"; then | |
2273 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2274 | else | |
2275 | ac_prog_rejected=no | |
2276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2277 | for as_dir in $PATH | |
2278 | do | |
2279 | IFS=$as_save_IFS | |
2280 | test -z "$as_dir" && as_dir=. | |
2281 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2282 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2283 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2284 | ac_prog_rejected=yes | |
2285 | continue | |
2286 | fi | |
2287 | ac_cv_prog_CC="cc" | |
2288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2289 | break 2 | |
2290 | fi | |
2291 | done | |
2292 | done | |
2293 | IFS=$as_save_IFS | |
2294 | ||
2295 | if test $ac_prog_rejected = yes; then | |
2296 | # We found a bogon in the path, so make sure we never use it. | |
2297 | set dummy $ac_cv_prog_CC | |
2298 | shift | |
2299 | if test $# != 0; then | |
2300 | # We chose a different compiler from the bogus one. | |
2301 | # However, it has the same basename, so the bogon will be chosen | |
2302 | # first if we set CC to just the basename; use the full file name. | |
2303 | shift | |
2304 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2305 | fi | |
2306 | fi | |
2307 | fi | |
2308 | fi | |
2309 | CC=$ac_cv_prog_CC | |
2310 | if test -n "$CC"; then | |
2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2312 | $as_echo "$CC" >&6; } | |
2313 | else | |
2314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2315 | $as_echo "no" >&6; } | |
2316 | fi | |
2317 | ||
2318 | ||
2319 | fi | |
2320 | if test -z "$CC"; then | |
2321 | if test -n "$ac_tool_prefix"; then | |
2322 | for ac_prog in cl.exe | |
2323 | do | |
2324 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2325 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2327 | $as_echo_n "checking for $ac_word... " >&6; } | |
2328 | if ${ac_cv_prog_CC+:} false; then : | |
2329 | $as_echo_n "(cached) " >&6 | |
2330 | else | |
2331 | if test -n "$CC"; then | |
2332 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2333 | else | |
2334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2335 | for as_dir in $PATH | |
2336 | do | |
2337 | IFS=$as_save_IFS | |
2338 | test -z "$as_dir" && as_dir=. | |
2339 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2340 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2341 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2342 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2343 | break 2 | |
2344 | fi | |
2345 | done | |
2346 | done | |
2347 | IFS=$as_save_IFS | |
2348 | ||
2349 | fi | |
2350 | fi | |
2351 | CC=$ac_cv_prog_CC | |
2352 | if test -n "$CC"; then | |
2353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2354 | $as_echo "$CC" >&6; } | |
2355 | else | |
2356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2357 | $as_echo "no" >&6; } | |
2358 | fi | |
2359 | ||
2360 | ||
2361 | test -n "$CC" && break | |
2362 | done | |
2363 | fi | |
2364 | if test -z "$CC"; then | |
2365 | ac_ct_CC=$CC | |
2366 | for ac_prog in cl.exe | |
2367 | do | |
2368 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2369 | set dummy $ac_prog; ac_word=$2 | |
2370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2371 | $as_echo_n "checking for $ac_word... " >&6; } | |
2372 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2373 | $as_echo_n "(cached) " >&6 | |
2374 | else | |
2375 | if test -n "$ac_ct_CC"; then | |
2376 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2377 | else | |
2378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2379 | for as_dir in $PATH | |
2380 | do | |
2381 | IFS=$as_save_IFS | |
2382 | test -z "$as_dir" && as_dir=. | |
2383 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2384 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2385 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2387 | break 2 | |
2388 | fi | |
2389 | done | |
2390 | done | |
2391 | IFS=$as_save_IFS | |
2392 | ||
2393 | fi | |
2394 | fi | |
2395 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2396 | if test -n "$ac_ct_CC"; then | |
2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2398 | $as_echo "$ac_ct_CC" >&6; } | |
2399 | else | |
2400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2401 | $as_echo "no" >&6; } | |
2402 | fi | |
2403 | ||
2404 | ||
2405 | test -n "$ac_ct_CC" && break | |
2406 | done | |
2407 | ||
2408 | if test "x$ac_ct_CC" = x; then | |
2409 | CC="" | |
2410 | else | |
2411 | case $cross_compiling:$ac_tool_warned in | |
2412 | yes:) | |
2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2414 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2415 | ac_tool_warned=yes ;; | |
2416 | esac | |
2417 | CC=$ac_ct_CC | |
2418 | fi | |
2419 | fi | |
2420 | ||
2421 | fi | |
2422 | ||
2423 | ||
2424 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2425 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2426 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2427 | See \`config.log' for more details" "$LINENO" 5; } | |
2428 | ||
2429 | # Provide some information about the compiler. | |
2430 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2431 | set X $ac_compile | |
2432 | ac_compiler=$2 | |
2433 | for ac_option in --version -v -V -qversion; do | |
2434 | { { ac_try="$ac_compiler $ac_option >&5" | |
2435 | case "(($ac_try" in | |
2436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2437 | *) ac_try_echo=$ac_try;; | |
2438 | esac | |
2439 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2440 | $as_echo "$ac_try_echo"; } >&5 | |
2441 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2442 | ac_status=$? | |
2443 | if test -s conftest.err; then | |
2444 | sed '10a\ | |
2445 | ... rest of stderr output deleted ... | |
2446 | 10q' conftest.err >conftest.er1 | |
2447 | cat conftest.er1 >&5 | |
2448 | fi | |
2449 | rm -f conftest.er1 conftest.err | |
2450 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2451 | test $ac_status = 0; } | |
2452 | done | |
2453 | ||
2454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2455 | /* end confdefs.h. */ | |
2456 | ||
2457 | int | |
2458 | main () | |
2459 | { | |
2460 | ||
2461 | ; | |
2462 | return 0; | |
2463 | } | |
2464 | _ACEOF | |
2465 | ac_clean_files_save=$ac_clean_files | |
2466 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2467 | # Try to create an executable without -o first, disregard a.out. | |
2468 | # It will help us diagnose broken compilers, and finding out an intuition | |
2469 | # of exeext. | |
2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2471 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2472 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2473 | ||
2474 | # The possible output files: | |
2475 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2476 | ||
2477 | ac_rmfiles= | |
2478 | for ac_file in $ac_files | |
2479 | do | |
2480 | case $ac_file in | |
2481 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2482 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2483 | esac | |
2484 | done | |
2485 | rm -f $ac_rmfiles | |
2486 | ||
2487 | if { { ac_try="$ac_link_default" | |
2488 | case "(($ac_try" in | |
2489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2490 | *) ac_try_echo=$ac_try;; | |
2491 | esac | |
2492 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2493 | $as_echo "$ac_try_echo"; } >&5 | |
2494 | (eval "$ac_link_default") 2>&5 | |
2495 | ac_status=$? | |
2496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2497 | test $ac_status = 0; }; then : | |
2498 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2499 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2500 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2501 | # so that the user can short-circuit this test for compilers unknown to | |
2502 | # Autoconf. | |
2503 | for ac_file in $ac_files '' | |
2504 | do | |
2505 | test -f "$ac_file" || continue | |
2506 | case $ac_file in | |
2507 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2508 | ;; | |
2509 | [ab].out ) | |
2510 | # We found the default executable, but exeext='' is most | |
2511 | # certainly right. | |
2512 | break;; | |
2513 | *.* ) | |
2514 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2515 | then :; else | |
2516 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2517 | fi | |
2518 | # We set ac_cv_exeext here because the later test for it is not | |
2519 | # safe: cross compilers may not add the suffix if given an `-o' | |
2520 | # argument, so we may need to know it at that point already. | |
2521 | # Even if this section looks crufty: it has the advantage of | |
2522 | # actually working. | |
2523 | break;; | |
2524 | * ) | |
2525 | break;; | |
2526 | esac | |
2527 | done | |
2528 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2529 | ||
2530 | else | |
2531 | ac_file='' | |
2532 | fi | |
2533 | if test -z "$ac_file"; then : | |
2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2535 | $as_echo "no" >&6; } | |
2536 | $as_echo "$as_me: failed program was:" >&5 | |
2537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2538 | ||
2539 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2540 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2541 | as_fn_error 77 "C compiler cannot create executables | |
2542 | See \`config.log' for more details" "$LINENO" 5; } | |
2543 | else | |
2544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2545 | $as_echo "yes" >&6; } | |
2546 | fi | |
2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2548 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2550 | $as_echo "$ac_file" >&6; } | |
2551 | ac_exeext=$ac_cv_exeext | |
2552 | ||
2553 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2554 | ac_clean_files=$ac_clean_files_save | |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2556 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2557 | if { { ac_try="$ac_link" | |
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_link") 2>&5 | |
2565 | ac_status=$? | |
2566 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2567 | test $ac_status = 0; }; then : | |
2568 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2569 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2570 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2571 | # `rm'. | |
2572 | for ac_file in conftest.exe conftest conftest.*; do | |
2573 | test -f "$ac_file" || continue | |
2574 | case $ac_file in | |
2575 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2576 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2577 | break;; | |
2578 | * ) break;; | |
2579 | esac | |
2580 | done | |
2581 | else | |
2582 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2583 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2584 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
2585 | See \`config.log' for more details" "$LINENO" 5; } | |
2586 | fi | |
2587 | rm -f conftest conftest$ac_cv_exeext | |
2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2589 | $as_echo "$ac_cv_exeext" >&6; } | |
2590 | ||
2591 | rm -f conftest.$ac_ext | |
2592 | EXEEXT=$ac_cv_exeext | |
2593 | ac_exeext=$EXEEXT | |
2594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2595 | /* end confdefs.h. */ | |
2596 | #include <stdio.h> | |
2597 | int | |
2598 | main () | |
2599 | { | |
2600 | FILE *f = fopen ("conftest.out", "w"); | |
2601 | return ferror (f) || fclose (f) != 0; | |
2602 | ||
2603 | ; | |
2604 | return 0; | |
2605 | } | |
2606 | _ACEOF | |
2607 | ac_clean_files="$ac_clean_files conftest.out" | |
2608 | # Check that the compiler produces executables we can run. If not, either | |
2609 | # the compiler is broken, or we cross compile. | |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2611 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2612 | if test "$cross_compiling" != yes; then | |
2613 | { { ac_try="$ac_link" | |
2614 | case "(($ac_try" in | |
2615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2616 | *) ac_try_echo=$ac_try;; | |
2617 | esac | |
2618 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2619 | $as_echo "$ac_try_echo"; } >&5 | |
2620 | (eval "$ac_link") 2>&5 | |
2621 | ac_status=$? | |
2622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2623 | test $ac_status = 0; } | |
2624 | if { ac_try='./conftest$ac_cv_exeext' | |
2625 | { { case "(($ac_try" in | |
2626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2627 | *) ac_try_echo=$ac_try;; | |
2628 | esac | |
2629 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2630 | $as_echo "$ac_try_echo"; } >&5 | |
2631 | (eval "$ac_try") 2>&5 | |
2632 | ac_status=$? | |
2633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2634 | test $ac_status = 0; }; }; then | |
2635 | cross_compiling=no | |
2636 | else | |
2637 | if test "$cross_compiling" = maybe; then | |
2638 | cross_compiling=yes | |
2639 | else | |
2640 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2641 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2642 | as_fn_error $? "cannot run C compiled programs. | |
2643 | If you meant to cross compile, use \`--host'. | |
2644 | See \`config.log' for more details" "$LINENO" 5; } | |
2645 | fi | |
2646 | fi | |
2647 | fi | |
2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2649 | $as_echo "$cross_compiling" >&6; } | |
2650 | ||
2651 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2652 | ac_clean_files=$ac_clean_files_save | |
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
2654 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2655 | if ${ac_cv_objext+:} false; then : | |
2656 | $as_echo_n "(cached) " >&6 | |
2657 | else | |
2658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2659 | /* end confdefs.h. */ | |
2660 | ||
2661 | int | |
2662 | main () | |
2663 | { | |
2664 | ||
2665 | ; | |
2666 | return 0; | |
2667 | } | |
2668 | _ACEOF | |
2669 | rm -f conftest.o conftest.obj | |
2670 | if { { ac_try="$ac_compile" | |
2671 | case "(($ac_try" in | |
2672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2673 | *) ac_try_echo=$ac_try;; | |
2674 | esac | |
2675 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2676 | $as_echo "$ac_try_echo"; } >&5 | |
2677 | (eval "$ac_compile") 2>&5 | |
2678 | ac_status=$? | |
2679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2680 | test $ac_status = 0; }; then : | |
2681 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2682 | test -f "$ac_file" || continue; | |
2683 | case $ac_file in | |
2684 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2685 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2686 | break;; | |
2687 | esac | |
2688 | done | |
2689 | else | |
2690 | $as_echo "$as_me: failed program was:" >&5 | |
2691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2692 | ||
2693 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2694 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2695 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
2696 | See \`config.log' for more details" "$LINENO" 5; } | |
2697 | fi | |
2698 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2699 | fi | |
2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2701 | $as_echo "$ac_cv_objext" >&6; } | |
2702 | OBJEXT=$ac_cv_objext | |
2703 | ac_objext=$OBJEXT | |
2704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2705 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2706 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
2707 | $as_echo_n "(cached) " >&6 | |
2708 | else | |
2709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2710 | /* end confdefs.h. */ | |
2711 | ||
2712 | int | |
2713 | main () | |
2714 | { | |
2715 | #ifndef __GNUC__ | |
2716 | choke me | |
2717 | #endif | |
2718 | ||
2719 | ; | |
2720 | return 0; | |
2721 | } | |
2722 | _ACEOF | |
2723 | if ac_fn_c_try_compile "$LINENO"; then : | |
2724 | ac_compiler_gnu=yes | |
2725 | else | |
2726 | ac_compiler_gnu=no | |
2727 | fi | |
2728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2729 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2730 | ||
2731 | fi | |
2732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
2733 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2734 | if test $ac_compiler_gnu = yes; then | |
2735 | GCC=yes | |
2736 | else | |
2737 | GCC= | |
2738 | fi | |
2739 | ac_test_CFLAGS=${CFLAGS+set} | |
2740 | ac_save_CFLAGS=$CFLAGS | |
2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
2742 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2743 | if ${ac_cv_prog_cc_g+:} false; then : | |
2744 | $as_echo_n "(cached) " >&6 | |
2745 | else | |
2746 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2747 | ac_c_werror_flag=yes | |
2748 | ac_cv_prog_cc_g=no | |
2749 | CFLAGS="-g" | |
2750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2751 | /* end confdefs.h. */ | |
2752 | ||
2753 | int | |
2754 | main () | |
2755 | { | |
2756 | ||
2757 | ; | |
2758 | return 0; | |
2759 | } | |
2760 | _ACEOF | |
2761 | if ac_fn_c_try_compile "$LINENO"; then : | |
2762 | ac_cv_prog_cc_g=yes | |
2763 | else | |
2764 | CFLAGS="" | |
2765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2766 | /* end confdefs.h. */ | |
2767 | ||
2768 | int | |
2769 | main () | |
2770 | { | |
2771 | ||
2772 | ; | |
2773 | return 0; | |
2774 | } | |
2775 | _ACEOF | |
2776 | if ac_fn_c_try_compile "$LINENO"; then : | |
2777 | ||
2778 | else | |
2779 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2780 | CFLAGS="-g" | |
2781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2782 | /* end confdefs.h. */ | |
2783 | ||
2784 | int | |
2785 | main () | |
2786 | { | |
2787 | ||
2788 | ; | |
2789 | return 0; | |
2790 | } | |
2791 | _ACEOF | |
2792 | if ac_fn_c_try_compile "$LINENO"; then : | |
2793 | ac_cv_prog_cc_g=yes | |
2794 | fi | |
2795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2796 | fi | |
2797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2798 | fi | |
2799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2800 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2801 | fi | |
2802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2803 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
2804 | if test "$ac_test_CFLAGS" = set; then | |
2805 | CFLAGS=$ac_save_CFLAGS | |
2806 | elif test $ac_cv_prog_cc_g = yes; then | |
2807 | if test "$GCC" = yes; then | |
2808 | CFLAGS="-g -O2" | |
2809 | else | |
2810 | CFLAGS="-g" | |
2811 | fi | |
2812 | else | |
2813 | if test "$GCC" = yes; then | |
2814 | CFLAGS="-O2" | |
2815 | else | |
2816 | CFLAGS= | |
2817 | fi | |
2818 | fi | |
2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
2820 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
2821 | if ${ac_cv_prog_cc_c89+:} false; then : | |
2822 | $as_echo_n "(cached) " >&6 | |
2823 | else | |
2824 | ac_cv_prog_cc_c89=no | |
2825 | ac_save_CC=$CC | |
2826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2827 | /* end confdefs.h. */ | |
2828 | #include <stdarg.h> | |
2829 | #include <stdio.h> | |
2830 | struct stat; | |
2831 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2832 | struct buf { int x; }; | |
2833 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2834 | static char *e (p, i) | |
2835 | char **p; | |
2836 | int i; | |
2837 | { | |
2838 | return p[i]; | |
2839 | } | |
2840 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2841 | { | |
2842 | char *s; | |
2843 | va_list v; | |
2844 | va_start (v,p); | |
2845 | s = g (p, va_arg (v,int)); | |
2846 | va_end (v); | |
2847 | return s; | |
2848 | } | |
2849 | ||
2850 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2851 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2852 | These don't provoke an error unfortunately, instead are silently treated | |
2853 | as 'x'. The following induces an error, until -std is added to get | |
2854 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2855 | array size at least. It's necessary to write '\x00'==0 to get something | |
2856 | that's true only with -std. */ | |
2857 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2858 | ||
2859 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2860 | inside strings and character constants. */ | |
2861 | #define FOO(x) 'x' | |
2862 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2863 | ||
2864 | int test (int i, double x); | |
2865 | struct s1 {int (*f) (int a);}; | |
2866 | struct s2 {int (*f) (double a);}; | |
2867 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2868 | int argc; | |
2869 | char **argv; | |
2870 | int | |
2871 | main () | |
2872 | { | |
2873 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2874 | ; | |
2875 | return 0; | |
2876 | } | |
2877 | _ACEOF | |
2878 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
2879 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2880 | do | |
2881 | CC="$ac_save_CC $ac_arg" | |
2882 | if ac_fn_c_try_compile "$LINENO"; then : | |
2883 | ac_cv_prog_cc_c89=$ac_arg | |
2884 | fi | |
2885 | rm -f core conftest.err conftest.$ac_objext | |
2886 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2887 | done | |
2888 | rm -f conftest.$ac_ext | |
2889 | CC=$ac_save_CC | |
2890 | ||
2891 | fi | |
2892 | # AC_CACHE_VAL | |
2893 | case "x$ac_cv_prog_cc_c89" in | |
2894 | x) | |
2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
2896 | $as_echo "none needed" >&6; } ;; | |
2897 | xno) | |
2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
2899 | $as_echo "unsupported" >&6; } ;; | |
2900 | *) | |
2901 | CC="$CC $ac_cv_prog_cc_c89" | |
2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
2903 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
2904 | esac | |
2905 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
2906 | ||
2907 | fi | |
2908 | ||
2909 | ac_ext=c | |
2910 | ac_cpp='$CPP $CPPFLAGS' | |
2911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2914 | ||
2915 | if test -n "$ac_tool_prefix"; then | |
2916 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2917 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2919 | $as_echo_n "checking for $ac_word... " >&6; } | |
2920 | if ${ac_cv_prog_RANLIB+:} false; then : | |
2921 | $as_echo_n "(cached) " >&6 | |
2922 | else | |
2923 | if test -n "$RANLIB"; then | |
2924 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2925 | else | |
2926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2927 | for as_dir in $PATH | |
2928 | do | |
2929 | IFS=$as_save_IFS | |
2930 | test -z "$as_dir" && as_dir=. | |
2931 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2932 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2933 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2935 | break 2 | |
2936 | fi | |
2937 | done | |
2938 | done | |
2939 | IFS=$as_save_IFS | |
2940 | ||
2941 | fi | |
2942 | fi | |
2943 | RANLIB=$ac_cv_prog_RANLIB | |
2944 | if test -n "$RANLIB"; then | |
2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
2946 | $as_echo "$RANLIB" >&6; } | |
2947 | else | |
2948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2949 | $as_echo "no" >&6; } | |
2950 | fi | |
2951 | ||
2952 | ||
2953 | fi | |
2954 | if test -z "$ac_cv_prog_RANLIB"; then | |
2955 | ac_ct_RANLIB=$RANLIB | |
2956 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2957 | set dummy ranlib; ac_word=$2 | |
2958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2959 | $as_echo_n "checking for $ac_word... " >&6; } | |
2960 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
2961 | $as_echo_n "(cached) " >&6 | |
2962 | else | |
2963 | if test -n "$ac_ct_RANLIB"; then | |
2964 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2965 | else | |
2966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2967 | for as_dir in $PATH | |
2968 | do | |
2969 | IFS=$as_save_IFS | |
2970 | test -z "$as_dir" && as_dir=. | |
2971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2972 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2973 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2975 | break 2 | |
2976 | fi | |
2977 | done | |
2978 | done | |
2979 | IFS=$as_save_IFS | |
2980 | ||
2981 | fi | |
2982 | fi | |
2983 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2984 | if test -n "$ac_ct_RANLIB"; then | |
2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
2986 | $as_echo "$ac_ct_RANLIB" >&6; } | |
2987 | else | |
2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2989 | $as_echo "no" >&6; } | |
2990 | fi | |
2991 | ||
2992 | if test "x$ac_ct_RANLIB" = x; then | |
2993 | RANLIB=":" | |
2994 | else | |
2995 | case $cross_compiling:$ac_tool_warned in | |
2996 | yes:) | |
2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2998 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2999 | ac_tool_warned=yes ;; | |
3000 | esac | |
3001 | RANLIB=$ac_ct_RANLIB | |
3002 | fi | |
3003 | else | |
3004 | RANLIB="$ac_cv_prog_RANLIB" | |
3005 | fi | |
3006 | ||
3007 | # Extract the first word of "ginstall", so it can be a program name with args. | |
3008 | set dummy ginstall; ac_word=$2 | |
3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3010 | $as_echo_n "checking for $ac_word... " >&6; } | |
3011 | if ${ac_cv_prog_INSTALL+:} false; then : | |
3012 | $as_echo_n "(cached) " >&6 | |
3013 | else | |
3014 | if test -n "$INSTALL"; then | |
3015 | ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. | |
3016 | else | |
3017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3018 | for as_dir in $PATH | |
3019 | do | |
3020 | IFS=$as_save_IFS | |
3021 | test -z "$as_dir" && as_dir=. | |
3022 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3023 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3024 | ac_cv_prog_INSTALL="ginstall" | |
3025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3026 | break 2 | |
3027 | fi | |
3028 | done | |
3029 | done | |
3030 | IFS=$as_save_IFS | |
3031 | ||
3032 | fi | |
3033 | fi | |
3034 | INSTALL=$ac_cv_prog_INSTALL | |
3035 | if test -n "$INSTALL"; then | |
3036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3037 | $as_echo "$INSTALL" >&6; } | |
3038 | else | |
3039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3040 | $as_echo "no" >&6; } | |
3041 | fi | |
3042 | ||
3043 | ||
3044 | # Extract the first word of "install", so it can be a program name with args. | |
3045 | set dummy install; ac_word=$2 | |
3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3047 | $as_echo_n "checking for $ac_word... " >&6; } | |
3048 | if ${ac_cv_prog_INSTALL+:} false; then : | |
3049 | $as_echo_n "(cached) " >&6 | |
3050 | else | |
3051 | if test -n "$INSTALL"; then | |
3052 | ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. | |
3053 | else | |
3054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3055 | for as_dir in $PATH | |
3056 | do | |
3057 | IFS=$as_save_IFS | |
3058 | test -z "$as_dir" && as_dir=. | |
3059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3060 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3061 | ac_cv_prog_INSTALL="install" | |
3062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3063 | break 2 | |
3064 | fi | |
3065 | done | |
3066 | done | |
3067 | IFS=$as_save_IFS | |
3068 | ||
3069 | fi | |
3070 | fi | |
3071 | INSTALL=$ac_cv_prog_INSTALL | |
3072 | if test -n "$INSTALL"; then | |
3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3074 | $as_echo "$INSTALL" >&6; } | |
3075 | else | |
3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3077 | $as_echo "no" >&6; } | |
3078 | fi | |
3079 | ||
3080 | ||
3081 | # Extract the first word of "tar", so it can be a program name with args. | |
3082 | set dummy tar; ac_word=$2 | |
3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3084 | $as_echo_n "checking for $ac_word... " >&6; } | |
3085 | if ${ac_cv_prog_TAR+:} false; then : | |
3086 | $as_echo_n "(cached) " >&6 | |
3087 | else | |
3088 | if test -n "$TAR"; then | |
3089 | ac_cv_prog_TAR="$TAR" # Let the user override the test. | |
3090 | else | |
3091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3092 | for as_dir in $PATH | |
3093 | do | |
3094 | IFS=$as_save_IFS | |
3095 | test -z "$as_dir" && as_dir=. | |
3096 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3097 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3098 | ac_cv_prog_TAR="tar" | |
3099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3100 | break 2 | |
3101 | fi | |
3102 | done | |
3103 | done | |
3104 | IFS=$as_save_IFS | |
3105 | ||
3106 | fi | |
3107 | fi | |
3108 | TAR=$ac_cv_prog_TAR | |
3109 | if test -n "$TAR"; then | |
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 | |
3111 | $as_echo "$TAR" >&6; } | |
3112 | else | |
3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3114 | $as_echo "no" >&6; } | |
3115 | fi | |
3116 | ||
3117 | ||
3118 | ||
726 | 3119 | |
0 | 3120 | # |
6 | 3121 | # Libraries for mbsePi-apps |
3122 | # | |
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
|
3123 | |
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
|
3124 | { $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
|
3125 | $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
|
3126 | if ${ac_cv_lib_mosquitto_mosquitto_lib_init+:} false; then : |
6 | 3127 | $as_echo_n "(cached) " >&6 |
3128 | else | |
3129 | 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
|
3130 | LIBS="-lmosquitto $LIBS" |
6 | 3131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3132 | /* end confdefs.h. */ | |
3133 | ||
3134 | /* Override any GCC internal prototype to avoid an error. | |
3135 | Use char because int might match the return type of a GCC | |
3136 | builtin and then its argument prototype would still apply. */ | |
3137 | #ifdef __cplusplus | |
3138 | extern "C" | |
3139 | #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
|
3140 | char mosquitto_lib_init (); |
6 | 3141 | int |
3142 | main () | |
3143 | { | |
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
|
3144 | return mosquitto_lib_init (); |
6 | 3145 | ; |
3146 | return 0; | |
3147 | } | |
3148 | _ACEOF | |
3149 | 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
|
3150 | ac_cv_lib_mosquitto_mosquitto_lib_init=yes |
6 | 3151 | 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
|
3152 | ac_cv_lib_mosquitto_mosquitto_lib_init=no |
6 | 3153 | fi |
3154 | rm -f core conftest.err conftest.$ac_objext \ | |
3155 | conftest$ac_exeext conftest.$ac_ext | |
3156 | LIBS=$ac_check_lib_save_LIBS | |
3157 | 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
|
3158 | { $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
|
3159 | $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
|
3160 | if test "x$ac_cv_lib_mosquitto_mosquitto_lib_init" = xyes; then : |
6 | 3161 | result=yes |
3162 | else | |
3163 | result=no | |
3164 | fi | |
3165 | ||
3166 | if test "$result" = "yes"; then | |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3167 | ac_ext=c |
0 | 3168 | ac_cpp='$CPP $CPPFLAGS' |
3169 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3170 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3171 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3173 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3174 | # On Suns, sometimes $CPP names a directory. | |
3175 | if test -n "$CPP" && test -d "$CPP"; then | |
3176 | CPP= | |
3177 | fi | |
3178 | if test -z "$CPP"; then | |
3179 | if ${ac_cv_prog_CPP+:} false; then : | |
3180 | $as_echo_n "(cached) " >&6 | |
3181 | else | |
3182 | # Double quotes because CPP needs to be expanded | |
3183 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3184 | do | |
3185 | ac_preproc_ok=false | |
3186 | for ac_c_preproc_warn_flag in '' yes | |
3187 | do | |
3188 | # Use a header file that comes with gcc, so configuring glibc | |
3189 | # with a fresh cross-compiler works. | |
3190 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3191 | # <limits.h> exists even on freestanding compilers. | |
3192 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3193 | # not just through cpp. "Syntax error" is here to catch this case. | |
3194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3195 | /* end confdefs.h. */ | |
3196 | #ifdef __STDC__ | |
3197 | # include <limits.h> | |
3198 | #else | |
3199 | # include <assert.h> | |
3200 | #endif | |
3201 | Syntax error | |
3202 | _ACEOF | |
3203 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3204 | ||
3205 | else | |
3206 | # Broken: fails on valid input. | |
3207 | continue | |
3208 | fi | |
3209 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3210 | ||
3211 | # OK, works on sane cases. Now check whether nonexistent headers | |
3212 | # can be detected and how. | |
3213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3214 | /* end confdefs.h. */ | |
3215 | #include <ac_nonexistent.h> | |
3216 | _ACEOF | |
3217 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3218 | # Broken: success on invalid input. | |
3219 | continue | |
3220 | else | |
3221 | # Passes both tests. | |
3222 | ac_preproc_ok=: | |
3223 | break | |
3224 | fi | |
3225 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3226 | ||
3227 | done | |
3228 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3229 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3230 | if $ac_preproc_ok; then : | |
3231 | break | |
3232 | fi | |
3233 | ||
3234 | done | |
3235 | ac_cv_prog_CPP=$CPP | |
3236 | ||
3237 | fi | |
3238 | CPP=$ac_cv_prog_CPP | |
3239 | else | |
3240 | ac_cv_prog_CPP=$CPP | |
3241 | fi | |
3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3243 | $as_echo "$CPP" >&6; } | |
3244 | ac_preproc_ok=false | |
3245 | for ac_c_preproc_warn_flag in '' yes | |
3246 | do | |
3247 | # Use a header file that comes with gcc, so configuring glibc | |
3248 | # with a fresh cross-compiler works. | |
3249 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3250 | # <limits.h> exists even on freestanding compilers. | |
3251 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3252 | # not just through cpp. "Syntax error" is here to catch this case. | |
3253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3254 | /* end confdefs.h. */ | |
3255 | #ifdef __STDC__ | |
3256 | # include <limits.h> | |
3257 | #else | |
3258 | # include <assert.h> | |
3259 | #endif | |
3260 | Syntax error | |
3261 | _ACEOF | |
3262 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3263 | ||
3264 | else | |
3265 | # Broken: fails on valid input. | |
3266 | continue | |
3267 | fi | |
3268 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3269 | ||
3270 | # OK, works on sane cases. Now check whether nonexistent headers | |
3271 | # can be detected and how. | |
3272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3273 | /* end confdefs.h. */ | |
3274 | #include <ac_nonexistent.h> | |
3275 | _ACEOF | |
3276 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3277 | # Broken: success on invalid input. | |
3278 | continue | |
3279 | else | |
3280 | # Passes both tests. | |
3281 | ac_preproc_ok=: | |
3282 | break | |
3283 | fi | |
3284 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3285 | ||
3286 | done | |
3287 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3288 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3289 | if $ac_preproc_ok; then : | |
3290 | ||
3291 | else | |
3292 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3293 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3294 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3295 | See \`config.log' for more details" "$LINENO" 5; } | |
3296 | fi | |
3297 | ||
3298 | ac_ext=c | |
3299 | ac_cpp='$CPP $CPPFLAGS' | |
3300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3303 | ||
3304 | ||
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3306 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3307 | if ${ac_cv_path_GREP+:} false; then : | |
3308 | $as_echo_n "(cached) " >&6 | |
3309 | else | |
3310 | if test -z "$GREP"; then | |
3311 | ac_path_GREP_found=false | |
3312 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3314 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3315 | do | |
3316 | IFS=$as_save_IFS | |
3317 | test -z "$as_dir" && as_dir=. | |
3318 | for ac_prog in grep ggrep; do | |
3319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3320 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3321 | as_fn_executable_p "$ac_path_GREP" || continue | |
3322 | # Check for GNU ac_path_GREP and select it if it is found. | |
3323 | # Check for GNU $ac_path_GREP | |
3324 | case `"$ac_path_GREP" --version 2>&1` in | |
3325 | *GNU*) | |
3326 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3327 | *) | |
3328 | ac_count=0 | |
3329 | $as_echo_n 0123456789 >"conftest.in" | |
3330 | while : | |
3331 | do | |
3332 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3333 | mv "conftest.tmp" "conftest.in" | |
3334 | cp "conftest.in" "conftest.nl" | |
3335 | $as_echo 'GREP' >> "conftest.nl" | |
3336 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3337 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3338 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3339 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3340 | # Best one so far, save it but keep looking for a better one | |
3341 | ac_cv_path_GREP="$ac_path_GREP" | |
3342 | ac_path_GREP_max=$ac_count | |
3343 | fi | |
3344 | # 10*(2^10) chars as input seems more than enough | |
3345 | test $ac_count -gt 10 && break | |
3346 | done | |
3347 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3348 | esac | |
3349 | ||
3350 | $ac_path_GREP_found && break 3 | |
3351 | done | |
3352 | done | |
3353 | done | |
3354 | IFS=$as_save_IFS | |
3355 | if test -z "$ac_cv_path_GREP"; then | |
3356 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3357 | fi | |
3358 | else | |
3359 | ac_cv_path_GREP=$GREP | |
3360 | fi | |
3361 | ||
3362 | fi | |
3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3364 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3365 | GREP="$ac_cv_path_GREP" | |
3366 | ||
3367 | ||
3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3369 | $as_echo_n "checking for egrep... " >&6; } | |
3370 | if ${ac_cv_path_EGREP+:} false; then : | |
3371 | $as_echo_n "(cached) " >&6 | |
3372 | else | |
3373 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3374 | then ac_cv_path_EGREP="$GREP -E" | |
3375 | else | |
3376 | if test -z "$EGREP"; then | |
3377 | ac_path_EGREP_found=false | |
3378 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3380 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3381 | do | |
3382 | IFS=$as_save_IFS | |
3383 | test -z "$as_dir" && as_dir=. | |
3384 | for ac_prog in egrep; do | |
3385 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3386 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3387 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3388 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3389 | # Check for GNU $ac_path_EGREP | |
3390 | case `"$ac_path_EGREP" --version 2>&1` in | |
3391 | *GNU*) | |
3392 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3393 | *) | |
3394 | ac_count=0 | |
3395 | $as_echo_n 0123456789 >"conftest.in" | |
3396 | while : | |
3397 | do | |
3398 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3399 | mv "conftest.tmp" "conftest.in" | |
3400 | cp "conftest.in" "conftest.nl" | |
3401 | $as_echo 'EGREP' >> "conftest.nl" | |
3402 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3403 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3404 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3405 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3406 | # Best one so far, save it but keep looking for a better one | |
3407 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3408 | ac_path_EGREP_max=$ac_count | |
3409 | fi | |
3410 | # 10*(2^10) chars as input seems more than enough | |
3411 | test $ac_count -gt 10 && break | |
3412 | done | |
3413 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3414 | esac | |
3415 | ||
3416 | $ac_path_EGREP_found && break 3 | |
3417 | done | |
3418 | done | |
3419 | done | |
3420 | IFS=$as_save_IFS | |
3421 | if test -z "$ac_cv_path_EGREP"; then | |
3422 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3423 | fi | |
3424 | else | |
3425 | ac_cv_path_EGREP=$EGREP | |
3426 | fi | |
3427 | ||
3428 | fi | |
3429 | fi | |
3430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3431 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3432 | EGREP="$ac_cv_path_EGREP" | |
3433 | ||
3434 | ||
3435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3436 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3437 | if ${ac_cv_header_stdc+:} false; then : | |
3438 | $as_echo_n "(cached) " >&6 | |
3439 | else | |
3440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3441 | /* end confdefs.h. */ | |
3442 | #include <stdlib.h> | |
3443 | #include <stdarg.h> | |
3444 | #include <string.h> | |
3445 | #include <float.h> | |
3446 | ||
3447 | int | |
3448 | main () | |
3449 | { | |
3450 | ||
3451 | ; | |
3452 | return 0; | |
3453 | } | |
3454 | _ACEOF | |
3455 | if ac_fn_c_try_compile "$LINENO"; then : | |
3456 | ac_cv_header_stdc=yes | |
3457 | else | |
3458 | ac_cv_header_stdc=no | |
3459 | fi | |
3460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3461 | ||
3462 | if test $ac_cv_header_stdc = yes; then | |
3463 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3465 | /* end confdefs.h. */ | |
3466 | #include <string.h> | |
3467 | ||
3468 | _ACEOF | |
3469 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3470 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3471 | ||
3472 | else | |
3473 | ac_cv_header_stdc=no | |
3474 | fi | |
3475 | rm -f conftest* | |
3476 | ||
3477 | fi | |
3478 | ||
3479 | if test $ac_cv_header_stdc = yes; then | |
3480 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3482 | /* end confdefs.h. */ | |
3483 | #include <stdlib.h> | |
3484 | ||
3485 | _ACEOF | |
3486 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3487 | $EGREP "free" >/dev/null 2>&1; then : | |
3488 | ||
3489 | else | |
3490 | ac_cv_header_stdc=no | |
3491 | fi | |
3492 | rm -f conftest* | |
3493 | ||
3494 | fi | |
3495 | ||
3496 | if test $ac_cv_header_stdc = yes; then | |
3497 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3498 | if test "$cross_compiling" = yes; then : | |
3499 | : | |
3500 | else | |
3501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3502 | /* end confdefs.h. */ | |
3503 | #include <ctype.h> | |
3504 | #include <stdlib.h> | |
3505 | #if ((' ' & 0x0FF) == 0x020) | |
3506 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3507 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3508 | #else | |
3509 | # define ISLOWER(c) \ | |
3510 | (('a' <= (c) && (c) <= 'i') \ | |
3511 | || ('j' <= (c) && (c) <= 'r') \ | |
3512 | || ('s' <= (c) && (c) <= 'z')) | |
3513 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3514 | #endif | |
3515 | ||
3516 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3517 | int | |
3518 | main () | |
3519 | { | |
3520 | int i; | |
3521 | for (i = 0; i < 256; i++) | |
3522 | if (XOR (islower (i), ISLOWER (i)) | |
3523 | || toupper (i) != TOUPPER (i)) | |
3524 | return 2; | |
3525 | return 0; | |
3526 | } | |
3527 | _ACEOF | |
3528 | if ac_fn_c_try_run "$LINENO"; then : | |
3529 | ||
3530 | else | |
3531 | ac_cv_header_stdc=no | |
3532 | fi | |
3533 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3534 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3535 | fi | |
3536 | ||
3537 | fi | |
3538 | fi | |
3539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3540 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3541 | if test $ac_cv_header_stdc = yes; then | |
3542 | ||
3543 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3544 | ||
3545 | fi | |
3546 | ||
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3547 | # 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
|
3548 | 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
|
3549 | inttypes.h stdint.h unistd.h |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3550 | do : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3551 | 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
|
3552 | 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
|
3553 | " |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3554 | 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
|
3555 | cat >>confdefs.h <<_ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3556 | #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
|
3557 | _ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3558 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3559 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3560 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3561 | done |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3562 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3563 | |
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
|
3564 | 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
|
3565 | 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
|
3566 | 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
|
3567 | 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
|
3568 | 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
|
3569 | #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
|
3570 | _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
|
3571 | |
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
|
3572 | 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
|
3573 | |
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
|
3574 | 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
|
3575 | |
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
|
3576 | 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
|
3577 | else |
ae17042a6d39
Versie 0.8.6 De mosquitto library is geen optie meer maar verplicht.
Michiel Broek <mbroek@mbse.eu>
parents:
554
diff
changeset
|
3578 | 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
|
3579 | 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
|
3580 | |
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
|
3581 | 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
|
3582 | # 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
|
3583 | 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
|
3584 | 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
|
3585 | 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
|
3586 | 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
|
3587 | 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
|
3588 | |
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
|
3589 | 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
|
3590 | { $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
|
3591 | $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
|
3592 | 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
|
3593 | $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
|
3594 | 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
|
3595 | 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
|
3596 | 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
|
3597 | 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
|
3598 | /* 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
|
3599 | |
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
|
3600 | /* 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
|
3601 | 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
|
3602 | 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
|
3603 | #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
|
3604 | 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
|
3605 | #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
|
3606 | 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
|
3607 | 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
|
3608 | 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
|
3609 | { |
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
|
3610 | 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
|
3611 | ; |
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
|
3612 | 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
|
3613 | } |
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
|
3614 | _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
|
3615 | 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
|
3616 | 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
|
3617 | 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
|
3618 | 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
|
3619 | 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
|
3620 | 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
|
3621 | 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
|
3622 | 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
|
3623 | 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
|
3624 | { $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
|
3625 | $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
|
3626 | 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
|
3627 | 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
|
3628 | 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
|
3629 | 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
|
3630 | 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
|
3631 | |
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
|
3632 | 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
|
3633 | 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
|
3634 | for ac_header in wiringPi.h |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3635 | do : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3636 | 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
|
3637 | 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
|
3638 | cat >>confdefs.h <<_ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3639 | #define HAVE_WIRINGPI_H 1 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3640 | _ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3641 | WIRINGPI=Yes |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3642 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3643 | WIRINGPI=No |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3644 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3645 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3646 | done |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3647 | |
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
|
3648 | 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
|
3649 | 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
|
3650 | { $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
|
3651 | $as_echo "check wiringPi disabled" >&6; } |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3652 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3653 | |
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
|
3654 | { $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
|
3655 | $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
|
3656 | 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
|
3657 | $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
|
3658 | 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
|
3659 | 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
|
3660 | 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
|
3661 | 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
|
3662 | /* 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
|
3663 | |
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
|
3664 | /* 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
|
3665 | 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
|
3666 | 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
|
3667 | #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
|
3668 | 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
|
3669 | #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
|
3670 | 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
|
3671 | 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
|
3672 | 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
|
3673 | { |
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
|
3674 | 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
|
3675 | ; |
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
|
3676 | 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
|
3677 | } |
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
|
3678 | _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
|
3679 | 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
|
3680 | 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
|
3681 | 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
|
3682 | 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
|
3683 | 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
|
3684 | 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
|
3685 | 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
|
3686 | 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
|
3687 | 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
|
3688 | { $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
|
3689 | $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
|
3690 | 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
|
3691 | 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
|
3692 | 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
|
3693 | 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
|
3694 | 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
|
3695 | |
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
|
3696 | 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
|
3697 | 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
|
3698 | 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
|
3699 | 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
|
3700 | 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
|
3701 | 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
|
3702 | 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
|
3703 | #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
|
3704 | _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
|
3705 | |
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
|
3706 | 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
|
3707 | |
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
|
3708 | 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
|
3709 | |
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
|
3710 | 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
|
3711 | 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
|
3712 | 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
|
3713 | |
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
|
3714 | { $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
|
3715 | $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
|
3716 | 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
|
3717 | $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
|
3718 | 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
|
3719 | 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
|
3720 | 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
|
3721 | 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
|
3722 | /* 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
|
3723 | |
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
|
3724 | /* 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
|
3725 | 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
|
3726 | 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
|
3727 | #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
|
3728 | 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
|
3729 | #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
|
3730 | 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
|
3731 | 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
|
3732 | 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
|
3733 | { |
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
|
3734 | 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
|
3735 | ; |
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
|
3736 | 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
|
3737 | } |
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
|
3738 | _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
|
3739 | 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
|
3740 | 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
|
3741 | 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
|
3742 | 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
|
3743 | 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
|
3744 | 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
|
3745 | 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
|
3746 | 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
|
3747 | 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
|
3748 | { $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
|
3749 | $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
|
3750 | 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
|
3751 | 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
|
3752 | 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
|
3753 | 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
|
3754 | 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
|
3755 | |
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
|
3756 | 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
|
3757 | 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
|
3758 | 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
|
3759 | 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
|
3760 | 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
|
3761 | 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
|
3762 | 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
|
3763 | #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
|
3764 | _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
|
3765 | |
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
|
3766 | 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
|
3767 | |
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
|
3768 | 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
|
3769 | |
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
|
3770 | 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
|
3771 | 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
|
3772 | 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
|
3773 | |
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
|
3774 | |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3775 | # |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3776 | # Additional commandline switches |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3777 | # |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3778 | # Check whether --enable-experiment was given. |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3779 | if test "${enable_experiment+set}" = set; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3780 | enableval=$enable_experiment; experiment=$enableval |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3781 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3782 | experiment=no |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3783 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3784 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3785 | if test "$experiment" = "yes"; then |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3786 | $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
|
3787 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3788 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3789 | |
283 | 3790 | 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
|
3791 | # 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
|
3792 | 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
|
3793 | 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
|
3794 | 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
|
3795 | 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
|
3796 | 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
|
3797 | |
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
|
3798 | 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
|
3799 | $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
|
3800 | |
283 | 3801 | 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
|
3802 | 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
|
3803 | |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3804 | # Check whether --enable-debugging was given. |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3805 | if test "${enable_debugging+set}" = set; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3806 | enableval=$enable_debugging; debugging=$enableval |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3807 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3808 | debugging=no |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3809 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3810 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3811 | if test "$debugging" = "yes"; then |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3812 | 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
|
3813 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3814 | 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
|
3815 | fi |
262
d0014ccec615
Simulation of fridge cold loss to the room added for testing.
Michiel Broek <mbroek@mbse.eu>
parents:
259
diff
changeset
|
3816 | LIBS="$LIBS -lm" |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
3817 | |
727 | 3818 | ac_fn_c_check_func "$LINENO" "gettid" "ac_cv_func_gettid" |
3819 | if test "x$ac_cv_func_gettid" = xyes; then : | |
726 | 3820 | result=yes |
3821 | else | |
3822 | result=no | |
3823 | fi | |
3824 | ||
3825 | if test "$result" = "yes"; then | |
3826 | $as_echo "#define HAVE_GETTID 1" >>confdefs.h | |
3827 | ||
3828 | fi | |
3829 | ||
57
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3830 | |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3831 | { $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
|
3832 | $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
|
3833 | 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
|
3834 | $as_echo_n "(cached) " >&6 |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3835 | else |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3836 | ac_check_lib_save_LIBS=$LIBS |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3837 | LIBS="-lxml2 $LIBS" |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3839 | /* end confdefs.h. */ |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3840 | |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3841 | /* 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
|
3842 | 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
|
3843 | 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
|
3844 | #ifdef __cplusplus |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3845 | extern "C" |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3846 | #endif |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3847 | char xmlParseFile (); |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3848 | int |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3849 | main () |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3850 | { |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3851 | return xmlParseFile (); |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3852 | ; |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3853 | return 0; |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3854 | } |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3855 | _ACEOF |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3856 | 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
|
3857 | ac_cv_lib_xml2_xmlParseFile=yes |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3858 | else |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3859 | ac_cv_lib_xml2_xmlParseFile=no |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3860 | fi |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3861 | 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
|
3862 | conftest$ac_exeext conftest.$ac_ext |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3863 | LIBS=$ac_check_lib_save_LIBS |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3864 | fi |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3865 | { $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
|
3866 | $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
|
3867 | 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
|
3868 | result=yes |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3869 | else |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3870 | result=no |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3871 | fi |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3872 | |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3873 | if test "$result" = "yes"; then |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3874 | LIBS="$LIBS -lxml2" |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3875 | CFLAGS="$CFLAGS $(xml2-config --cflags)" |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3876 | for ac_header in libxml/xmlmemory.h |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3877 | do : |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3878 | 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
|
3879 | 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
|
3880 | cat >>confdefs.h <<_ACEOF |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3881 | #define HAVE_LIBXML_XMLMEMORY_H 1 |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3882 | _ACEOF |
79 | 3883 | |
57
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3884 | fi |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3885 | |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3886 | done |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3887 | |
75
4b976601737d
Writes a basic xml configuration next to the plain ascii config file
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
3888 | else |
4b976601737d
Writes a basic xml configuration next to the plain ascii config file
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
3889 | 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
|
3890 | fi |
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3891 | |
79 | 3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
3893 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
3894 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : | |
3895 | $as_echo_n "(cached) " >&6 | |
3896 | else | |
3897 | ac_check_lib_save_LIBS=$LIBS | |
3898 | LIBS="-luuid $LIBS" | |
3899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3900 | /* end confdefs.h. */ | |
3901 | ||
3902 | /* Override any GCC internal prototype to avoid an error. | |
3903 | Use char because int might match the return type of a GCC | |
3904 | builtin and then its argument prototype would still apply. */ | |
3905 | #ifdef __cplusplus | |
3906 | extern "C" | |
3907 | #endif | |
3908 | char uuid_generate (); | |
3909 | int | |
3910 | main () | |
3911 | { | |
3912 | return uuid_generate (); | |
3913 | ; | |
3914 | return 0; | |
3915 | } | |
3916 | _ACEOF | |
3917 | if ac_fn_c_try_link "$LINENO"; then : | |
3918 | ac_cv_lib_uuid_uuid_generate=yes | |
3919 | else | |
3920 | ac_cv_lib_uuid_uuid_generate=no | |
3921 | fi | |
3922 | rm -f core conftest.err conftest.$ac_objext \ | |
3923 | conftest$ac_exeext conftest.$ac_ext | |
3924 | LIBS=$ac_check_lib_save_LIBS | |
3925 | fi | |
3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
3927 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
3928 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : | |
3929 | result=yes | |
3930 | else | |
3931 | result=no | |
3932 | fi | |
3933 | ||
3934 | if test "$result" = "yes"; then | |
3935 | LIBS="$LIBS $(pkg-config --libs uuid)" | |
3936 | CFLAGS="$CFLAGS $(pkg-config --cflags uuid)" | |
3937 | for ac_header in uuid/uuid.h | |
3938 | do : | |
3939 | ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" | |
3940 | if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : | |
3941 | cat >>confdefs.h <<_ACEOF | |
3942 | #define HAVE_UUID_UUID_H 1 | |
3943 | _ACEOF | |
3944 | ||
3945 | fi | |
3946 | ||
3947 | done | |
3948 | ||
3949 | else | |
3950 | as_fn_error $? "libuuid not found" "$LINENO" 5 | |
3951 | fi | |
57
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
3952 | |
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
|
3953 | # 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
|
3954 | 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
|
3955 | SDL_LIBS="" |
411
ae85e91dcc58
Added configure message about SDL presence.
Michiel Broek <mbroek@mbse.eu>
parents:
410
diff
changeset
|
3956 | SDL="No" |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
3957 | { $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
|
3958 | $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
|
3959 | 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
|
3960 | 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
|
3961 | { $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
|
3962 | $as_echo "yes" >&6; } |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
3963 | { $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
|
3964 | $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
|
3965 | 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
|
3966 | 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
|
3967 | { $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
|
3968 | $as_echo "found" >&6; } |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
3969 | SDL_CFLAGS="$(pkg-config --cflags sdl2)" |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
3970 | SDL_LIBS="$(pkg-config --libs sdl2)" |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
3971 | 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
|
3972 | 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
|
3973 | 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
|
3974 | 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
|
3975 | 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
|
3976 | #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
|
3977 | _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
|
3978 | |
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
|
3979 | 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
|
3980 | |
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
|
3981 | 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
|
3982 | |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
3983 | SDL="Yes" |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
3984 | else |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
3985 | { $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
|
3986 | $as_echo "not found" >&6; } |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
3987 | 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
|
3988 | 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
|
3989 | { $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
|
3990 | $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
|
3991 | 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
|
3992 | |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
3993 | # Check for SDL_ttf if base SDL2 is found. |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
3994 | if test "$SDL" = "Yes"; then |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
3995 | { $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
|
3996 | $as_echo_n "checking SDL2_ttf library... " >&6; } |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
3997 | 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
|
3998 | if test "$?" = "0"; then |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
4000 | $as_echo "yes" >&6; } |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
4001 | { $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
|
4002 | $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
|
4003 | pkg-config --atleast-version=2.0.0 SDL2_ttf |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
4004 | if test "$?" = "0"; then |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
4005 | { $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
|
4006 | $as_echo "found" >&6; } |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
4007 | # Override flags |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
4008 | SDL_CFLAGS="$(pkg-config --cflags SDL2_ttf)" |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
4009 | SDL_LIBS="$(pkg-config --libs SDL2_ttf)" |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
4010 | else |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
4011 | as_fn_error $? "not found" "$LINENO" 5 |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
4012 | SDL="No" |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
4013 | 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
|
4014 | else |
642
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5cb83127d285
Impoved SDL configure checks
Michiel Broek <mbroek@mbse.eu>
parents:
641
diff
changeset
|
4016 | $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
|
4017 | 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
|
4018 | fi |
57
a76dc0db592c
Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents:
51
diff
changeset
|
4019 | |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4020 | { $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
|
4021 | $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
|
4022 | if ${ac_cv_header_stdc+:} false; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4023 | $as_echo_n "(cached) " >&6 |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4024 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4026 | /* end confdefs.h. */ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4027 | #include <stdlib.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4028 | #include <stdarg.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4029 | #include <string.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4030 | #include <float.h> |
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 | int |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4033 | main () |
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 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4036 | ; |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4037 | return 0; |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4038 | } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4039 | _ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4040 | 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
|
4041 | ac_cv_header_stdc=yes |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4042 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4043 | ac_cv_header_stdc=no |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4044 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4045 | 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
|
4046 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4047 | 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
|
4048 | # 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
|
4049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4050 | /* end confdefs.h. */ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4051 | #include <string.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4052 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4053 | _ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4054 | 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
|
4055 | $EGREP "memchr" >/dev/null 2>&1; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4056 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4057 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4058 | ac_cv_header_stdc=no |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4059 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4060 | rm -f conftest* |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4061 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4062 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4063 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4064 | 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
|
4065 | # 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
|
4066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4067 | /* end confdefs.h. */ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4068 | #include <stdlib.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4069 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4070 | _ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4071 | 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
|
4072 | $EGREP "free" >/dev/null 2>&1; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4073 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4074 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4075 | ac_cv_header_stdc=no |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4076 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4077 | rm -f conftest* |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4078 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4079 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4080 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4081 | 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
|
4082 | # /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
|
4083 | if test "$cross_compiling" = yes; then : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4084 | : |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4085 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4087 | /* end confdefs.h. */ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4088 | #include <ctype.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4089 | #include <stdlib.h> |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4090 | #if ((' ' & 0x0FF) == 0x020) |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4091 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4092 | # 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
|
4093 | #else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4094 | # define ISLOWER(c) \ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4095 | (('a' <= (c) && (c) <= 'i') \ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4096 | || ('j' <= (c) && (c) <= 'r') \ |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4097 | || ('s' <= (c) && (c) <= 'z')) |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4098 | # 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
|
4099 | #endif |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4100 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4101 | #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
|
4102 | int |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4103 | main () |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4104 | { |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4105 | int i; |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4106 | for (i = 0; i < 256; i++) |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4107 | if (XOR (islower (i), ISLOWER (i)) |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4108 | || toupper (i) != TOUPPER (i)) |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4109 | return 2; |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4110 | return 0; |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4111 | } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4112 | _ACEOF |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4113 | 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
|
4114 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4115 | else |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4116 | ac_cv_header_stdc=no |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4117 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4118 | 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
|
4119 | 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
|
4120 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4121 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4122 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4123 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4124 | { $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
|
4125 | $as_echo "$ac_cv_header_stdc" >&6; } |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4126 | 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
|
4127 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4128 | $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
|
4129 | |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4130 | fi |
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
4131 | |
0 | 4132 | |
4133 | ||
4134 | ||
4135 | ||
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
|
4136 | |
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
|
4137 | ac_config_files="$ac_config_files Makefile.global www/version.php" |
0 | 4138 | |
4139 | cat >confcache <<\_ACEOF | |
4140 | # This file is a shell script that caches the results of configure | |
4141 | # tests run on this system so they can be shared between configure | |
4142 | # scripts and configure runs, see configure's option --config-cache. | |
4143 | # It is not useful on other systems. If it contains results you don't | |
4144 | # want to keep, you may remove or edit it. | |
4145 | # | |
4146 | # config.status only pays attention to the cache file if you give it | |
4147 | # the --recheck option to rerun configure. | |
4148 | # | |
4149 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
4150 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4151 | # following values. | |
4152 | ||
4153 | _ACEOF | |
4154 | ||
4155 | # The following way of writing the cache mishandles newlines in values, | |
4156 | # but we know of no workaround that is simple, portable, and efficient. | |
4157 | # So, we kill variables containing newlines. | |
4158 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4159 | # and sets the high bit in the cache file unless we assign to the vars. | |
4160 | ( | |
4161 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
4162 | eval ac_val=\$$ac_var | |
4163 | case $ac_val in #( | |
4164 | *${as_nl}*) | |
4165 | case $ac_var in #( | |
4166 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
4167 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
4168 | esac | |
4169 | case $ac_var in #( | |
4170 | _ | IFS | as_nl) ;; #( | |
4171 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
4172 | *) { eval $ac_var=; unset $ac_var;} ;; | |
4173 | esac ;; | |
4174 | esac | |
4175 | done | |
4176 | ||
4177 | (set) 2>&1 | | |
4178 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
4179 | *${as_nl}ac_space=\ *) | |
4180 | # `set' does not quote correctly, so add quotes: double-quote | |
4181 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
4182 | sed -n \ | |
4183 | "s/'/'\\\\''/g; | |
4184 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4185 | ;; #( | |
4186 | *) | |
4187 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4188 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
4189 | ;; | |
4190 | esac | | |
4191 | sort | |
4192 | ) | | |
4193 | sed ' | |
4194 | /^ac_cv_env_/b end | |
4195 | t clear | |
4196 | :clear | |
4197 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4198 | t end | |
4199 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4200 | :end' >>confcache | |
4201 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
4202 | if test -w "$cache_file"; then | |
4203 | if test "x$cache_file" != "x/dev/null"; then | |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
4205 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
4206 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
4207 | cat confcache >"$cache_file" | |
4208 | else | |
4209 | case $cache_file in #( | |
4210 | */* | ?:*) | |
4211 | mv -f confcache "$cache_file"$$ && | |
4212 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
4213 | *) | |
4214 | mv -f confcache "$cache_file" ;; | |
4215 | esac | |
4216 | fi | |
4217 | fi | |
4218 | else | |
4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
4220 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
4221 | fi | |
4222 | fi | |
4223 | rm -f confcache | |
4224 | ||
4225 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
4226 | # Let make expand exec_prefix. | |
4227 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4228 | ||
2 | 4229 | DEFS=-DHAVE_CONFIG_H |
0 | 4230 | |
4231 | ac_libobjs= | |
4232 | ac_ltlibobjs= | |
4233 | U= | |
4234 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
4235 | # 1. Remove the extension, and $U if already installed. | |
4236 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
4237 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
4238 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
4239 | # will be set to the directory where LIBOBJS objects are built. | |
4240 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
4241 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
4242 | done | |
4243 | LIBOBJS=$ac_libobjs | |
4244 | ||
4245 | LTLIBOBJS=$ac_ltlibobjs | |
4246 | ||
4247 | ||
4248 | ||
4249 | : "${CONFIG_STATUS=./config.status}" | |
4250 | ac_write_fail=0 | |
4251 | ac_clean_files_save=$ac_clean_files | |
4252 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
4254 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
4255 | as_write_fail=0 | |
4256 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
4257 | #! $SHELL | |
4258 | # Generated by $as_me. | |
4259 | # Run this file to recreate the current configuration. | |
4260 | # Compiler output produced by configure, useful for debugging | |
4261 | # configure, is in config.log if it exists. | |
4262 | ||
4263 | debug=false | |
4264 | ac_cs_recheck=false | |
4265 | ac_cs_silent=false | |
4266 | ||
4267 | SHELL=\${CONFIG_SHELL-$SHELL} | |
4268 | export SHELL | |
4269 | _ASEOF | |
4270 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
4271 | ## -------------------- ## | |
4272 | ## M4sh Initialization. ## | |
4273 | ## -------------------- ## | |
4274 | ||
4275 | # Be more Bourne compatible | |
4276 | DUALCASE=1; export DUALCASE # for MKS sh | |
4277 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
4278 | emulate sh | |
4279 | NULLCMD=: | |
4280 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
4281 | # is contrary to our usage. Disable this feature. | |
4282 | alias -g '${1+"$@"}'='"$@"' | |
4283 | setopt NO_GLOB_SUBST | |
4284 | else | |
4285 | case `(set -o) 2>/dev/null` in #( | |
4286 | *posix*) : | |
4287 | set -o posix ;; #( | |
4288 | *) : | |
4289 | ;; | |
4290 | esac | |
4291 | fi | |
4292 | ||
4293 | ||
4294 | as_nl=' | |
4295 | ' | |
4296 | export as_nl | |
4297 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
4298 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4299 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
4300 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
4301 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
4302 | # but without wasting forks for bash or zsh. | |
4303 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
4304 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4305 | as_echo='print -r --' | |
4306 | as_echo_n='print -rn --' | |
4307 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4308 | as_echo='printf %s\n' | |
4309 | as_echo_n='printf %s' | |
4310 | else | |
4311 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
4312 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
4313 | as_echo_n='/usr/ucb/echo -n' | |
4314 | else | |
4315 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
4316 | as_echo_n_body='eval | |
4317 | arg=$1; | |
4318 | case $arg in #( | |
4319 | *"$as_nl"*) | |
4320 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
4321 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
4322 | esac; | |
4323 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
4324 | ' | |
4325 | export as_echo_n_body | |
4326 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
4327 | fi | |
4328 | export as_echo_body | |
4329 | as_echo='sh -c $as_echo_body as_echo' | |
4330 | fi | |
4331 | ||
4332 | # The user is always right. | |
4333 | if test "${PATH_SEPARATOR+set}" != set; then | |
4334 | PATH_SEPARATOR=: | |
4335 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
4336 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
4337 | PATH_SEPARATOR=';' | |
4338 | } | |
4339 | fi | |
4340 | ||
4341 | ||
4342 | # IFS | |
4343 | # We need space, tab and new line, in precisely that order. Quoting is | |
4344 | # there to prevent editors from complaining about space-tab. | |
4345 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
4346 | # splitting by setting IFS to empty value.) | |
4347 | IFS=" "" $as_nl" | |
4348 | ||
4349 | # Find who we are. Look in the path if we contain no directory separator. | |
4350 | as_myself= | |
4351 | case $0 in #(( | |
4352 | *[\\/]* ) as_myself=$0 ;; | |
4353 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4354 | for as_dir in $PATH | |
4355 | do | |
4356 | IFS=$as_save_IFS | |
4357 | test -z "$as_dir" && as_dir=. | |
4358 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
4359 | done | |
4360 | IFS=$as_save_IFS | |
4361 | ||
4362 | ;; | |
4363 | esac | |
4364 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
4365 | # in which case we are not to be found in the path. | |
4366 | if test "x$as_myself" = x; then | |
4367 | as_myself=$0 | |
4368 | fi | |
4369 | if test ! -f "$as_myself"; then | |
4370 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
4371 | exit 1 | |
4372 | fi | |
4373 | ||
4374 | # Unset variables that we do not need and which cause bugs (e.g. in | |
4375 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
4376 | # suppresses any "Segmentation fault" message there. '((' could | |
4377 | # trigger a bug in pdksh 5.2.14. | |
4378 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
4379 | do eval test x\${$as_var+set} = xset \ | |
4380 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
4381 | done | |
4382 | PS1='$ ' | |
4383 | PS2='> ' | |
4384 | PS4='+ ' | |
4385 | ||
4386 | # NLS nuisances. | |
4387 | LC_ALL=C | |
4388 | export LC_ALL | |
4389 | LANGUAGE=C | |
4390 | export LANGUAGE | |
4391 | ||
4392 | # CDPATH. | |
4393 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
4394 | ||
4395 | ||
4396 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
4397 | # ---------------------------------------- | |
4398 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
4399 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
4400 | # script with STATUS, using 1 if that was 0. | |
4401 | as_fn_error () | |
4402 | { | |
4403 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
4404 | if test "$4"; then | |
4405 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
4406 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
4407 | fi | |
4408 | $as_echo "$as_me: error: $2" >&2 | |
4409 | as_fn_exit $as_status | |
4410 | } # as_fn_error | |
4411 | ||
4412 | ||
4413 | # as_fn_set_status STATUS | |
4414 | # ----------------------- | |
4415 | # Set $? to STATUS, without forking. | |
4416 | as_fn_set_status () | |
4417 | { | |
4418 | return $1 | |
4419 | } # as_fn_set_status | |
4420 | ||
4421 | # as_fn_exit STATUS | |
4422 | # ----------------- | |
4423 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
4424 | as_fn_exit () | |
4425 | { | |
4426 | set +e | |
4427 | as_fn_set_status $1 | |
4428 | exit $1 | |
4429 | } # as_fn_exit | |
4430 | ||
4431 | # as_fn_unset VAR | |
4432 | # --------------- | |
4433 | # Portably unset VAR. | |
4434 | as_fn_unset () | |
4435 | { | |
4436 | { eval $1=; unset $1;} | |
4437 | } | |
4438 | as_unset=as_fn_unset | |
4439 | # as_fn_append VAR VALUE | |
4440 | # ---------------------- | |
4441 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
4442 | # advantage of any shell optimizations that allow amortized linear growth over | |
4443 | # repeated appends, instead of the typical quadratic growth present in naive | |
4444 | # implementations. | |
4445 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
4446 | eval 'as_fn_append () | |
4447 | { | |
4448 | eval $1+=\$2 | |
4449 | }' | |
4450 | else | |
4451 | as_fn_append () | |
4452 | { | |
4453 | eval $1=\$$1\$2 | |
4454 | } | |
4455 | fi # as_fn_append | |
4456 | ||
4457 | # as_fn_arith ARG... | |
4458 | # ------------------ | |
4459 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
4460 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
4461 | # must be portable across $(()) and expr. | |
4462 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
4463 | eval 'as_fn_arith () | |
4464 | { | |
4465 | as_val=$(( $* )) | |
4466 | }' | |
4467 | else | |
4468 | as_fn_arith () | |
4469 | { | |
4470 | as_val=`expr "$@" || test $? -eq 1` | |
4471 | } | |
4472 | fi # as_fn_arith | |
4473 | ||
4474 | ||
4475 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
4476 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
4477 | as_expr=expr | |
4478 | else | |
4479 | as_expr=false | |
4480 | fi | |
4481 | ||
4482 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
4483 | as_basename=basename | |
4484 | else | |
4485 | as_basename=false | |
4486 | fi | |
4487 | ||
4488 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
4489 | as_dirname=dirname | |
4490 | else | |
4491 | as_dirname=false | |
4492 | fi | |
4493 | ||
4494 | as_me=`$as_basename -- "$0" || | |
4495 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
4496 | X"$0" : 'X\(//\)$' \| \ | |
4497 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
4498 | $as_echo X/"$0" | | |
4499 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
4500 | s//\1/ | |
4501 | q | |
4502 | } | |
4503 | /^X\/\(\/\/\)$/{ | |
4504 | s//\1/ | |
4505 | q | |
4506 | } | |
4507 | /^X\/\(\/\).*/{ | |
4508 | s//\1/ | |
4509 | q | |
4510 | } | |
4511 | s/.*/./; q'` | |
4512 | ||
4513 | # Avoid depending upon Character Ranges. | |
4514 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
4515 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
4516 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
4517 | as_cr_digits='0123456789' | |
4518 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
4519 | ||
4520 | ECHO_C= ECHO_N= ECHO_T= | |
4521 | case `echo -n x` in #((((( | |
4522 | -n*) | |
4523 | case `echo 'xy\c'` in | |
4524 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
4525 | xy) ECHO_C='\c';; | |
4526 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
4527 | ECHO_T=' ';; | |
4528 | esac;; | |
4529 | *) | |
4530 | ECHO_N='-n';; | |
4531 | esac | |
4532 | ||
4533 | rm -f conf$$ conf$$.exe conf$$.file | |
4534 | if test -d conf$$.dir; then | |
4535 | rm -f conf$$.dir/conf$$.file | |
4536 | else | |
4537 | rm -f conf$$.dir | |
4538 | mkdir conf$$.dir 2>/dev/null | |
4539 | fi | |
4540 | if (echo >conf$$.file) 2>/dev/null; then | |
4541 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
4542 | as_ln_s='ln -s' | |
4543 | # ... but there are two gotchas: | |
4544 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
4545 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
4546 | # In both cases, we have to default to `cp -pR'. | |
4547 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
4548 | as_ln_s='cp -pR' | |
4549 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
4550 | as_ln_s=ln | |
4551 | else | |
4552 | as_ln_s='cp -pR' | |
4553 | fi | |
4554 | else | |
4555 | as_ln_s='cp -pR' | |
4556 | fi | |
4557 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
4558 | rmdir conf$$.dir 2>/dev/null | |
4559 | ||
4560 | ||
4561 | # as_fn_mkdir_p | |
4562 | # ------------- | |
4563 | # Create "$as_dir" as a directory, including parents if necessary. | |
4564 | as_fn_mkdir_p () | |
4565 | { | |
4566 | ||
4567 | case $as_dir in #( | |
4568 | -*) as_dir=./$as_dir;; | |
4569 | esac | |
4570 | test -d "$as_dir" || eval $as_mkdir_p || { | |
4571 | as_dirs= | |
4572 | while :; do | |
4573 | case $as_dir in #( | |
4574 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
4575 | *) as_qdir=$as_dir;; | |
4576 | esac | |
4577 | as_dirs="'$as_qdir' $as_dirs" | |
4578 | as_dir=`$as_dirname -- "$as_dir" || | |
4579 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4580 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4581 | X"$as_dir" : 'X\(//\)$' \| \ | |
4582 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
4583 | $as_echo X"$as_dir" | | |
4584 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4585 | s//\1/ | |
4586 | q | |
4587 | } | |
4588 | /^X\(\/\/\)[^/].*/{ | |
4589 | s//\1/ | |
4590 | q | |
4591 | } | |
4592 | /^X\(\/\/\)$/{ | |
4593 | s//\1/ | |
4594 | q | |
4595 | } | |
4596 | /^X\(\/\).*/{ | |
4597 | s//\1/ | |
4598 | q | |
4599 | } | |
4600 | s/.*/./; q'` | |
4601 | test -d "$as_dir" && break | |
4602 | done | |
4603 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4604 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
4605 | ||
4606 | ||
4607 | } # as_fn_mkdir_p | |
4608 | if mkdir -p . 2>/dev/null; then | |
4609 | as_mkdir_p='mkdir -p "$as_dir"' | |
4610 | else | |
4611 | test -d ./-p && rmdir ./-p | |
4612 | as_mkdir_p=false | |
4613 | fi | |
4614 | ||
4615 | ||
4616 | # as_fn_executable_p FILE | |
4617 | # ----------------------- | |
4618 | # Test if FILE is an executable regular file. | |
4619 | as_fn_executable_p () | |
4620 | { | |
4621 | test -f "$1" && test -x "$1" | |
4622 | } # as_fn_executable_p | |
4623 | as_test_x='test -x' | |
4624 | as_executable_p=as_fn_executable_p | |
4625 | ||
4626 | # Sed expression to map a string onto a valid CPP name. | |
4627 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
4628 | ||
4629 | # Sed expression to map a string onto a valid variable name. | |
4630 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
4631 | ||
4632 | ||
4633 | exec 6>&1 | |
4634 | ## ----------------------------------- ## | |
4635 | ## Main body of $CONFIG_STATUS script. ## | |
4636 | ## ----------------------------------- ## | |
4637 | _ASEOF | |
4638 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
4639 | ||
4640 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4641 | # Save the log message, to keep $0 and so on meaningful, and to | |
4642 | # report actual input values of CONFIG_FILES etc. instead of their | |
4643 | # values after options handling. | |
4644 | ac_log=" | |
4645 | This file was extended by $as_me, which was | |
4646 | generated by GNU Autoconf 2.69. Invocation command line was | |
4647 | ||
4648 | CONFIG_FILES = $CONFIG_FILES | |
4649 | CONFIG_HEADERS = $CONFIG_HEADERS | |
4650 | CONFIG_LINKS = $CONFIG_LINKS | |
4651 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
4652 | $ $0 $@ | |
4653 | ||
4654 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
4655 | " | |
4656 | ||
4657 | _ACEOF | |
4658 | ||
4659 | case $ac_config_files in *" | |
4660 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
4661 | esac | |
4662 | ||
2 | 4663 | case $ac_config_headers in *" |
4664 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
4665 | esac | |
0 | 4666 | |
4667 | ||
4668 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4669 | # Files that config.status was made for. | |
4670 | config_files="$ac_config_files" | |
2 | 4671 | config_headers="$ac_config_headers" |
0 | 4672 | |
4673 | _ACEOF | |
4674 | ||
4675 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4676 | ac_cs_usage="\ | |
4677 | \`$as_me' instantiates files and other configuration actions | |
4678 | from templates according to the current configuration. Unless the files | |
4679 | and actions are specified as TAGs, all are instantiated by default. | |
4680 | ||
4681 | Usage: $0 [OPTION]... [TAG]... | |
4682 | ||
4683 | -h, --help print this help, then exit | |
4684 | -V, --version print version number and configuration settings, then exit | |
4685 | --config print configuration, then exit | |
4686 | -q, --quiet, --silent | |
4687 | do not print progress messages | |
4688 | -d, --debug don't remove temporary files | |
4689 | --recheck update $as_me by reconfiguring in the same conditions | |
4690 | --file=FILE[:TEMPLATE] | |
4691 | instantiate the configuration file FILE | |
2 | 4692 | --header=FILE[:TEMPLATE] |
4693 | instantiate the configuration header FILE | |
0 | 4694 | |
4695 | Configuration files: | |
4696 | $config_files | |
4697 | ||
2 | 4698 | Configuration headers: |
4699 | $config_headers | |
4700 | ||
0 | 4701 | Report bugs to the package provider." |
4702 | ||
4703 | _ACEOF | |
4704 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4705 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
4706 | ac_cs_version="\\ | |
4707 | config.status | |
4708 | configured by $0, generated by GNU Autoconf 2.69, | |
4709 | with options \\"\$ac_cs_config\\" | |
4710 | ||
4711 | Copyright (C) 2012 Free Software Foundation, Inc. | |
4712 | This config.status script is free software; the Free Software Foundation | |
4713 | gives unlimited permission to copy, distribute and modify it." | |
4714 | ||
4715 | ac_pwd='$ac_pwd' | |
4716 | srcdir='$srcdir' | |
4717 | test -n "\$AWK" || AWK=awk | |
4718 | _ACEOF | |
4719 | ||
4720 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4721 | # The default lists apply if the user does not specify any file. | |
4722 | ac_need_defaults=: | |
4723 | while test $# != 0 | |
4724 | do | |
4725 | case $1 in | |
4726 | --*=?*) | |
4727 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
4728 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
4729 | ac_shift=: | |
4730 | ;; | |
4731 | --*=) | |
4732 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
4733 | ac_optarg= | |
4734 | ac_shift=: | |
4735 | ;; | |
4736 | *) | |
4737 | ac_option=$1 | |
4738 | ac_optarg=$2 | |
4739 | ac_shift=shift | |
4740 | ;; | |
4741 | esac | |
4742 | ||
4743 | case $ac_option in | |
4744 | # Handling of the options. | |
4745 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4746 | ac_cs_recheck=: ;; | |
4747 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
4748 | $as_echo "$ac_cs_version"; exit ;; | |
4749 | --config | --confi | --conf | --con | --co | --c ) | |
4750 | $as_echo "$ac_cs_config"; exit ;; | |
4751 | --debug | --debu | --deb | --de | --d | -d ) | |
4752 | debug=: ;; | |
4753 | --file | --fil | --fi | --f ) | |
4754 | $ac_shift | |
4755 | case $ac_optarg in | |
4756 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4757 | '') as_fn_error $? "missing file argument" ;; | |
4758 | esac | |
4759 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
4760 | ac_need_defaults=false;; | |
2 | 4761 | --header | --heade | --head | --hea ) |
4762 | $ac_shift | |
4763 | case $ac_optarg in | |
4764 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4765 | esac | |
4766 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
4767 | ac_need_defaults=false;; | |
4768 | --he | --h) | |
4769 | # Conflict between --help and --header | |
4770 | as_fn_error $? "ambiguous option: \`$1' | |
4771 | Try \`$0 --help' for more information.";; | |
4772 | --help | --hel | -h ) | |
0 | 4773 | $as_echo "$ac_cs_usage"; exit ;; |
4774 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
4775 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
4776 | ac_cs_silent=: ;; | |
4777 | ||
4778 | # This is an error. | |
4779 | -*) as_fn_error $? "unrecognized option: \`$1' | |
4780 | Try \`$0 --help' for more information." ;; | |
4781 | ||
4782 | *) as_fn_append ac_config_targets " $1" | |
4783 | ac_need_defaults=false ;; | |
4784 | ||
4785 | esac | |
4786 | shift | |
4787 | done | |
4788 | ||
4789 | ac_configure_extra_args= | |
4790 | ||
4791 | if $ac_cs_silent; then | |
4792 | exec 6>/dev/null | |
4793 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
4794 | fi | |
4795 | ||
4796 | _ACEOF | |
4797 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4798 | if \$ac_cs_recheck; then | |
4799 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
4800 | shift | |
4801 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
4802 | CONFIG_SHELL='$SHELL' | |
4803 | export CONFIG_SHELL | |
4804 | exec "\$@" | |
4805 | fi | |
4806 | ||
4807 | _ACEOF | |
4808 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4809 | exec 5>>config.log | |
4810 | { | |
4811 | echo | |
4812 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
4813 | ## Running $as_me. ## | |
4814 | _ASBOX | |
4815 | $as_echo "$ac_log" | |
4816 | } >&5 | |
4817 | ||
4818 | _ACEOF | |
4819 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4820 | _ACEOF | |
4821 | ||
4822 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4823 | ||
4824 | # Handling of arguments. | |
4825 | for ac_config_target in $ac_config_targets | |
4826 | do | |
4827 | case $ac_config_target in | |
2 | 4828 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
0 | 4829 | "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
|
4830 | "www/version.php") CONFIG_FILES="$CONFIG_FILES www/version.php" ;; |
0 | 4831 | |
4832 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
4833 | esac | |
4834 | done | |
4835 | ||
4836 | ||
4837 | # If the user did not use the arguments to specify the items to instantiate, | |
4838 | # then the envvar interface is used. Set only those that are not. | |
4839 | # We use the long form for the default assignment because of an extremely | |
4840 | # bizarre bug on SunOS 4.1.3. | |
4841 | if $ac_need_defaults; then | |
4842 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
2 | 4843 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
0 | 4844 | fi |
4845 | ||
4846 | # Have a temporary directory for convenience. Make it in the build tree | |
4847 | # simply because there is no reason against having it here, and in addition, | |
4848 | # creating and moving files from /tmp can sometimes cause problems. | |
4849 | # Hook for its removal unless debugging. | |
4850 | # Note that there is a small window in which the directory will not be cleaned: | |
4851 | # after its creation but before its name has been assigned to `$tmp'. | |
4852 | $debug || | |
4853 | { | |
4854 | tmp= ac_tmp= | |
4855 | trap 'exit_status=$? | |
4856 | : "${ac_tmp:=$tmp}" | |
4857 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
4858 | ' 0 | |
4859 | trap 'as_fn_exit 1' 1 2 13 15 | |
4860 | } | |
4861 | # Create a (secure) tmp directory for tmp files. | |
4862 | ||
4863 | { | |
4864 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
4865 | test -d "$tmp" | |
4866 | } || | |
4867 | { | |
4868 | tmp=./conf$$-$RANDOM | |
4869 | (umask 077 && mkdir "$tmp") | |
4870 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
4871 | ac_tmp=$tmp | |
4872 | ||
4873 | # Set up the scripts for CONFIG_FILES section. | |
4874 | # No need to generate them if there are no CONFIG_FILES. | |
4875 | # This happens for instance with `./config.status config.h'. | |
4876 | if test -n "$CONFIG_FILES"; then | |
4877 | ||
4878 | ||
4879 | ac_cr=`echo X | tr X '\015'` | |
4880 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
4881 | # But we know of no other shell where ac_cr would be empty at this | |
4882 | # point, so we can use a bashism as a fallback. | |
4883 | if test "x$ac_cr" = x; then | |
4884 | eval ac_cr=\$\'\\r\' | |
4885 | fi | |
4886 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
4887 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
4888 | ac_cs_awk_cr='\\r' | |
4889 | else | |
4890 | ac_cs_awk_cr=$ac_cr | |
4891 | fi | |
4892 | ||
4893 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
4894 | _ACEOF | |
4895 | ||
4896 | ||
4897 | { | |
4898 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
4899 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
4900 | echo "_ACEOF" | |
4901 | } >conf$$subs.sh || | |
4902 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4903 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
4904 | ac_delim='%!_!# ' | |
4905 | for ac_last_try in false false false false false :; do | |
4906 | . ./conf$$subs.sh || | |
4907 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4908 | ||
4909 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
4910 | if test $ac_delim_n = $ac_delim_num; then | |
4911 | break | |
4912 | elif $ac_last_try; then | |
4913 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4914 | else | |
4915 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4916 | fi | |
4917 | done | |
4918 | rm -f conf$$subs.sh | |
4919 | ||
4920 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4921 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
4922 | _ACEOF | |
4923 | sed -n ' | |
4924 | h | |
4925 | s/^/S["/; s/!.*/"]=/ | |
4926 | p | |
4927 | g | |
4928 | s/^[^!]*!// | |
4929 | :repl | |
4930 | t repl | |
4931 | s/'"$ac_delim"'$// | |
4932 | t delim | |
4933 | :nl | |
4934 | h | |
4935 | s/\(.\{148\}\)..*/\1/ | |
4936 | t more1 | |
4937 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
4938 | p | |
4939 | n | |
4940 | b repl | |
4941 | :more1 | |
4942 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4943 | p | |
4944 | g | |
4945 | s/.\{148\}// | |
4946 | t nl | |
4947 | :delim | |
4948 | h | |
4949 | s/\(.\{148\}\)..*/\1/ | |
4950 | t more2 | |
4951 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
4952 | p | |
4953 | b | |
4954 | :more2 | |
4955 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4956 | p | |
4957 | g | |
4958 | s/.\{148\}// | |
4959 | t delim | |
4960 | ' <conf$$subs.awk | sed ' | |
4961 | /^[^""]/{ | |
4962 | N | |
4963 | s/\n// | |
4964 | } | |
4965 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
4966 | rm -f conf$$subs.awk | |
4967 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4968 | _ACAWK | |
4969 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
4970 | for (key in S) S_is_set[key] = 1 | |
4971 | FS = "" | |
4972 | ||
4973 | } | |
4974 | { | |
4975 | line = $ 0 | |
4976 | nfields = split(line, field, "@") | |
4977 | substed = 0 | |
4978 | len = length(field[1]) | |
4979 | for (i = 2; i < nfields; i++) { | |
4980 | key = field[i] | |
4981 | keylen = length(key) | |
4982 | if (S_is_set[key]) { | |
4983 | value = S[key] | |
4984 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
4985 | len += length(value) + length(field[++i]) | |
4986 | substed = 1 | |
4987 | } else | |
4988 | len += 1 + keylen | |
4989 | } | |
4990 | ||
4991 | print line | |
4992 | } | |
4993 | ||
4994 | _ACAWK | |
4995 | _ACEOF | |
4996 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4997 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
4998 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
4999 | else | |
5000 | cat | |
5001 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
5002 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5003 | _ACEOF | |
5004 | ||
5005 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
5006 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5007 | # trailing colons and then remove the whole line if VPATH becomes empty | |
5008 | # (actually we leave an empty line to preserve line numbers). | |
5009 | if test "x$srcdir" = x.; then | |
5010 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
5011 | h | |
5012 | s/// | |
5013 | s/^/:/ | |
5014 | s/[ ]*$/:/ | |
5015 | s/:\$(srcdir):/:/g | |
5016 | s/:\${srcdir}:/:/g | |
5017 | s/:@srcdir@:/:/g | |
5018 | s/^:*// | |
5019 | s/:*$// | |
5020 | x | |
5021 | s/\(=[ ]*\).*/\1/ | |
5022 | G | |
5023 | s/\n// | |
5024 | s/^[^=]*=[ ]*$// | |
5025 | }' | |
5026 | fi | |
5027 | ||
5028 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5029 | fi # test -n "$CONFIG_FILES" | |
5030 | ||
2 | 5031 | # Set up the scripts for CONFIG_HEADERS section. |
5032 | # No need to generate them if there are no CONFIG_HEADERS. | |
5033 | # This happens for instance with `./config.status Makefile'. | |
5034 | if test -n "$CONFIG_HEADERS"; then | |
5035 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
5036 | BEGIN { | |
5037 | _ACEOF | |
5038 | ||
5039 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
5040 | # here-document in config.status, that substitutes the proper values into | |
5041 | # config.h.in to produce config.h. | |
5042 | ||
5043 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
5044 | # handling of long lines. | |
5045 | ac_delim='%!_!# ' | |
5046 | for ac_last_try in false false :; do | |
5047 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
5048 | if test -z "$ac_tt"; then | |
5049 | break | |
5050 | elif $ac_last_try; then | |
5051 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
5052 | else | |
5053 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
5054 | fi | |
5055 | done | |
5056 | ||
5057 | # For the awk script, D is an array of macro values keyed by name, | |
5058 | # likewise P contains macro parameters if any. Preserve backslash | |
5059 | # newline sequences. | |
5060 | ||
5061 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
5062 | sed -n ' | |
5063 | s/.\{148\}/&'"$ac_delim"'/g | |
5064 | t rset | |
5065 | :rset | |
5066 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
5067 | t def | |
5068 | d | |
5069 | :def | |
5070 | s/\\$// | |
5071 | t bsnl | |
5072 | s/["\\]/\\&/g | |
5073 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
5074 | D["\1"]=" \3"/p | |
5075 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
5076 | d | |
5077 | :bsnl | |
5078 | s/["\\]/\\&/g | |
5079 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
5080 | D["\1"]=" \3\\\\\\n"\\/p | |
5081 | t cont | |
5082 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
5083 | t cont | |
5084 | d | |
5085 | :cont | |
5086 | n | |
5087 | s/.\{148\}/&'"$ac_delim"'/g | |
5088 | t clear | |
5089 | :clear | |
5090 | s/\\$// | |
5091 | t bsnlc | |
5092 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
5093 | d | |
5094 | :bsnlc | |
5095 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
5096 | b cont | |
5097 | ' <confdefs.h | sed ' | |
5098 | s/'"$ac_delim"'/"\\\ | |
5099 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
5100 | ||
5101 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5102 | for (key in D) D_is_set[key] = 1 | |
5103 | FS = "" | |
5104 | } | |
5105 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
5106 | line = \$ 0 | |
5107 | split(line, arg, " ") | |
5108 | if (arg[1] == "#") { | |
5109 | defundef = arg[2] | |
5110 | mac1 = arg[3] | |
5111 | } else { | |
5112 | defundef = substr(arg[1], 2) | |
5113 | mac1 = arg[2] | |
5114 | } | |
5115 | split(mac1, mac2, "(") #) | |
5116 | macro = mac2[1] | |
5117 | prefix = substr(line, 1, index(line, defundef) - 1) | |
5118 | if (D_is_set[macro]) { | |
5119 | # Preserve the white space surrounding the "#". | |
5120 | print prefix "define", macro P[macro] D[macro] | |
5121 | next | |
5122 | } else { | |
5123 | # Replace #undef with comments. This is necessary, for example, | |
5124 | # in the case of _POSIX_SOURCE, which is predefined and required | |
5125 | # on some systems where configure will not decide to define it. | |
5126 | if (defundef == "undef") { | |
5127 | print "/*", prefix defundef, macro, "*/" | |
5128 | next | |
5129 | } | |
5130 | } | |
5131 | } | |
5132 | { print } | |
5133 | _ACAWK | |
5134 | _ACEOF | |
5135 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5136 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
5137 | fi # test -n "$CONFIG_HEADERS" | |
5138 | ||
5139 | ||
5140 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | |
0 | 5141 | shift |
5142 | for ac_tag | |
5143 | do | |
5144 | case $ac_tag in | |
5145 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
5146 | esac | |
5147 | case $ac_mode$ac_tag in | |
5148 | :[FHL]*:*);; | |
5149 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
5150 | :[FH]-) ac_tag=-:-;; | |
5151 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
5152 | esac | |
5153 | ac_save_IFS=$IFS | |
5154 | IFS=: | |
5155 | set x $ac_tag | |
5156 | IFS=$ac_save_IFS | |
5157 | shift | |
5158 | ac_file=$1 | |
5159 | shift | |
5160 | ||
5161 | case $ac_mode in | |
5162 | :L) ac_source=$1;; | |
5163 | :[FH]) | |
5164 | ac_file_inputs= | |
5165 | for ac_f | |
5166 | do | |
5167 | case $ac_f in | |
5168 | -) ac_f="$ac_tmp/stdin";; | |
5169 | *) # Look for the file first in the build tree, then in the source tree | |
5170 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
5171 | # because $ac_f cannot contain `:'. | |
5172 | test -f "$ac_f" || | |
5173 | case $ac_f in | |
5174 | [\\/$]*) false;; | |
5175 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
5176 | esac || | |
5177 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
5178 | esac | |
5179 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
5180 | as_fn_append ac_file_inputs " '$ac_f'" | |
5181 | done | |
5182 | ||
5183 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
5184 | # use $as_me), people would be surprised to read: | |
5185 | # /* config.h. Generated by config.status. */ | |
5186 | configure_input='Generated from '` | |
5187 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
5188 | `' by configure.' | |
5189 | if test x"$ac_file" != x-; then | |
5190 | configure_input="$ac_file. $configure_input" | |
5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
5192 | $as_echo "$as_me: creating $ac_file" >&6;} | |
5193 | fi | |
5194 | # Neutralize special characters interpreted by sed in replacement strings. | |
5195 | case $configure_input in #( | |
5196 | *\&* | *\|* | *\\* ) | |
5197 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
5198 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
5199 | *) ac_sed_conf_input=$configure_input;; | |
5200 | esac | |
5201 | ||
5202 | case $ac_tag in | |
5203 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
5204 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5205 | esac | |
5206 | ;; | |
5207 | esac | |
5208 | ||
5209 | ac_dir=`$as_dirname -- "$ac_file" || | |
5210 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5211 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
5212 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
5214 | $as_echo X"$ac_file" | | |
5215 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
5216 | s//\1/ | |
5217 | q | |
5218 | } | |
5219 | /^X\(\/\/\)[^/].*/{ | |
5220 | s//\1/ | |
5221 | q | |
5222 | } | |
5223 | /^X\(\/\/\)$/{ | |
5224 | s//\1/ | |
5225 | q | |
5226 | } | |
5227 | /^X\(\/\).*/{ | |
5228 | s//\1/ | |
5229 | q | |
5230 | } | |
5231 | s/.*/./; q'` | |
5232 | as_dir="$ac_dir"; as_fn_mkdir_p | |
5233 | ac_builddir=. | |
5234 | ||
5235 | case "$ac_dir" in | |
5236 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
5237 | *) | |
5238 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
5239 | # A ".." for each directory in $ac_dir_suffix. | |
5240 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
5241 | case $ac_top_builddir_sub in | |
5242 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
5243 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
5244 | esac ;; | |
5245 | esac | |
5246 | ac_abs_top_builddir=$ac_pwd | |
5247 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
5248 | # for backward compatibility: | |
5249 | ac_top_builddir=$ac_top_build_prefix | |
5250 | ||
5251 | case $srcdir in | |
5252 | .) # We are building in place. | |
5253 | ac_srcdir=. | |
5254 | ac_top_srcdir=$ac_top_builddir_sub | |
5255 | ac_abs_top_srcdir=$ac_pwd ;; | |
5256 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
5257 | ac_srcdir=$srcdir$ac_dir_suffix; | |
5258 | ac_top_srcdir=$srcdir | |
5259 | ac_abs_top_srcdir=$srcdir ;; | |
5260 | *) # Relative name. | |
5261 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
5262 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
5263 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5264 | esac | |
5265 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
5266 | ||
5267 | ||
5268 | case $ac_mode in | |
5269 | :F) | |
5270 | # | |
5271 | # CONFIG_FILE | |
5272 | # | |
5273 | ||
5274 | _ACEOF | |
5275 | ||
5276 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5277 | # If the template does not know about datarootdir, expand it. | |
5278 | # FIXME: This hack should be removed a few years after 2.60. | |
5279 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
5280 | ac_sed_dataroot=' | |
5281 | /datarootdir/ { | |
5282 | p | |
5283 | q | |
5284 | } | |
5285 | /@datadir@/p | |
5286 | /@docdir@/p | |
5287 | /@infodir@/p | |
5288 | /@localedir@/p | |
5289 | /@mandir@/p' | |
5290 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
5291 | *datarootdir*) ac_datarootdir_seen=yes;; | |
5292 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
5294 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
5295 | _ACEOF | |
5296 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5297 | ac_datarootdir_hack=' | |
5298 | s&@datadir@&$datadir&g | |
5299 | s&@docdir@&$docdir&g | |
5300 | s&@infodir@&$infodir&g | |
5301 | s&@localedir@&$localedir&g | |
5302 | s&@mandir@&$mandir&g | |
5303 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
5304 | esac | |
5305 | _ACEOF | |
5306 | ||
5307 | # Neutralize VPATH when `$srcdir' = `.'. | |
5308 | # Shell code in configure.ac might set extrasub. | |
5309 | # FIXME: do we really want to maintain this feature? | |
5310 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5311 | ac_sed_extra="$ac_vpsub | |
5312 | $extrasub | |
5313 | _ACEOF | |
5314 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5315 | :t | |
5316 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5317 | s|@configure_input@|$ac_sed_conf_input|;t t | |
5318 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
5319 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
5320 | s&@srcdir@&$ac_srcdir&;t t | |
5321 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
5322 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
5323 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
5324 | s&@builddir@&$ac_builddir&;t t | |
5325 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
5326 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
5327 | $ac_datarootdir_hack | |
5328 | " | |
5329 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
5330 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5331 | ||
5332 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
5333 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
5334 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
5335 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5336 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
5337 | which seems to be undefined. Please make sure it is defined" >&5 | |
5338 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
5339 | which seems to be undefined. Please make sure it is defined" >&2;} | |
5340 | ||
5341 | rm -f "$ac_tmp/stdin" | |
5342 | case $ac_file in | |
5343 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
5344 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5345 | esac \ | |
5346 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5347 | ;; | |
2 | 5348 | :H) |
5349 | # | |
5350 | # CONFIG_HEADER | |
5351 | # | |
5352 | if test x"$ac_file" != x-; then | |
5353 | { | |
5354 | $as_echo "/* $configure_input */" \ | |
5355 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
5356 | } >"$ac_tmp/config.h" \ | |
5357 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5358 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
5359 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
5360 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
5361 | else | |
5362 | rm -f "$ac_file" | |
5363 | mv "$ac_tmp/config.h" "$ac_file" \ | |
5364 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5365 | fi | |
5366 | else | |
5367 | $as_echo "/* $configure_input */" \ | |
5368 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
5369 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
5370 | fi | |
5371 | ;; | |
0 | 5372 | |
5373 | ||
5374 | esac | |
5375 | ||
5376 | done # for ac_tag | |
5377 | ||
5378 | ||
5379 | as_fn_exit 0 | |
5380 | _ACEOF | |
5381 | ac_clean_files=$ac_clean_files_save | |
5382 | ||
5383 | test $ac_write_fail = 0 || | |
5384 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
5385 | ||
5386 | ||
5387 | # configure is writing to config.log, and then calls config.status. | |
5388 | # config.status does its own redirection, appending to config.log. | |
5389 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
5390 | # by configure, so config.status won't be able to write to it; its | |
5391 | # output is simply discarded. So we exec the FD to /dev/null, | |
5392 | # effectively closing config.log, so it can be properly (re)opened and | |
5393 | # appended to by config.status. When coming back to configure, we | |
5394 | # need to make the FD available again. | |
5395 | if test "$no_create" != yes; then | |
5396 | ac_cs_success=: | |
5397 | ac_config_status_args= | |
5398 | test "$silent" = yes && | |
5399 | ac_config_status_args="$ac_config_status_args --quiet" | |
5400 | exec 5>/dev/null | |
5401 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
5402 | exec 5>>config.log | |
5403 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
5404 | # would make configure fail if this is the last instruction. | |
5405 | $ac_cs_success || as_fn_exit 1 | |
5406 | fi | |
5407 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
5408 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
5409 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
5410 | fi | |
5411 | ||
5412 | ||
5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: | |
5414 | -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=- | |
5415 | ||
5416 | Configuration summary : | |
5417 | ||
5418 | Version : ............ ${VERSION} | |
5419 | Main directory : ..... ${prefix} | |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
5420 | 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
|
5421 | SDL2 library : ....... ${SDL} |
283 | 5422 | Simulator : .......... ${SIMULATOR} |
0 | 5423 | |
5424 | Now type 'make' and 'sudo make install' | |
5425 | " >&5 | |
5426 | $as_echo " | |
5427 | -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=- | |
5428 | ||
5429 | Configuration summary : | |
5430 | ||
5431 | Version : ............ ${VERSION} | |
5432 | Main directory : ..... ${prefix} | |
17
b802305046dc
Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents:
16
diff
changeset
|
5433 | 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
|
5434 | SDL2 library : ....... ${SDL} |
283 | 5435 | Simulator : .......... ${SIMULATOR} |
0 | 5436 | |
5437 | Now type 'make' and 'sudo make install' | |
5438 | " >&6; } | |
5439 |