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