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