Mass update GPLv2 from http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
[dockapps.git] / wmnotify / configure
blobd8cb721c4cd7a4c2a60aa6589c97b79d617906e5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for wmnotify 1.0.0.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='wmnotify'
551 PACKAGE_TARNAME='wmnotify'
552 PACKAGE_VERSION='1.0.0'
553 PACKAGE_STRING='wmnotify 1.0.0'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/wmnotify.c"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_subst_vars='am__EXEEXT_FALSE
595 am__EXEEXT_TRUE
596 LTLIBOBJS
597 LIBOBJS
598 ac_aux_dir
599 OPENSSL_LIBS
600 OPENSSL_CFLAGS
601 SNDFILE_LIBS
602 SNDFILE_CFLAGS
603 PKG_CONFIG_LIBDIR
604 PKG_CONFIG_PATH
605 PKG_CONFIG
606 X_EXTRA_LIBS
607 X_LIBS
608 X_PRE_LIBS
609 X_CFLAGS
610 XMKMF
611 PTHREAD_CFLAGS
612 PTHREAD_LIBS
613 PTHREAD_CC
614 host_os
615 host_vendor
616 host_cpu
617 host
618 build_os
619 build_vendor
620 build_cpu
621 build
622 EGREP
623 GREP
625 am__fastdepCC_FALSE
626 am__fastdepCC_TRUE
627 CCDEPMODE
628 AMDEPBACKSLASH
629 AMDEP_FALSE
630 AMDEP_TRUE
631 am__quote
632 am__include
633 DEPDIR
634 OBJEXT
635 EXEEXT
636 ac_ct_CC
637 CPPFLAGS
638 LDFLAGS
639 CFLAGS
641 AM_BACKSLASH
642 AM_DEFAULT_VERBOSITY
643 am__untar
644 am__tar
645 AMTAR
646 am__leading_dot
647 SET_MAKE
649 mkdir_p
650 MKDIR_P
651 INSTALL_STRIP_PROGRAM
652 STRIP
653 install_sh
654 MAKEINFO
655 AUTOHEADER
656 AUTOMAKE
657 AUTOCONF
658 ACLOCAL
659 VERSION
660 PACKAGE
661 CYGPATH_W
662 am__isrc
663 INSTALL_DATA
664 INSTALL_SCRIPT
665 INSTALL_PROGRAM
666 target_alias
667 host_alias
668 build_alias
669 LIBS
670 ECHO_T
671 ECHO_N
672 ECHO_C
673 DEFS
674 mandir
675 localedir
676 libdir
677 psdir
678 pdfdir
679 dvidir
680 htmldir
681 infodir
682 docdir
683 oldincludedir
684 includedir
685 localstatedir
686 sharedstatedir
687 sysconfdir
688 datadir
689 datarootdir
690 libexecdir
691 sbindir
692 bindir
693 program_transform_name
694 prefix
695 exec_prefix
696 PACKAGE_URL
697 PACKAGE_BUGREPORT
698 PACKAGE_STRING
699 PACKAGE_VERSION
700 PACKAGE_TARNAME
701 PACKAGE_NAME
702 PATH_SEPARATOR
703 SHELL'
704 ac_subst_files=''
705 ac_user_opts='
706 enable_option_checking
707 enable_silent_rules
708 enable_dependency_tracking
709 with_x
710 enable_libsndfile
711 enable_ssl
713 ac_precious_vars='build_alias
714 host_alias
715 target_alias
717 CFLAGS
718 LDFLAGS
719 LIBS
720 CPPFLAGS
722 XMKMF
723 PKG_CONFIG
724 PKG_CONFIG_PATH
725 PKG_CONFIG_LIBDIR
726 SNDFILE_CFLAGS
727 SNDFILE_LIBS
728 OPENSSL_CFLAGS
729 OPENSSL_LIBS'
732 # Initialize some variables set by options.
733 ac_init_help=
734 ac_init_version=false
735 ac_unrecognized_opts=
736 ac_unrecognized_sep=
737 # The variables have the same names as the options, with
738 # dashes changed to underlines.
739 cache_file=/dev/null
740 exec_prefix=NONE
741 no_create=
742 no_recursion=
743 prefix=NONE
744 program_prefix=NONE
745 program_suffix=NONE
746 program_transform_name=s,x,x,
747 silent=
748 site=
749 srcdir=
750 verbose=
751 x_includes=NONE
752 x_libraries=NONE
754 # Installation directory options.
755 # These are left unexpanded so users can "make install exec_prefix=/foo"
756 # and all the variables that are supposed to be based on exec_prefix
757 # by default will actually change.
758 # Use braces instead of parens because sh, perl, etc. also accept them.
759 # (The list follows the same order as the GNU Coding Standards.)
760 bindir='${exec_prefix}/bin'
761 sbindir='${exec_prefix}/sbin'
762 libexecdir='${exec_prefix}/libexec'
763 datarootdir='${prefix}/share'
764 datadir='${datarootdir}'
765 sysconfdir='${prefix}/etc'
766 sharedstatedir='${prefix}/com'
767 localstatedir='${prefix}/var'
768 includedir='${prefix}/include'
769 oldincludedir='/usr/include'
770 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
771 infodir='${datarootdir}/info'
772 htmldir='${docdir}'
773 dvidir='${docdir}'
774 pdfdir='${docdir}'
775 psdir='${docdir}'
776 libdir='${exec_prefix}/lib'
777 localedir='${datarootdir}/locale'
778 mandir='${datarootdir}/man'
780 ac_prev=
781 ac_dashdash=
782 for ac_option
784 # If the previous option needs an argument, assign it.
785 if test -n "$ac_prev"; then
786 eval $ac_prev=\$ac_option
787 ac_prev=
788 continue
791 case $ac_option in
792 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793 *=) ac_optarg= ;;
794 *) ac_optarg=yes ;;
795 esac
797 # Accept the important Cygnus configure options, so we can diagnose typos.
799 case $ac_dashdash$ac_option in
801 ac_dashdash=yes ;;
803 -bindir | --bindir | --bindi | --bind | --bin | --bi)
804 ac_prev=bindir ;;
805 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
806 bindir=$ac_optarg ;;
808 -build | --build | --buil | --bui | --bu)
809 ac_prev=build_alias ;;
810 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
811 build_alias=$ac_optarg ;;
813 -cache-file | --cache-file | --cache-fil | --cache-fi \
814 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
815 ac_prev=cache_file ;;
816 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
817 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
818 cache_file=$ac_optarg ;;
820 --config-cache | -C)
821 cache_file=config.cache ;;
823 -datadir | --datadir | --datadi | --datad)
824 ac_prev=datadir ;;
825 -datadir=* | --datadir=* | --datadi=* | --datad=*)
826 datadir=$ac_optarg ;;
828 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
829 | --dataroo | --dataro | --datar)
830 ac_prev=datarootdir ;;
831 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
832 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
833 datarootdir=$ac_optarg ;;
835 -disable-* | --disable-*)
836 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
837 # Reject names that are not valid shell variable names.
838 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
839 as_fn_error $? "invalid feature name: $ac_useropt"
840 ac_useropt_orig=$ac_useropt
841 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
842 case $ac_user_opts in
844 "enable_$ac_useropt"
845 "*) ;;
846 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
847 ac_unrecognized_sep=', ';;
848 esac
849 eval enable_$ac_useropt=no ;;
851 -docdir | --docdir | --docdi | --doc | --do)
852 ac_prev=docdir ;;
853 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
854 docdir=$ac_optarg ;;
856 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
857 ac_prev=dvidir ;;
858 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
859 dvidir=$ac_optarg ;;
861 -enable-* | --enable-*)
862 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865 as_fn_error $? "invalid feature name: $ac_useropt"
866 ac_useropt_orig=$ac_useropt
867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868 case $ac_user_opts in
870 "enable_$ac_useropt"
871 "*) ;;
872 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
873 ac_unrecognized_sep=', ';;
874 esac
875 eval enable_$ac_useropt=\$ac_optarg ;;
877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
879 | --exec | --exe | --ex)
880 ac_prev=exec_prefix ;;
881 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
882 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
883 | --exec=* | --exe=* | --ex=*)
884 exec_prefix=$ac_optarg ;;
886 -gas | --gas | --ga | --g)
887 # Obsolete; use --with-gas.
888 with_gas=yes ;;
890 -help | --help | --hel | --he | -h)
891 ac_init_help=long ;;
892 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
893 ac_init_help=recursive ;;
894 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
895 ac_init_help=short ;;
897 -host | --host | --hos | --ho)
898 ac_prev=host_alias ;;
899 -host=* | --host=* | --hos=* | --ho=*)
900 host_alias=$ac_optarg ;;
902 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
903 ac_prev=htmldir ;;
904 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
905 | --ht=*)
906 htmldir=$ac_optarg ;;
908 -includedir | --includedir | --includedi | --included | --include \
909 | --includ | --inclu | --incl | --inc)
910 ac_prev=includedir ;;
911 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
912 | --includ=* | --inclu=* | --incl=* | --inc=*)
913 includedir=$ac_optarg ;;
915 -infodir | --infodir | --infodi | --infod | --info | --inf)
916 ac_prev=infodir ;;
917 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
918 infodir=$ac_optarg ;;
920 -libdir | --libdir | --libdi | --libd)
921 ac_prev=libdir ;;
922 -libdir=* | --libdir=* | --libdi=* | --libd=*)
923 libdir=$ac_optarg ;;
925 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
926 | --libexe | --libex | --libe)
927 ac_prev=libexecdir ;;
928 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
929 | --libexe=* | --libex=* | --libe=*)
930 libexecdir=$ac_optarg ;;
932 -localedir | --localedir | --localedi | --localed | --locale)
933 ac_prev=localedir ;;
934 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
935 localedir=$ac_optarg ;;
937 -localstatedir | --localstatedir | --localstatedi | --localstated \
938 | --localstate | --localstat | --localsta | --localst | --locals)
939 ac_prev=localstatedir ;;
940 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
941 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
942 localstatedir=$ac_optarg ;;
944 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
945 ac_prev=mandir ;;
946 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
947 mandir=$ac_optarg ;;
949 -nfp | --nfp | --nf)
950 # Obsolete; use --without-fp.
951 with_fp=no ;;
953 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
954 | --no-cr | --no-c | -n)
955 no_create=yes ;;
957 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
958 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
959 no_recursion=yes ;;
961 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
962 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
963 | --oldin | --oldi | --old | --ol | --o)
964 ac_prev=oldincludedir ;;
965 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
966 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
967 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
968 oldincludedir=$ac_optarg ;;
970 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
971 ac_prev=prefix ;;
972 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
973 prefix=$ac_optarg ;;
975 -program-prefix | --program-prefix | --program-prefi | --program-pref \
976 | --program-pre | --program-pr | --program-p)
977 ac_prev=program_prefix ;;
978 -program-prefix=* | --program-prefix=* | --program-prefi=* \
979 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
980 program_prefix=$ac_optarg ;;
982 -program-suffix | --program-suffix | --program-suffi | --program-suff \
983 | --program-suf | --program-su | --program-s)
984 ac_prev=program_suffix ;;
985 -program-suffix=* | --program-suffix=* | --program-suffi=* \
986 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
987 program_suffix=$ac_optarg ;;
989 -program-transform-name | --program-transform-name \
990 | --program-transform-nam | --program-transform-na \
991 | --program-transform-n | --program-transform- \
992 | --program-transform | --program-transfor \
993 | --program-transfo | --program-transf \
994 | --program-trans | --program-tran \
995 | --progr-tra | --program-tr | --program-t)
996 ac_prev=program_transform_name ;;
997 -program-transform-name=* | --program-transform-name=* \
998 | --program-transform-nam=* | --program-transform-na=* \
999 | --program-transform-n=* | --program-transform-=* \
1000 | --program-transform=* | --program-transfor=* \
1001 | --program-transfo=* | --program-transf=* \
1002 | --program-trans=* | --program-tran=* \
1003 | --progr-tra=* | --program-tr=* | --program-t=*)
1004 program_transform_name=$ac_optarg ;;
1006 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1007 ac_prev=pdfdir ;;
1008 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1009 pdfdir=$ac_optarg ;;
1011 -psdir | --psdir | --psdi | --psd | --ps)
1012 ac_prev=psdir ;;
1013 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1014 psdir=$ac_optarg ;;
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1018 silent=yes ;;
1020 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1021 ac_prev=sbindir ;;
1022 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1023 | --sbi=* | --sb=*)
1024 sbindir=$ac_optarg ;;
1026 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1027 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1028 | --sharedst | --shareds | --shared | --share | --shar \
1029 | --sha | --sh)
1030 ac_prev=sharedstatedir ;;
1031 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1032 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1033 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1034 | --sha=* | --sh=*)
1035 sharedstatedir=$ac_optarg ;;
1037 -site | --site | --sit)
1038 ac_prev=site ;;
1039 -site=* | --site=* | --sit=*)
1040 site=$ac_optarg ;;
1042 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1043 ac_prev=srcdir ;;
1044 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1045 srcdir=$ac_optarg ;;
1047 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1048 | --syscon | --sysco | --sysc | --sys | --sy)
1049 ac_prev=sysconfdir ;;
1050 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1051 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1052 sysconfdir=$ac_optarg ;;
1054 -target | --target | --targe | --targ | --tar | --ta | --t)
1055 ac_prev=target_alias ;;
1056 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1057 target_alias=$ac_optarg ;;
1059 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1060 verbose=yes ;;
1062 -version | --version | --versio | --versi | --vers | -V)
1063 ac_init_version=: ;;
1065 -with-* | --with-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error $? "invalid package name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "with_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval with_$ac_useropt=\$ac_optarg ;;
1081 -without-* | --without-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error $? "invalid package name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "with_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval with_$ac_useropt=no ;;
1097 --x)
1098 # Obsolete; use --with-x.
1099 with_x=yes ;;
1101 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1102 | --x-incl | --x-inc | --x-in | --x-i)
1103 ac_prev=x_includes ;;
1104 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1105 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1106 x_includes=$ac_optarg ;;
1108 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1109 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1110 ac_prev=x_libraries ;;
1111 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1112 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1113 x_libraries=$ac_optarg ;;
1115 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1116 Try \`$0 --help' for more information"
1119 *=*)
1120 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1121 # Reject names that are not valid shell variable names.
1122 case $ac_envvar in #(
1123 '' | [0-9]* | *[!_$as_cr_alnum]* )
1124 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1125 esac
1126 eval $ac_envvar=\$ac_optarg
1127 export $ac_envvar ;;
1130 # FIXME: should be removed in autoconf 3.0.
1131 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1132 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1133 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1134 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1137 esac
1138 done
1140 if test -n "$ac_prev"; then
1141 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1142 as_fn_error $? "missing argument to $ac_option"
1145 if test -n "$ac_unrecognized_opts"; then
1146 case $enable_option_checking in
1147 no) ;;
1148 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1149 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1150 esac
1153 # Check all directory arguments for consistency.
1154 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1155 datadir sysconfdir sharedstatedir localstatedir includedir \
1156 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1157 libdir localedir mandir
1159 eval ac_val=\$$ac_var
1160 # Remove trailing slashes.
1161 case $ac_val in
1162 */ )
1163 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1164 eval $ac_var=\$ac_val;;
1165 esac
1166 # Be sure to have absolute directory names.
1167 case $ac_val in
1168 [\\/$]* | ?:[\\/]* ) continue;;
1169 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1170 esac
1171 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1172 done
1174 # There might be people who depend on the old broken behavior: `$host'
1175 # used to hold the argument of --host etc.
1176 # FIXME: To remove some day.
1177 build=$build_alias
1178 host=$host_alias
1179 target=$target_alias
1181 # FIXME: To remove some day.
1182 if test "x$host_alias" != x; then
1183 if test "x$build_alias" = x; then
1184 cross_compiling=maybe
1185 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1186 If a cross compiler is detected then cross compile mode will be used" >&2
1187 elif test "x$build_alias" != "x$host_alias"; then
1188 cross_compiling=yes
1192 ac_tool_prefix=
1193 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1195 test "$silent" = yes && exec 6>/dev/null
1198 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1199 ac_ls_di=`ls -di .` &&
1200 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1201 as_fn_error $? "working directory cannot be determined"
1202 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1203 as_fn_error $? "pwd does not report name of working directory"
1206 # Find the source files, if location was not specified.
1207 if test -z "$srcdir"; then
1208 ac_srcdir_defaulted=yes
1209 # Try the directory containing this script, then the parent directory.
1210 ac_confdir=`$as_dirname -- "$as_myself" ||
1211 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1212 X"$as_myself" : 'X\(//\)[^/]' \| \
1213 X"$as_myself" : 'X\(//\)$' \| \
1214 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1215 $as_echo X"$as_myself" |
1216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1217 s//\1/
1220 /^X\(\/\/\)[^/].*/{
1221 s//\1/
1224 /^X\(\/\/\)$/{
1225 s//\1/
1228 /^X\(\/\).*/{
1229 s//\1/
1232 s/.*/./; q'`
1233 srcdir=$ac_confdir
1234 if test ! -r "$srcdir/$ac_unique_file"; then
1235 srcdir=..
1237 else
1238 ac_srcdir_defaulted=no
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1241 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1242 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1244 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1245 ac_abs_confdir=`(
1246 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1247 pwd)`
1248 # When building in place, set srcdir=.
1249 if test "$ac_abs_confdir" = "$ac_pwd"; then
1250 srcdir=.
1252 # Remove unnecessary trailing slashes from srcdir.
1253 # Double slashes in file names in object file debugging info
1254 # mess up M-x gdb in Emacs.
1255 case $srcdir in
1256 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1257 esac
1258 for ac_var in $ac_precious_vars; do
1259 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1260 eval ac_env_${ac_var}_value=\$${ac_var}
1261 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1262 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1263 done
1266 # Report the --help message.
1268 if test "$ac_init_help" = "long"; then
1269 # Omit some internal or obsolete options to make the list less imposing.
1270 # This message is too long to be a string in the A/UX 3.1 sh.
1271 cat <<_ACEOF
1272 \`configure' configures wmnotify 1.0.0 to adapt to many kinds of systems.
1274 Usage: $0 [OPTION]... [VAR=VALUE]...
1276 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1277 VAR=VALUE. See below for descriptions of some of the useful variables.
1279 Defaults for the options are specified in brackets.
1281 Configuration:
1282 -h, --help display this help and exit
1283 --help=short display options specific to this package
1284 --help=recursive display the short help of all the included packages
1285 -V, --version display version information and exit
1286 -q, --quiet, --silent do not print \`checking ...' messages
1287 --cache-file=FILE cache test results in FILE [disabled]
1288 -C, --config-cache alias for \`--cache-file=config.cache'
1289 -n, --no-create do not create output files
1290 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1292 Installation directories:
1293 --prefix=PREFIX install architecture-independent files in PREFIX
1294 [$ac_default_prefix]
1295 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1296 [PREFIX]
1298 By default, \`make install' will install all the files in
1299 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1300 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1301 for instance \`--prefix=\$HOME'.
1303 For better control, use the options below.
1305 Fine tuning of the installation directories:
1306 --bindir=DIR user executables [EPREFIX/bin]
1307 --sbindir=DIR system admin executables [EPREFIX/sbin]
1308 --libexecdir=DIR program executables [EPREFIX/libexec]
1309 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1310 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1311 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1312 --libdir=DIR object code libraries [EPREFIX/lib]
1313 --includedir=DIR C header files [PREFIX/include]
1314 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1315 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1316 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1317 --infodir=DIR info documentation [DATAROOTDIR/info]
1318 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1319 --mandir=DIR man documentation [DATAROOTDIR/man]
1320 --docdir=DIR documentation root [DATAROOTDIR/doc/wmnotify]
1321 --htmldir=DIR html documentation [DOCDIR]
1322 --dvidir=DIR dvi documentation [DOCDIR]
1323 --pdfdir=DIR pdf documentation [DOCDIR]
1324 --psdir=DIR ps documentation [DOCDIR]
1325 _ACEOF
1327 cat <<\_ACEOF
1329 Program names:
1330 --program-prefix=PREFIX prepend PREFIX to installed program names
1331 --program-suffix=SUFFIX append SUFFIX to installed program names
1332 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1334 X features:
1335 --x-includes=DIR X include files are in DIR
1336 --x-libraries=DIR X library files are in DIR
1338 System types:
1339 --build=BUILD configure for building on BUILD [guessed]
1340 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1341 _ACEOF
1344 if test -n "$ac_init_help"; then
1345 case $ac_init_help in
1346 short | recursive ) echo "Configuration of wmnotify 1.0.0:";;
1347 esac
1348 cat <<\_ACEOF
1350 Optional Features:
1351 --disable-option-checking ignore unrecognized --enable/--with options
1352 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1353 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1354 --enable-silent-rules less verbose build output (undo: `make V=1')
1355 --disable-silent-rules verbose build output (undo: `make V=0')
1356 --disable-dependency-tracking speeds up one-time build
1357 --enable-dependency-tracking do not reject slow dependency extractors
1358 --enable-libsndfile Enable libsndfile support for audible notification (default=yes)
1359 --enable-ssl Enable SSL support using OpenSSL (default=yes)
1361 Optional Packages:
1362 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1363 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1364 --with-x use the X Window System
1366 Some influential environment variables:
1367 CC C compiler command
1368 CFLAGS C compiler flags
1369 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1370 nonstandard directory <lib dir>
1371 LIBS libraries to pass to the linker, e.g. -l<library>
1372 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1373 you have headers in a nonstandard directory <include dir>
1374 CPP C preprocessor
1375 XMKMF Path to xmkmf, Makefile generator for X Window System
1376 PKG_CONFIG path to pkg-config utility
1377 PKG_CONFIG_PATH
1378 directories to add to pkg-config's search path
1379 PKG_CONFIG_LIBDIR
1380 path overriding pkg-config's built-in search path
1381 SNDFILE_CFLAGS
1382 C compiler flags for SNDFILE, overriding pkg-config
1383 SNDFILE_LIBS
1384 linker flags for SNDFILE, overriding pkg-config
1385 OPENSSL_CFLAGS
1386 C compiler flags for OPENSSL, overriding pkg-config
1387 OPENSSL_LIBS
1388 linker flags for OPENSSL, overriding pkg-config
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1393 Report bugs to the package provider.
1394 _ACEOF
1395 ac_status=$?
1398 if test "$ac_init_help" = "recursive"; then
1399 # If there are subdirs, report their specific --help.
1400 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1401 test -d "$ac_dir" ||
1402 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1403 continue
1404 ac_builddir=.
1406 case "$ac_dir" in
1407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1410 # A ".." for each directory in $ac_dir_suffix.
1411 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1412 case $ac_top_builddir_sub in
1413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415 esac ;;
1416 esac
1417 ac_abs_top_builddir=$ac_pwd
1418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1419 # for backward compatibility:
1420 ac_top_builddir=$ac_top_build_prefix
1422 case $srcdir in
1423 .) # We are building in place.
1424 ac_srcdir=.
1425 ac_top_srcdir=$ac_top_builddir_sub
1426 ac_abs_top_srcdir=$ac_pwd ;;
1427 [\\/]* | ?:[\\/]* ) # Absolute name.
1428 ac_srcdir=$srcdir$ac_dir_suffix;
1429 ac_top_srcdir=$srcdir
1430 ac_abs_top_srcdir=$srcdir ;;
1431 *) # Relative name.
1432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1433 ac_top_srcdir=$ac_top_build_prefix$srcdir
1434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1435 esac
1436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1438 cd "$ac_dir" || { ac_status=$?; continue; }
1439 # Check for guested configure.
1440 if test -f "$ac_srcdir/configure.gnu"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1443 elif test -f "$ac_srcdir/configure"; then
1444 echo &&
1445 $SHELL "$ac_srcdir/configure" --help=recursive
1446 else
1447 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1448 fi || ac_status=$?
1449 cd "$ac_pwd" || { ac_status=$?; break; }
1450 done
1453 test -n "$ac_init_help" && exit $ac_status
1454 if $ac_init_version; then
1455 cat <<\_ACEOF
1456 wmnotify configure 1.0.0
1457 generated by GNU Autoconf 2.67
1459 Copyright (C) 2010 Free Software Foundation, Inc.
1460 This configure script is free software; the Free Software Foundation
1461 gives unlimited permission to copy, distribute and modify it.
1462 _ACEOF
1463 exit
1466 ## ------------------------ ##
1467 ## Autoconf initialization. ##
1468 ## ------------------------ ##
1470 # ac_fn_c_try_compile LINENO
1471 # --------------------------
1472 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1473 ac_fn_c_try_compile ()
1475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1476 rm -f conftest.$ac_objext
1477 if { { ac_try="$ac_compile"
1478 case "(($ac_try" in
1479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1480 *) ac_try_echo=$ac_try;;
1481 esac
1482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1483 $as_echo "$ac_try_echo"; } >&5
1484 (eval "$ac_compile") 2>conftest.err
1485 ac_status=$?
1486 if test -s conftest.err; then
1487 grep -v '^ *+' conftest.err >conftest.er1
1488 cat conftest.er1 >&5
1489 mv -f conftest.er1 conftest.err
1491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1492 test $ac_status = 0; } && {
1493 test -z "$ac_c_werror_flag" ||
1494 test ! -s conftest.err
1495 } && test -s conftest.$ac_objext; then :
1496 ac_retval=0
1497 else
1498 $as_echo "$as_me: failed program was:" >&5
1499 sed 's/^/| /' conftest.$ac_ext >&5
1501 ac_retval=1
1503 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1504 as_fn_set_status $ac_retval
1506 } # ac_fn_c_try_compile
1508 # ac_fn_c_try_cpp LINENO
1509 # ----------------------
1510 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_cpp ()
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 if { { ac_try="$ac_cpp conftest.$ac_ext"
1515 case "(($ac_try" in
1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517 *) ac_try_echo=$ac_try;;
1518 esac
1519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520 $as_echo "$ac_try_echo"; } >&5
1521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1522 ac_status=$?
1523 if test -s conftest.err; then
1524 grep -v '^ *+' conftest.err >conftest.er1
1525 cat conftest.er1 >&5
1526 mv -f conftest.er1 conftest.err
1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529 test $ac_status = 0; } > conftest.i && {
1530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1531 test ! -s conftest.err
1532 }; then :
1533 ac_retval=0
1534 else
1535 $as_echo "$as_me: failed program was:" >&5
1536 sed 's/^/| /' conftest.$ac_ext >&5
1538 ac_retval=1
1540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1541 as_fn_set_status $ac_retval
1543 } # ac_fn_c_try_cpp
1545 # ac_fn_c_try_run LINENO
1546 # ----------------------
1547 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1548 # that executables *can* be run.
1549 ac_fn_c_try_run ()
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 if { { ac_try="$ac_link"
1553 case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_link") 2>&5
1560 ac_status=$?
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1563 { { case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_try") 2>&5
1570 ac_status=$?
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; }; }; then :
1573 ac_retval=0
1574 else
1575 $as_echo "$as_me: program exited with status $ac_status" >&5
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1579 ac_retval=$ac_status
1581 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1583 as_fn_set_status $ac_retval
1585 } # ac_fn_c_try_run
1587 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1588 # -------------------------------------------------------
1589 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1590 # the include files in INCLUDES and setting the cache variable VAR
1591 # accordingly.
1592 ac_fn_c_check_header_mongrel ()
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 if eval "test \"\${$3+set}\"" = set; then :
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1597 $as_echo_n "checking for $2... " >&6; }
1598 if eval "test \"\${$3+set}\"" = set; then :
1599 $as_echo_n "(cached) " >&6
1601 eval ac_res=\$$3
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1603 $as_echo "$ac_res" >&6; }
1604 else
1605 # Is the header compilable?
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1607 $as_echo_n "checking $2 usability... " >&6; }
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1611 #include <$2>
1612 _ACEOF
1613 if ac_fn_c_try_compile "$LINENO"; then :
1614 ac_header_compiler=yes
1615 else
1616 ac_header_compiler=no
1618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1620 $as_echo "$ac_header_compiler" >&6; }
1622 # Is the header present?
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1624 $as_echo_n "checking $2 presence... " >&6; }
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 #include <$2>
1628 _ACEOF
1629 if ac_fn_c_try_cpp "$LINENO"; then :
1630 ac_header_preproc=yes
1631 else
1632 ac_header_preproc=no
1634 rm -f conftest.err conftest.i conftest.$ac_ext
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1636 $as_echo "$ac_header_preproc" >&6; }
1638 # So? What about this header?
1639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1640 yes:no: )
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1642 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1644 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1646 no:yes:* )
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1648 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1650 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1652 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1654 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1656 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1658 esac
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval "test \"\${$3+set}\"" = set; then :
1662 $as_echo_n "(cached) " >&6
1663 else
1664 eval "$3=\$ac_header_compiler"
1666 eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 } # ac_fn_c_check_header_mongrel
1674 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1675 # -------------------------------------------------------
1676 # Tests whether HEADER exists and can be compiled using the include files in
1677 # INCLUDES, setting the cache variable VAR accordingly.
1678 ac_fn_c_check_header_compile ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if eval "test \"\${$3+set}\"" = set; then :
1684 $as_echo_n "(cached) " >&6
1685 else
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692 eval "$3=yes"
1693 else
1694 eval "$3=no"
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698 eval ac_res=\$$3
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 } # ac_fn_c_check_header_compile
1705 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1706 # -------------------------------------------
1707 # Tests whether TYPE exists after having included INCLUDES, setting cache
1708 # variable VAR accordingly.
1709 ac_fn_c_check_type ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval "test \"\${$3+set}\"" = set; then :
1715 $as_echo_n "(cached) " >&6
1716 else
1717 eval "$3=no"
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1722 main ()
1724 if (sizeof ($2))
1725 return 0;
1727 return 0;
1729 _ACEOF
1730 if ac_fn_c_try_compile "$LINENO"; then :
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1735 main ()
1737 if (sizeof (($2)))
1738 return 0;
1740 return 0;
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"; then :
1745 else
1746 eval "$3=yes"
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 } # ac_fn_c_check_type
1759 # ac_fn_c_try_link LINENO
1760 # -----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_c_try_link ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext conftest$ac_exeext
1766 if { { ac_try="$ac_link"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest$ac_exeext && {
1785 test "$cross_compiling" = yes ||
1786 $as_test_x conftest$ac_exeext
1787 }; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1793 ac_retval=1
1795 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797 # interfere with the next link command; also delete a directory that is
1798 # left behind by Apple's compiler. We do this before executing the actions.
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801 as_fn_set_status $ac_retval
1803 } # ac_fn_c_try_link
1805 # ac_fn_c_check_func LINENO FUNC VAR
1806 # ----------------------------------
1807 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1808 ac_fn_c_check_func ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval "test \"\${$3+set}\"" = set; then :
1814 $as_echo_n "(cached) " >&6
1815 else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820 #define $2 innocuous_$2
1822 /* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1827 #ifdef __STDC__
1828 # include <limits.h>
1829 #else
1830 # include <assert.h>
1831 #endif
1833 #undef $2
1835 /* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1838 #ifdef __cplusplus
1839 extern "C"
1840 #endif
1841 char $2 ();
1842 /* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845 #if defined __stub_$2 || defined __stub___$2
1846 choke me
1847 #endif
1850 main ()
1852 return $2 ();
1854 return 0;
1856 _ACEOF
1857 if ac_fn_c_try_link "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1862 rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1865 eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 } # ac_fn_c_check_func
1871 cat >config.log <<_ACEOF
1872 This file contains any messages produced by compilers while
1873 running configure, to aid debugging if configure makes a mistake.
1875 It was created by wmnotify $as_me 1.0.0, which was
1876 generated by GNU Autoconf 2.67. Invocation command line was
1878 $ $0 $@
1880 _ACEOF
1881 exec 5>>config.log
1883 cat <<_ASUNAME
1884 ## --------- ##
1885 ## Platform. ##
1886 ## --------- ##
1888 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1894 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1897 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1898 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1899 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1901 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1902 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1903 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1905 _ASUNAME
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 $as_echo "PATH: $as_dir"
1913 done
1914 IFS=$as_save_IFS
1916 } >&5
1918 cat >&5 <<_ACEOF
1921 ## ----------- ##
1922 ## Core tests. ##
1923 ## ----------- ##
1925 _ACEOF
1928 # Keep a trace of the command line.
1929 # Strip out --no-create and --no-recursion so they do not pile up.
1930 # Strip out --silent because we don't want to record it for future runs.
1931 # Also quote any args containing shell meta-characters.
1932 # Make two passes to allow for proper duplicate-argument suppression.
1933 ac_configure_args=
1934 ac_configure_args0=
1935 ac_configure_args1=
1936 ac_must_keep_next=false
1937 for ac_pass in 1 2
1939 for ac_arg
1941 case $ac_arg in
1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944 | -silent | --silent | --silen | --sile | --sil)
1945 continue ;;
1946 *\'*)
1947 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1948 esac
1949 case $ac_pass in
1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1952 as_fn_append ac_configure_args1 " '$ac_arg'"
1953 if test $ac_must_keep_next = true; then
1954 ac_must_keep_next=false # Got value, back to normal.
1955 else
1956 case $ac_arg in
1957 *=* | --config-cache | -C | -disable-* | --disable-* \
1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960 | -with-* | --with-* | -without-* | --without-* | --x)
1961 case "$ac_configure_args0 " in
1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1963 esac
1965 -* ) ac_must_keep_next=true ;;
1966 esac
1968 as_fn_append ac_configure_args " '$ac_arg'"
1970 esac
1971 done
1972 done
1973 { ac_configure_args0=; unset ac_configure_args0;}
1974 { ac_configure_args1=; unset ac_configure_args1;}
1976 # When interrupted or exit'd, cleanup temporary files, and complete
1977 # config.log. We remove comments because anyway the quotes in there
1978 # would cause problems or look ugly.
1979 # WARNING: Use '\'' to represent an apostrophe within the trap.
1980 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981 trap 'exit_status=$?
1982 # Save into config.log some information that might help in debugging.
1984 echo
1986 $as_echo "## ---------------- ##
1987 ## Cache variables. ##
1988 ## ---------------- ##"
1989 echo
1990 # The following way of writing the cache mishandles newlines in values,
1992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1993 eval ac_val=\$$ac_var
1994 case $ac_val in #(
1995 *${as_nl}*)
1996 case $ac_var in #(
1997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1999 esac
2000 case $ac_var in #(
2001 _ | IFS | as_nl) ;; #(
2002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2003 *) { eval $ac_var=; unset $ac_var;} ;;
2004 esac ;;
2005 esac
2006 done
2007 (set) 2>&1 |
2008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009 *${as_nl}ac_space=\ *)
2010 sed -n \
2011 "s/'\''/'\''\\\\'\'''\''/g;
2012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2013 ;; #(
2015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2017 esac |
2018 sort
2020 echo
2022 $as_echo "## ----------------- ##
2023 ## Output variables. ##
2024 ## ----------------- ##"
2025 echo
2026 for ac_var in $ac_subst_vars
2028 eval ac_val=\$$ac_var
2029 case $ac_val in
2030 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 esac
2032 $as_echo "$ac_var='\''$ac_val'\''"
2033 done | sort
2034 echo
2036 if test -n "$ac_subst_files"; then
2037 $as_echo "## ------------------- ##
2038 ## File substitutions. ##
2039 ## ------------------- ##"
2040 echo
2041 for ac_var in $ac_subst_files
2043 eval ac_val=\$$ac_var
2044 case $ac_val in
2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 esac
2047 $as_echo "$ac_var='\''$ac_val'\''"
2048 done | sort
2049 echo
2052 if test -s confdefs.h; then
2053 $as_echo "## ----------- ##
2054 ## confdefs.h. ##
2055 ## ----------- ##"
2056 echo
2057 cat confdefs.h
2058 echo
2060 test "$ac_signal" != 0 &&
2061 $as_echo "$as_me: caught signal $ac_signal"
2062 $as_echo "$as_me: exit $exit_status"
2063 } >&5
2064 rm -f core *.core core.conftest.* &&
2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066 exit $exit_status
2068 for ac_signal in 1 2 13 15; do
2069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070 done
2071 ac_signal=0
2073 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2074 rm -f -r conftest* confdefs.h
2076 $as_echo "/* confdefs.h */" > confdefs.h
2078 # Predefined preprocessor variables.
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_NAME "$PACKAGE_NAME"
2082 _ACEOF
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2086 _ACEOF
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2090 _ACEOF
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_STRING "$PACKAGE_STRING"
2094 _ACEOF
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2098 _ACEOF
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_URL "$PACKAGE_URL"
2102 _ACEOF
2105 # Let the site file select an alternate cache file if it wants to.
2106 # Prefer an explicitly selected file to automatically selected ones.
2107 ac_site_file1=NONE
2108 ac_site_file2=NONE
2109 if test -n "$CONFIG_SITE"; then
2110 # We do not want a PATH search for config.site.
2111 case $CONFIG_SITE in #((
2112 -*) ac_site_file1=./$CONFIG_SITE;;
2113 */*) ac_site_file1=$CONFIG_SITE;;
2114 *) ac_site_file1=./$CONFIG_SITE;;
2115 esac
2116 elif test "x$prefix" != xNONE; then
2117 ac_site_file1=$prefix/share/config.site
2118 ac_site_file2=$prefix/etc/config.site
2119 else
2120 ac_site_file1=$ac_default_prefix/share/config.site
2121 ac_site_file2=$ac_default_prefix/etc/config.site
2123 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2125 test "x$ac_site_file" = xNONE && continue
2126 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2128 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2129 sed 's/^/| /' "$ac_site_file" >&5
2130 . "$ac_site_file" \
2131 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133 as_fn_error $? "failed to load site script $ac_site_file
2134 See \`config.log' for more details" "$LINENO" 5 ; }
2136 done
2138 if test -r "$cache_file"; then
2139 # Some versions of bash will fail to source /dev/null (special files
2140 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2141 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2143 $as_echo "$as_me: loading cache $cache_file" >&6;}
2144 case $cache_file in
2145 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2146 *) . "./$cache_file";;
2147 esac
2149 else
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2151 $as_echo "$as_me: creating cache $cache_file" >&6;}
2152 >$cache_file
2155 # Check that the precious variables saved in the cache have kept the same
2156 # value.
2157 ac_cache_corrupted=false
2158 for ac_var in $ac_precious_vars; do
2159 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2160 eval ac_new_set=\$ac_env_${ac_var}_set
2161 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2162 eval ac_new_val=\$ac_env_${ac_var}_value
2163 case $ac_old_set,$ac_new_set in
2164 set,)
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2166 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2167 ac_cache_corrupted=: ;;
2168 ,set)
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2170 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2171 ac_cache_corrupted=: ;;
2172 ,);;
2174 if test "x$ac_old_val" != "x$ac_new_val"; then
2175 # differences in whitespace do not lead to failure.
2176 ac_old_val_w=`echo x $ac_old_val`
2177 ac_new_val_w=`echo x $ac_new_val`
2178 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2180 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2181 ac_cache_corrupted=:
2182 else
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2184 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2185 eval $ac_var=\$ac_old_val
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2188 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2190 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2191 fi;;
2192 esac
2193 # Pass precious variables to config.status.
2194 if test "$ac_new_set" = set; then
2195 case $ac_new_val in
2196 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2197 *) ac_arg=$ac_var=$ac_new_val ;;
2198 esac
2199 case " $ac_configure_args " in
2200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2201 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2202 esac
2204 done
2205 if $ac_cache_corrupted; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2209 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2210 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2212 ## -------------------- ##
2213 ## Main body of script. ##
2214 ## -------------------- ##
2216 ac_ext=c
2217 ac_cpp='$CPP $CPPFLAGS'
2218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223 ac_aux_dir=
2224 for ac_dir in config "$srcdir"/config; do
2225 if test -f "$ac_dir/install-sh"; then
2226 ac_aux_dir=$ac_dir
2227 ac_install_sh="$ac_aux_dir/install-sh -c"
2228 break
2229 elif test -f "$ac_dir/install.sh"; then
2230 ac_aux_dir=$ac_dir
2231 ac_install_sh="$ac_aux_dir/install.sh -c"
2232 break
2233 elif test -f "$ac_dir/shtool"; then
2234 ac_aux_dir=$ac_dir
2235 ac_install_sh="$ac_aux_dir/shtool install -c"
2236 break
2238 done
2239 if test -z "$ac_aux_dir"; then
2240 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2243 # These three variables are undocumented and unsupported,
2244 # and are intended to be withdrawn in a future Autoconf release.
2245 # They can cause serious problems if a builder's source tree is in a directory
2246 # whose full name contains unusual characters.
2247 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2248 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2249 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2253 ac_config_headers="$ac_config_headers config.h:config-h.in"
2255 am__api_version='1.11'
2257 # Find a good install program. We prefer a C program (faster),
2258 # so one script is as good as another. But avoid the broken or
2259 # incompatible versions:
2260 # SysV /etc/install, /usr/sbin/install
2261 # SunOS /usr/etc/install
2262 # IRIX /sbin/install
2263 # AIX /bin/install
2264 # AmigaOS /C/install, which installs bootblocks on floppy discs
2265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2268 # OS/2's system install, which has a completely different semantic
2269 # ./install, which can be erroneously created by make from ./install.sh.
2270 # Reject install programs that cannot install multiple files.
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2272 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2273 if test -z "$INSTALL"; then
2274 if test "${ac_cv_path_install+set}" = set; then :
2275 $as_echo_n "(cached) " >&6
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 # Account for people who put trailing slashes in PATH elements.
2283 case $as_dir/ in #((
2284 ./ | .// | /[cC]/* | \
2285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2286 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2287 /usr/ucb/* ) ;;
2289 # OSF1 and SCO ODT 3.0 have their own names for install.
2290 # Don't use installbsd from OSF since it installs stuff as root
2291 # by default.
2292 for ac_prog in ginstall scoinst install; do
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2295 if test $ac_prog = install &&
2296 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297 # AIX install. It has an incompatible calling convention.
2299 elif test $ac_prog = install &&
2300 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2301 # program-specific install script used by HP pwplus--don't use.
2303 else
2304 rm -rf conftest.one conftest.two conftest.dir
2305 echo one > conftest.one
2306 echo two > conftest.two
2307 mkdir conftest.dir
2308 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2309 test -s conftest.one && test -s conftest.two &&
2310 test -s conftest.dir/conftest.one &&
2311 test -s conftest.dir/conftest.two
2312 then
2313 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314 break 3
2318 done
2319 done
2321 esac
2323 done
2324 IFS=$as_save_IFS
2326 rm -rf conftest.one conftest.two conftest.dir
2329 if test "${ac_cv_path_install+set}" = set; then
2330 INSTALL=$ac_cv_path_install
2331 else
2332 # As a last resort, use the slow shell script. Don't cache a
2333 # value for INSTALL within a source directory, because that will
2334 # break other packages using the cache if that directory is
2335 # removed, or if the value is a relative name.
2336 INSTALL=$ac_install_sh
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2340 $as_echo "$INSTALL" >&6; }
2342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2343 # It thinks the first close brace ends the variable substitution.
2344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2346 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2348 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2351 $as_echo_n "checking whether build environment is sane... " >&6; }
2352 # Just in case
2353 sleep 1
2354 echo timestamp > conftest.file
2355 # Reject unsafe characters in $srcdir or the absolute working directory
2356 # name. Accept space and tab only in the latter.
2357 am_lf='
2359 case `pwd` in
2360 *[\\\"\#\$\&\'\`$am_lf]*)
2361 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2362 esac
2363 case $srcdir in
2364 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2365 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2366 esac
2368 # Do `set' in a subshell so we don't clobber the current shell's
2369 # arguments. Must try -L first in case configure is actually a
2370 # symlink; some systems play weird games with the mod time of symlinks
2371 # (eg FreeBSD returns the mod time of the symlink's containing
2372 # directory).
2373 if (
2374 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2375 if test "$*" = "X"; then
2376 # -L didn't work.
2377 set X `ls -t "$srcdir/configure" conftest.file`
2379 rm -f conftest.file
2380 if test "$*" != "X $srcdir/configure conftest.file" \
2381 && test "$*" != "X conftest.file $srcdir/configure"; then
2383 # If neither matched, then we have a broken ls. This can happen
2384 # if, for instance, CONFIG_SHELL is bash and it inherits a
2385 # broken ls alias from the environment. This has actually
2386 # happened. Such a system could not be considered "sane".
2387 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2388 alias in your environment" "$LINENO" 5
2391 test "$2" = conftest.file
2393 then
2394 # Ok.
2396 else
2397 as_fn_error $? "newly created file is older than distributed files!
2398 Check your system clock" "$LINENO" 5
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2401 $as_echo "yes" >&6; }
2402 test "$program_prefix" != NONE &&
2403 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2404 # Use a double $ so make ignores it.
2405 test "$program_suffix" != NONE &&
2406 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2407 # Double any \ or $.
2408 # By default was `s,x,x', remove it if useless.
2409 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2410 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2412 # expand $ac_aux_dir to an absolute path
2413 am_aux_dir=`cd $ac_aux_dir && pwd`
2415 if test x"${MISSING+set}" != xset; then
2416 case $am_aux_dir in
2417 *\ * | *\ *)
2418 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2420 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2421 esac
2423 # Use eval to expand $SHELL
2424 if eval "$MISSING --run true"; then
2425 am_missing_run="$MISSING --run "
2426 else
2427 am_missing_run=
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2429 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2432 if test x"${install_sh}" != xset; then
2433 case $am_aux_dir in
2434 *\ * | *\ *)
2435 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2437 install_sh="\${SHELL} $am_aux_dir/install-sh"
2438 esac
2441 # Installed binaries are usually stripped using `strip' when the user
2442 # run `make install-strip'. However `strip' might not be the right
2443 # tool to use in cross-compilation environments, therefore Automake
2444 # will honor the `STRIP' environment variable to overrule this program.
2445 if test "$cross_compiling" != no; then
2446 if test -n "$ac_tool_prefix"; then
2447 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2448 set dummy ${ac_tool_prefix}strip; ac_word=$2
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2450 $as_echo_n "checking for $ac_word... " >&6; }
2451 if test "${ac_cv_prog_STRIP+set}" = set; then :
2452 $as_echo_n "(cached) " >&6
2453 else
2454 if test -n "$STRIP"; then
2455 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2456 else
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 break 2
2468 done
2469 done
2470 IFS=$as_save_IFS
2474 STRIP=$ac_cv_prog_STRIP
2475 if test -n "$STRIP"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2477 $as_echo "$STRIP" >&6; }
2478 else
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2480 $as_echo "no" >&6; }
2485 if test -z "$ac_cv_prog_STRIP"; then
2486 ac_ct_STRIP=$STRIP
2487 # Extract the first word of "strip", so it can be a program name with args.
2488 set dummy strip; ac_word=$2
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2490 $as_echo_n "checking for $ac_word... " >&6; }
2491 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2492 $as_echo_n "(cached) " >&6
2493 else
2494 if test -n "$ac_ct_STRIP"; then
2495 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2496 else
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 for as_dir in $PATH
2500 IFS=$as_save_IFS
2501 test -z "$as_dir" && as_dir=.
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2504 ac_cv_prog_ac_ct_STRIP="strip"
2505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 break 2
2508 done
2509 done
2510 IFS=$as_save_IFS
2514 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2515 if test -n "$ac_ct_STRIP"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2517 $as_echo "$ac_ct_STRIP" >&6; }
2518 else
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520 $as_echo "no" >&6; }
2523 if test "x$ac_ct_STRIP" = x; then
2524 STRIP=":"
2525 else
2526 case $cross_compiling:$ac_tool_warned in
2527 yes:)
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2530 ac_tool_warned=yes ;;
2531 esac
2532 STRIP=$ac_ct_STRIP
2534 else
2535 STRIP="$ac_cv_prog_STRIP"
2539 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2542 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2543 if test -z "$MKDIR_P"; then
2544 if test "${ac_cv_path_mkdir+set}" = set; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_prog in mkdir gmkdir; do
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2555 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2556 'mkdir (GNU coreutils) '* | \
2557 'mkdir (coreutils) '* | \
2558 'mkdir (fileutils) '4.1*)
2559 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2560 break 3;;
2561 esac
2562 done
2563 done
2564 done
2565 IFS=$as_save_IFS
2569 test -d ./--version && rmdir ./--version
2570 if test "${ac_cv_path_mkdir+set}" = set; then
2571 MKDIR_P="$ac_cv_path_mkdir -p"
2572 else
2573 # As a last resort, use the slow shell script. Don't cache a
2574 # value for MKDIR_P within a source directory, because that will
2575 # break other packages using the cache if that directory is
2576 # removed, or if the value is a relative name.
2577 MKDIR_P="$ac_install_sh -d"
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2581 $as_echo "$MKDIR_P" >&6; }
2583 mkdir_p="$MKDIR_P"
2584 case $mkdir_p in
2585 [\\/$]* | ?:[\\/]*) ;;
2586 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2587 esac
2589 for ac_prog in gawk mawk nawk awk
2591 # Extract the first word of "$ac_prog", so it can be a program name with args.
2592 set dummy $ac_prog; ac_word=$2
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if test "${ac_cv_prog_AWK+set}" = set; then :
2596 $as_echo_n "(cached) " >&6
2597 else
2598 if test -n "$AWK"; then
2599 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_AWK="$ac_prog"
2609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 break 2
2612 done
2613 done
2614 IFS=$as_save_IFS
2618 AWK=$ac_cv_prog_AWK
2619 if test -n "$AWK"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2621 $as_echo "$AWK" >&6; }
2622 else
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 $as_echo "no" >&6; }
2628 test -n "$AWK" && break
2629 done
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2632 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2633 set x ${MAKE-make}
2634 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2635 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 cat >conftest.make <<\_ACEOF
2639 SHELL = /bin/sh
2640 all:
2641 @echo '@@@%%%=$(MAKE)=@@@%%%'
2642 _ACEOF
2643 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2644 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2645 *@@@%%%=?*=@@@%%%*)
2646 eval ac_cv_prog_make_${ac_make}_set=yes;;
2648 eval ac_cv_prog_make_${ac_make}_set=no;;
2649 esac
2650 rm -f conftest.make
2652 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2654 $as_echo "yes" >&6; }
2655 SET_MAKE=
2656 else
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2659 SET_MAKE="MAKE=${MAKE-make}"
2662 rm -rf .tst 2>/dev/null
2663 mkdir .tst 2>/dev/null
2664 if test -d .tst; then
2665 am__leading_dot=.
2666 else
2667 am__leading_dot=_
2669 rmdir .tst 2>/dev/null
2671 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2672 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2673 # is not polluted with repeated "-I."
2674 am__isrc=' -I$(srcdir)'
2675 # test to see if srcdir already configured
2676 if test -f $srcdir/config.status; then
2677 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2681 # test whether we have cygpath
2682 if test -z "$CYGPATH_W"; then
2683 if (cygpath --version) >/dev/null 2>/dev/null; then
2684 CYGPATH_W='cygpath -w'
2685 else
2686 CYGPATH_W=echo
2691 # Define the identity of the package.
2692 PACKAGE='wmnotify'
2693 VERSION='1.0.0'
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE "$PACKAGE"
2698 _ACEOF
2701 cat >>confdefs.h <<_ACEOF
2702 #define VERSION "$VERSION"
2703 _ACEOF
2705 # Some tools Automake needs.
2707 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2710 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2713 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2716 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2719 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2721 # We need awk for the "check" target. The system "awk" is bad on
2722 # some platforms.
2723 # Always define AMTAR for backward compatibility.
2725 AMTAR=${AMTAR-"${am_missing_run}tar"}
2727 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2733 # Check whether --enable-silent-rules was given.
2734 if test "${enable_silent_rules+set}" = set; then :
2735 enableval=$enable_silent_rules;
2738 case $enable_silent_rules in
2739 yes) AM_DEFAULT_VERBOSITY=0;;
2740 no) AM_DEFAULT_VERBOSITY=1;;
2741 *) AM_DEFAULT_VERBOSITY=0;;
2742 esac
2743 AM_BACKSLASH='\'
2746 DEPDIR="${am__leading_dot}deps"
2748 ac_config_commands="$ac_config_commands depfiles"
2751 am_make=${MAKE-make}
2752 cat > confinc << 'END'
2753 am__doit:
2754 @echo this is the am__doit target
2755 .PHONY: am__doit
2757 # If we don't find an include directive, just comment out the code.
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2759 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2760 am__include="#"
2761 am__quote=
2762 _am_result=none
2763 # First try GNU make style include.
2764 echo "include confinc" > confmf
2765 # Ignore all kinds of additional output from `make'.
2766 case `$am_make -s -f confmf 2> /dev/null` in #(
2767 *the\ am__doit\ target*)
2768 am__include=include
2769 am__quote=
2770 _am_result=GNU
2772 esac
2773 # Now try BSD make style include.
2774 if test "$am__include" = "#"; then
2775 echo '.include "confinc"' > confmf
2776 case `$am_make -s -f confmf 2> /dev/null` in #(
2777 *the\ am__doit\ target*)
2778 am__include=.include
2779 am__quote="\""
2780 _am_result=BSD
2782 esac
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2787 $as_echo "$_am_result" >&6; }
2788 rm -f confinc confmf
2790 # Check whether --enable-dependency-tracking was given.
2791 if test "${enable_dependency_tracking+set}" = set; then :
2792 enableval=$enable_dependency_tracking;
2795 if test "x$enable_dependency_tracking" != xno; then
2796 am_depcomp="$ac_aux_dir/depcomp"
2797 AMDEPBACKSLASH='\'
2799 if test "x$enable_dependency_tracking" != xno; then
2800 AMDEP_TRUE=
2801 AMDEP_FALSE='#'
2802 else
2803 AMDEP_TRUE='#'
2804 AMDEP_FALSE=
2808 ac_ext=c
2809 ac_cpp='$CPP $CPPFLAGS'
2810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2813 if test -n "$ac_tool_prefix"; then
2814 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2815 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if test "${ac_cv_prog_CC+set}" = set; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if test -n "$CC"; then
2822 ac_cv_prog_CC="$CC" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2835 done
2836 done
2837 IFS=$as_save_IFS
2841 CC=$ac_cv_prog_CC
2842 if test -n "$CC"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2844 $as_echo "$CC" >&6; }
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2852 if test -z "$ac_cv_prog_CC"; then
2853 ac_ct_CC=$CC
2854 # Extract the first word of "gcc", so it can be a program name with args.
2855 set dummy gcc; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 if test -n "$ac_ct_CC"; then
2862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 ac_cv_prog_ac_ct_CC="gcc"
2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2875 done
2876 done
2877 IFS=$as_save_IFS
2881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2882 if test -n "$ac_ct_CC"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2884 $as_echo "$ac_ct_CC" >&6; }
2885 else
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2890 if test "x$ac_ct_CC" = x; then
2891 CC=""
2892 else
2893 case $cross_compiling:$ac_tool_warned in
2894 yes:)
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2897 ac_tool_warned=yes ;;
2898 esac
2899 CC=$ac_ct_CC
2901 else
2902 CC="$ac_cv_prog_CC"
2905 if test -z "$CC"; then
2906 if test -n "$ac_tool_prefix"; then
2907 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2908 set dummy ${ac_tool_prefix}cc; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if test "${ac_cv_prog_CC+set}" = set; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_CC="${ac_tool_prefix}cc"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2928 done
2929 done
2930 IFS=$as_save_IFS
2934 CC=$ac_cv_prog_CC
2935 if test -n "$CC"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2937 $as_echo "$CC" >&6; }
2938 else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2946 if test -z "$CC"; then
2947 # Extract the first word of "cc", so it can be a program name with args.
2948 set dummy cc; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if test "${ac_cv_prog_CC+set}" = set; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 if test -n "$CC"; then
2955 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 else
2957 ac_prog_rejected=no
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2966 ac_prog_rejected=yes
2967 continue
2969 ac_cv_prog_CC="cc"
2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2973 done
2974 done
2975 IFS=$as_save_IFS
2977 if test $ac_prog_rejected = yes; then
2978 # We found a bogon in the path, so make sure we never use it.
2979 set dummy $ac_cv_prog_CC
2980 shift
2981 if test $# != 0; then
2982 # We chose a different compiler from the bogus one.
2983 # However, it has the same basename, so the bogon will be chosen
2984 # first if we set CC to just the basename; use the full file name.
2985 shift
2986 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2991 CC=$ac_cv_prog_CC
2992 if test -n "$CC"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2994 $as_echo "$CC" >&6; }
2995 else
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
3002 if test -z "$CC"; then
3003 if test -n "$ac_tool_prefix"; then
3004 for ac_prog in cl.exe
3006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_CC+set}" = set; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test -n "$CC"; then
3014 ac_cv_prog_CC="$CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3027 done
3028 done
3029 IFS=$as_save_IFS
3033 CC=$ac_cv_prog_CC
3034 if test -n "$CC"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3036 $as_echo "$CC" >&6; }
3037 else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3043 test -n "$CC" && break
3044 done
3046 if test -z "$CC"; then
3047 ac_ct_CC=$CC
3048 for ac_prog in cl.exe
3050 # Extract the first word of "$ac_prog", so it can be a program name with args.
3051 set dummy $ac_prog; ac_word=$2
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3055 $as_echo_n "(cached) " >&6
3056 else
3057 if test -n "$ac_ct_CC"; then
3058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 ac_cv_prog_ac_ct_CC="$ac_prog"
3068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 break 2
3071 done
3072 done
3073 IFS=$as_save_IFS
3077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3078 if test -n "$ac_ct_CC"; then
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3080 $as_echo "$ac_ct_CC" >&6; }
3081 else
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3087 test -n "$ac_ct_CC" && break
3088 done
3090 if test "x$ac_ct_CC" = x; then
3091 CC=""
3092 else
3093 case $cross_compiling:$ac_tool_warned in
3094 yes:)
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3097 ac_tool_warned=yes ;;
3098 esac
3099 CC=$ac_ct_CC
3106 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 as_fn_error $? "no acceptable C compiler found in \$PATH
3109 See \`config.log' for more details" "$LINENO" 5 ; }
3111 # Provide some information about the compiler.
3112 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3113 set X $ac_compile
3114 ac_compiler=$2
3115 for ac_option in --version -v -V -qversion; do
3116 { { ac_try="$ac_compiler $ac_option >&5"
3117 case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120 esac
3121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122 $as_echo "$ac_try_echo"; } >&5
3123 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3124 ac_status=$?
3125 if test -s conftest.err; then
3126 sed '10a\
3127 ... rest of stderr output deleted ...
3128 10q' conftest.err >conftest.er1
3129 cat conftest.er1 >&5
3131 rm -f conftest.er1 conftest.err
3132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133 test $ac_status = 0; }
3134 done
3136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137 /* end confdefs.h. */
3140 main ()
3144 return 0;
3146 _ACEOF
3147 ac_clean_files_save=$ac_clean_files
3148 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3149 # Try to create an executable without -o first, disregard a.out.
3150 # It will help us diagnose broken compilers, and finding out an intuition
3151 # of exeext.
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3153 $as_echo_n "checking whether the C compiler works... " >&6; }
3154 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3156 # The possible output files:
3157 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3159 ac_rmfiles=
3160 for ac_file in $ac_files
3162 case $ac_file in
3163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3164 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3165 esac
3166 done
3167 rm -f $ac_rmfiles
3169 if { { ac_try="$ac_link_default"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176 (eval "$ac_link_default") 2>&5
3177 ac_status=$?
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179 test $ac_status = 0; }; then :
3180 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3181 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3182 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3183 # so that the user can short-circuit this test for compilers unknown to
3184 # Autoconf.
3185 for ac_file in $ac_files ''
3187 test -f "$ac_file" || continue
3188 case $ac_file in
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3191 [ab].out )
3192 # We found the default executable, but exeext='' is most
3193 # certainly right.
3194 break;;
3195 *.* )
3196 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3197 then :; else
3198 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200 # We set ac_cv_exeext here because the later test for it is not
3201 # safe: cross compilers may not add the suffix if given an `-o'
3202 # argument, so we may need to know it at that point already.
3203 # Even if this section looks crufty: it has the advantage of
3204 # actually working.
3205 break;;
3207 break;;
3208 esac
3209 done
3210 test "$ac_cv_exeext" = no && ac_cv_exeext=
3212 else
3213 ac_file=''
3215 if test -z "$ac_file"; then :
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 $as_echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
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 77 "C compiler cannot create executables
3224 See \`config.log' for more details" "$LINENO" 5 ; }
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227 $as_echo "yes" >&6; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3230 $as_echo_n "checking for C compiler default output file name... " >&6; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3232 $as_echo "$ac_file" >&6; }
3233 ac_exeext=$ac_cv_exeext
3235 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3236 ac_clean_files=$ac_clean_files_save
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3238 $as_echo_n "checking for suffix of executables... " >&6; }
3239 if { { ac_try="$ac_link"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_link") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }; then :
3250 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3251 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3252 # work properly (i.e., refer to `conftest.exe'), while it won't with
3253 # `rm'.
3254 for ac_file in conftest.exe conftest conftest.*; do
3255 test -f "$ac_file" || continue
3256 case $ac_file in
3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3258 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3259 break;;
3260 * ) break;;
3261 esac
3262 done
3263 else
3264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3267 See \`config.log' for more details" "$LINENO" 5 ; }
3269 rm -f conftest conftest$ac_cv_exeext
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3271 $as_echo "$ac_cv_exeext" >&6; }
3273 rm -f conftest.$ac_ext
3274 EXEEXT=$ac_cv_exeext
3275 ac_exeext=$EXEEXT
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3278 #include <stdio.h>
3280 main ()
3282 FILE *f = fopen ("conftest.out", "w");
3283 return ferror (f) || fclose (f) != 0;
3286 return 0;
3288 _ACEOF
3289 ac_clean_files="$ac_clean_files conftest.out"
3290 # Check that the compiler produces executables we can run. If not, either
3291 # the compiler is broken, or we cross compile.
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3293 $as_echo_n "checking whether we are cross compiling... " >&6; }
3294 if test "$cross_compiling" != yes; then
3295 { { ac_try="$ac_link"
3296 case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_link") 2>&5
3303 ac_status=$?
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }
3306 if { ac_try='./conftest$ac_cv_exeext'
3307 { { case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_try") 2>&5
3314 ac_status=$?
3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }; }; then
3317 cross_compiling=no
3318 else
3319 if test "$cross_compiling" = maybe; then
3320 cross_compiling=yes
3321 else
3322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 as_fn_error $? "cannot run C compiled programs.
3325 If you meant to cross compile, use \`--host'.
3326 See \`config.log' for more details" "$LINENO" 5 ; }
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3331 $as_echo "$cross_compiling" >&6; }
3333 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3334 ac_clean_files=$ac_clean_files_save
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3336 $as_echo_n "checking for suffix of object files... " >&6; }
3337 if test "${ac_cv_objext+set}" = set; then :
3338 $as_echo_n "(cached) " >&6
3339 else
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3344 main ()
3348 return 0;
3350 _ACEOF
3351 rm -f conftest.o conftest.obj
3352 if { { ac_try="$ac_compile"
3353 case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 $as_echo "$ac_try_echo"; } >&5
3359 (eval "$ac_compile") 2>&5
3360 ac_status=$?
3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362 test $ac_status = 0; }; then :
3363 for ac_file in conftest.o conftest.obj conftest.*; do
3364 test -f "$ac_file" || continue;
3365 case $ac_file in
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3367 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3368 break;;
3369 esac
3370 done
3371 else
3372 $as_echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377 as_fn_error $? "cannot compute suffix of object files: cannot compile
3378 See \`config.log' for more details" "$LINENO" 5 ; }
3380 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3383 $as_echo "$ac_cv_objext" >&6; }
3384 OBJEXT=$ac_cv_objext
3385 ac_objext=$OBJEXT
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3387 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3388 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3389 $as_echo_n "(cached) " >&6
3390 else
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3395 main ()
3397 #ifndef __GNUC__
3398 choke me
3399 #endif
3402 return 0;
3404 _ACEOF
3405 if ac_fn_c_try_compile "$LINENO"; then :
3406 ac_compiler_gnu=yes
3407 else
3408 ac_compiler_gnu=no
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3415 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3416 if test $ac_compiler_gnu = yes; then
3417 GCC=yes
3418 else
3419 GCC=
3421 ac_test_CFLAGS=${CFLAGS+set}
3422 ac_save_CFLAGS=$CFLAGS
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3424 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3425 if test "${ac_cv_prog_cc_g+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 ac_save_c_werror_flag=$ac_c_werror_flag
3429 ac_c_werror_flag=yes
3430 ac_cv_prog_cc_g=no
3431 CFLAGS="-g"
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3436 main ()
3440 return 0;
3442 _ACEOF
3443 if ac_fn_c_try_compile "$LINENO"; then :
3444 ac_cv_prog_cc_g=yes
3445 else
3446 CFLAGS=""
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3451 main ()
3455 return 0;
3457 _ACEOF
3458 if ac_fn_c_try_compile "$LINENO"; then :
3460 else
3461 ac_c_werror_flag=$ac_save_c_werror_flag
3462 CFLAGS="-g"
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3467 main ()
3471 return 0;
3473 _ACEOF
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475 ac_cv_prog_cc_g=yes
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 ac_c_werror_flag=$ac_save_c_werror_flag
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3485 $as_echo "$ac_cv_prog_cc_g" >&6; }
3486 if test "$ac_test_CFLAGS" = set; then
3487 CFLAGS=$ac_save_CFLAGS
3488 elif test $ac_cv_prog_cc_g = yes; then
3489 if test "$GCC" = yes; then
3490 CFLAGS="-g -O2"
3491 else
3492 CFLAGS="-g"
3494 else
3495 if test "$GCC" = yes; then
3496 CFLAGS="-O2"
3497 else
3498 CFLAGS=
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3502 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3503 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 ac_cv_prog_cc_c89=no
3507 ac_save_CC=$CC
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3510 #include <stdarg.h>
3511 #include <stdio.h>
3512 #include <sys/types.h>
3513 #include <sys/stat.h>
3514 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3515 struct buf { int x; };
3516 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3517 static char *e (p, i)
3518 char **p;
3519 int i;
3521 return p[i];
3523 static char *f (char * (*g) (char **, int), char **p, ...)
3525 char *s;
3526 va_list v;
3527 va_start (v,p);
3528 s = g (p, va_arg (v,int));
3529 va_end (v);
3530 return s;
3533 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3534 function prototypes and stuff, but not '\xHH' hex character constants.
3535 These don't provoke an error unfortunately, instead are silently treated
3536 as 'x'. The following induces an error, until -std is added to get
3537 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3538 array size at least. It's necessary to write '\x00'==0 to get something
3539 that's true only with -std. */
3540 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3542 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3543 inside strings and character constants. */
3544 #define FOO(x) 'x'
3545 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3547 int test (int i, double x);
3548 struct s1 {int (*f) (int a);};
3549 struct s2 {int (*f) (double a);};
3550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3551 int argc;
3552 char **argv;
3554 main ()
3556 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3558 return 0;
3560 _ACEOF
3561 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3562 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3564 CC="$ac_save_CC $ac_arg"
3565 if ac_fn_c_try_compile "$LINENO"; then :
3566 ac_cv_prog_cc_c89=$ac_arg
3568 rm -f core conftest.err conftest.$ac_objext
3569 test "x$ac_cv_prog_cc_c89" != "xno" && break
3570 done
3571 rm -f conftest.$ac_ext
3572 CC=$ac_save_CC
3575 # AC_CACHE_VAL
3576 case "x$ac_cv_prog_cc_c89" in
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3579 $as_echo "none needed" >&6; } ;;
3580 xno)
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3582 $as_echo "unsupported" >&6; } ;;
3584 CC="$CC $ac_cv_prog_cc_c89"
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3586 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3587 esac
3588 if test "x$ac_cv_prog_cc_c89" != xno; then :
3592 ac_ext=c
3593 ac_cpp='$CPP $CPPFLAGS'
3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598 depcc="$CC" am_compiler_list=
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3601 $as_echo_n "checking dependency style of $depcc... " >&6; }
3602 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3606 # We make a subdir and do the tests there. Otherwise we can end up
3607 # making bogus files that we don't know about and never remove. For
3608 # instance it was reported that on HP-UX the gcc test will end up
3609 # making a dummy file named `D' -- because `-MD' means `put the output
3610 # in D'.
3611 mkdir conftest.dir
3612 # Copy depcomp to subdir because otherwise we won't find it if we're
3613 # using a relative directory.
3614 cp "$am_depcomp" conftest.dir
3615 cd conftest.dir
3616 # We will build objects and dependencies in a subdirectory because
3617 # it helps to detect inapplicable dependency modes. For instance
3618 # both Tru64's cc and ICC support -MD to output dependencies as a
3619 # side effect of compilation, but ICC will put the dependencies in
3620 # the current directory while Tru64 will put them in the object
3621 # directory.
3622 mkdir sub
3624 am_cv_CC_dependencies_compiler_type=none
3625 if test "$am_compiler_list" = ""; then
3626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3628 am__universal=false
3629 case " $depcc " in #(
3630 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3631 esac
3633 for depmode in $am_compiler_list; do
3634 # Setup a source with many dependencies, because some compilers
3635 # like to wrap large dependency lists on column 80 (with \), and
3636 # we should not choose a depcomp mode which is confused by this.
3638 # We need to recreate these files for each test, as the compiler may
3639 # overwrite some of them when testing with obscure command lines.
3640 # This happens at least with the AIX C compiler.
3641 : > sub/conftest.c
3642 for i in 1 2 3 4 5 6; do
3643 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3644 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3645 # Solaris 8's {/usr,}/bin/sh.
3646 touch sub/conftst$i.h
3647 done
3648 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3650 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3651 # mode. It turns out that the SunPro C++ compiler does not properly
3652 # handle `-M -o', and we need to detect this. Also, some Intel
3653 # versions had trouble with output in subdirs
3654 am__obj=sub/conftest.${OBJEXT-o}
3655 am__minus_obj="-o $am__obj"
3656 case $depmode in
3657 gcc)
3658 # This depmode causes a compiler race in universal mode.
3659 test "$am__universal" = false || continue
3661 nosideeffect)
3662 # after this tag, mechanisms are not by side-effect, so they'll
3663 # only be used when explicitly requested
3664 if test "x$enable_dependency_tracking" = xyes; then
3665 continue
3666 else
3667 break
3670 msvisualcpp | msvcmsys)
3671 # This compiler won't grok `-c -o', but also, the minuso test has
3672 # not run yet. These depmodes are late enough in the game, and
3673 # so weak that their functioning should not be impacted.
3674 am__obj=conftest.${OBJEXT-o}
3675 am__minus_obj=
3677 none) break ;;
3678 esac
3679 if depmode=$depmode \
3680 source=sub/conftest.c object=$am__obj \
3681 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3682 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3683 >/dev/null 2>conftest.err &&
3684 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3685 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3686 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3687 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3688 # icc doesn't choke on unknown options, it will just issue warnings
3689 # or remarks (even with -Werror). So we grep stderr for any message
3690 # that says an option was ignored or not supported.
3691 # When given -MP, icc 7.0 and 7.1 complain thusly:
3692 # icc: Command line warning: ignoring option '-M'; no argument required
3693 # The diagnosis changed in icc 8.0:
3694 # icc: Command line remark: option '-MP' not supported
3695 if (grep 'ignoring option' conftest.err ||
3696 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3697 am_cv_CC_dependencies_compiler_type=$depmode
3698 break
3701 done
3703 cd ..
3704 rm -rf conftest.dir
3705 else
3706 am_cv_CC_dependencies_compiler_type=none
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3711 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3712 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3715 test "x$enable_dependency_tracking" != xno \
3716 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3717 am__fastdepCC_TRUE=
3718 am__fastdepCC_FALSE='#'
3719 else
3720 am__fastdepCC_TRUE='#'
3721 am__fastdepCC_FALSE=
3725 if test "x$CC" != xcc; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3727 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3728 else
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3730 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3732 set dummy $CC; ac_cc=`$as_echo "$2" |
3733 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3734 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3741 main ()
3745 return 0;
3747 _ACEOF
3748 # Make sure it works both with $CC and with simple cc.
3749 # We do the test twice because some compilers refuse to overwrite an
3750 # existing .o file with -o, though they will create one.
3751 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3752 rm -f conftest2.*
3753 if { { case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_try") 2>&5
3760 ac_status=$?
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; } &&
3763 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766 esac
3767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768 $as_echo "$ac_try_echo"; } >&5
3769 (eval "$ac_try") 2>&5
3770 ac_status=$?
3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772 test $ac_status = 0; };
3773 then
3774 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3775 if test "x$CC" != xcc; then
3776 # Test first that cc exists at all.
3777 if { ac_try='cc -c conftest.$ac_ext >&5'
3778 { { case "(($ac_try" in
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3781 esac
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784 (eval "$ac_try") 2>&5
3785 ac_status=$?
3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }; }; then
3788 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3789 rm -f conftest2.*
3790 if { { case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793 esac
3794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795 $as_echo "$ac_try_echo"; } >&5
3796 (eval "$ac_try") 2>&5
3797 ac_status=$?
3798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799 test $ac_status = 0; } &&
3800 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803 esac
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_try") 2>&5
3807 ac_status=$?
3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809 test $ac_status = 0; };
3810 then
3811 # cc works too.
3813 else
3814 # cc exists but doesn't like -o.
3815 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3819 else
3820 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3822 rm -f core conftest*
3825 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3827 $as_echo "yes" >&6; }
3828 else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3832 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3836 # FIXME: we rely on the cache variable name because
3837 # there is no other way.
3838 set dummy $CC
3839 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3840 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3841 if test "$am_t" != yes; then
3842 # Losing compiler, so override with the script.
3843 # FIXME: It is wrong to rewrite CC.
3844 # But if we don't then we get into trouble of one sort or another.
3845 # A longer-term fix would be to have automake use am__CC in this case,
3846 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3847 CC="$am_aux_dir/compile $CC"
3851 ac_ext=c
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 ac_ext=c
3860 ac_cpp='$CPP $CPPFLAGS'
3861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3865 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3866 # On Suns, sometimes $CPP names a directory.
3867 if test -n "$CPP" && test -d "$CPP"; then
3868 CPP=
3870 if test -z "$CPP"; then
3871 if test "${ac_cv_prog_CPP+set}" = set; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 # Double quotes because CPP needs to be expanded
3875 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3877 ac_preproc_ok=false
3878 for ac_c_preproc_warn_flag in '' yes
3880 # Use a header file that comes with gcc, so configuring glibc
3881 # with a fresh cross-compiler works.
3882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3883 # <limits.h> exists even on freestanding compilers.
3884 # On the NeXT, cc -E runs the code through the compiler's parser,
3885 # not just through cpp. "Syntax error" is here to catch this case.
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3888 #ifdef __STDC__
3889 # include <limits.h>
3890 #else
3891 # include <assert.h>
3892 #endif
3893 Syntax error
3894 _ACEOF
3895 if ac_fn_c_try_cpp "$LINENO"; then :
3897 else
3898 # Broken: fails on valid input.
3899 continue
3901 rm -f conftest.err conftest.i conftest.$ac_ext
3903 # OK, works on sane cases. Now check whether nonexistent headers
3904 # can be detected and how.
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907 #include <ac_nonexistent.h>
3908 _ACEOF
3909 if ac_fn_c_try_cpp "$LINENO"; then :
3910 # Broken: success on invalid input.
3911 continue
3912 else
3913 # Passes both tests.
3914 ac_preproc_ok=:
3915 break
3917 rm -f conftest.err conftest.i conftest.$ac_ext
3919 done
3920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3921 rm -f conftest.i conftest.err conftest.$ac_ext
3922 if $ac_preproc_ok; then :
3923 break
3926 done
3927 ac_cv_prog_CPP=$CPP
3930 CPP=$ac_cv_prog_CPP
3931 else
3932 ac_cv_prog_CPP=$CPP
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3935 $as_echo "$CPP" >&6; }
3936 ac_preproc_ok=false
3937 for ac_c_preproc_warn_flag in '' yes
3939 # Use a header file that comes with gcc, so configuring glibc
3940 # with a fresh cross-compiler works.
3941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942 # <limits.h> exists even on freestanding compilers.
3943 # On the NeXT, cc -E runs the code through the compiler's parser,
3944 # not just through cpp. "Syntax error" is here to catch this case.
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3947 #ifdef __STDC__
3948 # include <limits.h>
3949 #else
3950 # include <assert.h>
3951 #endif
3952 Syntax error
3953 _ACEOF
3954 if ac_fn_c_try_cpp "$LINENO"; then :
3956 else
3957 # Broken: fails on valid input.
3958 continue
3960 rm -f conftest.err conftest.i conftest.$ac_ext
3962 # OK, works on sane cases. Now check whether nonexistent headers
3963 # can be detected and how.
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 #include <ac_nonexistent.h>
3967 _ACEOF
3968 if ac_fn_c_try_cpp "$LINENO"; then :
3969 # Broken: success on invalid input.
3970 continue
3971 else
3972 # Passes both tests.
3973 ac_preproc_ok=:
3974 break
3976 rm -f conftest.err conftest.i conftest.$ac_ext
3978 done
3979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3980 rm -f conftest.i conftest.err conftest.$ac_ext
3981 if $ac_preproc_ok; then :
3983 else
3984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3986 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3987 See \`config.log' for more details" "$LINENO" 5 ; }
3990 ac_ext=c
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3998 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3999 if test "${ac_cv_path_GREP+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 if test -z "$GREP"; then
4003 ac_path_GREP_found=false
4004 # Loop through the user's path and test for each of PROGNAME-LIST
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_prog in grep ggrep; do
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4013 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4014 # Check for GNU ac_path_GREP and select it if it is found.
4015 # Check for GNU $ac_path_GREP
4016 case `"$ac_path_GREP" --version 2>&1` in
4017 *GNU*)
4018 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4020 ac_count=0
4021 $as_echo_n 0123456789 >"conftest.in"
4022 while :
4024 cat "conftest.in" "conftest.in" >"conftest.tmp"
4025 mv "conftest.tmp" "conftest.in"
4026 cp "conftest.in" "conftest.nl"
4027 $as_echo 'GREP' >> "conftest.nl"
4028 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4030 as_fn_arith $ac_count + 1 && ac_count=$as_val
4031 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4032 # Best one so far, save it but keep looking for a better one
4033 ac_cv_path_GREP="$ac_path_GREP"
4034 ac_path_GREP_max=$ac_count
4036 # 10*(2^10) chars as input seems more than enough
4037 test $ac_count -gt 10 && break
4038 done
4039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040 esac
4042 $ac_path_GREP_found && break 3
4043 done
4044 done
4045 done
4046 IFS=$as_save_IFS
4047 if test -z "$ac_cv_path_GREP"; then
4048 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4050 else
4051 ac_cv_path_GREP=$GREP
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4056 $as_echo "$ac_cv_path_GREP" >&6; }
4057 GREP="$ac_cv_path_GREP"
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4061 $as_echo_n "checking for egrep... " >&6; }
4062 if test "${ac_cv_path_EGREP+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
4064 else
4065 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4066 then ac_cv_path_EGREP="$GREP -E"
4067 else
4068 if test -z "$EGREP"; then
4069 ac_path_EGREP_found=false
4070 # Loop through the user's path and test for each of PROGNAME-LIST
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_prog in egrep; do
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4079 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4080 # Check for GNU ac_path_EGREP and select it if it is found.
4081 # Check for GNU $ac_path_EGREP
4082 case `"$ac_path_EGREP" --version 2>&1` in
4083 *GNU*)
4084 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4086 ac_count=0
4087 $as_echo_n 0123456789 >"conftest.in"
4088 while :
4090 cat "conftest.in" "conftest.in" >"conftest.tmp"
4091 mv "conftest.tmp" "conftest.in"
4092 cp "conftest.in" "conftest.nl"
4093 $as_echo 'EGREP' >> "conftest.nl"
4094 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096 as_fn_arith $ac_count + 1 && ac_count=$as_val
4097 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4098 # Best one so far, save it but keep looking for a better one
4099 ac_cv_path_EGREP="$ac_path_EGREP"
4100 ac_path_EGREP_max=$ac_count
4102 # 10*(2^10) chars as input seems more than enough
4103 test $ac_count -gt 10 && break
4104 done
4105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4106 esac
4108 $ac_path_EGREP_found && break 3
4109 done
4110 done
4111 done
4112 IFS=$as_save_IFS
4113 if test -z "$ac_cv_path_EGREP"; then
4114 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4116 else
4117 ac_cv_path_EGREP=$EGREP
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4123 $as_echo "$ac_cv_path_EGREP" >&6; }
4124 EGREP="$ac_cv_path_EGREP"
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4128 $as_echo_n "checking for ANSI C header files... " >&6; }
4129 if test "${ac_cv_header_stdc+set}" = set; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134 #include <stdlib.h>
4135 #include <stdarg.h>
4136 #include <string.h>
4137 #include <float.h>
4140 main ()
4144 return 0;
4146 _ACEOF
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_cv_header_stdc=yes
4149 else
4150 ac_cv_header_stdc=no
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 if test $ac_cv_header_stdc = yes; then
4155 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4158 #include <string.h>
4160 _ACEOF
4161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4162 $EGREP "memchr" >/dev/null 2>&1; then :
4164 else
4165 ac_cv_header_stdc=no
4167 rm -f conftest*
4171 if test $ac_cv_header_stdc = yes; then
4172 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4175 #include <stdlib.h>
4177 _ACEOF
4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179 $EGREP "free" >/dev/null 2>&1; then :
4181 else
4182 ac_cv_header_stdc=no
4184 rm -f conftest*
4188 if test $ac_cv_header_stdc = yes; then
4189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4190 if test "$cross_compiling" = yes; then :
4192 else
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195 #include <ctype.h>
4196 #include <stdlib.h>
4197 #if ((' ' & 0x0FF) == 0x020)
4198 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4199 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4200 #else
4201 # define ISLOWER(c) \
4202 (('a' <= (c) && (c) <= 'i') \
4203 || ('j' <= (c) && (c) <= 'r') \
4204 || ('s' <= (c) && (c) <= 'z'))
4205 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4206 #endif
4208 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4210 main ()
4212 int i;
4213 for (i = 0; i < 256; i++)
4214 if (XOR (islower (i), ISLOWER (i))
4215 || toupper (i) != TOUPPER (i))
4216 return 2;
4217 return 0;
4219 _ACEOF
4220 if ac_fn_c_try_run "$LINENO"; then :
4222 else
4223 ac_cv_header_stdc=no
4225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4226 conftest.$ac_objext conftest.beam conftest.$ac_ext
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4232 $as_echo "$ac_cv_header_stdc" >&6; }
4233 if test $ac_cv_header_stdc = yes; then
4235 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4240 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4241 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246 #include <sys/types.h>
4247 #include <sys/wait.h>
4248 #ifndef WEXITSTATUS
4249 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4250 #endif
4251 #ifndef WIFEXITED
4252 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4253 #endif
4256 main ()
4258 int s;
4259 wait (&s);
4260 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4262 return 0;
4264 _ACEOF
4265 if ac_fn_c_try_compile "$LINENO"; then :
4266 ac_cv_header_sys_wait_h=yes
4267 else
4268 ac_cv_header_sys_wait_h=no
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4273 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4274 if test $ac_cv_header_sys_wait_h = yes; then
4276 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4280 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4281 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4282 inttypes.h stdint.h unistd.h
4283 do :
4284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4285 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4287 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4288 cat >>confdefs.h <<_ACEOF
4289 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4290 _ACEOF
4294 done
4297 for ac_header in stdlib.h unistd.h errno.h assert.h
4298 do :
4299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4300 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4301 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4302 cat >>confdefs.h <<_ACEOF
4303 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4304 _ACEOF
4308 done
4310 for ac_header in string.h strings.h
4311 do :
4312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4313 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4314 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4315 cat >>confdefs.h <<_ACEOF
4316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4317 _ACEOF
4321 done
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4325 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4326 if test "${ac_cv_c_const+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4333 main ()
4335 /* FIXME: Include the comments suggested by Paul. */
4336 #ifndef __cplusplus
4337 /* Ultrix mips cc rejects this. */
4338 typedef int charset[2];
4339 const charset cs;
4340 /* SunOS 4.1.1 cc rejects this. */
4341 char const *const *pcpcc;
4342 char **ppc;
4343 /* NEC SVR4.0.2 mips cc rejects this. */
4344 struct point {int x, y;};
4345 static struct point const zero = {0,0};
4346 /* AIX XL C 1.02.0.0 rejects this.
4347 It does not let you subtract one const X* pointer from another in
4348 an arm of an if-expression whose if-part is not a constant
4349 expression */
4350 const char *g = "string";
4351 pcpcc = &g + (g ? g-g : 0);
4352 /* HPUX 7.0 cc rejects these. */
4353 ++pcpcc;
4354 ppc = (char**) pcpcc;
4355 pcpcc = (char const *const *) ppc;
4356 { /* SCO 3.2v4 cc rejects this. */
4357 char *t;
4358 char const *s = 0 ? (char *) 0 : (char const *) 0;
4360 *t++ = 0;
4361 if (s) return 0;
4363 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4364 int x[] = {25, 17};
4365 const int *foo = &x[0];
4366 ++foo;
4368 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4369 typedef const int *iptr;
4370 iptr p = 0;
4371 ++p;
4373 { /* AIX XL C 1.02.0.0 rejects this saying
4374 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4375 struct s { int j; const int *ap[3]; };
4376 struct s *b; b->j = 5;
4378 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4379 const int foo = 10;
4380 if (!foo) return 0;
4382 return !cs[0] && !zero.x;
4383 #endif
4386 return 0;
4388 _ACEOF
4389 if ac_fn_c_try_compile "$LINENO"; then :
4390 ac_cv_c_const=yes
4391 else
4392 ac_cv_c_const=no
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4397 $as_echo "$ac_cv_c_const" >&6; }
4398 if test $ac_cv_c_const = no; then
4400 $as_echo "#define const /**/" >>confdefs.h
4404 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4405 if test "x$ac_cv_type_pid_t" = x""yes; then :
4407 else
4409 cat >>confdefs.h <<_ACEOF
4410 #define pid_t int
4411 _ACEOF
4415 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4416 if test "x$ac_cv_type_size_t" = x""yes; then :
4418 else
4420 cat >>confdefs.h <<_ACEOF
4421 #define size_t unsigned int
4422 _ACEOF
4427 CFLAGS="${CFLAGS} -Wall"
4429 # Make sure we can run config.sub.
4430 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4431 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4434 $as_echo_n "checking build system type... " >&6; }
4435 if test "${ac_cv_build+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 ac_build_alias=$build_alias
4439 test "x$ac_build_alias" = x &&
4440 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4441 test "x$ac_build_alias" = x &&
4442 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4443 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4448 $as_echo "$ac_cv_build" >&6; }
4449 case $ac_cv_build in
4450 *-*-*) ;;
4451 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4452 esac
4453 build=$ac_cv_build
4454 ac_save_IFS=$IFS; IFS='-'
4455 set x $ac_cv_build
4456 shift
4457 build_cpu=$1
4458 build_vendor=$2
4459 shift; shift
4460 # Remember, the first character of IFS is used to create $*,
4461 # except with old shells:
4462 build_os=$*
4463 IFS=$ac_save_IFS
4464 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4468 $as_echo_n "checking host system type... " >&6; }
4469 if test "${ac_cv_host+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 if test "x$host_alias" = x; then
4473 ac_cv_host=$ac_cv_build
4474 else
4475 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4476 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4481 $as_echo "$ac_cv_host" >&6; }
4482 case $ac_cv_host in
4483 *-*-*) ;;
4484 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4485 esac
4486 host=$ac_cv_host
4487 ac_save_IFS=$IFS; IFS='-'
4488 set x $ac_cv_host
4489 shift
4490 host_cpu=$1
4491 host_vendor=$2
4492 shift; shift
4493 # Remember, the first character of IFS is used to create $*,
4494 # except with old shells:
4495 host_os=$*
4496 IFS=$ac_save_IFS
4497 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4503 ac_ext=c
4504 ac_cpp='$CPP $CPPFLAGS'
4505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509 acx_pthread_ok=no
4511 # We used to check for pthread.h first, but this fails if pthread.h
4512 # requires special compiler flags (e.g. on True64 or Sequent).
4513 # It gets checked for in the link test anyway.
4515 # First of all, check if the user has set any of the PTHREAD_LIBS,
4516 # etcetera environment variables, and if threads linking works using
4517 # them:
4518 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
4519 save_CFLAGS="$CFLAGS"
4520 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4521 save_LIBS="$LIBS"
4522 LIBS="$PTHREAD_LIBS $LIBS"
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
4524 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4528 /* Override any GCC internal prototype to avoid an error.
4529 Use char because int might match the return type of a GCC
4530 builtin and then its argument prototype would still apply. */
4531 #ifdef __cplusplus
4532 extern "C"
4533 #endif
4534 char pthread_join ();
4536 main ()
4538 return pthread_join ();
4540 return 0;
4542 _ACEOF
4543 if ac_fn_c_try_link "$LINENO"; then :
4544 acx_pthread_ok=yes
4546 rm -f core conftest.err conftest.$ac_objext \
4547 conftest$ac_exeext conftest.$ac_ext
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
4549 $as_echo "$acx_pthread_ok" >&6; }
4550 if test x"$acx_pthread_ok" = xno; then
4551 PTHREAD_LIBS=""
4552 PTHREAD_CFLAGS=""
4554 LIBS="$save_LIBS"
4555 CFLAGS="$save_CFLAGS"
4558 # We must check for the threads library under a number of different
4559 # names; the ordering is very important because some systems
4560 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
4561 # libraries is broken (non-POSIX).
4563 # Create a list of thread flags to try. Items starting with a "-" are
4564 # C compiler flags, and other items are library names, except for "none"
4565 # which indicates that we try without any flags at all.
4567 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
4569 # The ordering *is* (sometimes) important. Some notes on the
4570 # individual items follow:
4572 # pthreads: AIX (must check this before -lpthread)
4573 # none: in case threads are in libc; should be tried before -Kthread and
4574 # other compiler flags to prevent continual compiler warnings
4575 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
4576 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
4577 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
4578 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
4579 # -pthreads: Solaris/gcc
4580 # -mthreads: Mingw32/gcc, Lynx/gcc
4581 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
4582 # doesn't hurt to check since this sometimes defines pthreads too;
4583 # also defines -D_REENTRANT)
4584 # pthread: Linux, etcetera
4585 # --thread-safe: KAI C++
4587 case "${host_cpu}-${host_os}" in
4588 *solaris*)
4590 # On Solaris (at least, for some versions), libc contains stubbed
4591 # (non-functional) versions of the pthreads routines, so link-based
4592 # tests will erroneously succeed. (We need to link with -pthread or
4593 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
4594 # a function called by this macro, so we could check for that, but
4595 # who knows whether they'll stub that too in a future libc.) So,
4596 # we'll just look for -pthreads and -lpthread first:
4598 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
4600 esac
4602 if test x"$acx_pthread_ok" = xno; then
4603 for flag in $acx_pthread_flags; do
4605 case $flag in
4606 none)
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
4608 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
4613 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
4614 PTHREAD_CFLAGS="$flag"
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
4619 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
4620 PTHREAD_LIBS="-l$flag"
4622 esac
4624 save_LIBS="$LIBS"
4625 save_CFLAGS="$CFLAGS"
4626 LIBS="$PTHREAD_LIBS $LIBS"
4627 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4629 # Check for various functions. We must include pthread.h,
4630 # since some functions may be macros. (On the Sequent, we
4631 # need a special flag -Kthread to make this header compile.)
4632 # We check for pthread_join because it is in -lpthread on IRIX
4633 # while pthread_create is in libc. We check for pthread_attr_init
4634 # due to DEC craziness with -lpthreads. We check for
4635 # pthread_cleanup_push because it is one of the few pthread
4636 # functions on Solaris that doesn't have a non-functional libc stub.
4637 # We try pthread_create on general principles.
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640 #include <pthread.h>
4642 main ()
4644 pthread_t th; pthread_join(th, 0);
4645 pthread_attr_init(0); pthread_cleanup_push(0, 0);
4646 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
4648 return 0;
4650 _ACEOF
4651 if ac_fn_c_try_link "$LINENO"; then :
4652 acx_pthread_ok=yes
4654 rm -f core conftest.err conftest.$ac_objext \
4655 conftest$ac_exeext conftest.$ac_ext
4657 LIBS="$save_LIBS"
4658 CFLAGS="$save_CFLAGS"
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
4661 $as_echo "$acx_pthread_ok" >&6; }
4662 if test "x$acx_pthread_ok" = xyes; then
4663 break;
4666 PTHREAD_LIBS=""
4667 PTHREAD_CFLAGS=""
4668 done
4671 # Various other checks:
4672 if test "x$acx_pthread_ok" = xyes; then
4673 save_LIBS="$LIBS"
4674 LIBS="$PTHREAD_LIBS $LIBS"
4675 save_CFLAGS="$CFLAGS"
4676 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
4678 # Detect AIX lossage: threads are created detached by default
4679 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
4681 $as_echo_n "checking for joinable pthread attribute... " >&6; }
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684 #include <pthread.h>
4686 main ()
4688 int attr=PTHREAD_CREATE_JOINABLE;
4690 return 0;
4692 _ACEOF
4693 if ac_fn_c_try_link "$LINENO"; then :
4694 ok=PTHREAD_CREATE_JOINABLE
4695 else
4696 ok=unknown
4698 rm -f core conftest.err conftest.$ac_objext \
4699 conftest$ac_exeext conftest.$ac_ext
4700 if test x"$ok" = xunknown; then
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4703 #include <pthread.h>
4705 main ()
4707 int attr=PTHREAD_CREATE_UNDETACHED;
4709 return 0;
4711 _ACEOF
4712 if ac_fn_c_try_link "$LINENO"; then :
4713 ok=PTHREAD_CREATE_UNDETACHED
4714 else
4715 ok=unknown
4717 rm -f core conftest.err conftest.$ac_objext \
4718 conftest$ac_exeext conftest.$ac_ext
4720 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
4722 $as_echo "#define PTHREAD_CREATE_JOINABLE \$ok" >>confdefs.h
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
4726 $as_echo "${ok}" >&6; }
4727 if test x"$ok" = xunknown; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we do not know how to create joinable pthreads" >&5
4729 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
4733 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
4734 flag=no
4735 case "${host_cpu}-${host_os}" in
4736 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
4737 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
4738 esac
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
4740 $as_echo "${flag}" >&6; }
4741 if test "x$flag" != xno; then
4742 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
4745 LIBS="$save_LIBS"
4746 CFLAGS="$save_CFLAGS"
4748 # More AIX lossage: must compile with cc_r
4749 # Extract the first word of "cc_r", so it can be a program name with args.
4750 set dummy cc_r; ac_word=$2
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if test -n "$PTHREAD_CC"; then
4757 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
4758 else
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766 ac_cv_prog_PTHREAD_CC="cc_r"
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 break 2
4770 done
4771 done
4772 IFS=$as_save_IFS
4774 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
4777 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
4778 if test -n "$PTHREAD_CC"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
4780 $as_echo "$PTHREAD_CC" >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4787 else
4788 PTHREAD_CC="$CC"
4795 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4796 if test x"$acx_pthread_ok" = xyes; then
4797 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LDFLAGS="$PTHREAD_LIBS $LDFLAGS" CC="$PTHREAD_CC"
4799 else
4800 acx_pthread_ok=no
4801 as_fn_error $? "POSIX thread support required" "$LINENO" 5
4803 ac_ext=c
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4812 $as_echo_n "checking for X... " >&6; }
4815 # Check whether --with-x was given.
4816 if test "${with_x+set}" = set; then :
4817 withval=$with_x;
4820 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4821 if test "x$with_x" = xno; then
4822 # The user explicitly disabled X.
4823 have_x=disabled
4824 else
4825 case $x_includes,$x_libraries in #(
4826 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
4827 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 # One or both of the vars are not set, and there is no cached value.
4831 ac_x_includes=no ac_x_libraries=no
4832 rm -f -r conftest.dir
4833 if mkdir conftest.dir; then
4834 cd conftest.dir
4835 cat >Imakefile <<'_ACEOF'
4836 incroot:
4837 @echo incroot='${INCROOT}'
4838 usrlibdir:
4839 @echo usrlibdir='${USRLIBDIR}'
4840 libdir:
4841 @echo libdir='${LIBDIR}'
4842 _ACEOF
4843 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4844 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4845 for ac_var in incroot usrlibdir libdir; do
4846 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4847 done
4848 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4849 for ac_extension in a so sl dylib la dll; do
4850 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4851 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4852 ac_im_usrlibdir=$ac_im_libdir; break
4854 done
4855 # Screen out bogus values from the imake configuration. They are
4856 # bogus both because they are the default anyway, and because
4857 # using them would break gcc on systems where it needs fixed includes.
4858 case $ac_im_incroot in
4859 /usr/include) ac_x_includes= ;;
4860 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4861 esac
4862 case $ac_im_usrlibdir in
4863 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4864 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4865 esac
4867 cd ..
4868 rm -f -r conftest.dir
4871 # Standard set of common directories for X headers.
4872 # Check X11 before X11Rn because it is often a symlink to the current release.
4873 ac_x_header_dirs='
4874 /usr/X11/include
4875 /usr/X11R7/include
4876 /usr/X11R6/include
4877 /usr/X11R5/include
4878 /usr/X11R4/include
4880 /usr/include/X11
4881 /usr/include/X11R7
4882 /usr/include/X11R6
4883 /usr/include/X11R5
4884 /usr/include/X11R4
4886 /usr/local/X11/include
4887 /usr/local/X11R7/include
4888 /usr/local/X11R6/include
4889 /usr/local/X11R5/include
4890 /usr/local/X11R4/include
4892 /usr/local/include/X11
4893 /usr/local/include/X11R7
4894 /usr/local/include/X11R6
4895 /usr/local/include/X11R5
4896 /usr/local/include/X11R4
4898 /usr/X386/include
4899 /usr/x386/include
4900 /usr/XFree86/include/X11
4902 /usr/include
4903 /usr/local/include
4904 /usr/unsupported/include
4905 /usr/athena/include
4906 /usr/local/x11r5/include
4907 /usr/lpp/Xamples/include
4909 /usr/openwin/include
4910 /usr/openwin/share/include'
4912 if test "$ac_x_includes" = no; then
4913 # Guess where to find include files, by looking for Xlib.h.
4914 # First, try using that file with no special directory specified.
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4917 #include <X11/Xlib.h>
4918 _ACEOF
4919 if ac_fn_c_try_cpp "$LINENO"; then :
4920 # We can compile using X headers with no special include directory.
4921 ac_x_includes=
4922 else
4923 for ac_dir in $ac_x_header_dirs; do
4924 if test -r "$ac_dir/X11/Xlib.h"; then
4925 ac_x_includes=$ac_dir
4926 break
4928 done
4930 rm -f conftest.err conftest.i conftest.$ac_ext
4931 fi # $ac_x_includes = no
4933 if test "$ac_x_libraries" = no; then
4934 # Check for the libraries.
4935 # See if we find them without any special options.
4936 # Don't add to $LIBS permanently.
4937 ac_save_LIBS=$LIBS
4938 LIBS="-lX11 $LIBS"
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4941 #include <X11/Xlib.h>
4943 main ()
4945 XrmInitialize ()
4947 return 0;
4949 _ACEOF
4950 if ac_fn_c_try_link "$LINENO"; then :
4951 LIBS=$ac_save_LIBS
4952 # We can link X programs with no special library path.
4953 ac_x_libraries=
4954 else
4955 LIBS=$ac_save_LIBS
4956 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4958 # Don't even attempt the hair of trying to link an X program!
4959 for ac_extension in a so sl dylib la dll; do
4960 if test -r "$ac_dir/libX11.$ac_extension"; then
4961 ac_x_libraries=$ac_dir
4962 break 2
4964 done
4965 done
4967 rm -f core conftest.err conftest.$ac_objext \
4968 conftest$ac_exeext conftest.$ac_ext
4969 fi # $ac_x_libraries = no
4971 case $ac_x_includes,$ac_x_libraries in #(
4972 no,* | *,no | *\'*)
4973 # Didn't find X, or a directory has "'" in its name.
4974 ac_cv_have_x="have_x=no";; #(
4976 # Record where we found X for the cache.
4977 ac_cv_have_x="have_x=yes\
4978 ac_x_includes='$ac_x_includes'\
4979 ac_x_libraries='$ac_x_libraries'"
4980 esac
4982 ;; #(
4983 *) have_x=yes;;
4984 esac
4985 eval "$ac_cv_have_x"
4986 fi # $with_x != no
4988 if test "$have_x" != yes; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4990 $as_echo "$have_x" >&6; }
4991 no_x=yes
4992 else
4993 # If each of the values was on the command line, it overrides each guess.
4994 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4995 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4996 # Update the cache value to reflect the command line values.
4997 ac_cv_have_x="have_x=yes\
4998 ac_x_includes='$x_includes'\
4999 ac_x_libraries='$x_libraries'"
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5001 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5004 if test "$no_x" = yes; then
5005 # Not all programs may use this symbol, but it does not hurt to define it.
5007 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5009 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5010 else
5011 if test -n "$x_includes"; then
5012 X_CFLAGS="$X_CFLAGS -I$x_includes"
5015 # It would also be nice to do this for all -L options, not just this one.
5016 if test -n "$x_libraries"; then
5017 X_LIBS="$X_LIBS -L$x_libraries"
5018 # For Solaris; some versions of Sun CC require a space after -R and
5019 # others require no space. Words are not sufficient . . . .
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5021 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5022 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5023 ac_xsave_c_werror_flag=$ac_c_werror_flag
5024 ac_c_werror_flag=yes
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h. */
5029 main ()
5033 return 0;
5035 _ACEOF
5036 if ac_fn_c_try_link "$LINENO"; then :
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5039 X_LIBS="$X_LIBS -R$x_libraries"
5040 else
5041 LIBS="$ac_xsave_LIBS -R $x_libraries"
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5046 main ()
5050 return 0;
5052 _ACEOF
5053 if ac_fn_c_try_link "$LINENO"; then :
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5055 $as_echo "yes" >&6; }
5056 X_LIBS="$X_LIBS -R $x_libraries"
5057 else
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5059 $as_echo "neither works" >&6; }
5061 rm -f core conftest.err conftest.$ac_objext \
5062 conftest$ac_exeext conftest.$ac_ext
5064 rm -f core conftest.err conftest.$ac_objext \
5065 conftest$ac_exeext conftest.$ac_ext
5066 ac_c_werror_flag=$ac_xsave_c_werror_flag
5067 LIBS=$ac_xsave_LIBS
5070 # Check for system-dependent libraries X programs must link with.
5071 # Do this before checking for the system-independent R6 libraries
5072 # (-lICE), since we may need -lsocket or whatever for X linking.
5074 if test "$ISC" = yes; then
5075 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5076 else
5077 # Martyn Johnson says this is needed for Ultrix, if the X
5078 # libraries were built with DECnet support. And Karl Berry says
5079 # the Alpha needs dnet_stub (dnet does not exist).
5080 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5084 /* Override any GCC internal prototype to avoid an error.
5085 Use char because int might match the return type of a GCC
5086 builtin and then its argument prototype would still apply. */
5087 #ifdef __cplusplus
5088 extern "C"
5089 #endif
5090 char XOpenDisplay ();
5092 main ()
5094 return XOpenDisplay ();
5096 return 0;
5098 _ACEOF
5099 if ac_fn_c_try_link "$LINENO"; then :
5101 else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5103 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5104 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 ac_check_lib_save_LIBS=$LIBS
5108 LIBS="-ldnet $LIBS"
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5112 /* Override any GCC internal prototype to avoid an error.
5113 Use char because int might match the return type of a GCC
5114 builtin and then its argument prototype would still apply. */
5115 #ifdef __cplusplus
5116 extern "C"
5117 #endif
5118 char dnet_ntoa ();
5120 main ()
5122 return dnet_ntoa ();
5124 return 0;
5126 _ACEOF
5127 if ac_fn_c_try_link "$LINENO"; then :
5128 ac_cv_lib_dnet_dnet_ntoa=yes
5129 else
5130 ac_cv_lib_dnet_dnet_ntoa=no
5132 rm -f core conftest.err conftest.$ac_objext \
5133 conftest$ac_exeext conftest.$ac_ext
5134 LIBS=$ac_check_lib_save_LIBS
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5137 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5138 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5139 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5142 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5144 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5145 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 ac_check_lib_save_LIBS=$LIBS
5149 LIBS="-ldnet_stub $LIBS"
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5153 /* Override any GCC internal prototype to avoid an error.
5154 Use char because int might match the return type of a GCC
5155 builtin and then its argument prototype would still apply. */
5156 #ifdef __cplusplus
5157 extern "C"
5158 #endif
5159 char dnet_ntoa ();
5161 main ()
5163 return dnet_ntoa ();
5165 return 0;
5167 _ACEOF
5168 if ac_fn_c_try_link "$LINENO"; then :
5169 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5170 else
5171 ac_cv_lib_dnet_stub_dnet_ntoa=no
5173 rm -f core conftest.err conftest.$ac_objext \
5174 conftest$ac_exeext conftest.$ac_ext
5175 LIBS=$ac_check_lib_save_LIBS
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5178 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5179 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5180 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5185 rm -f core conftest.err conftest.$ac_objext \
5186 conftest$ac_exeext conftest.$ac_ext
5187 LIBS="$ac_xsave_LIBS"
5189 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5190 # to get the SysV transport functions.
5191 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5192 # needs -lnsl.
5193 # The nsl library prevents programs from opening the X display
5194 # on Irix 5.2, according to T.E. Dickey.
5195 # The functions gethostbyname, getservbyname, and inet_addr are
5196 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5197 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5198 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5202 if test $ac_cv_func_gethostbyname = no; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5204 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5205 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 ac_check_lib_save_LIBS=$LIBS
5209 LIBS="-lnsl $LIBS"
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5213 /* Override any GCC internal prototype to avoid an error.
5214 Use char because int might match the return type of a GCC
5215 builtin and then its argument prototype would still apply. */
5216 #ifdef __cplusplus
5217 extern "C"
5218 #endif
5219 char gethostbyname ();
5221 main ()
5223 return gethostbyname ();
5225 return 0;
5227 _ACEOF
5228 if ac_fn_c_try_link "$LINENO"; then :
5229 ac_cv_lib_nsl_gethostbyname=yes
5230 else
5231 ac_cv_lib_nsl_gethostbyname=no
5233 rm -f core conftest.err conftest.$ac_objext \
5234 conftest$ac_exeext conftest.$ac_ext
5235 LIBS=$ac_check_lib_save_LIBS
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5238 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5239 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5240 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5243 if test $ac_cv_lib_nsl_gethostbyname = no; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5245 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5246 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 ac_check_lib_save_LIBS=$LIBS
5250 LIBS="-lbsd $LIBS"
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5254 /* Override any GCC internal prototype to avoid an error.
5255 Use char because int might match the return type of a GCC
5256 builtin and then its argument prototype would still apply. */
5257 #ifdef __cplusplus
5258 extern "C"
5259 #endif
5260 char gethostbyname ();
5262 main ()
5264 return gethostbyname ();
5266 return 0;
5268 _ACEOF
5269 if ac_fn_c_try_link "$LINENO"; then :
5270 ac_cv_lib_bsd_gethostbyname=yes
5271 else
5272 ac_cv_lib_bsd_gethostbyname=no
5274 rm -f core conftest.err conftest.$ac_objext \
5275 conftest$ac_exeext conftest.$ac_ext
5276 LIBS=$ac_check_lib_save_LIBS
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5279 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5280 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5281 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5287 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5288 # socket/setsockopt and other routines are undefined under SCO ODT
5289 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5290 # on later versions), says Simon Leinen: it contains gethostby*
5291 # variants that don't use the name server (or something). -lsocket
5292 # must be given before -lnsl if both are needed. We assume that
5293 # if connect needs -lnsl, so does gethostbyname.
5294 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5295 if test "x$ac_cv_func_connect" = x""yes; then :
5299 if test $ac_cv_func_connect = no; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5301 $as_echo_n "checking for connect in -lsocket... " >&6; }
5302 if test "${ac_cv_lib_socket_connect+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 ac_check_lib_save_LIBS=$LIBS
5306 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5310 /* Override any GCC internal prototype to avoid an error.
5311 Use char because int might match the return type of a GCC
5312 builtin and then its argument prototype would still apply. */
5313 #ifdef __cplusplus
5314 extern "C"
5315 #endif
5316 char connect ();
5318 main ()
5320 return connect ();
5322 return 0;
5324 _ACEOF
5325 if ac_fn_c_try_link "$LINENO"; then :
5326 ac_cv_lib_socket_connect=yes
5327 else
5328 ac_cv_lib_socket_connect=no
5330 rm -f core conftest.err conftest.$ac_objext \
5331 conftest$ac_exeext conftest.$ac_ext
5332 LIBS=$ac_check_lib_save_LIBS
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5335 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5336 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
5337 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5342 # Guillermo Gomez says -lposix is necessary on A/UX.
5343 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5344 if test "x$ac_cv_func_remove" = x""yes; then :
5348 if test $ac_cv_func_remove = no; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5350 $as_echo_n "checking for remove in -lposix... " >&6; }
5351 if test "${ac_cv_lib_posix_remove+set}" = set; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 ac_check_lib_save_LIBS=$LIBS
5355 LIBS="-lposix $LIBS"
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5359 /* Override any GCC internal prototype to avoid an error.
5360 Use char because int might match the return type of a GCC
5361 builtin and then its argument prototype would still apply. */
5362 #ifdef __cplusplus
5363 extern "C"
5364 #endif
5365 char remove ();
5367 main ()
5369 return remove ();
5371 return 0;
5373 _ACEOF
5374 if ac_fn_c_try_link "$LINENO"; then :
5375 ac_cv_lib_posix_remove=yes
5376 else
5377 ac_cv_lib_posix_remove=no
5379 rm -f core conftest.err conftest.$ac_objext \
5380 conftest$ac_exeext conftest.$ac_ext
5381 LIBS=$ac_check_lib_save_LIBS
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5384 $as_echo "$ac_cv_lib_posix_remove" >&6; }
5385 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
5386 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5391 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5392 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5393 if test "x$ac_cv_func_shmat" = x""yes; then :
5397 if test $ac_cv_func_shmat = no; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5399 $as_echo_n "checking for shmat in -lipc... " >&6; }
5400 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
5401 $as_echo_n "(cached) " >&6
5402 else
5403 ac_check_lib_save_LIBS=$LIBS
5404 LIBS="-lipc $LIBS"
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5408 /* Override any GCC internal prototype to avoid an error.
5409 Use char because int might match the return type of a GCC
5410 builtin and then its argument prototype would still apply. */
5411 #ifdef __cplusplus
5412 extern "C"
5413 #endif
5414 char shmat ();
5416 main ()
5418 return shmat ();
5420 return 0;
5422 _ACEOF
5423 if ac_fn_c_try_link "$LINENO"; then :
5424 ac_cv_lib_ipc_shmat=yes
5425 else
5426 ac_cv_lib_ipc_shmat=no
5428 rm -f core conftest.err conftest.$ac_objext \
5429 conftest$ac_exeext conftest.$ac_ext
5430 LIBS=$ac_check_lib_save_LIBS
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5433 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5434 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
5435 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5441 # Check for libraries that X11R6 Xt/Xaw programs need.
5442 ac_save_LDFLAGS=$LDFLAGS
5443 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5444 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5445 # check for ICE first), but we must link in the order -lSM -lICE or
5446 # we get undefined symbols. So assume we have SM if we have ICE.
5447 # These have to be linked with before -lX11, unlike the other
5448 # libraries we check for below, so use a different variable.
5449 # John Interrante, Karl Berry
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5451 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5452 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 ac_check_lib_save_LIBS=$LIBS
5456 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5460 /* Override any GCC internal prototype to avoid an error.
5461 Use char because int might match the return type of a GCC
5462 builtin and then its argument prototype would still apply. */
5463 #ifdef __cplusplus
5464 extern "C"
5465 #endif
5466 char IceConnectionNumber ();
5468 main ()
5470 return IceConnectionNumber ();
5472 return 0;
5474 _ACEOF
5475 if ac_fn_c_try_link "$LINENO"; then :
5476 ac_cv_lib_ICE_IceConnectionNumber=yes
5477 else
5478 ac_cv_lib_ICE_IceConnectionNumber=no
5480 rm -f core conftest.err conftest.$ac_objext \
5481 conftest$ac_exeext conftest.$ac_ext
5482 LIBS=$ac_check_lib_save_LIBS
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5485 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5486 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5487 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5490 LDFLAGS=$ac_save_LDFLAGS
5494 CFLAGS="${CFLAGS} ${X_CFLAGS}"
5495 LIBS="${LIBS} ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
5498 $as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
5499 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 ac_check_lib_save_LIBS=$LIBS
5503 LIBS="-lX11 "${X_LIBS}" $LIBS"
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5507 /* Override any GCC internal prototype to avoid an error.
5508 Use char because int might match the return type of a GCC
5509 builtin and then its argument prototype would still apply. */
5510 #ifdef __cplusplus
5511 extern "C"
5512 #endif
5513 char XOpenDisplay ();
5515 main ()
5517 return XOpenDisplay ();
5519 return 0;
5521 _ACEOF
5522 if ac_fn_c_try_link "$LINENO"; then :
5523 ac_cv_lib_X11_XOpenDisplay=yes
5524 else
5525 ac_cv_lib_X11_XOpenDisplay=no
5527 rm -f core conftest.err conftest.$ac_objext \
5528 conftest$ac_exeext conftest.$ac_ext
5529 LIBS=$ac_check_lib_save_LIBS
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
5532 $as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
5533 if test "x$ac_cv_lib_X11_XOpenDisplay" = x""yes; then :
5534 LIBS="${LIBS} -lX11"
5535 else
5536 echo "Can't find X11 library" ; exit 1
5540 for ac_header in X11/xpm.h
5541 do :
5542 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
5543 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
5544 cat >>confdefs.h <<_ACEOF
5545 #define HAVE_X11_XPM_H 1
5546 _ACEOF
5548 else
5549 echo "Can't find header file for library Xpm" ; exit 1
5552 done
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromXpmImage in -lXpm" >&5
5555 $as_echo_n "checking for XpmCreatePixmapFromXpmImage in -lXpm... " >&6; }
5556 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromXpmImage+set}" = set; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 ac_check_lib_save_LIBS=$LIBS
5560 LIBS="-lXpm "${X_LIBS}" $LIBS"
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5564 /* Override any GCC internal prototype to avoid an error.
5565 Use char because int might match the return type of a GCC
5566 builtin and then its argument prototype would still apply. */
5567 #ifdef __cplusplus
5568 extern "C"
5569 #endif
5570 char XpmCreatePixmapFromXpmImage ();
5572 main ()
5574 return XpmCreatePixmapFromXpmImage ();
5576 return 0;
5578 _ACEOF
5579 if ac_fn_c_try_link "$LINENO"; then :
5580 ac_cv_lib_Xpm_XpmCreatePixmapFromXpmImage=yes
5581 else
5582 ac_cv_lib_Xpm_XpmCreatePixmapFromXpmImage=no
5584 rm -f core conftest.err conftest.$ac_objext \
5585 conftest$ac_exeext conftest.$ac_ext
5586 LIBS=$ac_check_lib_save_LIBS
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromXpmImage" >&5
5589 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromXpmImage" >&6; }
5590 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromXpmImage" = x""yes; then :
5591 LIBS="${LIBS} -lXpm"
5592 else
5593 echo "Can't find Xpm library" ; exit 1
5597 for ac_header in X11/extensions/shape.h
5598 do :
5599 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "$ac_includes_default"
5600 if test "x$ac_cv_header_X11_extensions_shape_h" = x""yes; then :
5601 cat >>confdefs.h <<_ACEOF
5602 #define HAVE_X11_EXTENSIONS_SHAPE_H 1
5603 _ACEOF
5605 else
5606 echo "Can't find header file for library Xext" ; exit 1
5609 done
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
5612 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
5613 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 ac_check_lib_save_LIBS=$LIBS
5617 LIBS="-lXext "${X_LIBS}" $LIBS"
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5621 /* Override any GCC internal prototype to avoid an error.
5622 Use char because int might match the return type of a GCC
5623 builtin and then its argument prototype would still apply. */
5624 #ifdef __cplusplus
5625 extern "C"
5626 #endif
5627 char XShapeCombineMask ();
5629 main ()
5631 return XShapeCombineMask ();
5633 return 0;
5635 _ACEOF
5636 if ac_fn_c_try_link "$LINENO"; then :
5637 ac_cv_lib_Xext_XShapeCombineMask=yes
5638 else
5639 ac_cv_lib_Xext_XShapeCombineMask=no
5641 rm -f core conftest.err conftest.$ac_objext \
5642 conftest$ac_exeext conftest.$ac_ext
5643 LIBS=$ac_check_lib_save_LIBS
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
5646 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
5647 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
5648 LIBS="${LIBS} -lXext"
5649 else
5650 echo "Can't find Xext library" ; exit 1
5654 # Check whether --enable-libsndfile was given.
5655 if test "${enable_libsndfile+set}" = set; then :
5656 enableval=$enable_libsndfile; ac_cv_enable_libsndfile=$enableval
5657 else
5658 ac_cv_enable_libsndfile=yes
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libsndfile" >&5
5662 $as_echo_n "checking whether to use libsndfile... " >&6; }
5663 if test x$ac_cv_enable_libsndfile = xyes; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5665 $as_echo "yes" >&6; }
5672 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5673 if test -n "$ac_tool_prefix"; then
5674 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5675 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 case $PKG_CONFIG in
5682 [\\/]* | ?:[\\/]*)
5683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5697 done
5698 done
5699 IFS=$as_save_IFS
5702 esac
5704 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5705 if test -n "$PKG_CONFIG"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5707 $as_echo "$PKG_CONFIG" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5715 if test -z "$ac_cv_path_PKG_CONFIG"; then
5716 ac_pt_PKG_CONFIG=$PKG_CONFIG
5717 # Extract the first word of "pkg-config", so it can be a program name with args.
5718 set dummy pkg-config; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 case $ac_pt_PKG_CONFIG in
5725 [\\/]* | ?:[\\/]*)
5726 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 break 2
5740 done
5741 done
5742 IFS=$as_save_IFS
5745 esac
5747 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5748 if test -n "$ac_pt_PKG_CONFIG"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5750 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5751 else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5756 if test "x$ac_pt_PKG_CONFIG" = x; then
5757 PKG_CONFIG=""
5758 else
5759 case $cross_compiling:$ac_tool_warned in
5760 yes:)
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5763 ac_tool_warned=yes ;;
5764 esac
5765 PKG_CONFIG=$ac_pt_PKG_CONFIG
5767 else
5768 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5772 if test -n "$PKG_CONFIG"; then
5773 _pkg_min_version=0.9.0
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5775 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5776 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5778 $as_echo "yes" >&6; }
5779 else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5782 PKG_CONFIG=""
5786 pkg_failed=no
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5
5788 $as_echo_n "checking for SNDFILE... " >&6; }
5790 if test -n "$SNDFILE_CFLAGS"; then
5791 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
5792 elif test -n "$PKG_CONFIG"; then
5793 if test -n "$PKG_CONFIG" && \
5794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.2\""; } >&5
5795 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.2") 2>&5
5796 ac_status=$?
5797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5798 test $ac_status = 0; }; then
5799 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.2" 2>/dev/null`
5800 else
5801 pkg_failed=yes
5803 else
5804 pkg_failed=untried
5806 if test -n "$SNDFILE_LIBS"; then
5807 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
5808 elif test -n "$PKG_CONFIG"; then
5809 if test -n "$PKG_CONFIG" && \
5810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.2\""; } >&5
5811 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.2") 2>&5
5812 ac_status=$?
5813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5814 test $ac_status = 0; }; then
5815 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.2" 2>/dev/null`
5816 else
5817 pkg_failed=yes
5819 else
5820 pkg_failed=untried
5825 if test $pkg_failed = yes; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5829 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5830 _pkg_short_errors_supported=yes
5831 else
5832 _pkg_short_errors_supported=no
5834 if test $_pkg_short_errors_supported = yes; then
5835 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sndfile >= 1.0.2" 2>&1`
5836 else
5837 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors "sndfile >= 1.0.2" 2>&1`
5839 # Put the nasty error message in config.log where it belongs
5840 echo "$SNDFILE_PKG_ERRORS" >&5
5842 ac_cv_enable_libsndfile=no
5843 elif test $pkg_failed = untried; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5846 ac_cv_enable_libsndfile=no
5847 else
5848 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
5849 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5851 $as_echo "yes" >&6; }
5854 if test x$ac_cv_enable_libsndfile = xyes; then
5856 $as_echo "#define HAVE_SNDFILE 1" >>confdefs.h
5859 else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861 $as_echo "no" >&6; }
5864 # Check whether --enable-ssl was given.
5865 if test "${enable_ssl+set}" = set; then :
5866 enableval=$enable_ssl; ac_cv_enable_ssl=$enableval
5867 else
5868 ac_cv_enable_ssl=yes
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use OpenSSL" >&5
5872 $as_echo_n "checking whether to use OpenSSL... " >&6; }
5873 if test x$ac_cv_enable_ssl = xyes; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5875 $as_echo "yes" >&6; }
5877 pkg_failed=no
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
5879 $as_echo_n "checking for OPENSSL... " >&6; }
5881 if test -n "$OPENSSL_CFLAGS"; then
5882 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
5883 elif test -n "$PKG_CONFIG"; then
5884 if test -n "$PKG_CONFIG" && \
5885 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.6\""; } >&5
5886 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.6") 2>&5
5887 ac_status=$?
5888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5889 test $ac_status = 0; }; then
5890 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.6" 2>/dev/null`
5891 else
5892 pkg_failed=yes
5894 else
5895 pkg_failed=untried
5897 if test -n "$OPENSSL_LIBS"; then
5898 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
5899 elif test -n "$PKG_CONFIG"; then
5900 if test -n "$PKG_CONFIG" && \
5901 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.6\""; } >&5
5902 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.6") 2>&5
5903 ac_status=$?
5904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5905 test $ac_status = 0; }; then
5906 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.6" 2>/dev/null`
5907 else
5908 pkg_failed=yes
5910 else
5911 pkg_failed=untried
5916 if test $pkg_failed = yes; then
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5920 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5921 _pkg_short_errors_supported=yes
5922 else
5923 _pkg_short_errors_supported=no
5925 if test $_pkg_short_errors_supported = yes; then
5926 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl >= 0.9.6" 2>&1`
5927 else
5928 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl >= 0.9.6" 2>&1`
5930 # Put the nasty error message in config.log where it belongs
5931 echo "$OPENSSL_PKG_ERRORS" >&5
5933 ac_cv_enable_ssl=no
5934 elif test $pkg_failed = untried; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 $as_echo "no" >&6; }
5937 ac_cv_enable_ssl=no
5938 else
5939 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
5940 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5942 $as_echo "yes" >&6; }
5945 if test x$ac_cv_enable_ssl = xyes; then
5947 $as_echo "#define HAVE_SSL 1" >>confdefs.h
5950 else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5955 CFLAGS="${CFLAGS} ${SNDFILE_CFLAGS} ${OPENSSL_CFLAGS}"
5956 LIBS="${SNDFILE_LIBS} ${OPENSSL_LIBS} ${LIBS}"
5962 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile"
5964 cat >confcache <<\_ACEOF
5965 # This file is a shell script that caches the results of configure
5966 # tests run on this system so they can be shared between configure
5967 # scripts and configure runs, see configure's option --config-cache.
5968 # It is not useful on other systems. If it contains results you don't
5969 # want to keep, you may remove or edit it.
5971 # config.status only pays attention to the cache file if you give it
5972 # the --recheck option to rerun configure.
5974 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5975 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5976 # following values.
5978 _ACEOF
5980 # The following way of writing the cache mishandles newlines in values,
5981 # but we know of no workaround that is simple, portable, and efficient.
5982 # So, we kill variables containing newlines.
5983 # Ultrix sh set writes to stderr and can't be redirected directly,
5984 # and sets the high bit in the cache file unless we assign to the vars.
5986 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5987 eval ac_val=\$$ac_var
5988 case $ac_val in #(
5989 *${as_nl}*)
5990 case $ac_var in #(
5991 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5992 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5993 esac
5994 case $ac_var in #(
5995 _ | IFS | as_nl) ;; #(
5996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5997 *) { eval $ac_var=; unset $ac_var;} ;;
5998 esac ;;
5999 esac
6000 done
6002 (set) 2>&1 |
6003 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6004 *${as_nl}ac_space=\ *)
6005 # `set' does not quote correctly, so add quotes: double-quote
6006 # substitution turns \\\\ into \\, and sed turns \\ into \.
6007 sed -n \
6008 "s/'/'\\\\''/g;
6009 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6010 ;; #(
6012 # `set' quotes correctly as required by POSIX, so do not add quotes.
6013 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6015 esac |
6016 sort
6018 sed '
6019 /^ac_cv_env_/b end
6020 t clear
6021 :clear
6022 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6023 t end
6024 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6025 :end' >>confcache
6026 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6027 if test -w "$cache_file"; then
6028 test "x$cache_file" != "x/dev/null" &&
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6030 $as_echo "$as_me: updating cache $cache_file" >&6;}
6031 cat confcache >$cache_file
6032 else
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6034 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6037 rm -f confcache
6039 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6040 # Let make expand exec_prefix.
6041 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6043 DEFS=-DHAVE_CONFIG_H
6045 ac_libobjs=
6046 ac_ltlibobjs=
6048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6049 # 1. Remove the extension, and $U if already installed.
6050 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6051 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6053 # will be set to the directory where LIBOBJS objects are built.
6054 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6055 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6056 done
6057 LIBOBJS=$ac_libobjs
6059 LTLIBOBJS=$ac_ltlibobjs
6062 if test -n "$EXEEXT"; then
6063 am__EXEEXT_TRUE=
6064 am__EXEEXT_FALSE='#'
6065 else
6066 am__EXEEXT_TRUE='#'
6067 am__EXEEXT_FALSE=
6070 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6071 as_fn_error $? "conditional \"AMDEP\" was never defined.
6072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6074 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6075 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6079 : ${CONFIG_STATUS=./config.status}
6080 ac_write_fail=0
6081 ac_clean_files_save=$ac_clean_files
6082 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6084 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6085 as_write_fail=0
6086 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6087 #! $SHELL
6088 # Generated by $as_me.
6089 # Run this file to recreate the current configuration.
6090 # Compiler output produced by configure, useful for debugging
6091 # configure, is in config.log if it exists.
6093 debug=false
6094 ac_cs_recheck=false
6095 ac_cs_silent=false
6097 SHELL=\${CONFIG_SHELL-$SHELL}
6098 export SHELL
6099 _ASEOF
6100 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6101 ## -------------------- ##
6102 ## M4sh Initialization. ##
6103 ## -------------------- ##
6105 # Be more Bourne compatible
6106 DUALCASE=1; export DUALCASE # for MKS sh
6107 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6108 emulate sh
6109 NULLCMD=:
6110 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6111 # is contrary to our usage. Disable this feature.
6112 alias -g '${1+"$@"}'='"$@"'
6113 setopt NO_GLOB_SUBST
6114 else
6115 case `(set -o) 2>/dev/null` in #(
6116 *posix*) :
6117 set -o posix ;; #(
6118 *) :
6120 esac
6124 as_nl='
6126 export as_nl
6127 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6128 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6129 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6130 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6131 # Prefer a ksh shell builtin over an external printf program on Solaris,
6132 # but without wasting forks for bash or zsh.
6133 if test -z "$BASH_VERSION$ZSH_VERSION" \
6134 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6135 as_echo='print -r --'
6136 as_echo_n='print -rn --'
6137 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6138 as_echo='printf %s\n'
6139 as_echo_n='printf %s'
6140 else
6141 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6142 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6143 as_echo_n='/usr/ucb/echo -n'
6144 else
6145 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6146 as_echo_n_body='eval
6147 arg=$1;
6148 case $arg in #(
6149 *"$as_nl"*)
6150 expr "X$arg" : "X\\(.*\\)$as_nl";
6151 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6152 esac;
6153 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6155 export as_echo_n_body
6156 as_echo_n='sh -c $as_echo_n_body as_echo'
6158 export as_echo_body
6159 as_echo='sh -c $as_echo_body as_echo'
6162 # The user is always right.
6163 if test "${PATH_SEPARATOR+set}" != set; then
6164 PATH_SEPARATOR=:
6165 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6166 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6167 PATH_SEPARATOR=';'
6172 # IFS
6173 # We need space, tab and new line, in precisely that order. Quoting is
6174 # there to prevent editors from complaining about space-tab.
6175 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6176 # splitting by setting IFS to empty value.)
6177 IFS=" "" $as_nl"
6179 # Find who we are. Look in the path if we contain no directory separator.
6180 case $0 in #((
6181 *[\\/]* ) as_myself=$0 ;;
6182 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6188 done
6189 IFS=$as_save_IFS
6192 esac
6193 # We did not find ourselves, most probably we were run as `sh COMMAND'
6194 # in which case we are not to be found in the path.
6195 if test "x$as_myself" = x; then
6196 as_myself=$0
6198 if test ! -f "$as_myself"; then
6199 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6200 exit 1
6203 # Unset variables that we do not need and which cause bugs (e.g. in
6204 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6205 # suppresses any "Segmentation fault" message there. '((' could
6206 # trigger a bug in pdksh 5.2.14.
6207 for as_var in BASH_ENV ENV MAIL MAILPATH
6208 do eval test x\${$as_var+set} = xset \
6209 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6210 done
6211 PS1='$ '
6212 PS2='> '
6213 PS4='+ '
6215 # NLS nuisances.
6216 LC_ALL=C
6217 export LC_ALL
6218 LANGUAGE=C
6219 export LANGUAGE
6221 # CDPATH.
6222 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6225 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6226 # ----------------------------------------
6227 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6228 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6229 # script with STATUS, using 1 if that was 0.
6230 as_fn_error ()
6232 as_status=$1; test $as_status -eq 0 && as_status=1
6233 if test "$4"; then
6234 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6235 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6237 $as_echo "$as_me: error: $2" >&2
6238 as_fn_exit $as_status
6239 } # as_fn_error
6242 # as_fn_set_status STATUS
6243 # -----------------------
6244 # Set $? to STATUS, without forking.
6245 as_fn_set_status ()
6247 return $1
6248 } # as_fn_set_status
6250 # as_fn_exit STATUS
6251 # -----------------
6252 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6253 as_fn_exit ()
6255 set +e
6256 as_fn_set_status $1
6257 exit $1
6258 } # as_fn_exit
6260 # as_fn_unset VAR
6261 # ---------------
6262 # Portably unset VAR.
6263 as_fn_unset ()
6265 { eval $1=; unset $1;}
6267 as_unset=as_fn_unset
6268 # as_fn_append VAR VALUE
6269 # ----------------------
6270 # Append the text in VALUE to the end of the definition contained in VAR. Take
6271 # advantage of any shell optimizations that allow amortized linear growth over
6272 # repeated appends, instead of the typical quadratic growth present in naive
6273 # implementations.
6274 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6275 eval 'as_fn_append ()
6277 eval $1+=\$2
6279 else
6280 as_fn_append ()
6282 eval $1=\$$1\$2
6284 fi # as_fn_append
6286 # as_fn_arith ARG...
6287 # ------------------
6288 # Perform arithmetic evaluation on the ARGs, and store the result in the
6289 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6290 # must be portable across $(()) and expr.
6291 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6292 eval 'as_fn_arith ()
6294 as_val=$(( $* ))
6296 else
6297 as_fn_arith ()
6299 as_val=`expr "$@" || test $? -eq 1`
6301 fi # as_fn_arith
6304 if expr a : '\(a\)' >/dev/null 2>&1 &&
6305 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6306 as_expr=expr
6307 else
6308 as_expr=false
6311 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6312 as_basename=basename
6313 else
6314 as_basename=false
6317 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6318 as_dirname=dirname
6319 else
6320 as_dirname=false
6323 as_me=`$as_basename -- "$0" ||
6324 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6325 X"$0" : 'X\(//\)$' \| \
6326 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6327 $as_echo X/"$0" |
6328 sed '/^.*\/\([^/][^/]*\)\/*$/{
6329 s//\1/
6332 /^X\/\(\/\/\)$/{
6333 s//\1/
6336 /^X\/\(\/\).*/{
6337 s//\1/
6340 s/.*/./; q'`
6342 # Avoid depending upon Character Ranges.
6343 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6344 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6345 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6346 as_cr_digits='0123456789'
6347 as_cr_alnum=$as_cr_Letters$as_cr_digits
6349 ECHO_C= ECHO_N= ECHO_T=
6350 case `echo -n x` in #(((((
6351 -n*)
6352 case `echo 'xy\c'` in
6353 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6354 xy) ECHO_C='\c';;
6355 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6356 ECHO_T=' ';;
6357 esac;;
6359 ECHO_N='-n';;
6360 esac
6362 rm -f conf$$ conf$$.exe conf$$.file
6363 if test -d conf$$.dir; then
6364 rm -f conf$$.dir/conf$$.file
6365 else
6366 rm -f conf$$.dir
6367 mkdir conf$$.dir 2>/dev/null
6369 if (echo >conf$$.file) 2>/dev/null; then
6370 if ln -s conf$$.file conf$$ 2>/dev/null; then
6371 as_ln_s='ln -s'
6372 # ... but there are two gotchas:
6373 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6374 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6375 # In both cases, we have to default to `cp -p'.
6376 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6377 as_ln_s='cp -p'
6378 elif ln conf$$.file conf$$ 2>/dev/null; then
6379 as_ln_s=ln
6380 else
6381 as_ln_s='cp -p'
6383 else
6384 as_ln_s='cp -p'
6386 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6387 rmdir conf$$.dir 2>/dev/null
6390 # as_fn_mkdir_p
6391 # -------------
6392 # Create "$as_dir" as a directory, including parents if necessary.
6393 as_fn_mkdir_p ()
6396 case $as_dir in #(
6397 -*) as_dir=./$as_dir;;
6398 esac
6399 test -d "$as_dir" || eval $as_mkdir_p || {
6400 as_dirs=
6401 while :; do
6402 case $as_dir in #(
6403 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6404 *) as_qdir=$as_dir;;
6405 esac
6406 as_dirs="'$as_qdir' $as_dirs"
6407 as_dir=`$as_dirname -- "$as_dir" ||
6408 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6409 X"$as_dir" : 'X\(//\)[^/]' \| \
6410 X"$as_dir" : 'X\(//\)$' \| \
6411 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6412 $as_echo X"$as_dir" |
6413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6414 s//\1/
6417 /^X\(\/\/\)[^/].*/{
6418 s//\1/
6421 /^X\(\/\/\)$/{
6422 s//\1/
6425 /^X\(\/\).*/{
6426 s//\1/
6429 s/.*/./; q'`
6430 test -d "$as_dir" && break
6431 done
6432 test -z "$as_dirs" || eval "mkdir $as_dirs"
6433 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6436 } # as_fn_mkdir_p
6437 if mkdir -p . 2>/dev/null; then
6438 as_mkdir_p='mkdir -p "$as_dir"'
6439 else
6440 test -d ./-p && rmdir ./-p
6441 as_mkdir_p=false
6444 if test -x / >/dev/null 2>&1; then
6445 as_test_x='test -x'
6446 else
6447 if ls -dL / >/dev/null 2>&1; then
6448 as_ls_L_option=L
6449 else
6450 as_ls_L_option=
6452 as_test_x='
6453 eval sh -c '\''
6454 if test -d "$1"; then
6455 test -d "$1/.";
6456 else
6457 case $1 in #(
6458 -*)set "./$1";;
6459 esac;
6460 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6461 ???[sx]*):;;*)false;;esac;fi
6462 '\'' sh
6465 as_executable_p=$as_test_x
6467 # Sed expression to map a string onto a valid CPP name.
6468 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6470 # Sed expression to map a string onto a valid variable name.
6471 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6474 exec 6>&1
6475 ## ----------------------------------- ##
6476 ## Main body of $CONFIG_STATUS script. ##
6477 ## ----------------------------------- ##
6478 _ASEOF
6479 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6482 # Save the log message, to keep $0 and so on meaningful, and to
6483 # report actual input values of CONFIG_FILES etc. instead of their
6484 # values after options handling.
6485 ac_log="
6486 This file was extended by wmnotify $as_me 1.0.0, which was
6487 generated by GNU Autoconf 2.67. Invocation command line was
6489 CONFIG_FILES = $CONFIG_FILES
6490 CONFIG_HEADERS = $CONFIG_HEADERS
6491 CONFIG_LINKS = $CONFIG_LINKS
6492 CONFIG_COMMANDS = $CONFIG_COMMANDS
6493 $ $0 $@
6495 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6498 _ACEOF
6500 case $ac_config_files in *"
6501 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6502 esac
6504 case $ac_config_headers in *"
6505 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6506 esac
6509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6510 # Files that config.status was made for.
6511 config_files="$ac_config_files"
6512 config_headers="$ac_config_headers"
6513 config_commands="$ac_config_commands"
6515 _ACEOF
6517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6518 ac_cs_usage="\
6519 \`$as_me' instantiates files and other configuration actions
6520 from templates according to the current configuration. Unless the files
6521 and actions are specified as TAGs, all are instantiated by default.
6523 Usage: $0 [OPTION]... [TAG]...
6525 -h, --help print this help, then exit
6526 -V, --version print version number and configuration settings, then exit
6527 --config print configuration, then exit
6528 -q, --quiet, --silent
6529 do not print progress messages
6530 -d, --debug don't remove temporary files
6531 --recheck update $as_me by reconfiguring in the same conditions
6532 --file=FILE[:TEMPLATE]
6533 instantiate the configuration file FILE
6534 --header=FILE[:TEMPLATE]
6535 instantiate the configuration header FILE
6537 Configuration files:
6538 $config_files
6540 Configuration headers:
6541 $config_headers
6543 Configuration commands:
6544 $config_commands
6546 Report bugs to the package provider."
6548 _ACEOF
6549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6550 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6551 ac_cs_version="\\
6552 wmnotify config.status 1.0.0
6553 configured by $0, generated by GNU Autoconf 2.67,
6554 with options \\"\$ac_cs_config\\"
6556 Copyright (C) 2010 Free Software Foundation, Inc.
6557 This config.status script is free software; the Free Software Foundation
6558 gives unlimited permission to copy, distribute and modify it."
6560 ac_pwd='$ac_pwd'
6561 srcdir='$srcdir'
6562 INSTALL='$INSTALL'
6563 MKDIR_P='$MKDIR_P'
6564 AWK='$AWK'
6565 test -n "\$AWK" || AWK=awk
6566 _ACEOF
6568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6569 # The default lists apply if the user does not specify any file.
6570 ac_need_defaults=:
6571 while test $# != 0
6573 case $1 in
6574 --*=?*)
6575 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6576 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6577 ac_shift=:
6579 --*=)
6580 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6581 ac_optarg=
6582 ac_shift=:
6585 ac_option=$1
6586 ac_optarg=$2
6587 ac_shift=shift
6589 esac
6591 case $ac_option in
6592 # Handling of the options.
6593 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6594 ac_cs_recheck=: ;;
6595 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6596 $as_echo "$ac_cs_version"; exit ;;
6597 --config | --confi | --conf | --con | --co | --c )
6598 $as_echo "$ac_cs_config"; exit ;;
6599 --debug | --debu | --deb | --de | --d | -d )
6600 debug=: ;;
6601 --file | --fil | --fi | --f )
6602 $ac_shift
6603 case $ac_optarg in
6604 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6605 '') as_fn_error $? "missing file argument" ;;
6606 esac
6607 as_fn_append CONFIG_FILES " '$ac_optarg'"
6608 ac_need_defaults=false;;
6609 --header | --heade | --head | --hea )
6610 $ac_shift
6611 case $ac_optarg in
6612 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6613 esac
6614 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6615 ac_need_defaults=false;;
6616 --he | --h)
6617 # Conflict between --help and --header
6618 as_fn_error $? "ambiguous option: \`$1'
6619 Try \`$0 --help' for more information.";;
6620 --help | --hel | -h )
6621 $as_echo "$ac_cs_usage"; exit ;;
6622 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6623 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6624 ac_cs_silent=: ;;
6626 # This is an error.
6627 -*) as_fn_error $? "unrecognized option: \`$1'
6628 Try \`$0 --help' for more information." ;;
6630 *) as_fn_append ac_config_targets " $1"
6631 ac_need_defaults=false ;;
6633 esac
6634 shift
6635 done
6637 ac_configure_extra_args=
6639 if $ac_cs_silent; then
6640 exec 6>/dev/null
6641 ac_configure_extra_args="$ac_configure_extra_args --silent"
6644 _ACEOF
6645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6646 if \$ac_cs_recheck; then
6647 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6648 shift
6649 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6650 CONFIG_SHELL='$SHELL'
6651 export CONFIG_SHELL
6652 exec "\$@"
6655 _ACEOF
6656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6657 exec 5>>config.log
6659 echo
6660 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6661 ## Running $as_me. ##
6662 _ASBOX
6663 $as_echo "$ac_log"
6664 } >&5
6666 _ACEOF
6667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6669 # INIT-COMMANDS
6671 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6673 _ACEOF
6675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6677 # Handling of arguments.
6678 for ac_config_target in $ac_config_targets
6680 case $ac_config_target in
6681 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
6682 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6683 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6684 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6685 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6687 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
6688 esac
6689 done
6692 # If the user did not use the arguments to specify the items to instantiate,
6693 # then the envvar interface is used. Set only those that are not.
6694 # We use the long form for the default assignment because of an extremely
6695 # bizarre bug on SunOS 4.1.3.
6696 if $ac_need_defaults; then
6697 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6698 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6699 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6702 # Have a temporary directory for convenience. Make it in the build tree
6703 # simply because there is no reason against having it here, and in addition,
6704 # creating and moving files from /tmp can sometimes cause problems.
6705 # Hook for its removal unless debugging.
6706 # Note that there is a small window in which the directory will not be cleaned:
6707 # after its creation but before its name has been assigned to `$tmp'.
6708 $debug ||
6710 tmp=
6711 trap 'exit_status=$?
6712 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6714 trap 'as_fn_exit 1' 1 2 13 15
6716 # Create a (secure) tmp directory for tmp files.
6719 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6720 test -n "$tmp" && test -d "$tmp"
6721 } ||
6723 tmp=./conf$$-$RANDOM
6724 (umask 077 && mkdir "$tmp")
6725 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6727 # Set up the scripts for CONFIG_FILES section.
6728 # No need to generate them if there are no CONFIG_FILES.
6729 # This happens for instance with `./config.status config.h'.
6730 if test -n "$CONFIG_FILES"; then
6733 ac_cr=`echo X | tr X '\015'`
6734 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6735 # But we know of no other shell where ac_cr would be empty at this
6736 # point, so we can use a bashism as a fallback.
6737 if test "x$ac_cr" = x; then
6738 eval ac_cr=\$\'\\r\'
6740 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6741 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6742 ac_cs_awk_cr='\\r'
6743 else
6744 ac_cs_awk_cr=$ac_cr
6747 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6748 _ACEOF
6752 echo "cat >conf$$subs.awk <<_ACEOF" &&
6753 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6754 echo "_ACEOF"
6755 } >conf$$subs.sh ||
6756 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6757 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6758 ac_delim='%!_!# '
6759 for ac_last_try in false false false false false :; do
6760 . ./conf$$subs.sh ||
6761 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6763 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6764 if test $ac_delim_n = $ac_delim_num; then
6765 break
6766 elif $ac_last_try; then
6767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6768 else
6769 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6771 done
6772 rm -f conf$$subs.sh
6774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6775 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6776 _ACEOF
6777 sed -n '
6779 s/^/S["/; s/!.*/"]=/
6782 s/^[^!]*!//
6783 :repl
6784 t repl
6785 s/'"$ac_delim"'$//
6786 t delim
6789 s/\(.\{148\}\)..*/\1/
6790 t more1
6791 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6794 b repl
6795 :more1
6796 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6799 s/.\{148\}//
6800 t nl
6801 :delim
6803 s/\(.\{148\}\)..*/\1/
6804 t more2
6805 s/["\\]/\\&/g; s/^/"/; s/$/"/
6808 :more2
6809 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6812 s/.\{148\}//
6813 t delim
6814 ' <conf$$subs.awk | sed '
6815 /^[^""]/{
6817 s/\n//
6819 ' >>$CONFIG_STATUS || ac_write_fail=1
6820 rm -f conf$$subs.awk
6821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6822 _ACAWK
6823 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6824 for (key in S) S_is_set[key] = 1
6825 FS = "\a"
6829 line = $ 0
6830 nfields = split(line, field, "@")
6831 substed = 0
6832 len = length(field[1])
6833 for (i = 2; i < nfields; i++) {
6834 key = field[i]
6835 keylen = length(key)
6836 if (S_is_set[key]) {
6837 value = S[key]
6838 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6839 len += length(value) + length(field[++i])
6840 substed = 1
6841 } else
6842 len += 1 + keylen
6845 print line
6848 _ACAWK
6849 _ACEOF
6850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6851 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6852 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6853 else
6855 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6856 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6857 _ACEOF
6859 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6860 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6861 # trailing colons and then remove the whole line if VPATH becomes empty
6862 # (actually we leave an empty line to preserve line numbers).
6863 if test "x$srcdir" = x.; then
6864 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6866 s///
6867 s/^/:/
6868 s/[ ]*$/:/
6869 s/:\$(srcdir):/:/g
6870 s/:\${srcdir}:/:/g
6871 s/:@srcdir@:/:/g
6872 s/^:*//
6873 s/:*$//
6875 s/\(=[ ]*\).*/\1/
6877 s/\n//
6878 s/^[^=]*=[ ]*$//
6882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6883 fi # test -n "$CONFIG_FILES"
6885 # Set up the scripts for CONFIG_HEADERS section.
6886 # No need to generate them if there are no CONFIG_HEADERS.
6887 # This happens for instance with `./config.status Makefile'.
6888 if test -n "$CONFIG_HEADERS"; then
6889 cat >"$tmp/defines.awk" <<\_ACAWK ||
6890 BEGIN {
6891 _ACEOF
6893 # Transform confdefs.h into an awk script `defines.awk', embedded as
6894 # here-document in config.status, that substitutes the proper values into
6895 # config.h.in to produce config.h.
6897 # Create a delimiter string that does not exist in confdefs.h, to ease
6898 # handling of long lines.
6899 ac_delim='%!_!# '
6900 for ac_last_try in false false :; do
6901 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6902 if test -z "$ac_t"; then
6903 break
6904 elif $ac_last_try; then
6905 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6906 else
6907 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6909 done
6911 # For the awk script, D is an array of macro values keyed by name,
6912 # likewise P contains macro parameters if any. Preserve backslash
6913 # newline sequences.
6915 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6916 sed -n '
6917 s/.\{148\}/&'"$ac_delim"'/g
6918 t rset
6919 :rset
6920 s/^[ ]*#[ ]*define[ ][ ]*/ /
6921 t def
6923 :def
6924 s/\\$//
6925 t bsnl
6926 s/["\\]/\\&/g
6927 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6928 D["\1"]=" \3"/p
6929 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6931 :bsnl
6932 s/["\\]/\\&/g
6933 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6934 D["\1"]=" \3\\\\\\n"\\/p
6935 t cont
6936 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6937 t cont
6939 :cont
6941 s/.\{148\}/&'"$ac_delim"'/g
6942 t clear
6943 :clear
6944 s/\\$//
6945 t bsnlc
6946 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6948 :bsnlc
6949 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6950 b cont
6951 ' <confdefs.h | sed '
6952 s/'"$ac_delim"'/"\\\
6953 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6956 for (key in D) D_is_set[key] = 1
6957 FS = "\a"
6959 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6960 line = \$ 0
6961 split(line, arg, " ")
6962 if (arg[1] == "#") {
6963 defundef = arg[2]
6964 mac1 = arg[3]
6965 } else {
6966 defundef = substr(arg[1], 2)
6967 mac1 = arg[2]
6969 split(mac1, mac2, "(") #)
6970 macro = mac2[1]
6971 prefix = substr(line, 1, index(line, defundef) - 1)
6972 if (D_is_set[macro]) {
6973 # Preserve the white space surrounding the "#".
6974 print prefix "define", macro P[macro] D[macro]
6975 next
6976 } else {
6977 # Replace #undef with comments. This is necessary, for example,
6978 # in the case of _POSIX_SOURCE, which is predefined and required
6979 # on some systems where configure will not decide to define it.
6980 if (defundef == "undef") {
6981 print "/*", prefix defundef, macro, "*/"
6982 next
6986 { print }
6987 _ACAWK
6988 _ACEOF
6989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6990 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6991 fi # test -n "$CONFIG_HEADERS"
6994 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6995 shift
6996 for ac_tag
6998 case $ac_tag in
6999 :[FHLC]) ac_mode=$ac_tag; continue;;
7000 esac
7001 case $ac_mode$ac_tag in
7002 :[FHL]*:*);;
7003 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
7004 :[FH]-) ac_tag=-:-;;
7005 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7006 esac
7007 ac_save_IFS=$IFS
7008 IFS=:
7009 set x $ac_tag
7010 IFS=$ac_save_IFS
7011 shift
7012 ac_file=$1
7013 shift
7015 case $ac_mode in
7016 :L) ac_source=$1;;
7017 :[FH])
7018 ac_file_inputs=
7019 for ac_f
7021 case $ac_f in
7022 -) ac_f="$tmp/stdin";;
7023 *) # Look for the file first in the build tree, then in the source tree
7024 # (if the path is not absolute). The absolute path cannot be DOS-style,
7025 # because $ac_f cannot contain `:'.
7026 test -f "$ac_f" ||
7027 case $ac_f in
7028 [\\/$]*) false;;
7029 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7030 esac ||
7031 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
7032 esac
7033 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7034 as_fn_append ac_file_inputs " '$ac_f'"
7035 done
7037 # Let's still pretend it is `configure' which instantiates (i.e., don't
7038 # use $as_me), people would be surprised to read:
7039 # /* config.h. Generated by config.status. */
7040 configure_input='Generated from '`
7041 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7042 `' by configure.'
7043 if test x"$ac_file" != x-; then
7044 configure_input="$ac_file. $configure_input"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7046 $as_echo "$as_me: creating $ac_file" >&6;}
7048 # Neutralize special characters interpreted by sed in replacement strings.
7049 case $configure_input in #(
7050 *\&* | *\|* | *\\* )
7051 ac_sed_conf_input=`$as_echo "$configure_input" |
7052 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7053 *) ac_sed_conf_input=$configure_input;;
7054 esac
7056 case $ac_tag in
7057 *:-:* | *:-) cat >"$tmp/stdin" \
7058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7059 esac
7061 esac
7063 ac_dir=`$as_dirname -- "$ac_file" ||
7064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7065 X"$ac_file" : 'X\(//\)[^/]' \| \
7066 X"$ac_file" : 'X\(//\)$' \| \
7067 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7068 $as_echo X"$ac_file" |
7069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7070 s//\1/
7073 /^X\(\/\/\)[^/].*/{
7074 s//\1/
7077 /^X\(\/\/\)$/{
7078 s//\1/
7081 /^X\(\/\).*/{
7082 s//\1/
7085 s/.*/./; q'`
7086 as_dir="$ac_dir"; as_fn_mkdir_p
7087 ac_builddir=.
7089 case "$ac_dir" in
7090 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7092 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7093 # A ".." for each directory in $ac_dir_suffix.
7094 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7095 case $ac_top_builddir_sub in
7096 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7097 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7098 esac ;;
7099 esac
7100 ac_abs_top_builddir=$ac_pwd
7101 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7102 # for backward compatibility:
7103 ac_top_builddir=$ac_top_build_prefix
7105 case $srcdir in
7106 .) # We are building in place.
7107 ac_srcdir=.
7108 ac_top_srcdir=$ac_top_builddir_sub
7109 ac_abs_top_srcdir=$ac_pwd ;;
7110 [\\/]* | ?:[\\/]* ) # Absolute name.
7111 ac_srcdir=$srcdir$ac_dir_suffix;
7112 ac_top_srcdir=$srcdir
7113 ac_abs_top_srcdir=$srcdir ;;
7114 *) # Relative name.
7115 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7116 ac_top_srcdir=$ac_top_build_prefix$srcdir
7117 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7118 esac
7119 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7122 case $ac_mode in
7125 # CONFIG_FILE
7128 case $INSTALL in
7129 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7130 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7131 esac
7132 ac_MKDIR_P=$MKDIR_P
7133 case $MKDIR_P in
7134 [\\/$]* | ?:[\\/]* ) ;;
7135 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7136 esac
7137 _ACEOF
7139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7140 # If the template does not know about datarootdir, expand it.
7141 # FIXME: This hack should be removed a few years after 2.60.
7142 ac_datarootdir_hack=; ac_datarootdir_seen=
7143 ac_sed_dataroot='
7144 /datarootdir/ {
7148 /@datadir@/p
7149 /@docdir@/p
7150 /@infodir@/p
7151 /@localedir@/p
7152 /@mandir@/p'
7153 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7154 *datarootdir*) ac_datarootdir_seen=yes;;
7155 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7157 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7158 _ACEOF
7159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7160 ac_datarootdir_hack='
7161 s&@datadir@&$datadir&g
7162 s&@docdir@&$docdir&g
7163 s&@infodir@&$infodir&g
7164 s&@localedir@&$localedir&g
7165 s&@mandir@&$mandir&g
7166 s&\\\${datarootdir}&$datarootdir&g' ;;
7167 esac
7168 _ACEOF
7170 # Neutralize VPATH when `$srcdir' = `.'.
7171 # Shell code in configure.ac might set extrasub.
7172 # FIXME: do we really want to maintain this feature?
7173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7174 ac_sed_extra="$ac_vpsub
7175 $extrasub
7176 _ACEOF
7177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7179 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7180 s|@configure_input@|$ac_sed_conf_input|;t t
7181 s&@top_builddir@&$ac_top_builddir_sub&;t t
7182 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7183 s&@srcdir@&$ac_srcdir&;t t
7184 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7185 s&@top_srcdir@&$ac_top_srcdir&;t t
7186 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7187 s&@builddir@&$ac_builddir&;t t
7188 s&@abs_builddir@&$ac_abs_builddir&;t t
7189 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7190 s&@INSTALL@&$ac_INSTALL&;t t
7191 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7192 $ac_datarootdir_hack
7194 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7197 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7198 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7199 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7201 which seems to be undefined. Please make sure it is defined" >&5
7202 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7203 which seems to be undefined. Please make sure it is defined" >&2;}
7205 rm -f "$tmp/stdin"
7206 case $ac_file in
7207 -) cat "$tmp/out" && rm -f "$tmp/out";;
7208 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7209 esac \
7210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7214 # CONFIG_HEADER
7216 if test x"$ac_file" != x-; then
7218 $as_echo "/* $configure_input */" \
7219 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7220 } >"$tmp/config.h" \
7221 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7222 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7224 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7225 else
7226 rm -f "$ac_file"
7227 mv "$tmp/config.h" "$ac_file" \
7228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7230 else
7231 $as_echo "/* $configure_input */" \
7232 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7233 || as_fn_error $? "could not create -" "$LINENO" 5
7235 # Compute "$ac_file"'s index in $config_headers.
7236 _am_arg="$ac_file"
7237 _am_stamp_count=1
7238 for _am_header in $config_headers :; do
7239 case $_am_header in
7240 $_am_arg | $_am_arg:* )
7241 break ;;
7243 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7244 esac
7245 done
7246 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7247 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7248 X"$_am_arg" : 'X\(//\)[^/]' \| \
7249 X"$_am_arg" : 'X\(//\)$' \| \
7250 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7251 $as_echo X"$_am_arg" |
7252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7253 s//\1/
7256 /^X\(\/\/\)[^/].*/{
7257 s//\1/
7260 /^X\(\/\/\)$/{
7261 s//\1/
7264 /^X\(\/\).*/{
7265 s//\1/
7268 s/.*/./; q'`/stamp-h$_am_stamp_count
7271 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7272 $as_echo "$as_me: executing $ac_file commands" >&6;}
7274 esac
7277 case $ac_file$ac_mode in
7278 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7279 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7280 # are listed without --file. Let's play safe and only enable the eval
7281 # if we detect the quoting.
7282 case $CONFIG_FILES in
7283 *\'*) eval set x "$CONFIG_FILES" ;;
7284 *) set x $CONFIG_FILES ;;
7285 esac
7286 shift
7287 for mf
7289 # Strip MF so we end up with the name of the file.
7290 mf=`echo "$mf" | sed -e 's/:.*$//'`
7291 # Check whether this is an Automake generated Makefile or not.
7292 # We used to match only the files named `Makefile.in', but
7293 # some people rename them; so instead we look at the file content.
7294 # Grep'ing the first line is not enough: some people post-process
7295 # each Makefile.in and add a new line on top of each file to say so.
7296 # Grep'ing the whole file is not good either: AIX grep has a line
7297 # limit of 2048, but all sed's we know have understand at least 4000.
7298 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7299 dirpart=`$as_dirname -- "$mf" ||
7300 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7301 X"$mf" : 'X\(//\)[^/]' \| \
7302 X"$mf" : 'X\(//\)$' \| \
7303 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7304 $as_echo X"$mf" |
7305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7306 s//\1/
7309 /^X\(\/\/\)[^/].*/{
7310 s//\1/
7313 /^X\(\/\/\)$/{
7314 s//\1/
7317 /^X\(\/\).*/{
7318 s//\1/
7321 s/.*/./; q'`
7322 else
7323 continue
7325 # Extract the definition of DEPDIR, am__include, and am__quote
7326 # from the Makefile without running `make'.
7327 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7328 test -z "$DEPDIR" && continue
7329 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7330 test -z "am__include" && continue
7331 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7332 # When using ansi2knr, U may be empty or an underscore; expand it
7333 U=`sed -n 's/^U = //p' < "$mf"`
7334 # Find all dependency output files, they are included files with
7335 # $(DEPDIR) in their names. We invoke sed twice because it is the
7336 # simplest approach to changing $(DEPDIR) to its actual value in the
7337 # expansion.
7338 for file in `sed -n "
7339 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7340 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7341 # Make sure the directory exists.
7342 test -f "$dirpart/$file" && continue
7343 fdir=`$as_dirname -- "$file" ||
7344 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7345 X"$file" : 'X\(//\)[^/]' \| \
7346 X"$file" : 'X\(//\)$' \| \
7347 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7348 $as_echo X"$file" |
7349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7350 s//\1/
7353 /^X\(\/\/\)[^/].*/{
7354 s//\1/
7357 /^X\(\/\/\)$/{
7358 s//\1/
7361 /^X\(\/\).*/{
7362 s//\1/
7365 s/.*/./; q'`
7366 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7367 # echo "creating $dirpart/$file"
7368 echo '# dummy' > "$dirpart/$file"
7369 done
7370 done
7374 esac
7375 done # for ac_tag
7378 as_fn_exit 0
7379 _ACEOF
7380 ac_clean_files=$ac_clean_files_save
7382 test $ac_write_fail = 0 ||
7383 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7386 # configure is writing to config.log, and then calls config.status.
7387 # config.status does its own redirection, appending to config.log.
7388 # Unfortunately, on DOS this fails, as config.log is still kept open
7389 # by configure, so config.status won't be able to write to it; its
7390 # output is simply discarded. So we exec the FD to /dev/null,
7391 # effectively closing config.log, so it can be properly (re)opened and
7392 # appended to by config.status. When coming back to configure, we
7393 # need to make the FD available again.
7394 if test "$no_create" != yes; then
7395 ac_cs_success=:
7396 ac_config_status_args=
7397 test "$silent" = yes &&
7398 ac_config_status_args="$ac_config_status_args --quiet"
7399 exec 5>/dev/null
7400 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7401 exec 5>>config.log
7402 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7403 # would make configure fail if this is the last instruction.
7404 $ac_cs_success || as_fn_exit 1
7406 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7408 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7412 echo
7413 echo "Configuration summary:"
7414 echo
7415 echo " Install path: ${prefix}"
7416 echo " Compiler: ${CC}"
7417 echo " Compiler flags: ${CFLAGS}"
7418 echo " Linker flags: ${LIBS}"
7419 echo " OpenSSL support: $ac_cv_enable_ssl"
7420 echo " libsndfile support: $ac_cv_enable_libsndfile"
7421 if test "x${ac_cv_enable_libsndfile}" = xno; then
7422 echo
7423 echo " WARNING: Althought the 'libsndfile' library is not mandatory, without it"
7424 echo " you won't have audible notifications."
7427 echo
7428 echo "Configure finished. Type 'make' to build."