OSDN Git Service

fist commit
[c-lockfree/lockfree_container.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for lockfree 0.1.
4 #
5 # Report bugs to <n.nakai@sdy.co.jp>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
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
102
103      ;;
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
109 fi
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
113 fi
114
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='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
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   *) :
149      ;;
150 esac
151 fi
152 "
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; }
158
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 :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
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
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
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
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
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
200 fi
201 fi
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
211
212
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+"$@"}
222 fi
223
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 and n.nakai@sdy.co.jp
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
235 $0: have one."
236   fi
237   exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255   { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264   return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272   set +e
273   as_fn_set_status $1
274   exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283   case $as_dir in #(
284   -*) as_dir=./$as_dir;;
285   esac
286   test -d "$as_dir" || eval $as_mkdir_p || {
287     as_dirs=
288     while :; do
289       case $as_dir in #(
290       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291       *) as_qdir=$as_dir;;
292       esac
293       as_dirs="'$as_qdir' $as_dirs"
294       as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296          X"$as_dir" : 'X\(//\)[^/]' \| \
297          X"$as_dir" : 'X\(//\)$' \| \
298          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301             s//\1/
302             q
303           }
304           /^X\(\/\/\)[^/].*/{
305             s//\1/
306             q
307           }
308           /^X\(\/\/\)$/{
309             s//\1/
310             q
311           }
312           /^X\(\/\).*/{
313             s//\1/
314             q
315           }
316           s/.*/./; q'`
317       test -d "$as_dir" && break
318     done
319     test -z "$as_dirs" || eval "mkdir $as_dirs"
320   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331   eval 'as_fn_append ()
332   {
333     eval $1+=\$2
334   }'
335 else
336   as_fn_append ()
337   {
338     eval $1=\$$1\$2
339   }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348   eval 'as_fn_arith ()
349   {
350     as_val=$(( $* ))
351   }'
352 else
353   as_fn_arith ()
354   {
355     as_val=`expr "$@" || test $? -eq 1`
356   }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367   as_status=$?; test $as_status -eq 0 && as_status=1
368   if test "$3"; then
369     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371   fi
372   $as_echo "$as_me: error: $1" >&2
373   as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377    test "X`expr 00001 : '.*\(...\)'`" = X001; then
378   as_expr=expr
379 else
380   as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384   as_basename=basename
385 else
386   as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390   as_dirname=dirname
391 else
392   as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397          X"$0" : 'X\(//\)$' \| \
398          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400     sed '/^.*\/\([^/][^/]*\)\/*$/{
401             s//\1/
402             q
403           }
404           /^X\/\(\/\/\)$/{
405             s//\1/
406             q
407           }
408           /^X\/\(\/\).*/{
409             s//\1/
410             q
411           }
412           s/.*/./; q'`
413
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422   as_lineno_1=$LINENO as_lineno_1a=$LINENO
423   as_lineno_2=$LINENO as_lineno_2a=$LINENO
424   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427   sed -n '
428     p
429     /[$]LINENO/=
430   ' <$as_myself |
431     sed '
432       s/[$]LINENO.*/&-/
433       t lineno
434       b
435       :lineno
436       N
437       :loop
438       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439       t loop
440       s/-\n.*//
441     ' >$as_me.lineno &&
442   chmod +x "$as_me.lineno" ||
443     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445   # Don't try to exec as it changes $[0], causing all sort of problems
446   # (the dirname of $[0] is not the place where we might find the
447   # original and so on.  Autoconf is especially sensitive to this).
448   . "./$as_me.lineno"
449   # Exit status is that of the last command.
450   exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456   case `echo 'xy\c'` in
457   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
458   xy)  ECHO_C='\c';;
459   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460        ECHO_T=' ';;
461   esac;;
462 *)
463   ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468   rm -f conf$$.dir/conf$$.file
469 else
470   rm -f conf$$.dir
471   mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474   if ln -s conf$$.file conf$$ 2>/dev/null; then
475     as_ln_s='ln -s'
476     # ... but there are two gotchas:
477     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479     # In both cases, we have to default to `cp -p'.
480     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481       as_ln_s='cp -p'
482   elif ln conf$$.file conf$$ 2>/dev/null; then
483     as_ln_s=ln
484   else
485     as_ln_s='cp -p'
486   fi
487 else
488   as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494   as_mkdir_p='mkdir -p "$as_dir"'
495 else
496   test -d ./-p && rmdir ./-p
497   as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501   as_test_x='test -x'
502 else
503   if ls -dL / >/dev/null 2>&1; then
504     as_ls_L_option=L
505   else
506     as_ls_L_option=
507   fi
508   as_test_x='
509     eval sh -c '\''
510       if test -d "$1"; then
511         test -d "$1/.";
512       else
513         case $1 in #(
514         -*)set "./$1";;
515         esac;
516         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517         ???[sx]*):;;*)false;;esac;fi
518     '\'' sh
519   '
520 fi
521 as_executable_p=$as_test_x
522
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530 exec 7<&0 </dev/null 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
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=
548
549 # Identity of this package.
550 PACKAGE_NAME='lockfree'
551 PACKAGE_TARNAME='lockfree'
552 PACKAGE_VERSION='0.1'
553 PACKAGE_STRING='lockfree 0.1'
554 PACKAGE_BUGREPORT='n.nakai@sdy.co.jp'
555 PACKAGE_URL=''
556
557 ac_unique_file="sample/lockfree_tests.cpp"
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"
593
594 ac_subst_vars='LTLIBOBJS
595 LIBOBJS
596 EGREP
597 GREP
598 CPP
599 ac_ct_CC
600 CFLAGS
601 CC
602 OBJEXT
603 EXEEXT
604 ac_ct_CXX
605 CPPFLAGS
606 LDFLAGS
607 CXXFLAGS
608 CXX
609 target_alias
610 host_alias
611 build_alias
612 LIBS
613 ECHO_T
614 ECHO_N
615 ECHO_C
616 DEFS
617 mandir
618 localedir
619 libdir
620 psdir
621 pdfdir
622 dvidir
623 htmldir
624 infodir
625 docdir
626 oldincludedir
627 includedir
628 localstatedir
629 sharedstatedir
630 sysconfdir
631 datadir
632 datarootdir
633 libexecdir
634 sbindir
635 bindir
636 program_transform_name
637 prefix
638 exec_prefix
639 PACKAGE_URL
640 PACKAGE_BUGREPORT
641 PACKAGE_STRING
642 PACKAGE_VERSION
643 PACKAGE_TARNAME
644 PACKAGE_NAME
645 PATH_SEPARATOR
646 SHELL'
647 ac_subst_files=''
648 ac_user_opts='
649 enable_option_checking
650 '
651       ac_precious_vars='build_alias
652 host_alias
653 target_alias
654 CXX
655 CXXFLAGS
656 LDFLAGS
657 LIBS
658 CPPFLAGS
659 CCC
660 CC
661 CFLAGS
662 CPP'
663
664
665 # Initialize some variables set by options.
666 ac_init_help=
667 ac_init_version=false
668 ac_unrecognized_opts=
669 ac_unrecognized_sep=
670 # The variables have the same names as the options, with
671 # dashes changed to underlines.
672 cache_file=/dev/null
673 exec_prefix=NONE
674 no_create=
675 no_recursion=
676 prefix=NONE
677 program_prefix=NONE
678 program_suffix=NONE
679 program_transform_name=s,x,x,
680 silent=
681 site=
682 srcdir=
683 verbose=
684 x_includes=NONE
685 x_libraries=NONE
686
687 # Installation directory options.
688 # These are left unexpanded so users can "make install exec_prefix=/foo"
689 # and all the variables that are supposed to be based on exec_prefix
690 # by default will actually change.
691 # Use braces instead of parens because sh, perl, etc. also accept them.
692 # (The list follows the same order as the GNU Coding Standards.)
693 bindir='${exec_prefix}/bin'
694 sbindir='${exec_prefix}/sbin'
695 libexecdir='${exec_prefix}/libexec'
696 datarootdir='${prefix}/share'
697 datadir='${datarootdir}'
698 sysconfdir='${prefix}/etc'
699 sharedstatedir='${prefix}/com'
700 localstatedir='${prefix}/var'
701 includedir='${prefix}/include'
702 oldincludedir='/usr/include'
703 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
704 infodir='${datarootdir}/info'
705 htmldir='${docdir}'
706 dvidir='${docdir}'
707 pdfdir='${docdir}'
708 psdir='${docdir}'
709 libdir='${exec_prefix}/lib'
710 localedir='${datarootdir}/locale'
711 mandir='${datarootdir}/man'
712
713 ac_prev=
714 ac_dashdash=
715 for ac_option
716 do
717   # If the previous option needs an argument, assign it.
718   if test -n "$ac_prev"; then
719     eval $ac_prev=\$ac_option
720     ac_prev=
721     continue
722   fi
723
724   case $ac_option in
725   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
726   *)    ac_optarg=yes ;;
727   esac
728
729   # Accept the important Cygnus configure options, so we can diagnose typos.
730
731   case $ac_dashdash$ac_option in
732   --)
733     ac_dashdash=yes ;;
734
735   -bindir | --bindir | --bindi | --bind | --bin | --bi)
736     ac_prev=bindir ;;
737   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
738     bindir=$ac_optarg ;;
739
740   -build | --build | --buil | --bui | --bu)
741     ac_prev=build_alias ;;
742   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
743     build_alias=$ac_optarg ;;
744
745   -cache-file | --cache-file | --cache-fil | --cache-fi \
746   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
747     ac_prev=cache_file ;;
748   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
749   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
750     cache_file=$ac_optarg ;;
751
752   --config-cache | -C)
753     cache_file=config.cache ;;
754
755   -datadir | --datadir | --datadi | --datad)
756     ac_prev=datadir ;;
757   -datadir=* | --datadir=* | --datadi=* | --datad=*)
758     datadir=$ac_optarg ;;
759
760   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
761   | --dataroo | --dataro | --datar)
762     ac_prev=datarootdir ;;
763   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
764   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
765     datarootdir=$ac_optarg ;;
766
767   -disable-* | --disable-*)
768     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
769     # Reject names that are not valid shell variable names.
770     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
771       as_fn_error "invalid feature name: $ac_useropt"
772     ac_useropt_orig=$ac_useropt
773     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
774     case $ac_user_opts in
775       *"
776 "enable_$ac_useropt"
777 "*) ;;
778       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
779          ac_unrecognized_sep=', ';;
780     esac
781     eval enable_$ac_useropt=no ;;
782
783   -docdir | --docdir | --docdi | --doc | --do)
784     ac_prev=docdir ;;
785   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
786     docdir=$ac_optarg ;;
787
788   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
789     ac_prev=dvidir ;;
790   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
791     dvidir=$ac_optarg ;;
792
793   -enable-* | --enable-*)
794     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795     # Reject names that are not valid shell variable names.
796     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
797       as_fn_error "invalid feature name: $ac_useropt"
798     ac_useropt_orig=$ac_useropt
799     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
800     case $ac_user_opts in
801       *"
802 "enable_$ac_useropt"
803 "*) ;;
804       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
805          ac_unrecognized_sep=', ';;
806     esac
807     eval enable_$ac_useropt=\$ac_optarg ;;
808
809   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
810   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
811   | --exec | --exe | --ex)
812     ac_prev=exec_prefix ;;
813   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
814   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
815   | --exec=* | --exe=* | --ex=*)
816     exec_prefix=$ac_optarg ;;
817
818   -gas | --gas | --ga | --g)
819     # Obsolete; use --with-gas.
820     with_gas=yes ;;
821
822   -help | --help | --hel | --he | -h)
823     ac_init_help=long ;;
824   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
825     ac_init_help=recursive ;;
826   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
827     ac_init_help=short ;;
828
829   -host | --host | --hos | --ho)
830     ac_prev=host_alias ;;
831   -host=* | --host=* | --hos=* | --ho=*)
832     host_alias=$ac_optarg ;;
833
834   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
835     ac_prev=htmldir ;;
836   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
837   | --ht=*)
838     htmldir=$ac_optarg ;;
839
840   -includedir | --includedir | --includedi | --included | --include \
841   | --includ | --inclu | --incl | --inc)
842     ac_prev=includedir ;;
843   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
844   | --includ=* | --inclu=* | --incl=* | --inc=*)
845     includedir=$ac_optarg ;;
846
847   -infodir | --infodir | --infodi | --infod | --info | --inf)
848     ac_prev=infodir ;;
849   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
850     infodir=$ac_optarg ;;
851
852   -libdir | --libdir | --libdi | --libd)
853     ac_prev=libdir ;;
854   -libdir=* | --libdir=* | --libdi=* | --libd=*)
855     libdir=$ac_optarg ;;
856
857   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
858   | --libexe | --libex | --libe)
859     ac_prev=libexecdir ;;
860   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
861   | --libexe=* | --libex=* | --libe=*)
862     libexecdir=$ac_optarg ;;
863
864   -localedir | --localedir | --localedi | --localed | --locale)
865     ac_prev=localedir ;;
866   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
867     localedir=$ac_optarg ;;
868
869   -localstatedir | --localstatedir | --localstatedi | --localstated \
870   | --localstate | --localstat | --localsta | --localst | --locals)
871     ac_prev=localstatedir ;;
872   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
873   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
874     localstatedir=$ac_optarg ;;
875
876   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
877     ac_prev=mandir ;;
878   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
879     mandir=$ac_optarg ;;
880
881   -nfp | --nfp | --nf)
882     # Obsolete; use --without-fp.
883     with_fp=no ;;
884
885   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
886   | --no-cr | --no-c | -n)
887     no_create=yes ;;
888
889   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
890   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
891     no_recursion=yes ;;
892
893   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
894   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
895   | --oldin | --oldi | --old | --ol | --o)
896     ac_prev=oldincludedir ;;
897   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
898   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
899   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
900     oldincludedir=$ac_optarg ;;
901
902   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
903     ac_prev=prefix ;;
904   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
905     prefix=$ac_optarg ;;
906
907   -program-prefix | --program-prefix | --program-prefi | --program-pref \
908   | --program-pre | --program-pr | --program-p)
909     ac_prev=program_prefix ;;
910   -program-prefix=* | --program-prefix=* | --program-prefi=* \
911   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
912     program_prefix=$ac_optarg ;;
913
914   -program-suffix | --program-suffix | --program-suffi | --program-suff \
915   | --program-suf | --program-su | --program-s)
916     ac_prev=program_suffix ;;
917   -program-suffix=* | --program-suffix=* | --program-suffi=* \
918   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
919     program_suffix=$ac_optarg ;;
920
921   -program-transform-name | --program-transform-name \
922   | --program-transform-nam | --program-transform-na \
923   | --program-transform-n | --program-transform- \
924   | --program-transform | --program-transfor \
925   | --program-transfo | --program-transf \
926   | --program-trans | --program-tran \
927   | --progr-tra | --program-tr | --program-t)
928     ac_prev=program_transform_name ;;
929   -program-transform-name=* | --program-transform-name=* \
930   | --program-transform-nam=* | --program-transform-na=* \
931   | --program-transform-n=* | --program-transform-=* \
932   | --program-transform=* | --program-transfor=* \
933   | --program-transfo=* | --program-transf=* \
934   | --program-trans=* | --program-tran=* \
935   | --progr-tra=* | --program-tr=* | --program-t=*)
936     program_transform_name=$ac_optarg ;;
937
938   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
939     ac_prev=pdfdir ;;
940   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
941     pdfdir=$ac_optarg ;;
942
943   -psdir | --psdir | --psdi | --psd | --ps)
944     ac_prev=psdir ;;
945   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
946     psdir=$ac_optarg ;;
947
948   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
949   | -silent | --silent | --silen | --sile | --sil)
950     silent=yes ;;
951
952   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
953     ac_prev=sbindir ;;
954   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
955   | --sbi=* | --sb=*)
956     sbindir=$ac_optarg ;;
957
958   -sharedstatedir | --sharedstatedir | --sharedstatedi \
959   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
960   | --sharedst | --shareds | --shared | --share | --shar \
961   | --sha | --sh)
962     ac_prev=sharedstatedir ;;
963   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
964   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
965   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
966   | --sha=* | --sh=*)
967     sharedstatedir=$ac_optarg ;;
968
969   -site | --site | --sit)
970     ac_prev=site ;;
971   -site=* | --site=* | --sit=*)
972     site=$ac_optarg ;;
973
974   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
975     ac_prev=srcdir ;;
976   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
977     srcdir=$ac_optarg ;;
978
979   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
980   | --syscon | --sysco | --sysc | --sys | --sy)
981     ac_prev=sysconfdir ;;
982   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
983   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
984     sysconfdir=$ac_optarg ;;
985
986   -target | --target | --targe | --targ | --tar | --ta | --t)
987     ac_prev=target_alias ;;
988   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
989     target_alias=$ac_optarg ;;
990
991   -v | -verbose | --verbose | --verbos | --verbo | --verb)
992     verbose=yes ;;
993
994   -version | --version | --versio | --versi | --vers | -V)
995     ac_init_version=: ;;
996
997   -with-* | --with-*)
998     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001       as_fn_error "invalid package name: $ac_useropt"
1002     ac_useropt_orig=$ac_useropt
1003     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004     case $ac_user_opts in
1005       *"
1006 "with_$ac_useropt"
1007 "*) ;;
1008       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1009          ac_unrecognized_sep=', ';;
1010     esac
1011     eval with_$ac_useropt=\$ac_optarg ;;
1012
1013   -without-* | --without-*)
1014     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017       as_fn_error "invalid package name: $ac_useropt"
1018     ac_useropt_orig=$ac_useropt
1019     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020     case $ac_user_opts in
1021       *"
1022 "with_$ac_useropt"
1023 "*) ;;
1024       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1025          ac_unrecognized_sep=', ';;
1026     esac
1027     eval with_$ac_useropt=no ;;
1028
1029   --x)
1030     # Obsolete; use --with-x.
1031     with_x=yes ;;
1032
1033   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1034   | --x-incl | --x-inc | --x-in | --x-i)
1035     ac_prev=x_includes ;;
1036   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1037   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1038     x_includes=$ac_optarg ;;
1039
1040   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1041   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1042     ac_prev=x_libraries ;;
1043   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1044   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1045     x_libraries=$ac_optarg ;;
1046
1047   -*) as_fn_error "unrecognized option: \`$ac_option'
1048 Try \`$0 --help' for more information."
1049     ;;
1050
1051   *=*)
1052     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1053     # Reject names that are not valid shell variable names.
1054     case $ac_envvar in #(
1055       '' | [0-9]* | *[!_$as_cr_alnum]* )
1056       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1057     esac
1058     eval $ac_envvar=\$ac_optarg
1059     export $ac_envvar ;;
1060
1061   *)
1062     # FIXME: should be removed in autoconf 3.0.
1063     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1064     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1066     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1067     ;;
1068
1069   esac
1070 done
1071
1072 if test -n "$ac_prev"; then
1073   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1074   as_fn_error "missing argument to $ac_option"
1075 fi
1076
1077 if test -n "$ac_unrecognized_opts"; then
1078   case $enable_option_checking in
1079     no) ;;
1080     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1081     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1082   esac
1083 fi
1084
1085 # Check all directory arguments for consistency.
1086 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1087                 datadir sysconfdir sharedstatedir localstatedir includedir \
1088                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1089                 libdir localedir mandir
1090 do
1091   eval ac_val=\$$ac_var
1092   # Remove trailing slashes.
1093   case $ac_val in
1094     */ )
1095       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1096       eval $ac_var=\$ac_val;;
1097   esac
1098   # Be sure to have absolute directory names.
1099   case $ac_val in
1100     [\\/$]* | ?:[\\/]* )  continue;;
1101     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1102   esac
1103   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1104 done
1105
1106 # There might be people who depend on the old broken behavior: `$host'
1107 # used to hold the argument of --host etc.
1108 # FIXME: To remove some day.
1109 build=$build_alias
1110 host=$host_alias
1111 target=$target_alias
1112
1113 # FIXME: To remove some day.
1114 if test "x$host_alias" != x; then
1115   if test "x$build_alias" = x; then
1116     cross_compiling=maybe
1117     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1118     If a cross compiler is detected then cross compile mode will be used." >&2
1119   elif test "x$build_alias" != "x$host_alias"; then
1120     cross_compiling=yes
1121   fi
1122 fi
1123
1124 ac_tool_prefix=
1125 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1126
1127 test "$silent" = yes && exec 6>/dev/null
1128
1129
1130 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1131 ac_ls_di=`ls -di .` &&
1132 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1133   as_fn_error "working directory cannot be determined"
1134 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1135   as_fn_error "pwd does not report name of working directory"
1136
1137
1138 # Find the source files, if location was not specified.
1139 if test -z "$srcdir"; then
1140   ac_srcdir_defaulted=yes
1141   # Try the directory containing this script, then the parent directory.
1142   ac_confdir=`$as_dirname -- "$as_myself" ||
1143 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1144          X"$as_myself" : 'X\(//\)[^/]' \| \
1145          X"$as_myself" : 'X\(//\)$' \| \
1146          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1147 $as_echo X"$as_myself" |
1148     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1149             s//\1/
1150             q
1151           }
1152           /^X\(\/\/\)[^/].*/{
1153             s//\1/
1154             q
1155           }
1156           /^X\(\/\/\)$/{
1157             s//\1/
1158             q
1159           }
1160           /^X\(\/\).*/{
1161             s//\1/
1162             q
1163           }
1164           s/.*/./; q'`
1165   srcdir=$ac_confdir
1166   if test ! -r "$srcdir/$ac_unique_file"; then
1167     srcdir=..
1168   fi
1169 else
1170   ac_srcdir_defaulted=no
1171 fi
1172 if test ! -r "$srcdir/$ac_unique_file"; then
1173   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1174   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1175 fi
1176 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1177 ac_abs_confdir=`(
1178         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1179         pwd)`
1180 # When building in place, set srcdir=.
1181 if test "$ac_abs_confdir" = "$ac_pwd"; then
1182   srcdir=.
1183 fi
1184 # Remove unnecessary trailing slashes from srcdir.
1185 # Double slashes in file names in object file debugging info
1186 # mess up M-x gdb in Emacs.
1187 case $srcdir in
1188 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1189 esac
1190 for ac_var in $ac_precious_vars; do
1191   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1192   eval ac_env_${ac_var}_value=\$${ac_var}
1193   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1194   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1195 done
1196
1197 #
1198 # Report the --help message.
1199 #
1200 if test "$ac_init_help" = "long"; then
1201   # Omit some internal or obsolete options to make the list less imposing.
1202   # This message is too long to be a string in the A/UX 3.1 sh.
1203   cat <<_ACEOF
1204 \`configure' configures lockfree 0.1 to adapt to many kinds of systems.
1205
1206 Usage: $0 [OPTION]... [VAR=VALUE]...
1207
1208 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1209 VAR=VALUE.  See below for descriptions of some of the useful variables.
1210
1211 Defaults for the options are specified in brackets.
1212
1213 Configuration:
1214   -h, --help              display this help and exit
1215       --help=short        display options specific to this package
1216       --help=recursive    display the short help of all the included packages
1217   -V, --version           display version information and exit
1218   -q, --quiet, --silent   do not print \`checking...' messages
1219       --cache-file=FILE   cache test results in FILE [disabled]
1220   -C, --config-cache      alias for \`--cache-file=config.cache'
1221   -n, --no-create         do not create output files
1222       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1223
1224 Installation directories:
1225   --prefix=PREFIX         install architecture-independent files in PREFIX
1226                           [$ac_default_prefix]
1227   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1228                           [PREFIX]
1229
1230 By default, \`make install' will install all the files in
1231 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1232 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1233 for instance \`--prefix=\$HOME'.
1234
1235 For better control, use the options below.
1236
1237 Fine tuning of the installation directories:
1238   --bindir=DIR            user executables [EPREFIX/bin]
1239   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1240   --libexecdir=DIR        program executables [EPREFIX/libexec]
1241   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1242   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1243   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1244   --libdir=DIR            object code libraries [EPREFIX/lib]
1245   --includedir=DIR        C header files [PREFIX/include]
1246   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1247   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1248   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1249   --infodir=DIR           info documentation [DATAROOTDIR/info]
1250   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1251   --mandir=DIR            man documentation [DATAROOTDIR/man]
1252   --docdir=DIR            documentation root [DATAROOTDIR/doc/lockfree]
1253   --htmldir=DIR           html documentation [DOCDIR]
1254   --dvidir=DIR            dvi documentation [DOCDIR]
1255   --pdfdir=DIR            pdf documentation [DOCDIR]
1256   --psdir=DIR             ps documentation [DOCDIR]
1257 _ACEOF
1258
1259   cat <<\_ACEOF
1260 _ACEOF
1261 fi
1262
1263 if test -n "$ac_init_help"; then
1264   case $ac_init_help in
1265      short | recursive ) echo "Configuration of lockfree 0.1:";;
1266    esac
1267   cat <<\_ACEOF
1268
1269 Some influential environment variables:
1270   CXX         C++ compiler command
1271   CXXFLAGS    C++ compiler flags
1272   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1273               nonstandard directory <lib dir>
1274   LIBS        libraries to pass to the linker, e.g. -l<library>
1275   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1276               you have headers in a nonstandard directory <include dir>
1277   CC          C compiler command
1278   CFLAGS      C compiler flags
1279   CPP         C preprocessor
1280
1281 Use these variables to override the choices made by `configure' or to help
1282 it to find libraries and programs with nonstandard names/locations.
1283
1284 Report bugs to <n.nakai@sdy.co.jp>.
1285 _ACEOF
1286 ac_status=$?
1287 fi
1288
1289 if test "$ac_init_help" = "recursive"; then
1290   # If there are subdirs, report their specific --help.
1291   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1292     test -d "$ac_dir" ||
1293       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1294       continue
1295     ac_builddir=.
1296
1297 case "$ac_dir" in
1298 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1299 *)
1300   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1301   # A ".." for each directory in $ac_dir_suffix.
1302   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1303   case $ac_top_builddir_sub in
1304   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1305   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1306   esac ;;
1307 esac
1308 ac_abs_top_builddir=$ac_pwd
1309 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1310 # for backward compatibility:
1311 ac_top_builddir=$ac_top_build_prefix
1312
1313 case $srcdir in
1314   .)  # We are building in place.
1315     ac_srcdir=.
1316     ac_top_srcdir=$ac_top_builddir_sub
1317     ac_abs_top_srcdir=$ac_pwd ;;
1318   [\\/]* | ?:[\\/]* )  # Absolute name.
1319     ac_srcdir=$srcdir$ac_dir_suffix;
1320     ac_top_srcdir=$srcdir
1321     ac_abs_top_srcdir=$srcdir ;;
1322   *) # Relative name.
1323     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1324     ac_top_srcdir=$ac_top_build_prefix$srcdir
1325     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1326 esac
1327 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1328
1329     cd "$ac_dir" || { ac_status=$?; continue; }
1330     # Check for guested configure.
1331     if test -f "$ac_srcdir/configure.gnu"; then
1332       echo &&
1333       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1334     elif test -f "$ac_srcdir/configure"; then
1335       echo &&
1336       $SHELL "$ac_srcdir/configure" --help=recursive
1337     else
1338       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1339     fi || ac_status=$?
1340     cd "$ac_pwd" || { ac_status=$?; break; }
1341   done
1342 fi
1343
1344 test -n "$ac_init_help" && exit $ac_status
1345 if $ac_init_version; then
1346   cat <<\_ACEOF
1347 lockfree configure 0.1
1348 generated by GNU Autoconf 2.64
1349
1350 Copyright (C) 2009 Free Software Foundation, Inc.
1351 This configure script is free software; the Free Software Foundation
1352 gives unlimited permission to copy, distribute and modify it.
1353 _ACEOF
1354   exit
1355 fi
1356
1357 ## ------------------------ ##
1358 ## Autoconf initialization. ##
1359 ## ------------------------ ##
1360
1361 # ac_fn_cxx_try_compile LINENO
1362 # ----------------------------
1363 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1364 ac_fn_cxx_try_compile ()
1365 {
1366   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1367   rm -f conftest.$ac_objext
1368   if { { ac_try="$ac_compile"
1369 case "(($ac_try" in
1370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1371   *) ac_try_echo=$ac_try;;
1372 esac
1373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1374 $as_echo "$ac_try_echo"; } >&5
1375   (eval "$ac_compile") 2>conftest.err
1376   ac_status=$?
1377   if test -s conftest.err; then
1378     grep -v '^ *+' conftest.err >conftest.er1
1379     cat conftest.er1 >&5
1380     mv -f conftest.er1 conftest.err
1381   fi
1382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1383   test $ac_status = 0; } && {
1384          test -z "$ac_cxx_werror_flag" ||
1385          test ! -s conftest.err
1386        } && test -s conftest.$ac_objext; then :
1387   ac_retval=0
1388 else
1389   $as_echo "$as_me: failed program was:" >&5
1390 sed 's/^/| /' conftest.$ac_ext >&5
1391
1392         ac_retval=1
1393 fi
1394   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1395   return $ac_retval
1396
1397 } # ac_fn_cxx_try_compile
1398
1399 # ac_fn_c_try_compile LINENO
1400 # --------------------------
1401 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1402 ac_fn_c_try_compile ()
1403 {
1404   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1405   rm -f conftest.$ac_objext
1406   if { { ac_try="$ac_compile"
1407 case "(($ac_try" in
1408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1409   *) ac_try_echo=$ac_try;;
1410 esac
1411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1412 $as_echo "$ac_try_echo"; } >&5
1413   (eval "$ac_compile") 2>conftest.err
1414   ac_status=$?
1415   if test -s conftest.err; then
1416     grep -v '^ *+' conftest.err >conftest.er1
1417     cat conftest.er1 >&5
1418     mv -f conftest.er1 conftest.err
1419   fi
1420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1421   test $ac_status = 0; } && {
1422          test -z "$ac_c_werror_flag" ||
1423          test ! -s conftest.err
1424        } && test -s conftest.$ac_objext; then :
1425   ac_retval=0
1426 else
1427   $as_echo "$as_me: failed program was:" >&5
1428 sed 's/^/| /' conftest.$ac_ext >&5
1429
1430         ac_retval=1
1431 fi
1432   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1433   return $ac_retval
1434
1435 } # ac_fn_c_try_compile
1436
1437 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1438 # -------------------------------------------
1439 # Tests whether TYPE exists after having included INCLUDES, setting cache
1440 # variable VAR accordingly.
1441 ac_fn_c_check_type ()
1442 {
1443   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1445 $as_echo_n "checking for $2... " >&6; }
1446 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1447   $as_echo_n "(cached) " >&6
1448 else
1449   eval "$3=no"
1450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1451 /* end confdefs.h.  */
1452 $4
1453 int
1454 main ()
1455 {
1456 if (sizeof ($2))
1457          return 0;
1458   ;
1459   return 0;
1460 }
1461 _ACEOF
1462 if ac_fn_c_try_compile "$LINENO"; then :
1463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1464 /* end confdefs.h.  */
1465 $4
1466 int
1467 main ()
1468 {
1469 if (sizeof (($2)))
1470             return 0;
1471   ;
1472   return 0;
1473 }
1474 _ACEOF
1475 if ac_fn_c_try_compile "$LINENO"; then :
1476
1477 else
1478   eval "$3=yes"
1479 fi
1480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1481 fi
1482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1483 fi
1484 eval ac_res=\$$3
1485                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1486 $as_echo "$ac_res" >&6; }
1487   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1488
1489 } # ac_fn_c_check_type
1490
1491 # ac_fn_c_try_cpp LINENO
1492 # ----------------------
1493 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1494 ac_fn_c_try_cpp ()
1495 {
1496   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497   if { { ac_try="$ac_cpp conftest.$ac_ext"
1498 case "(($ac_try" in
1499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500   *) ac_try_echo=$ac_try;;
1501 esac
1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503 $as_echo "$ac_try_echo"; } >&5
1504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1505   ac_status=$?
1506   if test -s conftest.err; then
1507     grep -v '^ *+' conftest.err >conftest.er1
1508     cat conftest.er1 >&5
1509     mv -f conftest.er1 conftest.err
1510   fi
1511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512   test $ac_status = 0; } >/dev/null && {
1513          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1514          test ! -s conftest.err
1515        }; then :
1516   ac_retval=0
1517 else
1518   $as_echo "$as_me: failed program was:" >&5
1519 sed 's/^/| /' conftest.$ac_ext >&5
1520
1521     ac_retval=1
1522 fi
1523   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1524   return $ac_retval
1525
1526 } # ac_fn_c_try_cpp
1527
1528 # ac_fn_c_try_run LINENO
1529 # ----------------------
1530 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1531 # that executables *can* be run.
1532 ac_fn_c_try_run ()
1533 {
1534   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535   if { { ac_try="$ac_link"
1536 case "(($ac_try" in
1537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538   *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542   (eval "$ac_link") 2>&5
1543   ac_status=$?
1544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1546   { { case "(($ac_try" in
1547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548   *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552   (eval "$ac_try") 2>&5
1553   ac_status=$?
1554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555   test $ac_status = 0; }; }; then :
1556   ac_retval=0
1557 else
1558   $as_echo "$as_me: program exited with status $ac_status" >&5
1559        $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1561
1562        ac_retval=$ac_status
1563 fi
1564   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1565   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1566   return $ac_retval
1567
1568 } # ac_fn_c_try_run
1569
1570 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1571 # -------------------------------------------------------
1572 # Tests whether HEADER exists and can be compiled using the include files in
1573 # INCLUDES, setting the cache variable VAR accordingly.
1574 ac_fn_c_check_header_compile ()
1575 {
1576   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1578 $as_echo_n "checking for $2... " >&6; }
1579 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1580   $as_echo_n "(cached) " >&6
1581 else
1582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1583 /* end confdefs.h.  */
1584 $4
1585 #include <$2>
1586 _ACEOF
1587 if ac_fn_c_try_compile "$LINENO"; then :
1588   eval "$3=yes"
1589 else
1590   eval "$3=no"
1591 fi
1592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1593 fi
1594 eval ac_res=\$$3
1595                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1596 $as_echo "$ac_res" >&6; }
1597   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598
1599 } # ac_fn_c_check_header_compile
1600 cat >config.log <<_ACEOF
1601 This file contains any messages produced by compilers while
1602 running configure, to aid debugging if configure makes a mistake.
1603
1604 It was created by lockfree $as_me 0.1, which was
1605 generated by GNU Autoconf 2.64.  Invocation command line was
1606
1607   $ $0 $@
1608
1609 _ACEOF
1610 exec 5>>config.log
1611 {
1612 cat <<_ASUNAME
1613 ## --------- ##
1614 ## Platform. ##
1615 ## --------- ##
1616
1617 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1618 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1619 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1620 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1621 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1622
1623 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1624 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1625
1626 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1627 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1628 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1629 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1630 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1631 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1632 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1633
1634 _ASUNAME
1635
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 for as_dir in $PATH
1638 do
1639   IFS=$as_save_IFS
1640   test -z "$as_dir" && as_dir=.
1641     $as_echo "PATH: $as_dir"
1642   done
1643 IFS=$as_save_IFS
1644
1645 } >&5
1646
1647 cat >&5 <<_ACEOF
1648
1649
1650 ## ----------- ##
1651 ## Core tests. ##
1652 ## ----------- ##
1653
1654 _ACEOF
1655
1656
1657 # Keep a trace of the command line.
1658 # Strip out --no-create and --no-recursion so they do not pile up.
1659 # Strip out --silent because we don't want to record it for future runs.
1660 # Also quote any args containing shell meta-characters.
1661 # Make two passes to allow for proper duplicate-argument suppression.
1662 ac_configure_args=
1663 ac_configure_args0=
1664 ac_configure_args1=
1665 ac_must_keep_next=false
1666 for ac_pass in 1 2
1667 do
1668   for ac_arg
1669   do
1670     case $ac_arg in
1671     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1672     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1673     | -silent | --silent | --silen | --sile | --sil)
1674       continue ;;
1675     *\'*)
1676       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1677     esac
1678     case $ac_pass in
1679     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1680     2)
1681       as_fn_append ac_configure_args1 " '$ac_arg'"
1682       if test $ac_must_keep_next = true; then
1683         ac_must_keep_next=false # Got value, back to normal.
1684       else
1685         case $ac_arg in
1686           *=* | --config-cache | -C | -disable-* | --disable-* \
1687           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1688           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1689           | -with-* | --with-* | -without-* | --without-* | --x)
1690             case "$ac_configure_args0 " in
1691               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1692             esac
1693             ;;
1694           -* ) ac_must_keep_next=true ;;
1695         esac
1696       fi
1697       as_fn_append ac_configure_args " '$ac_arg'"
1698       ;;
1699     esac
1700   done
1701 done
1702 { ac_configure_args0=; unset ac_configure_args0;}
1703 { ac_configure_args1=; unset ac_configure_args1;}
1704
1705 # When interrupted or exit'd, cleanup temporary files, and complete
1706 # config.log.  We remove comments because anyway the quotes in there
1707 # would cause problems or look ugly.
1708 # WARNING: Use '\'' to represent an apostrophe within the trap.
1709 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1710 trap 'exit_status=$?
1711   # Save into config.log some information that might help in debugging.
1712   {
1713     echo
1714
1715     cat <<\_ASBOX
1716 ## ---------------- ##
1717 ## Cache variables. ##
1718 ## ---------------- ##
1719 _ASBOX
1720     echo
1721     # The following way of writing the cache mishandles newlines in values,
1722 (
1723   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1724     eval ac_val=\$$ac_var
1725     case $ac_val in #(
1726     *${as_nl}*)
1727       case $ac_var in #(
1728       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1729 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1730       esac
1731       case $ac_var in #(
1732       _ | IFS | as_nl) ;; #(
1733       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1734       *) { eval $ac_var=; unset $ac_var;} ;;
1735       esac ;;
1736     esac
1737   done
1738   (set) 2>&1 |
1739     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1740     *${as_nl}ac_space=\ *)
1741       sed -n \
1742         "s/'\''/'\''\\\\'\'''\''/g;
1743           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1744       ;; #(
1745     *)
1746       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1747       ;;
1748     esac |
1749     sort
1750 )
1751     echo
1752
1753     cat <<\_ASBOX
1754 ## ----------------- ##
1755 ## Output variables. ##
1756 ## ----------------- ##
1757 _ASBOX
1758     echo
1759     for ac_var in $ac_subst_vars
1760     do
1761       eval ac_val=\$$ac_var
1762       case $ac_val in
1763       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764       esac
1765       $as_echo "$ac_var='\''$ac_val'\''"
1766     done | sort
1767     echo
1768
1769     if test -n "$ac_subst_files"; then
1770       cat <<\_ASBOX
1771 ## ------------------- ##
1772 ## File substitutions. ##
1773 ## ------------------- ##
1774 _ASBOX
1775       echo
1776       for ac_var in $ac_subst_files
1777       do
1778         eval ac_val=\$$ac_var
1779         case $ac_val in
1780         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1781         esac
1782         $as_echo "$ac_var='\''$ac_val'\''"
1783       done | sort
1784       echo
1785     fi
1786
1787     if test -s confdefs.h; then
1788       cat <<\_ASBOX
1789 ## ----------- ##
1790 ## confdefs.h. ##
1791 ## ----------- ##
1792 _ASBOX
1793       echo
1794       cat confdefs.h
1795       echo
1796     fi
1797     test "$ac_signal" != 0 &&
1798       $as_echo "$as_me: caught signal $ac_signal"
1799     $as_echo "$as_me: exit $exit_status"
1800   } >&5
1801   rm -f core *.core core.conftest.* &&
1802     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1803     exit $exit_status
1804 ' 0
1805 for ac_signal in 1 2 13 15; do
1806   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1807 done
1808 ac_signal=0
1809
1810 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1811 rm -f -r conftest* confdefs.h
1812
1813 $as_echo "/* confdefs.h */" > confdefs.h
1814
1815 # Predefined preprocessor variables.
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_NAME "$PACKAGE_NAME"
1819 _ACEOF
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823 _ACEOF
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1827 _ACEOF
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_STRING "$PACKAGE_STRING"
1831 _ACEOF
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1835 _ACEOF
1836
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_URL "$PACKAGE_URL"
1839 _ACEOF
1840
1841
1842 # Let the site file select an alternate cache file if it wants to.
1843 # Prefer an explicitly selected file to automatically selected ones.
1844 ac_site_file1=NONE
1845 ac_site_file2=NONE
1846 if test -n "$CONFIG_SITE"; then
1847   ac_site_file1=$CONFIG_SITE
1848 elif test "x$prefix" != xNONE; then
1849   ac_site_file1=$prefix/share/config.site
1850   ac_site_file2=$prefix/etc/config.site
1851 else
1852   ac_site_file1=$ac_default_prefix/share/config.site
1853   ac_site_file2=$ac_default_prefix/etc/config.site
1854 fi
1855 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1856 do
1857   test "x$ac_site_file" = xNONE && continue
1858   if test -r "$ac_site_file"; then
1859     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1860 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1861     sed 's/^/| /' "$ac_site_file" >&5
1862     . "$ac_site_file"
1863   fi
1864 done
1865
1866 if test -r "$cache_file"; then
1867   # Some versions of bash will fail to source /dev/null (special
1868   # files actually), so we avoid doing that.
1869   if test -f "$cache_file"; then
1870     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1871 $as_echo "$as_me: loading cache $cache_file" >&6;}
1872     case $cache_file in
1873       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1874       *)                      . "./$cache_file";;
1875     esac
1876   fi
1877 else
1878   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1879 $as_echo "$as_me: creating cache $cache_file" >&6;}
1880   >$cache_file
1881 fi
1882
1883 # Check that the precious variables saved in the cache have kept the same
1884 # value.
1885 ac_cache_corrupted=false
1886 for ac_var in $ac_precious_vars; do
1887   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1888   eval ac_new_set=\$ac_env_${ac_var}_set
1889   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1890   eval ac_new_val=\$ac_env_${ac_var}_value
1891   case $ac_old_set,$ac_new_set in
1892     set,)
1893       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1894 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1895       ac_cache_corrupted=: ;;
1896     ,set)
1897       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1898 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1899       ac_cache_corrupted=: ;;
1900     ,);;
1901     *)
1902       if test "x$ac_old_val" != "x$ac_new_val"; then
1903         # differences in whitespace do not lead to failure.
1904         ac_old_val_w=`echo x $ac_old_val`
1905         ac_new_val_w=`echo x $ac_new_val`
1906         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1907           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1908 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1909           ac_cache_corrupted=:
1910         else
1911           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1912 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1913           eval $ac_var=\$ac_old_val
1914         fi
1915         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1916 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1917         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1918 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1919       fi;;
1920   esac
1921   # Pass precious variables to config.status.
1922   if test "$ac_new_set" = set; then
1923     case $ac_new_val in
1924     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1925     *) ac_arg=$ac_var=$ac_new_val ;;
1926     esac
1927     case " $ac_configure_args " in
1928       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1929       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1930     esac
1931   fi
1932 done
1933 if $ac_cache_corrupted; then
1934   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1936   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1937 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1938   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1939 fi
1940 ## -------------------- ##
1941 ## Main body of script. ##
1942 ## -------------------- ##
1943
1944 ac_ext=c
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949
1950
1951
1952 ac_config_headers="$ac_config_headers config.h"
1953
1954
1955 # Checks for programs.
1956 ac_ext=cpp
1957 ac_cpp='$CXXCPP $CPPFLAGS'
1958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1961 if test -z "$CXX"; then
1962   if test -n "$CCC"; then
1963     CXX=$CCC
1964   else
1965     if test -n "$ac_tool_prefix"; then
1966   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1967   do
1968     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1971 $as_echo_n "checking for $ac_word... " >&6; }
1972 if test "${ac_cv_prog_CXX+set}" = set; then :
1973   $as_echo_n "(cached) " >&6
1974 else
1975   if test -n "$CXX"; then
1976   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1977 else
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1980 do
1981   IFS=$as_save_IFS
1982   test -z "$as_dir" && as_dir=.
1983     for ac_exec_ext in '' $ac_executable_extensions; do
1984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1985     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1987     break 2
1988   fi
1989 done
1990   done
1991 IFS=$as_save_IFS
1992
1993 fi
1994 fi
1995 CXX=$ac_cv_prog_CXX
1996 if test -n "$CXX"; then
1997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
1998 $as_echo "$CXX" >&6; }
1999 else
2000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2001 $as_echo "no" >&6; }
2002 fi
2003
2004
2005     test -n "$CXX" && break
2006   done
2007 fi
2008 if test -z "$CXX"; then
2009   ac_ct_CXX=$CXX
2010   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2011 do
2012   # Extract the first word of "$ac_prog", so it can be a program name with args.
2013 set dummy $ac_prog; ac_word=$2
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2015 $as_echo_n "checking for $ac_word... " >&6; }
2016 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2017   $as_echo_n "(cached) " >&6
2018 else
2019   if test -n "$ac_ct_CXX"; then
2020   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2021 else
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025   IFS=$as_save_IFS
2026   test -z "$as_dir" && as_dir=.
2027     for ac_exec_ext in '' $ac_executable_extensions; do
2028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2029     ac_cv_prog_ac_ct_CXX="$ac_prog"
2030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2031     break 2
2032   fi
2033 done
2034   done
2035 IFS=$as_save_IFS
2036
2037 fi
2038 fi
2039 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2040 if test -n "$ac_ct_CXX"; then
2041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2042 $as_echo "$ac_ct_CXX" >&6; }
2043 else
2044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2045 $as_echo "no" >&6; }
2046 fi
2047
2048
2049   test -n "$ac_ct_CXX" && break
2050 done
2051
2052   if test "x$ac_ct_CXX" = x; then
2053     CXX="g++"
2054   else
2055     case $cross_compiling:$ac_tool_warned in
2056 yes:)
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2059 ac_tool_warned=yes ;;
2060 esac
2061     CXX=$ac_ct_CXX
2062   fi
2063 fi
2064
2065   fi
2066 fi
2067 # Provide some information about the compiler.
2068 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2069 set X $ac_compile
2070 ac_compiler=$2
2071 for ac_option in --version -v -V -qversion; do
2072   { { ac_try="$ac_compiler $ac_option >&5"
2073 case "(($ac_try" in
2074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075   *) ac_try_echo=$ac_try;;
2076 esac
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2080   ac_status=$?
2081   if test -s conftest.err; then
2082     sed '10a\
2083 ... rest of stderr output deleted ...
2084          10q' conftest.err >conftest.er1
2085     cat conftest.er1 >&5
2086     rm -f conftest.er1 conftest.err
2087   fi
2088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089   test $ac_status = 0; }
2090 done
2091
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h.  */
2094 #include <stdio.h>
2095 int
2096 main ()
2097 {
2098 FILE *f = fopen ("conftest.out", "w");
2099  return ferror (f) || fclose (f) != 0;
2100
2101   ;
2102   return 0;
2103 }
2104 _ACEOF
2105 ac_clean_files_save=$ac_clean_files
2106 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2107 # Try to create an executable without -o first, disregard a.out.
2108 # It will help us diagnose broken compilers, and finding out an intuition
2109 # of exeext.
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2111 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2112 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2113
2114 # The possible output files:
2115 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2116
2117 ac_rmfiles=
2118 for ac_file in $ac_files
2119 do
2120   case $ac_file in
2121     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2122     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2123   esac
2124 done
2125 rm -f $ac_rmfiles
2126
2127 if { { ac_try="$ac_link_default"
2128 case "(($ac_try" in
2129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130   *) ac_try_echo=$ac_try;;
2131 esac
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134   (eval "$ac_link_default") 2>&5
2135   ac_status=$?
2136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137   test $ac_status = 0; }; then :
2138   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2139 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2140 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2141 # so that the user can short-circuit this test for compilers unknown to
2142 # Autoconf.
2143 for ac_file in $ac_files ''
2144 do
2145   test -f "$ac_file" || continue
2146   case $ac_file in
2147     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2148         ;;
2149     [ab].out )
2150         # We found the default executable, but exeext='' is most
2151         # certainly right.
2152         break;;
2153     *.* )
2154         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2155         then :; else
2156            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157         fi
2158         # We set ac_cv_exeext here because the later test for it is not
2159         # safe: cross compilers may not add the suffix if given an `-o'
2160         # argument, so we may need to know it at that point already.
2161         # Even if this section looks crufty: it has the advantage of
2162         # actually working.
2163         break;;
2164     * )
2165         break;;
2166   esac
2167 done
2168 test "$ac_cv_exeext" = no && ac_cv_exeext=
2169
2170 else
2171   ac_file=''
2172 fi
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2174 $as_echo "$ac_file" >&6; }
2175 if test -z "$ac_file"; then :
2176   $as_echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2178
2179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2181 { as_fn_set_status 77
2182 as_fn_error "C++ compiler cannot create executables
2183 See \`config.log' for more details." "$LINENO" 5; }; }
2184 fi
2185 ac_exeext=$ac_cv_exeext
2186
2187 # Check that the compiler produces executables we can run.  If not, either
2188 # the compiler is broken, or we cross compile.
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2190 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2191 # If not cross compiling, check that we can run a simple program.
2192 if test "$cross_compiling" != yes; then
2193   if { ac_try='./$ac_file'
2194   { { case "(($ac_try" in
2195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196   *) ac_try_echo=$ac_try;;
2197 esac
2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200   (eval "$ac_try") 2>&5
2201   ac_status=$?
2202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2203   test $ac_status = 0; }; }; then
2204     cross_compiling=no
2205   else
2206     if test "$cross_compiling" = maybe; then
2207         cross_compiling=yes
2208     else
2209         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211 as_fn_error "cannot run C++ compiled programs.
2212 If you meant to cross compile, use \`--host'.
2213 See \`config.log' for more details." "$LINENO" 5; }
2214     fi
2215   fi
2216 fi
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2218 $as_echo "yes" >&6; }
2219
2220 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2221 ac_clean_files=$ac_clean_files_save
2222 # Check that the compiler produces executables we can run.  If not, either
2223 # the compiler is broken, or we cross compile.
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2225 $as_echo_n "checking whether we are cross compiling... " >&6; }
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2227 $as_echo "$cross_compiling" >&6; }
2228
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2230 $as_echo_n "checking for suffix of executables... " >&6; }
2231 if { { ac_try="$ac_link"
2232 case "(($ac_try" in
2233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234   *) ac_try_echo=$ac_try;;
2235 esac
2236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2237 $as_echo "$ac_try_echo"; } >&5
2238   (eval "$ac_link") 2>&5
2239   ac_status=$?
2240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2241   test $ac_status = 0; }; then :
2242   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2243 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2244 # work properly (i.e., refer to `conftest.exe'), while it won't with
2245 # `rm'.
2246 for ac_file in conftest.exe conftest conftest.*; do
2247   test -f "$ac_file" || continue
2248   case $ac_file in
2249     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2250     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2251           break;;
2252     * ) break;;
2253   esac
2254 done
2255 else
2256   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2258 as_fn_error "cannot compute suffix of executables: cannot compile and link
2259 See \`config.log' for more details." "$LINENO" 5; }
2260 fi
2261 rm -f conftest$ac_cv_exeext
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2263 $as_echo "$ac_cv_exeext" >&6; }
2264
2265 rm -f conftest.$ac_ext
2266 EXEEXT=$ac_cv_exeext
2267 ac_exeext=$EXEEXT
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2269 $as_echo_n "checking for suffix of object files... " >&6; }
2270 if test "${ac_cv_objext+set}" = set; then :
2271   $as_echo_n "(cached) " >&6
2272 else
2273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h.  */
2275
2276 int
2277 main ()
2278 {
2279
2280   ;
2281   return 0;
2282 }
2283 _ACEOF
2284 rm -f conftest.o conftest.obj
2285 if { { ac_try="$ac_compile"
2286 case "(($ac_try" in
2287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288   *) ac_try_echo=$ac_try;;
2289 esac
2290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291 $as_echo "$ac_try_echo"; } >&5
2292   (eval "$ac_compile") 2>&5
2293   ac_status=$?
2294   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295   test $ac_status = 0; }; then :
2296   for ac_file in conftest.o conftest.obj conftest.*; do
2297   test -f "$ac_file" || continue;
2298   case $ac_file in
2299     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2300     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2301        break;;
2302   esac
2303 done
2304 else
2305   $as_echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2307
2308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310 as_fn_error "cannot compute suffix of object files: cannot compile
2311 See \`config.log' for more details." "$LINENO" 5; }
2312 fi
2313 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2314 fi
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2316 $as_echo "$ac_cv_objext" >&6; }
2317 OBJEXT=$ac_cv_objext
2318 ac_objext=$OBJEXT
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2320 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2321 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
2322   $as_echo_n "(cached) " >&6
2323 else
2324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h.  */
2326
2327 int
2328 main ()
2329 {
2330 #ifndef __GNUC__
2331        choke me
2332 #endif
2333
2334   ;
2335   return 0;
2336 }
2337 _ACEOF
2338 if ac_fn_cxx_try_compile "$LINENO"; then :
2339   ac_compiler_gnu=yes
2340 else
2341   ac_compiler_gnu=no
2342 fi
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2345
2346 fi
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2348 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2349 if test $ac_compiler_gnu = yes; then
2350   GXX=yes
2351 else
2352   GXX=
2353 fi
2354 ac_test_CXXFLAGS=${CXXFLAGS+set}
2355 ac_save_CXXFLAGS=$CXXFLAGS
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2357 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2358 if test "${ac_cv_prog_cxx_g+set}" = set; then :
2359   $as_echo_n "(cached) " >&6
2360 else
2361   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2362    ac_cxx_werror_flag=yes
2363    ac_cv_prog_cxx_g=no
2364    CXXFLAGS="-g"
2365    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h.  */
2367
2368 int
2369 main ()
2370 {
2371
2372   ;
2373   return 0;
2374 }
2375 _ACEOF
2376 if ac_fn_cxx_try_compile "$LINENO"; then :
2377   ac_cv_prog_cxx_g=yes
2378 else
2379   CXXFLAGS=""
2380       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h.  */
2382
2383 int
2384 main ()
2385 {
2386
2387   ;
2388   return 0;
2389 }
2390 _ACEOF
2391 if ac_fn_cxx_try_compile "$LINENO"; then :
2392
2393 else
2394   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2395          CXXFLAGS="-g"
2396          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h.  */
2398
2399 int
2400 main ()
2401 {
2402
2403   ;
2404   return 0;
2405 }
2406 _ACEOF
2407 if ac_fn_cxx_try_compile "$LINENO"; then :
2408   ac_cv_prog_cxx_g=yes
2409 fi
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 fi
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 fi
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2416 fi
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2418 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2419 if test "$ac_test_CXXFLAGS" = set; then
2420   CXXFLAGS=$ac_save_CXXFLAGS
2421 elif test $ac_cv_prog_cxx_g = yes; then
2422   if test "$GXX" = yes; then
2423     CXXFLAGS="-g -O2"
2424   else
2425     CXXFLAGS="-g"
2426   fi
2427 else
2428   if test "$GXX" = yes; then
2429     CXXFLAGS="-O2"
2430   else
2431     CXXFLAGS=
2432   fi
2433 fi
2434 ac_ext=c
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439
2440
2441 # Checks for libraries.
2442
2443 # Checks for header files.
2444
2445 # Checks for typedefs, structures, and compiler characteristics.
2446 ac_ext=c
2447 ac_cpp='$CPP $CPPFLAGS'
2448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451 if test -n "$ac_tool_prefix"; then
2452   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2453 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455 $as_echo_n "checking for $ac_word... " >&6; }
2456 if test "${ac_cv_prog_CC+set}" = set; then :
2457   $as_echo_n "(cached) " >&6
2458 else
2459   if test -n "$CC"; then
2460   ac_cv_prog_CC="$CC" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465   IFS=$as_save_IFS
2466   test -z "$as_dir" && as_dir=.
2467     for ac_exec_ext in '' $ac_executable_extensions; do
2468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471     break 2
2472   fi
2473 done
2474   done
2475 IFS=$as_save_IFS
2476
2477 fi
2478 fi
2479 CC=$ac_cv_prog_CC
2480 if test -n "$CC"; then
2481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2482 $as_echo "$CC" >&6; }
2483 else
2484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2486 fi
2487
2488
2489 fi
2490 if test -z "$ac_cv_prog_CC"; then
2491   ac_ct_CC=$CC
2492   # Extract the first word of "gcc", so it can be a program name with args.
2493 set dummy gcc; ac_word=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2497   $as_echo_n "(cached) " >&6
2498 else
2499   if test -n "$ac_ct_CC"; then
2500   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505   IFS=$as_save_IFS
2506   test -z "$as_dir" && as_dir=.
2507     for ac_exec_ext in '' $ac_executable_extensions; do
2508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509     ac_cv_prog_ac_ct_CC="gcc"
2510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511     break 2
2512   fi
2513 done
2514   done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2520 if test -n "$ac_ct_CC"; then
2521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2522 $as_echo "$ac_ct_CC" >&6; }
2523 else
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2526 fi
2527
2528   if test "x$ac_ct_CC" = x; then
2529     CC=""
2530   else
2531     case $cross_compiling:$ac_tool_warned in
2532 yes:)
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2535 ac_tool_warned=yes ;;
2536 esac
2537     CC=$ac_ct_CC
2538   fi
2539 else
2540   CC="$ac_cv_prog_CC"
2541 fi
2542
2543 if test -z "$CC"; then
2544           if test -n "$ac_tool_prefix"; then
2545     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2546 set dummy ${ac_tool_prefix}cc; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if test "${ac_cv_prog_CC+set}" = set; then :
2550   $as_echo_n "(cached) " >&6
2551 else
2552   if test -n "$CC"; then
2553   ac_cv_prog_CC="$CC" # Let the user override the test.
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558   IFS=$as_save_IFS
2559   test -z "$as_dir" && as_dir=.
2560     for ac_exec_ext in '' $ac_executable_extensions; do
2561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2562     ac_cv_prog_CC="${ac_tool_prefix}cc"
2563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564     break 2
2565   fi
2566 done
2567   done
2568 IFS=$as_save_IFS
2569
2570 fi
2571 fi
2572 CC=$ac_cv_prog_CC
2573 if test -n "$CC"; then
2574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2575 $as_echo "$CC" >&6; }
2576 else
2577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2579 fi
2580
2581
2582   fi
2583 fi
2584 if test -z "$CC"; then
2585   # Extract the first word of "cc", so it can be a program name with args.
2586 set dummy cc; ac_word=$2
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if test "${ac_cv_prog_CC+set}" = set; then :
2590   $as_echo_n "(cached) " >&6
2591 else
2592   if test -n "$CC"; then
2593   ac_cv_prog_CC="$CC" # Let the user override the test.
2594 else
2595   ac_prog_rejected=no
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599   IFS=$as_save_IFS
2600   test -z "$as_dir" && as_dir=.
2601     for ac_exec_ext in '' $ac_executable_extensions; do
2602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2604        ac_prog_rejected=yes
2605        continue
2606      fi
2607     ac_cv_prog_CC="cc"
2608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609     break 2
2610   fi
2611 done
2612   done
2613 IFS=$as_save_IFS
2614
2615 if test $ac_prog_rejected = yes; then
2616   # We found a bogon in the path, so make sure we never use it.
2617   set dummy $ac_cv_prog_CC
2618   shift
2619   if test $# != 0; then
2620     # We chose a different compiler from the bogus one.
2621     # However, it has the same basename, so the bogon will be chosen
2622     # first if we set CC to just the basename; use the full file name.
2623     shift
2624     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2625   fi
2626 fi
2627 fi
2628 fi
2629 CC=$ac_cv_prog_CC
2630 if test -n "$CC"; then
2631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2632 $as_echo "$CC" >&6; }
2633 else
2634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638
2639 fi
2640 if test -z "$CC"; then
2641   if test -n "$ac_tool_prefix"; then
2642   for ac_prog in cl.exe
2643   do
2644     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if test "${ac_cv_prog_CC+set}" = set; then :
2649   $as_echo_n "(cached) " >&6
2650 else
2651   if test -n "$CC"; then
2652   ac_cv_prog_CC="$CC" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659     for ac_exec_ext in '' $ac_executable_extensions; do
2660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663     break 2
2664   fi
2665 done
2666   done
2667 IFS=$as_save_IFS
2668
2669 fi
2670 fi
2671 CC=$ac_cv_prog_CC
2672 if test -n "$CC"; then
2673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2674 $as_echo "$CC" >&6; }
2675 else
2676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 fi
2679
2680
2681     test -n "$CC" && break
2682   done
2683 fi
2684 if test -z "$CC"; then
2685   ac_ct_CC=$CC
2686   for ac_prog in cl.exe
2687 do
2688   # Extract the first word of "$ac_prog", so it can be a program name with args.
2689 set dummy $ac_prog; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2693   $as_echo_n "(cached) " >&6
2694 else
2695   if test -n "$ac_ct_CC"; then
2696   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701   IFS=$as_save_IFS
2702   test -z "$as_dir" && as_dir=.
2703     for ac_exec_ext in '' $ac_executable_extensions; do
2704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705     ac_cv_prog_ac_ct_CC="$ac_prog"
2706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707     break 2
2708   fi
2709 done
2710   done
2711 IFS=$as_save_IFS
2712
2713 fi
2714 fi
2715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2716 if test -n "$ac_ct_CC"; then
2717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2718 $as_echo "$ac_ct_CC" >&6; }
2719 else
2720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2722 fi
2723
2724
2725   test -n "$ac_ct_CC" && break
2726 done
2727
2728   if test "x$ac_ct_CC" = x; then
2729     CC=""
2730   else
2731     case $cross_compiling:$ac_tool_warned in
2732 yes:)
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2735 ac_tool_warned=yes ;;
2736 esac
2737     CC=$ac_ct_CC
2738   fi
2739 fi
2740
2741 fi
2742
2743
2744 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2746 as_fn_error "no acceptable C compiler found in \$PATH
2747 See \`config.log' for more details." "$LINENO" 5; }
2748
2749 # Provide some information about the compiler.
2750 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2751 set X $ac_compile
2752 ac_compiler=$2
2753 for ac_option in --version -v -V -qversion; do
2754   { { ac_try="$ac_compiler $ac_option >&5"
2755 case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2760 $as_echo "$ac_try_echo"; } >&5
2761   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2762   ac_status=$?
2763   if test -s conftest.err; then
2764     sed '10a\
2765 ... rest of stderr output deleted ...
2766          10q' conftest.err >conftest.er1
2767     cat conftest.er1 >&5
2768     rm -f conftest.er1 conftest.err
2769   fi
2770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2771   test $ac_status = 0; }
2772 done
2773
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2775 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2776 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2777   $as_echo_n "(cached) " >&6
2778 else
2779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780 /* end confdefs.h.  */
2781
2782 int
2783 main ()
2784 {
2785 #ifndef __GNUC__
2786        choke me
2787 #endif
2788
2789   ;
2790   return 0;
2791 }
2792 _ACEOF
2793 if ac_fn_c_try_compile "$LINENO"; then :
2794   ac_compiler_gnu=yes
2795 else
2796   ac_compiler_gnu=no
2797 fi
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2800
2801 fi
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2803 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2804 if test $ac_compiler_gnu = yes; then
2805   GCC=yes
2806 else
2807   GCC=
2808 fi
2809 ac_test_CFLAGS=${CFLAGS+set}
2810 ac_save_CFLAGS=$CFLAGS
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2812 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2813 if test "${ac_cv_prog_cc_g+set}" = set; then :
2814   $as_echo_n "(cached) " >&6
2815 else
2816   ac_save_c_werror_flag=$ac_c_werror_flag
2817    ac_c_werror_flag=yes
2818    ac_cv_prog_cc_g=no
2819    CFLAGS="-g"
2820    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821 /* end confdefs.h.  */
2822
2823 int
2824 main ()
2825 {
2826
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 if ac_fn_c_try_compile "$LINENO"; then :
2832   ac_cv_prog_cc_g=yes
2833 else
2834   CFLAGS=""
2835       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836 /* end confdefs.h.  */
2837
2838 int
2839 main ()
2840 {
2841
2842   ;
2843   return 0;
2844 }
2845 _ACEOF
2846 if ac_fn_c_try_compile "$LINENO"; then :
2847
2848 else
2849   ac_c_werror_flag=$ac_save_c_werror_flag
2850          CFLAGS="-g"
2851          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h.  */
2853
2854 int
2855 main ()
2856 {
2857
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 if ac_fn_c_try_compile "$LINENO"; then :
2863   ac_cv_prog_cc_g=yes
2864 fi
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 fi
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 fi
2869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870    ac_c_werror_flag=$ac_save_c_werror_flag
2871 fi
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2873 $as_echo "$ac_cv_prog_cc_g" >&6; }
2874 if test "$ac_test_CFLAGS" = set; then
2875   CFLAGS=$ac_save_CFLAGS
2876 elif test $ac_cv_prog_cc_g = yes; then
2877   if test "$GCC" = yes; then
2878     CFLAGS="-g -O2"
2879   else
2880     CFLAGS="-g"
2881   fi
2882 else
2883   if test "$GCC" = yes; then
2884     CFLAGS="-O2"
2885   else
2886     CFLAGS=
2887   fi
2888 fi
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2890 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2891 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2892   $as_echo_n "(cached) " >&6
2893 else
2894   ac_cv_prog_cc_c89=no
2895 ac_save_CC=$CC
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h.  */
2898 #include <stdarg.h>
2899 #include <stdio.h>
2900 #include <sys/types.h>
2901 #include <sys/stat.h>
2902 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2903 struct buf { int x; };
2904 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2905 static char *e (p, i)
2906      char **p;
2907      int i;
2908 {
2909   return p[i];
2910 }
2911 static char *f (char * (*g) (char **, int), char **p, ...)
2912 {
2913   char *s;
2914   va_list v;
2915   va_start (v,p);
2916   s = g (p, va_arg (v,int));
2917   va_end (v);
2918   return s;
2919 }
2920
2921 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2922    function prototypes and stuff, but not '\xHH' hex character constants.
2923    These don't provoke an error unfortunately, instead are silently treated
2924    as 'x'.  The following induces an error, until -std is added to get
2925    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2926    array size at least.  It's necessary to write '\x00'==0 to get something
2927    that's true only with -std.  */
2928 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2929
2930 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2931    inside strings and character constants.  */
2932 #define FOO(x) 'x'
2933 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2934
2935 int test (int i, double x);
2936 struct s1 {int (*f) (int a);};
2937 struct s2 {int (*f) (double a);};
2938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2939 int argc;
2940 char **argv;
2941 int
2942 main ()
2943 {
2944 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2945   ;
2946   return 0;
2947 }
2948 _ACEOF
2949 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2950         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2951 do
2952   CC="$ac_save_CC $ac_arg"
2953   if ac_fn_c_try_compile "$LINENO"; then :
2954   ac_cv_prog_cc_c89=$ac_arg
2955 fi
2956 rm -f core conftest.err conftest.$ac_objext
2957   test "x$ac_cv_prog_cc_c89" != "xno" && break
2958 done
2959 rm -f conftest.$ac_ext
2960 CC=$ac_save_CC
2961
2962 fi
2963 # AC_CACHE_VAL
2964 case "x$ac_cv_prog_cc_c89" in
2965   x)
2966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2967 $as_echo "none needed" >&6; } ;;
2968   xno)
2969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2970 $as_echo "unsupported" >&6; } ;;
2971   *)
2972     CC="$CC $ac_cv_prog_cc_c89"
2973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2974 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2975 esac
2976 if test "x$ac_cv_prog_cc_c89" != xno; then :
2977
2978 fi
2979
2980 ac_ext=c
2981 ac_cpp='$CPP $CPPFLAGS'
2982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2985
2986
2987 ac_ext=c
2988 ac_cpp='$CPP $CPPFLAGS'
2989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2993 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2994 # On Suns, sometimes $CPP names a directory.
2995 if test -n "$CPP" && test -d "$CPP"; then
2996   CPP=
2997 fi
2998 if test -z "$CPP"; then
2999   if test "${ac_cv_prog_CPP+set}" = set; then :
3000   $as_echo_n "(cached) " >&6
3001 else
3002       # Double quotes because CPP needs to be expanded
3003     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3004     do
3005       ac_preproc_ok=false
3006 for ac_c_preproc_warn_flag in '' yes
3007 do
3008   # Use a header file that comes with gcc, so configuring glibc
3009   # with a fresh cross-compiler works.
3010   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3011   # <limits.h> exists even on freestanding compilers.
3012   # On the NeXT, cc -E runs the code through the compiler's parser,
3013   # not just through cpp. "Syntax error" is here to catch this case.
3014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h.  */
3016 #ifdef __STDC__
3017 # include <limits.h>
3018 #else
3019 # include <assert.h>
3020 #endif
3021                      Syntax error
3022 _ACEOF
3023 if ac_fn_c_try_cpp "$LINENO"; then :
3024
3025 else
3026   # Broken: fails on valid input.
3027 continue
3028 fi
3029 rm -f conftest.err conftest.$ac_ext
3030
3031   # OK, works on sane cases.  Now check whether nonexistent headers
3032   # can be detected and how.
3033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034 /* end confdefs.h.  */
3035 #include <ac_nonexistent.h>
3036 _ACEOF
3037 if ac_fn_c_try_cpp "$LINENO"; then :
3038   # Broken: success on invalid input.
3039 continue
3040 else
3041   # Passes both tests.
3042 ac_preproc_ok=:
3043 break
3044 fi
3045 rm -f conftest.err conftest.$ac_ext
3046
3047 done
3048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3049 rm -f conftest.err conftest.$ac_ext
3050 if $ac_preproc_ok; then :
3051   break
3052 fi
3053
3054     done
3055     ac_cv_prog_CPP=$CPP
3056
3057 fi
3058   CPP=$ac_cv_prog_CPP
3059 else
3060   ac_cv_prog_CPP=$CPP
3061 fi
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3063 $as_echo "$CPP" >&6; }
3064 ac_preproc_ok=false
3065 for ac_c_preproc_warn_flag in '' yes
3066 do
3067   # Use a header file that comes with gcc, so configuring glibc
3068   # with a fresh cross-compiler works.
3069   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3070   # <limits.h> exists even on freestanding compilers.
3071   # On the NeXT, cc -E runs the code through the compiler's parser,
3072   # not just through cpp. "Syntax error" is here to catch this case.
3073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074 /* end confdefs.h.  */
3075 #ifdef __STDC__
3076 # include <limits.h>
3077 #else
3078 # include <assert.h>
3079 #endif
3080                      Syntax error
3081 _ACEOF
3082 if ac_fn_c_try_cpp "$LINENO"; then :
3083
3084 else
3085   # Broken: fails on valid input.
3086 continue
3087 fi
3088 rm -f conftest.err conftest.$ac_ext
3089
3090   # OK, works on sane cases.  Now check whether nonexistent headers
3091   # can be detected and how.
3092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3093 /* end confdefs.h.  */
3094 #include <ac_nonexistent.h>
3095 _ACEOF
3096 if ac_fn_c_try_cpp "$LINENO"; then :
3097   # Broken: success on invalid input.
3098 continue
3099 else
3100   # Passes both tests.
3101 ac_preproc_ok=:
3102 break
3103 fi
3104 rm -f conftest.err conftest.$ac_ext
3105
3106 done
3107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3108 rm -f conftest.err conftest.$ac_ext
3109 if $ac_preproc_ok; then :
3110
3111 else
3112   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3115 See \`config.log' for more details." "$LINENO" 5; }
3116 fi
3117
3118 ac_ext=c
3119 ac_cpp='$CPP $CPPFLAGS'
3120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123
3124
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3126 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3127 if test "${ac_cv_path_GREP+set}" = set; then :
3128   $as_echo_n "(cached) " >&6
3129 else
3130   if test -z "$GREP"; then
3131   ac_path_GREP_found=false
3132   # Loop through the user's path and test for each of PROGNAME-LIST
3133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3135 do
3136   IFS=$as_save_IFS
3137   test -z "$as_dir" && as_dir=.
3138     for ac_prog in grep ggrep; do
3139     for ac_exec_ext in '' $ac_executable_extensions; do
3140       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3141       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3142 # Check for GNU ac_path_GREP and select it if it is found.
3143   # Check for GNU $ac_path_GREP
3144 case `"$ac_path_GREP" --version 2>&1` in
3145 *GNU*)
3146   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3147 *)
3148   ac_count=0
3149   $as_echo_n 0123456789 >"conftest.in"
3150   while :
3151   do
3152     cat "conftest.in" "conftest.in" >"conftest.tmp"
3153     mv "conftest.tmp" "conftest.in"
3154     cp "conftest.in" "conftest.nl"
3155     $as_echo 'GREP' >> "conftest.nl"
3156     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3157     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3158     as_fn_arith $ac_count + 1 && ac_count=$as_val
3159     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3160       # Best one so far, save it but keep looking for a better one
3161       ac_cv_path_GREP="$ac_path_GREP"
3162       ac_path_GREP_max=$ac_count
3163     fi
3164     # 10*(2^10) chars as input seems more than enough
3165     test $ac_count -gt 10 && break
3166   done
3167   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3168 esac
3169
3170       $ac_path_GREP_found && break 3
3171     done
3172   done
3173   done
3174 IFS=$as_save_IFS
3175   if test -z "$ac_cv_path_GREP"; then
3176     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3177   fi
3178 else
3179   ac_cv_path_GREP=$GREP
3180 fi
3181
3182 fi
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3184 $as_echo "$ac_cv_path_GREP" >&6; }
3185  GREP="$ac_cv_path_GREP"
3186
3187
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3189 $as_echo_n "checking for egrep... " >&6; }
3190 if test "${ac_cv_path_EGREP+set}" = set; then :
3191   $as_echo_n "(cached) " >&6
3192 else
3193   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3194    then ac_cv_path_EGREP="$GREP -E"
3195    else
3196      if test -z "$EGREP"; then
3197   ac_path_EGREP_found=false
3198   # Loop through the user's path and test for each of PROGNAME-LIST
3199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204     for ac_prog in egrep; do
3205     for ac_exec_ext in '' $ac_executable_extensions; do
3206       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3207       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3208 # Check for GNU ac_path_EGREP and select it if it is found.
3209   # Check for GNU $ac_path_EGREP
3210 case `"$ac_path_EGREP" --version 2>&1` in
3211 *GNU*)
3212   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3213 *)
3214   ac_count=0
3215   $as_echo_n 0123456789 >"conftest.in"
3216   while :
3217   do
3218     cat "conftest.in" "conftest.in" >"conftest.tmp"
3219     mv "conftest.tmp" "conftest.in"
3220     cp "conftest.in" "conftest.nl"
3221     $as_echo 'EGREP' >> "conftest.nl"
3222     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3223     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3224     as_fn_arith $ac_count + 1 && ac_count=$as_val
3225     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3226       # Best one so far, save it but keep looking for a better one
3227       ac_cv_path_EGREP="$ac_path_EGREP"
3228       ac_path_EGREP_max=$ac_count
3229     fi
3230     # 10*(2^10) chars as input seems more than enough
3231     test $ac_count -gt 10 && break
3232   done
3233   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3234 esac
3235
3236       $ac_path_EGREP_found && break 3
3237     done
3238   done
3239   done
3240 IFS=$as_save_IFS
3241   if test -z "$ac_cv_path_EGREP"; then
3242     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3243   fi
3244 else
3245   ac_cv_path_EGREP=$EGREP
3246 fi
3247
3248    fi
3249 fi
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3251 $as_echo "$ac_cv_path_EGREP" >&6; }
3252  EGREP="$ac_cv_path_EGREP"
3253
3254
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3256 $as_echo_n "checking for ANSI C header files... " >&6; }
3257 if test "${ac_cv_header_stdc+set}" = set; then :
3258   $as_echo_n "(cached) " >&6
3259 else
3260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261 /* end confdefs.h.  */
3262 #include <stdlib.h>
3263 #include <stdarg.h>
3264 #include <string.h>
3265 #include <float.h>
3266
3267 int
3268 main ()
3269 {
3270
3271   ;
3272   return 0;
3273 }
3274 _ACEOF
3275 if ac_fn_c_try_compile "$LINENO"; then :
3276   ac_cv_header_stdc=yes
3277 else
3278   ac_cv_header_stdc=no
3279 fi
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281
3282 if test $ac_cv_header_stdc = yes; then
3283   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h.  */
3286 #include <string.h>
3287
3288 _ACEOF
3289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3290   $EGREP "memchr" >/dev/null 2>&1; then :
3291
3292 else
3293   ac_cv_header_stdc=no
3294 fi
3295 rm -f conftest*
3296
3297 fi
3298
3299 if test $ac_cv_header_stdc = yes; then
3300   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h.  */
3303 #include <stdlib.h>
3304
3305 _ACEOF
3306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3307   $EGREP "free" >/dev/null 2>&1; then :
3308
3309 else
3310   ac_cv_header_stdc=no
3311 fi
3312 rm -f conftest*
3313
3314 fi
3315
3316 if test $ac_cv_header_stdc = yes; then
3317   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3318   if test "$cross_compiling" = yes; then :
3319   :
3320 else
3321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h.  */
3323 #include <ctype.h>
3324 #include <stdlib.h>
3325 #if ((' ' & 0x0FF) == 0x020)
3326 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3327 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3328 #else
3329 # define ISLOWER(c) \
3330                    (('a' <= (c) && (c) <= 'i') \
3331                      || ('j' <= (c) && (c) <= 'r') \
3332                      || ('s' <= (c) && (c) <= 'z'))
3333 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3334 #endif
3335
3336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3337 int
3338 main ()
3339 {
3340   int i;
3341   for (i = 0; i < 256; i++)
3342     if (XOR (islower (i), ISLOWER (i))
3343         || toupper (i) != TOUPPER (i))
3344       return 2;
3345   return 0;
3346 }
3347 _ACEOF
3348 if ac_fn_c_try_run "$LINENO"; then :
3349
3350 else
3351   ac_cv_header_stdc=no
3352 fi
3353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3354   conftest.$ac_objext conftest.beam conftest.$ac_ext
3355 fi
3356
3357 fi
3358 fi
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3360 $as_echo "$ac_cv_header_stdc" >&6; }
3361 if test $ac_cv_header_stdc = yes; then
3362
3363 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3364
3365 fi
3366
3367 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3369                   inttypes.h stdint.h unistd.h
3370 do :
3371   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3372 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3373 "
3374 eval as_val=\$$as_ac_Header
3375    if test "x$as_val" = x""yes; then :
3376   cat >>confdefs.h <<_ACEOF
3377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3378 _ACEOF
3379
3380 fi
3381
3382 done
3383
3384
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
3386 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
3387 if test "${ac_cv_header_stdbool_h+set}" = set; then :
3388   $as_echo_n "(cached) " >&6
3389 else
3390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h.  */
3392
3393 #include <stdbool.h>
3394 #ifndef bool
3395  "error: bool is not defined"
3396 #endif
3397 #ifndef false
3398  "error: false is not defined"
3399 #endif
3400 #if false
3401  "error: false is not 0"
3402 #endif
3403 #ifndef true
3404  "error: true is not defined"
3405 #endif
3406 #if true != 1
3407  "error: true is not 1"
3408 #endif
3409 #ifndef __bool_true_false_are_defined
3410  "error: __bool_true_false_are_defined is not defined"
3411 #endif
3412
3413         struct s { _Bool s: 1; _Bool t; } s;
3414
3415         char a[true == 1 ? 1 : -1];
3416         char b[false == 0 ? 1 : -1];
3417         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
3418         char d[(bool) 0.5 == true ? 1 : -1];
3419         bool e = &s;
3420         char f[(_Bool) 0.0 == false ? 1 : -1];
3421         char g[true];
3422         char h[sizeof (_Bool)];
3423         char i[sizeof s.t];
3424         enum { j = false, k = true, l = false * true, m = true * 256 };
3425         /* The following fails for
3426            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
3427         _Bool n[m];
3428         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
3429         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
3430 #       if defined __xlc__ || defined __GNUC__
3431          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
3432             reported by James Lemley on 2005-10-05; see
3433             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
3434             This test is not quite right, since xlc is allowed to
3435             reject this program, as the initializer for xlcbug is
3436             not one of the forms that C requires support for.
3437             However, doing the test right would require a runtime
3438             test, and that would make cross-compilation harder.
3439             Let us hope that IBM fixes the xlc bug, and also adds
3440             support for this kind of constant expression.  In the
3441             meantime, this test will reject xlc, which is OK, since
3442             our stdbool.h substitute should suffice.  We also test
3443             this with GCC, where it should work, to detect more
3444             quickly whether someone messes up the test in the
3445             future.  */
3446          char digs[] = "0123456789";
3447          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
3448 #       endif
3449         /* Catch a bug in an HP-UX C compiler.  See
3450            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
3451            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
3452          */
3453         _Bool q = true;
3454         _Bool *pq = &q;
3455
3456 int
3457 main ()
3458 {
3459
3460         *pq |= q;
3461         *pq |= ! q;
3462         /* Refer to every declared value, to avoid compiler optimizations.  */
3463         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
3464                 + !m + !n + !o + !p + !q + !pq);
3465
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 if ac_fn_c_try_compile "$LINENO"; then :
3471   ac_cv_header_stdbool_h=yes
3472 else
3473   ac_cv_header_stdbool_h=no
3474 fi
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 fi
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
3478 $as_echo "$ac_cv_header_stdbool_h" >&6; }
3479 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
3480 if test "x$ac_cv_type__Bool" = x""yes; then :
3481
3482 cat >>confdefs.h <<_ACEOF
3483 #define HAVE__BOOL 1
3484 _ACEOF
3485
3486
3487 fi
3488
3489 if test $ac_cv_header_stdbool_h = yes; then
3490
3491 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
3492
3493 fi
3494
3495 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3496 if test "x$ac_cv_type_size_t" = x""yes; then :
3497
3498 else
3499
3500 cat >>confdefs.h <<_ACEOF
3501 #define size_t unsigned int
3502 _ACEOF
3503
3504 fi
3505
3506
3507 # Checks for library functions.
3508
3509 ac_config_files="$ac_config_files Makefile sample/Makefile"
3510
3511 cat >confcache <<\_ACEOF
3512 # This file is a shell script that caches the results of configure
3513 # tests run on this system so they can be shared between configure
3514 # scripts and configure runs, see configure's option --config-cache.
3515 # It is not useful on other systems.  If it contains results you don't
3516 # want to keep, you may remove or edit it.
3517 #
3518 # config.status only pays attention to the cache file if you give it
3519 # the --recheck option to rerun configure.
3520 #
3521 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3522 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3523 # following values.
3524
3525 _ACEOF
3526
3527 # The following way of writing the cache mishandles newlines in values,
3528 # but we know of no workaround that is simple, portable, and efficient.
3529 # So, we kill variables containing newlines.
3530 # Ultrix sh set writes to stderr and can't be redirected directly,
3531 # and sets the high bit in the cache file unless we assign to the vars.
3532 (
3533   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3534     eval ac_val=\$$ac_var
3535     case $ac_val in #(
3536     *${as_nl}*)
3537       case $ac_var in #(
3538       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3539 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3540       esac
3541       case $ac_var in #(
3542       _ | IFS | as_nl) ;; #(
3543       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3544       *) { eval $ac_var=; unset $ac_var;} ;;
3545       esac ;;
3546     esac
3547   done
3548
3549   (set) 2>&1 |
3550     case $as_nl`(ac_space=' '; set) 2>&1` in #(
3551     *${as_nl}ac_space=\ *)
3552       # `set' does not quote correctly, so add quotes: double-quote
3553       # substitution turns \\\\ into \\, and sed turns \\ into \.
3554       sed -n \
3555         "s/'/'\\\\''/g;
3556           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3557       ;; #(
3558     *)
3559       # `set' quotes correctly as required by POSIX, so do not add quotes.
3560       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3561       ;;
3562     esac |
3563     sort
3564 ) |
3565   sed '
3566      /^ac_cv_env_/b end
3567      t clear
3568      :clear
3569      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3570      t end
3571      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3572      :end' >>confcache
3573 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3574   if test -w "$cache_file"; then
3575     test "x$cache_file" != "x/dev/null" &&
3576       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3577 $as_echo "$as_me: updating cache $cache_file" >&6;}
3578     cat confcache >$cache_file
3579   else
3580     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3581 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3582   fi
3583 fi
3584 rm -f confcache
3585
3586 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3587 # Let make expand exec_prefix.
3588 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3589
3590 DEFS=-DHAVE_CONFIG_H
3591
3592 ac_libobjs=
3593 ac_ltlibobjs=
3594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3595   # 1. Remove the extension, and $U if already installed.
3596   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3597   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3598   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3599   #    will be set to the directory where LIBOBJS objects are built.
3600   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3601   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3602 done
3603 LIBOBJS=$ac_libobjs
3604
3605 LTLIBOBJS=$ac_ltlibobjs
3606
3607
3608
3609 : ${CONFIG_STATUS=./config.status}
3610 ac_write_fail=0
3611 ac_clean_files_save=$ac_clean_files
3612 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3614 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3615 as_write_fail=0
3616 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3617 #! $SHELL
3618 # Generated by $as_me.
3619 # Run this file to recreate the current configuration.
3620 # Compiler output produced by configure, useful for debugging
3621 # configure, is in config.log if it exists.
3622
3623 debug=false
3624 ac_cs_recheck=false
3625 ac_cs_silent=false
3626
3627 SHELL=\${CONFIG_SHELL-$SHELL}
3628 export SHELL
3629 _ASEOF
3630 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3631 ## -------------------- ##
3632 ## M4sh Initialization. ##
3633 ## -------------------- ##
3634
3635 # Be more Bourne compatible
3636 DUALCASE=1; export DUALCASE # for MKS sh
3637 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3638   emulate sh
3639   NULLCMD=:
3640   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3641   # is contrary to our usage.  Disable this feature.
3642   alias -g '${1+"$@"}'='"$@"'
3643   setopt NO_GLOB_SUBST
3644 else
3645   case `(set -o) 2>/dev/null` in #(
3646   *posix*) :
3647     set -o posix ;; #(
3648   *) :
3649      ;;
3650 esac
3651 fi
3652
3653
3654 as_nl='
3655 '
3656 export as_nl
3657 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3658 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3659 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3660 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3661 # Prefer a ksh shell builtin over an external printf program on Solaris,
3662 # but without wasting forks for bash or zsh.
3663 if test -z "$BASH_VERSION$ZSH_VERSION" \
3664     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3665   as_echo='print -r --'
3666   as_echo_n='print -rn --'
3667 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3668   as_echo='printf %s\n'
3669   as_echo_n='printf %s'
3670 else
3671   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3672     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3673     as_echo_n='/usr/ucb/echo -n'
3674   else
3675     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3676     as_echo_n_body='eval
3677       arg=$1;
3678       case $arg in #(
3679       *"$as_nl"*)
3680         expr "X$arg" : "X\\(.*\\)$as_nl";
3681         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3682       esac;
3683       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3684     '
3685     export as_echo_n_body
3686     as_echo_n='sh -c $as_echo_n_body as_echo'
3687   fi
3688   export as_echo_body
3689   as_echo='sh -c $as_echo_body as_echo'
3690 fi
3691
3692 # The user is always right.
3693 if test "${PATH_SEPARATOR+set}" != set; then
3694   PATH_SEPARATOR=:
3695   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3696     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3697       PATH_SEPARATOR=';'
3698   }
3699 fi
3700
3701
3702 # IFS
3703 # We need space, tab and new line, in precisely that order.  Quoting is
3704 # there to prevent editors from complaining about space-tab.
3705 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3706 # splitting by setting IFS to empty value.)
3707 IFS=" ""        $as_nl"
3708
3709 # Find who we are.  Look in the path if we contain no directory separator.
3710 case $0 in #((
3711   *[\\/]* ) as_myself=$0 ;;
3712   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH
3714 do
3715   IFS=$as_save_IFS
3716   test -z "$as_dir" && as_dir=.
3717     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3718   done
3719 IFS=$as_save_IFS
3720
3721      ;;
3722 esac
3723 # We did not find ourselves, most probably we were run as `sh COMMAND'
3724 # in which case we are not to be found in the path.
3725 if test "x$as_myself" = x; then
3726   as_myself=$0
3727 fi
3728 if test ! -f "$as_myself"; then
3729   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3730   exit 1
3731 fi
3732
3733 # Unset variables that we do not need and which cause bugs (e.g. in
3734 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3735 # suppresses any "Segmentation fault" message there.  '((' could
3736 # trigger a bug in pdksh 5.2.14.
3737 for as_var in BASH_ENV ENV MAIL MAILPATH
3738 do eval test x\${$as_var+set} = xset \
3739   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3740 done
3741 PS1='$ '
3742 PS2='> '
3743 PS4='+ '
3744
3745 # NLS nuisances.
3746 LC_ALL=C
3747 export LC_ALL
3748 LANGUAGE=C
3749 export LANGUAGE
3750
3751 # CDPATH.
3752 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3753
3754
3755 # as_fn_error ERROR [LINENO LOG_FD]
3756 # ---------------------------------
3757 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3758 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3759 # script with status $?, using 1 if that was 0.
3760 as_fn_error ()
3761 {
3762   as_status=$?; test $as_status -eq 0 && as_status=1
3763   if test "$3"; then
3764     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3765     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3766   fi
3767   $as_echo "$as_me: error: $1" >&2
3768   as_fn_exit $as_status
3769 } # as_fn_error
3770
3771
3772 # as_fn_set_status STATUS
3773 # -----------------------
3774 # Set $? to STATUS, without forking.
3775 as_fn_set_status ()
3776 {
3777   return $1
3778 } # as_fn_set_status
3779
3780 # as_fn_exit STATUS
3781 # -----------------
3782 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3783 as_fn_exit ()
3784 {
3785   set +e
3786   as_fn_set_status $1
3787   exit $1
3788 } # as_fn_exit
3789
3790 # as_fn_unset VAR
3791 # ---------------
3792 # Portably unset VAR.
3793 as_fn_unset ()
3794 {
3795   { eval $1=; unset $1;}
3796 }
3797 as_unset=as_fn_unset
3798 # as_fn_append VAR VALUE
3799 # ----------------------
3800 # Append the text in VALUE to the end of the definition contained in VAR. Take
3801 # advantage of any shell optimizations that allow amortized linear growth over
3802 # repeated appends, instead of the typical quadratic growth present in naive
3803 # implementations.
3804 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3805   eval 'as_fn_append ()
3806   {
3807     eval $1+=\$2
3808   }'
3809 else
3810   as_fn_append ()
3811   {
3812     eval $1=\$$1\$2
3813   }
3814 fi # as_fn_append
3815
3816 # as_fn_arith ARG...
3817 # ------------------
3818 # Perform arithmetic evaluation on the ARGs, and store the result in the
3819 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3820 # must be portable across $(()) and expr.
3821 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3822   eval 'as_fn_arith ()
3823   {
3824     as_val=$(( $* ))
3825   }'
3826 else
3827   as_fn_arith ()
3828   {
3829     as_val=`expr "$@" || test $? -eq 1`
3830   }
3831 fi # as_fn_arith
3832
3833
3834 if expr a : '\(a\)' >/dev/null 2>&1 &&
3835    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3836   as_expr=expr
3837 else
3838   as_expr=false
3839 fi
3840
3841 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3842   as_basename=basename
3843 else
3844   as_basename=false
3845 fi
3846
3847 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3848   as_dirname=dirname
3849 else
3850   as_dirname=false
3851 fi
3852
3853 as_me=`$as_basename -- "$0" ||
3854 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3855          X"$0" : 'X\(//\)$' \| \
3856          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3857 $as_echo X/"$0" |
3858     sed '/^.*\/\([^/][^/]*\)\/*$/{
3859             s//\1/
3860             q
3861           }
3862           /^X\/\(\/\/\)$/{
3863             s//\1/
3864             q
3865           }
3866           /^X\/\(\/\).*/{
3867             s//\1/
3868             q
3869           }
3870           s/.*/./; q'`
3871
3872 # Avoid depending upon Character Ranges.
3873 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3874 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3875 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3876 as_cr_digits='0123456789'
3877 as_cr_alnum=$as_cr_Letters$as_cr_digits
3878
3879 ECHO_C= ECHO_N= ECHO_T=
3880 case `echo -n x` in #(((((
3881 -n*)
3882   case `echo 'xy\c'` in
3883   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
3884   xy)  ECHO_C='\c';;
3885   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3886        ECHO_T=' ';;
3887   esac;;
3888 *)
3889   ECHO_N='-n';;
3890 esac
3891
3892 rm -f conf$$ conf$$.exe conf$$.file
3893 if test -d conf$$.dir; then
3894   rm -f conf$$.dir/conf$$.file
3895 else
3896   rm -f conf$$.dir
3897   mkdir conf$$.dir 2>/dev/null
3898 fi
3899 if (echo >conf$$.file) 2>/dev/null; then
3900   if ln -s conf$$.file conf$$ 2>/dev/null; then
3901     as_ln_s='ln -s'
3902     # ... but there are two gotchas:
3903     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3904     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3905     # In both cases, we have to default to `cp -p'.
3906     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3907       as_ln_s='cp -p'
3908   elif ln conf$$.file conf$$ 2>/dev/null; then
3909     as_ln_s=ln
3910   else
3911     as_ln_s='cp -p'
3912   fi
3913 else
3914   as_ln_s='cp -p'
3915 fi
3916 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3917 rmdir conf$$.dir 2>/dev/null
3918
3919
3920 # as_fn_mkdir_p
3921 # -------------
3922 # Create "$as_dir" as a directory, including parents if necessary.
3923 as_fn_mkdir_p ()
3924 {
3925
3926   case $as_dir in #(
3927   -*) as_dir=./$as_dir;;
3928   esac
3929   test -d "$as_dir" || eval $as_mkdir_p || {
3930     as_dirs=
3931     while :; do
3932       case $as_dir in #(
3933       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3934       *) as_qdir=$as_dir;;
3935       esac
3936       as_dirs="'$as_qdir' $as_dirs"
3937       as_dir=`$as_dirname -- "$as_dir" ||
3938 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3939          X"$as_dir" : 'X\(//\)[^/]' \| \
3940          X"$as_dir" : 'X\(//\)$' \| \
3941          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3942 $as_echo X"$as_dir" |
3943     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3944             s//\1/
3945             q
3946           }
3947           /^X\(\/\/\)[^/].*/{
3948             s//\1/
3949             q
3950           }
3951           /^X\(\/\/\)$/{
3952             s//\1/
3953             q
3954           }
3955           /^X\(\/\).*/{
3956             s//\1/
3957             q
3958           }
3959           s/.*/./; q'`
3960       test -d "$as_dir" && break
3961     done
3962     test -z "$as_dirs" || eval "mkdir $as_dirs"
3963   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
3964
3965
3966 } # as_fn_mkdir_p
3967 if mkdir -p . 2>/dev/null; then
3968   as_mkdir_p='mkdir -p "$as_dir"'
3969 else
3970   test -d ./-p && rmdir ./-p
3971   as_mkdir_p=false
3972 fi
3973
3974 if test -x / >/dev/null 2>&1; then
3975   as_test_x='test -x'
3976 else
3977   if ls -dL / >/dev/null 2>&1; then
3978     as_ls_L_option=L
3979   else
3980     as_ls_L_option=
3981   fi
3982   as_test_x='
3983     eval sh -c '\''
3984       if test -d "$1"; then
3985         test -d "$1/.";
3986       else
3987         case $1 in #(
3988         -*)set "./$1";;
3989         esac;
3990         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3991         ???[sx]*):;;*)false;;esac;fi
3992     '\'' sh
3993   '
3994 fi
3995 as_executable_p=$as_test_x
3996
3997 # Sed expression to map a string onto a valid CPP name.
3998 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3999
4000 # Sed expression to map a string onto a valid variable name.
4001 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4002
4003
4004 exec 6>&1
4005 ## ----------------------------------- ##
4006 ## Main body of $CONFIG_STATUS script. ##
4007 ## ----------------------------------- ##
4008 _ASEOF
4009 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4010
4011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4012 # Save the log message, to keep $0 and so on meaningful, and to
4013 # report actual input values of CONFIG_FILES etc. instead of their
4014 # values after options handling.
4015 ac_log="
4016 This file was extended by lockfree $as_me 0.1, which was
4017 generated by GNU Autoconf 2.64.  Invocation command line was
4018
4019   CONFIG_FILES    = $CONFIG_FILES
4020   CONFIG_HEADERS  = $CONFIG_HEADERS
4021   CONFIG_LINKS    = $CONFIG_LINKS
4022   CONFIG_COMMANDS = $CONFIG_COMMANDS
4023   $ $0 $@
4024
4025 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4026 "
4027
4028 _ACEOF
4029
4030 case $ac_config_files in *"
4031 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4032 esac
4033
4034 case $ac_config_headers in *"
4035 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4036 esac
4037
4038
4039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4040 # Files that config.status was made for.
4041 config_files="$ac_config_files"
4042 config_headers="$ac_config_headers"
4043
4044 _ACEOF
4045
4046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4047 ac_cs_usage="\
4048 \`$as_me' instantiates files and other configuration actions
4049 from templates according to the current configuration.  Unless the files
4050 and actions are specified as TAGs, all are instantiated by default.
4051
4052 Usage: $0 [OPTION]... [TAG]...
4053
4054   -h, --help       print this help, then exit
4055   -V, --version    print version number and configuration settings, then exit
4056   -q, --quiet, --silent
4057                    do not print progress messages
4058   -d, --debug      don't remove temporary files
4059       --recheck    update $as_me by reconfiguring in the same conditions
4060       --file=FILE[:TEMPLATE]
4061                    instantiate the configuration file FILE
4062       --header=FILE[:TEMPLATE]
4063                    instantiate the configuration header FILE
4064
4065 Configuration files:
4066 $config_files
4067
4068 Configuration headers:
4069 $config_headers
4070
4071 Report bugs to <n.nakai@sdy.co.jp>."
4072
4073 _ACEOF
4074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4075 ac_cs_version="\\
4076 lockfree config.status 0.1
4077 configured by $0, generated by GNU Autoconf 2.64,
4078   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4079
4080 Copyright (C) 2009 Free Software Foundation, Inc.
4081 This config.status script is free software; the Free Software Foundation
4082 gives unlimited permission to copy, distribute and modify it."
4083
4084 ac_pwd='$ac_pwd'
4085 srcdir='$srcdir'
4086 test -n "\$AWK" || AWK=awk
4087 _ACEOF
4088
4089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4090 # The default lists apply if the user does not specify any file.
4091 ac_need_defaults=:
4092 while test $# != 0
4093 do
4094   case $1 in
4095   --*=*)
4096     ac_option=`expr "X$1" : 'X\([^=]*\)='`
4097     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4098     ac_shift=:
4099     ;;
4100   *)
4101     ac_option=$1
4102     ac_optarg=$2
4103     ac_shift=shift
4104     ;;
4105   esac
4106
4107   case $ac_option in
4108   # Handling of the options.
4109   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4110     ac_cs_recheck=: ;;
4111   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4112     $as_echo "$ac_cs_version"; exit ;;
4113   --debug | --debu | --deb | --de | --d | -d )
4114     debug=: ;;
4115   --file | --fil | --fi | --f )
4116     $ac_shift
4117     case $ac_optarg in
4118     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4119     esac
4120     as_fn_append CONFIG_FILES " '$ac_optarg'"
4121     ac_need_defaults=false;;
4122   --header | --heade | --head | --hea )
4123     $ac_shift
4124     case $ac_optarg in
4125     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4126     esac
4127     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4128     ac_need_defaults=false;;
4129   --he | --h)
4130     # Conflict between --help and --header
4131     as_fn_error "ambiguous option: \`$1'
4132 Try \`$0 --help' for more information.";;
4133   --help | --hel | -h )
4134     $as_echo "$ac_cs_usage"; exit ;;
4135   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4136   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4137     ac_cs_silent=: ;;
4138
4139   # This is an error.
4140   -*) as_fn_error "unrecognized option: \`$1'
4141 Try \`$0 --help' for more information." ;;
4142
4143   *) as_fn_append ac_config_targets " $1"
4144      ac_need_defaults=false ;;
4145
4146   esac
4147   shift
4148 done
4149
4150 ac_configure_extra_args=
4151
4152 if $ac_cs_silent; then
4153   exec 6>/dev/null
4154   ac_configure_extra_args="$ac_configure_extra_args --silent"
4155 fi
4156
4157 _ACEOF
4158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4159 if \$ac_cs_recheck; then
4160   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4161   shift
4162   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4163   CONFIG_SHELL='$SHELL'
4164   export CONFIG_SHELL
4165   exec "\$@"
4166 fi
4167
4168 _ACEOF
4169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4170 exec 5>>config.log
4171 {
4172   echo
4173   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4174 ## Running $as_me. ##
4175 _ASBOX
4176   $as_echo "$ac_log"
4177 } >&5
4178
4179 _ACEOF
4180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4181 _ACEOF
4182
4183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4184
4185 # Handling of arguments.
4186 for ac_config_target in $ac_config_targets
4187 do
4188   case $ac_config_target in
4189     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4190     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4191     "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
4192
4193   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4194   esac
4195 done
4196
4197
4198 # If the user did not use the arguments to specify the items to instantiate,
4199 # then the envvar interface is used.  Set only those that are not.
4200 # We use the long form for the default assignment because of an extremely
4201 # bizarre bug on SunOS 4.1.3.
4202 if $ac_need_defaults; then
4203   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4204   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4205 fi
4206
4207 # Have a temporary directory for convenience.  Make it in the build tree
4208 # simply because there is no reason against having it here, and in addition,
4209 # creating and moving files from /tmp can sometimes cause problems.
4210 # Hook for its removal unless debugging.
4211 # Note that there is a small window in which the directory will not be cleaned:
4212 # after its creation but before its name has been assigned to `$tmp'.
4213 $debug ||
4214 {
4215   tmp=
4216   trap 'exit_status=$?
4217   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4218 ' 0
4219   trap 'as_fn_exit 1' 1 2 13 15
4220 }
4221 # Create a (secure) tmp directory for tmp files.
4222
4223 {
4224   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4225   test -n "$tmp" && test -d "$tmp"
4226 }  ||
4227 {
4228   tmp=./conf$$-$RANDOM
4229   (umask 077 && mkdir "$tmp")
4230 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
4231
4232 # Set up the scripts for CONFIG_FILES section.
4233 # No need to generate them if there are no CONFIG_FILES.
4234 # This happens for instance with `./config.status config.h'.
4235 if test -n "$CONFIG_FILES"; then
4236
4237
4238 ac_cr=`echo X | tr X '\015'`
4239 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4240 # But we know of no other shell where ac_cr would be empty at this
4241 # point, so we can use a bashism as a fallback.
4242 if test "x$ac_cr" = x; then
4243   eval ac_cr=\$\'\\r\'
4244 fi
4245 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4246 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4247   ac_cs_awk_cr='\r'
4248 else
4249   ac_cs_awk_cr=$ac_cr
4250 fi
4251
4252 echo 'BEGIN {' >"$tmp/subs1.awk" &&
4253 _ACEOF
4254
4255
4256 {
4257   echo "cat >conf$$subs.awk <<_ACEOF" &&
4258   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4259   echo "_ACEOF"
4260 } >conf$$subs.sh ||
4261   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4262 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
4263 ac_delim='%!_!# '
4264 for ac_last_try in false false false false false :; do
4265   . ./conf$$subs.sh ||
4266     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4267
4268   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4269   if test $ac_delim_n = $ac_delim_num; then
4270     break
4271   elif $ac_last_try; then
4272     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4273   else
4274     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4275   fi
4276 done
4277 rm -f conf$$subs.sh
4278
4279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4280 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
4281 _ACEOF
4282 sed -n '
4283 h
4284 s/^/S["/; s/!.*/"]=/
4285 p
4286 g
4287 s/^[^!]*!//
4288 :repl
4289 t repl
4290 s/'"$ac_delim"'$//
4291 t delim
4292 :nl
4293 h
4294 s/\(.\{148\}\).*/\1/
4295 t more1
4296 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4297 p
4298 n
4299 b repl
4300 :more1
4301 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4302 p
4303 g
4304 s/.\{148\}//
4305 t nl
4306 :delim
4307 h
4308 s/\(.\{148\}\).*/\1/
4309 t more2
4310 s/["\\]/\\&/g; s/^/"/; s/$/"/
4311 p
4312 b
4313 :more2
4314 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4315 p
4316 g
4317 s/.\{148\}//
4318 t delim
4319 ' <conf$$subs.awk | sed '
4320 /^[^""]/{
4321   N
4322   s/\n//
4323 }
4324 ' >>$CONFIG_STATUS || ac_write_fail=1
4325 rm -f conf$$subs.awk
4326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4327 _ACAWK
4328 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
4329   for (key in S) S_is_set[key] = 1
4330   FS = "\a"
4331
4332 }
4333 {
4334   line = $ 0
4335   nfields = split(line, field, "@")
4336   substed = 0
4337   len = length(field[1])
4338   for (i = 2; i < nfields; i++) {
4339     key = field[i]
4340     keylen = length(key)
4341     if (S_is_set[key]) {
4342       value = S[key]
4343       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4344       len += length(value) + length(field[++i])
4345       substed = 1
4346     } else
4347       len += 1 + keylen
4348   }
4349
4350   print line
4351 }
4352
4353 _ACAWK
4354 _ACEOF
4355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4356 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4357   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4358 else
4359   cat
4360 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4361   || as_fn_error "could not setup config files machinery" "$LINENO" 5
4362 _ACEOF
4363
4364 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4365 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4366 # trailing colons and then remove the whole line if VPATH becomes empty
4367 # (actually we leave an empty line to preserve line numbers).
4368 if test "x$srcdir" = x.; then
4369   ac_vpsub='/^[  ]*VPATH[        ]*=/{
4370 s/:*\$(srcdir):*/:/
4371 s/:*\${srcdir}:*/:/
4372 s/:*@srcdir@:*/:/
4373 s/^\([^=]*=[     ]*\):*/\1/
4374 s/:*$//
4375 s/^[^=]*=[       ]*$//
4376 }'
4377 fi
4378
4379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4380 fi # test -n "$CONFIG_FILES"
4381
4382 # Set up the scripts for CONFIG_HEADERS section.
4383 # No need to generate them if there are no CONFIG_HEADERS.
4384 # This happens for instance with `./config.status Makefile'.
4385 if test -n "$CONFIG_HEADERS"; then
4386 cat >"$tmp/defines.awk" <<\_ACAWK ||
4387 BEGIN {
4388 _ACEOF
4389
4390 # Transform confdefs.h into an awk script `defines.awk', embedded as
4391 # here-document in config.status, that substitutes the proper values into
4392 # config.h.in to produce config.h.
4393
4394 # Create a delimiter string that does not exist in confdefs.h, to ease
4395 # handling of long lines.
4396 ac_delim='%!_!# '
4397 for ac_last_try in false false :; do
4398   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
4399   if test -z "$ac_t"; then
4400     break
4401   elif $ac_last_try; then
4402     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
4403   else
4404     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4405   fi
4406 done
4407
4408 # For the awk script, D is an array of macro values keyed by name,
4409 # likewise P contains macro parameters if any.  Preserve backslash
4410 # newline sequences.
4411
4412 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4413 sed -n '
4414 s/.\{148\}/&'"$ac_delim"'/g
4415 t rset
4416 :rset
4417 s/^[     ]*#[    ]*define[       ][      ]*/ /
4418 t def
4419 d
4420 :def
4421 s/\\$//
4422 t bsnl
4423 s/["\\]/\\&/g
4424 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
4425 D["\1"]=" \3"/p
4426 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
4427 d
4428 :bsnl
4429 s/["\\]/\\&/g
4430 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
4431 D["\1"]=" \3\\\\\\n"\\/p
4432 t cont
4433 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4434 t cont
4435 d
4436 :cont
4437 n
4438 s/.\{148\}/&'"$ac_delim"'/g
4439 t clear
4440 :clear
4441 s/\\$//
4442 t bsnlc
4443 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4444 d
4445 :bsnlc
4446 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4447 b cont
4448 ' <confdefs.h | sed '
4449 s/'"$ac_delim"'/"\\\
4450 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4451
4452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4453   for (key in D) D_is_set[key] = 1
4454   FS = "\a"
4455 }
4456 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4457   line = \$ 0
4458   split(line, arg, " ")
4459   if (arg[1] == "#") {
4460     defundef = arg[2]
4461     mac1 = arg[3]
4462   } else {
4463     defundef = substr(arg[1], 2)
4464     mac1 = arg[2]
4465   }
4466   split(mac1, mac2, "(") #)
4467   macro = mac2[1]
4468   prefix = substr(line, 1, index(line, defundef) - 1)
4469   if (D_is_set[macro]) {
4470     # Preserve the white space surrounding the "#".
4471     print prefix "define", macro P[macro] D[macro]
4472     next
4473   } else {
4474     # Replace #undef with comments.  This is necessary, for example,
4475     # in the case of _POSIX_SOURCE, which is predefined and required
4476     # on some systems where configure will not decide to define it.
4477     if (defundef == "undef") {
4478       print "/*", prefix defundef, macro, "*/"
4479       next
4480     }
4481   }
4482 }
4483 { print }
4484 _ACAWK
4485 _ACEOF
4486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4487   as_fn_error "could not setup config headers machinery" "$LINENO" 5
4488 fi # test -n "$CONFIG_HEADERS"
4489
4490
4491 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
4492 shift
4493 for ac_tag
4494 do
4495   case $ac_tag in
4496   :[FHLC]) ac_mode=$ac_tag; continue;;
4497   esac
4498   case $ac_mode$ac_tag in
4499   :[FHL]*:*);;
4500   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
4501   :[FH]-) ac_tag=-:-;;
4502   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4503   esac
4504   ac_save_IFS=$IFS
4505   IFS=:
4506   set x $ac_tag
4507   IFS=$ac_save_IFS
4508   shift
4509   ac_file=$1
4510   shift
4511
4512   case $ac_mode in
4513   :L) ac_source=$1;;
4514   :[FH])
4515     ac_file_inputs=
4516     for ac_f
4517     do
4518       case $ac_f in
4519       -) ac_f="$tmp/stdin";;
4520       *) # Look for the file first in the build tree, then in the source tree
4521          # (if the path is not absolute).  The absolute path cannot be DOS-style,
4522          # because $ac_f cannot contain `:'.
4523          test -f "$ac_f" ||
4524            case $ac_f in
4525            [\\/$]*) false;;
4526            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4527            esac ||
4528            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4529       esac
4530       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4531       as_fn_append ac_file_inputs " '$ac_f'"
4532     done
4533
4534     # Let's still pretend it is `configure' which instantiates (i.e., don't
4535     # use $as_me), people would be surprised to read:
4536     #    /* config.h.  Generated by config.status.  */
4537     configure_input='Generated from '`
4538           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4539         `' by configure.'
4540     if test x"$ac_file" != x-; then
4541       configure_input="$ac_file.  $configure_input"
4542       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4543 $as_echo "$as_me: creating $ac_file" >&6;}
4544     fi
4545     # Neutralize special characters interpreted by sed in replacement strings.
4546     case $configure_input in #(
4547     *\&* | *\|* | *\\* )
4548        ac_sed_conf_input=`$as_echo "$configure_input" |
4549        sed 's/[\\\\&|]/\\\\&/g'`;; #(
4550     *) ac_sed_conf_input=$configure_input;;
4551     esac
4552
4553     case $ac_tag in
4554     *:-:* | *:-) cat >"$tmp/stdin" \
4555       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
4556     esac
4557     ;;
4558   esac
4559
4560   ac_dir=`$as_dirname -- "$ac_file" ||
4561 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4562          X"$ac_file" : 'X\(//\)[^/]' \| \
4563          X"$ac_file" : 'X\(//\)$' \| \
4564          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4565 $as_echo X"$ac_file" |
4566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4567             s//\1/
4568             q
4569           }
4570           /^X\(\/\/\)[^/].*/{
4571             s//\1/
4572             q
4573           }
4574           /^X\(\/\/\)$/{
4575             s//\1/
4576             q
4577           }
4578           /^X\(\/\).*/{
4579             s//\1/
4580             q
4581           }
4582           s/.*/./; q'`
4583   as_dir="$ac_dir"; as_fn_mkdir_p
4584   ac_builddir=.
4585
4586 case "$ac_dir" in
4587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4588 *)
4589   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4590   # A ".." for each directory in $ac_dir_suffix.
4591   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4592   case $ac_top_builddir_sub in
4593   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4594   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4595   esac ;;
4596 esac
4597 ac_abs_top_builddir=$ac_pwd
4598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4599 # for backward compatibility:
4600 ac_top_builddir=$ac_top_build_prefix
4601
4602 case $srcdir in
4603   .)  # We are building in place.
4604     ac_srcdir=.
4605     ac_top_srcdir=$ac_top_builddir_sub
4606     ac_abs_top_srcdir=$ac_pwd ;;
4607   [\\/]* | ?:[\\/]* )  # Absolute name.
4608     ac_srcdir=$srcdir$ac_dir_suffix;
4609     ac_top_srcdir=$srcdir
4610     ac_abs_top_srcdir=$srcdir ;;
4611   *) # Relative name.
4612     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4613     ac_top_srcdir=$ac_top_build_prefix$srcdir
4614     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4615 esac
4616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4617
4618
4619   case $ac_mode in
4620   :F)
4621   #
4622   # CONFIG_FILE
4623   #
4624
4625 _ACEOF
4626
4627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4628 # If the template does not know about datarootdir, expand it.
4629 # FIXME: This hack should be removed a few years after 2.60.
4630 ac_datarootdir_hack=; ac_datarootdir_seen=
4631 ac_sed_dataroot='
4632 /datarootdir/ {
4633   p
4634   q
4635 }
4636 /@datadir@/p
4637 /@docdir@/p
4638 /@infodir@/p
4639 /@localedir@/p
4640 /@mandir@/p'
4641 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4642 *datarootdir*) ac_datarootdir_seen=yes;;
4643 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4644   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4645 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4646 _ACEOF
4647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4648   ac_datarootdir_hack='
4649   s&@datadir@&$datadir&g
4650   s&@docdir@&$docdir&g
4651   s&@infodir@&$infodir&g
4652   s&@localedir@&$localedir&g
4653   s&@mandir@&$mandir&g
4654   s&\\\${datarootdir}&$datarootdir&g' ;;
4655 esac
4656 _ACEOF
4657
4658 # Neutralize VPATH when `$srcdir' = `.'.
4659 # Shell code in configure.ac might set extrasub.
4660 # FIXME: do we really want to maintain this feature?
4661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4662 ac_sed_extra="$ac_vpsub
4663 $extrasub
4664 _ACEOF
4665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4666 :t
4667 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4668 s|@configure_input@|$ac_sed_conf_input|;t t
4669 s&@top_builddir@&$ac_top_builddir_sub&;t t
4670 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4671 s&@srcdir@&$ac_srcdir&;t t
4672 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4673 s&@top_srcdir@&$ac_top_srcdir&;t t
4674 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4675 s&@builddir@&$ac_builddir&;t t
4676 s&@abs_builddir@&$ac_abs_builddir&;t t
4677 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4678 $ac_datarootdir_hack
4679 "
4680 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4681   || as_fn_error "could not create $ac_file" "$LINENO" 5
4682
4683 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4684   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4685   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4686   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4687 which seems to be undefined.  Please make sure it is defined." >&5
4688 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4689 which seems to be undefined.  Please make sure it is defined." >&2;}
4690
4691   rm -f "$tmp/stdin"
4692   case $ac_file in
4693   -) cat "$tmp/out" && rm -f "$tmp/out";;
4694   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4695   esac \
4696   || as_fn_error "could not create $ac_file" "$LINENO" 5
4697  ;;
4698   :H)
4699   #
4700   # CONFIG_HEADER
4701   #
4702   if test x"$ac_file" != x-; then
4703     {
4704       $as_echo "/* $configure_input  */" \
4705       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
4706     } >"$tmp/config.h" \
4707       || as_fn_error "could not create $ac_file" "$LINENO" 5
4708     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
4709       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4710 $as_echo "$as_me: $ac_file is unchanged" >&6;}
4711     else
4712       rm -f "$ac_file"
4713       mv "$tmp/config.h" "$ac_file" \
4714         || as_fn_error "could not create $ac_file" "$LINENO" 5
4715     fi
4716   else
4717     $as_echo "/* $configure_input  */" \
4718       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
4719       || as_fn_error "could not create -" "$LINENO" 5
4720   fi
4721  ;;
4722
4723
4724   esac
4725
4726 done # for ac_tag
4727
4728
4729 as_fn_exit 0
4730 _ACEOF
4731 ac_clean_files=$ac_clean_files_save
4732
4733 test $ac_write_fail = 0 ||
4734   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
4735
4736
4737 # configure is writing to config.log, and then calls config.status.
4738 # config.status does its own redirection, appending to config.log.
4739 # Unfortunately, on DOS this fails, as config.log is still kept open
4740 # by configure, so config.status won't be able to write to it; its
4741 # output is simply discarded.  So we exec the FD to /dev/null,
4742 # effectively closing config.log, so it can be properly (re)opened and
4743 # appended to by config.status.  When coming back to configure, we
4744 # need to make the FD available again.
4745 if test "$no_create" != yes; then
4746   ac_cs_success=:
4747   ac_config_status_args=
4748   test "$silent" = yes &&
4749     ac_config_status_args="$ac_config_status_args --quiet"
4750   exec 5>/dev/null
4751   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4752   exec 5>>config.log
4753   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4754   # would make configure fail if this is the last instruction.
4755   $ac_cs_success || as_fn_exit $?
4756 fi
4757 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4758   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4759 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4760 fi
4761